@tencent-ai/agent-sdk 0.3.113 → 0.3.116
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/cli/CHANGELOG.md +52 -0
- package/cli/bin/codebuddy +5 -1
- package/cli/dist/codebuddy-headless.js +129 -125
- package/cli/dist/web-ui/assets/index-C7MTLJe8.css +32 -0
- package/cli/dist/web-ui/assets/index-KUgjjYF4.js +591 -0
- package/cli/dist/web-ui/docs/cn/cli/acp.md +69 -0
- package/cli/dist/web-ui/docs/cn/cli/cli-reference.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/daemon.md +232 -0
- package/cli/dist/web-ui/docs/cn/cli/env-vars.md +1 -0
- package/cli/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +1 -1
- package/cli/dist/web-ui/docs/cn/cli/http-api.md +27 -6
- package/cli/dist/web-ui/docs/cn/cli/quickstart.md +1 -1
- package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +6 -1
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.77.0.md +38 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.77.1.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.78.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.78.1.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.79.0.md +38 -0
- package/cli/dist/web-ui/docs/cn/cli/settings.md +1 -1
- package/cli/dist/web-ui/docs/cn/cli/web-ui.md +3 -1
- package/cli/dist/web-ui/docs/en/cli/acp.md +98 -3
- package/cli/dist/web-ui/docs/en/cli/cli-reference.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/daemon.md +232 -0
- package/cli/dist/web-ui/docs/en/cli/env-vars.md +3 -0
- package/cli/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +1 -1
- package/cli/dist/web-ui/docs/en/cli/http-api.md +144 -8
- package/cli/dist/web-ui/docs/en/cli/quickstart.md +1 -1
- package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +6 -1
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.77.0.md +38 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.77.1.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.78.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.78.1.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.79.0.md +38 -0
- package/cli/dist/web-ui/docs/en/cli/web-ui.md +5 -3
- package/cli/dist/web-ui/docs/search-index-en.json +1 -1
- package/cli/dist/web-ui/docs/search-index-zh.json +1 -1
- package/cli/dist/web-ui/docs/sidebar-en.json +1 -1
- package/cli/dist/web-ui/docs/sidebar-zh.json +1 -1
- package/cli/dist/web-ui/index.html +2 -2
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +2 -2
- package/cli/product.internal.json +2 -2
- package/cli/product.ioa.json +2 -2
- package/cli/product.json +2 -2
- package/cli/product.selfhosted.json +2 -2
- package/package.json +1 -1
- package/cli/dist/web-ui/assets/index-4R_-ZdN-.css +0 -32
- package/cli/dist/web-ui/assets/index-DOt3FCeP.js +0 -499
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
var Bp=Object.defineProperty;var Up=(e,t,r)=>t in e?Bp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var $e=(e,t,r)=>Up(e,typeof t!="symbol"?t+"":t,r);import{R as Ce,a as C,j as i,f as zp,p as fc,b as bc,n as yc,h as Hp,s as Gp,d as _c,M as Pt,c as Bt}from"./markdown-Ce2Umeb2.js";import{r as Wp}from"./vendor-DpYitQz5.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&n(d)}).observe(document,{childList:!0,subtree:!0});function r(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(s){if(s.ep)return;s.ep=!0;const l=r(s);fetch(s.href,l)}})();const vc=e=>{let t;const r=new Set,n=(c,m)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const b=t;t=m??(typeof h!="object"||h===null)?h:Object.assign({},t,h),r.forEach(v=>v(t,b))}},s=()=>t,a={setState:n,getState:s,getInitialState:()=>o,subscribe:c=>(r.add(c),()=>r.delete(c))},o=t=e(n,s,a);return a},qp=(e=>e?vc(e):vc),Vp=e=>e;function Kp(e,t=Vp){const r=Ce.useSyncExternalStore(e.subscribe,Ce.useCallback(()=>t(e.getState()),[e,t]),Ce.useCallback(()=>t(e.getInitialState()),[e,t]));return Ce.useDebugValue(r),r}const xc=e=>{const t=qp(e),r=n=>Kp(t,n);return Object.assign(r,t),r},ze=(e=>e?xc(e):xc),Sc="codebuddy-theme";function Ud(){var e;return typeof window<"u"&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"}function kc(e){return e==="system"?Ud():e}function nn(e){document.documentElement.setAttribute("data-theme",e)}const tt=ze((e,t)=>{const r=typeof localStorage<"u"?localStorage.getItem(Sc):null,n=r&&["light","dark","system"].includes(r)?r:"light",s=kc(n);return nn(s),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{if(t().mode==="system"){const d=Ud();nn(d),e({resolved:d})}}),{mode:n,resolved:s,setMode:l=>{const d=kc(l);localStorage.setItem(Sc,l),nn(d),e({mode:l,resolved:d})},toggle:()=>{const l=t().mode,d=l==="light"?"dark":l==="dark"?"system":"light";t().setMode(d)}}});var _r={},wc;function Yp(){if(wc)return _r;wc=1;var e=Wp();return _r.createRoot=e.createRoot,_r.hydrateRoot=e.hydrateRoot,_r}var Xp=Yp();let vt=0;function Tn(e){const t=e[e.length-1];return t&&t.type==="message"&&t.role==="assistant"&&t.streaming?e.length-1:-1}function Nt(e){const t=Tn(e);if(t===-1)return e;const r=[...e],n=r[t],s={streaming:!1};return n.thinking&&n.thinkingStartTime&&!n.thinkingDuration&&(s.thinkingDuration=Math.round((Date.now()-n.thinkingStartTime)/1e3)),r[t]={...n,...s},r}const Ye=ze((e,t)=>({timeline:[],childToolCalls:new Map,isAgentRunning:!1,stopReason:null,errorMessage:null,agentPhaseLabel:null,historyLoading:!1,hasPendingInterruption:!1,addUserMessage:(r,n,s)=>{e(l=>({timeline:[...Nt(l.timeline),{type:"message",id:`msg-${++vt}`,role:"user",content:r,...n&&n.length>0?{images:n}:{},...s&&s.length>0?{files:s}:{},timestamp:Date.now()}],isAgentRunning:!0,stopReason:null,errorMessage:null}))},addQueuedUserMessage:(r,n,s)=>{e(l=>({timeline:[...l.timeline,{type:"message",id:`msg-${++vt}`,role:"user",content:r,...n&&n.length>0?{images:n}:{},...s&&s.length>0?{files:s}:{},timestamp:Date.now()}]}))},addChunk:(r,n,s)=>{e(l=>{if(n){const o=l.timeline.findIndex(c=>c.type==="tool_call"&&c.id===n);if(o!==-1){const c=l.timeline[o],m=[...c.subagentTimeline||[]],h=m[m.length-1];h&&h.type==="message"&&h.streaming?m[m.length-1]={...h,content:h.content+r}:m.push({type:"message",id:`sub-msg-${++vt}`,content:r,streaming:!0});const b=[...l.timeline];return b[o]={...c,subagentTimeline:m},{timeline:b}}}const d=[...l.timeline],a=Tn(d);if(a!==-1){const o=d[a],c={content:o.content+r};s&&!o.isCompactInternal&&(c.isCompactInternal=!0),o.thinking&&o.thinkingStartTime&&!o.thinkingDuration&&!o.content&&(c.thinkingDuration=Math.round((Date.now()-o.thinkingStartTime)/1e3)),d[a]={...o,...c}}else d.push({type:"message",id:`msg-${++vt}`,role:"assistant",content:r,timestamp:Date.now(),streaming:!0,...s?{isCompactInternal:s}:{}});return{timeline:d}})},addThinkingChunk:(r,n)=>{e(s=>{if(n){const a=s.timeline.findIndex(o=>o.type==="tool_call"&&o.id===n);if(a!==-1){const o=s.timeline[a],c=[...o.subagentTimeline||[]],m=c[c.length-1];m&&m.type==="message"&&m.streaming?c[c.length-1]={...m,content:m.content+r}:c.push({type:"message",id:`sub-msg-${++vt}`,content:r,streaming:!0});const h=[...s.timeline];return h[a]={...o,subagentTimeline:c},{timeline:h}}}const l=[...s.timeline],d=Tn(l);if(d!==-1){const a=l[d];l[d]={...a,thinking:(a.thinking||"")+r,thinkingStartTime:a.thinkingStartTime||Date.now()}}else l.push({type:"message",id:`msg-${++vt}`,role:"assistant",content:"",thinking:r,thinkingStartTime:Date.now(),timestamp:Date.now(),streaming:!0});return{timeline:l}})},finalizeAssistantMessage:()=>{e(r=>({timeline:Nt(r.timeline)}))},addToolCall:r=>{e(n=>{const s=Nt(n.timeline);if(r.parentToolCallId){const l=new Map(n.childToolCalls);return l.set(r.id,{...r,type:"tool_call"}),{timeline:s.map(d=>{if(d.type==="tool_call"&&d.id===r.parentToolCallId){const a=(d.subagentTimeline||[]).map(o=>o.type==="message"&&o.streaming?{...o,streaming:!1}:o);return{...d,children:[...d.children||[],r.id],subagentTimeline:[...a,{type:"tool_call_ref",toolCallId:r.id}]}}return d}),childToolCalls:l}}return{timeline:[...s,{...r,type:"tool_call"}]}})},updateToolCall:(r,n)=>{e(s=>{const l=c=>!c||!Array.isArray(c)?!1:c.some(m=>m.type==="diff"),d=c=>{let m=n;if(l(c.content)&&n.content!==void 0&&!l(n.content)){const{content:h,...b}=n;m=b}return{...c,...m,type:"tool_call"}};if(s.timeline.some(c=>c.type==="tool_call"&&c.id===r))return{timeline:s.timeline.map(c=>c.type==="tool_call"&&c.id===r?d(c):c)};const o=s.childToolCalls.get(r);if(o){const c=new Map(s.childToolCalls);return c.set(r,d(o)),{childToolCalls:c}}return{}})},getChildToolCall:r=>t().childToolCalls.get(r),addQuestion:r=>{e(n=>n.timeline.some(l=>l.type==="question"&&l.toolCallId===r.toolCallId&&l.status==="pending")?n:{timeline:[...Nt(n.timeline),{...r,type:"question",status:"pending"}],hasPendingInterruption:!0})},submitQuestion:(r,n)=>{e(s=>{const l=s.timeline.map(a=>a.type==="question"&&a.id===r?{...a,status:"answered",answers:n}:a),d=l.some(a=>a.type==="interruption"&&!a.resolved||a.type==="question"&&a.status==="pending");return{timeline:l,hasPendingInterruption:d}})},cancelQuestion:r=>{e(n=>{const s=n.timeline.map(d=>d.type==="question"&&d.id===r?{...d,status:"cancelled"}:d),l=s.some(d=>d.type==="interruption"&&!d.resolved||d.type==="question"&&d.status==="pending");return{timeline:s,hasPendingInterruption:l}})},resolveQuestionByToolCallId:r=>{e(n=>{const s=n.timeline.map(d=>d.type==="question"&&d.toolCallId===r&&d.status==="pending"&&d.source==="interruption"?{...d,status:"cancelled"}:d),l=s.some(d=>d.type==="interruption"&&!d.resolved||d.type==="question"&&d.status==="pending");return{timeline:s,hasPendingInterruption:l}})},addInterruption:r=>{e(n=>r.toolCallId&&n.timeline.some(l=>l.type==="interruption"&&l.toolCallId===r.toolCallId&&!l.resolved)?n:{timeline:[...Nt(n.timeline),{...r,type:"interruption"}],hasPendingInterruption:!0})},resolveInterruption:(r,n)=>{e(s=>{const l=s.timeline.map(a=>a.type==="interruption"&&a.id===r?{...a,resolved:!0,decision:n}:a),d=l.some(a=>a.type==="interruption"&&!a.resolved||a.type==="question"&&a.status==="pending");return{timeline:l,hasPendingInterruption:d}})},resolveInterruptionByToolCallId:(r,n)=>{e(s=>{const l=s.timeline.map(a=>a.type==="interruption"&&a.toolCallId===r&&!a.resolved?{...a,resolved:!0,decision:n}:a),d=l.some(a=>a.type==="interruption"&&!a.resolved||a.type==="question"&&a.status==="pending");return{timeline:l,hasPendingInterruption:d}})},setHistoryLoading:r=>e({historyLoading:r}),addHistoryUserMessage:(r,n,s,l)=>{e(d=>({timeline:[...Nt(d.timeline),{type:"message",id:`msg-${++vt}`,role:"user",content:r,...n&&n.length>0?{images:n}:{},timestamp:Date.now(),...s?{isCompactInternal:s}:{},...l?{channel:l}:{}}]}))},setAgentRunning:r=>e({isAgentRunning:r,...r?{}:{agentPhaseLabel:null}}),setAgentPhaseLabel:r=>e({agentPhaseLabel:r}),setSessionEnd:(r,n)=>{t().finalizeAssistantMessage();const s=r==="end_turn";e(l=>{const d=l.timeline.map(o=>o.type==="tool_call"&&o.status==="running"?{...o,status:"completed"}:o.type==="interruption"&&!o.resolved?{...o,resolved:!0,decision:"deny"}:o.type==="question"&&o.status==="pending"?{...o,status:"cancelled"}:o),a=new Map(l.childToolCalls);for(const[o,c]of a)c.status==="running"&&a.set(o,{...c,status:"completed"});return{isAgentRunning:!1,hasPendingInterruption:!1,agentPhaseLabel:null,stopReason:s?null:r,errorMessage:s?null:n||null,timeline:d,childToolCalls:a}})},clearMessages:()=>e({timeline:[],childToolCalls:new Map,isAgentRunning:!1,stopReason:null,errorMessage:null,agentPhaseLabel:null,historyLoading:!1,hasPendingInterruption:!1}),clearChat:()=>{t().clearMessages()}})),Zp=Object.freeze(Object.defineProperty({__proto__:null,useChatStore:Ye},Symbol.toStringTag,{value:"Module"})),Jp="modulepreload",Qp=function(e){return"/"+e},Ec={},Lr=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){let d=function(c){return Promise.all(c.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),o=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=d(r.map(c=>{if(c=Qp(c),c in Ec)return;Ec[c]=!0;const m=c.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":Jp,m||(b.as="script"),b.crossOrigin="",b.href=c,o&&b.setAttribute("nonce",o),document.head.appendChild(b),m)return new Promise((v,S)=>{b.addEventListener("load",v),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${c}`)))})}))}function l(d){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=d,window.dispatchEvent(a),!a.defaultPrevented)throw d}return s.then(d=>{for(const a of d||[])a.status==="rejected"&&l(a.reason);return t().catch(l)})},gt=ze((e,t)=>({status:"disconnected",sessionId:null,models:[],currentModel:"",modes:[],currentMode:"default",commands:[],error:null,topic:null,thinkingEnabled:!1,promptSuggestion:null,externalInput:null,setStatus:r=>e({status:r}),setSessionId:r=>e({sessionId:r}),setModels:r=>e({models:r}),setCurrentModel:r=>e({currentModel:r}),setModes:r=>e({modes:r}),setCurrentMode:r=>e({currentMode:r}),setCommands:r=>e({commands:r}),setTopic:r=>e({topic:r}),setThinkingEnabled:r=>e({thinkingEnabled:r}),setPromptSuggestion:r=>e({promptSuggestion:r}),setExternalInput:r=>e({externalInput:r}),connect:async r=>{const n=Te();try{if(e({status:"connecting",error:null}),r){const{AcpClient:s}=await Lr(async()=>{const{AcpClient:a}=await Promise.resolve().then(()=>eh);return{AcpClient:a}},void 0),l=new s(void 0,r);l.on("status_change",a=>e({status:a})),l.on("model_update",a=>{e({models:a.availableModels||[],currentModel:a.currentModelId||""})});const{sessionId:d}=await l.initializeSession({continue:!0});e({status:"connected",sessionId:d})}else{const{sessionId:s}=await n.initializeSession({continue:!0});e({status:"connected",sessionId:s})}}catch(s){e({status:"error",error:s.message})}},disconnect:async()=>{await Te().disconnect(),e({status:"disconnected",sessionId:null})}}));async function _e(e,t,r){const n=(r==null?void 0:r.maxRetries)??3,s=(r==null?void 0:r.baseDelay)??500;for(let l=0;l<=n;l++)try{const d=await fetch(e,t);if(d.status>=500&&l<n){console.warn(`Request failed with ${d.status}, retrying (${l+1}/${n})...`),await new Promise(a=>setTimeout(a,s*Math.pow(2,l)));continue}return d}catch(d){if(l<n){console.warn(`Request failed with network error, retrying (${l+1}/${n})...`,d),await new Promise(a=>setTimeout(a,s*Math.pow(2,l)));continue}throw d}throw new Error("fetchWithRetry: max retries exceeded")}class Qn{constructor(t,r){$e(this,"baseUrl");$e(this,"token");$e(this,"connectionId",null);$e(this,"sessionToken",null);$e(this,"nextId",1);$e(this,"sseAbortController",null);$e(this,"sseReconnectTimer",null);$e(this,"reconnecting",null);$e(this,"listeners",new Map);$e(this,"_status","disconnected");$e(this,"pendingRequests",new Map);$e(this,"permissionRequestIds",new Map);$e(this,"permissionRequestToolCallIds",new Map);$e(this,"extMethodRequestIds",new Map);$e(this,"cancelling",!1);this.baseUrl=t||window.location.origin,this.token=r}get status(){return this._status}async connect(){var t,r;(t=this.sseAbortController)==null||t.abort(),this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.setStatus("connecting");try{const n={};this.token&&(n.Authorization=`Bearer ${this.token}`);const s=await _e(`${this.baseUrl}/api/v1/acp/connect`,{method:"POST",headers:n});if(!s.ok){let a="";try{const o=await s.json();(r=o==null?void 0:o.error)!=null&&r.message&&(a=o.error.message)}catch{}throw new Error(a||`ACP connect failed: ${s.status} ${s.statusText}`)}const{connectionId:l,sessionToken:d}=await s.json();this.connectionId=l,this.sessionToken=d,this.setStatus("connected"),this.sseAbortController=new AbortController,this.tryEstablishGetSse().catch(()=>{})}catch(n){throw this.setStatus("error"),n}}async tryEstablishGetSse(t=0){var d;const s={Accept:"text/event-stream"};this.connectionId&&(s["acp-connection-id"]=this.connectionId),this.token&&(s.Authorization=`Bearer ${this.token}`);const l=a=>{if(this._status==="connected"&&a<10){const o=Math.min(2e3*Math.pow(2,a),6e4);this.sseReconnectTimer=setTimeout(()=>{this.sseReconnectTimer=null,this.tryEstablishGetSse(a+1).catch(()=>{})},o)}};try{const a=await fetch(`${this.baseUrl}/api/v1/acp`,{headers:s,signal:(d=this.sseAbortController)==null?void 0:d.signal});a.ok?this.readSseStream(a).catch(o=>{o.name!=="AbortError"&&console.error("GET SSE stream error:",o)}).finally(()=>{l(0)}):l(t)}catch(a){a.name!=="AbortError"&&(console.warn("GET SSE connection failed (notifications will use POST stream):",a.message),l(t))}}async reconnect(){return this.reconnecting?this.reconnecting:(this.reconnecting=(async()=>{var t;try{(t=this.sseAbortController)==null||t.abort(),this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null);const r={};this.token&&(r.Authorization=`Bearer ${this.token}`);const n=await _e(`${this.baseUrl}/api/v1/acp/connect`,{method:"POST",headers:r});if(!n.ok)throw new Error(`Reconnect failed: ${n.status}`);const{connectionId:s,sessionToken:l}=await n.json();this.connectionId=s,this.sessionToken=l,await this.request("initialize",{protocolVersion:1,clientInfo:{name:"codebuddy-web-ui",version:"1.0.0"},clientCapabilities:{_meta:{"codebuddy.ai":{question:!0,promptSuggestion:!0}}}});let d=null;typeof window<"u"&&(d=new URLSearchParams(window.location.search).get("sessionId")),!d&&typeof sessionStorage<"u"&&(d=sessionStorage.getItem("acp-session-id")),d&&await this.request("session/load",{sessionId:d,cwd:".",mcpServers:[]}),this.sseAbortController=new AbortController,this.tryEstablishGetSse().catch(()=>{}),console.info("ACP connection re-established successfully")}finally{this.reconnecting=null}})(),this.reconnecting)}async disconnect(){var t;if((t=this.sseAbortController)==null||t.abort(),this.sseAbortController=null,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.connectionId)try{const r={"acp-connection-id":this.connectionId};this.sessionToken&&(r["acp-session-token"]=this.sessionToken),this.token&&(r.Authorization=`Bearer ${this.token}`),await fetch(`${this.baseUrl}/api/v1/acp`,{method:"DELETE",headers:r})}catch{}this.connectionId=null,this.sessionToken=null,this.setStatus("disconnected")}syncSessionIdToUrl(t){if(typeof window<"u"&&window.history&&window.location){const r=new URL(window.location.href);r.searchParams.get("sessionId")!==t&&(r.searchParams.set("sessionId",t),window.history.replaceState({},"",r.toString()))}}async initializeSession(t){var d,a;const r=(t==null?void 0:t.continue)??!1;await this.connect();const n=await this.request("initialize",{protocolVersion:1,clientInfo:{name:"codebuddy-web-ui",version:"1.0.0"},clientCapabilities:{_meta:{"codebuddy.ai":{question:!0,promptSuggestion:!0}}}});n.connectionId&&(this.connectionId=n.connectionId);let s=null;if(typeof window<"u"&&(s=new URLSearchParams(window.location.search).get("sessionId")),!s&&typeof sessionStorage<"u"&&(s=sessionStorage.getItem("acp-session-id")),s&&r)try{const o=await this.request("session/load",{sessionId:s,cwd:".",mcpServers:[]});return this.syncSessionIdToUrl(s),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",s),(d=n.agentCapabilities)!=null&&d.delegateToolsSupport&&await this.registerUIControlDelegateTool(s),{connectionId:this.connectionId||"",sessionId:s,models:o.models,modes:o.modes,configOptions:o.configOptions}}catch{typeof sessionStorage<"u"&&sessionStorage.removeItem("acp-session-id")}const l=await this.request("session/new",{cwd:".",mcpServers:[],...r&&{_meta:{"codebuddy.ai/continue":!0}}});return this.syncSessionIdToUrl(l.sessionId),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",l.sessionId),(a=n.agentCapabilities)!=null&&a.delegateToolsSupport&&await this.registerUIControlDelegateTool(l.sessionId),{connectionId:this.connectionId||"",sessionId:l.sessionId,models:l.models,modes:l.modes,configOptions:l.configOptions}}async registerUIControlDelegateTool(t){await this.request("_codebuddy.ai/delegateToolsChanged",{sessionId:t,changeType:"added",tools:[{id:"ui-query",name:"UI Query",description:"Query the current page to discover interactive elements (buttons, links, inputs, etc.). Returns a list of elements with their roles, labels, and states. Use this FIRST to understand what elements are available before performing actions with ui-control.",inputSchema:{type:"object",properties:{selector:{type:"string",description:"CSS selector to narrow search scope (optional)"},role:{type:"string",description:"Filter by element role: button, link, textbox, combobox, checkbox, radio, tab, menuitem, etc."},includeHidden:{type:"boolean",description:"Include hidden elements (default: false)"},limit:{type:"number",description:"Max number of elements to return (default: 50)"}}},provider:"web-ui",category:"ui",requiresApproval:!1},{id:"ui-control",name:"UI Control",description:"Perform actions on Web UI elements: click buttons, fill forms, scroll, focus. Use ui-query first to discover available elements, then use this tool to interact with them.",inputSchema:{type:"object",properties:{action:{type:"string",enum:["click","fill","scroll","focus","select"],description:"The action to perform"},target:{type:"object",properties:{selector:{type:"string",description:"CSS selector"},text:{type:"string",description:"Match element by text content"},label:{type:"string",description:"Match element by aria-label or label text"},role:{type:"string",description:"Match element by ARIA role (button, textbox, etc.)"},index:{type:"number",description:"Index of matching element (0-based)"}},description:"Target element specification"},value:{type:"string",description:"Value for fill action"}},required:["action","target"]},provider:"web-ui",category:"ui",requiresApproval:!1}],timestamp:Date.now()})}async prompt(t,r,n,s){const l=[];if(n)for(const d of n)l.push({type:"image",data:d.data,mimeType:d.mimeType});if(s)for(const d of s)l.push({type:"resource",resource:{uri:`file://${d.name}`,text:d.text,mimeType:d.mimeType}});return r&&l.push({type:"text",text:r}),this.request("session/prompt",{sessionId:t,prompt:l})}async loadSession(t){return this.request("session/load",{sessionId:t,cwd:".",mcpServers:[]})}async cancel(t){this.cancelling=!0,await this.notify("session/cancel",{sessionId:t})}clearPermissionRequestByToolCallId(t){const r=this.permissionRequestToolCallIds.get(t);r&&(this.permissionRequestToolCallIds.delete(t),this.permissionRequestIds.delete(r))}async respondToInterruption(t,r,n,s){const l=s?this.permissionRequestToolCallIds.get(s):void 0,d=[];if(l)try{await this.approveInterruption(t,l,n)}catch(a){d.push(a instanceof Error?a:new Error(String(a)))}if(s){try{await this.resolveInterruption(t,s,n)}catch(a){d.push(a instanceof Error?a:new Error(String(a)))}if(d.length>0&&d.length===(l?2:1))throw d[0];return}if(!l){await this.approveInterruption(t,r,n);return}if(d.length>0)throw d[0]}async approveInterruption(t,r,n){const s=this.permissionRequestIds.get(r);if(s===void 0){console.error(`No pending permission request for interruption: ${r}`);return}this.permissionRequestIds.delete(r);for(const[d,a]of this.permissionRequestToolCallIds.entries())a===r&&this.permissionRequestToolCallIds.delete(d);const l=this.mapPermissionDecisionToOptionId(n);await this.sendJsonRpcResult(s,{outcome:{outcome:"selected",optionId:l}})}async resolveInterruption(t,r,n,s){await this.request("_codebuddy.ai/resolveInterruption",{sessionId:t,toolCallId:r,decision:n,...s?{answers:s}:{}})}async submitQuestionAnswers(t,r,n){const s=this.extMethodRequestIds.get(r);if(s===void 0)throw new Error(`No pending question request for toolCallId: ${r}`);await this.sendJsonRpcResult(s,{outcome:"submitted",answers:n}),this.extMethodRequestIds.delete(r)}async cancelQuestionAnswers(t,r){const n=this.extMethodRequestIds.get(r);if(n===void 0)throw new Error(`No pending question request for toolCallId: ${r}`);await this.sendJsonRpcResult(n,{outcome:"cancelled"}),this.extMethodRequestIds.delete(r)}async setModel(t,r){await this.request("session/set_model",{sessionId:t,modelId:r})}async setMode(t,r){await this.request("session/set_mode",{sessionId:t,modeId:r})}async setConfigOption(t,r,n){return this.request("session/set_config_option",{sessionId:t,configId:r,value:n})}async getUserInfo(){return this.request("_codebuddy.ai/getUserInfo",{})}on(t,r){return this.listeners.has(t)||this.listeners.set(t,[]),this.listeners.get(t).push(r),()=>{const n=this.listeners.get(t);if(n){const s=n.indexOf(r);s!==-1&&n.splice(s,1)}}}request(t,r){const n=this.nextId++,s={jsonrpc:"2.0",id:n,method:t,params:r},l=this.buildAcpHeaders();return new Promise((d,a)=>{this.pendingRequests.set(n,{resolve:d,reject:a});const o=new XMLHttpRequest;o.open("POST",`${this.baseUrl}/api/v1/acp`,!0);for(const[b,v]of Object.entries(l))o.setRequestHeader(b,v);let c=0,m="";const h=()=>{const b=o.responseText;if(b.length<=c)return;const v=b.substring(c);c=b.length,m+=v;const S=m.split(`
|
|
2
|
+
|
|
3
|
+
`);m=S.pop()||"";for(const x of S){const p=x.split(`
|
|
4
|
+
`);let g="";for(const u of p)u.startsWith("data: ")&&(g+=u.substring(6));if(g)try{const u=JSON.parse(g);this.handleMessage(u)}catch{}}};o.onprogress=h,o.onload=()=>{var v;if(h(),o.status<200||o.status>=300){const S=this.pendingRequests.get(n);if(S){if(this.pendingRequests.delete(n),o.status===409&&t!=="initialize"){console.warn(`ACP connection lost (409), reconnecting and retrying ${t}...`),this.reconnect().then(()=>this.request(t,r)).then(p=>S.resolve(p),p=>S.reject(p));return}let x="";try{const p=JSON.parse(o.responseText);(v=p==null?void 0:p.error)!=null&&v.message&&(x=p.error.message)}catch{}S.reject(new Error(x||`ACP request failed: ${o.status} ${o.statusText}`))}return}if(m.trim()){const S=m.split(`
|
|
5
|
+
`);let x="";for(const p of S)p.startsWith("data: ")&&(x+=p.substring(6));if(x)try{const p=JSON.parse(x);this.handleMessage(p)}catch{}}const b=this.pendingRequests.get(n);b&&(this.pendingRequests.delete(n),this.cancelling&&t==="session/prompt"?(this.cancelling=!1,b.resolve({stopReason:"cancelled"})):b.reject(new Error(`No response received for request: ${t}`)))},o.onerror=()=>{const b=this.pendingRequests.get(n);b&&(this.pendingRequests.delete(n),b.reject(new Error(`Network error during ACP request: ${t}`)))},o.ontimeout=()=>{const b=this.pendingRequests.get(n);b&&(this.pendingRequests.delete(n),b.reject(new Error(`Request timeout: ${t}`)))},o.timeout=t==="session/prompt"?0:600*1e3,o.send(JSON.stringify(s))})}async notify(t,r){const n={jsonrpc:"2.0",method:t,params:r};await fetch(`${this.baseUrl}/api/v1/acp`,{method:"POST",headers:this.buildAcpHeaders(),body:JSON.stringify(n)})}async readSseStream(t){var l;const r=(l=t.body)==null?void 0:l.getReader();if(!r)return;const n=new TextDecoder;let s="";try{for(;;){const{done:d,value:a}=await r.read();if(d)break;s+=n.decode(a,{stream:!0});const o=s.split(`
|
|
6
|
+
|
|
7
|
+
`);s=o.pop()||"";for(const c of o){const m=c.split(`
|
|
8
|
+
`);let h="";for(const b of m)b.startsWith("data: ")&&(h+=b.substring(6));if(h)try{const b=JSON.parse(h);this.handleMessage(b)}catch{}}}}finally{r.releaseLock()}}handleMessage(t){if("method"in t&&"id"in t&&t.id!==void 0&&t.id!==null){if(t.method==="session/request_permission"){this.handlePermissionRequest(t.id,t.params);return}if(t.method==="_codebuddy.ai/question"){this.handleExtMethodQuestion(t.id,t.params);return}if(t.method==="_codebuddy.ai/delegateTool"){this.handleExtMethodDelegateTool(t.id,t.params);return}return}if("id"in t&&t.id!==void 0&&t.id!==null&&!("method"in t)){const r=this.pendingRequests.get(t.id);r&&(this.pendingRequests.delete(t.id),"error"in t&&t.error?r.reject(new Error(t.error.message)):r.resolve(t.result))}if("method"in t&&t.method==="session/update"){const r=t.params;if(r!=null&&r.update){const n=r.update,l=((n==null?void 0:n._meta)||{})["codebuddy.ai/interruptionRequest"];l&&this.emit("interruption_request",{sessionUpdate:"interruption_request",sessionId:r.sessionId,interruptionId:l.interruptionId||`ir-${l.toolCallId}`,reason:"Tool requires approval",options:l.options||[],toolName:l.toolName,toolTitle:l.toolTitle,toolInput:l.toolInput,toolCallId:l.toolCallId});const d=r.update.sessionUpdate;this.emit(d,r.update)}}else if("method"in t&&t.method!=="session/update"&&!("id"in t&&t.id!==void 0&&t.id!==null)&&t.method==="_codebuddy.ai/checkpoint"){const n=t.params;(n==null?void 0:n.event)==="created"?this.emit("checkpointCreated",n.checkpoint):(n==null?void 0:n.event)==="updated"?this.emit("checkpointUpdated",n.checkpoint):(n==null?void 0:n.event)==="reverted"&&this.emit("checkpointReverted",n.checkpoint)}}mapPermissionDecisionToOptionId(t){return t==="allowAll"?"allow_always":t==="allow"?"allow":t==="rejectAndExitPlan"?"reject_and_exit_plan":"reject"}async sendJsonRpcResult(t,r){var l;const n={jsonrpc:"2.0",id:t,result:r},s=await fetch(`${this.baseUrl}/api/v1/acp`,{method:"POST",headers:this.buildAcpHeaders(),body:JSON.stringify(n)});if(!s.ok){let d="";try{const a=await s.json();(l=a==null?void 0:a.error)!=null&&l.message&&(d=a.error.message)}catch{}throw new Error(d||`ACP response failed: ${s.status} ${s.statusText}`)}}buildAcpHeaders(){const t={"Content-Type":"application/json",Accept:"application/json, text/event-stream"};return this.connectionId&&(t["acp-connection-id"]=this.connectionId),this.sessionToken&&(t["acp-session-token"]=this.sessionToken),this.token&&(t.Authorization=`Bearer ${this.token}`),t}handlePermissionRequest(t,r){var c;const n=r==null?void 0:r.toolCall,s=`perm-${t}`,l=((c=n==null?void 0:n._meta)==null?void 0:c["codebuddy.ai/toolName"])||(n==null?void 0:n.toolName)||"tool",d=(n==null?void 0:n.title)||l,a=n==null?void 0:n.rawInput,o=n==null?void 0:n.toolCallId;this.permissionRequestIds.set(s,t),o&&this.permissionRequestToolCallIds.set(o,s),this.emit("interruption_request",{sessionUpdate:"interruption_request",interruptionId:s,reason:"Tool requires approval",options:((r==null?void 0:r.options)||[]).map(m=>m.optionId||m.name),toolName:l,toolTitle:d,toolInput:a,toolCallId:o})}handleExtMethodQuestion(t,r){const{sessionId:n,toolCallId:s,schema:l}=r||{},d=((l==null?void 0:l.questions)||[]).map(a=>({id:a.id,question:a.question,header:a.header||"",options:(a.options||[]).map(o=>({label:o.label||"",description:o.description||""})),multiSelect:!!a.multiSelect}));this.extMethodRequestIds.set(s,t),this.emit("question_request",{toolCallId:s,sessionId:n,questions:d})}async handleExtMethodDelegateTool(t,r){const{toolId:n,input:s}=r||{};try{if(n==="ui-control"){const{uiController:l}=await Lr(async()=>{const{uiController:a}=await import("./index-DixJ0kqk.js");return{uiController:a}},[]),d=await l.execute({sessionId:r.sessionId,action:s.action,target:s.target,value:s.value});await this.sendJsonRpcResult(t,{status:"success",output:d})}else if(n==="ui-query"){const{uiController:l}=await Lr(async()=>{const{uiController:a}=await import("./index-DixJ0kqk.js");return{uiController:a}},[]),d=await l.queryElements({selector:s==null?void 0:s.selector,role:s==null?void 0:s.role,includeHidden:s==null?void 0:s.includeHidden,limit:s==null?void 0:s.limit});await this.sendJsonRpcResult(t,{status:"success",output:d})}else await this.sendJsonRpcResult(t,{status:"error",error:{message:`Unknown delegate tool: ${n}`}})}catch(l){await this.sendJsonRpcResult(t,{status:"error",error:{message:l instanceof Error?l.message:String(l)}})}}emit(t,r){const n=this.listeners.get(t);if(n)for(const s of n)try{s(r)}catch(l){console.error(`Event handler error for ${t}:`,l)}}setStatus(t){this._status=t,this.emit("status_change",t)}}const eh=Object.freeze(Object.defineProperty({__proto__:null,AcpClient:Qn,fetchWithRetry:_e},Symbol.toStringTag,{value:"Module"})),zd="codebuddy.auth.token";function Ut(){try{return sessionStorage.getItem(zd)}catch{return null}}function Hd(e){try{sessionStorage.setItem(zd,e)}catch{}}function me(e){const t={...e},r=Ut();return r&&(t.Authorization=`Bearer ${r}`),t}const Gd=ze(e=>({viewState:"loading",error:null,isSubmitting:!1,checkAuth:async()=>{try{e({viewState:"loading",error:null});const t=await _e("/api/v1/auth/status",{headers:me()});if(!t.ok){e({viewState:"authenticated"});return}const r=await t.json();!r.authEnabled||r.authenticated?e({viewState:"authenticated"}):e({viewState:"login"})}catch(t){console.warn("[auth] Failed to check auth status, falling back to authenticated:",t),e({viewState:"authenticated"})}},login:async t=>{try{e({isSubmitting:!0,error:null});const n=await(await fetch("/api/v1/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t})})).json();if(n.success){const s=n.token||t;return Hd(s),e({viewState:"authenticated",isSubmitting:!1,error:null}),!0}return e({error:n.error||"login.error.incorrect",isSubmitting:!1}),!1}catch(r){return console.warn("[auth] Login request failed:",r),e({error:"app.connectFailed",isSubmitting:!1}),!1}},clearError:()=>e({error:null})})),tr=ze((e,t)=>({fileChanges:[],selectedFile:null,selectedDiff:null,diffLoading:!1,isCollapsed:!0,checkpoints:[],showCheckpoints:!1,reverting:!1,onCheckpoint:r=>{const{fileChanges:n}=t(),s=new Map;for(const l of n)s.set(l.uri,l);for(const l of r.fileChanges.files)s.set(l.uri,l);e({fileChanges:Array.from(s.values())})},selectFile:async r=>{const{selectedFile:n}=t();if(n===r){e({selectedFile:null,selectedDiff:null});return}e({selectedFile:r,selectedDiff:null,diffLoading:!0});try{const s=await _e(`/api/v1/file-changes/diff?path=${encodeURIComponent(r)}`,{headers:me()});s.ok?e({selectedDiff:await s.json(),diffLoading:!1}):e({diffLoading:!1})}catch{e({diffLoading:!1})}},setCollapsed:r=>e({isCollapsed:r}),setShowCheckpoints:r=>e({showCheckpoints:r}),loadCheckpoints:async()=>{try{const r=await _e("/api/v1/file-changes/checkpoints",{headers:me()});if(r.ok){const s=((await r.json()).checkpoints||[]).sort((l,d)=>d.createdAt-l.createdAt);e({checkpoints:s})}}catch{}},revertFiles:async r=>{e({reverting:!0});try{const n=await _e("/api/v1/file-changes/revert",{method:"POST",headers:{...me(),"Content-Type":"application/json"},body:JSON.stringify({paths:r})});if(n.ok){const s=await n.json(),l=new Set(s.revertedFiles||[]);e(d=>({fileChanges:d.fileChanges.filter(a=>!l.has(a.uri)),selectedFile:l.has(d.selectedFile||"")?null:d.selectedFile,selectedDiff:l.has(d.selectedFile||"")?null:d.selectedDiff}))}}finally{e({reverting:!1})}},revertAll:async()=>{e({reverting:!0});try{(await _e("/api/v1/file-changes/revert",{method:"POST",headers:{...me(),"Content-Type":"application/json"},body:JSON.stringify({})})).ok&&e({fileChanges:[],selectedFile:null,selectedDiff:null})}finally{e({reverting:!1})}},revertToCheckpoint:async(r,n="CodeAndConversation")=>{e({reverting:!0});try{if((await _e("/api/v1/file-changes/revert",{method:"POST",headers:{...me(),"Content-Type":"application/json"},body:JSON.stringify({checkpointId:r,scope:n})})).ok){if((n==="Code"||n==="CodeAndConversation")&&e({fileChanges:[],selectedFile:null,selectedDiff:null}),n==="Conversation"||n==="CodeAndConversation")try{const{useChatStore:l}=await Lr(async()=>{const{useChatStore:o}=await Promise.resolve().then(()=>Zp);return{useChatStore:o}},void 0);l.getState().clearChat();const d=Te(),a=sessionStorage.getItem("acp-session-id");d&&a&&await d.loadSession(a)}catch(l){console.error("Failed to reload session after revert:",l)}t().loadCheckpoints()}}finally{e({reverting:!1})}},reset:()=>e({fileChanges:[],selectedFile:null,selectedDiff:null,diffLoading:!1,isCollapsed:!0,checkpoints:[],showCheckpoints:!1,reverting:!1})})),Be=ze(e=>({isInTeam:!1,teamName:null,isAutoTeam:!1,members:[],focusedMemberName:null,memberHistories:{},setTeamStatus:t=>e({isInTeam:t.isInTeam,teamName:t.teamName||null,isAutoTeam:t.isAutoTeam||!1,members:t.members}),updateMembers:t=>e({members:t}),setFocusedMember:t=>e({focusedMemberName:t}),setMemberHistory:(t,r)=>e(n=>({memberHistories:{...n.memberHistories,[t]:r}})),clearTeam:()=>e({isInTeam:!1,teamName:null,isAutoTeam:!1,members:[],focusedMemberName:null,memberHistories:{}})})),Wd=ze(e=>({userInfo:null,loading:!1,error:null,fetchUserInfo:async t=>{e({loading:!0,error:null});try{const r=await t.getUserInfo();r.userInfo?e({userInfo:r.userInfo,loading:!1}):e({loading:!1})}catch(r){console.warn("[user] Failed to fetch user info:",r),e({error:r.message,loading:!1})}},clearUserInfo:()=>{e({userInfo:null,error:null})}})),th={preparing:"preparing",model_requesting:"waiting for model",model_streaming:"streaming",model_done:"processing",tool_executing:"running tool",idle:null};function rh(e){return e.phase==="tool_executing"&&e.toolName?`running ${e.toolName}`:th[e.phase]??null}let St=null;function Te(){return St||(St=new Qn),St}function nh(){const e=C.useRef(Te()),[t,r]=C.useState(0),{sessionId:n,setStatus:s,setSessionId:l,setModels:d,setCurrentModel:a,setModes:o,setCurrentMode:c,setCommands:m,setTopic:h,setThinkingEnabled:b,setPromptSuggestion:v}=gt(),{addChunk:S,addThinkingChunk:x,addToolCall:p,updateToolCall:g,addInterruption:u,addQuestion:f,setSessionEnd:y,resolveInterruptionByToolCallId:k,resolveQuestionByToolCallId:_,setHistoryLoading:E,addHistoryUserMessage:w,finalizeAssistantMessage:N,clearChat:I,setAgentPhaseLabel:A}=Ye();C.useEffect(()=>{const B=e.current,F=[],z=(P,U)=>{if(!U)return!1;try{const L=(U._meta||{})["codebuddy.ai/memberEvent"];if(!L)return!1;const $=Be.getState(),R=$.memberHistories[L]||[];return $.setMemberHistory(L,[...R,{sessionUpdate:P,...U}]),!0}catch{return!1}};return F.push(B.on("user_message_chunk",P=>{if(z("user_message_chunk",P))return;const U=P.content,T=P._meta||{},L=!!T["codebuddy.ai/isCompactInternal"];let $;const R=T["codebuddy.ai/images"];Array.isArray(R)&&R.length>0&&($=R.filter(Y=>Y.blobPath&&Y.mimeType).map(Y=>({url:`/api/v1/files/download?path=${encodeURIComponent(Y.blobPath)}`,mimeType:Y.mimeType})),$.length===0&&($=void 0));let q;const W=T["codebuddy.ai/channelSource"];W&&(q={source:W,sender:T["codebuddy.ai/channelSender"]||"",senderName:T["codebuddy.ai/channelSenderName"],chatId:T["codebuddy.ai/channelChatId"],chatType:T["codebuddy.ai/channelChatType"]}),U&&typeof U.text=="string"&&w(U.text,$,L,q)})),F.push(B.on("agent_message_chunk",P=>{if(z("agent_message_chunk",P))return;const U=P.content,T=P._meta||{},L=T["codebuddy.ai/parentToolCallId"],$=!!T["codebuddy.ai/isCompactInternal"];typeof U=="string"?S(U,L,$):U&&U.type==="thinking"&&typeof U.text=="string"?x(U.text,L):U&&typeof U.text=="string"&&S(U.text,L,$)})),F.push(B.on("tool_call",P=>{if(z("tool_call",P))return;const U=P._meta||{},T=U["codebuddy.ai/parentToolCallId"],L=!!U["codebuddy.ai/isSubagent"],$=P.toolName||U["codebuddy.ai/toolName"]||"",R=U["codebuddy.ai/planContent"];p({id:P.toolCallId,name:P.title||$||P.kind||"tool",kind:P.kind||"other",toolName:$,input:P.rawInput||P.input,status:"running",locations:P.locations,content:P.content,parentToolCallId:T,subagent:L?{type:U["codebuddy.ai/subagentType"]||"general-purpose",description:U["codebuddy.ai/description"]||"",isBackground:!!U["codebuddy.ai/isBackground"],memberName:U["codebuddy.ai/memberName"]||void 0}:void 0,planContent:R})})),F.push(B.on("tool_call_update",P=>{if(z("tool_call_update",P))return;const T={status:P.status==="completed"?"completed":P.status==="failed"?"failed":P.toolStatus==="completed"?"completed":P.toolStatus==="failed"?"failed":"running",result:P.rawOutput||P.toolResult};P.content!==void 0&&(T.content=P.content),g(P.toolCallId,T)})),F.push(B.on("interruption_request",P=>{var U;if(P.toolName==="AskUserQuestion"){const T=Array.isArray((U=P.toolInput)==null?void 0:U.questions)?P.toolInput.questions:[];f({id:P.toolCallId,toolCallId:P.toolCallId,sessionId:P.sessionId||n||"",source:"interruption",questions:T.map((L,$)=>({id:L.id||`q_${$}`,question:L.question||"",header:L.header||"",options:Array.isArray(L.options)?L.options.map(R=>({label:String((R==null?void 0:R.label)||""),description:String((R==null?void 0:R.description)||"")})):[],multiSelect:!!L.multiSelect}))});return}u({id:P.interruptionId,sessionId:P.sessionId,reason:P.reason,options:P.options,toolName:P.toolName,toolTitle:P.toolTitle,toolInput:P.toolInput,toolCallId:P.toolCallId})})),F.push(B.on("question_request",P=>{f({id:P.toolCallId,toolCallId:P.toolCallId,sessionId:P.sessionId,source:"extMethod",questions:P.questions||[]})})),F.push(B.on("session_end",P=>{y(P.stopReason,P.errorMessage)})),F.push(B.on("session_info_update",P=>{P.title&&h(P.title);const U=P._meta||{};if(U["codebuddy.ai/historyReplay"]==="start"?E(!0):U["codebuddy.ai/historyReplay"]==="end"&&(E(!1),N()),U["codebuddy.ai/agentPhase"]){const L=U["codebuddy.ai/agentPhase"];A(rh(L))}if(U["codebuddy.ai/sessionReset"]){const L=U["codebuddy.ai/newSessionId"];if(L){if(I(),h(null),v(null),l(L),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",L),typeof window<"u"&&window.history&&window.location){const $=new URL(window.location.href);$.searchParams.get("sessionId")!==L&&($.searchParams.set("sessionId",L),window.history.replaceState({},"",$.toString()))}B.loadSession(L).then(M).catch($=>console.error("Failed to load new session after reset:",$))}}if(U["codebuddy.ai/permissionResolved"]){const L=U["codebuddy.ai/toolCallId"],$=U["codebuddy.ai/decision"];L&&$&&(Te().clearPermissionRequestByToolCallId(L),k(L,$),_(L))}if("codebuddy.ai/promptSuggestion"in U){const L=U["codebuddy.ai/promptSuggestion"];v(L||null)}const T=U["codebuddy.ai/teamUpdate"];if(T)switch(T.type){case"member_status_change":T.members&&(T.teamName?Be.getState().setTeamStatus({isInTeam:!0,teamName:T.teamName,isAutoTeam:T.isAutoTeam,members:T.members}):Be.getState().updateMembers(T.members));break;case"team_created":Be.getState().setTeamStatus({isInTeam:!0,teamName:T.teamName,members:[]});break;case"team_deleted":Be.getState().clearTeam();break}})),F.push(B.on("model_update",P=>{d(P.availableModels||[]),a(P.currentModelId||"")})),F.push(B.on("mode_update",P=>{P.availableModes&&o(P.availableModes),P.currentModeId&&c(P.currentModeId)})),F.push(B.on("current_mode_update",P=>{P.currentModeId&&c(P.currentModeId)})),F.push(B.on("config_option_update",P=>{const U=P.configOptions||[];for(const T of U)T.id==="thought_level"?b(T.currentValue==="enabled"):T.id==="mode"&&T.currentValue?c(T.currentValue):T.id==="model"&&T.currentValue&&(a(T.currentValue),T.options&&d(T.options.map(L=>({id:L.value,name:L.name||L.value}))))})),F.push(B.on("status_change",P=>{s(P)})),F.push(B.on("available_commands_update",P=>{P.availableCommands&&m(P.availableCommands.map(U=>{var T;return{name:U.name,description:U.description||"",...((T=U._meta)==null?void 0:T.type)==="skill"?{type:"skill"}:{}}}))})),F.push(B.on("checkpointCreated",P=>{tr.getState().onCheckpoint(P)})),F.push(B.on("checkpointUpdated",P=>{tr.getState().onCheckpoint(P)})),F.push(B.on("checkpointReverted",()=>{tr.getState().reset()})),()=>{F.forEach(P=>P())}},[t,n,S,x,p,g,u,f,y,k,_,d,a,o,c,m,h,b,s,E,w,N,I,l,v]);const M=C.useCallback(B=>{if(B.models&&(d(B.models.availableModels.map(F=>({id:F.modelId,name:F.name}))),a(B.models.currentModelId)),B.modes&&(o(B.modes.availableModes),c(B.modes.currentModeId)),B.configOptions)for(const F of B.configOptions)F.id==="thought_level"&&b(F.currentValue==="enabled")},[d,a,o,c,b]),O=C.useCallback(async B=>{const F=typeof B=="string"?B:B==null?void 0:B.token,z=typeof B=="object"?B==null?void 0:B.continue:!1;if(F){if(St)try{await St.disconnect()}catch{}St=new Qn(void 0,F),e.current=St,r(P=>P+1)}try{s("connecting"),v(null);const P=await e.current.initializeSession({continue:z});l(P.sessionId),M(P),s("connected"),Wd.getState().fetchUserInfo(e.current)}catch(P){console.error("Connection failed:",P),s("error")}},[s,l,M,v]);return{client:e.current,connect:O}}const qd="/assets/dark-claw-cat-D_ew_BKV.png",Vd="/assets/light-claw-cat-BgBWmnmi.png",Kd="/assets/red-claw-cat--t2EuBIB.png",Yd={small:{container:"w-20 h-20",text:"text-[12px]"},medium:{container:"w-32 h-32",text:"text-[14px]"},large:{container:"w-40 h-40",text:"text-[16px]"}};function Xd({size:e="medium",className:t=""}){const n=tt(l=>l.resolved)==="dark"?qd:Vd,s=Yd[e];return i.jsxs("div",{className:`relative ${s.container} ${t}`,children:[i.jsx("img",{src:n,alt:"",className:"cat-loading-layer cat-loading-layer-base absolute inset-0 w-full h-full object-contain",decoding:"async",loading:"eager"}),i.jsx("img",{src:Kd,alt:"",className:"cat-loading-layer cat-loading-layer-color absolute inset-0 w-full h-full object-contain",decoding:"async",loading:"eager"})]})}function Qe({size:e="medium",text:t="Loading...",className:r=""}){const n=Yd[e];return i.jsxs("div",{className:`flex flex-col items-center justify-center gap-4 ${r}`,children:[i.jsx(Xd,{size:e}),t&&i.jsx("div",{className:`text-text-secondary ${n.text} font-medium animate-pulse`,children:t})]})}function ih({size:e="medium",className:t=""}){return i.jsx(Xd,{size:e,className:t})}/**
|
|
9
|
+
* @license lucide-react v1.7.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/const Zd=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
14
|
+
* @license lucide-react v1.7.0 - ISC
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the ISC license.
|
|
17
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/const sh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
19
|
+
* @license lucide-react v1.7.0 - ISC
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the ISC license.
|
|
22
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/const ah=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
|
|
24
|
+
* @license lucide-react v1.7.0 - ISC
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the ISC license.
|
|
27
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/const Cc=e=>{const t=ah(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
29
|
+
* @license lucide-react v1.7.0 - ISC
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the ISC license.
|
|
32
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var sn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
34
|
+
* @license lucide-react v1.7.0 - ISC
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the ISC license.
|
|
37
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/const oh=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},lh=C.createContext({}),ch=()=>C.useContext(lh),dh=C.forwardRef(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:n,className:s="",children:l,iconNode:d,...a},o)=>{const{size:c=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,color:b="currentColor",className:v=""}=ch()??{},S=n??h?Number(r??m)*24/Number(t??c):r??m;return C.createElement("svg",{ref:o,...sn,width:t??c??sn.width,height:t??c??sn.height,stroke:e??b,strokeWidth:S,className:Zd("lucide",v,s),...!l&&!oh(a)&&{"aria-hidden":"true"},...a},[...d.map(([x,p])=>C.createElement(x,p)),...Array.isArray(l)?l:[l]])});/**
|
|
39
|
+
* @license lucide-react v1.7.0 - ISC
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the ISC license.
|
|
42
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/const Q=(e,t)=>{const r=C.forwardRef(({className:n,...s},l)=>C.createElement(dh,{ref:l,iconNode:t,className:Zd(`lucide-${sh(Cc(e))}`,`lucide-${e}`,n),...s}));return r.displayName=Cc(e),r};/**
|
|
44
|
+
* @license lucide-react v1.7.0 - ISC
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the ISC license.
|
|
47
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/const uh=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Jd=Q("activity",uh);/**
|
|
49
|
+
* @license lucide-react v1.7.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/const ph=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],cr=Q("arrow-left",ph);/**
|
|
54
|
+
* @license lucide-react v1.7.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/const hh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],mh=Q("arrow-right",hh);/**
|
|
59
|
+
* @license lucide-react v1.7.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/const gh=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Nn=Q("arrow-up",gh);/**
|
|
64
|
+
* @license lucide-react v1.7.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const fh=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]],Mt=Q("blocks",fh);/**
|
|
69
|
+
* @license lucide-react v1.7.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const bh=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Qd=Q("book-open",bh);/**
|
|
74
|
+
* @license lucide-react v1.7.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const yh=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],An=Q("bot",yh);/**
|
|
79
|
+
* @license lucide-react v1.7.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const _h=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kt=Q("check",_h);/**
|
|
84
|
+
* @license lucide-react v1.7.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const vh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],it=Q("chevron-down",vh);/**
|
|
89
|
+
* @license lucide-react v1.7.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const xh=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Sh=Q("chevron-left",xh);/**
|
|
94
|
+
* @license lucide-react v1.7.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const kh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],De=Q("chevron-right",kh);/**
|
|
99
|
+
* @license lucide-react v1.7.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const wh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Eh=Q("circle-alert",wh);/**
|
|
104
|
+
* @license lucide-react v1.7.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const Ch=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],eu=Q("circle-check",Ch);/**
|
|
109
|
+
* @license lucide-react v1.7.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const Th=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Nh=Q("circle-question-mark",Th);/**
|
|
114
|
+
* @license lucide-react v1.7.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const Ah=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Rn=Q("circle-x",Ah);/**
|
|
119
|
+
* @license lucide-react v1.7.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const Rh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ih=Q("circle",Rh);/**
|
|
124
|
+
* @license lucide-react v1.7.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const Lh=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v.832",key:"1ujtp2"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2",key:"qvpao1"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],tu=Q("clipboard-clock",Lh);/**
|
|
129
|
+
* @license lucide-react v1.7.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const Oh=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],$h=Q("clipboard-list",Oh);/**
|
|
134
|
+
* @license lucide-react v1.7.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const Dh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],ar=Q("clock",Dh);/**
|
|
139
|
+
* @license lucide-react v1.7.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const Mh=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],ru=Q("code",Mh);/**
|
|
144
|
+
* @license lucide-react v1.7.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const jh=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Tc=Q("columns-2",jh);/**
|
|
149
|
+
* @license lucide-react v1.7.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const Fh=[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ph=Q("copy-minus",Fh);/**
|
|
154
|
+
* @license lucide-react v1.7.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const Bh=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],In=Q("copy",Bh);/**
|
|
159
|
+
* @license lucide-react v1.7.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const Uh=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Nc=Q("corner-down-left",Uh);/**
|
|
164
|
+
* @license lucide-react v1.7.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const zh=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],Hh=Q("corner-down-right",zh);/**
|
|
169
|
+
* @license lucide-react v1.7.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const Gh=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],zt=Q("cpu",Gh);/**
|
|
174
|
+
* @license lucide-react v1.7.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const Wh=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],nu=Q("download",Wh);/**
|
|
179
|
+
* @license lucide-react v1.7.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const qh=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],nt=Q("external-link",qh);/**
|
|
184
|
+
* @license lucide-react v1.7.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const Vh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Kh=Q("file-code",Vh);/**
|
|
189
|
+
* @license lucide-react v1.7.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const Yh=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],iu=Q("file-pen",Yh);/**
|
|
194
|
+
* @license lucide-react v1.7.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const Xh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],Zh=Q("file-plus",Xh);/**
|
|
199
|
+
* @license lucide-react v1.7.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const Jh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],et=Q("file-text",Jh);/**
|
|
204
|
+
* @license lucide-react v1.7.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const Qh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],su=Q("file",Qh);/**
|
|
209
|
+
* @license lucide-react v1.7.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const em=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],tm=Q("files",em);/**
|
|
214
|
+
* @license lucide-react v1.7.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const rm=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M2 10h20",key:"1ir3d8"}]],nm=Q("folder-closed",rm);/**
|
|
219
|
+
* @license lucide-react v1.7.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const im=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],ei=Q("folder-open",im);/**
|
|
224
|
+
* @license lucide-react v1.7.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const sm=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],am=Q("folder-plus",sm);/**
|
|
229
|
+
* @license lucide-react v1.7.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const om=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],lm=Q("folder",om);/**
|
|
234
|
+
* @license lucide-react v1.7.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const cm=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],dm=Q("git-branch",cm);/**
|
|
239
|
+
* @license lucide-react v1.7.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const um=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],ti=Q("git-compare",um);/**
|
|
244
|
+
* @license lucide-react v1.7.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const pm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],au=Q("globe",pm);/**
|
|
249
|
+
* @license lucide-react v1.7.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const hm=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],mm=Q("hard-drive",hm);/**
|
|
254
|
+
* @license lucide-react v1.7.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const gm=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],fm=Q("hash",gm);/**
|
|
259
|
+
* @license lucide-react v1.7.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const bm=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],ou=Q("history",bm);/**
|
|
264
|
+
* @license lucide-react v1.7.0 - ISC
|
|
265
|
+
*
|
|
266
|
+
* This source code is licensed under the ISC license.
|
|
267
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
+
*/const ym=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],lu=Q("image",ym);/**
|
|
269
|
+
* @license lucide-react v1.7.0 - ISC
|
|
270
|
+
*
|
|
271
|
+
* This source code is licensed under the ISC license.
|
|
272
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
+
*/const _m=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],vm=Q("inbox",_m);/**
|
|
274
|
+
* @license lucide-react v1.7.0 - ISC
|
|
275
|
+
*
|
|
276
|
+
* This source code is licensed under the ISC license.
|
|
277
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
278
|
+
*/const xm=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Sm=Q("languages",xm);/**
|
|
279
|
+
* @license lucide-react v1.7.0 - ISC
|
|
280
|
+
*
|
|
281
|
+
* This source code is licensed under the ISC license.
|
|
282
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
+
*/const km=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],wm=Q("link-2",km);/**
|
|
284
|
+
* @license lucide-react v1.7.0 - ISC
|
|
285
|
+
*
|
|
286
|
+
* This source code is licensed under the ISC license.
|
|
287
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
288
|
+
*/const Em=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],Ac=Q("link-2-off",Em);/**
|
|
289
|
+
* @license lucide-react v1.7.0 - ISC
|
|
290
|
+
*
|
|
291
|
+
* This source code is licensed under the ISC license.
|
|
292
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
+
*/const Cm=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],cu=Q("list-checks",Cm);/**
|
|
294
|
+
* @license lucide-react v1.7.0 - ISC
|
|
295
|
+
*
|
|
296
|
+
* This source code is licensed under the ISC license.
|
|
297
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
+
*/const Tm=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],du=Q("list-todo",Tm);/**
|
|
299
|
+
* @license lucide-react v1.7.0 - ISC
|
|
300
|
+
*
|
|
301
|
+
* This source code is licensed under the ISC license.
|
|
302
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
+
*/const Nm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ve=Q("loader-circle",Nm);/**
|
|
304
|
+
* @license lucide-react v1.7.0 - ISC
|
|
305
|
+
*
|
|
306
|
+
* This source code is licensed under the ISC license.
|
|
307
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
+
*/const Am=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Rm=Q("map",Am);/**
|
|
309
|
+
* @license lucide-react v1.7.0 - ISC
|
|
310
|
+
*
|
|
311
|
+
* This source code is licensed under the ISC license.
|
|
312
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
+
*/const Im=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],uu=Q("maximize-2",Im);/**
|
|
314
|
+
* @license lucide-react v1.7.0 - ISC
|
|
315
|
+
*
|
|
316
|
+
* This source code is licensed under the ISC license.
|
|
317
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
+
*/const Lm=[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]],Ln=Q("memory-stick",Lm);/**
|
|
319
|
+
* @license lucide-react v1.7.0 - ISC
|
|
320
|
+
*
|
|
321
|
+
* This source code is licensed under the ISC license.
|
|
322
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
+
*/const Om=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],$m=Q("menu",Om);/**
|
|
324
|
+
* @license lucide-react v1.7.0 - ISC
|
|
325
|
+
*
|
|
326
|
+
* This source code is licensed under the ISC license.
|
|
327
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
+
*/const Dm=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],an=Q("message-circle-question-mark",Dm);/**
|
|
329
|
+
* @license lucide-react v1.7.0 - ISC
|
|
330
|
+
*
|
|
331
|
+
* This source code is licensed under the ISC license.
|
|
332
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
+
*/const Mm=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],pu=Q("message-circle",Mm);/**
|
|
334
|
+
* @license lucide-react v1.7.0 - ISC
|
|
335
|
+
*
|
|
336
|
+
* This source code is licensed under the ISC license.
|
|
337
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
+
*/const jm=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],ri=Q("message-square",jm);/**
|
|
339
|
+
* @license lucide-react v1.7.0 - ISC
|
|
340
|
+
*
|
|
341
|
+
* This source code is licensed under the ISC license.
|
|
342
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
+
*/const Fm=[["path",{d:"M5 12h14",key:"1ays0h"}]],Pm=Q("minus",Fm);/**
|
|
344
|
+
* @license lucide-react v1.7.0 - ISC
|
|
345
|
+
*
|
|
346
|
+
* This source code is licensed under the ISC license.
|
|
347
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
+
*/const Bm=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Um=Q("moon",Bm);/**
|
|
349
|
+
* @license lucide-react v1.7.0 - ISC
|
|
350
|
+
*
|
|
351
|
+
* This source code is licensed under the ISC license.
|
|
352
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
353
|
+
*/const zm=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],Rc=Q("newspaper",zm);/**
|
|
354
|
+
* @license lucide-react v1.7.0 - ISC
|
|
355
|
+
*
|
|
356
|
+
* This source code is licensed under the ISC license.
|
|
357
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
358
|
+
*/const Hm=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Gm=Q("package",Hm);/**
|
|
359
|
+
* @license lucide-react v1.7.0 - ISC
|
|
360
|
+
*
|
|
361
|
+
* This source code is licensed under the ISC license.
|
|
362
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
363
|
+
*/const Wm=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ni=Q("panel-left",Wm);/**
|
|
364
|
+
* @license lucide-react v1.7.0 - ISC
|
|
365
|
+
*
|
|
366
|
+
* This source code is licensed under the ISC license.
|
|
367
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
368
|
+
*/const qm=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Vm=Q("pen-line",qm);/**
|
|
369
|
+
* @license lucide-react v1.7.0 - ISC
|
|
370
|
+
*
|
|
371
|
+
* This source code is licensed under the ISC license.
|
|
372
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
373
|
+
*/const Km=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Ym=Q("pencil",Km);/**
|
|
374
|
+
* @license lucide-react v1.7.0 - ISC
|
|
375
|
+
*
|
|
376
|
+
* This source code is licensed under the ISC license.
|
|
377
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
378
|
+
*/const Xm=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],Zm=Q("pin",Xm);/**
|
|
379
|
+
* @license lucide-react v1.7.0 - ISC
|
|
380
|
+
*
|
|
381
|
+
* This source code is licensed under the ISC license.
|
|
382
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
383
|
+
*/const Jm=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Qm=Q("play",Jm);/**
|
|
384
|
+
* @license lucide-react v1.7.0 - ISC
|
|
385
|
+
*
|
|
386
|
+
* This source code is licensed under the ISC license.
|
|
387
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
388
|
+
*/const eg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ht=Q("plus",eg);/**
|
|
389
|
+
* @license lucide-react v1.7.0 - ISC
|
|
390
|
+
*
|
|
391
|
+
* This source code is licensed under the ISC license.
|
|
392
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
393
|
+
*/const tg=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],rg=Q("power-off",tg);/**
|
|
394
|
+
* @license lucide-react v1.7.0 - ISC
|
|
395
|
+
*
|
|
396
|
+
* This source code is licensed under the ISC license.
|
|
397
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
398
|
+
*/const ng=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],hu=Q("power",ng);/**
|
|
399
|
+
* @license lucide-react v1.7.0 - ISC
|
|
400
|
+
*
|
|
401
|
+
* This source code is licensed under the ISC license.
|
|
402
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
403
|
+
*/const ig=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],On=Q("radio",ig);/**
|
|
404
|
+
* @license lucide-react v1.7.0 - ISC
|
|
405
|
+
*
|
|
406
|
+
* This source code is licensed under the ISC license.
|
|
407
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
408
|
+
*/const sg=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],st=Q("refresh-cw",sg);/**
|
|
409
|
+
* @license lucide-react v1.7.0 - ISC
|
|
410
|
+
*
|
|
411
|
+
* This source code is licensed under the ISC license.
|
|
412
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
413
|
+
*/const ag=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],og=Q("rotate-ccw",ag);/**
|
|
414
|
+
* @license lucide-react v1.7.0 - ISC
|
|
415
|
+
*
|
|
416
|
+
* This source code is licensed under the ISC license.
|
|
417
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
418
|
+
*/const lg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],cg=Q("rows-2",lg);/**
|
|
419
|
+
* @license lucide-react v1.7.0 - ISC
|
|
420
|
+
*
|
|
421
|
+
* This source code is licensed under the ISC license.
|
|
422
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
423
|
+
*/const dg=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]],ug=Q("scan",dg);/**
|
|
424
|
+
* @license lucide-react v1.7.0 - ISC
|
|
425
|
+
*
|
|
426
|
+
* This source code is licensed under the ISC license.
|
|
427
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
428
|
+
*/const pg=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],hg=Q("scissors",pg);/**
|
|
429
|
+
* @license lucide-react v1.7.0 - ISC
|
|
430
|
+
*
|
|
431
|
+
* This source code is licensed under the ISC license.
|
|
432
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
433
|
+
*/const mg=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],gg=Q("scroll-text",mg);/**
|
|
434
|
+
* @license lucide-react v1.7.0 - ISC
|
|
435
|
+
*
|
|
436
|
+
* This source code is licensed under the ISC license.
|
|
437
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
438
|
+
*/const fg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ct=Q("search",fg);/**
|
|
439
|
+
* @license lucide-react v1.7.0 - ISC
|
|
440
|
+
*
|
|
441
|
+
* This source code is licensed under the ISC license.
|
|
442
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
443
|
+
*/const bg=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],yg=Q("send",bg);/**
|
|
444
|
+
* @license lucide-react v1.7.0 - ISC
|
|
445
|
+
*
|
|
446
|
+
* This source code is licensed under the ISC license.
|
|
447
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
448
|
+
*/const _g=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Or=Q("server",_g);/**
|
|
449
|
+
* @license lucide-react v1.7.0 - ISC
|
|
450
|
+
*
|
|
451
|
+
* This source code is licensed under the ISC license.
|
|
452
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
453
|
+
*/const vg=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],mu=Q("settings-2",vg);/**
|
|
454
|
+
* @license lucide-react v1.7.0 - ISC
|
|
455
|
+
*
|
|
456
|
+
* This source code is licensed under the ISC license.
|
|
457
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
458
|
+
*/const xg=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Sg=Q("settings",xg);/**
|
|
459
|
+
* @license lucide-react v1.7.0 - ISC
|
|
460
|
+
*
|
|
461
|
+
* This source code is licensed under the ISC license.
|
|
462
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
463
|
+
*/const kg=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],gu=Q("square-terminal",kg);/**
|
|
464
|
+
* @license lucide-react v1.7.0 - ISC
|
|
465
|
+
*
|
|
466
|
+
* This source code is licensed under the ISC license.
|
|
467
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
468
|
+
*/const wg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],fu=Q("square",wg);/**
|
|
469
|
+
* @license lucide-react v1.7.0 - ISC
|
|
470
|
+
*
|
|
471
|
+
* This source code is licensed under the ISC license.
|
|
472
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
473
|
+
*/const Eg=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],rr=Q("store",Eg);/**
|
|
474
|
+
* @license lucide-react v1.7.0 - ISC
|
|
475
|
+
*
|
|
476
|
+
* This source code is licensed under the ISC license.
|
|
477
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
478
|
+
*/const Cg=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715",key:"xlf6rm"}],["path",{d:"M16 12a4 4 0 0 0-4-4",key:"6vsxu"}],["path",{d:"m19 5-1.256 1.256",key:"1yg6a6"}],["path",{d:"M20 12h2",key:"1q8mjw"}]],Tg=Q("sun-moon",Cg);/**
|
|
479
|
+
* @license lucide-react v1.7.0 - ISC
|
|
480
|
+
*
|
|
481
|
+
* This source code is licensed under the ISC license.
|
|
482
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
483
|
+
*/const Ng=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Ag=Q("sun",Ng);/**
|
|
484
|
+
* @license lucide-react v1.7.0 - ISC
|
|
485
|
+
*
|
|
486
|
+
* This source code is licensed under the ISC license.
|
|
487
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
488
|
+
*/const Rg=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],bu=Q("terminal",Rg);/**
|
|
489
|
+
* @license lucide-react v1.7.0 - ISC
|
|
490
|
+
*
|
|
491
|
+
* This source code is licensed under the ISC license.
|
|
492
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
493
|
+
*/const Ig=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ur=Q("trash-2",Ig);/**
|
|
494
|
+
* @license lucide-react v1.7.0 - ISC
|
|
495
|
+
*
|
|
496
|
+
* This source code is licensed under the ISC license.
|
|
497
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
498
|
+
*/const Lg=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],on=Q("triangle-alert",Lg);/**
|
|
499
|
+
* @license lucide-react v1.7.0 - ISC
|
|
500
|
+
*
|
|
501
|
+
* This source code is licensed under the ISC license.
|
|
502
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
503
|
+
*/const Og=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],$r=Q("undo-2",Og);/**
|
|
504
|
+
* @license lucide-react v1.7.0 - ISC
|
|
505
|
+
*
|
|
506
|
+
* This source code is licensed under the ISC license.
|
|
507
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
508
|
+
*/const $g=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],yu=Q("users",$g);/**
|
|
509
|
+
* @license lucide-react v1.7.0 - ISC
|
|
510
|
+
*
|
|
511
|
+
* This source code is licensed under the ISC license.
|
|
512
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
513
|
+
*/const Dg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ue=Q("x",Dg);/**
|
|
514
|
+
* @license lucide-react v1.7.0 - ISC
|
|
515
|
+
*
|
|
516
|
+
* This source code is licensed under the ISC license.
|
|
517
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
518
|
+
*/const Mg=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],jg=Q("zap",Mg),Ic="codebuddy-locale";function _u(){if(typeof navigator>"u")return"en";const e=[];Array.isArray(navigator.languages)&&navigator.languages.length>0&&e.push(...navigator.languages),navigator.language&&e.push(navigator.language);try{const t=Intl.DateTimeFormat().resolvedOptions().locale;t&&e.push(t)}catch{}for(const t of e)if(t.toLowerCase().startsWith("zh"))return"zh";return"en"}function Lc(e){return e==="system"?_u():e}const $n=ze((e,t)=>{const r=typeof localStorage<"u"?localStorage.getItem(Ic):null,n=r&&["zh","en","system"].includes(r)?r:"system",s=Lc(n);return typeof window<"u"&&window.addEventListener("languagechange",()=>{const l=$n.getState();if(l.mode==="system"){const d=_u();d!==l.resolved&&$n.setState({resolved:d})}}),{mode:n,resolved:s,setLocale:l=>{const d=Lc(l);localStorage.setItem(Ic,l),e({mode:l,resolved:d})},toggle:()=>{const l=t().mode,d=l==="zh"?"en":l==="en"?"system":"zh";t().setLocale(d)}}}),Oc={zh:{"app.connecting":"正在连接 CodeBuddy Code...","app.connectFailed":"连接失败","app.retry":"重试","chat.empty.title":"CodeBuddy Code","chat.empty.subtitle":"今天有什么可以帮到你?","chat.empty.slogan":"Claw Your Ideas . Into Reality","chat.empty.tag.slides":"幻灯片生成","chat.empty.tag.research":"深度研究","chat.empty.tag.docs":"文档处理","chat.empty.tag.data":"数据分析","chat.thinking":"思考中","chat.error":"错误","chat.sessionEnded":"会话已结束","chat.stopped":"已停止","chat.newChat":"新对话","chat.disclaimer":"回答由 AI 生成,仅供参考","chat.compacted":"已精简历史对话","chat.compacting":"正在精简历史对话...","input.placeholder":"从一个想法开始...","input.placeholderRunning":"消息将排队等待处理...","input.placeholderPending":"请先处理权限请求...","input.send":"发送 (Enter)","input.stop":"停止","input.thinking":"思考中","input.deepThinking":"深度思考","input.promptFailed":"发送失败","input.sendQueued":"发送排队消息 (Enter)","input.dropHint":"拖拽文件到这里","input.addImage":"添加图片","input.addFile":"添加文件","input.imageTooLarge":"图片不能超过 10MB","input.tooManyImages":"最多添加 5 张图片","input.fileTooLarge":"文件不能超过 1MB","input.tooManyFiles":"最多添加 10 个文件","input.menu.image":"图片","input.menu.file":"文件","input.newline":"换行","input.contextMenu.newline":"换行","input.contextMenu.send":"发送","queue.more":" 条消息排队中","status.running":"运行中","tool.writeFile":"写入文件","tool.readFile":"读取文件","tool.execute":"执行指令","tool.searchFiles":"搜索文件","tool.searchContent":"搜索内容","tool.fetchWeb":"获取网页","tool.searchWeb":"搜索网络","tool.defaultName":"工具","tool.moreItems":"... 还有 {count} 项","interruption.title":"需要授权","interruption.tool":"工具","interruption.allow":"允许","interruption.allowAll":"全部允许","interruption.deny":"拒绝","interruption.approved":"已允许","interruption.denied":"已拒绝","interruption.edits":"{count} 处编辑","interruption.yes":"是","interruption.keepPlanning":"继续规划","interruption.exitPlanMode":"退出计划模式","interruption.readyToCode":"准备好开始编码了吗?","theme.light":"浅色","theme.dark":"深色","theme.system":"跟随系统","locale.zh":"中文","locale.en":"English","locale.system":"跟随系统","sidebar.nav.plugins":"插件","sidebar.nav.tasks":"任务","sidebar.search.placeholder":"搜索...","sidebar.chatHistory":"对话历史","sidebar.workspace":"工作区","sidebar.connectionStatus":"连接状态","sidebar.status":"状态","sidebar.sessionId":"会话ID","sidebar.notConnected":"未连接","sidebar.modelSelection":"模型选择","sidebar.noModels":"暂无可用模型","sidebar.environment":"环境信息","sidebar.cwd":"工作目录","sidebar.os":"操作系统","sidebar.nodeVersion":"Node.js","sidebar.gatewayMode":"网关模式","sidebar.tunnelUrl":"Tunnel 地址","sidebar.clickToCopy":"点击复制","sidebar.copied":"已复制","sidebar.permissionMode":"权限模式","sidebar.noModes":"暂无可用模式","sidebar.preferences":"设置","bottomSheet.attachments":"添加","bottomSheet.navigation":"导航","sidebar.theme":"界面主题","sidebar.language":"界面语言","sidebar.user":"用户","sidebar.authMethod":"密码认证","sidebar.noAuth":"无认证","sidebar.version":"Remote UI v1.0","connection.connected":"已连接","connection.connecting":"连接中","connection.disconnected":"未连接","connection.error":"连接错误","message.copyToClipboard":"复制到剪贴板","message.copied":"已复制","message.copy":"复制","message.assistantName":"CodeBuddy Code","thinking.title":"思考过程","thinking.thinking":"思考中","thinking.done":"已思考","thinking.seconds":"(用时 {n} 秒)","thinking.expand":"展开","thinking.collapse":"收起","diff.noChanges":"无变更","login.title":"CodeBuddy Remote Control","login.subtitle":"请输入终端中显示的密码","login.placeholder":"密码","login.submit":"登录","login.error.incorrect":"密码错误","login.error.rateLimit":"登录尝试次数过多,请稍后再试","login.error.required":"请输入密码","login.hint.password":"提示:密码在服务启动时显示在终端中。","login.hint.urlAuth":"也可以使用 <code>?password=xxx</code> 自动登录。","login.hint.disable":'或在 <code>~/.codebuddy/settings.json</code> 中设置 <code>gateway.auth: "none"</code> 来禁用认证。',"login.slogan":"Claw Your Ideas . Into Reality","login.tagline":"Triggered Anywhere, Completed Locally.","login.privacy":"隐私政策","login.terms":"服务条款","sidebar.interactionMode":"交互模式","sidebar.chatMode":"对话","sidebar.terminalMode":"终端","terminal.connecting":"终端连接中...","terminal.title":"终端","terminal.disconnected":"终端已断开","terminal.error":"终端连接失败","terminal.reconnect":"重新连接","terminal.splitHorizontal":"左右分屏","terminal.splitVertical":"上下分屏","terminal.closePane":"关闭终端","terminal.maxPanes":"已达最大面板数","sidebar.instances":"实例","sidebar.activeInstances":"个活跃实例","sidebar.manageInstances":"管理实例","sidebar.remoteControl":"远程控制","instance.title":"实例列表","instance.switch":"实例","instance.switchTitle":"切换实例","instance.current":"当前实例","instance.manual":"手动添加","instance.switchTo":"切换到此实例","instance.manage":"管理实例","instance.managerTitle":"实例管理","instance.addInstance":"添加实例","instance.name":"实例名称","instance.namePlaceholder":"自定义实例名称(可选,默认为目录名)","instance.url":"实例地址","instance.urlPlaceholder":"https://example.trycloudflare.com","instance.password":"密码","instance.optional":"可选","instance.passwordPlaceholder":"访问密码","instance.cancel":"取消","instance.add":"添加","instance.remove":"删除此实例","instance.noInstances":"暂无其他实例","instance.noInstancesHint":"启动更多 CodeBuddy Code 实例,或手动添加远程实例","instance.cwd":"工作目录","instance.topic":"当前话题","instance.startedAt":"启动于","instance.local":"本地","instance.tunnel":"隧道","instance.uptime.days":"天前","instance.uptime.hours":"小时前","instance.uptime.minutes":"分钟前","instance.uptime.justNow":"刚刚","instance.addError":"添加实例失败","instance.removeError":"删除实例失败","instance.copyUrl":"复制链接","instance.copied":"已复制","instance.subtitle":"管理和切换工作实例","instance.refresh":"刷新","instance.refreshed":"已刷新","instance.loading":"加载实例中...","instance.error":"加载实例列表失败","instance.retry":"重试","question.multiple":"多选","question.customAnswer":"或输入自定义答案...","question.reviewAnswers":"审核答案","question.singleTitle":"问题","question.titleWithCount":"问题({count})","question.reviewTab":"审核","question.next":"下一步","question.submit":"提交","question.cancel":"取消","question.answered":"已回答","question.cancelled":"问题已取消","todo.title":"任务清单","todo.executing":"任务{n}正在执行中","todo.untitled":"未命名","history.title":"会话历史","history.description":"点击会话可切换到该对话","history.noData":"暂无会话历史","history.noDataHint":"开始一段新对话吧","history.backToChat":"返回对话","history.loading":"加载中...","history.loadError":"加载失败","history.retry":"重试","history.current":"当前","history.messages":"{count} 条消息","history.delete":"删除","history.deleteConfirm":"确定要删除这个会话吗?","history.deleteCancel":"取消","history.deleteOk":"删除","history.rename":"重命名","history.renameTitle":"重命名会话","history.renamePlaceholder":"输入新名称","history.renameCancel":"取消","history.renameOk":"确定","history.cannotDeleteCurrent":"无法删除当前会话","settings.title":"设置","settings.appearance":"外观","settings.model":"模型选择","settings.mode":"权限模式","settings.systemInfo":"系统信息","settings.backToChat":"返回对话","settings.tab.user":"用户级","settings.tab.project":"工作空间级","settings.group.modelAndReasoning":"模型与推理","settings.group.behavior":"行为","settings.group.memory":"记忆","settings.group.language":"语言","settings.group.advanced":"高级","settings.group.sandbox":"安全沙箱","settings.item.model":"默认模型","settings.item.model.desc":"设置默认使用的 AI 模型","settings.item.reasoningEffort":"推理努力级别","settings.item.reasoningEffort.desc":"控制模型的推理深度","settings.item.alwaysThinkingEnabled":"始终启用深度思考","settings.item.autoCompactEnabled":"自动压缩上下文","settings.item.includeCoAuthoredBy":"提交包含 Co-authored-by","settings.item.fileCheckpointingEnabled":"文件检查点","settings.item.fileCheckpointingEnabled.desc":"启用文件版本回退功能","settings.item.promptSuggestionEnabled":"提示建议","settings.item.ignoreGitIgnore":"忽略 .gitignore","settings.item.ignoreGitIgnore.desc":"搜索文件时忽略 .gitignore 规则","settings.item.deferToolLoading":"延迟加载工具","settings.item.hookOutputCollapsed":"折叠 Hook 输出","settings.item.memory.enabled":"启用记忆功能","settings.item.memory.autoMemoryEnabled":"自动记忆","settings.item.memory.autoMemoryEnabled.desc":"自动保存重要信息到记忆库","settings.item.language":"响应语言","settings.item.language.desc":"设置 AI 回复使用的语言","settings.item.cleanupPeriodDays":"聊天记录保留天数","settings.item.imageHistoryRetainRounds":"图片保留轮数","settings.item.imageHistoryRetainRounds.desc":"对话历史中保留图片的最近轮数","settings.item.env":"环境变量","settings.item.env.desc":"应用于每个会话的环境变量 (JSON)","settings.item.sandbox.enabled":"启用安全沙箱","settings.item.sandbox.enabled.desc":"在沙箱中运行 Bash 命令,限制文件和网络访问","settings.item.sandbox.autoAllowBashIfSandboxed":"沙箱内自动批准命令","settings.item.sandbox.autoAllowBashIfSandboxed.desc":"命令在沙箱中运行时自动批准","settings.loading":"加载中...","settings.saved":"已保存","settings.saveFailed":"保存失败","settings.notSet":"未设置","settings.default":"默认","settings.reset":"重置","settings.noProjectSettings":"当前工作空间暂无可配置项","settings.effort.low":"低","settings.effort.medium":"中","settings.effort.high":"高","settings.effort.xhigh":"极高","page.title":"CodeBuddy Code","tool.processExited":"[进程已退出]","tool.itemsCount":"{count} 项","tool.showAllItems":"显示全部 {count} 项","tool.moreLinesCount":"... 还有 {count} 行","tool.generatedImage":"生成的图片","tool.editedImage":"编辑后的图片","tool.imageGen":"图片生成","tool.imageEdit":"图片编辑","tool.toolSearch":"工具搜索","tool.teamCreate":"创建团队","tool.teamDelete":"删除团队","tool.taskCreate":"创建任务","tool.taskUpdate":"更新任务","tool.taskList":"任务列表","tool.taskGet":"获取任务","tool.sendMessage":"发送消息","tool.shutdown":"关闭","tool.taskCompleted":"任务完成","tool.shutdownRejected":"关闭被拒绝","tool.planResponse":"计划回复","tool.approved":"已批准","tool.rejected":"已拒绝","tool.webSearch":"网络搜索","tool.webFetch":"网页获取","tool.saveMemory":"保存记忆","tool.askUserQuestion":"询问用户","tool.enterPlanMode":"进入计划模式","tool.exitPlanMode":"退出计划模式","tool.allowedActions":"允许的操作:","tool.skill":"技能","tool.agent":"代理","tool.failed":"失败","tool.completed":"完成","tool.toolsCount":"{count} 个工具","tool.background":"后台","tool.permissionsCount":"{count} 项权限","terminal.unknownError":"未知错误","terminal.processExited":"[进程已退出]","terminal.connectionLost":"连接已断开","terminal.wsConnectionFailed":"WebSocket 连接失败","terminal.createSessionFailed":"创建终端会话失败","terminal.reconnectFailed":"重连失败","team.title":"团队","team.activeCount":"{count} 个活跃","team.doneCount":"{count} 个完成","team.waitingForTeammates":"等待 {count} 个成员完成…","team.backToMain":"返回主对话","team.loadingHistory":"加载对话历史…","team.noHistory":"暂无对话历史","team.agentRunning":"正在运行…","team.delivered":"已送达","team.showLess":"收起","team.moreLines":"… ({count} 更多行)","team.tools":"{count} 工具","team.tokens":"{count} tokens","instance.tunnelMode":"隧道","instance.localMode":"本地","workspace.searchPlaceholder":"搜索目录...","workspace.switch":"切换","workspace.switchHere":"切换到此目录","workspace.switching":"切换中...","workspace.noResults":"没有匹配的目录","workspace.emptyDir":"此目录为空","workspace.pathPlaceholder":"输入路径或目录名...","workspace.selectDir":"在此目录创建机器人","workspace.filterPlaceholder":"过滤子目录...","workspace.recent.title":"最近工作区","workspace.recent.daysAgo":"天前","workspace.recent.hoursAgo":"小时前","workspace.recent.minutesAgo":"分钟前","workspace.recent.justNow":"刚刚","workspace.recent.remove":"移除","workspace.browseTitle":"浏览工作区","workspace.recentWorkspaces":"最近工作区","workspace.createNew":"创建新机器人","workspace.browseDir":"浏览目录","workspace.instanceLocal":"本地","workspace.instanceTunnel":"隧道","workspace.instanceCurrent":"当前","workspace.switchInstance":"切换","workspace.switchingInstance":"切换中...","workspace.switchingWithGateway":"正在准备切换...","workspace.instanceStarted":"启动于","workspace.noWorkspaces":"暂无活跃的工作区","workspace.noWorkspacesHint":"浏览目录创建新机器人","workspace.instanceCount":"{count} 个机器人","question.multiLabel":"多选","tasks.title":"任务模版","tasks.subtitle":"选择一个模版快速创建定时任务","tasks.loading":"正在获取推荐模版...","tasks.error":"获取模版失败","tasks.retry":"重试","tasks.refresh":"刷新推荐","tasks.refreshed":"已刷新","tasks.empty":"暂无推荐模版","tasks.interval":"每 {value}","tasks.interval.1d":"每天","tasks.interval.2d":"每 2 天","tasks.interval.3d":"每 3 天","tasks.interval.1w":"每周","tasks.interval.2w":"每 2 周","tasks.interval.1m":"每月","plugins.title":"插件管理","plugins.installedPlugins":"已安装插件","plugins.browseMarketplace":"浏览市场","plugins.marketplaces":"插件市场","plugins.enabled":"已启用","plugins.disabled":"已禁用","plugins.enable":"启用","plugins.disable":"禁用","plugins.uninstall":"卸载","plugins.install":"安装","plugins.confirmUninstall":"确定要卸载此插件吗?","plugins.marketplace":"市场","plugins.addMarketplace":"添加市场","plugins.removeMarketplace":"移除","plugins.confirmRemoveMarketplace":"确定要移除此市场吗?","plugins.noPlugins":"暂无已安装的插件","plugins.noPluginsHint":"通过插件市场安装插件来扩展功能","plugins.noMarketplaces":"暂无配置的市场","plugins.noMarketplacesHint":"添加一个插件市场来浏览和安装插件","plugins.selectMarketplace":"选择市场","plugins.selectMarketplaceHint":"选择一个市场来浏览可用插件","plugins.marketplaceNotFound":"市场不存在","plugins.noAvailablePlugins":"该市场暂无可用插件","plugins.noAvailablePluginsHint":"请尝试添加其他市场或稍后再试","plugins.installed":"已安装","plugins.browsingMarketplace":"浏览中...","plugins.loading":"加载中...","plugins.error":"加载插件失败","plugins.retry":"重试","plugins.sourcePlaceholder":"市场地址(Git URL 或本地路径)","plugins.namePlaceholder":"市场名称(可选)","plugins.cancel":"取消","plugins.add":"添加","plugins.version":"版本","plugins.operationFailed":"操作失败","plugins.searchPlaceholder":"搜索插件...","plugins.allMarketplaces":"全部市场","plugins.noSearchResults":"没有找到匹配的插件","plugins.totalCount":"个插件","plugins.refresh":"刷新","plugins.installedLabel":"已安装","plugins.category":"分类","plugins.author":"作者","plugins.license":"许可证","plugins.homepage":"主页","plugins.repository":"仓库","plugins.source":"来源","plugins.keywords":"关键词","plugins.features":"功能","channel.from":"来自","channel.group":"群聊","channel.replyTo":"回复来自 {source}","channel.wechat":"微信","channel.wecom":"企业微信","channel.wecomBot":"企微机器人","remoteControl.title":"远程控制","remoteControl.subtitle":"管理渠道连接","remoteControl.connectedChannels":"已连接渠道","remoteControl.noChannels":"暂无已连接渠道","remoteControl.noChannelsHint":"添加微信或企业微信渠道,或从插件市场安装更多","remoteControl.addWeChat":"添加微信机器人","remoteControl.addWeCom":"添加企微机器人","remoteControl.connect":"连接","remoteControl.disconnect":"断开","remoteControl.delete":"删除","remoteControl.add":"添加","remoteControl.connected":"已连接","remoteControl.disconnected":"未连接","remoteControl.connecting":"连接中...","remoteControl.installMore":"安装更多渠道","remoteControl.installMoreHint":"浏览插件市场,安装第三方渠道插件","remoteControl.browseMarketplace":"浏览插件市场","remoteControl.builtIn":"内置","remoteControl.plugin":"插件","remoteControl.rebind":"重新绑定","remoteControl.unbind":"解绑","remoteControl.bot":"机器人","remoteControl.default":"默认","remoteControl.next":"下一步","remoteControl.cancel":"取消","remoteControl.wecomBotIdHint":"从企业微信管理后台 → 应用管理 → AI 助手获取","remoteControl.wecomSecretHint":"输入 Secret 后按回车或点“连接”","remoteControl.fetchingQr":"正在获取二维码...","remoteControl.scanQr":"请用微信扫描二维码","sidebar.docs":"文档","docs.title":"文档中心","docs.search.placeholder":"搜索文档...","docs.search.noResults":"未找到相关文档","docs.search.resultsCount":"{count} 个结果","docs.loading":"加载中...","docs.loadError":"文档加载失败","docs.notFound":"未找到该文档","docs.apiReference":"API 文档","docs.toc":"目录","docs.retry":"重试","docs.backToList":"返回文档列表","docs.expandAll":"展开全部","docs.collapseAll":"收起全部","docs.openStandalone":"独立窗口打开","sidebar.metrics":"监控","metrics.title":"系统监控","metrics.loading":"加载指标数据...","metrics.refresh":"刷新","metrics.cpu":"CPU","metrics.memory":"内存","metrics.disk":"磁盘","metrics.cores":"核心","metrics.workers":"Workers","metrics.noWorkers":"暂无运行中的 Worker","metrics.current":"当前","metrics.uptime":"运行时长","metrics.version":"版本","sidebar.editor":"文件","editor.title":"代码编辑器","editor.loading":"加载中...","editor.loadError":"加载失败","editor.noFile":"选择一个文件开始编辑","editor.unsaved":"未保存","editor.save":"保存","editor.saveAll":"全部保存","editor.close":"关闭","editor.closeOthers":"关闭其他","editor.closeAll":"关闭全部","editor.newFile":"新建文件","editor.newFolder":"新建文件夹","editor.rename":"重命名","editor.delete":"删除","editor.refresh":"刷新","editor.emptyFolder":"空文件夹","editor.explorer":"资源管理器","editor.toggleSidebar":"切换侧边栏","editor.collapseAll":"全部折叠","editor.openFolder":"打开目录","editor.openFolderPlaceholder":"输入目录路径...","editor.parentFolder":"上级目录","editor.pin":"固定","editor.unpin":"取消固定","editor.copyPath":"复制路径","editor.copyRelativePath":"复制相对路径","editor.revealInExplorer":"在文件树中定位","editor.closeToRight":"关闭右侧","editor.closeSaved":"关闭已保存","editor.quickOpen":"快速打开文件","editor.focusExplorer":"聚焦资源管理器","editor.recentFiles":"最近文件","editor.quickOpenPlaceholder":"输入文件名以搜索...","editor.quickOpenEmpty":"没有匹配的文件","editor.quickOpenLoading":"正在加载文件列表...","editor.selected":"已选","editor.lines":"行","editor.preview":"切换到预览","editor.source":"切换到源码","sidebar.workers":"Workers","workers.title":"Worker 进程管理","workers.refresh":"刷新","workers.active":"活跃 Workers","workers.empty":"没有活跃的 worker 进程","workers.daemon":"Daemon 服务","workers.daemon.running":"运行中","workers.daemon.stopped":"已停止","workers.daemon.start":"启动","workers.daemon.starting":"启动中...","workers.daemon.stop":"停止","workers.daemon.restart":"重启","workers.action.logs":"查看日志","workers.action.open":"打开","workers.action.kill":"终止","workers.action.kill.confirm":"确定要终止这个 worker 进程吗?","sidebar.logs":"日志","logs.title":"日志查看器","logs.selectWorker":"选择 Worker","logs.current":"当前","logs.search":"搜索日志...","logs.autoRefresh":"自动刷新","logs.refresh":"刷新","logs.empty":"暂无日志内容","command.btw.description":"快速提问,不打断主要 Agent 工作","command.clear.description":"开始新的对话(之前的对话仍可通过 /resume 访问)","command.context.description":"计算并显示上下文 Token 分布","command.cost.description":"显示当前会话的总费用和持续时间","command.doctor.description":"诊断和验证 CodeBuddy 的安装和设置","command.feedback.description":"打开反馈页面以报告问题或提出建议","command.gateway.description":'管理远程控制网关。子命令: "status" 查看状态, "stop" 停止网关, "token" 重新生成访问令牌, "tunnel" 启动隧道',"command.remote-control.description":"管理远程控制长连接客户端(start, stop, status, list)","command.login.description":"切换腾讯云 CodeBuddy 账号","command.logout.description":"退出 CodeBuddy Code 账号","command.plan.description":"预览当前计划文件内容","command.pr-comments.description":"获取 GitHub Pull Request 的评论","command.release-notes.description":"查看更新日志","command.review.description":"审查 Pull Request","command.skills.description":"列出可用的技能","command.todos.description":"显示当前会话的任务清单","command.reload-plugins.description":"重新加载所有插件、技能、代理、钩子和 MCP/LSP 服务器(无需重启)","command.plugin-validate.description":"验证插件目录结构和清单文件","command.init.description":"正在分析你的代码库…","command.compact.description":"清除对话历史但保留摘要在上下文中。可选: /compact [摘要指令]","command.upgrade.description":"在浏览器中打开升级页面","command.statusline.description":"设置 CodeBuddy Code 的状态栏 UI","command.security-review.description":"对当前分支的待提交变更进行安全审查","command.insights.description":"生成 AI 驱动的 CodeBuddy Code 使用模式和活动洞察","command.loop.description":"按固定间隔运行提示或斜杠命令(例如 /loop 5m /foo,默认 10m)","command.task-manager.description":"团队任务管理 - 智能任务录入、分配、追踪和分析","sidebar.changes":"变更","fileChanges.title":"变更","fileChanges.changesSection":"文件变更","fileChanges.empty":"暂无文件变更","fileChanges.showChanges":"显示文件变更","fileChanges.hideChanges":"隐藏文件变更","fileChanges.revertAll":"撤回全部","fileChanges.revertCode":"回退代码","fileChanges.revertChat":"回退对话","fileChanges.revertCodeAndChat":"回退全部","fileChanges.checkpoints":"回退点","fileChanges.noCheckpoints":"暂无回退点","filePreview.binaryNotSupported":"该文件无法在编辑器中预览","filePreview.download":"下载文件"},en:{"app.connecting":"Connecting to CodeBuddy Code...","app.connectFailed":"Connection failed","app.retry":"Retry","chat.empty.title":"CodeBuddy Code","chat.empty.subtitle":"How can I help you today?","chat.empty.slogan":"Claw Your Ideas . Into Reality","chat.empty.tag.slides":"Slide Generation","chat.empty.tag.research":"Deep Research","chat.empty.tag.docs":"Document Processing","chat.empty.tag.data":"Data Analysis","chat.thinking":"Thinking","chat.error":"Error","chat.sessionEnded":"Session ended","chat.stopped":"Stopped","chat.newChat":"New Chat","chat.disclaimer":"Answers generated by AI are for reference only","chat.compacted":"Conversation compacted","chat.compacting":"Compacting conversation...","input.placeholder":"Start from an idea...","input.placeholderRunning":"Messages will be queued...","input.placeholderPending":"Please handle the permission request first...","input.send":"Send (Enter)","input.stop":"Stop","input.thinking":"Thinking","input.deepThinking":"Deep Thinking","input.promptFailed":"Prompt failed","input.sendQueued":"Send queued (Enter)","input.dropHint":"Drop files here","input.addImage":"Add image","input.addFile":"Add file","input.imageTooLarge":"Image must be under 10MB","input.tooManyImages":"Up to 5 images allowed","input.fileTooLarge":"File must be under 1MB","input.tooManyFiles":"Up to 10 files allowed","input.menu.image":"Image","input.menu.file":"File","input.newline":"New line","input.contextMenu.newline":"New line","input.contextMenu.send":"Send","queue.more":" more queued","status.running":"Running","tool.writeFile":"Write file","tool.readFile":"Read file","tool.execute":"Execute","tool.searchFiles":"Search files","tool.searchContent":"Search content","tool.fetchWeb":"Fetch web","tool.searchWeb":"Search web","tool.defaultName":"Tool","tool.moreItems":"... {count} more","interruption.title":"Permission Required","interruption.tool":"Tool","interruption.allow":"Allow","interruption.allowAll":"Allow All","interruption.deny":"Deny","interruption.approved":"Approved","interruption.denied":"Denied","interruption.edits":"{count} edits","interruption.yes":"Yes","interruption.keepPlanning":"No, keep planning","interruption.exitPlanMode":"Exit plan mode","interruption.readyToCode":"Ready to code?","theme.light":"Light","theme.dark":"Dark","theme.system":"System","locale.zh":"Chinese","locale.en":"English","locale.system":"System","sidebar.nav.plugins":"Plugins","sidebar.nav.tasks":"Tasks","sidebar.search.placeholder":"Search...","sidebar.chatHistory":"Chat History","sidebar.workspace":"Workspace","sidebar.connectionStatus":"Connection Status","sidebar.status":"Status","sidebar.sessionId":"Session ID","sidebar.notConnected":"Not connected","sidebar.modelSelection":"Model Selection","sidebar.noModels":"No models available","sidebar.environment":"Environment","sidebar.cwd":"Working Directory","sidebar.os":"OS","sidebar.nodeVersion":"Node.js","sidebar.gatewayMode":"Gateway Mode","sidebar.tunnelUrl":"Tunnel URL","sidebar.clickToCopy":"Click to copy","sidebar.copied":"Copied","sidebar.permissionMode":"Permission Mode","sidebar.noModes":"No modes available","sidebar.preferences":"Preferences","bottomSheet.attachments":"Attach","bottomSheet.navigation":"Navigate","sidebar.theme":"Theme","sidebar.language":"Language","sidebar.user":"User","sidebar.authMethod":"Password","sidebar.noAuth":"No Auth","sidebar.version":"Remote UI v1.0","connection.connected":"Connected","connection.connecting":"Connecting","connection.disconnected":"Disconnected","connection.error":"Error","message.copyToClipboard":"Copy to clipboard","message.copied":"Copied","message.copy":"Copy","message.assistantName":"CodeBuddy Code","thinking.title":"Thinking Process","thinking.thinking":"Thinking","thinking.done":"Thought for","thinking.seconds":" {n}s","thinking.expand":"Expand","thinking.collapse":"Collapse","diff.noChanges":"No changes","login.title":"CodeBuddy Remote Control","login.subtitle":"Enter the password shown in your terminal","login.placeholder":"Password","login.submit":"Login","login.error.incorrect":"Incorrect password","login.error.rateLimit":"Too many login attempts. Please try again later.","login.error.required":"Password is required","login.hint.password":"Tip: The password is displayed when the server starts.","login.hint.urlAuth":"You can also use <code>?password=xxx</code> to login automatically.","login.hint.disable":'Or set <code>gateway.auth: "none"</code> in <code>~/.codebuddy/settings.json</code> to disable.',"login.slogan":"Claw Your Ideas . Into Reality","login.tagline":"Triggered Anywhere, Completed Locally.","login.privacy":"Privacy Policy","login.terms":"Terms of Service","sidebar.interactionMode":"Interaction Mode","sidebar.chatMode":"Chat","sidebar.terminalMode":"Terminal","terminal.connecting":"Connecting terminal...","terminal.title":"Terminal","terminal.disconnected":"Terminal disconnected","terminal.error":"Terminal connection failed","terminal.reconnect":"Reconnect","terminal.splitHorizontal":"Split Right","terminal.splitVertical":"Split Down","terminal.closePane":"Close Terminal","terminal.maxPanes":"Max panes reached","sidebar.instances":"Instances","sidebar.activeInstances":"active instances","sidebar.manageInstances":"Manage Instances","sidebar.remoteControl":"Channels","instance.title":"Instance List","instance.switch":"Instance","instance.switchTitle":"Switch Instance","instance.current":"Current","instance.manual":"Manual","instance.switchTo":"Switch to this instance","instance.manage":"Manage Instances","instance.managerTitle":"Instance Manager","instance.addInstance":"Add Instance","instance.name":"Instance Name","instance.namePlaceholder":"Custom instance name (optional, defaults to directory name)","instance.url":"Instance URL","instance.urlPlaceholder":"https://example.trycloudflare.com","instance.password":"Password","instance.optional":"Optional","instance.passwordPlaceholder":"Access password","instance.cancel":"Cancel","instance.add":"Add","instance.remove":"Remove this instance","instance.noInstances":"No other instances","instance.noInstancesHint":"Start more CodeBuddy Code instances or add remote instances manually","instance.cwd":"Working Directory","instance.topic":"Topic","instance.startedAt":"Started at","instance.local":"Local","instance.tunnel":"Tunnel","instance.uptime.days":"d ago","instance.uptime.hours":"h ago","instance.uptime.minutes":"m ago","instance.uptime.justNow":"Just now","instance.addError":"Failed to add instance","instance.removeError":"Failed to remove instance","instance.copyUrl":"Copy URL","instance.copied":"Copied","instance.subtitle":"Manage and switch between instances","instance.refresh":"Refresh","instance.refreshed":"Refreshed","instance.loading":"Loading instances...","instance.error":"Failed to load instances","instance.retry":"Retry","question.multiple":"multiple","question.customAnswer":"Or type a custom answer...","question.reviewAnswers":"Review answers","question.singleTitle":"Question","question.titleWithCount":"Questions ({count})","question.reviewTab":"Review","question.next":"Next","question.submit":"Submit","question.cancel":"Cancel","question.answered":"Answered","question.cancelled":"Question cancelled","todo.title":"Tasks","todo.executing":"Task {n} executing","todo.untitled":"Untitled","history.title":"Sessions","history.description":"Click a session to switch to that conversation","history.noData":"No sessions","history.noDataHint":"Start a new conversation","history.backToChat":"Back to Chat","history.loading":"Loading...","history.loadError":"Failed to load","history.retry":"Retry","history.current":"Current","history.messages":"{count} messages","history.delete":"Delete","history.deleteConfirm":"Are you sure you want to delete this session?","history.deleteCancel":"Cancel","history.deleteOk":"Delete","history.rename":"Rename","history.renameTitle":"Rename Session","history.renamePlaceholder":"Enter new name","history.renameCancel":"Cancel","history.renameOk":"OK","history.cannotDeleteCurrent":"Cannot delete current session","settings.title":"Preferences","settings.appearance":"Appearance","settings.model":"Model Selection","settings.mode":"Permission Mode","settings.systemInfo":"System Info","settings.backToChat":"Back to Chat","settings.tab.user":"User","settings.tab.project":"Project","settings.group.modelAndReasoning":"Model & Reasoning","settings.group.behavior":"Behavior","settings.group.memory":"Memory","settings.group.language":"Language","settings.group.advanced":"Advanced","settings.group.sandbox":"Security Sandbox","settings.item.model":"Default Model","settings.item.model.desc":"Set the default AI model","settings.item.reasoningEffort":"Reasoning Effort","settings.item.reasoningEffort.desc":"Control model reasoning depth","settings.item.alwaysThinkingEnabled":"Always Enable Thinking","settings.item.autoCompactEnabled":"Auto Compact Context","settings.item.includeCoAuthoredBy":"Include Co-authored-by","settings.item.fileCheckpointingEnabled":"File Checkpointing","settings.item.fileCheckpointingEnabled.desc":"Enable file version rollback","settings.item.promptSuggestionEnabled":"Prompt Suggestions","settings.item.ignoreGitIgnore":"Ignore .gitignore","settings.item.ignoreGitIgnore.desc":"Ignore .gitignore rules when searching","settings.item.deferToolLoading":"Defer Tool Loading","settings.item.hookOutputCollapsed":"Collapse Hook Output","settings.item.memory.enabled":"Enable Memory","settings.item.memory.autoMemoryEnabled":"Auto Memory","settings.item.memory.autoMemoryEnabled.desc":"Auto-save important info to memory","settings.item.language":"Response Language","settings.item.language.desc":"Language for AI responses","settings.item.cleanupPeriodDays":"Chat History Retention (days)","settings.item.imageHistoryRetainRounds":"Image Retention Rounds","settings.item.imageHistoryRetainRounds.desc":"Rounds to retain images in history","settings.item.env":"Environment Variables","settings.item.env.desc":"Variables applied to each session (JSON)","settings.item.sandbox.enabled":"Enable Sandbox","settings.item.sandbox.enabled.desc":"Run Bash commands in sandbox, restrict file and network access","settings.item.sandbox.autoAllowBashIfSandboxed":"Auto-approve in Sandbox","settings.item.sandbox.autoAllowBashIfSandboxed.desc":"Auto-approve commands when running in sandbox","settings.loading":"Loading...","settings.saved":"Saved","settings.saveFailed":"Save failed","settings.notSet":"Not set","settings.default":"Default","settings.reset":"Reset","settings.noProjectSettings":"No project-level settings available","settings.effort.low":"Low","settings.effort.medium":"Medium","settings.effort.high":"High","settings.effort.xhigh":"Extra High","page.title":"CodeBuddy Code","tool.processExited":"[Process exited]","tool.itemsCount":"{count} items","tool.showAllItems":"Show all {count} items","tool.moreLinesCount":"... {count} more lines","tool.generatedImage":"Generated image","tool.editedImage":"Edited image","tool.imageGen":"ImageGen","tool.imageEdit":"ImageEdit","tool.toolSearch":"ToolSearch","tool.teamCreate":"TeamCreate","tool.teamDelete":"TeamDelete","tool.taskCreate":"TaskCreate","tool.taskUpdate":"TaskUpdate","tool.taskList":"TaskList","tool.taskGet":"TaskGet","tool.sendMessage":"SendMessage","tool.shutdown":"Shutdown","tool.taskCompleted":"Task completed","tool.shutdownRejected":"Shutdown rejected","tool.planResponse":"Plan response","tool.approved":"approved","tool.rejected":"rejected","tool.webSearch":"WebSearch","tool.webFetch":"WebFetch","tool.saveMemory":"SaveMemory","tool.askUserQuestion":"AskUserQuestion","tool.enterPlanMode":"Enter Plan Mode","tool.exitPlanMode":"Exit Plan Mode","tool.allowedActions":"Allowed actions:","tool.skill":"Skill","tool.agent":"Agent","tool.failed":"failed","tool.completed":"completed","tool.toolsCount":"{count} tools","tool.background":"background","tool.permissionsCount":"{count} permissions","terminal.unknownError":"Unknown error","terminal.processExited":"[Process exited]","terminal.connectionLost":"Connection lost","terminal.wsConnectionFailed":"WebSocket connection failed","terminal.createSessionFailed":"Failed to create terminal session","terminal.reconnectFailed":"Reconnect failed","team.title":"Team","team.activeCount":"{count} active","team.doneCount":"{count} done","team.waitingForTeammates":"Waiting for {count} teammate{s}…","team.backToMain":"Back to main chat","team.loadingHistory":"Loading conversation…","team.noHistory":"No conversation history yet","team.agentRunning":"Agent is running…","team.delivered":"Delivered","team.showLess":"Show less","team.moreLines":"… ({count} more lines)","team.tools":"{count} tools","team.tokens":"{count} tokens","instance.tunnelMode":"Tunnel","instance.localMode":"Local","workspace.searchPlaceholder":"Search directories...","workspace.switch":"Switch","workspace.switchHere":"Switch to this directory","workspace.switching":"Switching...","workspace.noResults":"No matching directories","workspace.emptyDir":"This directory is empty","workspace.pathPlaceholder":"Enter path or directory name...","workspace.selectDir":"Create bot in this directory","workspace.filterPlaceholder":"Filter subdirectories...","workspace.recent.title":"Recent Workspaces","workspace.recent.daysAgo":"d ago","workspace.recent.hoursAgo":"h ago","workspace.recent.minutesAgo":"m ago","workspace.recent.justNow":"Just now","workspace.recent.remove":"Remove","workspace.browseTitle":"Browse Workspaces","workspace.recentWorkspaces":"Recent Workspaces","workspace.createNew":"Create New Bot","workspace.browseDir":"Browse Directory","workspace.instanceLocal":"Local","workspace.instanceTunnel":"Tunnel","workspace.instanceCurrent":"Current","workspace.switchInstance":"Switch","workspace.switchingInstance":"Switching...","workspace.switchingWithGateway":"Preparing to switch...","workspace.instanceStarted":"Started","workspace.noWorkspaces":"No active workspaces","workspace.noWorkspacesHint":"Browse directories to create a new bot","workspace.instanceCount":"{count} bots","question.multiLabel":"multi","tasks.title":"Task Templates","tasks.subtitle":"Select a template to create a scheduled task","tasks.loading":"Loading recommended templates...","tasks.error":"Failed to load templates","tasks.retry":"Retry","tasks.refresh":"Refresh","tasks.refreshed":"Refreshed","tasks.empty":"No templates available","tasks.interval":"Every {value}","tasks.interval.1d":"Daily","tasks.interval.2d":"Every 2 days","tasks.interval.3d":"Every 3 days","tasks.interval.1w":"Weekly","tasks.interval.2w":"Every 2 weeks","tasks.interval.1m":"Monthly","plugins.title":"Plugins","plugins.installedPlugins":"Installed Plugins","plugins.browseMarketplace":"Browse Marketplace","plugins.marketplaces":"Marketplaces","plugins.enabled":"Enabled","plugins.disabled":"Disabled","plugins.enable":"Enable","plugins.disable":"Disable","plugins.uninstall":"Uninstall","plugins.install":"Install","plugins.confirmUninstall":"Are you sure you want to uninstall this plugin?","plugins.marketplace":"Marketplace","plugins.addMarketplace":"Add Marketplace","plugins.removeMarketplace":"Remove","plugins.confirmRemoveMarketplace":"Are you sure you want to remove this marketplace?","plugins.noPlugins":"No plugins installed","plugins.noPluginsHint":"Install plugins from a marketplace to extend functionality","plugins.noMarketplaces":"No marketplaces configured","plugins.noMarketplacesHint":"Add a plugin marketplace to browse and install plugins","plugins.selectMarketplace":"Select Marketplace","plugins.selectMarketplaceHint":"Select a marketplace to browse available plugins","plugins.marketplaceNotFound":"Marketplace not found","plugins.noAvailablePlugins":"No available plugins in this marketplace","plugins.noAvailablePluginsHint":"Try adding other marketplaces or check back later","plugins.installed":"Installed","plugins.browsingMarketplace":"Loading...","plugins.loading":"Loading...","plugins.error":"Failed to load plugins","plugins.retry":"Retry","plugins.sourcePlaceholder":"Marketplace URL (Git URL or local path)","plugins.namePlaceholder":"Marketplace name (optional)","plugins.cancel":"Cancel","plugins.add":"Add","plugins.version":"Version","plugins.operationFailed":"Operation failed","plugins.searchPlaceholder":"Search plugins...","plugins.allMarketplaces":"All Marketplaces","plugins.noSearchResults":"No matching plugins found","plugins.totalCount":"plugins","plugins.refresh":"Refresh","plugins.installedLabel":"Installed","plugins.category":"Category","plugins.author":"Author","plugins.license":"License","plugins.homepage":"Homepage","plugins.repository":"Repository","plugins.source":"Source","plugins.keywords":"Keywords","plugins.features":"Features","channel.from":"From","channel.group":"Group","channel.replyTo":"Reply to {source}","channel.wechat":"WeChat","channel.wecom":"WeCom","channel.wecomBot":"WeCom Bot","remoteControl.title":"Remote Control","remoteControl.subtitle":"Manage channel connections","remoteControl.connectedChannels":"Connected Channels","remoteControl.noChannels":"No channels connected","remoteControl.noChannelsHint":"Add a WeChat or WeCom channel, or install more from the marketplace","remoteControl.addWeChat":"Add WeChat Bot","remoteControl.addWeCom":"Add WeCom Bot","remoteControl.connect":"Connect","remoteControl.disconnect":"Disconnect","remoteControl.delete":"Delete","remoteControl.add":"Add","remoteControl.connected":"Connected","remoteControl.disconnected":"Disconnected","remoteControl.connecting":"Connecting...","remoteControl.installMore":"Install More Channels","remoteControl.installMoreHint":"Browse the plugin marketplace for third-party channel plugins","remoteControl.browseMarketplace":"Browse Marketplace","remoteControl.builtIn":"Built-in","remoteControl.plugin":"Plugin","remoteControl.rebind":"Rebind","remoteControl.unbind":"Unbind","remoteControl.bot":" Bot","remoteControl.default":"Default ","remoteControl.next":"Next","remoteControl.cancel":"Cancel","remoteControl.wecomBotIdHint":"From: WeCom Admin → Apps → AI Assistant","remoteControl.wecomSecretHint":"Enter Secret and press Enter or click Connect","remoteControl.fetchingQr":"Fetching QR code...","remoteControl.scanQr":"Scan QR code with WeChat","sidebar.docs":"Docs","docs.title":"Documentation","docs.search.placeholder":"Search docs...","docs.search.noResults":"No matching documents found","docs.search.resultsCount":"{count} results","docs.loading":"Loading...","docs.loadError":"Failed to load document","docs.notFound":"Document not found","docs.apiReference":"API Reference","docs.toc":"On this page","docs.retry":"Retry","docs.backToList":"Back to docs","docs.expandAll":"Expand all","docs.collapseAll":"Collapse all","docs.openStandalone":"Open in new window","sidebar.metrics":"Metrics","metrics.title":"System Metrics","metrics.loading":"Loading metrics...","metrics.refresh":"Refresh","metrics.cpu":"CPU","metrics.memory":"Memory","metrics.disk":"Disk","metrics.cores":"cores","metrics.workers":"Workers","metrics.noWorkers":"No running workers","metrics.current":"Current","metrics.uptime":"Uptime","metrics.version":"Version","sidebar.editor":"Files","editor.title":"Code Editor","editor.loading":"Loading...","editor.loadError":"Failed to load","editor.noFile":"Select a file to start editing","editor.unsaved":"Unsaved","editor.save":"Save","editor.saveAll":"Save All","editor.close":"Close","editor.closeOthers":"Close Others","editor.closeAll":"Close All","editor.newFile":"New File","editor.newFolder":"New Folder","editor.rename":"Rename","editor.delete":"Delete","editor.refresh":"Refresh","editor.emptyFolder":"Empty folder","editor.explorer":"EXPLORER","editor.toggleSidebar":"Toggle Sidebar","editor.collapseAll":"Collapse All","editor.openFolder":"Open Folder","editor.openFolderPlaceholder":"Enter directory path...","editor.parentFolder":"Parent Folder","editor.pin":"Pin","editor.unpin":"Unpin","editor.copyPath":"Copy Path","editor.copyRelativePath":"Copy Relative Path","editor.revealInExplorer":"Reveal in Explorer","editor.closeToRight":"Close to the Right","editor.closeSaved":"Close Saved","editor.quickOpen":"Quick Open File","editor.focusExplorer":"Focus Explorer","editor.recentFiles":"Recent Files","editor.quickOpenPlaceholder":"Type filename to search...","editor.quickOpenEmpty":"No matching files","editor.quickOpenLoading":"Loading file list...","editor.selected":"selected","editor.lines":"lines","editor.preview":"Switch to Preview","editor.source":"Switch to Source","sidebar.workers":"Workers","workers.title":"Worker Processes","workers.refresh":"Refresh","workers.active":"Active Workers","workers.empty":"No active worker processes","workers.daemon":"Daemon","workers.daemon.running":"Running","workers.daemon.stopped":"Stopped","workers.daemon.start":"Start","workers.daemon.starting":"Starting...","workers.daemon.stop":"Stop","workers.daemon.restart":"Restart","workers.action.logs":"Logs","workers.action.open":"Open","workers.action.kill":"Kill","workers.action.kill.confirm":"Are you sure you want to kill this worker process?","sidebar.logs":"Logs","logs.title":"Log Viewer","logs.selectWorker":"Select Worker","logs.current":"current","logs.search":"Search logs...","logs.autoRefresh":"Auto Refresh","logs.refresh":"Refresh","logs.empty":"No log content","command.btw.description":"Ask a quick side question without interrupting the main Agent work","command.clear.description":"Start a fresh conversation (previous chats remain accessible via /resume)","command.context.description":"Calculate and display context token distribution","command.cost.description":"Show the total cost and duration of the current session","command.doctor.description":"Diagnose and verify your CodeBuddy installation and settings","command.feedback.description":"Open the issue feedback page to report bugs or suggest features","command.gateway.description":'Manage the remote control gateway. Subcommands: "status" to show current status, "stop" to stop the gateway, "token" to regenerate access token, "tunnel" to start with tunnel',"command.remote-control.description":"Manage remote control long connection clients (start, stop, status, list)","command.login.description":"Switch Tencent Cloud CodeBuddy accounts","command.logout.description":"Sign out from your CodeBuddy Code account","command.plan.description":"Preview the current plan file content","command.pr-comments.description":"Get comments from a GitHub pull request","command.release-notes.description":"View release notes","command.review.description":"Review a pull request","command.skills.description":"List available skills","command.todos.description":"Display the current session's todo list","command.reload-plugins.description":"Reload all plugins, skills, agents, hooks, and MCP/LSP servers without restarting","command.plugin-validate.description":"Validate a plugin directory structure and manifest","command.init.description":"Analyzing your codebase…","command.compact.description":"Clear conversation history but keep a summary in context. Optional: /compact [instructions for summarization]","command.upgrade.description":"Open upgrade page in browser","command.statusline.description":"Set up Codebuddy Code's status line UI","command.security-review.description":"Complete a security review of the pending changes on the current branch","command.insights.description":"Generate AI-powered insights about your CodeBuddy Code usage patterns and activity","command.loop.description":"Run a prompt or slash command on a recurring interval (e.g. /loop 5m /foo, defaults to 10m)","command.task-manager.description":"Team task management - Smart task entry, assignment, tracking and analysis","sidebar.changes":"Changes","fileChanges.title":"Changes","fileChanges.changesSection":"FILE CHANGES","fileChanges.empty":"No file changes","fileChanges.showChanges":"Show file changes","fileChanges.hideChanges":"Hide file changes","fileChanges.revertAll":"Revert all","fileChanges.revertCode":"Revert code","fileChanges.revertChat":"Revert chat","fileChanges.revertCodeAndChat":"Revert all","fileChanges.checkpoints":"Checkpoints","fileChanges.noCheckpoints":"No checkpoints","filePreview.binaryNotSupported":"This file cannot be previewed in the editor","filePreview.download":"Download"}};function ie(){const{mode:e,resolved:t,setLocale:r,toggle:n}=$n();function s(d){return Oc[t][d]??d}function l(d){return Oc[t][d]}return{t:s,tryT:l,locale:e,resolved:t,setLocale:r,toggleLocale:n}}function $c(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Fg(e){if(Array.isArray(e))return e}function Pg(e,t,r){return(t=qg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bg(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,l,d,a=[],o=!0,c=!1;try{if(l=(r=r.call(e)).next,t!==0)for(;!(o=(n=l.call(r)).done)&&(a.push(n.value),a.length!==t);o=!0);}catch(m){c=!0,s=m}finally{try{if(!o&&r.return!=null&&(d=r.return(),Object(d)!==d))return}finally{if(c)throw s}}return a}}function Ug(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
519
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Mc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dc(Object(r),!0).forEach(function(n){Pg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zg(e,t){if(e==null)return{};var r,n,s=Hg(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function Hg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Gg(e,t){return Fg(e)||Bg(e,t)||Vg(e,t)||Ug()}function Wg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qg(e){var t=Wg(e,"string");return typeof t=="symbol"?t:t+""}function Vg(e,t){if(e){if(typeof e=="string")return $c(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$c(e,t):void 0}}function Kg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Fc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jc(Object(r),!0).forEach(function(n){Kg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(s,l){return l(s)},n)}}function Jt(e){return function t(){for(var r=this,n=arguments.length,s=new Array(n),l=0;l<n;l++)s[l]=arguments[l];return s.length>=e.length?e.apply(this,s):function(){for(var d=arguments.length,a=new Array(d),o=0;o<d;o++)a[o]=arguments[o];return t.apply(r,[].concat(s,a))}}}function Dr(e){return{}.toString.call(e).includes("Object")}function Xg(e){return!Object.keys(e).length}function or(e){return typeof e=="function"}function Zg(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Jg(e,t){return Dr(t)||mt("changeType"),Object.keys(t).some(function(r){return!Zg(e,r)})&&mt("changeField"),t}function Qg(e){or(e)||mt("selectorType")}function ef(e){or(e)||Dr(e)||mt("handlerType"),Dr(e)&&Object.values(e).some(function(t){return!or(t)})&&mt("handlersType")}function tf(e){e||mt("initialIsRequired"),Dr(e)||mt("initialType"),Xg(e)&&mt("initialContent")}function rf(e,t){throw new Error(e[t]||e.default)}var nf={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},mt=Jt(rf)(nf),vr={changes:Jg,selector:Qg,handler:ef,initial:tf};function sf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};vr.initial(e),vr.handler(t);var r={current:e},n=Jt(lf)(r,t),s=Jt(of)(r),l=Jt(vr.changes)(e),d=Jt(af)(r);function a(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return vr.selector(c),c(r.current)}function o(c){Yg(n,s,l,d)(c)}return[a,o]}function af(e,t){return or(t)?t(e.current):t}function of(e,t){return e.current=Fc(Fc({},e.current),t),t}function lf(e,t,r){return or(t)?t(e.current):Object.keys(r).forEach(function(n){var s;return(s=t[n])===null||s===void 0?void 0:s.call(t,e.current[n])}),r}var cf={create:sf},df={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function uf(e){return function t(){for(var r=this,n=arguments.length,s=new Array(n),l=0;l<n;l++)s[l]=arguments[l];return s.length>=e.length?e.apply(this,s):function(){for(var d=arguments.length,a=new Array(d),o=0;o<d;o++)a[o]=arguments[o];return t.apply(r,[].concat(s,a))}}}function pf(e){return{}.toString.call(e).includes("Object")}function hf(e){return e||Pc("configIsRequired"),pf(e)||Pc("configType"),e.urls?(mf(),{paths:{vs:e.urls.monacoBase}}):e}function mf(){console.warn(vu.deprecation)}function gf(e,t){throw new Error(e[t]||e.default)}var vu={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
520
|
+
You are using deprecated way of configuration.
|
|
521
|
+
|
|
522
|
+
Instead of using
|
|
523
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
524
|
+
use
|
|
525
|
+
monaco.config({ paths: { vs: '...' } })
|
|
526
|
+
|
|
527
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
528
|
+
`},Pc=uf(gf)(vu),ff={config:hf},bf=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(s){return r.reduceRight(function(l,d){return d(l)},s)}};function xu(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],xu(e[r],t[r]))}),Mc(Mc({},e),t)}var yf={type:"cancelation",msg:"operation is manually canceled"};function ln(e){var t=!1,r=new Promise(function(n,s){e.then(function(l){return t?s(yf):n(l)}),e.catch(s)});return r.cancel=function(){return t=!0},r}var _f=["monaco"],vf=cf.create({config:df,isInitialized:!1,resolve:null,reject:null,monaco:null}),Su=Gg(vf,2),dr=Su[0],zr=Su[1];function xf(e){var t=ff.config(e),r=t.monaco,n=zg(t,_f);zr(function(s){return{config:xu(s.config,n),monaco:r}})}function Sf(){var e=dr(function(t){var r=t.monaco,n=t.isInitialized,s=t.resolve;return{monaco:r,isInitialized:n,resolve:s}});if(!e.isInitialized){if(zr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ln(cn);if(window.monaco&&window.monaco.editor)return ku(window.monaco),e.resolve(window.monaco),ln(cn);bf(kf,Ef)(Cf)}return ln(cn)}function kf(e){return document.body.appendChild(e)}function wf(e){var t=document.createElement("script");return e&&(t.src=e),t}function Ef(e){var t=dr(function(n){var s=n.config,l=n.reject;return{config:s,reject:l}}),r=wf("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Cf(){var e=dr(function(r){var n=r.config,s=r.resolve,l=r.reject;return{config:n,resolve:s,reject:l}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;ku(n),e.resolve(n)},function(r){e.reject(r)})}function ku(e){dr().monaco||zr({monaco:e})}function Tf(){return dr(function(e){var t=e.monaco;return t})}var cn=new Promise(function(e,t){return zr({resolve:e,reject:t})}),wu={config:xf,init:Sf,__getMonacoInstance:Tf},Nf={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},dn=Nf,Af={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Rf=Af;function If({children:e}){return Ce.createElement("div",{style:Rf.container},e)}var Lf=If,Of=Lf;function $f({width:e,height:t,isEditorReady:r,loading:n,_ref:s,className:l,wrapperProps:d}){return Ce.createElement("section",{style:{...dn.wrapper,width:e,height:t},...d},!r&&Ce.createElement(Of,null,n),Ce.createElement("div",{ref:s,style:{...dn.fullWidth,...!r&&dn.hide},className:l}))}var Df=$f,Eu=C.memo(Df);function Mf(e){C.useEffect(e,[])}var Cu=Mf;function jf(e,t,r=!0){let n=C.useRef(!0);C.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var qe=jf;function nr(){}function Lt(e,t,r,n){return Ff(e,n)||Pf(e,t,r,n)}function Ff(e,t){return e.editor.getModel(Tu(e,t))}function Pf(e,t,r,n){return e.editor.createModel(t,r,n?Tu(e,n):void 0)}function Tu(e,t){return e.Uri.parse(t)}function Bf({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:s,originalModelPath:l,modifiedModelPath:d,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:o=!1,theme:c="light",loading:m="Loading...",options:h={},height:b="100%",width:v="100%",className:S,wrapperProps:x={},beforeMount:p=nr,onMount:g=nr}){let[u,f]=C.useState(!1),[y,k]=C.useState(!0),_=C.useRef(null),E=C.useRef(null),w=C.useRef(null),N=C.useRef(g),I=C.useRef(p),A=C.useRef(!1);Cu(()=>{let F=wu.init();return F.then(z=>(E.current=z)&&k(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>_.current?B():F.cancel()}),qe(()=>{if(_.current&&E.current){let F=_.current.getOriginalEditor(),z=Lt(E.current,e||"",n||r||"text",l||"");z!==F.getModel()&&F.setModel(z)}},[l],u),qe(()=>{if(_.current&&E.current){let F=_.current.getModifiedEditor(),z=Lt(E.current,t||"",s||r||"text",d||"");z!==F.getModel()&&F.setModel(z)}},[d],u),qe(()=>{let F=_.current.getModifiedEditor();F.getOption(E.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],u),qe(()=>{var F,z;(z=(F=_.current)==null?void 0:F.getModel())==null||z.original.setValue(e||"")},[e],u),qe(()=>{let{original:F,modified:z}=_.current.getModel();E.current.editor.setModelLanguage(F,n||r||"text"),E.current.editor.setModelLanguage(z,s||r||"text")},[r,n,s],u),qe(()=>{var F;(F=E.current)==null||F.editor.setTheme(c)},[c],u),qe(()=>{var F;(F=_.current)==null||F.updateOptions(h)},[h],u);let M=C.useCallback(()=>{var P;if(!E.current)return;I.current(E.current);let F=Lt(E.current,e||"",n||r||"text",l||""),z=Lt(E.current,t||"",s||r||"text",d||"");(P=_.current)==null||P.setModel({original:F,modified:z})},[r,t,s,e,n,l,d]),O=C.useCallback(()=>{var F;!A.current&&w.current&&(_.current=E.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...h}),M(),(F=E.current)==null||F.editor.setTheme(c),f(!0),A.current=!0)},[h,c,M]);C.useEffect(()=>{u&&N.current(_.current,E.current)},[u]),C.useEffect(()=>{!y&&!u&&O()},[y,u,O]);function B(){var z,P,U,T;let F=(z=_.current)==null?void 0:z.getModel();a||((P=F==null?void 0:F.original)==null||P.dispose()),o||((U=F==null?void 0:F.modified)==null||U.dispose()),(T=_.current)==null||T.dispose()}return Ce.createElement(Eu,{width:v,height:b,isEditorReady:u,loading:m,_ref:w,className:S,wrapperProps:x})}var Uf=Bf,zf=C.memo(Uf);function Hf(e){let t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}var Gf=Hf,xr=new Map;function Wf({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:s,path:l,theme:d="light",line:a,loading:o="Loading...",options:c={},overrideServices:m={},saveViewState:h=!0,keepCurrentModel:b=!1,width:v="100%",height:S="100%",className:x,wrapperProps:p={},beforeMount:g=nr,onMount:u=nr,onChange:f,onValidate:y=nr}){let[k,_]=C.useState(!1),[E,w]=C.useState(!0),N=C.useRef(null),I=C.useRef(null),A=C.useRef(null),M=C.useRef(u),O=C.useRef(g),B=C.useRef(),F=C.useRef(n),z=Gf(l),P=C.useRef(!1),U=C.useRef(!1);Cu(()=>{let $=wu.init();return $.then(R=>(N.current=R)&&w(!1)).catch(R=>(R==null?void 0:R.type)!=="cancelation"&&console.error("Monaco initialization: error:",R)),()=>I.current?L():$.cancel()}),qe(()=>{var R,q,W,Y;let $=Lt(N.current,e||n||"",t||s||"",l||r||"");$!==((R=I.current)==null?void 0:R.getModel())&&(h&&xr.set(z,(q=I.current)==null?void 0:q.saveViewState()),(W=I.current)==null||W.setModel($),h&&((Y=I.current)==null||Y.restoreViewState(xr.get(l))))},[l],k),qe(()=>{var $;($=I.current)==null||$.updateOptions(c)},[c],k),qe(()=>{!I.current||n===void 0||(I.current.getOption(N.current.editor.EditorOption.readOnly)?I.current.setValue(n):n!==I.current.getValue()&&(U.current=!0,I.current.executeEdits("",[{range:I.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),I.current.pushUndoStop(),U.current=!1))},[n],k),qe(()=>{var R,q;let $=(R=I.current)==null?void 0:R.getModel();$&&s&&((q=N.current)==null||q.editor.setModelLanguage($,s))},[s],k),qe(()=>{var $;a!==void 0&&(($=I.current)==null||$.revealLine(a))},[a],k),qe(()=>{var $;($=N.current)==null||$.editor.setTheme(d)},[d],k);let T=C.useCallback(()=>{var $;if(!(!A.current||!N.current)&&!P.current){O.current(N.current);let R=l||r,q=Lt(N.current,n||e||"",t||s||"",R||"");I.current=($=N.current)==null?void 0:$.editor.create(A.current,{model:q,automaticLayout:!0,...c},m),h&&I.current.restoreViewState(xr.get(R)),N.current.editor.setTheme(d),a!==void 0&&I.current.revealLine(a),_(!0),P.current=!0}},[e,t,r,n,s,l,c,m,h,d,a]);C.useEffect(()=>{k&&M.current(I.current,N.current)},[k]),C.useEffect(()=>{!E&&!k&&T()},[E,k,T]),F.current=n,C.useEffect(()=>{var $,R;k&&f&&(($=B.current)==null||$.dispose(),B.current=(R=I.current)==null?void 0:R.onDidChangeModelContent(q=>{U.current||f(I.current.getValue(),q)}))},[k,f]),C.useEffect(()=>{if(k){let $=N.current.editor.onDidChangeMarkers(R=>{var W;let q=(W=I.current.getModel())==null?void 0:W.uri;if(q&&R.find(Y=>Y.path===q.path)){let Y=N.current.editor.getModelMarkers({resource:q});y==null||y(Y)}});return()=>{$==null||$.dispose()}}return()=>{}},[k,y]);function L(){var $,R;($=B.current)==null||$.dispose(),b?h&&xr.set(l,I.current.saveViewState()):(R=I.current.getModel())==null||R.dispose(),I.current.dispose()}return Ce.createElement(Eu,{width:v,height:S,isEditorReady:k,loading:o,_ref:A,className:x,wrapperProps:p})}var qf=Wf,Vf=C.memo(qf),Kf=Vf;const Yf={fontSize:13,fontFamily:"'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace",lineHeight:20,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:"off",tabSize:4,insertSpaces:!0,renderWhitespace:"selection",padding:{top:0,bottom:0},smoothScrolling:!0,fixedOverflowWidgets:!0,readOnly:!0,renderSideBySide:!1,ignoreTrimWhitespace:!1,enableSplitViewResizing:!0,originalEditable:!1};function ir({path:e,oldText:t,newText:r,maxHeight:n="100%"}){const{t:s}=ie(),{resolved:l}=tt(),d=C.useRef(null),a=l==="dark"?"vs-dark":"vs",o=Xf(e),c=C.useCallback(m=>{d.current=m},[]);return i.jsx("div",{style:{height:n},className:"overflow-hidden",children:i.jsx(zf,{original:t??"",modified:r,language:o,theme:a,height:"100%",onMount:c,loading:i.jsxs("div",{className:"flex items-center justify-center h-full gap-2",style:{color:"var(--color-text-tertiary)"},children:[i.jsx(ve,{size:16,className:"animate-spin"}),i.jsx("span",{style:{fontSize:13},children:s("editor.loading")})]}),options:Yf})})}function Xf(e){var n;const t=((n=e.split(".").pop())==null?void 0:n.toLowerCase())||"";return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",py:"python",go:"go",java:"java",rs:"rust",rb:"ruby",php:"php",cpp:"cpp",c:"c",cs:"csharp",swift:"swift",kt:"kotlin",scala:"scala",sh:"shell",bash:"shell",zsh:"shell",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",less:"less",yaml:"yaml",yml:"yaml",md:"markdown",sql:"sql",dockerfile:"dockerfile"}[t]||"text"}const Zf=[[[["arttext-icon",["dark-purple","dark-purple"],/\.artx$/i],["atom-icon",["dark-green","dark-green"],/^\.atom$/],["bower-icon",["medium-yellow","medium-orange"],/^bower[-_]components$/],["dropbox-icon",["medium-blue","medium-blue"],/^(?:Dropbox|\.dropbox\.cache)$/],["emacs-icon",["medium-purple","medium-purple"],/^\.emacs\.d$/],["dylib-icon",[null,null],/\.framework$/i],["git-icon",["medium-red","medium-red"],/\.git$/],["github-icon",[null,null],/^\.github$/],["meteor-icon",["dark-orange","dark-orange"],/^\.meteor$/],["node-icon",["medium-green","medium-green"],/^node_modules$/],["package-icon",[null,null],/^\.bundle$/i],["svn-icon",[null,null],/^\.svn$/i],["textmate-icon",[null,null],/\.tmBundle$/i],["vagrant-icon",["medium-cyan","medium-cyan"],/\.vagrant$/i],["appstore-icon",[null,null],/\.xcodeproj$/i]],[[],[],[],[],[]]],[[["binary-icon",["dark-green","dark-green"],/\.swp$/i,4],["link-icon",["medium-blue","medium-blue"],/\.lnk$/i,3],["angular-icon",["medium-red","medium-red"],/^angular[^.]*\.js$/i,2],["ant-icon",["dark-pink","dark-pink"],/^ant\.xml$|\.ant$/i,2],["apache-icon",["medium-red","medium-red"],/^(?:apache2?|httpd).conf$/i,2],["apache-icon",["dark-green","dark-green"],/\.vhost$/i,2],["apache-icon",["medium-green","medium-green"],/\.thrift$/i,2],["appcelerator-icon",["medium-red","medium-red"],/^appcelerator\.js$/i,2],["appveyor-icon",["medium-blue","medium-blue"],/^appveyor\.yml$/i,2],["archlinux-icon",["dark-purple","dark-purple"],/^\.install$/,2],["archlinux-icon",["dark-maroon","dark-maroon"],/^\.SRCINFO$/,2],["archlinux-icon",["dark-yellow","dark-yellow"],/^pacman\.conf$/,2],["archlinux-icon",["light-yellow","light-yellow"],/^pamac\.conf$/,2],["archlinux-icon",["dark-cyan","dark-cyan"],/^PKGBUILD$/,2],["archlinux-icon",["light-yellow","light-yellow"],/yaourtrc$/i,2],["backbone-icon",["dark-blue","dark-blue"],/^backbone(?:[-.]min|dev)?\.js$/i,2],["boot-icon",["medium-green","dark-green"],/^Makefile\.boot$/i,2],["bootstrap-icon",["medium-yellow","dark-yellow"],/^(?:custom\.)?bootstrap\S*\.js$/i,2],["bootstrap-icon",["medium-blue","medium-blue"],/^(?:custom\.)?bootstrap\S*\.css$/i,2],["bootstrap-icon",["dark-blue","dark-blue"],/^(?:custom\.)?bootstrap\S*\.less$/i,2],["bootstrap-icon",["light-pink","light-pink"],/^(?:custom\.)?bootstrap\S*\.scss$/i,2],["bootstrap-icon",["medium-green","medium-green"],/^(?:custom\.)?bootstrap\S*\.styl$/i,2],["bower-icon",["medium-yellow","medium-orange"],/^(?:\.bowerrc|bower\.json|Bowerfile)$/i,2],["brakeman-icon",["medium-red","medium-red"],/brakeman\.yml$/i,2],["brakeman-icon",["dark-red","dark-red"],/^brakeman\.ignore$/i,2],["broccoli-icon",["medium-green","medium-green"],/^Brocfile\./i,2],["package-icon",["light-orange","light-orange"],/Cargo\.toml$/i,2],["package-icon",["dark-orange","dark-orange"],/Cargo\.lock$/i,2],["chai-icon",["medium-red","dark-red"],/^chai\.(?:[jt]sx?|es6?|coffee)$/i,2],["chartjs-icon",["dark-pink","dark-pink"],/^Chart\.js$/i,2],["circleci-icon",["medium-green","medium-green"],/^circle\.yml$/i,2],["cc-icon",["medium-green","medium-green"],/\.codeclimate\.yml$/i,2],["codecov-icon",["dark-pink","dark-pink"],/^codecov\.ya?ml$/i,2],["coffee-icon",["medium-cyan","medium-cyan"],/\.coffee\.ecr$/i,2],["coffee-icon",["medium-red","medium-red"],/\.coffee\.erb$/i,2],["compass-icon",["medium-red","medium-red"],/^_?(?:compass|lemonade)\.scss$/i,2],["composer-icon",["medium-yellow","medium-yellow"],/^composer\.(?:json|lock)$/i,2],["composer-icon",["dark-blue","dark-blue"],/^composer\.phar$/i,2],["cordova-icon",["light-blue","light-blue"],/^cordova(?:[^.]*\.|-(?:\d\.)+)js$/i,2],["d3-icon",["medium-orange","medium-orange"],/^d3(?:\.v\d+)?[^.]*\.js$/i,2],["database-icon",["medium-red","medium-red"],/^METADATA\.pb$/,2],["database-icon",["medium-red","medium-red"],/\.git[\/\\](?:.*[\/\\])?(?:HEAD|ORIG_HEAD|packed-refs|logs[\/\\](?:.+[\/\\])?[^\/\\]+)$/,2,!0],["docker-icon",["dark-blue","dark-blue"],/^(?:Dockerfile(\.\w+$|)|docker-compose)|\.docker(?:file|ignore)$/i,2,!1,,/\.dockerfile$/i,/^Docker$/i],["docker-icon",["dark-orange","dark-orange"],/^docker-sync\.yml$/i,2],["dojo-icon",["light-red","light-red"],/^dojo\.js$/i,2],["ember-icon",["medium-red","medium-red"],/^ember(?:\.|(?:-[^.]+)?-(?:\d+\.)+(?:debug\.)?)js$/i,2],["eslint-icon",["medium-purple","medium-purple"],/\.eslint(?:cache|ignore)$/i,2],["eslint-icon",["light-purple","light-purple"],/\.eslintrc(?:\.(?:js|json|ya?ml))?$/i,2],["extjs-icon",["light-green","light-green"],/\bExtjs(?:-ext)?\.js$/i,2],["fabfile-icon",["medium-blue","medium-blue"],/^fabfile\.py$/i,2],["fuelux-icon",["medium-orange","dark-orange"],/^fuelux(?:\.min)?\.(?:css|js)$/i,2],["gear-icon",["medium-blue","medium-blue"],/\.indent\.pro$/i,2],["grunt-icon",["medium-yellow","medium-yellow"],/gruntfile\.js$/i,2],["grunt-icon",["medium-maroon","medium-maroon"],/gruntfile\.coffee$/i,2],["gulp-icon",["medium-red","medium-red"],/gulpfile\.((babel\.)?js|ts)$/i,2],["gulp-icon",["medium-maroon","medium-maroon"],/gulpfile\.coffee$/i,2],["html5-icon",["medium-cyan","medium-cyan"],/\.html?\.ecr$/i,2],["html5-icon",["medium-red","medium-red"],/\.(?:html?\.erb|rhtml)$/i,2,!1,,/\.html\.erb$/i,/^HTML$/i],["ionic-icon",["medium-blue","medium-blue"],/^ionic\.project$/,2],["js-icon",["medium-cyan","medium-cyan"],/\.js\.ecr$/i,2],["js-icon",["medium-red","medium-red"],/\.js\.erb$/i,2],["jquery-icon",["dark-blue","dark-blue"],/^jquery(?:[-.](?:min|latest|\d\.\d+(?:\.\d+)?))*\.(?:[jt]sx?|es6?|coffee|map)$/i,2],["jqueryui-icon",["dark-blue","dark-blue"],/^jquery(?:[-_.](?:ui[-_.](?:custom|dialog-?\w*)|effects)(?:\.[^.]*)?|[-.]?ui(?:-\d\.\d+(?:\.\d+)?)?(?:\.\w+)?)(?:[-_.]?min|dev)?\.(?:[jt]sx?|es6?|coffee|map|s?css|less|styl)$/i,2],["karma-icon",["medium-cyan","medium-cyan"],/^karma\.conf\.js$/i,2],["karma-icon",["medium-maroon","medium-maroon"],/^karma\.conf\.coffee$/i,2],["knockout-icon",["medium-red","medium-red"],/^knockout[-.](?:\d+\.){3}(?:debug\.)?js$/i,2],["leaflet-icon",["medium-green","medium-green"],/^leaflet\.(?:draw-src|draw|spin|coordinates-(?:\d+\.)\d+\.\d+\.src)\.(?:js|css)$|^wicket-leaflet\.js$/i,2],["lein-icon",[null,null],/project\.clj$/i,2],["manpage-icon",["dark-green","dark-green"],/^tmac\.|^(?:mmn|mmt)$/i,2],["marko-icon",["medium-blue","medium-blue"],/\.marko$/i,2,!1,/^marko$/,/\.marko$/i,/^mark[0o]$/i],["marko-icon",["medium-maroon","medium-maroon"],/\.marko\.js$/i,2],["materialize-icon",["light-red","light-red"],/^materialize(?:\.min)?\.(?:js|css)$/i,2],["mathjax-icon",["dark-green","dark-green"],/^MathJax[^.]*\.js$/i,2],["mocha-icon",["medium-maroon","medium-maroon"],/^mocha\.(?:[jt]sx?|es6?|coffee)$/i,2],["mocha-icon",["medium-red","medium-red"],/^mocha\.(?:s?css|less|styl)$/i,2],["mocha-icon",["light-maroon","light-maroon"],/mocha\.opts$/i,2],["modernizr-icon",["medium-red","medium-red"],/^modernizr(?:[-\.]custom|-\d\.\d+)(?:\.\d+)?\.js$/i,2],["mootools-icon",["medium-purple","medium-purple"],/^mootools[^.]*\d+\.\d+(?:.\d+)?[^.]*\.js$/i,2],["neko-icon",["dark-orange","dark-orange"],/^run\.n$/,2],["newrelic-icon",["medium-cyan","medium-cyan"],/^newrelic\.yml/i,2],["nginx-icon",["dark-green","dark-green"],/^nginx\.conf$/i,2],["shuriken-icon",["dark-cyan","dark-cyan"],/\.ninja\.d$/i,2],["nodemon-icon",["medium-green","medium-green"],/^nodemon\.json$|^\.nodemonignore$/i,2],["normalize-icon",["medium-red","medium-red"],/^normalize\.(?:css|less|scss|styl)$/i,2],["npm-icon",["medium-red","medium-red"],/^(?:package\.json|\.npmignore|\.?npmrc|npm-debug\.log|npm-shrinkwrap\.json)$/i,2],["postcss-icon",["medium-yellow","dark-yellow"],/\bpostcss\.config\.js$/i,2],["protractor-icon",["medium-red","medium-red"],/^protractor\.conf\./i,2],["pug-icon",["medium-orange","medium-orange"],/^\.pug-lintrc/i,2],["raphael-icon",["medium-orange","medium-orange"],/^raphael(?:\.min|\.no-deps)*\.js$/i,2],["react-icon",["dark-blue","dark-blue"],/^react(?:-[^.]*)?\.js$/i,2],["react-icon",["medium-blue","dark-blue"],/\.react\.js$/i,2],["book-icon",["medium-blue","medium-blue"],/^README(?:\b|_)|^(?:licen[sc]es?|(?:read|readme|click|delete|keep|test)\.me)$|\.(?:readme|1st)$/i,2],["book-icon",["dark-blue","dark-blue"],/^(?:notice|bugs|changes|change[-_]?log(?:[-._]?\d+)?|contribute|contributing|contributors|copying|hacking|history|install|maintainers|manifest|more\.stuff|projects|revision|terms|thanks)$/i,2],["requirejs-icon",["medium-blue","medium-blue"],/^require(?:[-.]min|dev)?\.js$/i,2],["clojure-icon",["medium-maroon","dark-maroon"],/^riemann\.config$/i,2],["rollup-icon",["medium-red","medium-red"],/^rollup\.config\./i,2],["ruby-icon",["light-green","light-green"],/_spec\.rb$/i,2],["scrutinizer-icon",["dark-blue","dark-blue"],/\.scrutinizer\.yml$/i,2],["sencha-icon",["light-green","light-green"],/^sencha(?:\.min)?\.js$/i,2],["snapsvg-icon",["medium-cyan","medium-cyan"],/^snap\.svg(?:[-.]min)?\.js$/i,2],["sourcemap-icon",["medium-blue","medium-blue"],/\.css\.map$/i,2],["sourcemap-icon",["medium-yellow","dark-yellow"],/\.js\.map$/i,2],["stylelint-icon",["medium-purple","medium-purple"],/^\.stylelintrc(?:\.|$)/i,2],["stylelint-icon",["medium-yellow","dark-yellow"],/^stylelint\.config\.js$/i,2],["stylelint-icon",["dark-blue","dark-blue"],/\.stylelintignore$/i,2],["toc-icon",["medium-cyan","dark-cyan"],/\.toc$/i,2,!1,,/\.toc$/i,/^Table of Contents$/i],["calc-icon",["medium-maroon","medium-maroon"],/\.8x[pk](?:\.txt)?$/i,2,!1,,,,/^\*\*TI[789]\d\*\*/],["travis-icon",["medium-red","medium-red"],/^\.travis/i,2],["typedoc-icon",["dark-purple","dark-purple"],/^typedoc\.json$/i,2],["typings-icon",["medium-maroon","medium-maroon"],/^typings\.json$/i,2],["uikit-icon",["medium-blue","medium-blue"],/^uikit(?:\.min)?\.js$/i,2],["webpack-icon",["medium-blue","medium-blue"],/webpack\.config\.|^webpackfile\.js$/i,2],["wercker-icon",["medium-purple","medium-purple"],/^wercker\.ya?ml$/i,2],["yarn-icon",["medium-blue","medium-blue"],/^yarn\.lock$/i,2],["yeoman-icon",["medium-cyan","medium-cyan"],/\.yo-rc\.json$/i,2],["yui-icon",["dark-blue","dark-blue"],/^(?:yahoo-|yui)[^.]*\.js$/i,2],["emacs-icon",["medium-red","medium-red"],/\.gnus$/i,1.5],["emacs-icon",["dark-green","dark-green"],/\.viper$/i,1.5],["emacs-icon",["dark-blue","dark-blue"],/^Cask$/,1.5],["emacs-icon",["medium-blue","medium-blue"],/^Project\.ede$/i,1.5],["_1c-icon",["medium-red","medium-red"],/\.bsl$/i,,!1,,/\.bsl$/i,/^1C$|^1[\W_ \t]?C[\W_ \t]?Enterprise$/i],["_1c-icon",["dark-orange","dark-orange"],/\.sdbl$/i,,!1,,/\.sdbl$/i,/^1C$|^1[\W_ \t]?C[\W_ \t]?Query$/i],["_1c-icon",["dark-red","dark-red"],/\.os$/i],["_1c-alt-icon",["medium-red","dark-red"],/\.mdo$/i],["abap-icon",["medium-orange","medium-orange"],/\.abap$/i,,!1,,/\.abp$/i,/^ABAP$/i],["as-icon",["medium-blue","medium-blue"],/\.swf$/i],["as-icon",["medium-red","medium-red"],/\.as$/i,,!1,,/\.(?:flex-config|actionscript(?:\.\d+)?)$/i,/^ActionScript$|^(?:ActionScript\s*3|as3)$/i],["as-icon",["medium-yellow","dark-yellow"],/\.jsfl$/i],["as-icon",["dark-red","dark-red"],/\.swc$/i],["ada-icon",["medium-blue","medium-blue"],/\.(?:ada|adb|ads)$/i,,!1,,/\.ada$/i,/^Ada$|^(?:ada95|ada2005)$/i],["ae-icon",["dark-pink","dark-pink"],/\.aep$/i],["ae-icon",["dark-purple","dark-purple"],/\.aet$/i],["ai-icon",["medium-orange","medium-orange"],/\.ai$/i],["ai-icon",["dark-orange","dark-orange"],/\.ait$/i],["indesign-icon",["dark-pink","dark-pink"],/\.indd$|\.idml$/i],["indesign-icon",["medium-purple","medium-purple"],/\.indl$/i],["indesign-icon",["dark-purple","dark-purple"],/\.indt$|\.inx$/i],["indesign-icon",["dark-blue","dark-blue"],/\.indb$/i],["psd-icon",["medium-blue","medium-blue"],/\.psd$/i,,!1,,,,/^8BPS/],["psd-icon",["dark-purple","dark-purple"],/\.psb$/i],["premiere-icon",["dark-purple","dark-purple"],/\.prproj$/i],["premiere-icon",["medium-maroon","medium-maroon"],/\.prel$/i],["premiere-icon",["medium-purple","medium-purple"],/\.psq$/i],["alloy-icon",["medium-red","medium-red"],/\.als$/i,,!1,,/\.alloy$/i,/^Alloy$/i],["alpine-icon",["dark-blue","dark-blue"],/(?:\.|^)APKBUILD$/],["ampl-icon",["dark-maroon","dark-maroon"],/\.ampl$/i,,!1,,/\.ampl$/i,/^AMPL$/i],["sun-icon",["medium-yellow","dark-yellow"],/\.ansiweatherrc$/i],["antlr-icon",["medium-red","medium-red"],/\.g$/i,,!1,/^antlr$/,/\.antlr$/i,/^antlr$/i],["antlr-icon",["medium-orange","medium-orange"],/\.g4$/i],["apache-icon",["dark-red","dark-red"],/\.apacheconf$/i,,!1,,/\.apache-config$/i,/^Apache$|^(?:aconf|ApacheConf)$/i],["apache-icon",["medium-purple","medium-purple"],/apache2[\\\/]magic$/i,,!0],["api-icon",["medium-blue","medium-blue"],/\.apib$/i,,!1,,/\.apib$/i,/^API Blueprint$/i],["apl-icon",["dark-cyan","dark-cyan"],/\.apl$/i,,!1,/^apl$/,/\.apl$/i,/^apl$/i],["apl-icon",["medium-maroon","medium-maroon"],/\.apl\.history$/i],["apple-icon",["medium-purple","medium-purple"],/\.(?:applescript|scpt)$/i,,!1,/^osascript$/,/\.applescript$/i,/^Apple$|^[0o]sascript$/i],["arc-icon",["medium-blue","medium-blue"],/\.arc$/i],["arduino-icon",["dark-cyan","dark-cyan"],/\.ino$/i,,!1,,/\.arduino$/i,/^Arduino$/i],["asciidoc-icon",["medium-blue","medium-blue"],/\.(?:ad|adoc|asc|asciidoc)$/i,,!1,,/\.asciidoc$/i,/^AsciiDoc$/i],["asp-icon",["dark-blue","dark-blue"],/\.asp$/i,,!1,,/\.asp$/i,/^[Aa][Ss][Pp][\W_ \t]?[Nn][Ee][Tt]$|^aspx(?:-vb)?$/],["asp-icon",["medium-maroon","medium-maroon"],/\.asax$/i],["asp-icon",["dark-green","dark-green"],/\.ascx$/i],["asp-icon",["medium-green","medium-green"],/\.ashx$/i],["asp-icon",["dark-cyan","dark-cyan"],/\.asmx$/i],["asp-icon",["medium-purple","medium-purple"],/\.aspx$/i],["asp-icon",["medium-cyan","medium-cyan"],/\.axd$/i],["eclipse-icon",["medium-maroon","medium-maroon"],/\.aj$/i],["binary-icon",["medium-red","medium-red"],/\.(?:l?a|[ls]?o|out|s|a51|n?asm|axf|elf|prx|puff|was[mt]|z80)$|\.rpy[bc]$/i,,!1,,/(?:^|\.)(?:a[rs]m|x86|z80|lc-?3|cpu12|x86asm|m68k|assembly|avr(?:dis)?asm|dasm)(?:\.|$)/i,/^Assembly$|^n?asm$/i],["binary-icon",["dark-blue","dark-blue"],/\.agc$|\.d-objdump$/i,,!1,,/\.source\.agc$/i,/^Assembly$|^(?:Virtual\s*)?AGC$|^Apollo(?:[-_\s]*11)?\s*Guidance\s*Computer$/i],["binary-icon",["dark-green","dark-green"],/\.ko$/i],["binary-icon",["medium-blue","medium-blue"],/\.lst$/i,,!1,/^lst-cpu12$/,/\.lst-cpu12$/i,/^Assembly$|^lst[\W_ \t]?cpu12$/i],["binary-icon",["dark-orange","dark-orange"],/\.(?:(?:c(?:[+px]{2}?)?-?)?objdump|bsdiff|bin|dat|pak|pdb)$/i],["binary-icon",["medium-orange","medium-orange"],/\.gcode|\.gco/i],["binary-icon",["dark-purple","dark-purple"],/\.py[co]$/i],["binary-icon",[null,null],/\.DS_Store$/i],["ats-icon",["medium-red","medium-red"],/\.dats$/i,,!1,,/\.ats$/i,/^ATS$|^ats2$/i],["ats-icon",["medium-blue","medium-blue"],/\.hats$/i],["ats-icon",["dark-yellow","dark-yellow"],/\.sats$/i],["audacity-icon",["medium-yellow","medium-yellow"],/\.aup$/i],["audio-icon",["medium-red","medium-red"],/\.mp3$/i,,!1,,,,/^\xFF\xFB|^ID3/],["audio-icon",["dark-yellow","dark-yellow"],/\.wav$/i,,!1,,,,/^RIFF(?!.+WEBP)/],["audio-icon",["dark-cyan","dark-cyan"],/\.(?:aac|ac3|m4p)$/i,,!1,,,,/^\x0Bw/],["audio-icon",["medium-purple","medium-purple"],/\.aif[fc]?$/i,,!1,,,,/^FORM.{4}AIFF/],["audio-icon",["medium-cyan","medium-cyan"],/\.au$/i,,!1,,,,/^\.snd|^dns\./],["audio-icon",["dark-red","dark-red"],/\.flac$/i,,!1,,,,/^fLaC/],["audio-icon",["medium-red","medium-red"],/\.f4[ab]$/i,,!1,,,,/^FLV\x01\x04/],["audio-icon",["medium-cyan","medium-cyan"],/\.m4a$/i,,!1,,,,/^.{4}ftypM4A/],["audio-icon",["dark-green","dark-green"],/\.(?:mpc|mp\+)$/i,,!1,,,,/^MPCK/],["audio-icon",["dark-orange","dark-orange"],/\.oga$/i],["audio-icon",["dark-maroon","dark-maroon"],/\.opus$/i,,!1,,,,/OpusHead/],["audio-icon",["dark-blue","dark-blue"],/\.r[am]$/i,,!1,,,,/^\.RMF/],["audio-icon",["medium-blue","medium-blue"],/\.wma$/i],["augeas-icon",["dark-orange","dark-orange"],/\.aug$/i],["ahk-icon",["dark-blue","dark-blue"],/\.ahk$/i,,!1,/^ahk$/,/\.ahk$/i,/^AutoHotkey$|^ahk$/i],["ahk-icon",["dark-purple","dark-purple"],/\.ahkl$/i],["autoit-icon",["medium-purple","medium-purple"],/\.au3$/i,,!1,,/(?:^|\.)autoit(?:\.|$)/i,/^AutoIt$|^(?:AutoIt3|AutoItScript|au3)$/i],["terminal-icon",["medium-blue","medium-blue"],/\.awk$/i,,!1,/^awk$/,/\.awk$/i,/^awk$/i],["terminal-icon",["medium-red","medium-red"],/\.gawk$/i,,!1,/^gawk$/,/\.gawk$/i,/^AWK$|^gawk$/i],["terminal-icon",["medium-maroon","medium-maroon"],/\.mawk$/i,,!1,/^mawk$/,/\.mawk$/i,/^AWK$|^mawk$/i],["terminal-icon",["dark-green","dark-green"],/\.nawk$/i,,!1,/^nawk$/,/\.nawk$/i,/^AWK$|^nawk$/i],["terminal-icon",["dark-cyan","dark-cyan"],/\.auk$/i],["babel-icon",["medium-yellow","medium-yellow"],/\.(?:babelrc|languagebabel|babel)$/i],["babel-icon",["dark-yellow","dark-yellow"],/\.babelignore$/i],["bibtex-icon",["medium-red","dark-red"],/\.cbx$/i],["bibtex-icon",["medium-orange","dark-orange"],/\.bbx$/i],["bibtex-icon",["medium-yellow","dark-yellow"],/\.bib$/i,,!1,/^bibtex$/,/\.bibtex$/i,/^bibtex$/i],["bibtex-icon",["medium-green","dark-green"],/\.bst$/i],["gnu-icon",["medium-red","medium-red"],/\.bison$/i,,!1,,/\.bison$/i,/^Bison$/i],["blender-icon",["medium-orange","medium-orange"],/\.blend$/i],["blender-icon",["dark-orange","dark-orange"],/\.blend\d+$/i],["blender-icon",["dark-blue","dark-blue"],/\.bphys$/i],["bluespec-icon",["dark-blue","dark-blue"],/\.bsv$/i,,!1,,/\.bsv$/i,/^Bluespec$/i],["boo-icon",["medium-green","medium-green"],/\.boo$/i,,!1,,/\.boo(?:\.unity)?$/i,/^Boo$/i],["boot-icon",[null,null],/\.boot$/i],["brain-icon",["dark-pink","dark-pink"],/\.bf?$/i,,!1,,/\.(?:bf|brainfuck)$/i,/^Brainfuck$|^(?:bf|Brainf\**ck)$/i],["brew-icon",["medium-orange","medium-orange"],/^Brewfile$/],["bro-icon",["dark-cyan","dark-cyan"],/\.bro$/i,,!1,,/\.bro$/i,/^Bro$/i],["byond-icon",["medium-blue","medium-blue"],/\.dm$/i,,!1,,/\.dm$/i,/^BYOND$|^(?:DM|Dream\s*Maker(?:\s*Script)?)$/i],["c-icon",["medium-blue","medium-blue"],/\.c$/i,,!1,/^tcc$/,/\.c$/i,/^C$/i],["c-icon",["medium-purple","medium-purple"],/\.h$|\.cats$/i],["c-icon",["medium-green","medium-green"],/\.idc$/i],["c-icon",["medium-maroon","medium-maroon"],/\.w$/i],["c-icon",["dark-blue","dark-blue"],/\.nc$/i],["c-icon",["medium-cyan","medium-cyan"],/\.upc$/i],["csharp-icon",["medium-blue","dark-blue"],/\.cs$/i,,!1,,/\.cs$/i,/^C#$|^c\s*sharp$/i],["csscript-icon",["dark-green","dark-green"],/\.csx$/i,,!1,,/\.csx$/i,/^C#-Script$/i],["cpp-icon",["medium-blue","dark-blue"],/\.c[+px]{2}$|\.cc$/i,,!1,,/\.cpp$/i,/^C\+\+$|c[-_]?pp|cplusplus/i],["cpp-icon",["medium-purple","dark-purple"],/\.h[+px]{2}$/i],["cpp-icon",["medium-orange","dark-orange"],/\.[it]pp$/i],["cpp-icon",["medium-red","dark-red"],/\.(?:tcc|inl)$/i],["cabal-icon",["medium-cyan","medium-cyan"],/\.cabal$/i,,!1,,/\.cabal$/i,/^Cabal$/i],["cake-icon",["medium-yellow","medium-yellow"],/\.cake$/i,,!1,,/\.cake$/i,/^Cake$/i],["cakefile-icon",["medium-red","medium-red"],/^Cakefile$/],["cakephp-icon",["medium-red","medium-red"],/\.ctp$/i],["ceylon-icon",["medium-orange","medium-orange"],/\.ceylon$/i],["chapel-icon",["medium-green","medium-green"],/\.chpl$/i,,!1,,/\.chapel$/i,/^Chapel$|^chpl$/i],["chrome-icon",["medium-red","medium-red"],/\.crx$/i,,!1,,,,/^Cr24/],["chuck-icon",["medium-green","medium-green"],/\.ck$/i,,!1,,/\.chuck$/i,/^ChucK$/i],["cirru-icon",["medium-pink","dark-pink"],/\.cirru$/i,,!1,,/\.cirru$/i,/^Cirru$/i],["clarion-icon",["medium-orange","medium-orange"],/\.clw$/i,,!1,,/\.clarion$/i,/^Clarion$/i],["clean-icon",["dark-cyan","dark-cyan"],/\.icl$/i,,!1,/^clean$/,/\.clean$/i,/^clean$/i],["clean-icon",["medium-cyan","medium-cyan"],/\.dcl$/i],["clean-icon",["medium-blue","medium-blue"],/\.abc$/i],["click-icon",["medium-yellow","medium-yellow"],/\.click$/i,,!1,,/\.click$/i,/^Click$|^Click!$/i],["clips-icon",["dark-green","dark-green"],/\.clp$/i,,!1,,/\.clips$/i,/^CLIPS$/i],["clojure-icon",["medium-blue","dark-blue"],/\.clj$/i,,!1,/^clojure$/,/\.clojure$/i,/^cl[0o]jure$/i],["clojure-icon",["medium-purple","dark-purple"],/\.cl2$/i],["clojure-icon",["medium-green","dark-green"],/\.cljc$/i],["clojure-icon",["medium-red","dark-red"],/\.cljx$|\.hic$/i],["cljs-icon",["medium-blue","dark-blue"],/\.cljs(?:\.hl|cm)?$/i],["cmake-icon",["medium-green","medium-green"],/\.cmake$/i,,!1,/^cmake$/,/\.cmake$/i,/^cmake$/i],["cmake-icon",["medium-red","medium-red"],/^CMakeLists\.txt$/],["coffee-icon",["medium-maroon","medium-maroon"],/\.coffee$/i,,!1,/^coffee$/,/\.coffee$/i,/^CoffeeScript$|^Coffee(?:-Script)?$/i],["coffee-icon",["dark-maroon","dark-maroon"],/\.cjsx$/i],["coffee-icon",["light-maroon","light-maroon"],/\.litcoffee$/i,,!1,/^litcoffee$/,/\.litcoffee$/i,/^CoffeeScript$|^litc[0o]ffee$/i],["coffee-icon",["medium-blue","medium-blue"],/\.iced$/i],["cf-icon",["light-cyan","light-cyan"],/\.cfc$/i,,!1,,/\.cfscript$/i,/^ColdFusion$|^(?:CFC|CFScript)$/i],["cf-icon",["medium-cyan","medium-cyan"],/\.cfml?$/i,,!1,,/\.cfml?$/i,/^ColdFusion$|^(?:cfml?|ColdFusion\s*HTML)$/i],["khronos-icon",["medium-orange","medium-orange"],/\.dae$/i],["cl-icon",["medium-orange","medium-orange"],/\.cl$/i,,!1,/^(?:c?lisp|sbcl|[ec]cl)$/,/\.common-lisp$/i,/^Common Lisp$|^c?lisp$/i],["cp-icon",["medium-maroon","medium-maroon"],/\.cp$/i],["cp-icon",["dark-red","dark-red"],/\.cps$/i],["zip-icon",[null,null],/\.(?:zip|z|xz)$/i,,!1,,,,/^(?:\x50\x4B(?:\x03\x04|\x05\x06|\x07|\x08)|\x1F[\x9D\xA0]|BZh|RNC[\x01\x02]|\xD0\xCF\x11\xE0)/],["zip-icon",["medium-blue","medium-blue"],/\.rar$/i,,!1,,,,/^Rar!\x1A\x07\x01?\0/],["zip-icon",["dark-blue","dark-blue"],/\.t?gz$|\.tar$|\.whl$/i,,!1,,,,/^\x1F\x8B/],["zip-icon",["medium-maroon","medium-maroon"],/\.(?:lzo?|lzma|tlz|tar\.lzma)$/i,,!1,,,,/^LZIP/],["zip-icon",["medium-maroon","medium-maroon"],/\.7z$/i,,!1,,,,/^7z\xBC\xAF\x27\x1C/],["zip-icon",["medium-red","medium-red"],/\.apk$|\.gem$/i],["zip-icon",["dark-cyan","dark-cyan"],/\.bz2$/i],["zip-icon",["medium-blue","medium-blue"],/\.iso$/i,,!1,,,,/^\x45\x52\x02\0{3}|^\x8B\x45\x52\x02/],["zip-icon",["medium-orange","medium-orange"],/\.xpi$/i],["zip-icon",["medium-green","medium-green"],/\.epub$/i],["zip-icon",["dark-pink","dark-pink"],/\.jar$/i],["zip-icon",["medium-purple","medium-purple"],/\.war$/i],["zip-icon",["dark-orange","dark-orange"],/\.xar$/i,,!1,,,,/^xar!/],["zip-icon",["light-orange","light-orange"],/\.egg$/i],["config-icon",["medium-yellow","medium-yellow"],/\.(?:ini|desktop|directory|cfg|conf|prefs)$/i,,!1,,/\.ini$/i,/^d[0o]sini$/i],["config-icon",["medium-purple","medium-purple"],/\.properties$/i,,!1,,/\.java-properties$/i],["config-icon",["medium-green","medium-green"],/\.toml$|\.opts$/i],["config-icon",["dark-red","dark-red"],/\.ld$/i],["config-icon",["medium-red","medium-red"],/\.lds$|\.reek$/i],["config-icon",["dark-blue","dark-blue"],/\.terminal$/i],["config-icon",["medium-orange","medium-orange"],/^ld\.script$/i],["config-icon",["dark-red","dark-red"],/\.git[\/\\](?:config|info[\/\\]\w+)$/,,!0],["config-icon",["dark-orange","dark-orange"],/^\/(?:private\/)?etc\/(?:[^\/]+\/)*[^\/]*\.(?:cf|conf|ini)(?:\.default)?$/i,,!0],["config-icon",["medium-maroon","medium-maroon"],/^\/(?:private\/)?etc\/(?:aliases|auto_(?:home|master)|ftpusers|group|gettytab|hosts(?:\.equiv)?|manpaths|networks|paths|protocols|services|shells|sudoers|ttys)$/i,,!0],["coq-icon",["medium-maroon","medium-maroon"],/\.coq$/i,,!1,,/\.coq$/i,/^Coq$/i],["creole-icon",["medium-blue","medium-blue"],/\.creole$/i,,!1,,/\.creole$/i,/^Creole$/i],["crystal-icon",["medium-cyan","medium-cyan"],/\.e?cr$/i,,!1,/^crystal$/,/\.crystal$/i,/^Crystal$/i],["csound-icon",["medium-maroon","medium-maroon"],/\.orc$/i,,!1,,/\.csound$/i,/^Csound$|^cs[0o]und[\W_ \t]?[0o]rc$/i],["csound-icon",["dark-orange","dark-orange"],/\.udo$/i],["csound-icon",["dark-maroon","dark-maroon"],/\.csd$/i,,!1,,/\.csound-document$/i,/^Csound$|^cs[0o]und[\W_ \t]?csd$/i],["csound-icon",["dark-blue","dark-blue"],/\.sco$/i,,!1,,/\.csound-score$/i,/^Csound$|^cs[0o]und[\W_ \t]?sc[0o]$/i],["css3-icon",["medium-blue","medium-blue"],/\.css$/i,,!1,/^css$/,/\.css$/i,/^css$/i],["css3-icon",["dark-blue","dark-blue"],/\.less$/i,,!1,/^less$/,/\.less$/i,/^CSS$|^less$/i],["cucumber-icon",["medium-green","medium-green"],/\.feature$/i,,!1,,/(?:^|\.)(?:gherkin\.feature|cucumber\.steps)(?:\.|$)/i,/^Cucumber$|^gherkin$/i],["nvidia-icon",["medium-green","medium-green"],/\.cu$/i,,!1,,/\.cuda(?:-c\+\+)?$/i,/^CUDA$/i],["nvidia-icon",["dark-green","dark-green"],/\.cuh$/i],["cython-icon",["medium-orange","medium-orange"],/\.pyx$/i,,!1,,/\.cython$/i,/^Cython$|^pyrex$/i],["cython-icon",["medium-blue","medium-blue"],/\.pxd$/i],["cython-icon",["dark-blue","dark-blue"],/\.pxi$/i],["dlang-icon",["medium-red","medium-red"],/\.di?$/i,,!1,,/\.d$/i,/^D$/i],["yang-icon",["medium-red","medium-red"],/\.dnh$/i,,!1,,/\.danmakufu$/i,/^Danmakufu$/i],["darcs-icon",["medium-green","medium-green"],/\.d(?:arcs)?patch$/i],["dart-icon",["medium-cyan","medium-cyan"],/\.dart$/i,,!1,/^dart$/,/\.dart$/i,/^Dart$/i],["dashboard-icon",["medium-orange","medium-orange"],/\.s[kl]im$/i,,!1,/^slim$/,/\.slim$/i,/^slim$/i],["dashboard-icon",["medium-green","medium-green"],/\.cpuprofile$/i],["database-icon",["medium-yellow","medium-yellow"],/\.(?:h|geo|topo)?json$/i],["database-icon",["light-red","light-red"],/\.ya?ml$/i],["database-icon",["medium-maroon","medium-maroon"],/\.cson$|\.ston$|^mime\.types$/i],["database-icon",["dark-yellow","dark-yellow"],/\.json5$/i,,!1,/^json5$/,/\.json5$/i,/^js[0o]n5$/i],["database-icon",["medium-red","medium-red"],/\.http$|\.pot?$/i],["database-icon",["medium-orange","medium-orange"],/\.ndjson$|\.pytb$/i,,!1,,/\.python\.traceback$/i],["database-icon",["light-blue","light-blue"],/\.fea$/i,,!1,,/\.opentype$/i,/^afdk[0o]$/i],["database-icon",["medium-purple","medium-purple"],/\.json\.eex$|\.edn$/i],["database-icon",["dark-cyan","dark-cyan"],/\.proto$/i,,!1,,/\.protobuf$/i,/^(?:protobuf|Protocol\s*Buffers?)$/i],["database-icon",["dark-blue","dark-blue"],/\.pydeps$|\.rviz$/i],["database-icon",["dark-purple","dark-purple"],/\.eam\.fs$/i],["database-icon",["medium-pink","medium-pink"],/\.qml$/i],["database-icon",["dark-pink","dark-pink"],/\.qbs$/i],["database-icon",["medium-cyan","medium-cyan"],/\.ttl$/i,,!1,,/\.turtle$/i],["database-icon",["medium-blue","medium-blue"],/\.syntax$/i],["database-icon",["dark-red","dark-red"],/[\/\\](?:magic[\/\\]Magdir|file[\/\\]magic)[\/\\][-.\w]+$|lib[\\\/]icons[\\\/]\.icondb\.js$/i,,!0],["dbase-icon",["medium-red","medium-red"],/\.dbf$/i],["debian-icon",["medium-red","medium-red"],/\.deb$/i],["debian-icon",["dark-cyan","dark-cyan"],/^control$/],["debian-icon",["medium-cyan","medium-cyan"],/^rules$/],["diff-icon",["medium-orange","medium-orange"],/\.diff$/i,,!1,,/\.diff$/i,/^Diff$|^udiff$/i],["earth-icon",["medium-blue","medium-blue"],/\.zone$/i],["earth-icon",["medium-green","medium-green"],/\.arpa$/i],["earth-icon",["dark-blue","dark-blue"],/^CNAME$/],["doxygen-icon",["medium-blue","medium-blue"],/^Doxyfile$/,,!1,,/\.doxygen$/i,/^Doxyfile$/i],["dyalog-icon",["medium-orange","medium-orange"],/\.dyalog$/i,,!1,/^dyalog$/],["dylib-icon",["medium-cyan","medium-cyan"],/\.(?:dylib|bundle)$/i],["e-icon",["medium-green","medium-green"],/\.E$/,,!1,/^rune$/],["eagle-icon",["medium-red","medium-red"],/\.sch$/i],["eagle-icon",["dark-red","dark-red"],/\.brd$/i],["ec-icon",["dark-blue","dark-blue"],/\.ec$/i,,!1,/^ec$/,/\.ec$/i,/^ec$/i],["ec-icon",["dark-purple","dark-purple"],/\.eh$/i],["ecere-icon",["medium-blue","medium-blue"],/\.epj$/i],["eclipse-icon",["dark-blue","dark-blue"],/\.c?project$/],["eclipse-icon",["medium-red","medium-red"],/\.classpath$/i],["editorconfig-icon",["medium-orange","medium-orange"],/\.editorconfig$/i,,!1,,/\.editorconfig$/i,/^EditorConfig$/i],["eiffel-icon",["medium-cyan","medium-cyan"],/\.e$/,,!1,,/\.eiffel$/i,/^Eiffel$/i],["elixir-icon",["dark-purple","dark-purple"],/\.ex$/i,,!1,/^elixir$/,/\.elixir$/i,/^elixir$/i],["elixir-icon",["medium-purple","medium-purple"],/\.(?:exs|eex)$/i],["elixir-icon",["light-purple","light-purple"],/mix\.exs?$/i],["elm-icon",["medium-blue","medium-blue"],/\.elm$/i,,!1,,/\.elm$/i,/^Elm$/i],["emacs-icon",["medium-purple","medium-purple"],/(?:^|\.)(?:el|_?emacs|spacemacs|emacs\.desktop|abbrev[-_]defs)$/i,,!1,/^emacs$/,/\.emacs\.lisp$/i,/^Emacs Lisp$|^elisp$/i],["emacs-icon",["dark-purple","dark-purple"],/(?:^|\.)(?:elc|eld)$/i,,!1,,,,/^;ELC\x17\0{3}/],["at-icon",["medium-red","dark-red"],/^(?:authors|owners)$/i],["em-icon",["medium-red","medium-red"],/\.emberscript$/i,,!1,,/\.ember(?:script)?$/i,/^EmberScript$/i],["mustache-icon",["medium-blue","medium-blue"],/\.em(?:blem)?$/i,,!1,,/\.emblem$/i,/^Emblem$/i],["eq-icon",["medium-orange","medium-orange"],/\.eq$/i,,!1,,/\.eq$/i,/^EQ$/i],["erlang-icon",["medium-red","medium-red"],/\.erl$/i,,!1,/^escript$/,/\.erlang$/i,/^Erlang$/i],["erlang-icon",["dark-red","dark-red"],/\.beam$/i],["erlang-icon",["medium-maroon","medium-maroon"],/\.hrl$/i],["erlang-icon",["medium-green","medium-green"],/\.xrl$/i],["erlang-icon",["dark-green","dark-green"],/\.yrl$/i],["erlang-icon",["dark-maroon","dark-maroon"],/\.app\.src$/i],["factor-icon",["medium-orange","medium-orange"],/\.factor$/i,,!1,,/\.factor$/i,/^Factor$/i],["factor-icon",["dark-orange","dark-orange"],/\.factor-rc$/i],["factor-icon",["medium-red","medium-red"],/\.factor-boot-rc$/i],["fancy-icon",["dark-blue","dark-blue"],/\.fy$/i,,!1,/^fancy$/,/\.fancy$/i,/^fancy$/i],["fancy-icon",["medium-blue","medium-blue"],/\.fancypack$/i],["fancy-icon",["medium-green","medium-green"],/^Fakefile$/],["fantom-icon",["medium-blue","medium-blue"],/\.fan$/i,,!1,,/\.fan(?:tom)?$/i,/^Fantom$/i],["fbx-icon",["medium-maroon","medium-maroon"],/\.fbx$/i],["finder-icon",["medium-blue","medium-blue"],/^Icon\r$/],["finder-icon",["dark-blue","dark-blue"],/\.rsrc$/i],["flow-icon",["medium-orange","medium-orange"],/\.(?:flowconfig|js\.flow)$/i],["flux-icon",["medium-blue","medium-blue"],/\.fx$/i],["flux-icon",["dark-blue","dark-blue"],/\.flux$/i],["font-icon",["dark-blue","dark-blue"],/\.woff2$/i,,!1,,,,/^wOF2/],["font-icon",["medium-blue","medium-blue"],/\.woff$/i,,!1,,,,/^wOFF/],["font-icon",["light-green","light-green"],/\.eot$/i,,!1,,,,/^.{34}LP/],["font-icon",["dark-green","dark-green"],/\.ttc$/i,,!1,,,,/^ttcf/],["font-icon",["medium-green","medium-green"],/\.ttf$/i,,!1,,,,/^\0\x01\0{3}/],["font-icon",["dark-yellow","dark-yellow"],/\.otf$/i,,!1,,,,/^OTTO.*\0/],["font-icon",["dark-red","dark-red"],/\.pfb$/i],["font-icon",["medium-red","medium-red"],/\.pfm$/i],["ff-icon",["medium-orange","medium-orange"],/\.pe$/i,,!1,/^fontforge$/,/\.source\.fontforge$/i,/^FontForge$|^pfaedit$/i],["ff-icon",["dark-blue","dark-blue"],/\.sfd$/i,,!1,,/\.text\.sfd$/i,/^FontForge$/i],["fortran-icon",["medium-maroon","medium-maroon"],/\.f$/i,,!1,,/\.fortran\.?(?:modern|punchcard)?$/i,/^Fortran$/i],["fortran-icon",["medium-green","medium-green"],/\.f90$/i,,!1,,/\.fortran\.free$/i,/^Fortran$/i],["fortran-icon",["medium-red","medium-red"],/\.f03$/i],["fortran-icon",["medium-blue","medium-blue"],/\.f08$/i],["fortran-icon",["medium-maroon","medium-maroon"],/\.f77$/i,,!1,,/\.fortran\.fixed$/i,/^Fortran$/i],["fortran-icon",["dark-pink","dark-pink"],/\.f95$/i],["fortran-icon",["dark-cyan","dark-cyan"],/\.for$/i],["fortran-icon",["dark-yellow","dark-yellow"],/\.fpp$/i],["freemarker-icon",["medium-blue","medium-blue"],/\.ftl$/i,,!1,,/\.ftl$/i,/^FreeMarker$|^ftl$/i],["frege-icon",["dark-red","dark-red"],/\.fr$/i],["fsharp-icon",["medium-blue","medium-blue"],/\.fs[xi]?$/i,,!1,,/\.fsharp$/i,/^FSharp$|^f#$/i],["gml-icon",["medium-green","medium-green"],/\.gml$/i],["gams-icon",["dark-red","dark-red"],/\.gms$/i,,!1,,/\.gams(?:-lst)?$/i,/^GAMS$/i],["gap-icon",["medium-yellow","dark-yellow"],/\.gap$/i,,!1,/^gap$/,/\.gap$/i,/^gap$/i],["gap-icon",["dark-blue","dark-blue"],/\.gi$/i],["gap-icon",["medium-orange","medium-orange"],/\.tst$/i],["gdb-icon",["medium-green","dark-green"],/\.gdb$/i,,!1,/^gdb$/,/\.gdb$/i,/^gdb$/i],["gdb-icon",["medium-cyan","dark-cyan"],/gdbinit$/i],["godot-icon",["medium-blue","medium-blue"],/\.gd$/i,,!1,,/\.gdscript$/i,/^GDScript$/i],["gear-icon",["medium-red","medium-red"],/^\.htaccess$|\.yardopts$/i],["gear-icon",["medium-orange","medium-orange"],/^\.htpasswd$/i],["gear-icon",["dark-green","dark-green"],/^\.env\.|\.pairs$/i],["gear-icon",["dark-yellow","dark-yellow"],/^\.lesshintrc$/i],["gear-icon",["medium-yellow","medium-yellow"],/^\.csscomb\.json$|\.csslintrc$|\.jsbeautifyrc$|\.jshintrc$|\.jscsrc$/i],["gear-icon",["medium-maroon","medium-maroon"],/\.coffeelintignore$|\.codoopts$/i],["gear-icon",["medium-blue","medium-blue"],/\.module$/i],["gear-icon",["dark-blue","dark-blue"],/\.arcconfig$|\.python-version$/i],["gear-icon",["dark-orange","dark-orange"],/\.lintstagedrc$/i],["gears-icon",["dark-orange","dark-orange"],/\.dll$/i,,!1,,,,/^PMOCCMOC/],["code-icon",["medium-blue","medium-blue"],/\.xml$|\.config$|\.4th$|\.cocci$|\.dyl$|\.dylan$|\.ecl$|\.forth$|\.launch$|\.manifest$|\.menu$|\.srdf$|\.st$|\.ui$|\.wsf$|\.x3d$|\.xaml$/i,,!1,,,,/^<\?xml /],["code-icon",["dark-red","dark-red"],/\.rdf$|\.capnp$|\.dotsettings$|\.flex$|\.fsh$|\.fsproj$|\.prw$|\.xproj$/i,,!1,,/\.capnp$/i],["code-icon",["medium-blue","medium-blue"],/^_service$/],["code-icon",["medium-red","medium-red"],/^configure\.ac$|\.ML$/],["code-icon",["medium-green","medium-green"],/^Settings\.StyleCop$/],["code-icon",["medium-green","medium-green"],/\.abnf$|\.ditaval$|\.storyboard$|\.xmi$|\.yacc$/i,,!1,/^abnf$/,/\.abnf$/i,/^abnf$/i],["code-icon",["medium-purple","medium-purple"],/\.aepx$|\.dita$|\.grace$|\.lid$|\.nproj$/i],["code-icon",["dark-cyan","dark-cyan"],/\.agda$|\.plist$|\.wisp$|\.xlf$|\.xslt$/i,,!1,,/\.plist$/i],["code-icon",["medium-orange","medium-orange"],/\.appxmanifest$|\.befunge$|\.fun$|\.muf$|\.xul$/i],["code-icon",["medium-cyan","medium-cyan"],/\.ash$|\.asn1?$|\.lagda$|\.lex$|\.props$|\.resx$|\.smt2$|\.vsh$|\.xsl$|\.yy$/i,,!1,/^xsl$/,/\.xsl$/i],["code-icon",["dark-blue","dark-blue"],/\.axml$|\.bmx$|\.brs$|\.ccxml$|\.clixml$|\.fth$|\.intr$|\.mdpolicy$|\.mtml$|\.myt$|\.xsd$/i,,!1,/^brightscript$/,/\.brightscript$/i],["code-icon",["medium-maroon","medium-maroon"],/\.bnf$|\.cbl$|\.cob$|\.cobol$|\.fxml$/i,,!1,/^bnf$/,/\.bnf$/i,/^bnf$/i],["code-icon",["dark-maroon","dark-maroon"],/\.ccp$|\.cpy$|\.mxml$/i],["code-icon",["medium-red","medium-red"],/\.ch$|\.cw$|\.ebnf$|\.iml$|\.jflex$|\.m4$|\.mask$|\.mumps$|\.prg$|\.pt$|\.rl$|\.sml$|\.targets$|\.webidl$|\.wsdl$|\.xacro$|\.xliff$/i,,!1,/^ebnf$/,/\.ebnf$/i],["code-icon",["dark-pink","dark-pink"],/\.ct$|\.zcml$/i],["code-icon",["dark-green","dark-green"],/\.cy$|\.eclxml$|\.ivy$|\.sed$|\.tml$|\.y$/i],["code-icon",["dark-purple","dark-purple"],/\.ditamap$|\.frt$|\.lp$|\.omgrofl$|\.osm$|\.wxs$|\.xib$/i],["code-icon",["medium-pink","medium-pink"],/\.filters$|\.lol$|\.pig$/i],["code-icon",["dark-orange","dark-orange"],/\.grxml$|\.urdf$/i],["code-icon",["medium-yellow","medium-yellow"],/\.jelly$/i],["code-icon",["dark-yellow","dark-yellow"],/\.jsproj$|\.ohm$|\.sgml?$/i,,!1,/^ohm$/,/\.ohm$/i],["code-icon",["dark-blue","dark-blue"],/\.mq[45h]$/i,,!1,,/(?:^|\.)mq[45](?=\.|$)/i],["code-icon",["light-green","light-green"],/\.odd$/i],["code-icon",["light-blue","light-blue"],/\.psc1$|\.smt$/i,,!1,/boolector|cvc4|mathsat5|opensmt|smtinterpol|smt-rat|stp|verit|yices2|z3/,/\.smt$/i],["code-icon",["light-cyan","light-cyan"],/\.scxml$/i],["code-icon",["light-maroon","light-maroon"],/\.sig$|\.wxl$/i],["code-icon",["light-orange","light-orange"],/\.ux$|\.wxi$/i],["code-icon",["light-purple","light-purple"],/\.vxml$/i],["genshi-icon",["medium-red","medium-red"],/\.kid$/i,,!1,,/\.genshi$/i,/^Genshi$|^xml\+(?:genshi|kid)$/i],["gentoo-icon",["dark-cyan","dark-cyan"],/\.ebuild$/i,,!1,,/\.ebuild$/i,/^Gentoo$/i],["gentoo-icon",["medium-blue","medium-blue"],/\.eclass$/i],["git-icon",["medium-red","medium-red"],/^\.git|^\.keep$|\.mailmap$/i,,!1,,/\.git-(?:commit|config|rebase)$/i,/^Git$/i],["git-commit-icon",["medium-red","medium-red"],/^COMMIT_EDITMSG$/],["git-merge-icon",["medium-red","medium-red"],/^MERGE_(?:HEAD|MODE|MSG)$/],["glade-icon",["medium-green","medium-green"],/\.glade$/i],["pointwise-icon",["medium-blue","medium-blue"],/\.glf$/i],["glyphs-icon",["medium-green","medium-green"],/\.glyphs$/i],["gn-icon",["dark-blue","dark-blue"],/\.gn$/i,,!1,/^gn$/,/\.gn$/i,/^gn$/i],["gn-icon",["medium-blue","medium-blue"],/\.gni$/i],["gnu-icon",["medium-red","dark-red"],/\.(?:gnu|gplv[23])$/i],["graph-icon",["medium-red","medium-red"],/\.(?:gp|plo?t|gnuplot)$/i,,!1,/^gnuplot$/,/\.gnuplot$/i,/^Gnuplot$/i],["go-icon",["medium-blue","medium-blue"],/\.go$/i,,!1,,/\.go(?:template)?$/i,/^Go$/i],["golo-icon",["medium-orange","medium-orange"],/\.golo$/i,,!1,,/\.golo$/i,/^Golo$/i],["gosu-icon",["medium-blue","medium-blue"],/\.gs$/i,,!1,,/\.gosu(?:\.\d+)?$/i,/^Gosu$/i],["gosu-icon",["medium-green","medium-green"],/\.gst$/i],["gosu-icon",["dark-green","dark-green"],/\.gsx$/i],["gosu-icon",["dark-blue","dark-blue"],/\.vark$/i],["gradle-icon",["medium-blue","medium-blue"],/\.gradle$/i,,!1,,/\.gradle$/i,/^Gradle$/i],["gradle-icon",["dark-purple","dark-purple"],/gradlew$/i],["gf-icon",["medium-red","medium-red"],/\.gf$/i],["graphql-icon",["medium-pink","medium-pink"],/\.graphql$/i,,!1,,/\.graphql$/i,/^GraphQL$/i],["graphql-icon",["medium-purple","medium-purple"],/\.gql$/i],["graphviz-icon",["medium-blue","medium-blue"],/\.gv$/i,,!1,,/\.dot$/i,/^Graphviz$/i],["graphviz-icon",["dark-cyan","dark-cyan"],/\.dot$/i],["groovy-icon",["light-blue","light-blue"],/\.(?:groovy|grt|gtpl|gsp|gvy)$/i,,!1,/^groovy$/,/\.groovy$/i,/^Groovy$|^gsp$/i],["hack-icon",["medium-orange","medium-orange"],/\.hh$/i,,!1,,/\.hack$/i,/^Hack$/i],["haml-icon",["medium-yellow","medium-yellow"],/\.haml$/i,,!1,/^haml$/,/\.haml$/i,/^haml$/i],["haml-icon",["medium-maroon","medium-maroon"],/\.hamlc$/i,,!1,/^hamlc$/,/\.hamlc$/i,/^Haml$|^hamlc$/i],["harbour-icon",["dark-blue","dark-blue"],/\.hb$/i,,!1,,/\.harbour$/i,/^Harbour$/i],["hashicorp-icon",["dark-purple","dark-purple"],/\.hcl$/i,,!1,,/(?:^|\.)(?:hcl|hashicorp)(?:\.|$)/i,/^Hashicorp Configuration Language$/i],["haskell-icon",["medium-purple","medium-purple"],/\.hs$/i,,!1,/^runhaskell$/,/\.source\.haskell$/i,/^Haskell$/i],["haskell-icon",["medium-blue","medium-blue"],/\.hsc$/i,,!1,,/\.hsc2hs$/i,/^Haskell$/i],["haskell-icon",["dark-purple","dark-purple"],/\.c2hs$/i,,!1,,/\.c2hs$/i,/^Haskell$|^C2hs(?:\s*Haskell)?$/i],["haskell-icon",["dark-blue","dark-blue"],/\.lhs$/i,,!1,,/\.latex\.haskell$/i,/^Haskell$|^(?:lhaskell|lhs|Literate\s*Haskell)$/i],["haxe-icon",["medium-orange","medium-orange"],/\.hx(?:[sm]l|)?$/,,!1,,/(?:^|\.)haxe(?:\.\d+)?$/i,/^Haxe$/i],["heroku-icon",["medium-purple","medium-purple"],/^Procfile$/],["heroku-icon",["light-purple","light-purple"],/\.buildpacks$/i],["heroku-icon",["dark-purple","dark-purple"],/^\.vendor_urls$/],["html5-icon",["medium-orange","medium-orange"],/\.x?html?$/i,,!1,,/\.html\.basic$/i,/^HTML$|^(?:xhtml|htm)$/i],["html5-icon",["medium-red","medium-red"],/\.cshtml$|\.latte$/i,,!1,/^latte$/,/\.latte$/i],["html5-icon",["medium-green","medium-green"],/\.ejs$|\.kit$|\.swig$/i,,!1,/^swig$/,/\.swig$/i],["html5-icon",["dark-blue","dark-blue"],/\.gohtml$|\.phtml$/i,,!1,/^gohtml$/,/\.gohtml$/i,/^HTML$|^g[0o]html$/i],["html5-icon",["medium-purple","medium-purple"],/\.html\.eex$|\.jsp$/i,,!1,,/\.jsp$/i],["html5-icon",["medium-cyan","medium-cyan"],/\.shtml$/i],["html5-icon",["dark-red","dark-red"],/\.scaml$/i,,!1,/^scaml$/,/\.scaml$/i,/^HTML$|^scaml$/i],["html5-icon",["medium-red","medium-red"],/\.vash$/i,,!1,/^vash$/,/\.vash$/i,/^HTML$|^vash$/i],["html5-icon",["medium-blue","medium-blue"],/\.dtml$/i,,!1,/^dtml$/,/\.dtml$/i,/^HTML$|^dtml$/i],["hy-icon",["dark-blue","dark-blue"],/\.hy$/i,,!1,,/\.hy$/i,/^Hy$|^hylang$/i],["idl-icon",["medium-blue","medium-blue"],/\.dlm$/i,,!1,,/\.idl$/i,/^IDL$/i],["idris-icon",["dark-red","dark-red"],/\.idr$/i,,!1,,/\.(?:idris|ipkg)$/i,/^Idris$/i],["idris-icon",["medium-maroon","medium-maroon"],/\.lidr$/i],["igorpro-icon",["dark-red","dark-red"],/\.ipf$/i],["image-icon",["medium-orange","medium-orange"],/\.a?png$|\.svgz$/i,,!1,,,,/^.PNG\r\n\x1A\n/],["image-icon",["medium-yellow","medium-yellow"],/\.gif$|\.ora$|\.sgi$/i,,!1,,,,/^GIF8[97]a/],["image-icon",["medium-green","medium-green"],/\.je?pg$/i,,!1,,,,/^\xFF\xD8\xFF[\xDB\xE0\xE1]|(?:JFIF|Exif)\0|^\xCF\x84\x01|^\xFF\xD8.+\xFF\xD9$/],["image-icon",["medium-blue","medium-blue"],/\.ico$/i,,!1,,,,/^\0{2}\x01\0/],["image-icon",["dark-blue","dark-blue"],/\.webp$|\.iff$|\.lbm$|\.liff$|\.nrrd$|\.pcx$|\.vsdx?$/i,,!1,,,,/^RIFF.{4}WEBPVP8/],["image-icon",["medium-red","medium-red"],/\.bmp$/i,,!1,,,,/^BM/],["image-icon",["medium-red","medium-red"],/\.bpg$/i,,!1,,,,/^BPG\xFB/],["image-icon",["medium-orange","medium-orange"],/\.cin$/i,,!1,,,,/^\x80\x2A\x5F\xD7/],["image-icon",["dark-green","dark-green"],/\.cd5$/i,,!1,,,,/^_CD5\x10\0/],["image-icon",["light-yellow","light-yellow"],/\.cpc$/i],["image-icon",["medium-orange","medium-orange"],/\.cr2$/i,,!1,,,,/^II\*\0\x10\0{3}CR/],["image-icon",["medium-pink","medium-pink"],/\.dcm$|\.mpo$|\.pbm$/i,,!1,,,,/^.{128}DICM/],["image-icon",["dark-green","dark-green"],/\.dds$/i,,!1,,,,/^DDS \|\0{3}/],["image-icon",["medium-purple","medium-purple"],/\.djvu?$|\.pxr$/i,,!1,,,,/^AT&TFORM/],["image-icon",["dark-orange","dark-orange"],/\.dpx$|\.raw$/i,,!1,,,,/^(?:SDPX|XPDS)/],["image-icon",["light-blue","light-blue"],/\.ecw$|\.sct$/i],["image-icon",["dark-yellow","dark-yellow"],/\.exr$/i,,!1,,,,/^v\/1\x01/],["image-icon",["medium-cyan","medium-cyan"],/\.fits?$|\.fts$/i,,!1,,,,/^SIMPLE =/],["image-icon",["dark-red","dark-red"],/\.flif$|\.hdp$|\.heic$|\.heif$|\.jxr$|\.wdp$/i,,!1,,,,/^FLIF/],["image-icon",["medium-blue","medium-blue"],/\.hdr$/i,,!1,,,,/^#\?RADIANCE\n/],["image-icon",["medium-pink","medium-pink"],/\.icns$/i,,!1,,,,/^icns/],["image-icon",["dark-green","dark-green"],/\.(?:jp[f2xm]|j2c|mj2)$/i,,!1,,,,/^\0{3}\fjP {2}/],["image-icon",["dark-cyan","dark-cyan"],/\.jps$/i],["image-icon",["medium-orange","medium-orange"],/\.mng$/i,,!1,,,,/^.MNG\r\n\x1A\n/],["image-icon",["light-red","light-red"],/\.pgf$/i],["image-icon",["light-purple","light-purple"],/\.pict$/i],["image-icon",["dark-orange","dark-orange"],/\.tga$/i,,!1,,,,/TRUEVISION-XFILE\.\0$/],["image-icon",["medium-red","medium-red"],/\.tiff?$/i,,!1,,,,/^II\x2A\0|^MM\0\x2A/],["image-icon",["dark-maroon","dark-maroon"],/\.wbm$/i],["inform7-icon",["medium-blue","medium-blue"],/\.ni$/i,,!1,,/\.inform-?7?$/i,/^Inform 7$|^i7$/i],["inform7-icon",["dark-blue","dark-blue"],/\.i7x$/i],["inno-icon",["dark-blue","dark-blue"],/\.iss$/i,,!1,,/\.inno$/i,/^Inno Setup$/i],["io-icon",["dark-purple","dark-purple"],/\.io$/i,,!1,/^io$/,/^source\.io$/i,/^Io$/i],["ioke-icon",["medium-red","medium-red"],/\.ik$/i,,!1,/^ioke$/],["isabelle-icon",["dark-red","dark-red"],/\.thy$/i,,!1,,/\.isabelle\.theory$/i,/^Isabelle$/i],["isabelle-icon",["dark-blue","dark-blue"],/^ROOT$/],["j-icon",["light-blue","light-blue"],/\.ijs$/i,,!1,/^jconsole$/,/\.j$/i,/^J$/i],["jade-icon",["medium-red","medium-red"],/\.jade$/i,,!1,,/\.jade$/i,/^Jade$/i],["jake-icon",["medium-maroon","dark-maroon"],/^Jakefile$/],["jake-icon",["medium-yellow","dark-yellow"],/\.jake$/i],["java-icon",["medium-purple","medium-purple"],/\.java$/i,,!1,,/\.java$/i,/^Java$/i],["js-icon",["medium-yellow","dark-yellow"],/\.js$|\.es6$|\.es$/i,,!1,/^(?:node|iojs)$/,/\.js$/i,/^JavaScript$|^(?:js|node)$/i],["js-icon",["medium-orange","dark-orange"],/\._js$/i],["js-icon",["medium-maroon","dark-maroon"],/\.jsb$|\.dust$/i],["js-icon",["medium-blue","dark-blue"],/\.jsm$|\.mjs$|\.xsjslib$/i],["js-icon",["medium-green","dark-green"],/\.jss$/i],["js-icon",["medium-pink","dark-pink"],/\.sjs$/i],["js-icon",["medium-red","dark-red"],/\.ssjs$/i],["js-icon",["medium-purple","dark-purple"],/\.xsjs$/i],["jenkins-icon",["medium-red","dark-red"],/^Jenkinsfile$/],["jinja-icon",["dark-red","dark-red"],/\.jinja$/i,,!1,,/\.jinja$/i,/^Jinja$|^(?:django|htmldjango|html\+django\/jinja|html\+jinja)$/i],["jinja-icon",["medium-red","medium-red"],/\.jinja2$/i],["jsonld-icon",["medium-blue","medium-blue"],/\.jsonld$/i],["sql-icon",["medium-blue","medium-blue"],/\.jq$/i,,!1,,/\.jq$/i,/^JSONiq$/i],["jsx-icon",["medium-blue","dark-blue"],/\.jsx$/i,,!1,,/\.jsx$/i,/^JSX$/i],["julia-icon",["medium-purple","medium-purple"],/\.jl$/i,,!1,,/\.julia$/i,/^Julia$/i],["jupyter-icon",["dark-orange","dark-orange"],/\.ipynb$/i,,!1,,/\.ipynb$/i,/^(?:ipynb|(?:Jupyter|IPython)\s*Notebook)$/i],["jupyter-icon",["dark-cyan","dark-cyan"],/^Notebook$/],["keynote-icon",["medium-blue","medium-blue"],/\.keynote$/i],["keynote-icon",["dark-blue","dark-blue"],/\.knt$/i],["kivy-icon",["dark-maroon","dark-maroon"],/\.kv$/i,,!1,,/\.kv$/i,/^Kivy$/i],["earth-icon",["medium-green","medium-green"],/\.kml$/i],["kotlin-icon",["dark-blue","dark-blue"],/\.kt$/i,,!1,/^kotlin$/,/\.kotlin$/i,/^k[0o]tlin$/i],["kotlin-icon",["medium-blue","medium-blue"],/\.ktm$/i],["kotlin-icon",["medium-orange","medium-orange"],/\.kts$/i],["krl-icon",["medium-blue","medium-blue"],/\.krl$/i,,!1,,/\.krl$/i,/^KRL$/i],["labview-icon",["dark-blue","dark-blue"],/\.lvproj$/i],["laravel-icon",["medium-orange","medium-orange"],/\.blade\.php$/i,,!1,,/\.php\.blade$/i,/^Laravel$/i],["lasso-icon",["dark-blue","dark-blue"],/\.lasso$|\.las$/i,,!1,,/\.lasso$/i,/^Lasso$|^lass[0o]script$/i],["lasso-icon",["medium-blue","medium-blue"],/\.lasso8$/i],["lasso-icon",["medium-purple","medium-purple"],/\.lasso9$/i],["lasso-icon",["medium-red","medium-red"],/\.ldml$/i],["lean-icon",["dark-purple","dark-purple"],/\.lean$/i,,!1,/^lean$/,/\.lean$/i,/^lean$/i],["lean-icon",["dark-red","dark-red"],/\.hlean$/i],["lfe-icon",["dark-red","dark-red"],/\.lfe$/i],["lightwave-icon",["medium-red","medium-red"],/\.lwo$/i],["lightwave-icon",["medium-blue","medium-blue"],/\.lws$/i],["lisp-icon",["medium-red","medium-red"],/\.lsp$/i,,!1,/^newlisp$/,/\.newlisp$/i,/^Lisp$|^newlisp$/i],["lisp-icon",["dark-red","dark-red"],/\.lisp$/i,,!1,/^lisp$/,/\.lisp$/i,/^lisp$/i],["lisp-icon",["medium-maroon","medium-maroon"],/\.l$|\.nl$/i,,!1,/picolisp|pil/],["lisp-icon",["medium-blue","medium-blue"],/\.ny$|\.sexp$/i],["lisp-icon",["medium-purple","medium-purple"],/\.podsl$/i],["ls-icon",["medium-blue","medium-blue"],/\.ls$/i,,!1,,/\.livescript$/i,/^LiveScript$|^(?:ls|live-script)$/i],["ls-icon",["dark-blue","dark-blue"],/\._ls$/i],["ls-icon",["medium-green","medium-green"],/^Slakefile$/],["llvm-icon",["dark-green","dark-green"],/\.ll$/i,,!1,/^llvm$/,/\.llvm$/i,/^llvm$/i],["llvm-icon",["medium-yellow","dark-yellow"],/\.clang-format$/i],["mobile-icon",["dark-blue","dark-blue"],/\.xm$/i,,!1,/^logos$/,/\.logos$/i,/^l[0o]g[0o]s$/i],["mobile-icon",["dark-red","dark-red"],/\.xi$/i],["logtalk-icon",["medium-red","medium-red"],/\.(?:logtalk|lgt)$/i,,!1,,/\.logtalk$/i,/^Logtalk$/i],["lookml-icon",["medium-purple","medium-purple"],/\.lookml$/i],["lsl-icon",["medium-cyan","medium-cyan"],/\.lsl$/i,,!1,/^lsl$/,/\.lsl$/i,/^lsl$/i],["lsl-icon",["dark-cyan","dark-cyan"],/\.lslp$/i],["lua-icon",["medium-blue","medium-blue"],/\.lua$/i,,!1,/^lua$/,/\.lua$/i,/^lua$/i],["lua-icon",["dark-blue","dark-blue"],/\.pd_lua$/i],["lua-icon",["dark-purple","dark-purple"],/\.rbxs$/i],["lua-icon",["dark-red","dark-red"],/\.wlua$/i],["checklist-icon",["medium-yellow","medium-yellow"],/^Makefile|^makefile$/,,!1,/^make$/,/\.makefile$/i,/^Makefile$|^(?:bsdmake|make|mf)$/i],["checklist-icon",["medium-yellow","medium-yellow"],/\.(?:mk|mak|make)$|^mkfile$/i],["checklist-icon",["medium-red","medium-red"],/^BSDmakefile$|\.am$/i],["checklist-icon",["medium-green","medium-green"],/^GNUmakefile$/i],["checklist-icon",["medium-blue","medium-blue"],/^Kbuild$/],["checklist-icon",["dark-blue","dark-blue"],/\.bb$/i],["checklist-icon",["dark-blue","dark-blue"],/^DEPS$/],["checklist-icon",["medium-blue","medium-blue"],/\.mms$/i],["checklist-icon",["light-blue","light-blue"],/\.mmk$/i],["checklist-icon",["dark-purple","dark-purple"],/\.pri$/i],["mako-icon",["dark-blue","dark-blue"],/\.mak?o$/i,,!1,,/\.mako$/i,/^Mako$/i],["manpage-icon",["dark-green","dark-green"],/\.(?:1(?:[bcmsx]|has|in)?|[24568]|3(?:avl|bsm|3c|in|m|qt|x)?|7(?:d|fs|i|ipp|m|p)?|9[efps]?|chem|eqn|groff|man|mandoc|mdoc|me|mom|n|nroff|pic|tmac|tmac-u|tr|troff)$/i,,!1,/man|mandoc|(?:[gnt]|dit)roff/i,/\.[gt]?roff$/i,/^Manual Page$|^(?:[gtn]?roff|manpage)$/i,/^\.TH[ \t]+(?:\S+)|^'\\" [tre]+(?=\s|$)/],["manpage-icon",["dark-maroon","dark-maroon"],/\.(?:rnh|rno|roff|run|runoff)$/i,,!1,/^runoff$/,/\.runoff$/i,/^Manual Page$|^run[0o]ff$/i],["mapbox-icon",["medium-cyan","medium-cyan"],/\.mss$/i,,!1,,/\.mss$/i,/^Mapbox$|^Carto(?:CSS)?$/i],["markdown-icon",["medium-blue","medium-blue"],/\.(?:md|mdown|markdown|mkd|mkdown|mkdn|rmd|ron)$/i,,!1,,/\.gfm$/i,/^Markdown$/i],["mathematica-icon",["dark-red","dark-red"],/\.mathematica$|\.nbp$/i,,!1,,/\.mathematica$/i,/^Mathematica$|^mma$/i],["mathematica-icon",["medium-red","medium-red"],/\.cdf$/i],["mathematica-icon",["medium-orange","medium-orange"],/\.ma$/i],["mathematica-icon",["medium-maroon","medium-maroon"],/\.mt$/i],["mathematica-icon",["dark-orange","dark-orange"],/\.nb$/i],["mathematica-icon",["medium-yellow","medium-yellow"],/\.wl$/i],["mathematica-icon",["dark-yellow","dark-yellow"],/\.wlt$/i],["matlab-icon",["medium-yellow","medium-yellow"],/\.matlab$/i,,!1,,/\.(?:matlab|octave)$/i,/^MATLAB$|^[0o]ctave$/i],["max-icon",["dark-purple","dark-purple"],/\.maxpat$/i],["max-icon",["medium-red","medium-red"],/\.maxhelp$/i],["max-icon",["medium-blue","medium-blue"],/\.maxproj$/i],["max-icon",["medium-purple","medium-purple"],/\.mxt$/i],["max-icon",["medium-green","medium-green"],/\.pat$/i],["maxscript-icon",["dark-blue","dark-blue"],/\.ms$/i,,!1,,/\.maxscript$/i,/^MAXScript$/i],["maxscript-icon",["dark-purple","dark-purple"],/\.mcr$/i],["maxscript-icon",["medium-red","medium-red"],/\.mce$/i],["maxscript-icon",["dark-cyan","dark-cyan"],/\.max$/i],["maxscript-icon",["medium-cyan","medium-cyan"],/\.3ds$/i],["maya-icon",["dark-cyan","dark-cyan"],/\.mb$/i],["maya-icon",["dark-blue","dark-blue"],/\.mel$/i],["maya-icon",["dark-purple","dark-purple"],/\.mcf[ip]$/i],["mediawiki-icon",["medium-yellow","medium-yellow"],/\.mediawiki$/i,,!1,/^mediawiki$/,/\.mediawiki$/i,/^mediawiki$/i],["mediawiki-icon",["medium-orange","medium-orange"],/\.wiki$/i],["bullhorn-icon",["medium-orange","medium-orange"],/^\.mention-bot$/i],["mercury-icon",["medium-cyan","medium-cyan"],/\.moo$/i,,!1,/^mmi$/,/\.mercury$/i,/^Mercury$/i],["metal-icon",["dark-cyan","dark-cyan"],/\.metal$/i],["access-icon",["dark-maroon","dark-maroon"],/\.accda$/i],["access-icon",["medium-maroon","medium-maroon"],/\.accdb$/i],["access-icon",["medium-green","medium-green"],/\.accde$/i],["access-icon",["medium-red","medium-red"],/\.accdr$/i],["access-icon",["dark-red","dark-red"],/\.accdt$/i],["access-icon",["light-maroon","light-maroon"],/\.adn$|\.laccdb$/i],["access-icon",["dark-purple","dark-purple"],/\.mdw$/i],["excel-icon",["dark-orange","dark-orange"],/\.xls$/i],["excel-icon",["dark-green","dark-green"],/\.xlsx$/i],["excel-icon",["medium-green","medium-green"],/\.xlsm$/i],["excel-icon",["medium-red","medium-red"],/\.xlsb$/i],["excel-icon",["dark-cyan","dark-cyan"],/\.xlt$/i],["onenote-icon",["dark-purple","dark-purple"],/\.one$/i],["powerpoint-icon",["dark-red","dark-red"],/\.pps$/i],["powerpoint-icon",["medium-orange","medium-orange"],/\.ppsx$/i],["powerpoint-icon",["dark-orange","dark-orange"],/\.ppt$/i],["powerpoint-icon",["medium-red","medium-red"],/\.pptx$/i],["powerpoint-icon",["medium-maroon","medium-maroon"],/\.potm$/i],["powerpoint-icon",["dark-green","dark-green"],/\.mpp$/i],["word-icon",["medium-blue","medium-blue"],/\.doc$/i],["word-icon",["dark-blue","dark-blue"],/\.docx$/i],["word-icon",["medium-maroon","medium-maroon"],/\.docm$/i],["word-icon",["dark-cyan","dark-cyan"],/\.docxml$/i],["word-icon",["dark-maroon","dark-maroon"],/\.dotm$/i],["word-icon",["medium-cyan","medium-cyan"],/\.dotx$/i],["word-icon",["medium-orange","medium-orange"],/\.wri$/i],["minecraft-icon",["dark-green","dark-green"],/^mcmod\.info$/i,,!1,,/\.forge-config$/i,/^Minecraft$/i],["mirah-icon",["medium-blue","medium-blue"],/\.dr?uby$/g,,!1,/^mirah$/,/\.mirah$/i,/^mirah$/i],["mirah-icon",["light-blue","light-blue"],/\.mir(?:ah)?$/g],["model-icon",["medium-red","medium-red"],/\.obj$/i,,!1,,/\.wavefront\.obj$/i],["model-icon",["dark-blue","dark-blue"],/\.mtl$/i,,!1,,/\.wavefront\.mtl$/i],["model-icon",["dark-green","dark-green"],/\.stl$/i],["model-icon",["medium-orange","medium-orange"],/\.u3d$/i],["circle-icon",["light-red","light-red"],/\.mo$/i,,!1,,/\.modelica(?:script)?$/i,/^Modelica$/i],["modula2-icon",["medium-blue","medium-blue"],/\.mod$/i,,!1,,/(?:^|\.)modula-?2(?:\.|$)/i,/^Modula-2$/i],["modula2-icon",["medium-green","medium-green"],/\.def$/i],["modula2-icon",["medium-red","medium-red"],/\.m2$/i],["monkey-icon",["medium-maroon","medium-maroon"],/\.monkey$/i,,!1,,/\.monkey$/i,/^Monkey$/i],["moon-icon",["medium-yellow","medium-yellow"],/\.moon$/i,,!1,/^moon$/,/\.moon$/i,/^MoonScript$/i],["mruby-icon",["medium-red","medium-red"],/\.mrb$/i,,!1,/^mruby$/],["msql-icon",["medium-purple","medium-purple"],/\.dsql$/i],["mupad-icon",["medium-red","medium-red"],/\.mu$/i],["music-icon",["medium-orange","medium-orange"],/\.chord$/i],["music-icon",["dark-blue","dark-blue"],/\.midi?$/i,,!1,,,,/^MThd/],["music-icon",["medium-green","medium-green"],/\.ly$/i,,!1,,/\.(?:At)?lilypond-/i,/^Lily\s*Pond$/i],["music-icon",["dark-green","dark-green"],/\.ily$/i],["music-icon",["dark-red","dark-red"],/\.pd$/i],["mustache-icon",["medium-orange","medium-orange"],/\.(?:hbs|handlebars|mustache)$/i,,!1,,/(?:^|\.)(?:mustache|handlebars)(?:\.|$)/i,/^Mustache$|^(?:hbs|htmlbars|handlebars)$/i],["nant-icon",["medium-orange","medium-orange"],/\.build$/i,,!1,,/\.nant-build$/i,/^NAnt$/i],["earth-icon",["medium-green","medium-green"],/\.ncl$/i,,!1,,/\.ncl$/i,/^NCAR Command Language \(NCL\)$/i],["neko-icon",["medium-orange","medium-orange"],/\.neko$/i,,!1,/^neko$/,/\.neko$/i,/^nek[0o]$/i],["amx-icon",["medium-blue","medium-blue"],/\.axs$/i],["amx-icon",["dark-blue","dark-blue"],/\.axi$/i],["netlogo-icon",["medium-red","medium-red"],/\.nlogo$/i],["nginx-icon",["medium-green","medium-green"],/\.nginxconf$/i,,!1,,/\.nginx$/i,/^NGINX$|^nginx[\W_ \t]?c[0o]nfigurati[0o]n[\W_ \t]?file$/i],["nib-icon",["dark-orange","dark-orange"],/\.nib$/i],["nimrod-icon",["medium-green","medium-green"],/\.nim(?:rod)?$/i,,!1,,/\.nim$/i,/^Nimrod$/i],["shuriken-icon",["medium-blue","medium-blue"],/\.ninja$/i,,!1,/^ninja$/,/\.ninja$/i,/^ninja$/i],["nit-icon",["dark-green","dark-green"],/\.nit$/i,,!1,,/\.nit$/i,/^Nit$/i],["nix-icon",["medium-cyan","medium-cyan"],/\.nix$/i,,!1,,/\.nix$/i,/^Nix$|^nix[0o]s$/i],["nmap-icon",["dark-blue","dark-blue"],/\.nse$/i,,!1,,/\.nmap$/i,/^Nmap$/i],["node-icon",["medium-green","medium-green"],/\.njs$|\.nvmrc$/i],["node-icon",["dark-green","dark-green"],/\.node-version$/i],["nsis-icon",["medium-purple","medium-purple"],/\.nsi$/i,,!1,/^nsis$/,/\.nsis$/i,/^nsis$/i],["nsis-icon",["dark-cyan","dark-cyan"],/\.nsh$/i],["recycle-icon",["light-green","light-green"],/\.nu$/i,,!1,/^nush$/,/\.nu$/i,/^Nu$|^nush$/i],["recycle-icon",["dark-green","dark-green"],/^Nukefile$/],["nuget-icon",["medium-blue","medium-blue"],/\.nuspec$/i],["nuget-icon",["dark-purple","dark-purple"],/\.pkgproj$/i],["numpy-icon",["dark-blue","dark-blue"],/\.numpy$/i],["numpy-icon",["medium-blue","medium-blue"],/\.numpyw$/i],["numpy-icon",["medium-orange","medium-orange"],/\.numsc$/i],["nunjucks-icon",["dark-green","dark-green"],/\.(?:nunjucks|njk)$/i],["objc-icon",["medium-blue","medium-blue"],/\.mm?$/i,,!1,,/\.objc(?:pp)?$/i,/^Objective-C$|^(?:Obj-?C|ObjectiveC)(?:\+\+)?$/i],["objc-icon",["dark-red","dark-red"],/\.pch$/i],["objc-icon",["dark-green","dark-green"],/\.x$/i],["objj-icon",["dark-orange","dark-orange"],/\.j$/i,,!1,,/\.objj$/i,/^Objective-J$|^(?:Obj-?J|ObjectiveJ)$/i],["objj-icon",["dark-red","dark-red"],/\.sj$/i],["ocaml-icon",["medium-orange","medium-orange"],/\.ml$/i,,!1,/ocaml(?:run|script)?/,/\.ocaml$/i,/^OCaml$/i],["ocaml-icon",["dark-orange","dark-orange"],/\.mli$/i],["ocaml-icon",["medium-red","medium-red"],/\.eliom$/i],["ocaml-icon",["dark-red","dark-red"],/\.eliomi$/i],["ocaml-icon",["medium-green","medium-green"],/\.ml4$/i],["ocaml-icon",["dark-green","dark-green"],/\.mll$/i,,!1,/^ocamllex$/,/\.ocamllex$/i,/^OCaml$|^[0o]camllex$/i],["ocaml-icon",["dark-yellow","dark-yellow"],/\.mly$/i,,!1,/^menhir$/,/\.menhir$/i,/^OCaml$|^menhir$/i],["ooc-icon",["medium-green","medium-green"],/\.ooc$/i,,!1,,/\.ooc$/i,/^OOC$/i],["opa-icon",["medium-blue","medium-blue"],/\.opa$/i,,!1,,/\.opa$/i,/^Opa$/i],["opencl-icon",["medium-red","medium-red"],/\.opencl$/i,,!1,,/\.opencl$/i,/^OpenCL$/i],["progress-icon",["medium-red","medium-red"],/\.p$/i,,!1,,/\.abl$/i,/^OpenEdge ABL$|^(?:progress|openedge|abl)$/i],["openoffice-icon",["medium-blue","medium-blue"],/\.odt$/i],["openoffice-icon",["dark-blue","dark-blue"],/\.ott$/i],["openoffice-icon",["dark-purple","dark-purple"],/\.fodt$/i],["openoffice-icon",["medium-green","medium-green"],/\.ods$/i],["openoffice-icon",["dark-green","dark-green"],/\.ots$/i],["openoffice-icon",["dark-cyan","dark-cyan"],/\.fods$/i],["openoffice-icon",["medium-purple","medium-purple"],/\.odp$/i],["openoffice-icon",["dark-pink","dark-pink"],/\.otp$/i],["openoffice-icon",["medium-pink","medium-pink"],/\.fodp$/i],["openoffice-icon",["medium-red","medium-red"],/\.odg$/i],["openoffice-icon",["dark-red","dark-red"],/\.otg$/i],["openoffice-icon",["dark-orange","dark-orange"],/\.fodg$/i],["openoffice-icon",["medium-maroon","medium-maroon"],/\.odf$/i],["openoffice-icon",["light-pink","light-pink"],/\.odb$/i],["scad-icon",["medium-orange","medium-orange"],/\.scad$/i,,!1,,/\.scad$/i,/^OpenSCAD$/i],["scad-icon",["medium-yellow","medium-yellow"],/\.jscad$/i],["org-icon",["dark-green","dark-green"],/\.org$/i],["osx-icon",["medium-red","medium-red"],/\.dmg$/i,,!1,,,,/^\x78\x01\x73\x0D\x62\x62\x60/],["ox-icon",["medium-cyan","dark-cyan"],/\.ox$/i,,!1,,/\.ox$/i,/^Ox$/i],["ox-icon",["medium-green","dark-green"],/\.oxh$/i],["ox-icon",["medium-blue","dark-blue"],/\.oxo$/i],["oxygene-icon",["medium-cyan","dark-cyan"],/\.oxygene$/i,,!1,,/\.oxygene$/i,/^Oxygene$/i],["oz-icon",["medium-yellow","medium-yellow"],/\.oz$/i,,!1,,/\.oz$/i,/^Oz$/i],["pan-icon",["medium-red","medium-red"],/\.pan$/i],["papyrus-icon",["medium-green","medium-green"],/\.psc$/i,,!1,,/(?:^|\.)(?:papyrus\.skyrim|compiled-?papyrus|papyrus-assembly)(?:\.|$)/i,/^Papyrus$/i],["parrot-icon",["medium-green","medium-green"],/\.parrot$/i,,!1,/^parrot$/],["parrot-icon",["dark-green","dark-green"],/\.pasm$/i,,!1,,/\.parrot\.pasm$/i,/^Parrot$|^pasm$/i],["parrot-icon",["dark-blue","dark-blue"],/\.pir$/i,,!1,,/\.parrot\.pir$/i,/^Parrot$|^pir$/i],["pascal-icon",["medium-purple","medium-purple"],/\.pas(?:cal)?$/i,,!1,/pascal|instantfpc/,/\.pascal$/i,/^Pascal$/i],["pascal-icon",["medium-blue","medium-blue"],/\.dfm$/i],["pascal-icon",["dark-blue","dark-blue"],/\.dpr$/i],["pascal-icon",["dark-purple","dark-purple"],/\.lpr$/i],["patch-icon",["medium-green","medium-green"],/\.patch$/i],["pawn-icon",["medium-orange","medium-orange"],/\.pwn$/i,,!1,,/\.pwn$/i,/^PAWN$/i],["pdf-icon",["medium-red","medium-red"],/\.pdf$/i,,!1,,,,/^%PDF/],["perl-icon",["medium-blue","medium-blue"],/\.p(?:er)?l$|\.t$/i,,!1,/^perl$/,/\.perl$/i,/^perl$/i],["perl-icon",["dark-purple","dark-purple"],/\.ph$/i],["perl-icon",["medium-purple","medium-purple"],/\.plx$/i],["perl-icon",["dark-blue","dark-blue"],/\.pm$/i],["perl-icon",["medium-red","medium-red"],/\.(?:psgi|xs)$/i],["perl6-icon",["medium-purple","medium-purple"],/\.pl6$/i,,!1,/^perl6$/,/(?:^|\.)perl6(?:fe)?(?=\.|$)/,/^(?:pl6|Perl\s*6)$/i],["perl6-icon",["light-blue","light-blue"],/\.[tp]6$|\.6pl$/i],["perl6-icon",["dark-pink","dark-pink"],/\.(?:pm6|p6m)$/i],["perl6-icon",["dark-cyan","dark-cyan"],/\.6pm$/i],["perl6-icon",["dark-purple","dark-purple"],/\.nqp$/i],["perl6-icon",["medium-blue","medium-blue"],/\.p6l$/i],["perl6-icon",["dark-green","dark-green"],/\.pod6$/i],["perl6-icon",["medium-green","medium-green"],/^Rexfile$/],["phalcon-icon",["medium-cyan","medium-cyan"],/\.volt$/i,,!1,,/\.volt$/i,/^Phalcon$/i],["php-icon",["dark-blue","dark-blue"],/\.php(?:[st\d]|_cs)?$/i,,!1,/^php$/,/\.php$/i,/^PHP$/i,/^<\?php/],["php-icon",["dark-green","dark-green"],/^Phakefile/],["pickle-icon",["dark-cyan","dark-cyan"],/\.pkl$/i],["pike-icon",["dark-cyan","dark-cyan"],/\.pike$/i,,!1,/^pike$/],["pike-icon",["medium-blue","medium-blue"],/\.pmod$/i],["sql-icon",["medium-red","medium-red"],/\.(?:pls|pck|pks|plb|plsql|pkb)$/i,,!1,,/\.plsql(?:\.oracle)?(?:\.|$)/i,/^PLSQL$/i],["pod-icon",["dark-blue","dark-blue"],/\.pod$/i],["pogo-icon",["medium-orange","dark-orange"],/\.pogo$/i,,!1,,/\.pogoscript$/i,/^PogoScript$/i],["pony-icon",["light-maroon","light-maroon"],/\.pony$/i,,!1,,/\.pony$/i,/^Pony$/i],["postcss-icon",["dark-red","dark-red"],/\.p(?:ost)?css$/i,,!1,/^postcss$/,/\.postcss$/i,/^p[0o]stcss$/i],["postcss-icon",["dark-pink","dark-pink"],/\.sss$/i,,!1,/^sugarss$/,/\.sugarss$/i,/^PostCSS$|^sugarss$/i],["postcss-icon",["medium-orange","dark-orange"],/\.postcssrc$/i],["postscript-icon",["medium-red","medium-red"],/\.ps$/i,,!1,,/\.postscript$/i,/^PostScript$|^p[0o]stscr$/i,/^%!PS/],["postscript-icon",["medium-orange","medium-orange"],/\.eps$/i],["postscript-icon",["dark-blue","dark-blue"],/\.pfa$/i],["postscript-icon",["medium-green","medium-green"],/\.afm$/i],["povray-icon",["dark-blue","dark-blue"],/\.pov$/i],["powerbuilder-icon",["medium-blue","medium-blue"],/\.pbl$|\.sra$/i],["powerbuilder-icon",["dark-blue","dark-blue"],/\.pbt$/i],["powerbuilder-icon",["medium-red","medium-red"],/\.srw$/i],["powerbuilder-icon",["medium-orange","medium-orange"],/\.sru$/i],["powerbuilder-icon",["medium-maroon","medium-maroon"],/\.srp$/i],["powerbuilder-icon",["medium-purple","medium-purple"],/\.srj$/i],["powershell-icon",["medium-blue","medium-blue"],/\.ps1$/i,,!1,,/\.powershell$/i,/^PowerShell$|^p[0o]sh$/i],["powershell-icon",["dark-blue","dark-blue"],/\.psd1$/i],["powershell-icon",["medium-purple","medium-purple"],/\.psm1$/i],["powershell-icon",["dark-purple","dark-purple"],/\.ps1xml$/i],["print-icon",["dark-cyan","dark-cyan"],/\.ppd$/i],["processing-icon",["dark-blue","dark-blue"],/\.pde$/i,,!1,,/\.processing$/i,/^Processing$/i],["prolog-icon",["medium-blue","medium-blue"],/\.pro$/i,,!1,/^swipl$/,/\.prolog$/i,/^Prolog$/i],["prolog-icon",["medium-cyan","medium-cyan"],/\.prolog$/i],["prolog-icon",["medium-purple","medium-purple"],/\.yap$/i,,!1,/^yap$/],["propeller-icon",["medium-orange","medium-orange"],/\.spin$/i,,!1,,/\.spin$/i,/^Propeller Spin$/i],["pug-icon",["medium-red","medium-red"],/\.pug$/i,,!1,,/\.pug$/i,/^Pug$/i],["puppet-icon",["medium-purple","medium-purple"],/\.pp$/i,,!1,/^puppet$/,/\.puppet$/i,/^puppet$/i],["puppet-icon",["dark-blue","dark-blue"],/Modulefile$/i],["purebasic-icon",["medium-red","medium-red"],/\.pb$/i,,!1,/^purebasic$/,/\.purebasic$/i,/^purebasic$/i],["purebasic-icon",["dark-orange","dark-orange"],/\.pbi$/i],["purescript-icon",["dark-purple","dark-purple"],/\.purs$/i,,!1,,/\.purescript$/i,/^PureScript$/i],["python-icon",["dark-blue","dark-blue"],/\.py$|\.bzl$|\.py3$|\.?(?:pypirc|pythonrc|python-venv)$/i,,!1,/python[\d.]*/,/\.python$/i,/^Python$|^rusth[0o]n$/i],["python-icon",["medium-blue","medium-blue"],/\.ipy$/i],["python-icon",["dark-green","dark-green"],/\.isolate$|\.gypi$|\.pyt$/i],["python-icon",["medium-orange","medium-orange"],/\.pep$|\.pyde$/i,,!1,/^pep8$/,/\.pep8$/i,/^Python$|^pep8$/i],["python-icon",["medium-green","medium-green"],/\.gyp$/i],["python-icon",["dark-purple","dark-purple"],/\.pyp$/i],["python-icon",["medium-maroon","medium-maroon"],/\.pyw$/i],["python-icon",["dark-pink","dark-pink"],/\.tac$/i],["python-icon",["dark-red","dark-red"],/\.wsgi$/i],["python-icon",["medium-yellow","dark-yellow"],/\.xpy$/i],["python-icon",["medium-pink","medium-pink"],/\.rpy$/i,,!1,,/\.renpy$/i,/^Python$|^Ren'?Py$/i],["python-icon",["dark-green","dark-green"],/^(?:BUCK|BUILD|SConstruct|SConscript)$/],["python-icon",["medium-green","medium-green"],/^(?:Snakefile|WATCHLISTS)$/],["python-icon",["dark-maroon","dark-maroon"],/^wscript$/],["r-icon",["medium-blue","medium-blue"],/\.(?:r|Rprofile|rsx|rd)$/i,,!1,/^Rscript$/,/\.r$/i,/^R$|^(?:Rscript|splus|Rlang)$/i],["racket-icon",["medium-red","medium-red"],/\.rkt$/i,,!1,/^racket$/,/\.racket$/i,/^racket$/i],["racket-icon",["medium-blue","medium-blue"],/\.rktd$/i],["racket-icon",["light-red","light-red"],/\.rktl$/i],["racket-icon",["dark-blue","dark-blue"],/\.scrbl$/i,,!1,/^scribble$/,/\.scribble$/i,/^Racket$|^scribble$/i],["raml-icon",["medium-cyan","medium-cyan"],/\.raml$/i,,!1,,/\.raml$/i,/^RAML$/i],["rascal-icon",["medium-yellow","medium-yellow"],/\.rsc$/i,,!1,,/\.rascal$/i,/^Rascal$/i],["rdoc-icon",["medium-red","medium-red"],/\.rdoc$/i,,!1,,/\.rdoc$/i,/^RDoc$/i],["xojo-icon",["medium-green","medium-green"],/\.rbbas$/i],["xojo-icon",["dark-green","dark-green"],/\.rbfrm$/i],["xojo-icon",["dark-cyan","dark-cyan"],/\.rbmnu$/i],["xojo-icon",["medium-cyan","medium-cyan"],/\.rbres$/i],["xojo-icon",["medium-blue","medium-blue"],/\.rbtbar$/i],["xojo-icon",["dark-blue","dark-blue"],/\.rbuistate$/i],["reason-icon",["medium-red","medium-red"],/\.re$/i,,!1,/^reason$/,/\.reason$/i,/^reas[0o]n$/i],["reason-icon",["medium-orange","medium-orange"],/\.rei$/i],["rebol-icon",["dark-green","dark-green"],/\.reb(?:ol)?$/i,,!1,/^rebol$/,/\.rebol$/i,/^reb[0o]l$/i],["rebol-icon",["dark-red","dark-red"],/\.r2$/i],["rebol-icon",["dark-blue","dark-blue"],/\.r3$/i],["red-icon",["medium-red","medium-red"],/\.red$/i,,!1,,/\.red$/i,/^Red$|^red\/?system$/i],["red-icon",["light-red","light-red"],/\.reds$/i],["red-hat-icon",["medium-red","medium-red"],/\.rpm$/i],["red-hat-icon",["dark-red","dark-red"],/\.spec$/i],["regex-icon",["medium-green","medium-green"],/\.regexp?$/i,,!1,,/(?:\.|^)regexp?(?:\.|$)/i,/^RegExp$/i],["android-icon",["dark-maroon","dark-maroon"],/\.rsh$/i],["rst-icon",["dark-blue","dark-blue"],/\.re?st(?:\.txt)?$/i,,!1,,/\.restructuredtext$/i,/^reStructuredText$|^re?st$/i],["rexx-icon",["medium-red","medium-red"],/\.rexx?$/i,,!1,/rexx|regina/i,/\.rexx$/i,/^REXX$/i],["rexx-icon",["medium-blue","medium-blue"],/\.pprx$/i],["riot-icon",["medium-red","medium-red"],/\.tag$/i,,!1,,/\.riot$/i,/^RiotJS$/i],["robot-icon",["medium-purple","medium-purple"],/\.robot$/i],["clojure-icon",["medium-red","medium-red"],/\.rg$/i],["rss-icon",["medium-orange","medium-orange"],/\.rss$/i],["ruby-icon",["medium-red","medium-red"],/\.(?:rb|ru|ruby|erb|gemspec|god|mspec|pluginspec|podspec|rabl|rake|opal)$|^\.?(?:irbrc|gemrc|pryrc|rspec|ruby-(?:gemset|version))$/i,,!1,/(?:mac|j)?ruby|rake|rbx/,/\.ruby$/i,/^Ruby$|^(?:rbx?|rake|jruby|macruby)$/i],["ruby-icon",["medium-red","medium-red"],/^(?:Appraisals|(?:Rake|Gem|[bB]uild|Berks|Cap|Danger|Deliver|Fast|Guard|Jar|Maven|Pod|Puppet|Snap)file(?:\.lock)?)$|^rails$/],["ruby-icon",["dark-red","dark-red"],/\.(?:jbuilder|rbuild|rb[wx]|builder)$/i],["ruby-icon",["dark-yellow","dark-yellow"],/\.watchr$/i],["rust-icon",["medium-maroon","medium-maroon"],/\.rs$/i,,!1,/^rust$/,/\.rust$/i,/^rust$/i],["rust-icon",["light-maroon","light-maroon"],/\.rlib$/i],["sage-icon",["medium-blue","medium-blue"],/\.sage$/i,,!1,/^sage$/,/\.sage$/i,/^sage$/i],["sage-icon",["dark-blue","dark-blue"],/\.sagews$/i],["saltstack-icon",["medium-blue","dark-blue"],/\.sls$/i,,!1,,/\.salt$/i,/^SaltStack$|^Salt(?:State)?$/i],["sas-icon",["medium-blue","medium-blue"],/\.sas$/i,,!1,,/\.sas$/i,/^SAS$/i],["sass-icon",["light-pink","light-pink"],/\.scss$/i,,!1,/^scss$/,/\.scss$/i,/^Sass$|^scss$/i],["sass-icon",["dark-pink","dark-pink"],/\.sass$/i,,!1,/^sass$/,/\.sass$/i,/^sass$/i],["sbt-icon",["dark-purple","dark-purple"],/\.sbt$/i],["scala-icon",["medium-red","medium-red"],/\.(?:sc|scala)$/i,,!1,/^scala$/,/\.scala$/i,/^Scala$/i],["scheme-icon",["medium-red","medium-red"],/\.scm$/i,,!1,/guile|bigloo|chicken/,/\.scheme$/i,/^Scheme$/i],["scheme-icon",["medium-blue","medium-blue"],/\.sld$/i],["scheme-icon",["medium-purple","medium-purple"],/\.sps$/i],["scilab-icon",["dark-purple","dark-purple"],/\.sci$/i,,!1,/^scilab$/,/\.scilab$/i,/^scilab$/i],["scilab-icon",["dark-blue","dark-blue"],/\.sce$/i],["scilab-icon",["dark-cyan","dark-cyan"],/\.tst$/i],["secret-icon",[null,null],/\.secret$/i],["self-icon",["dark-blue","dark-blue"],/\.self$/i,,!1,,/\.self$/i,/^Self$/i],["graph-icon",["light-red","light-red"],/\.csv$/i,,!1,,/(?:^|\.)csv(?:\.semicolon)?(?:\.|$)/i],["graph-icon",["light-green","light-green"],/\.(?:tab|tsv)$/i],["graph-icon",["medium-green","medium-green"],/\.dif$/i],["graph-icon",["medium-cyan","medium-cyan"],/\.slk$/i],["sf-icon",["light-orange","light-orange"],/\.sfproj$/i],["terminal-icon",["medium-purple","medium-purple"],/\.(?:sh|rc|bats|bash|tool|install|command)$/i,,!1,/bash|sh|zsh|rc/,/\.shell$/i,/^(?:sh|shell|Shell-?Script|Bash)$/i],["terminal-icon",["dark-purple","dark-purple"],/^(?:\.?bash(?:rc|[-_]?(?:profile|login|logout|history|prompt))|_osc|config|install-sh|PKGBUILD)$/i],["terminal-icon",["dark-yellow","dark-yellow"],/\.ksh$/i],["terminal-icon",["medium-yellow","dark-yellow"],/\.sh-session$/i,,!1,,/\.shell-session$/i,/^(?:Bash|Shell|Sh)[-\s]*(?:Session|Console)$/i],["terminal-icon",["medium-blue","medium-blue"],/\.zsh(?:-theme|_history)?$|^\.?(?:antigen|zpreztorc|zlogin|zlogout|zprofile|zshenv|zshrc)$|\.tmux$/i],["terminal-icon",["medium-green","medium-green"],/\.fish$|^\.fishrc$|\.tcsh$/i,,!1,/^fish$/,/\.fish$/i,/^fish$/i],["terminal-icon",["medium-red","medium-red"],/\.inputrc$/i],["terminal-icon",["medium-red","medium-red"],/^(?:configure|config\.(?:guess|rpath|status|sub)|depcomp|libtool|compile)$/],["terminal-icon",["dark-purple","dark-purple"],/^\/(?:private\/)?etc\/(?:[^\/]+\/)*(?:profile$|nanorc$|rc\.|csh\.)/i,,!0],["terminal-icon",["medium-yellow","medium-yellow"],/\.csh$/i],["shen-icon",["dark-cyan","dark-cyan"],/\.shen$/i],["shopify-icon",["medium-green","medium-green"],/\.liquid$/i],["sigils-icon",["dark-red","dark-red"],/\.sigils$/i],["silverstripe-icon",["medium-blue","medium-blue"],/\.ss$/i,,!1,,/(?:^|\.)ss(?:template)?(?:\.|$)/i,/^SilverStripe$/i],["sketch-icon",["medium-orange","medium-orange"],/\.sketch$/i],["slash-icon",["dark-blue","dark-blue"],/\.sl$/i,,!1,,/\.slash$/i,/^Slash$/i],["android-icon",["medium-green","medium-green"],/\.smali$/i,,!1,,/\.smali$/i,/^Smali$/i],["smarty-icon",["medium-yellow","dark-yellow"],/\.tpl$/i,,!1,,/\.smarty$/i,/^Smarty$/i],["snyk-icon",["dark-purple","dark-purple"],/\.snyk$/i],["clojure-icon",["medium-yellow","dark-yellow"],/\.(?:sma|sp)$/i,,!1,,/\.sp$/i,/^SourcePawn$|^s[0o]urcem[0o]d$/i],["sparql-icon",["medium-blue","medium-blue"],/\.sparql$/i,,!1,,/\.rq$/i,/^SPARQL$/i],["sparql-icon",["dark-blue","dark-blue"],/\.rq$/i],["sqf-icon",["dark-maroon","dark-maroon"],/\.sqf$/i,,!1,/^sqf$/,/\.sqf$/i,/^sqf$/i],["sqf-icon",["dark-red","dark-red"],/\.hqf$/i],["sql-icon",["medium-orange","medium-orange"],/\.(?:my)?sql$/i,,!1,/^sql$/,/\.sql$/i,/^sql$/i],["sql-icon",["medium-blue","medium-blue"],/\.ddl$/i],["sql-icon",["medium-green","medium-green"],/\.udf$/i],["sql-icon",["dark-cyan","dark-cyan"],/\.viw$/i],["sql-icon",["dark-blue","dark-blue"],/\.prc$/i],["sql-icon",["medium-purple","medium-purple"],/\.db2$/i],["sqlite-icon",["medium-blue","medium-blue"],/\.sqlite$/i],["sqlite-icon",["dark-blue","dark-blue"],/\.sqlite3$/i],["sqlite-icon",["medium-purple","medium-purple"],/\.db$/i],["sqlite-icon",["dark-purple","dark-purple"],/\.db3$/i],["squirrel-icon",["medium-maroon","medium-maroon"],/\.nut$/i,,!1,,/\.nut$/i,/^Squirrel$/i],["key-icon",["medium-yellow","medium-yellow"],/\.pub$/i],["key-icon",["medium-orange","medium-orange"],/\.pem$/i],["key-icon",["medium-blue","medium-blue"],/\.key$|\.crt$/i],["key-icon",["medium-purple","medium-purple"],/\.der$/i],["key-icon",["medium-red","medium-red"],/^id_rsa/],["key-icon",["medium-green","medium-green"],/\.glyphs\d*License$|^git-credential-osxkeychain$/i],["key-icon",["dark-green","dark-green"],/^(?:master\.)?passwd$/i],["stan-icon",["medium-red","medium-red"],/\.stan$/i,,!1,,/\.stan$/i,/^Stan$/i],["stata-icon",["medium-blue","medium-blue"],/\.do$/i,,!1,/^stata$/,/\.stata$/i,/^stata$/i],["stata-icon",["dark-blue","dark-blue"],/\.ado$/i],["stata-icon",["light-blue","light-blue"],/\.doh$/i],["stata-icon",["medium-cyan","medium-cyan"],/\.ihlp$/i],["stata-icon",["dark-cyan","dark-cyan"],/\.mata$/i,,!1,/^mata$/,/\.mata$/i,/^Stata$|^mata$/i],["stata-icon",["light-cyan","light-cyan"],/\.matah$/i],["stata-icon",["medium-purple","medium-purple"],/\.sthlp$/i],["storyist-icon",["medium-blue","medium-blue"],/\.story$/i],["strings-icon",["medium-red","medium-red"],/\.strings$/i,,!1,,/\.strings$/i,/^Strings$/i],["stylus-icon",["medium-green","medium-green"],/\.styl$/i,,!1,,/\.stylus$/i,/^Stylus$/i],["sublime-icon",["medium-orange","medium-orange"],/\.(?:stTheme|sublime[-_](?:build|commands|completions|keymap|macro|menu|mousemap|project|settings|theme|workspace|metrics|session|snippet))$/i],["sublime-icon",["dark-orange","dark-orange"],/\.sublime-syntax$/i],["scd-icon",["medium-red","medium-red"],/\.scd$/i,,!1,/sclang|scsynth/,/\.supercollider$/i,/^SuperCollider$/i],["svg-icon",["dark-yellow","dark-yellow"],/\.svg$/i,,!1,,/\.svg$/i,/^SVG$/i],["swift-icon",["light-orange","light-orange"],/\.swift$/i,,!1,,/\.swift$/i,/^Swift$/i],["sysverilog-icon",["medium-blue","dark-blue"],/\.sv$/i],["sysverilog-icon",["medium-green","dark-green"],/\.svh$/i],["sysverilog-icon",["medium-cyan","dark-cyan"],/\.vh$/i],["tag-icon",["medium-blue","medium-blue"],/\.?c?tags$/i],["tag-icon",["medium-red","medium-red"],/\.gemtags/i],["tcl-icon",["dark-orange","dark-orange"],/\.tcl$/i,,!1,/tclsh|wish/,/\.tcl$/i,/^Tcl$/i],["tcl-icon",["medium-orange","medium-orange"],/\.adp$/i],["tcl-icon",["medium-red","medium-red"],/\.tm$/i],["coffee-icon",["medium-orange","medium-orange"],/\.tea$/i,,!1,,/\.tea$/i,/^Tea$/i],["tt-icon",["medium-blue","medium-blue"],/\.tt2?$/i],["tt-icon",["medium-purple","medium-purple"],/\.tt3$/i],["tern-icon",["medium-blue","medium-blue"],/\.tern-project$/i],["terraform-icon",["dark-purple","dark-purple"],/\.tf(?:vars)?$/i,,!1,,/\.terra(?:form)?$/i,/^Terraform$/i],["tex-icon",["medium-blue","dark-blue"],/\.tex$|\.ltx$|\.lbx$/i,,!1,,/(?:^|\.)latex(?:\.|$)/i,/^TeX$|^latex$/i],["tex-icon",["medium-green","dark-green"],/\.aux$|\.ins$/i],["tex-icon",["medium-red","dark-red"],/\.sty$|\.texi$/i,,!1,,/(?:^|\.)tex(?:\.|$)/i,/^TeX$/i],["tex-icon",["medium-maroon","dark-maroon"],/\.dtx$/i],["tex-icon",["medium-orange","dark-orange"],/\.cls$|\.mkiv$|\.mkvi$|\.mkii$/i],["text-icon",["medium-blue","medium-blue"],/\.te?xt$|\.irclog$|\.uot$/i,,!1,,,,/^\xEF\xBB\xBF|^\xFF\xFE/],["text-icon",["medium-maroon","medium-maroon"],/\.log$|^Terminal[-_\s]Saved[-_\s]Output$|\.brf$/i],["text-icon",["dark-red","dark-red"],/\.git[\/\\]description$/,,!0],["text-icon",["medium-red","medium-red"],/\.err$|\.no$|^(?:bug-report|fdl|for-release|tests)$/i],["text-icon",["dark-red","dark-red"],/\.rtf$|\.uof$/i],["text-icon",["dark-blue","dark-blue"],/\.i?nfo$/i],["text-icon",["dark-purple","dark-purple"],/\.abt$|\.sub$/i],["text-icon",["dark-orange","dark-orange"],/\.ans$/i],["text-icon",["medium-yellow","medium-yellow"],/\.etx$/i],["text-icon",["medium-orange","medium-orange"],/\.msg$/i],["text-icon",["medium-purple","medium-purple"],/\.srt$|\.uop$/i],["text-icon",["medium-cyan","medium-cyan"],/\.(?:utxt|utf8)$/i],["text-icon",["medium-green","medium-green"],/\.weechatlog$|\.uos$/i],["textile-icon",["medium-orange","medium-orange"],/\.textile$/i,,!1,,/\.textile$/i,/^Textile$/i],["textmate-icon",["dark-green","dark-green"],/\.tmcg$/i],["textmate-icon",["dark-purple","dark-purple"],/\.tmLanguage$/i],["textmate-icon",["medium-blue","medium-blue"],/\.tmCommand$/i],["textmate-icon",["dark-blue","dark-blue"],/\.tmPreferences$/i],["textmate-icon",["dark-orange","dark-orange"],/\.tmSnippet$/i],["textmate-icon",["medium-pink","medium-pink"],/\.tmTheme$/i],["textmate-icon",["medium-maroon","medium-maroon"],/\.tmMacro$/i],["textmate-icon",["medium-orange","medium-orange"],/\.yaml-tmlanguage$/i],["textmate-icon",["medium-purple","medium-purple"],/\.JSON-tmLanguage$/i],["thor-icon",["medium-orange","medium-orange"],/\.thor$/i],["thor-icon",["dark-orange","dark-orange"],/^Thorfile$/i],["tsx-icon",["light-blue","light-blue"],/\.tsx$/i,,!1,,/\.tsx$/i,/^TSX$/i],["turing-icon",["medium-red","medium-red"],/\.tu$/i,,!1,,/\.turing$/i,/^Turing$/i],["twig-icon",["medium-green","medium-green"],/\.twig$/i,,!1,,/\.twig$/i,/^Twig$/i],["txl-icon",["medium-orange","medium-orange"],/\.txl$/i,,!1,,/\.txl$/i,/^TXL$/i],["ts-icon",["medium-blue","medium-blue"],/\.ts$/i,,!1,,/\.ts$/i,/^(?:ts|Type[-\s]*Script)$/i],["unity3d-icon",["dark-blue","dark-blue"],/\.anim$/i,,!1,/^shaderlab$/,/\.shaderlab$/i,/^Unity3D$|^shaderlab$/i],["unity3d-icon",["dark-green","dark-green"],/\.asset$/i],["unity3d-icon",["medium-red","medium-red"],/\.mat$/i],["unity3d-icon",["dark-red","dark-red"],/\.meta$/i],["unity3d-icon",["dark-cyan","dark-cyan"],/\.prefab$/i],["unity3d-icon",["medium-blue","medium-blue"],/\.unity$/i],["unity3d-icon",["medium-maroon","medium-maroon"],/\.unityproj$/i],["uno-icon",["dark-blue","dark-blue"],/\.uno$/i],["unreal-icon",[null,null],/\.uc$/i,,!1,,/\.uc$/i,/^UnrealScript$/i],["link-icon",["dark-blue","dark-blue"],/\.url$/i],["urweb-icon",["medium-maroon","medium-maroon"],/\.ur$/i,,!1,,/\.ur$/i,/^UrWeb$|^Ur(?:\/Web)?$/i],["urweb-icon",["dark-blue","dark-blue"],/\.urs$/i],["vagrant-icon",["medium-cyan","medium-cyan"],/^Vagrantfile$/i],["gnome-icon",["medium-purple","medium-purple"],/\.vala$/i,,!1,/^vala$/,/\.vala$/i,/^vala$/i],["gnome-icon",["dark-purple","dark-purple"],/\.vapi$/i],["varnish-icon",["dark-blue","dark-blue"],/\.vcl$/i,,!1,,/(?:^|\.)(?:varnish|vcl)(?:\.|$)/i,/^VCL$/i],["verilog-icon",["dark-green","dark-green"],/\.v$/i,,!1,/^verilog$/,/\.verilog$/i,/^veril[0o]g$/i],["verilog-icon",["medium-red","medium-red"],/\.veo$/i],["vhdl-icon",["dark-green","dark-green"],/\.vhdl$/i,,!1,/^vhdl$/,/\.vhdl$/i,/^vhdl$/i],["vhdl-icon",["medium-green","medium-green"],/\.vhd$/i],["vhdl-icon",["dark-blue","dark-blue"],/\.vhf$/i],["vhdl-icon",["medium-blue","medium-blue"],/\.vhi$/i],["vhdl-icon",["dark-purple","dark-purple"],/\.vho$/i],["vhdl-icon",["medium-purple","medium-purple"],/\.vhs$/i],["vhdl-icon",["dark-red","dark-red"],/\.vht$/i],["vhdl-icon",["dark-orange","dark-orange"],/\.vhw$/i],["video-icon",["medium-blue","medium-blue"],/\.3gpp?$/i,,!1,,,,/^.{4}ftyp3g/],["video-icon",["dark-blue","dark-blue"],/\.(?:mp4|m4v|h264)$/i,,!1,,,,/^.{4}ftyp/],["video-icon",["medium-blue","medium-blue"],/\.avi$/i,,!1,,,,/^MLVI/],["video-icon",["medium-cyan","medium-cyan"],/\.mov$/i,,!1,,,,/^.{4}moov/],["video-icon",["medium-purple","medium-purple"],/\.mkv$/i,,!1,,,,/^\x1AEߣ\x93B\x82\x88matroska/],["video-icon",["medium-red","medium-red"],/\.flv$/i,,!1,,,,/^FLV\x01/],["video-icon",["dark-blue","dark-blue"],/\.webm$/i,,!1,,,,/^\x1A\x45\xDF\xA3/],["video-icon",["medium-red","medium-red"],/\.mpe?g$/i,,!1,,,,/^\0{2}\x01[\xB3\xBA]/],["video-icon",["dark-purple","dark-purple"],/\.(?:asf|wmv)$/i,,!1,,,,/^0&²u\x8EfÏ\x11¦Ù\0ª\0bÎl/],["video-icon",["medium-orange","medium-orange"],/\.(?:ogm|og[gv])$/i,,!1,,,,/^OggS/],["vim-icon",["medium-green","medium-green"],/\.(?:vim|n?vimrc)$/i,,!1,/Vim?/i,/\.viml$/i,/^(?:VimL?|NVim|Vim\s*Script)$/i],["vim-icon",["dark-green","dark-green"],/^[gn_]?vim(?:rc|info)$/i],["vs-icon",["medium-blue","medium-blue"],/\.(?:vba?|fr[mx]|bas)$/i,,!1,,/\.vbnet$/i,/^Visual Studio$|^vb\.?net$/i],["vs-icon",["medium-red","medium-red"],/\.vbhtml$/i],["vs-icon",["medium-green","medium-green"],/\.vbs$/i],["vs-icon",["dark-blue","dark-blue"],/\.csproj$/i],["vs-icon",["dark-red","dark-red"],/\.vbproj$/i],["vs-icon",["dark-purple","dark-purple"],/\.vcx?proj$/i],["vs-icon",["dark-green","dark-green"],/\.vssettings$/i],["vs-icon",["medium-maroon","medium-maroon"],/\.builds$/i],["vs-icon",["medium-orange","medium-orange"],/\.sln$/i],["vue-icon",["light-green","light-green"],/\.vue$/i,,!1,,/\.vue$/i,/^Vue$/i],["owl-icon",["dark-blue","dark-blue"],/\.owl$/i],["windows-icon",["medium-purple","medium-purple"],/\.bat$|\.cmd$/i,,!1,,/(?:^|\.)(?:bat|dosbatch)(?:\.|$)/i,/^(?:bat|(?:DOS|Win)?Batch)$/i],["windows-icon",[null,null],/\.(?:exe|com|msi)$/i],["windows-icon",["medium-blue","medium-blue"],/\.reg$/i],["x10-icon",["light-maroon","light-maroon"],/\.x10$/i,,!1,,/\.x10$/i,/^X10$|^xten$/i],["x11-icon",["medium-orange","medium-orange"],/\.X(?:authority|clients|initrc|profile|resources|session-errors|screensaver)$/i],["xmos-icon",["medium-orange","medium-orange"],/\.xc$/i],["appstore-icon",["medium-blue","medium-blue"],/\.(?:pbxproj|pbxuser|mode\dv\3|xcplugindata|xcrequiredplugins)$/i],["xojo-icon",["medium-green","medium-green"],/\.xojo_code$/i],["xojo-icon",["medium-blue","medium-blue"],/\.xojo_menu$/i],["xojo-icon",["medium-red","medium-red"],/\.xojo_report$/i],["xojo-icon",["dark-green","dark-green"],/\.xojo_script$/i],["xojo-icon",["dark-purple","dark-purple"],/\.xojo_toolbar$/i],["xojo-icon",["dark-cyan","dark-cyan"],/\.xojo_window$/i],["xpages-icon",["medium-blue","medium-blue"],/\.xsp-config$/i],["xpages-icon",["dark-blue","dark-blue"],/\.xsp\.metadata$/i],["xmos-icon",["dark-blue","dark-blue"],/\.xpl$/i],["xmos-icon",["medium-purple","medium-purple"],/\.xproc$/i],["sql-icon",["dark-red","dark-red"],/\.(?:xquery|xq|xql|xqm|xqy)$/i,,!1,,/\.xq$/i,/^XQuery$/i],["xtend-icon",["dark-purple","dark-purple"],/\.xtend$/i,,!1,,/\.xtend$/i,/^Xtend$/i],["yang-icon",["medium-yellow","medium-yellow"],/\.yang$/i,,!1,,/\.yang$/i,/^YANG$/i],["zbrush-icon",["dark-purple","dark-purple"],/\.zpr$/i],["zephir-icon",["medium-pink","medium-pink"],/\.zep$/i],["zimpl-icon",["medium-orange","medium-orange"],/\.(?:zimpl|zmpl|zpl)$/i],["apple-icon",["medium-blue","medium-blue"],/^com\.apple\./,.5],["apache-icon",["medium-red","medium-red"],/^httpd\.conf/i,0],["checklist-icon",["medium-yellow","medium-yellow"],/TODO/,0],["config-icon",[null,null],/config|settings|option|pref/i,0],["doge-icon",["medium-yellow","medium-yellow"],/\.djs$/i,0,!1,,/\.dogescript$/i,/^Dogescript$/i],["gear-icon",[null,null],/^\./,0],["book-icon",["medium-blue","medium-blue"],/\b(?:changelog|copying(?:v?\d)?|install|read[-_]?me)\b|^licen[sc]es?[-._]/i,0],["book-icon",["dark-blue","dark-blue"],/^news(?:[-_.]?[-\d]+)?$/i,0],["v8-icon",["medium-blue","medium-blue"],/^(?:[dv]8|v8[-_.][^.]*|mksnapshot|mkpeephole)$/i,0]],[[69,147,152,154,169,192,195,196,197,198,204,217,239,244,249,251,253,258,287,292,293,303,304,309,331,333,336,343,347,353,362,380,395,398,416,420,421,422,424,431,434,448,451,465,467,468,471,480,481,482,485,486,487,525,526,529,534,555,565,570,571,572,578,580,584,586,590,601,602,626,629,658,669,670,681,688,694,696,709,714,715,745,748,755,760,769,772,778,779,798,800,803,805,808,811,822,823,826,836,838,848,854,858,860,864,865,867,868,871,881,886,903,905,924,928,936,944,987,1e3,1003,1005,1023],[42,57,69,105,120,121,124,126,129,143,145,147,149,151,152,154,156,157,158,166,167,169,174,192,194,195,196,197,198,204,206,210,211,213,215,216,217,223,224,225,229,230,234,236,237,238,239,242,243,244,249,251,253,255,256,258,275,285,286,287,288,290,291,292,293,294,295,297,300,301,303,304,309,312,314,326,330,336,341,342,343,346,347,350,351,352,353,359,362,365,380,381,382,383,386,390,392,394,395,398,400,416,422,439,440,442,448,451,452,453,454,458,461,463,465,466,467,468,469,470,471,472,473,474,475,479,482,485,486,487,488,489,490,522,524,525,527,529,530,533,534,543,546,547,548,549,553,555,558,560,561,565,570,571,575,578,580,582,584,586,590,600,601,602,603,604,605,612,618,626,629,657,658,664,665,668,669,675,678,679,680,681,685,687,688,689,690,691,694,696,704,707,709,714,715,716,717,718,719,734,738,741,742,744,746,747,748,753,755,760,768,769,774,776,777,778,779,781,792,797,798,801,802,803,805,807,808,811,818,822,823,826,827,828,829,836,838,841,845,847,848,850,854,858,860,862,863,864,865,867,868,871,875,881,884,886,894,896,897,898,900,901,903,905,915,923,924,928,932,933,936,937,938,944,947,951,952,954,970,982,983,984,985,986,987,995,997,1e3,1002,1003,1005,1023,1025,1034,1036,1039,1053,1054,1055,1063],[41,150,282,283,284,321,889,959],[42,57,69,105,120,121,124,126,129,143,145,147,149,151,152,154,156,157,158,166,167,169,174,192,194,195,196,197,198,204,206,210,211,213,215,216,217,223,224,225,229,230,234,236,237,238,239,242,243,244,249,251,253,255,256,258,275,276,285,286,287,288,290,291,292,293,294,295,297,300,301,303,304,309,311,312,314,319,326,330,336,341,342,343,346,347,350,351,352,353,359,362,365,380,381,382,383,386,390,392,394,395,398,400,412,416,418,420,421,422,424,431,432,434,439,440,442,448,451,452,453,454,458,461,463,465,466,467,468,469,470,471,472,473,474,475,479,480,481,482,483,485,486,487,488,489,490,522,524,525,527,529,530,533,534,543,546,547,548,549,553,555,558,560,561,565,570,571,575,578,580,582,584,586,590,600,601,602,603,604,605,612,618,626,629,657,658,660,661,664,665,668,669,675,678,679,680,681,685,687,688,689,690,691,694,696,704,707,709,714,715,716,717,718,719,734,738,741,742,744,746,747,748,753,755,760,768,769,774,776,777,778,779,781,792,797,798,801,802,803,805,807,808,811,818,822,823,826,827,828,829,836,838,841,845,847,848,850,854,858,860,862,863,864,865,867,868,871,875,876,881,884,886,894,896,897,898,900,901,903,905,915,923,924,928,932,933,936,937,938,944,947,951,952,954,970,982,983,984,985,986,987,995,997,1e3,1002,1003,1005,1023,1025,1034,1036,1039,1053,1054,1055,1063],[106,138,178,179,180,181,182,183,184,185,186,188,189,235,261,262,263,264,265,268,273,348,372,373,374,375,376,377,410,411,493,494,495,496,497,498,499,500,501,503,504,505,506,507,509,510,511,512,513,514,516,519,520,601,674,737,754,769,781,957,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022]]]];var Ke={directoryName:{},fileName:{},interpreter:{},scope:{},language:{}};class Jf{constructor(t,r){this.index=t,this.icon=r[0],this.colour=r[1],this.match=r[2],this.priority=r[3]||1,this.matchPath=r[4]||!1,this.interpreter=r[5]||null,this.scope=r[6]||null,this.lang=r[7]||null,this.signature=r[8]||null}getClass(t,r){return t=t!==void 0?t:null,r=r!==void 0?r:!1,t===null||this.colour[0]===null?r?[this.icon]:this.icon:r?[this.icon,this.colour[t]]:this.icon+" "+this.colour[t]}}class Qf{constructor(t){this.directoryIcons=this.read(t[0]),this.fileIcons=this.read(t[1]),this.binaryIcon=this.matchScope("source.asm"),this.executableIcon=this.matchInterpreter("bash")}read(t){var r=t[0],n=t[1];return r=r.map((s,l)=>new Jf(l,s)),n=n.map(s=>s.map(l=>r[l])),{byName:r,byInterpreter:n[0],byLanguage:n[1],byPath:n[2],byScope:n[3],bySignature:n[4]}}matchName(t,r){r=r!==void 0?r:!1;var n=r?this.cache.directoryName:Ke.fileName,s=r?this.directoryIcons.byName:this.fileIcons.byName;if(n[t])return n[t];for(var l in s){var d=s[l];if(d.match.test(t))return n[t]=d}return null}matchPath(t,r){r=r!==void 0?r:!1;var n=r?Ke.directoryName:Ke.fileName,s=r?this.directoryIcons.byPath:this.fileIcons.byPath;if(n[name])return n[name];for(var l in s){var d=s[l];if(d.match.test(t))return n[t]=d}return null}matchLanguage(t){if(Ke.language[t])return Ke.language[t];for(var r in this.fileIcons.byLanguage){var n=this.fileIcons.byLanguage[r];if(n.lang.test(t))return Ke.language[t]=n}return null}matchScope(t){if(Ke.scope[t])return Ke.scope[t];for(var r in this.fileIcons.byScope){var n=this.fileIcons.byScope[r];if(n.scope.test(t))return Ke.scope[t]=n}return null}matchInterpreter(t){if(Ke.interpreter[t])return Ke.interpreter[t];for(var r in this.fileIcons.byInterpreter){var n=this.fileIcons.byInterpreter[r];if(n.interpreter.test(t))return Ke.interpreter[t]=n}return null}matchSignature(t){}}const eb=new Qf(Zf),tb=(e,t=eb.matchName(e))=>t?t.getClass(0):null;function wt({name:e,type:t,isExpanded:r,size:n=16}){if(t==="directory"){const l=r?ei:nm;return i.jsx(l,{size:n,style:{color:"#dcb67a",flexShrink:0}})}const s=tb(e);return s?i.jsx("i",{className:s,style:{fontSize:n,width:n,height:n,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1,fontStyle:"normal"}}):i.jsx(su,{size:n,style:{flexShrink:0,color:"var(--color-text-tertiary)"}})}const Nu=12,Au=12;function rb(e){const t={children:[]},r=e.map(o=>o.uri);let n="";if(r.length>0){const o=r[0].split("/");let c=0;for(let m=0;m<o.length;m++){const h=o.slice(0,m+1).join("/");if(r.every(b=>b.startsWith(h+"/")))c=m+1;else break}n=o.slice(0,c).join("/")}for(const o of e){let c=o.uri;n&&c.startsWith(n)&&(c=c.slice(n.length).replace(/^\//,""));const m=c.split("/");let h=t;for(let b=0;b<m.length;b++){const v=b===m.length-1;let S=h.children.find(x=>x.name===m[b]);S||(S={name:m[b],path:m.slice(0,b+1).join("/"),type:v?"file":"directory",children:[],fileInfo:v?o:void 0},h.children.push(S)),h=S}}function s(o){return o.type==="file"?o:(o.children=o.children.map(s),o.children.length===1&&o.children[0].type==="directory"?{...o.children[0],name:`${o.name}/${o.children[0].name}`}:o)}function l(o){return o.type==="file"&&o.fileInfo?[o.fileInfo.uri]:o.children.flatMap(l)}function d(o){return o.type==="directory"&&(o.allFilePaths=l(o),o.children.forEach(d)),o}function a(o){return o.sort((c,m)=>c.type!==m.type?c.type==="directory"?-1:1:c.name.localeCompare(m.name)).map(c=>(c.type==="directory"&&(c.children=a(c.children)),c))}return a(t.children.map(s).map(d))}function nb({changeType:e}){const t={created:{letter:"U",cls:"changes-badge-created"},modified:{letter:"M",cls:"changes-badge-modified"},deleted:{letter:"D",cls:"changes-badge-deleted"}},{letter:r,cls:n}=t[e]||t.modified;return i.jsx("span",{className:`changes-type-badge ${n}`,children:r})}function Bc({depth:e}){return i.jsx(i.Fragment,{children:Array.from({length:e},(t,r)=>i.jsx("span",{className:"file-tree-indent-guide",style:{left:Au+r*Nu+6}},r))})}function Ru({node:e,depth:t,selectedFile:r,onSelectFile:n,onRevert:s}){var h,b;const[l,d]=C.useState(!0),[a,o]=C.useState(!1),c=Au+t*Nu,m=C.useCallback(v=>{v.stopPropagation(),s&&(e.type==="file"&&e.fileInfo?s([e.fileInfo.uri]):e.allFilePaths&&s(e.allFilePaths))},[e,s]);if(e.type==="file"){const v=e.name;return i.jsxs("div",{className:`file-tree-item ${r===((h=e.fileInfo)==null?void 0:h.uri)?"selected":""}`,onClick:()=>e.fileInfo&&n(e.fileInfo.uri),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),title:(b=e.fileInfo)==null?void 0:b.uri,children:[i.jsx(Bc,{depth:t}),i.jsx("span",{style:{width:c,flexShrink:0}}),i.jsx(wt,{name:v,type:"file",size:16}),i.jsx("span",{className:"file-tree-item-name",children:v}),a&&s&&i.jsx("button",{className:"changes-tree-revert-btn",onClick:m,title:"Revert",children:i.jsx($r,{size:12})}),i.jsx(nb,{changeType:e.fileInfo.changeType})]})}return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"file-tree-item",onClick:()=>d(!l),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[i.jsx(Bc,{depth:t}),i.jsx("span",{style:{width:c,flexShrink:0}}),i.jsx(De,{size:16,className:`file-tree-chevron ${l?"expanded":""}`}),i.jsx("span",{className:"file-tree-item-name",children:e.name}),a&&s&&e.allFilePaths&&e.allFilePaths.length>0&&i.jsx("button",{className:"changes-tree-revert-btn",onClick:m,title:"Revert directory",children:i.jsx($r,{size:12})})]}),l&&e.children.map(v=>i.jsx(Ru,{node:v,depth:t+1,selectedFile:r,onSelectFile:n,onRevert:s},v.path))]})}function ib({fileChanges:e,selectedFile:t,onSelectFile:r,onRevertFiles:n}){const s=C.useMemo(()=>rb(e),[e]);return i.jsx("div",{className:"file-tree changes-tree",children:i.jsx("div",{className:"file-tree-content",children:s.map(l=>i.jsx(Ru,{node:l,depth:0,selectedFile:t,onSelectFile:r,onRevert:n},l.path))})})}function ii({direction:e,ratio:t,onRatioChange:r,children:n}){const s=C.useRef(null),[l,d]=C.useState(!1),a=C.useCallback(h=>{h.preventDefault(),h.stopPropagation(),d(!0);const b=s.current;if(!b)return;const v=b.getBoundingClientRect(),S=p=>{let g;e==="horizontal"?g=(p.clientX-v.left)/v.width:g=(p.clientY-v.top)/v.height,g=Math.max(.1,Math.min(.9,g)),r(g)},x=()=>{d(!1),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",x),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",S),document.addEventListener("mouseup",x),document.body.style.cursor=e==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none"},[e,r]),o=e==="horizontal",c=`${t*100}%`,m=`${(1-t)*100}%`;return i.jsxs("div",{ref:s,className:"flex h-full w-full",style:{flexDirection:o?"row":"column"},children:[i.jsx("div",{style:{[o?"width":"height"]:c,overflow:"hidden",display:"flex"},children:n[0]}),i.jsx("div",{className:`split-sash ${o?"split-sash-horizontal":"split-sash-vertical"} ${l?"dragging":""}`,onMouseDown:a}),i.jsx("div",{style:{[o?"width":"height"]:m,overflow:"hidden",display:"flex"},children:n[1]})]})}function Iu({onMenuClick:e}){const{t}=ie(),{fileChanges:r,selectedFile:n,selectedDiff:s,diffLoading:l,checkpoints:d,reverting:a,selectFile:o,revertFiles:c,revertAll:m,revertToCheckpoint:h,loadCheckpoints:b}=tr(),[v,S]=C.useState(.28),[x,p]=C.useState(!0),[g,u]=C.useState(!0),[f,y]=C.useState(()=>window.innerWidth<768),[k,_]=C.useState(!1);C.useEffect(()=>{b()},[b]),C.useEffect(()=>{const M=window.matchMedia("(min-width: 768px)"),O=B=>{y(!B.matches),B.matches?_(!1):n&&_(!0)};return M.addEventListener("change",O),()=>M.removeEventListener("change",O)},[n]),C.useEffect(()=>{f&&n&&_(!0)},[f,n]);const E=C.useCallback(M=>{o(M),f&&_(!0)},[f,o]),w=C.useCallback(()=>{_(!1)},[]),N=C.useCallback((M,O)=>{h(M,O)},[h]),I=()=>l?i.jsx("div",{className:"changes-empty-state",children:i.jsx(ve,{size:20,className:"animate-spin",style:{opacity:.4}})}):n&&s?i.jsx("div",{className:"changes-diff-scroll",children:i.jsx(ir,{path:n,oldText:s.oldText??null,newText:s.newText,maxHeight:"100%"})}):i.jsxs("div",{className:"changes-empty-state",children:[i.jsx(ti,{size:48,strokeWidth:1,style:{opacity:.12}}),i.jsx("span",{className:"changes-empty-text",children:t("fileChanges.empty")})]}),A=i.jsxs("div",{className:"changes-left changes-left-mobile-safe",children:[i.jsxs("div",{className:"changes-title-bar",children:[e&&i.jsx("button",{className:"changes-title-menu",onClick:e,title:t("editor.toggleSidebar"),children:i.jsx(ni,{size:16})}),i.jsx("span",{className:"changes-title-text",children:t("fileChanges.title")})]}),i.jsxs("div",{className:"changes-accordion",children:[i.jsxs("div",{className:`changes-section ${x&&g?"half":x?"full":"collapsed"}`,children:[i.jsxs("div",{className:"changes-section-header changes-section-first",onClick:()=>p(!x),children:[x?i.jsx(it,{size:12}):i.jsx(De,{size:12}),i.jsx("span",{className:"changes-section-name",children:t("fileChanges.changesSection")}),r.length>0&&i.jsx("div",{className:"changes-section-actions",onClick:M=>M.stopPropagation(),children:i.jsx("button",{className:"changes-section-action",onClick:m,disabled:a,title:t("fileChanges.revertAll"),children:i.jsx($r,{size:14})})}),r.length>0&&i.jsx("span",{className:"changes-section-badge",children:r.length})]}),x&&i.jsx("div",{className:"changes-section-content",children:i.jsx(ib,{fileChanges:r,selectedFile:n,onSelectFile:E,onRevertFiles:c})})]}),i.jsxs("div",{className:`changes-section ${g&&x?"half":g?"full":"collapsed"}`,children:[i.jsxs("div",{className:"changes-section-header",onClick:()=>{u(!g),g||b()},children:[g?i.jsx(it,{size:12}):i.jsx(De,{size:12}),i.jsx("span",{className:"changes-section-name",children:t("fileChanges.checkpoints").toUpperCase()})]}),g&&i.jsx("div",{className:"changes-section-content",children:i.jsx(sb,{checkpoints:d,reverting:a,onRevert:N})})]})]})]});return f?i.jsxs("div",{className:"changes-fullview changes-fullview-mobile",children:[A,i.jsxs("div",{className:`changes-mobile-panel ${k?"open":""}`,children:[i.jsxs("div",{className:"changes-mobile-header",children:[i.jsx("button",{className:"changes-mobile-back",onClick:w,children:i.jsx(cr,{size:18})}),i.jsx("div",{className:"changes-mobile-title",children:n?n.split("/").pop():t("fileChanges.empty")})]}),i.jsx("div",{className:"changes-right",children:I()})]})]}):i.jsx("div",{className:"changes-fullview",children:i.jsxs(ii,{direction:"horizontal",ratio:v,onRatioChange:S,children:[A,i.jsx("div",{className:"changes-right",children:I()})]})})}function sb({checkpoints:e,reverting:t,onRevert:r}){const{t:n}=ie();return e.length===0?i.jsx("div",{className:"changes-empty-state changes-timeline-empty",children:i.jsx("span",{className:"changes-empty-text",children:n("fileChanges.noCheckpoints")})}):i.jsx("div",{className:"changes-timeline",children:e.map((s,l)=>{const d=new Date(s.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),a=s.files.length>0||s.additions>0||s.deletions>0,o=l===0,c=l===e.length-1,m=o?"latest":"historical";return i.jsxs("div",{className:"changes-timeline-item",children:[i.jsxs("div",{className:"changes-timeline-line",children:[i.jsx("div",{className:`changes-timeline-dot ${m}`}),!c&&i.jsx("div",{className:`changes-timeline-connector ${o?"latest":"historical"}`})]}),i.jsx("div",{className:"changes-timeline-content",children:i.jsxs("div",{className:"changes-timeline-header",children:[i.jsx("span",{className:"changes-timeline-time",children:d}),i.jsx("span",{className:"changes-timeline-label",children:s.label||`${s.files.length} file${s.files.length!==1?"s":""}`}),i.jsxs("div",{className:"changes-timeline-actions",children:[i.jsx("button",{className:"changes-timeline-action",onClick:()=>r(s.id,"Conversation"),disabled:t,title:n("fileChanges.revertChat"),children:i.jsx(ri,{size:13})}),a&&i.jsx("button",{className:"changes-timeline-action",onClick:()=>r(s.id,"Code"),disabled:t,title:n("fileChanges.revertCode"),children:i.jsx(ru,{size:13})}),i.jsx("button",{className:"changes-timeline-action danger",onClick:()=>r(s.id,"CodeAndConversation"),disabled:t,title:n("fileChanges.revertCodeAndChat"),children:i.jsx($r,{size:13})})]})]})})]},s.id||l)})})}const ab={blue:{text:"text-blue-400",bg:"bg-blue-400/10",border:"border-blue-400/30"},green:{text:"text-emerald-400",bg:"bg-emerald-400/10",border:"border-emerald-400/30"},yellow:{text:"text-amber-400",bg:"bg-amber-400/10",border:"border-amber-400/30"},magenta:{text:"text-fuchsia-400",bg:"bg-fuchsia-400/10",border:"border-fuchsia-400/30"},cyan:{text:"text-cyan-400",bg:"bg-cyan-400/10",border:"border-cyan-400/30"},red:{text:"text-rose-400",bg:"bg-rose-400/10",border:"border-rose-400/30"}},Uc={text:"text-accent-purple",bg:"bg-accent-purple/10",border:"border-accent-purple/30"};function ob(e){return e&&ab[e]||Uc}function si(e){return e&&{blue:"#60a5fa",green:"#34d399",yellow:"#fbbf24",magenta:"#e879f9",cyan:"#22d3ee",red:"#fb7185"}[e]||"#a78bfa"}const Lu={wechat:{labelKey:"channel.wechat",color:"#07c160"},"wechat-kf":{labelKey:"channel.wechat",color:"#07c160"},wecom:{labelKey:"channel.wecom",color:"var(--color-channel-accent)"},"wecom-bot":{labelKey:"channel.wecomBot",color:"var(--color-channel-accent)"}},Ou="var(--color-text-primary)";function lb(e){const t=e.chatId||"";if(!t)return"";const r=t.split("_");return r.length>=2?r[1].slice(0,8):t.slice(0,8)}function cb(e){if(e.senderName)return e.senderName;const t=e.sender||"";return!t||t.includes("@")||t.length>20?"":t}function db({content:e,channel:t}){const{t:r}=ie(),n=Lu[t.source],s=n?r(n.labelKey):t.source,l=(n==null?void 0:n.color)||Ou,d=cb(t),a=lb(t);return i.jsxs("div",{className:"channel-item mb-4",style:{borderLeftColor:l},children:[i.jsxs("div",{className:"channel-label",style:{color:l},children:[s,d&&i.jsxs("span",{className:"channel-sender",children:[" · ",d]}),a&&i.jsxs("span",{className:"channel-bot-id",children:["#",a]})]}),i.jsx("div",{className:"channel-content",children:e})]})}function ub({channel:e}){const{t}=ie(),r=Lu[e.source],n=r?t(r.labelKey):e.source,s=(r==null?void 0:r.color)||Ou;return i.jsxs("div",{className:"channel-response-indicator",children:[i.jsx(Hh,{size:12,style:{color:s}}),i.jsx("span",{children:t("channel.replyTo").replace("{source}",n)})]})}function pb(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function hb(e,t){if(e==null)return{};var r,n,s=pb(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function Dn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mb(e){if(Array.isArray(e))return Dn(e)}function gb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fb(e,t){if(e){if(typeof e=="string")return Dn(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dn(e,t):void 0}}function bb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
529
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mn(e){return mb(e)||gb(e)||fb(e)||bb()}function lr(e){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lr(e)}function yb(e,t){if(lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _b(e){var t=yb(e,"string");return lr(t)=="symbol"?t:t+""}function $u(e,t,r){return(t=_b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jn.apply(null,arguments)}function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zc(Object(r),!0).forEach(function(n){$u(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vb(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var un={};function xb(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return un[t]||(un[t]=vb(e)),un[t]}function Sb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(l){return l!=="token"}),s=xb(n);return s.reduce(function(l,d){return Ot(Ot({},l),r[d])},t)}function Hc(e){return e.join(" ")}function kb(e,t){var r=0;return function(n){return r+=1,n.map(function(s,l){return Du({node:s,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(l)})})}}function Du(e){var t=e.node,r=e.stylesheet,n=e.style,s=n===void 0?{}:n,l=e.useInlineStyles,d=e.key,a=t.properties,o=t.type,c=t.tagName,m=t.value;if(o==="text")return m;if(c){var h=kb(r,l),b;if(!l)b=Ot(Ot({},a),{},{className:Hc(a.className)});else{var v=Object.keys(r).reduce(function(g,u){return u.split(".").forEach(function(f){g.includes(f)||g.push(f)}),g},[]),S=a.className&&a.className.includes("token")?["token"]:[],x=a.className&&S.concat(a.className.filter(function(g){return!v.includes(g)}));b=Ot(Ot({},a),{},{className:Hc(x)||void 0,style:Sb(a.className,Object.assign({},a.style,s),r)})}var p=h(t.children);return Ce.createElement(c,jn({key:d},b),p)}}const wb=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var Eb=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gc(Object(r),!0).forEach(function(n){$u(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Cb=/\n/g;function Tb(e){return e.match(Cb)}function Nb(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(s,l){var d=l+r;return Ce.createElement("span",{key:"line-".concat(l),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(d):n},"".concat(d,`
|
|
530
|
+
`))})}function Ab(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,s=n===void 0?{float:"left",paddingRight:"10px"}:n,l=e.numberStyle,d=l===void 0?{}:l,a=e.startingLineNumber;return Ce.createElement("code",{style:Object.assign({},r,s)},Nb({lines:t.replace(/\n$/,"").split(`
|
|
531
|
+
`),style:d,startingLineNumber:a}))}function Rb(e){return"".concat(e.toString().length,".25em")}function Mu(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function ju(e,t,r){var n={display:"inline-block",minWidth:Rb(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},s=typeof e=="function"?e(t):e,l=dt(dt({},n),s);return l}function Ar(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,s=e.largestLineNumber,l=e.showInlineLineNumbers,d=e.lineProps,a=d===void 0?{}:d,o=e.className,c=o===void 0?[]:o,m=e.showLineNumbers,h=e.wrapLongLines,b=e.wrapLines,v=b===void 0?!1:b,S=v?dt({},typeof a=="function"?a(r):a):{};if(S.className=S.className?[].concat(Mn(S.className.trim().split(/\s+/)),Mn(c)):c,r&&l){var x=ju(n,r,s);t.unshift(Mu(r,x))}return h&m&&(S.style=dt({display:"flex"},S.style)),{type:"element",tagName:"span",properties:S,children:t}}function Fu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var n=0;n<e.length;n++){var s=e[n];if(s.type==="text")r.push(Ar({children:[s],className:Mn(new Set(t))}));else if(s.children){var l,d=t.concat(((l=s.properties)===null||l===void 0?void 0:l.className)||[]);Fu(s.children,d).forEach(function(a){return r.push(a)})}}return r}function Ib(e,t,r,n,s,l,d,a,o){var c,m=Fu(e.value),h=[],b=-1,v=0;function S(k,_){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ar({children:k,lineNumber:_,lineNumberStyle:a,largestLineNumber:d,showInlineLineNumbers:s,lineProps:r,className:E,showLineNumbers:n,wrapLongLines:o,wrapLines:t})}function x(k,_){if(n&&_&&s){var E=ju(a,_,d);k.unshift(Mu(_,E))}return k}function p(k,_){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||E.length>0?S(k,_,E):x(k,_)}for(var g=function(){var _=m[v],E=_.children[0].value,w=Tb(E);if(w){var N=E.split(`
|
|
532
|
+
`);N.forEach(function(I,A){var M=n&&h.length+l,O={type:"text",value:"".concat(I,`
|
|
533
|
+
`)};if(A===0){var B=m.slice(b+1,v).concat(Ar({children:[O],className:_.properties.className})),F=p(B,M);h.push(F)}else if(A===N.length-1){var z=m[v+1]&&m[v+1].children&&m[v+1].children[0],P={type:"text",value:"".concat(I)};if(z){var U=Ar({children:[P],className:_.properties.className});m.splice(v+1,0,U)}else{var T=[P],L=p(T,M,_.properties.className);h.push(L)}}else{var $=[O],R=p($,M,_.properties.className);h.push(R)}}),b=v}v++};v<m.length;)g();if(b!==m.length-1){var u=m.slice(b+1,m.length);if(u&&u.length){var f=n&&h.length+l,y=p(u,f);h.push(y)}}return t?h:(c=[]).concat.apply(c,h)}function Lb(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(s,l){return Du({node:s,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(l)})})}function Pu(e){return e&&typeof e.highlightAuto<"u"}function Ob(e){var t=e.astGenerator,r=e.language,n=e.code,s=e.defaultCodeValue;if(Pu(t)){var l=wb(t,r);return r==="text"?{value:s,language:"text"}:l?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:s}}catch{return{value:s}}}function $b(e,t){return function(n){var s,l,d=n.language,a=n.children,o=n.style,c=o===void 0?t:o,m=n.customStyle,h=m===void 0?{}:m,b=n.codeTagProps,v=b===void 0?{className:d?"language-".concat(d):void 0,style:dt(dt({},c['code[class*="language-"]']),c['code[class*="language-'.concat(d,'"]')])}:b,S=n.useInlineStyles,x=S===void 0?!0:S,p=n.showLineNumbers,g=p===void 0?!1:p,u=n.showInlineLineNumbers,f=u===void 0?!0:u,y=n.startingLineNumber,k=y===void 0?1:y,_=n.lineNumberContainerStyle,E=n.lineNumberStyle,w=E===void 0?{}:E,N=n.wrapLines,I=n.wrapLongLines,A=I===void 0?!1:I,M=n.lineProps,O=M===void 0?{}:M,B=n.renderer,F=n.PreTag,z=F===void 0?"pre":F,P=n.CodeTag,U=P===void 0?"code":P,T=n.code,L=T===void 0?(Array.isArray(a)?a[0]:a)||"":T,$=n.astGenerator,R=hb(n,Eb);$=$||e;var q=g?Ce.createElement(Ab,{containerStyle:_,codeStyle:v.style||{},numberStyle:w,startingLineNumber:k,codeString:L}):null,W=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},Y=Pu($)?"hljs":"prismjs",V=x?Object.assign({},R,{style:Object.assign({},W,h)}):Object.assign({},R,{className:R.className?"".concat(Y," ").concat(R.className):Y,style:Object.assign({},h)});if(A?v.style=dt({whiteSpace:"pre-wrap"},v.style):v.style=dt({whiteSpace:"pre"},v.style),!$)return Ce.createElement(z,V,q,Ce.createElement(U,v,L));(N===void 0&&B||A)&&(N=!0),B=B||Lb;var H=[{type:"text",value:L}],D=Ob({astGenerator:$,language:d,code:L,defaultCodeValue:H});D.language===null&&(D.value=H);var X=(s=(l=L.match(/\n/g))===null||l===void 0?void 0:l.length)!==null&&s!==void 0?s:0,K=k+X,ee=Ib(D,N,O,g,f,k,K,w,A);return Ce.createElement(z,V,Ce.createElement(U,v,!f&&q,B({rows:ee,stylesheet:c,useInlineStyles:x})))}}const Db=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stata","stylus","supercollider","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wgsl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],Wc=/[#.]/g;function Mb(e,t){const r=e||"",n={};let s=0,l,d;for(;s<r.length;){Wc.lastIndex=s;const a=Wc.exec(r),o=r.slice(s,a?a.index:r.length);o&&(l?l==="#"?n.id=o:Array.isArray(n.className)?n.className.push(o):n.className=[o]:d=o,s+=o.length),a&&(l=a[0],s++)}return{type:"element",tagName:d||t||"div",properties:n,children:[]}}function Bu(e,t,r){const n=r?Bb(r):void 0;function s(l,d,...a){let o;if(l==null){o={type:"root",children:[]};const c=d;a.unshift(c)}else{o=Mb(l,t);const c=o.tagName.toLowerCase(),m=n?n.get(c):void 0;if(o.tagName=m||c,jb(d))a.unshift(d);else for(const[h,b]of Object.entries(d))Fb(e,o.properties,h,b)}for(const c of a)Fn(o.children,c);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return s}function jb(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const s=t[n];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const l=s;for(const d of l)if(typeof d!="number"&&typeof d!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Fb(e,t,r,n){const s=zp(e,r);let l;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;l=n}else typeof n=="boolean"?l=n:typeof n=="string"?s.spaceSeparated?l=fc(n):s.commaSeparated?l=bc(n):s.commaOrSpaceSeparated?l=fc(bc(n).join(" ")):l=qc(s,s.property,n):Array.isArray(n)?l=[...n]:l=s.property==="style"?Pb(n):String(n);if(Array.isArray(l)){const d=[];for(const a of l)d.push(qc(s,s.property,a));l=d}s.property==="className"&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[s.property]=l}}function Fn(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Fn(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Fn(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function qc(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||yc(r)===yc(t)))return!0}return r}function Pb(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function Bb(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const Ub=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],zb=Bu(Hp,"div");Bu(Gp,"g",Ub);const Hb=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Vc={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Uu(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Gb(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Wb(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Kc(e){return Wb(e)||Uu(e)}const qb=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Vb(e,t){const r={},n=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,s=[];let l=0,d=-1,a="",o,c;r.position&&("start"in r.position||"indent"in r.position?(c=r.position.indent,o=r.position.start):o=r.position);let m=(o?o.line:0)||1,h=(o?o.column:0)||1,b=S(),v;for(l--;++l<=e.length;)if(v===10&&(h=(c?c[d]:0)||1),v=e.charCodeAt(l),v===38){const g=e.charCodeAt(l+1);if(g===9||g===10||g===12||g===32||g===38||g===60||Number.isNaN(g)||n&&g===n){a+=String.fromCharCode(v),h++;continue}const u=l+1;let f=u,y=u,k;if(g===35){y=++f;const O=e.charCodeAt(y);O===88||O===120?(k="hexadecimal",y=++f):k="decimal"}else k="named";let _="",E="",w="";const N=k==="named"?Kc:k==="decimal"?Uu:Gb;for(y--;++y<=e.length;){const O=e.charCodeAt(y);if(!N(O))break;w+=String.fromCharCode(O),k==="named"&&Hb.includes(w)&&(_=w,E=_c(w))}let I=e.charCodeAt(y)===59;if(I){y++;const O=k==="named"?_c(w):!1;O&&(_=w,E=O)}let A=1+y-u,M="";if(!(!I&&r.nonTerminated===!1))if(!w)k!=="named"&&x(4,A);else if(k==="named"){if(I&&!E)x(5,1);else if(_!==w&&(y=f+_.length,A=1+y-f,I=!1),!I){const O=_?1:3;if(r.attribute){const B=e.charCodeAt(y);B===61?(x(O,A),E=""):Kc(B)?E="":x(O,A)}else x(O,A)}M=E}else{I||x(2,A);let O=Number.parseInt(w,k==="hexadecimal"?16:10);if(Kb(O))x(7,A),M="�";else if(O in Vc)x(6,A),M=Vc[O];else{let B="";Yb(O)&&x(6,A),O>65535&&(O-=65536,B+=String.fromCharCode(O>>>10|55296),O=56320|O&1023),M=B+String.fromCharCode(O)}}if(M){p(),b=S(),l=y-1,h+=y-u+1,s.push(M);const O=S();O.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,M,{start:b,end:O},e.slice(u-1,y)),b=O}else w=e.slice(u-1,y),a+=w,h+=w.length,l=y-1}else v===10&&(m++,d++,h=0),Number.isNaN(v)?p():(a+=String.fromCharCode(v),h++);return s.join("");function S(){return{line:m,column:h,offset:l+((o?o.offset:0)||0)}}function x(g,u){let f;r.warning&&(f=S(),f.column+=u,f.offset+=u,r.warning.call(r.warningContext||void 0,qb[g],f,g))}function p(){a&&(s.push(a),r.text&&r.text.call(r.textContext||void 0,a,{start:b,end:S()}),a="")}}function Kb(e){return e>=55296&&e<=57343||e>1114111}function Yb(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Xb=0,Sr={},Ee={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Xb}),e.__id},clone:function e(t,r){r=r||{};var n,s;switch(Ee.util.type(t)){case"Object":if(s=Ee.util.objId(t),r[s])return r[s];n={},r[s]=n;for(var l in t)t.hasOwnProperty(l)&&(n[l]=e(t[l],r));return n;case"Array":return s=Ee.util.objId(t),r[s]?r[s]:(n=[],r[s]=n,t.forEach(function(d,a){n[a]=e(d,r)}),n);default:return t}}},languages:{plain:Sr,plaintext:Sr,text:Sr,txt:Sr,extend:function(e,t){var r=Ee.util.clone(Ee.languages[e]);for(var n in t)r[n]=t[n];return r},insertBefore:function(e,t,r,n){n=n||Ee.languages;var s=n[e],l={};for(var d in s)if(s.hasOwnProperty(d)){if(d==t)for(var a in r)r.hasOwnProperty(a)&&(l[a]=r[a]);r.hasOwnProperty(d)||(l[d]=s[d])}var o=n[e];return n[e]=l,Ee.languages.DFS(Ee.languages,function(c,m){m===o&&c!=e&&(this[c]=l)}),l},DFS:function e(t,r,n,s){s=s||{};var l=Ee.util.objId;for(var d in t)if(t.hasOwnProperty(d)){r.call(t,d,t[d],n||d);var a=t[d],o=Ee.util.type(a);o==="Object"&&!s[l(a)]?(s[l(a)]=!0,e(a,r,null,s)):o==="Array"&&!s[l(a)]&&(s[l(a)]=!0,e(a,r,d,s))}}},plugins:{},highlight:function(e,t,r){var n={code:e,grammar:t,language:r};if(Ee.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=Ee.tokenize(n.code,n.grammar),Ee.hooks.run("after-tokenize",n),sr.stringify(Ee.util.encode(n.tokens),n.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var n in r)t[n]=r[n];delete t.rest}var s=new Zb;return Rr(s,s.head,e),zu(e,s,t,s.head,0),Qb(s)},hooks:{all:{},add:function(e,t){var r=Ee.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=Ee.hooks.all[e];if(!(!r||!r.length))for(var n=0,s;s=r[n++];)s(t)}},Token:sr};function sr(e,t,r,n){this.type=e,this.content=t,this.alias=r,this.length=(n||"").length|0}function Yc(e,t,r,n){e.lastIndex=t;var s=e.exec(r);if(s&&n&&s[1]){var l=s[1].length;s.index+=l,s[0]=s[0].slice(l)}return s}function zu(e,t,r,n,s,l){for(var d in r)if(!(!r.hasOwnProperty(d)||!r[d])){var a=r[d];a=Array.isArray(a)?a:[a];for(var o=0;o<a.length;++o){if(l&&l.cause==d+","+o)return;var c=a[o],m=c.inside,h=!!c.lookbehind,b=!!c.greedy,v=c.alias;if(b&&!c.pattern.global){var S=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,S+"g")}for(var x=c.pattern||c,p=n.next,g=s;p!==t.tail&&!(l&&g>=l.reach);g+=p.value.length,p=p.next){var u=p.value;if(t.length>e.length)return;if(!(u instanceof sr)){var f=1,y;if(b){if(y=Yc(x,g,e,h),!y||y.index>=e.length)break;var w=y.index,k=y.index+y[0].length,_=g;for(_+=p.value.length;w>=_;)p=p.next,_+=p.value.length;if(_-=p.value.length,g=_,p.value instanceof sr)continue;for(var E=p;E!==t.tail&&(_<k||typeof E.value=="string");E=E.next)f++,_+=E.value.length;f--,u=e.slice(g,_),y.index-=g}else if(y=Yc(x,0,u,h),!y)continue;var w=y.index,N=y[0],I=u.slice(0,w),A=u.slice(w+N.length),M=g+u.length;l&&M>l.reach&&(l.reach=M);var O=p.prev;I&&(O=Rr(t,O,I),g+=I.length),Jb(t,O,f);var B=new sr(d,m?Ee.tokenize(N,m):N,v,N);if(p=Rr(t,O,B),A&&Rr(t,p,A),f>1){var F={cause:d+","+o,reach:M};zu(e,t,r,p.prev,g,F),l&&F.reach>l.reach&&(l.reach=F.reach)}}}}}}function Zb(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Rr(e,t,r){var n=t.next,s={value:r,prev:t,next:n};return t.next=s,n.prev=s,e.length++,s}function Jb(e,t,r){for(var n=t.next,s=0;s<r&&n!==e.tail;s++)n=n.next;t.next=n,n.prev=t,e.length-=s}function Qb(e){for(var t=[],r=e.head.next;r!==e.tail;)t.push(r.value),r=r.next;return t}const Hu=Ee;function Gu(){}Gu.prototype=Hu;const j=new Gu;j.highlight=ey;j.register=ty;j.alias=ry;j.registered=ny;j.listLanguages=iy;j.util.encode=sy;j.Token.stringify=Pn;function ey(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let r,n;if(t&&typeof t=="object")r=t;else{if(n=t,typeof n!="string")throw new TypeError("Expected `string` for `name`, got `"+n+"`");if(Object.hasOwn(j.languages,n))r=j.languages[n];else throw new Error("Unknown language: `"+n+"` is not registered")}return{type:"root",children:Hu.highlight.call(j,e,r,n)}}function ty(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(j.languages,e.displayName)||e(j)}function ry(e,t){const r=j.languages;let n={};typeof e=="string"?t&&(n[e]=t):n=e;let s;for(s in n)if(Object.hasOwn(n,s)){const l=n[s],d=typeof l=="string"?[l]:l;let a=-1;for(;++a<d.length;)r[d[a]]=r[s]}}function ny(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(j.languages,e)}function iy(){const e=j.languages,t=[];let r;for(r in e)Object.hasOwn(e,r)&&typeof e[r]=="object"&&t.push(r);return t}function Pn(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const n=[];let s=-1;for(;++s<e.length;)e[s]!==null&&e[s]!==void 0&&e[s]!==""&&n.push(Pn(e[s],t));return n}const r={attributes:{},classes:["token",e.type],content:Pn(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&r.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),j.hooks.run("wrap",r),zb(r.tag+"."+r.classes.join("."),ay(r.attributes),r.content)}function sy(e){return e}function ay(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=Vb(e[t]));return e}const oy={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};Re.displayName="markup";Re.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Re(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var s={};s["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};l["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var d={};d[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},e.languages.insertBefore("markup","cdata",d)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Ct.displayName="css";Ct.aliases=[];function Ct(e){(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(e)}ce.displayName="clike";ce.aliases=[];function ce(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}ai.displayName="regex";ai.aliases=[];function ai(e){(function(t){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,s={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},l={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},d="(?:[^\\\\-]|"+n.source+")",a=RegExp(d+"-"+d),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":l,escape:n}},"special-escape":r,"char-set":s,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}Me.displayName="javascript";Me.aliases=["js"];function Me(e){e.register(ce),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}oi.displayName="abap";oi.aliases=[];function oi(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}li.displayName="abnf";li.aliases=[];function li(e){(function(t){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}ci.displayName="actionscript";ci.aliases=[];function ci(e){e.register(Me),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}di.displayName="ada";di.aliases=[];function di(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}ui.displayName="agda";ui.aliases=[];function ui(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}pi.displayName="al";pi.aliases=[];function pi(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}hi.displayName="antlr4";hi.aliases=["g4"];function hi(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}mi.displayName="apacheconf";mi.aliases=[];function mi(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}ur.displayName="sql";ur.aliases=[];function ur(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}gi.displayName="apex";gi.aliases=[];function gi(e){e.register(ce),e.register(ur),(function(t){var r=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return r.source});function s(d){return RegExp(d.replace(/<CLASS-NAME>/g,function(){return n}),"i")}var l={keyword:r,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:s(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:l},{pattern:s(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:l},{pattern:s(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:l}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:r,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(e)}fi.displayName="apl";fi.aliases=[];function fi(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}bi.displayName="applescript";bi.aliases=[];function bi(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}yi.displayName="aql";yi.aliases=[];function yi(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}rt.displayName="c";rt.aliases=[];function rt(e){e.register(ce),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Ht.displayName="cpp";Ht.aliases=[];function Ht(e){e.register(rt),(function(t){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(e)}_i.displayName="arduino";_i.aliases=["ino"];function _i(e){e.register(Ht),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}vi.displayName="arff";vi.aliases=[];function vi(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}xi.displayName="armasm";xi.aliases=["arm-asm"];function xi(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}Hr.displayName="bash";Hr.aliases=["sh","shell"];function Hr(e){(function(t){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},s={bash:n,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:s},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:s},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:s.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:s.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var l=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=s.variable[1].inside,a=0;a<l.length;a++)d[l[a]]=t.languages.bash[l[a]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}Gr.displayName="yaml";Gr.aliases=["yml"];function Gr(e){(function(t){var r=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,s="(?:"+n.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+n.source+")?)",l=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(o,c){c=(c||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return s}).replace(/<<value>>/g,function(){return o});return RegExp(m,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return s})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return s}).replace(/<<key>>/g,function(){return"(?:"+l+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(d),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}Si.displayName="markdown";Si.aliases=["md"];function Si(e){e.register(Re),(function(t){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(a){return a=a.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+a+")")}var s=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,l=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return s}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+l+d+"(?:"+l+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+l+d+")(?:"+l+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(s),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+l+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+l+"$"),inside:{"table-header":{pattern:RegExp(s),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(a){["url","bold","italic","strike","code-snippet"].forEach(function(o){a!==o&&(t.languages.markdown[a].inside.content.inside[o]=t.languages.markdown[o])})}),t.hooks.add("after-tokenize",function(a){if(a.language!=="markdown"&&a.language!=="md")return;function o(c){if(!(!c||typeof c=="string"))for(var m=0,h=c.length;m<h;m++){var b=c[m];if(b.type!=="code"){o(b.content);continue}var v=b.content[1],S=b.content[3];if(v&&S&&v.type==="code-language"&&S.type==="code-block"&&typeof v.content=="string"){var x=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");x=(/[a-z][\w-]*/i.exec(x)||[""])[0].toLowerCase();var p="language-"+x;S.alias?typeof S.alias=="string"?S.alias=[S.alias,p]:S.alias.push(p):S.alias=[p]}}}o(a.tokens)}),t.hooks.add("wrap",function(a){if(a.type==="code-block"){for(var o="",c=0,m=a.classes.length;c<m;c++){var h=a.classes[c],b=/language-(.+)/.exec(h);if(b){o=b[1];break}}var v=t.languages[o];if(v)a.content=t.highlight(a.content.value,v,o);else if(o&&o!=="none"&&t.plugins.autoloader){var S="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);a.attributes.id=S,t.plugins.autoloader.loadLanguages(o,function(){var x=document.getElementById(S);x&&(x.innerHTML=t.highlight(x.textContent,t.languages[o],o))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}ki.displayName="arturo";ki.aliases=["art"];function ki(e){(function(t){var r=function(n,s){return{pattern:RegExp(/\{!/.source+"(?:"+(s||n)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+n,inside:t.languages[n]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":r("html"),"css-string":r("css"),"js-string":r("js"),"md-string":r("md"),"sql-string":r("sql"),"sh-string":r("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}wi.displayName="asciidoc";wi.aliases=["adoc"];function wi(e){(function(t){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function s(l){l=l.split(" ");for(var d={},a=0,o=l.length;a<o;a++)d[l[a]]=n[l[a]];return d}r.inside.interpreted.inside.rest=s("macro inline replacement entity"),n["passthrough-block"].inside.rest=s("macro"),n["literal-block"].inside.rest=s("callout"),n.table.inside.rest=s("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),n["other-block"].inside.rest=s("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),n.title.inside.rest=s("macro inline replacement entity"),t.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.value.replace(/&/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}Gt.displayName="csharp";Gt.aliases=["cs","dotnet"];function Gt(e){e.register(ce),(function(t){function r(L,$){return L.replace(/<<(\d+)>>/g,function(R,q){return"(?:"+$[+q]+")"})}function n(L,$,R){return RegExp(r(L,$),"")}function s(L,$){for(var R=0;R<$;R++)L=L.replace(/<<self>>/g,function(){return"(?:"+L+")"});return L.replace(/<<self>>/g,"[^\\s\\S]")}var l={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function d(L){return"\\b(?:"+L.trim().replace(/ /g,"|")+")\\b"}var a=d(l.typeDeclaration),o=RegExp(d(l.type+" "+l.typeDeclaration+" "+l.contextual+" "+l.other)),c=d(l.typeDeclaration+" "+l.contextual+" "+l.other),m=d(l.type+" "+l.typeDeclaration+" "+l.other),h=s(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),b=s(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,S=r(/<<0>>(?:\s*<<1>>)?/.source,[v,h]),x=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,S]),p=/\[\s*(?:,\s*)*\]/.source,g=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[x,p]),u=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,b,p]),f=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[u]),y=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[f,x,p]),k={keyword:o,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,w=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[w]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[x]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,y]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[a,S]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[x]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[g]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[y,m,v]),inside:k}],keyword:o,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[y,x]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[y]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,h]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(h),alias:"class-name",inside:k}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[a,S,v,y,o.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[S,b]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:o,"class-name":{pattern:RegExp(y),greedy:!0,inside:k},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var N=E+"|"+_,I=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[N]),A=s(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),M=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,O=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[x,A]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[M,O]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[M]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[A]),inside:t.languages.csharp},"class-name":{pattern:RegExp(x),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var B=/:[^}\r\n]+/.source,F=s(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),z=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,B]),P=s(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[N]),2),U=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,B]);function T(L,$){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[L]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[$,B]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[z]),lookbehind:!0,greedy:!0,inside:T(z,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[U]),lookbehind:!0,greedy:!0,inside:T(U,P)}],char:{pattern:RegExp(_),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp})(e)}Ei.displayName="aspnet";Ei.aliases=[];function Ei(e){e.register(Gt),e.register(Re),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}Ci.displayName="asm6502";Ci.aliases=[];function Ci(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}Ti.displayName="asmatmel";Ti.aliases=[];function Ti(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}Ni.displayName="autohotkey";Ni.aliases=[];function Ni(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}Ai.displayName="autoit";Ai.aliases=[];function Ai(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}Ri.displayName="avisynth";Ri.aliases=["avs"];function Ri(e){(function(t){function r(c,m){return c.replace(/<<(\d+)>>/g,function(h,b){return m[+b]})}function n(c,m,h){return RegExp(r(c,m),h)}var s=/bool|clip|float|int|string|val/.source,l=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),d=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),a=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),o=[l,d,a].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:n(/\b(?:<<0>>)\s+("?)\w+\1/.source,[s],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:n(/\b(?:<<0>>)\b/.source,[o],"i"),alias:"function"},"type-cast":{pattern:n(/\b(?:<<0>>)(?=\s*\()/.source,[s],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}Ii.displayName="avro-idl";Ii.aliases=["avdl"];function Ii(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}Li.displayName="awk";Li.aliases=["gawk"];function Li(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}Wr.displayName="basic";Wr.aliases=[];function Wr(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Oi.displayName="batch";Oi.aliases=[];function Oi(e){(function(t){var r=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},s=/"(?:[\\"]"|[^"])*"(?!")/,l=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:s,parameter:n,variable:r,number:l,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:s,parameter:n,variable:r,number:l,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:s,parameter:n,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:l,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:s,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:l,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}$i.displayName="bbcode";$i.aliases=["shortcode"];function $i(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Di.displayName="bbj";Di.aliases=[];function Di(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}Mi.displayName="bicep";Mi.aliases=[];function Mi(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}ji.displayName="birb";ji.aliases=[];function ji(e){e.register(ce),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Fi.displayName="bison";Fi.aliases=[];function Fi(e){e.register(rt),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Pi.displayName="bnf";Pi.aliases=["rbnf"];function Pi(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}Bi.displayName="bqn";Bi.aliases=[];function Bi(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Ui.displayName="brainfuck";Ui.aliases=[];function Ui(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}zi.displayName="brightscript";zi.aliases=[];function zi(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}Hi.displayName="bro";Hi.aliases=[];function Hi(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}Gi.displayName="bsl";Gi.aliases=["oscript"];function Gi(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}Wi.displayName="cfscript";Wi.aliases=["cfc"];function Wi(e){e.register(ce),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}qi.displayName="chaiscript";qi.aliases=[];function qi(e){e.register(ce),e.register(Ht),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Vi.displayName="cil";Vi.aliases=[];function Vi(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}Ki.displayName="cilkc";Ki.aliases=["cilk-c"];function Ki(e){e.register(rt),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Yi.displayName="cilkcpp";Yi.aliases=["cilk","cilk-cpp"];function Yi(e){e.register(Ht),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Xi.displayName="clojure";Xi.aliases=[];function Xi(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Zi.displayName="cmake";Zi.aliases=[];function Zi(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}Ji.displayName="cobol";Ji.aliases=[];function Ji(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Qi.displayName="coffeescript";Qi.aliases=["coffee"];function Qi(e){e.register(Me),(function(t){var r=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:n}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(e)}es.displayName="concurnas";es.aliases=["conc"];function es(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}ts.displayName="csp";ts.aliases=[];function ts(e){(function(t){function r(n){return RegExp(/([ \t])/.source+"(?:"+n+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:r(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:r(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:r(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:r(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:r(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:r(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:r(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}rs.displayName="cooklang";rs.aliases=[];function rs(e){(function(t){var r=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,n=/[^{}@#]+/.source,s=/\{[^}#@]*\}/.source,l=n+s,d=/(?:h|hours|hrs|m|min|minutes)/.source,a={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+l+"|"+r+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+n+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+n),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+l+"|"+r+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+n+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":a}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+d+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}ns.displayName="coq";ns.aliases=[];function ns(e){(function(t){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,n=0;n<2;n++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,"[]"),t.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Wt.displayName="ruby";Wt.aliases=["rb"];function Wt(e){e.register(ce),(function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",s=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+s),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+s+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby})(e)}is.displayName="crystal";is.aliases=[];function is(e){e.register(Wt),(function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(e)}ss.displayName="css-extras";ss.aliases=[];function ss(e){e.register(Ct),(function(t){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:n={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=n,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var s={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},l={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:s,number:l,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:s,number:l})})(e)}as.displayName="csv";as.aliases=[];function as(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}os.displayName="cue";os.aliases=[];function os(e){(function(t){var r=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,n=/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source,s="(?:"+n.replace(/<esc>/g,r)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+s+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}ls.displayName="cypher";ls.aliases=[];function ls(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}cs.displayName="d";cs.aliases=[];function cs(e){e.register(ce),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}ds.displayName="dart";ds.aliases=[];function ds(e){e.register(ce),(function(t){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,s={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[s,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:s.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":s,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(e)}us.displayName="dataweave";us.aliases=[];function us(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}ps.displayName="dax";ps.aliases=[];function ps(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}hs.displayName="dhall";hs.aliases=[];function hs(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}ms.displayName="diff";ms.aliases=[];function ms(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(n){var s=r[n],l=[];/^\w+$/.test(n)||l.push(/\w+/.exec(n)[0]),n==="diff"&&l.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+s+`].*(?:\r
|
|
534
|
+
?|
|
|
535
|
+
|(?![\\s\\S])))+`,"m"),alias:l,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:r})})(e)}je.displayName="markup-templating";je.aliases=[];function je(e){e.register(Re),(function(t){function r(n,s){return"___"+n.toUpperCase()+s+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,s,l,d){if(n.language===s){var a=n.tokenStack=[];n.code=n.code.replace(l,function(o){if(typeof d=="function"&&!d(o))return o;for(var c=a.length,m;n.code.indexOf(m=r(s,c))!==-1;)++c;return a[c]=o,m}),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,s){if(n.language!==s||!n.tokenStack)return;n.grammar=t.languages[s];var l=0,d=Object.keys(n.tokenStack);function a(o){for(var c=0;c<o.length&&!(l>=d.length);c++){var m=o[c];if(typeof m=="string"||m.content&&typeof m.content=="string"){var h=d[l],b=n.tokenStack[h],v=typeof m=="string"?m:m.content,S=r(s,h),x=v.indexOf(S);if(x>-1){++l;var p=v.substring(0,x),g=new t.Token(s,t.tokenize(b,n.grammar),"language-"+s,b),u=v.substring(x+S.length),f=[];p&&f.push.apply(f,a([p])),f.push(g),u&&f.push.apply(f,a([u])),typeof m=="string"?o.splice.apply(o,[c,1].concat(f)):m.content=f}}else m.content&&a(m.content)}return o}a(n.tokens)}}})})(e)}gs.displayName="django";gs.aliases=["jinja2"];function gs(e){e.register(je),(function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var r=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(s){n.buildPlaceholders(s,"django",r)}),t.hooks.add("after-tokenize",function(s){n.tokenizePlaceholders(s,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(s){n.buildPlaceholders(s,"jinja2",r)}),t.hooks.add("after-tokenize",function(s){n.tokenizePlaceholders(s,"jinja2")})})(e)}fs.displayName="dns-zone-file";fs.aliases=["dns-zone"];function fs(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}bs.displayName="docker";bs.aliases=["dockerfile"];function bs(e){(function(t){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),s=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,l=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return s}),d={pattern:RegExp(s),greedy:!0},a={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function o(c,m){return c=c.replace(/<OPT>/g,function(){return l}).replace(/<SP>/g,function(){return n}),RegExp(c,m)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:o(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[d,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:o(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:d,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},t.languages.dockerfile=t.languages.docker})(e)}ys.displayName="dot";ys.aliases=["gv"];function ys(e){(function(t){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function s(l,d){return RegExp(l.replace(/<ID>/g,function(){return r}),d)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:s(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:s(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:s(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:s(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}_s.displayName="ebnf";_s.aliases=[];function _s(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}vs.displayName="editorconfig";vs.aliases=[];function vs(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}xs.displayName="eiffel";xs.aliases=[];function xs(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Ss.displayName="ejs";Ss.aliases=["eta"];function Ss(e){e.register(Me),e.register(je),(function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(r){var n=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(r,"ejs",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"ejs")}),t.languages.eta=t.languages.ejs})(e)}ks.displayName="elixir";ks.aliases=[];function ks(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}ws.displayName="elm";ws.aliases=[];function ws(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}qr.displayName="lua";qr.aliases=[];function qr(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}Es.displayName="etlua";Es.aliases=[];function Es(e){e.register(qr),e.register(je),(function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(r){var n=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(r,"etlua",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"etlua")})})(e)}Cs.displayName="erb";Cs.aliases=[];function Cs(e){e.register(je),e.register(Wt),(function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(r){var n=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(r,"erb",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"erb")})})(e)}Ts.displayName="erlang";Ts.aliases=[];function Ts(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}Ns.displayName="excel-formula";Ns.aliases=["xls","xlsx"];function Ns(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}As.displayName="fsharp";As.aliases=[];function As(e){e.register(ce),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}Rs.displayName="factor";Rs.aliases=[];function Rs(e){(function(t){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},n={number:/\\[^\s']|%\w/},s={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:n.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:n}},l=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},d=function(c){return new RegExp("(^|\\s)(?:"+c.map(l).join("|")+")(?=\\s|$)")},a={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(a).forEach(function(c){s[c].pattern=d(a[c])});var o=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];s.combinators.pattern=d(o),t.languages.factor=s})(e)}Is.displayName="false";Is.aliases=[];function Is(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(e)}Ls.displayName="firestore-security-rules";Ls.aliases=[];function Ls(e){e.register(ce),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}Os.displayName="flow";Os.aliases=[];function Os(e){e.register(Me),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(e)}$s.displayName="fortran";$s.aliases=[];function $s(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Ds.displayName="ftl";Ds.aliases=[];function Ds(e){e.register(je),(function(t){for(var r=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,/[^\s\S]/.source);var s={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return r})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return r})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};s.string[1].inside.interpolation.inside.rest=s,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:s}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:s}}}},t.hooks.add("before-tokenize",function(l){var d=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return r}),"gi");t.languages["markup-templating"].buildPlaceholders(l,"ftl",d)}),t.hooks.add("after-tokenize",function(l){t.languages["markup-templating"].tokenizePlaceholders(l,"ftl")})})(e)}Ms.displayName="gml";Ms.aliases=["gamemakerlanguage"];function Ms(e){e.register(ce),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}js.displayName="gap";js.aliases=[];function js(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}Fs.displayName="gcode";Fs.aliases=[];function Fs(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Ps.displayName="gdscript";Ps.aliases=[];function Ps(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Bs.displayName="gedcom";Bs.aliases=[];function Bs(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}Us.displayName="gettext";Us.aliases=["po"];function Us(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}zs.displayName="gherkin";zs.aliases=[];function zs(e){(function(t){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}Hs.displayName="git";Hs.aliases=[];function Hs(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}Gs.displayName="glsl";Gs.aliases=[];function Gs(e){e.register(rt),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Ws.displayName="gn";Ws.aliases=["gni"];function Ws(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}qs.displayName="linker-script";qs.aliases=["ld"];function qs(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}Vs.displayName="go";Vs.aliases=[];function Vs(e){e.register(ce),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}Ks.displayName="go-module";Ks.aliases=["go-mod"];function Ks(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Ys.displayName="gradle";Ys.aliases=[];function Ys(e){e.register(ce),(function(t){var r={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),r.inside.expression.inside=t.languages.gradle})(e)}Xs.displayName="graphql";Xs.aliases=[];function Xs(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var n=r.tokens.filter(function(p){return typeof p!="string"&&p.type!=="comment"&&p.type!=="scalar"}),s=0;function l(p){return n[s+p]}function d(p,g){g=g||0;for(var u=0;u<p.length;u++){var f=l(u+g);if(!f||f.type!==p[u])return!1}return!0}function a(p,g){for(var u=1,f=s;f<n.length;f++){var y=n[f],k=y.content;if(y.type==="punctuation"&&typeof k=="string"){if(p.test(k))u++;else if(g.test(k)&&(u--,u===0))return f}}return-1}function o(p,g){var u=p.alias;u?Array.isArray(u)||(p.alias=u=[u]):p.alias=u=[],u.push(g)}for(;s<n.length;){var c=n[s++];if(c.type==="keyword"&&c.content==="mutation"){var m=[];if(d(["definition-mutation","punctuation"])&&l(1).content==="("){s+=2;var h=a(/^\($/,/^\)$/);if(h===-1)continue;for(;s<h;s++){var b=l(0);b.type==="variable"&&(o(b,"variable-input"),m.push(b.content))}s=h+1}if(d(["punctuation","property-query"])&&l(0).content==="{"&&(s++,o(l(0),"property-mutation"),m.length>0)){var v=a(/^\{$/,/^\}$/);if(v===-1)continue;for(var S=s;S<v;S++){var x=n[S];x.type==="variable"&&m.indexOf(x.content)>=0&&o(x,"variable-input")}}}}})}Zs.displayName="groovy";Zs.aliases=[];function Zs(e){e.register(ce),(function(t){var r={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),r.inside.expression.inside=t.languages.groovy})(e)}Js.displayName="less";Js.aliases=[];function Js(e){e.register(Ct),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Qs.displayName="scss";Qs.aliases=[];function Qs(e){e.register(Ct),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}ea.displayName="textile";ea.aliases=[];function ea(e){e.register(Re),(function(t){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function s(h,b){return RegExp(h.replace(/<MOD>/g,function(){return"(?:"+r+")"}).replace(/<PAR>/g,function(){return"(?:"+n+")"}),b||"")}var l={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},d=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:s(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:s(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:l},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:s(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:s(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:l},punctuation:/^[*#]+/}},table:{pattern:s(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:s(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:l},punctuation:/\||^\./}},inline:{pattern:s(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:s(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:s(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:s(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:s(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:s(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:s(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:s(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:s(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:l},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:s(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:s(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:s(/(^")<MOD>+/.source),lookbehind:!0,inside:l},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:s(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:s(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:s(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:l},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),a=d.phrase.inside,o={inline:a.inline,link:a.link,image:a.image,footnote:a.footnote,acronym:a.acronym,mark:a.mark};d.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=a.inline.inside;c.bold.inside=o,c.italic.inside=o,c.inserted.inside=o,c.deleted.inside=o,c.span.inside=o;var m=a.table.inside;m.inline=o.inline,m.link=o.link,m.image=o.image,m.footnote=o.footnote,m.acronym=o.acronym,m.mark=o.mark})(e)}ta.displayName="haml";ta.aliases=[];function ta(e){e.register(Wt),(function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var r="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",n=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],s={},l=0,d=n.length;l<d;l++){var a=n[l];a=typeof a=="string"?{filter:a,language:a}:a,t.languages[a.language]&&(s["filter-"+a.filter]={pattern:RegExp(r.replace("{{filter_name}}",function(){return a.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[a.language,"language-"+a.language],inside:t.languages[a.language]}}})}t.languages.insertBefore("haml","filter",s)})(e)}ra.displayName="handlebars";ra.aliases=["hbs","mustache"];function ra(e){e.register(je),(function(t){t.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(r){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(r,"handlebars",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars})(e)}pr.displayName="haskell";pr.aliases=["hs"];function pr(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}na.displayName="haxe";na.aliases=[];function na(e){e.register(ce),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}ia.displayName="hcl";ia.aliases=[];function ia(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}sa.displayName="hlsl";sa.aliases=[];function sa(e){e.register(rt),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}aa.displayName="hoon";aa.aliases=[];function aa(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}oa.displayName="hpkp";oa.aliases=[];function oa(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}la.displayName="hsts";la.aliases=[];function la(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}hr.displayName="json";hr.aliases=["webmanifest"];function hr(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}ca.displayName="uri";ca.aliases=["url"];function ca(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}da.displayName="http";da.aliases=[];function da(e){(function(t){function r(m){return RegExp("(^(?:"+m+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n=t.languages,s={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},l={"application/json":!0,"application/xml":!0};function d(m){var h=m.replace(/^[a-z]+\//,""),b="\\w+/(?:[\\w.-]+\\+)+"+h+"(?![+\\w.-])";return"(?:"+m+"|"+b+")"}var a;for(var o in s)if(s[o]){a=a||{};var c=l[o]?d(o):o;a[o.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:s[o]}}a&&t.languages.insertBefore("http","header",a)})(e)}ua.displayName="ichigojam";ua.aliases=[];function ua(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}pa.displayName="icon";pa.aliases=[];function pa(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}ha.displayName="icu-message-format";ha.aliases=[];function ha(e){(function(t){function r(o,c){return c<=0?/[]/.source:o.replace(/<SELF>/g,function(){return r(o,c-1)})}var n=/'[{}:=,](?:[^']|'')*'(?!')/,s={pattern:/''/,greedy:!0,alias:"operator"},l={pattern:n,greedy:!0,inside:{escape:s}},d=r(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return n.source}),8),a={pattern:RegExp(d),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(d),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":a,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":a,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:s,string:l},a.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}ma.displayName="idris";ma.aliases=["idr"];function ma(e){e.register(pr),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}ga.displayName="ignore";ga.aliases=["gitignore","hgignore","npmignore"];function ga(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}fa.displayName="inform7";fa.aliases=[];function fa(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}ba.displayName="ini";ba.aliases=[];function ba(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}ya.displayName="io";ya.aliases=[];function ya(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}_a.displayName="j";_a.aliases=[];function _a(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}qt.displayName="java";qt.aliases=[];function qt(e){e.register(ce),(function(t){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,s={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[s,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:s.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:s.inside}],keyword:r,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":s,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:s.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:s.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}Vt.displayName="php";Vt.aliases=[];function Vt(e){e.register(je),(function(t){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],s=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,l=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,d=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:s,operator:l,punctuation:d};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:s,operator:l,punctuation:d}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var m=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",m)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})})(e)}Kt.displayName="javadoclike";Kt.aliases=[];function Kt(e){(function(t){var r=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function n(l,d){var a="doc-comment",o=t.languages[l];if(o){var c=o[a];if(!c){var m={};m[a]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},o=t.languages.insertBefore(l,"comment",m),c=o[a]}if(c instanceof RegExp&&(c=o[a]={pattern:c}),Array.isArray(c))for(var h=0,b=c.length;h<b;h++)c[h]instanceof RegExp&&(c[h]={pattern:c[h]}),d(c[h]);else d(c)}}function s(l,d){typeof l=="string"&&(l=[l]),l.forEach(function(a){n(a,function(o){o.inside||(o.inside={}),o.inside.rest=d})})}Object.defineProperty(r,"addSupport",{value:s}),r.addSupport(["java","javascript","php"],r)})(e)}va.displayName="scala";va.aliases=[];function va(e){e.register(qt),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}xa.displayName="javadoc";xa.aliases=[];function xa(e){e.register(qt),e.register(Kt),e.register(Re),(function(t){var r=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,s=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return n});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:r,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:r,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)})(e)}Sa.displayName="javastacktrace";Sa.aliases=[];function Sa(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}ka.displayName="jexl";ka.aliases=[];function ka(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}wa.displayName="jolie";wa.aliases=[];function wa(e){e.register(ce),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}Ea.displayName="jq";Ea.aliases=[];function Ea(e){(function(t){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),s={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},l=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:s},string:{pattern:n,lookbehind:!0,greedy:!0,inside:s},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};s.interpolation.inside.content.inside=l})(e)}Ca.displayName="js-templates";Ca.aliases=[];function Ca(e){e.register(Me),(function(t){var r=t.languages.javascript["template-string"],n=r.pattern.source,s=r.inside.interpolation,l=s.inside["interpolation-punctuation"],d=s.pattern.source;function a(S,x){if(t.languages[S])return{pattern:RegExp("((?:"+x+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:S}}}}t.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),r].filter(Boolean);function o(S,x){return"___"+x.toUpperCase()+"_"+S+"___"}function c(S,x,p){var g={code:S,grammar:x,language:p};return t.hooks.run("before-tokenize",g),g.tokens=t.tokenize(g.code,g.grammar),t.hooks.run("after-tokenize",g),g.tokens}function m(S){var x={};x["interpolation-punctuation"]=l;var p=t.tokenize(S,x);if(p.length===3){var g=[1,1];g.push.apply(g,c(p[1],t.languages.javascript,"javascript")),p.splice.apply(p,g)}return new t.Token("interpolation",p,s.alias,S)}function h(S,x,p){var g=t.tokenize(S,{interpolation:{pattern:RegExp(d),lookbehind:!0}}),u=0,f={},y=g.map(function(w){if(typeof w=="string")return w;for(var N=w.content,I;S.indexOf(I=o(u++,p))!==-1;);return f[I]=N,I}).join(""),k=c(y,x,p),_=Object.keys(f);u=0;function E(w){for(var N=0;N<w.length;N++){if(u>=_.length)return;var I=w[N];if(typeof I=="string"||typeof I.content=="string"){var A=_[u],M=typeof I=="string"?I:I.content,O=M.indexOf(A);if(O!==-1){++u;var B=M.substring(0,O),F=m(f[A]),z=M.substring(O+A.length),P=[];if(B&&P.push(B),P.push(F),z){var U=[z];E(U),P.push.apply(P,U)}typeof I=="string"?(w.splice.apply(w,[N,1].concat(P)),N+=P.length-1):I.content=P}}else{var T=I.content;Array.isArray(T)?E(T):E([T])}}}return E(k),new t.Token(p,k,"language-"+p,S)}var b={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(S){if(!(S.language in b))return;function x(p){for(var g=0,u=p.length;g<u;g++){var f=p[g];if(typeof f!="string"){var y=f.content;if(!Array.isArray(y)){typeof y!="string"&&x([y]);continue}if(f.type==="template-string"){var k=y[1];if(y.length===3&&typeof k!="string"&&k.type==="embedded-code"){var _=v(k),E=k.alias,w=Array.isArray(E)?E[0]:E,N=t.languages[w];if(!N)continue;y[1]=h(_,N,w)}}else x(y)}}}x(S.tokens)});function v(S){return typeof S=="string"?S:Array.isArray(S)?S.map(v).join(""):v(S.content)}})(e)}mr.displayName="typescript";mr.aliases=["ts"];function mr(e){e.register(Me),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var r=t.languages.extend("typescript",{});delete r["class-name"],t.languages.typescript["class-name"].inside=r,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),t.languages.ts=t.languages.typescript})(e)}Ta.displayName="jsdoc";Ta.aliases=[];function Ta(e){e.register(Kt),e.register(Me),e.register(mr),(function(t){var r=t.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:r,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:r.string,number:r.number,boolean:r.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:r,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(e)}Na.displayName="n4js";Na.aliases=["n4jsd"];function Na(e){e.register(Me),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}Aa.displayName="js-extras";Aa.aliases=[];function Aa(e){e.register(Me),(function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(o,c){return RegExp(o.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],s=0;s<n.length;s++){var l=n[s],d=t.languages.javascript[l];t.util.type(d)==="RegExp"&&(d=t.languages.javascript[l]={pattern:d});var a=d.inside||{};d.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}Ra.displayName="json5";Ra.aliases=[];function Ra(e){e.register(hr),(function(t){var r=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(r.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:r,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(e)}Ia.displayName="jsonp";Ia.aliases=[];function Ia(e){e.register(hr),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}La.displayName="jsstacktrace";La.aliases=[];function La(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}Oa.displayName="julia";Oa.aliases=[];function Oa(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}$a.displayName="keepalived";$a.aliases=[];function $a(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}Da.displayName="keyman";Da.aliases=[];function Da(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}Ma.displayName="kotlin";Ma.aliases=["kt","kts"];function Ma(e){e.register(ce),(function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(e)}ja.displayName="kumir";ja.aliases=["kum"];function ja(e){(function(t){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(s,l){return RegExp(s.replace(/<nonId>/g,r),l)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}Fa.displayName="kusto";Fa.aliases=[];function Fa(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}Pa.displayName="latex";Pa.aliases=["context","tex"];function Pa(e){(function(t){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:r,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}Ba.displayName="latte";Ba.aliases=[];function Ba(e){e.register(ce),e.register(je),e.register(Vt),(function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var r=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},r.tag),t.hooks.add("before-tokenize",function(n){if(n.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(n,"latte",s),n.grammar=r}}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"latte")})})(e)}gr.displayName="scheme";gr.aliases=[];function gr(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(n){for(var s in n)n[s]=n[s].replace(/<[\w\s]+>/g,function(l){return"(?:"+n[l].trim()+")"});return n[s]}})(e)}Ua.displayName="lilypond";Ua.aliases=["ly"];function Ua(e){e.register(gr),(function(t){for(var r=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,n=5,s=0;s<n;s++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,/[^\s\S]/.source);var l=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return r}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};l["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=l,t.languages.ly=l})(e)}za.displayName="liquid";za.aliases=[];function za(e){e.register(je),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var r=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",r,function(s){var l=/^\{%-?\s*(\w+)/.exec(s);if(l){var d=l[1];if(d==="raw"&&!n)return n=!0,!0;if(d==="endraw")return n=!1,!0}return!n})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}Ha.displayName="lisp";Ha.aliases=["elisp","emacs","emacs-lisp"];function Ha(e){(function(t){function r(S){return RegExp(/(\()/.source+"(?:"+S+")"+/(?=[\s\)])/.source)}function n(S){return RegExp(/([\s([])/.source+"(?:"+S+")"+/(?=[\s)])/.source)}var s=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,l="&"+s,d="(\\()",a="(?=\\))",o="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,m={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+s+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+s),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+s),alias:"property"},splice:{pattern:RegExp(",@?"+s),alias:["symbol","variable"]},keyword:[{pattern:RegExp(d+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+o),lookbehind:!0},{pattern:RegExp(d+"(?:append|by|collect|concat|do|finally|for|in|return)"+o),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(d+"def(?:const|custom|group|var)\\s+"+s),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(s)}},defun:{pattern:RegExp(d+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+s+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+s),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(d+"lambda\\s+\\(\\s*(?:&?"+s+"(?:\\s+&?"+s+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(d+s),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},h={"lisp-marker":RegExp(l),varform:{pattern:RegExp(/\(/.source+s+/\s+(?=\S)/.source+c+/\)/.source),inside:m},argument:{pattern:RegExp(/(^|[\s(])/.source+s),lookbehind:!0,alias:"variable"},rest:m},b="\\S+(?:\\s+\\S+)*",v={pattern:RegExp(d+c+a),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+b),inside:h},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+b),inside:h},keys:{pattern:RegExp("&key\\s+"+b+"(?:\\s+&allow-other-keys)?"),inside:h},argument:{pattern:RegExp(s),alias:"variable"},punctuation:/[()]/}};m.lambda.inside.arguments=v,m.defun.inside.arguments=t.util.clone(v),m.defun.inside.arguments.inside.sublist=v,t.languages.lisp=m,t.languages.elisp=m,t.languages.emacs=m,t.languages["emacs-lisp"]=m})(e)}Ga.displayName="livescript";Ga.aliases=[];function Ga(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}Wa.displayName="llvm";Wa.aliases=[];function Wa(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}qa.displayName="log";qa.aliases=[];function qa(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}Va.displayName="lolcode";Va.aliases=[];function Va(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}Ka.displayName="magma";Ka.aliases=[];function Ka(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}Ya.displayName="makefile";Ya.aliases=[];function Ya(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Vr.displayName="mata";Vr.aliases=[];function Vr(e){(function(t){var r=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,n=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,r);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(n),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}Xa.displayName="matlab";Xa.aliases=[];function Xa(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}Za.displayName="maxscript";Za.aliases=[];function Za(e){(function(t){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}Ja.displayName="mel";Ja.aliases=[];function Ja(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}Qa.displayName="mermaid";Qa.aliases=[];function Qa(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}eo.displayName="metafont";eo.aliases=[];function eo(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}to.displayName="mizar";to.aliases=[];function to(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}ro.displayName="mongodb";ro.aliases=[];function ro(e){e.register(Me),(function(t){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(l){return l.replace("$","\\$")});var s="(?:"+r.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+s+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+n.join("|")+")\\b"),alias:"keyword"}})})(e)}no.displayName="monkey";no.aliases=[];function no(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}io.displayName="moonscript";io.aliases=["moon"];function io(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}so.displayName="n1ql";so.aliases=[];function so(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}ao.displayName="nand2tetris-hdl";ao.aliases=[];function ao(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}oo.displayName="naniscript";oo.aliases=["nani"];function oo(e){(function(t){var r=/\{[^\r\n\[\]{}]*\}/,n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(d){var a=d.tokens;a.forEach(function(o){if(typeof o!="string"&&o.type==="generic-text"){var c=l(o);s(c)||(o.type="bad-line",o.content=c)}})});function s(d){for(var a="[]{}",o=[],c=0;c<d.length;c++){var m=d[c],h=a.indexOf(m);if(h!==-1){if(h%2===0)o.push(h+1);else if(o.pop()!==h)return!1}}return o.length===0}function l(d){return typeof d=="string"?d:Array.isArray(d)?d.map(l).join(""):l(d.content)}})(e)}lo.displayName="nasm";lo.aliases=[];function lo(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}co.displayName="neon";co.aliases=[];function co(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}uo.displayName="nevod";uo.aliases=[];function uo(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}po.displayName="nginx";po.aliases=[];function po(e){(function(t){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(e)}ho.displayName="nim";ho.aliases=[];function ho(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}mo.displayName="nix";mo.aliases=[];function mo(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}go.displayName="nsis";go.aliases=[];function go(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}fo.displayName="objectivec";fo.aliases=["objc"];function fo(e){e.register(rt),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}bo.displayName="ocaml";bo.aliases=[];function bo(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}yo.displayName="odin";yo.aliases=[];function yo(e){(function(t){var r=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:r}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:r}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}_o.displayName="opencl";_o.aliases=[];function _o(e){e.register(rt),(function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var r={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",r),t.languages.cpp&&(r["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",r))})(e)}vo.displayName="openqasm";vo.aliases=["qasm"];function vo(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}xo.displayName="oz";xo.aliases=[];function xo(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}So.displayName="parigp";So.aliases=[];function So(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}ko.displayName="parser";ko.aliases=[];function ko(e){e.register(Re),(function(t){var r=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(e)}wo.displayName="pascal";wo.aliases=["objectpascal"];function wo(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}Eo.displayName="pascaligo";Eo.aliases=[];function Eo(e){(function(t){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return r}),s=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return n}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return n}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return n})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},l=["comment","keyword","builtin","operator","punctuation"].reduce(function(d,a){return d[a]=s[a],d},{});s["class-name"].forEach(function(d){d.inside=l})})(e)}Co.displayName="psl";Co.aliases=[];function Co(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}To.displayName="pcaxis";To.aliases=["px"];function To(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}No.displayName="peoplecode";No.aliases=["pcode"];function No(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}Ao.displayName="perl";Ao.aliases=[];function Ao(e){(function(t){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Ro.displayName="phpdoc";Ro.aliases=[];function Ro(e){e.register(Kt),e.register(Vt),(function(t){var r=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+r+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+r),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)})(e)}Io.displayName="php-extras";Io.aliases=[];function Io(e){e.register(Vt),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}Lo.displayName="plant-uml";Lo.aliases=["plantuml"];function Lo(e){(function(t){var r=/\$\w+|%[a-z]+%/,n=/\[[^[\]]*\]/.source,s=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,l="(?:-+"+s+"-+|\\.+"+s+"\\.+|-+(?:"+n+"-*)?|"+n+"-+|\\.+(?:"+n+"\\.*)?|"+n+"\\.+)",d=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,a=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,o=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,m=o+"(?:"+l+a+"|"+d+l+"(?:"+a+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:r}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+m+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:r,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}Oo.displayName="plsql";Oo.aliases=[];function Oo(e){e.register(ur),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}$o.displayName="powerquery";$o.aliases=["mscript","pq"];function $o(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}Do.displayName="powershell";Do.aliases=[];function Do(e){(function(t){var r=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(e)}Mo.displayName="processing";Mo.aliases=[];function Mo(e){e.register(ce),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}jo.displayName="prolog";jo.aliases=[];function jo(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}Fo.displayName="promql";Fo.aliases=[];function Fo(e){(function(t){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],n=["on","ignoring","group_right","group_left","by","without"],s=["offset"],l=r.concat(n,s);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+n.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+l.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}Po.displayName="properties";Po.aliases=[];function Po(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}Bo.displayName="protobuf";Bo.aliases=[];function Bo(e){e.register(ce),(function(t){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(e)}Uo.displayName="stylus";Uo.aliases=[];function Uo(e){(function(t){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},s={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};s.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:s}},s.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:s}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:s}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:s}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:s}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:s.interpolation}},rest:s}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:s.interpolation,comment:s.comment,punctuation:/[{},]/}},func:s.func,string:s.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:s.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}zo.displayName="twig";zo.aliases=[];function zo(e){e.register(je),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var r=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",r)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}Ho.displayName="pug";Ho.aliases=[];function Ho(e){e.register(Me),e.register(Re),(function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],s={},l=0,d=n.length;l<d;l++){var a=n[l];a=typeof a=="string"?{filter:a,language:a}:a,t.languages[a.language]&&(s["filter-"+a.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return a.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[a.language,"language-"+a.language],inside:t.languages[a.language]}}})}t.languages.insertBefore("pug","filter",s)})(e)}Go.displayName="puppet";Go.aliases=[];function Go(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=r,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(e)}Wo.displayName="pure";Wo.aliases=[];function Wo(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],n=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(s){var l=s;if(typeof s!="string"&&(l=s.alias,s=s.lang),t.languages[l]){var d={};d["inline-lang-"+l]={pattern:RegExp(n.replace("<lang>",s.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},d["inline-lang-"+l].inside.rest=t.util.clone(t.languages[l]),t.languages.insertBefore("pure","inline-lang",d)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}qo.displayName="purebasic";qo.aliases=["pbfasm"];function qo(e){e.register(ce),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}Vo.displayName="purescript";Vo.aliases=["purs"];function Vo(e){e.register(pr),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}Kr.displayName="python";Kr.aliases=["py"];function Kr(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}Ko.displayName="qsharp";Ko.aliases=["qs"];function Ko(e){e.register(ce),(function(t){function r(v,S){return v.replace(/<<(\d+)>>/g,function(x,p){return"(?:"+S[+p]+")"})}function n(v,S,x){return RegExp(r(v,S),"")}function s(v,S){for(var x=0;x<S;x++)v=v.replace(/<<self>>/g,function(){return"(?:"+v+")"});return v.replace(/<<self>>/g,"[^\\s\\S]")}var l={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function d(v){return"\\b(?:"+v.trim().replace(/ /g,"|")+")\\b"}var a=RegExp(d(l.type+" "+l.other)),o=/\b[A-Za-z_]\w*\b/.source,c=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[o]),m={keyword:a,punctuation:/[<>()?,.:[\]]/},h=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[h]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:m},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:m}],keyword:a,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var b=s(r(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[h]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[b]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[b]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}Yo.displayName="q";Yo.aliases=[];function Yo(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}Xo.displayName="qml";Xo.aliases=[];function Xo(e){e.register(Me),(function(t){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,s=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return r}).replace(/<comment>/g,function(){return n}),l=0;l<2;l++)s=s.replace(/<expr>/g,function(){return s});s=s.replace(/<expr>/g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return s}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return s}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}Zo.displayName="qore";Zo.aliases=[];function Zo(e){e.register(ce),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}Jo.displayName="r";Jo.aliases=[];function Jo(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Qo.displayName="racket";Qo.aliases=["rkt"];function Qo(e){e.register(gr),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}el.displayName="cshtml";el.aliases=["razor"];function el(e){e.register(Gt),e.register(Re),(function(t){var r=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function s(u,f){for(var y=0;y<f;y++)u=u.replace(/<self>/g,function(){return"(?:"+u+")"});return u.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+n+")").replace(/<comment>/g,"(?:"+r+")")}var l=s(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),d=s(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),a=s(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),o=s(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+l+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+o+")?"+l+"|"+d+")*"+/(?![?!\.(\[]|<(?!\/))/.source,m=/@(?![\w()])/.source+"|"+c,h="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+m+`)[^"'@]*)+["'])`,b=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,h),v=/(?!\d)[^\s>\/=$<%]+/.source+b+/\s*\/?>/.source,S=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+b+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+v+"|"+s(/<\1/.source+b+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+v+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+v+")";t.languages.cshtml=t.languages.extend("markup",{});var x=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(S),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),p={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:x},g={pattern:RegExp(/(^|[^@])/.source+c),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:p}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+v),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+h),t.languages.insertBefore("inside","punctuation",{value:g},t.languages.cshtml.tag.inside["attr-value"]),t.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[a,/(?:code|functions)\s*/.source+a,/(?:for|foreach|lock|switch|using|while)\s*/.source+l+/\s*/.source+a,/do\s*/.source+a+/\s*while\s*/.source+l+/(?:\s*;)?/.source,/try\s*/.source+a+/\s*catch\s*/.source+l+/\s*/.source+a+/\s*finally\s*/.source+a,/if\s*/.source+l+/\s*/.source+a+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+l+")?"+/\s*/.source+a+")*",/helper\s+\w+\s*/.source+l+/\s*/.source+a].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:p}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:p}},value:g,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml})(e)}Yr.displayName="jsx";Yr.aliases=[];function Yr(e){e.register(Me),e.register(Re),(function(t){var r=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,s=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,l=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function d(c,m){return c=c.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return s}).replace(/<SPREAD>/g,function(){return l}),RegExp(c,m)}l=d(l).source,t.languages.jsx=t.languages.extend("markup",r),t.languages.jsx.tag.pattern=d(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=r.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:d(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:d(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var a=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(a).join(""):""},o=function(c){for(var m=[],h=0;h<c.length;h++){var b=c[h],v=!1;if(typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===a(b.content[0].content[1])&&m.pop():b.content[b.content.length-1].content==="/>"||m.push({tagName:a(b.content[0].content[1]),openedBraces:0}):m.length>0&&b.type==="punctuation"&&b.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&b.type==="punctuation"&&b.content==="}"?m[m.length-1].openedBraces--:v=!0),(v||typeof b=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var S=a(b);h<c.length-1&&(typeof c[h+1]=="string"||c[h+1].type==="plain-text")&&(S+=a(c[h+1]),c.splice(h+1,1)),h>0&&(typeof c[h-1]=="string"||c[h-1].type==="plain-text")&&(S=a(c[h-1])+S,c.splice(h-1,1),h--),c[h]=new t.Token("plain-text",S,null,S)}b.content&&typeof b.content!="string"&&o(b.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||o(c.tokens)})})(e)}tl.displayName="tsx";tl.aliases=[];function tl(e){e.register(Yr),e.register(mr),(function(t){var r=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",r),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0})(e)}rl.displayName="reason";rl.aliases=[];function rl(e){e.register(ce),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}nl.displayName="rego";nl.aliases=[];function nl(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}il.displayName="renpy";il.aliases=["rpy"];function il(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}sl.displayName="rescript";sl.aliases=["res"];function sl(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}al.displayName="rest";al.aliases=[];function al(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}ol.displayName="rip";ol.aliases=[];function ol(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}ll.displayName="roboconf";ll.aliases=[];function ll(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}cl.displayName="robotframework";cl.aliases=["robot"];function cl(e){(function(t){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function s(o,c){var m={};m["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var h in c)m[h]=c[h];return m.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},m.variable=n,m.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return o}),"im"),alias:"section",inside:m}}var l={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},d={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},a={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};t.languages.robotframework={settings:s("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:s("Variables"),"test-cases":s("Test Cases",{"test-name":d,documentation:l,property:a}),keywords:s("Keywords",{"keyword-name":d,documentation:l,property:a}),tasks:s("Tasks",{"task-name":d,documentation:l,property:a}),comment:r},t.languages.robot=t.languages.robotframework})(e)}dl.displayName="rust";dl.aliases=[];function dl(e){(function(t){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}ul.displayName="sas";ul.aliases=[];function ul(e){(function(t){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,s={pattern:RegExp(r+"[bx]"),alias:"number"},l={pattern:/&[a-z_]\w*/i},d={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},a={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},o=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(r),greedy:!0},m=/[$%@.(){}\[\];,\\]/,h={pattern:/%?\b\w+(?=\()/,alias:"keyword"},b={function:h,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":l,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":s,punctuation:m,string:c},v={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},S={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},x={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},p={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},g=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,u={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return g}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return g}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:o,function:h,"arg-value":b["arg-value"],operator:b.operator,argument:b.arg,number:n,"numeric-constant":s,punctuation:m,string:c}},f={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return r}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":x,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":s,punctuation:m,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:f,"submit-statement":p,"global-statements":x,number:n,"numeric-constant":s,punctuation:m,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:f,"submit-statement":p,"global-statements":x,number:n,"numeric-constant":s,punctuation:m,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:b}},"cas-actions":u,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:b},step:a,keyword:f,function:h,format:v,altformat:S,"global-statements":x,number:n,"numeric-constant":s,punctuation:m,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,inside:b},"macro-keyword":d,"macro-variable":l,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":d,"macro-variable":l,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:m}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:o,number:n,"numeric-constant":s}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:b},"cas-actions":u,comment:o,function:h,format:v,altformat:S,"numeric-constant":s,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:c,step:a,keyword:f,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:m}})(e)}pl.displayName="sass";pl.aliases=[];function pl(e){e.register(Ct),(function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:n,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}hl.displayName="shell-session";hl.aliases=["sh-session","shellsession"];function hl(e){e.register(Hr),(function(t){var r=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return r}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]})(e)}ml.displayName="smali";ml.aliases=[];function ml(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}gl.displayName="smalltalk";gl.aliases=[];function gl(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}fl.displayName="smarty";fl.aliases=[];function fl(e){e.register(je),(function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var r=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return r.source}),"g");t.hooks.add("before-tokenize",function(s){var l="{literal}",d="{/literal}",a=!1;t.languages["markup-templating"].buildPlaceholders(s,"smarty",n,function(o){return o===d&&(a=!1),a?!1:(o===l&&(a=!0),!0)})}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"smarty")})})(e)}bl.displayName="sml";bl.aliases=["smlnj"];function bl(e){(function(t){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}yl.displayName="solidity";yl.aliases=["sol"];function yl(e){e.register(ce),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}_l.displayName="solution-file";_l.aliases=["sln"];function _l(e){(function(t){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}vl.displayName="soy";vl.aliases=[];function vl(e){e.register(je),(function(t){var r=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:r,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:r,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(s){var l=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,d="{literal}",a="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(s,"soy",l,function(c){return c===a&&(o=!1),o?!1:(c===d&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"soy")})})(e)}Xr.displayName="turtle";Xr.aliases=["trig"];function Xr(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}xl.displayName="sparql";xl.aliases=["rq"];function xl(e){e.register(Xr),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}Sl.displayName="splunk-spl";Sl.aliases=[];function Sl(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}kl.displayName="sqf";kl.aliases=[];function kl(e){e.register(ce),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}wl.displayName="squirrel";wl.aliases=[];function wl(e){e.register(ce),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}El.displayName="stan";El.aliases=[];function El(e){(function(t){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}Cl.displayName="stata";Cl.aliases=[];function Cl(e){e.register(qt),e.register(Vr),e.register(Kr),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}Tl.displayName="iecst";Tl.aliases=[];function Tl(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}Nl.displayName="supercollider";Nl.aliases=["sclang"];function Nl(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}Al.displayName="swift";Al.aliases=[];function Al(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}Rl.displayName="systemd";Rl.aliases=[];function Rl(e){(function(t){var r={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+`|(?=[^"\r
|
|
536
|
+
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}fr.displayName="t4-templating";fr.aliases=[];function fr(e){(function(t){function r(s,l,d){return{pattern:RegExp("<#"+s+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+s+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:l,alias:d}}}}function n(s){var l=t.languages[s],d="language-"+s;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",l,d),"class-feature":r("\\+",l,d),standard:r("",l,d)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:n})})(e)}Il.displayName="t4-cs";Il.aliases=["t4"];function Il(e){e.register(Gt),e.register(fr),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Zr.displayName="vbnet";Zr.aliases=[];function Zr(e){e.register(Wr),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}Ll.displayName="t4-vb";Ll.aliases=[];function Ll(e){e.register(fr),e.register(Zr),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}Ol.displayName="tap";Ol.aliases=[];function Ol(e){e.register(Gr),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}$l.displayName="tcl";$l.aliases=[];function $l(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}Dl.displayName="tt2";Dl.aliases=[];function Dl(e){e.register(ce),e.register(je),(function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(r){var n=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(r,"tt2",n)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"tt2")})})(e)}Ml.displayName="toml";Ml.aliases=[];function Ml(e){(function(t){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(s){return s.replace(/__/g,function(){return r})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}jl.displayName="tremor";jl.aliases=["trickle","troy"];function jl(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}Fl.displayName="typoscript";Fl.aliases=["tsconfig"];function Fl(e){(function(t){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}Pl.displayName="unrealscript";Pl.aliases=["uc","uscript"];function Pl(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}Bl.displayName="uorazor";Bl.aliases=[];function Bl(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}Ul.displayName="v";Ul.aliases=[];function Ul(e){e.register(ce),(function(t){var r={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})})(e)}zl.displayName="vala";zl.aliases=[];function zl(e){e.register(ce),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}Hl.displayName="velocity";Hl.aliases=[];function Hl(e){e.register(Re),(function(t){t.languages.velocity=t.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity})(e)}Gl.displayName="verilog";Gl.aliases=[];function Gl(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}Wl.displayName="vhdl";Wl.aliases=[];function Wl(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}ql.displayName="vim";ql.aliases=[];function ql(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}Vl.displayName="visual-basic";Vl.aliases=["vb","vba"];function Vl(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}Kl.displayName="warpscript";Kl.aliases=[];function Kl(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}Yl.displayName="wasm";Yl.aliases=[];function Yl(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}Xl.displayName="web-idl";Xl.aliases=["webidl"];function Xl(e){(function(t){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,s={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:s},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:s},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:s},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:s},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:s}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var l in t.languages["web-idl"])l!=="class-name"&&(s[l]=t.languages["web-idl"][l]);t.languages.webidl=t.languages["web-idl"]})(e)}Zl.displayName="wgsl";Zl.aliases=[];function Zl(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}Jl.displayName="wiki";Jl.aliases=[];function Jl(e){e.register(Re),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}Ql.displayName="wolfram";Ql.aliases=["mathematica","nb","wl"];function Ql(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}ec.displayName="wren";ec.aliases=[];function ec(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}tc.displayName="xeora";tc.aliases=["xeoracube"];function tc(e){e.register(Re),(function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora})(e)}rc.displayName="xml-doc";rc.aliases=[];function rc(e){e.register(Re),(function(t){function r(d,a){t.languages[d]&&t.languages.insertBefore(d,"comment",{"doc-comment":a})}var n=t.languages.markup.tag,s={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},l={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};r("csharp",s),r("fsharp",s),r("vbnet",l)})(e)}nc.displayName="xojo";nc.aliases=[];function nc(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}ic.displayName="xquery";ic.aliases=[];function ic(e){e.register(Re),(function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var r=function(s){return typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(r).join("")},n=function(s){for(var l=[],d=0;d<s.length;d++){var a=s[d],o=!1;if(typeof a!="string"&&(a.type==="tag"&&a.content[0]&&a.content[0].type==="tag"?a.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===r(a.content[0].content[1])&&l.pop():a.content[a.content.length-1].content==="/>"||l.push({tagName:r(a.content[0].content[1]),openedBraces:0}):l.length>0&&a.type==="punctuation"&&a.content==="{"&&(!s[d+1]||s[d+1].type!=="punctuation"||s[d+1].content!=="{")&&(!s[d-1]||s[d-1].type!=="plain-text"||s[d-1].content!=="{")?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&a.type==="punctuation"&&a.content==="}"?l[l.length-1].openedBraces--:a.type!=="comment"&&(o=!0)),(o||typeof a=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var c=r(a);d<s.length-1&&(typeof s[d+1]=="string"||s[d+1].type==="plain-text")&&(c+=r(s[d+1]),s.splice(d+1,1)),d>0&&(typeof s[d-1]=="string"||s[d-1].type==="plain-text")&&(c=r(s[d-1])+c,s.splice(d-1,1),d--),/^\s+$/.test(c)?s[d]=c:s[d]=new t.Token("plain-text",c,null,c)}a.content&&typeof a.content!="string"&&n(a.content)}};t.hooks.add("after-tokenize",function(s){s.language==="xquery"&&n(s.tokens)})})(e)}sc.displayName="yang";sc.aliases=[];function sc(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}ac.displayName="zig";ac.aliases=[];function ac(e){(function(t){function r(c){return function(){return c}}var n=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,s="\\b(?!"+n.source+")(?!\\d)\\w+\\b",l=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,d=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,r(l)),a=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,r(s)),o="(?!\\s)(?:!?\\s*(?:"+d+"\\s*)*"+a+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,r(o)).replace(/<ALIGN>/g,r(l))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,r(o)).replace(/<ALIGN>/g,r(l))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:n,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}j.register(Re);j.register(Ct);j.register(ce);j.register(ai);j.register(Me);j.register(oi);j.register(li);j.register(ci);j.register(di);j.register(ui);j.register(pi);j.register(hi);j.register(mi);j.register(ur);j.register(gi);j.register(fi);j.register(bi);j.register(yi);j.register(rt);j.register(Ht);j.register(_i);j.register(vi);j.register(xi);j.register(Hr);j.register(Gr);j.register(Si);j.register(ki);j.register(wi);j.register(Gt);j.register(Ei);j.register(Ci);j.register(Ti);j.register(Ni);j.register(Ai);j.register(Ri);j.register(Ii);j.register(Li);j.register(Wr);j.register(Oi);j.register($i);j.register(Di);j.register(Mi);j.register(ji);j.register(Fi);j.register(Pi);j.register(Bi);j.register(Ui);j.register(zi);j.register(Hi);j.register(Gi);j.register(Wi);j.register(qi);j.register(Vi);j.register(Ki);j.register(Yi);j.register(Xi);j.register(Zi);j.register(Ji);j.register(Qi);j.register(es);j.register(ts);j.register(rs);j.register(ns);j.register(Wt);j.register(is);j.register(ss);j.register(as);j.register(os);j.register(ls);j.register(cs);j.register(ds);j.register(us);j.register(ps);j.register(hs);j.register(ms);j.register(je);j.register(gs);j.register(fs);j.register(bs);j.register(ys);j.register(_s);j.register(vs);j.register(xs);j.register(Ss);j.register(ks);j.register(ws);j.register(qr);j.register(Es);j.register(Cs);j.register(Ts);j.register(Ns);j.register(As);j.register(Rs);j.register(Is);j.register(Ls);j.register(Os);j.register($s);j.register(Ds);j.register(Ms);j.register(js);j.register(Fs);j.register(Ps);j.register(Bs);j.register(Us);j.register(zs);j.register(Hs);j.register(Gs);j.register(Ws);j.register(qs);j.register(Vs);j.register(Ks);j.register(Ys);j.register(Xs);j.register(Zs);j.register(Js);j.register(Qs);j.register(ea);j.register(ta);j.register(ra);j.register(pr);j.register(na);j.register(ia);j.register(sa);j.register(aa);j.register(oa);j.register(la);j.register(hr);j.register(ca);j.register(da);j.register(ua);j.register(pa);j.register(ha);j.register(ma);j.register(ga);j.register(fa);j.register(ba);j.register(ya);j.register(_a);j.register(qt);j.register(Vt);j.register(Kt);j.register(va);j.register(xa);j.register(Sa);j.register(ka);j.register(wa);j.register(Ea);j.register(Ca);j.register(mr);j.register(Ta);j.register(Na);j.register(Aa);j.register(Ra);j.register(Ia);j.register(La);j.register(Oa);j.register($a);j.register(Da);j.register(Ma);j.register(ja);j.register(Fa);j.register(Pa);j.register(Ba);j.register(gr);j.register(Ua);j.register(za);j.register(Ha);j.register(Ga);j.register(Wa);j.register(qa);j.register(Va);j.register(Ka);j.register(Ya);j.register(Vr);j.register(Xa);j.register(Za);j.register(Ja);j.register(Qa);j.register(eo);j.register(to);j.register(ro);j.register(no);j.register(io);j.register(so);j.register(ao);j.register(oo);j.register(lo);j.register(co);j.register(uo);j.register(po);j.register(ho);j.register(mo);j.register(go);j.register(fo);j.register(bo);j.register(yo);j.register(_o);j.register(vo);j.register(xo);j.register(So);j.register(ko);j.register(wo);j.register(Eo);j.register(Co);j.register(To);j.register(No);j.register(Ao);j.register(Ro);j.register(Io);j.register(Lo);j.register(Oo);j.register($o);j.register(Do);j.register(Mo);j.register(jo);j.register(Fo);j.register(Po);j.register(Bo);j.register(Uo);j.register(zo);j.register(Ho);j.register(Go);j.register(Wo);j.register(qo);j.register(Vo);j.register(Kr);j.register(Ko);j.register(Yo);j.register(Xo);j.register(Zo);j.register(Jo);j.register(Qo);j.register(el);j.register(Yr);j.register(tl);j.register(rl);j.register(nl);j.register(il);j.register(sl);j.register(al);j.register(ol);j.register(ll);j.register(cl);j.register(dl);j.register(ul);j.register(pl);j.register(hl);j.register(ml);j.register(gl);j.register(fl);j.register(bl);j.register(yl);j.register(_l);j.register(vl);j.register(Xr);j.register(xl);j.register(Sl);j.register(kl);j.register(wl);j.register(El);j.register(Cl);j.register(Tl);j.register(Nl);j.register(Al);j.register(Rl);j.register(fr);j.register(Il);j.register(Zr);j.register(Ll);j.register(Ol);j.register($l);j.register(Dl);j.register(Ml);j.register(jl);j.register(Fl);j.register(Pl);j.register(Bl);j.register(Ul);j.register(zl);j.register(Hl);j.register(Gl);j.register(Wl);j.register(ql);j.register(Vl);j.register(Kl);j.register(Yl);j.register(Xl);j.register(Zl);j.register(Jl);j.register(Ql);j.register(ec);j.register(tc);j.register(rc);j.register(nc);j.register(ic);j.register(sc);j.register(ac);var br=$b(j,oy);br.supportedLanguages=Db;const Jr={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},Qr={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},jt=ze(e=>({info:null,loading:!1,fetch:async()=>{e({loading:!0});try{const t=await _e("/api/v1/info",{headers:me()});if(t.ok){const r=await t.json(),n=r.data??r;e({info:n,loading:!1})}else e({loading:!1})}catch{e({loading:!1})}}})),ly="chat",Xc=new Set(["chat","tasks","plugins","terminal","remote-control","settings","docs","editor","changes","metrics","workers","logs"]);function oc(){let t=window.location.hash.slice(1);t.startsWith("/")&&(t=t.slice(1));const r=t.split("?")[0]||"";if(Xc.has(r))return r;const n=r.split("/")[0];return Xc.has(n)?n:ly}function Zc(e){const t=new URLSearchParams(window.location.search),r=window.location.hash.slice(1),n=r.indexOf("?");n!==-1&&new URLSearchParams(r.slice(n+1)).forEach((a,o)=>{t.has(o)||t.set(o,a)});const s=t.toString(),l=s?`#/${e}?${s}`:`#/${e}`;window.location.hash=l}function cy(e){const t=()=>{const r=oc();e(r)};return window.addEventListener("hashchange",t),()=>{window.removeEventListener("hashchange",t)}}function Mr(){const t=window.location.hash.slice(1).replace(/^\//,"").split("?")[0],r=t.indexOf("/");return r>0?t.slice(r+1):void 0}function Zt(e,t){const n=new URLSearchParams(window.location.search).toString(),s=n?`#/${e}/${t}?${n}`:`#/${e}/${t}`;window.location.hash=s}function Wu(){const e=window.location.hash.slice(1),t=e.indexOf("?");return t>=0?new URLSearchParams(e.slice(t+1)):new URLSearchParams}function qu(e){const t=new URLSearchParams(window.location.search);t.set("path",e),window.location.hash=`#/editor?${t.toString()}`}function ft({path:e,className:t,children:r}){const n=jt(l=>{var d;return(d=l.info)==null?void 0:d.cwd}),s=l=>{l.stopPropagation();const d=e.startsWith("/")?e:n?`${n}/${e}`:e;qu(d)};return i.jsx("span",{className:`cursor-pointer hover:underline hover:text-accent-brand transition-colors ${t||""}`,onClick:s,title:e,children:r??e})}const dy=["/api/","/http","/dev/","/proc/","/sys/"];function Vu(e){if(e==="/"||e.length<2)return!1;for(const t of dy)if(e.startsWith(t))return!1;return!0}const uy=/(\/(?:[a-zA-Z0-9._\-~@+]+\/)*[a-zA-Z0-9._\-~@+]+)/g;function py({text:e,className:t}){const r=[];let n=0;const s=new RegExp(uy.source,"g");let l;for(;(l=s.exec(e))!==null;){const d=l[1],a=l.index;Vu(d)&&(a>n&&r.push({kind:"text",value:e.slice(n,a)}),r.push({kind:"path",value:d}),n=a+d.length)}return r.length===0?i.jsx("span",{className:t,children:e}):(n<e.length&&r.push({kind:"text",value:e.slice(n)}),i.jsx("span",{className:t,children:r.map((d,a)=>d.kind==="path"?i.jsx(ft,{path:d.value},a):i.jsx("span",{children:d.value},a))}))}function hy(e){return e.includes(" ")||e.length>300?!1:!!(e.startsWith("/")&&Vu(e)||(e.startsWith("./")||e.startsWith("../")||/^[a-zA-Z0-9@._-]+\//.test(e))&&!e.startsWith("http"))}const my=br;let jr=null;function gy({src:e,alt:t}){const r=C.useCallback(n=>{n.preventDefault(),e&&jr&&jr(e)},[e]);return i.jsx("img",{src:e,alt:t,className:"markdown-image cursor-pointer hover:opacity-90 transition-opacity",onClick:r,title:"点击放大"})}function Jc({text:e}){const[t,r]=C.useState(!1),n=C.useRef(),{t:s}=ie();C.useEffect(()=>()=>{clearTimeout(n.current)},[]);const l=C.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{r(!0),n.current=setTimeout(()=>r(!1),2e3)}).catch(d=>{console.warn("Clipboard write failed:",d)})},[e]);return i.jsx("div",{className:"absolute top-2.5 right-2.5 flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity z-10",children:i.jsx("button",{onClick:l,className:"p-1.5 rounded-lg text-text-tertiary hover:text-text-primary hover:bg-bg-hover transition-colors",title:s("message.copyToClipboard"),children:t?i.jsx(kt,{size:16,className:"text-accent-green"}):i.jsx(In,{size:16})})})}function fy({className:e,children:t,...r}){const n=tt(o=>o.resolved),s=/language-(\w+)/.exec(e||""),l=String(t).replace(/\n$/,"");if(s){const o=s[1];return i.jsxs("div",{className:"group relative my-3 rounded-xl overflow-hidden bg-bg-code border border-border-default",children:[i.jsx(Jc,{text:l}),i.jsx("div",{className:"px-3 py-3 overflow-x-auto",children:i.jsx(my,{style:n==="dark"?Jr:Qr,language:o,PreTag:"div",customStyle:{margin:0,padding:0,border:"none",background:"transparent",fontSize:"14px",lineHeight:"1.5"},children:l})})]})}if(l.includes(`
|
|
537
|
+
`))return i.jsxs("div",{className:"group relative my-3 rounded-xl overflow-hidden bg-bg-code border border-border-default",children:[i.jsx(Jc,{text:l}),i.jsx("pre",{className:"px-3 py-3 overflow-x-auto text-text-primary font-mono",style:{margin:0,background:"transparent",fontSize:"14px",lineHeight:"1.5",whiteSpace:"pre"},children:l})]});const a=String(t).replace(/\n$/,"");return hy(a)?i.jsx("code",{className:e,...r,children:i.jsx(ft,{path:a,children:t})}):i.jsx("code",{className:e,...r,children:t})}function by({thinking:e,streaming:t,duration:r}){const[n,s]=C.useState(null),l=C.useRef(null),[d,a]=C.useState(0),o=C.useRef(Date.now()),{t:c}=ie(),m=n!==null?n:t;C.useEffect(()=>{if(!t)return;o.current=Date.now();const v=setInterval(()=>{a(Math.round((Date.now()-o.current)/1e3))},1e3);return()=>clearInterval(v)},[t]),C.useEffect(()=>{t&&m&&l.current&&(l.current.scrollTop=l.current.scrollHeight)},[e,t,m]);const h=t?d:r||0,b=t?c("thinking.thinking"):`${c("thinking.done")}${c("thinking.seconds").replace("{n}",String(h))}`;return i.jsxs("div",{className:`thinking-block ${t?"thinking-block-streaming":""}`,children:[i.jsxs("div",{className:"thinking-block-header",onClick:()=>s(v=>v!==null?!v:!t),children:[i.jsx("span",{className:"thinking-block-header-text",children:b}),t&&i.jsx("span",{className:"thinking-dot"}),i.jsx(it,{size:14,className:`thinking-block-toggle ${m?"expanded":""}`})]}),m&&i.jsx("div",{ref:l,className:"thinking-block-content",children:e})]})}function lc({message:e}){const t=!!e.streaming&&!!e.thinking&&!e.thinkingDuration,r=!!e.thinking,n=!!e.content,[s,l]=C.useState(null);return C.useEffect(()=>(jr=l,()=>{jr=null}),[]),!r&&!n?null:i.jsxs("div",{className:"mb-2",children:[r&&i.jsx(by,{thinking:e.thinking,streaming:t,duration:e.thinkingDuration}),n&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"markdown-body text-chat text-text-primary",children:i.jsx(Pt,{remarkPlugins:[Bt],components:{pre:({children:d})=>i.jsx(i.Fragment,{children:d}),code:fy,img:({src:d,alt:a})=>i.jsx(gy,{src:d,alt:a}),table:({children:d,...a})=>i.jsx("div",{className:"markdown-table-wrapper",children:i.jsx("table",{...a,children:d})})},children:e.content})}),s&&i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 cursor-zoom-out",onClick:()=>l(null),children:i.jsx("img",{src:s,alt:"",className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg shadow-2xl",onClick:d=>d.stopPropagation()})})]})]})}function yy(e){return e.replace(/<\/?[a-zA-Z][a-zA-Z0-9_-]*(?:\s[^>]*)?>/g,"").trim()}function _y({entries:e}){const[t,r]=C.useState(!1),{t:n}=ie(),s=e.find(a=>a.role==="assistant"),l=!s||!!s.streaming,d=C.useMemo(()=>{if(s!=null&&s.content)return{...s,content:yy(s.content)}},[s]);return l?i.jsx("div",{className:"flex flex-col w-full my-4",children:i.jsxs("div",{className:"flex items-center w-full gap-3",children:[i.jsx("div",{className:"flex-1 h-px bg-border-muted"}),i.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 rounded-full border border-border-muted bg-bg-primary text-xs text-text-tertiary font-medium",children:[i.jsx(ve,{size:12,className:"animate-spin opacity-70"}),i.jsx("span",{children:n("chat.compacting")})]}),i.jsx("div",{className:"flex-1 h-px bg-border-muted"})]})}):i.jsxs("div",{className:"flex flex-col w-full my-4",children:[i.jsxs("div",{className:"flex items-center w-full gap-3",children:[i.jsx("div",{className:"flex-1 h-px bg-border-muted"}),i.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1 rounded-full border border-border-muted bg-bg-primary hover:bg-bg-hover transition-colors text-xs text-text-tertiary font-medium cursor-pointer",onClick:()=>r(!t),"aria-expanded":t,children:[i.jsx(hg,{size:12,className:"opacity-70"}),i.jsx("span",{children:n("chat.compacted")}),d&&i.jsx(De,{size:14,className:`transition-transform duration-200 opacity-60 ${t?"rotate-90":""}`})]}),i.jsx("div",{className:"flex-1 h-px bg-border-muted"})]}),t&&d&&i.jsx("div",{className:"mt-3 w-full bg-bg-secondary/50 rounded-lg p-4 border border-border-subtle text-sm text-text-secondary max-h-80 overflow-y-auto",children:i.jsx(lc,{message:d})})]})}function Ku(e,t){const r=new Date(e),n=new Date,s=new Date(n.getFullYear(),n.getMonth(),n.getDate()),l=new Date(s.getTime()-864e5),d=new Date(r.getFullYear(),r.getMonth(),r.getDate()),a=String(r.getHours()).padStart(2,"0"),o=String(r.getMinutes()).padStart(2,"0"),c=`${a}:${o}`;return d.getTime()===s.getTime()?c:d.getTime()===l.getTime()?t==="zh"?`昨天 ${c}`:`Yesterday ${c}`:r.getFullYear()===n.getFullYear()?t==="zh"?`${r.getMonth()+1}月${r.getDate()}日 ${c}`:`${r.toLocaleDateString("en-US",{month:"short"})} ${r.getDate()} ${c}`:t==="zh"?`${r.getFullYear()}年${r.getMonth()+1}月${r.getDate()}日 ${c}`:`${r.toLocaleDateString("en-US",{month:"short"})} ${r.getDate()}, ${r.getFullYear()} ${c}`}function Fr(e){const t=new Date(e),r=new Date,n=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(n.getTime()-864e5),l=new Date(t.getFullYear(),t.getMonth(),t.getDate());return l.getTime()===n.getTime()?`today-${t.getHours()}`:l.getTime()===s.getTime()?`yesterday-${t.getHours()}`:`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}function It({label:e}){return i.jsx("div",{className:"date-separator",children:i.jsx("span",{className:"date-separator-label",children:e})})}const vy={Bash:e=>{if(!e)return null;const t=e.description?String(e.description):void 0,r=e.command?String(e.command):"";return{subtitle:t,content:r?i.jsx("div",{className:"rounded-lg bg-bg-secondary/50 px-3.5 py-2.5 font-mono text-xs",children:i.jsx("span",{className:"text-text-primary",children:r})}):null}},Write:e=>{if(!e)return null;const t=String(e.file_path||""),r=String(e.content||"");return{subtitle:t||void 0,content:t&&r?i.jsx(ir,{path:t,oldText:null,newText:r,maxHeight:"max-h-40"}):null}},Edit:e=>{if(!e)return null;const t=String(e.file_path||""),r=e.old_string!=null?String(e.old_string):"",n=e.new_string!=null?String(e.new_string):"";return{subtitle:t||void 0,content:t&&(r||n)?i.jsx(ir,{path:t,oldText:r,newText:n,maxHeight:"max-h-40"}):null}},MultiEdit:e=>{if(!e)return null;const t=String(e.file_path||""),r=e.edits;if(!t||!r||r.length===0)return{subtitle:t||void 0,content:null};const n=r[0];return{subtitle:`${t} (${r.length})`,content:i.jsx(ir,{path:t,oldText:String(n.old_string||""),newText:String(n.new_string||""),maxHeight:"max-h-40"})}},Read:e=>e!=null&&e.file_path?{content:i.jsx("div",{className:"text-xs font-mono text-text-secondary truncate",children:String(e.file_path)})}:null,Glob:e=>{if(!e)return null;const t=[e.pattern,e.path].filter(Boolean).map(String);return{content:i.jsx("div",{className:"text-xs font-mono text-text-secondary truncate",children:t.join(" in ")})}},Grep:e=>e?{content:i.jsxs("div",{className:"text-xs font-mono text-text-secondary truncate",children:['grep "',String(e.pattern||""),'" ',String(e.path||"")]})}:null,WebFetch:e=>e?{subtitle:e.prompt?String(e.prompt):void 0,content:e.url?i.jsx("div",{className:"text-xs font-mono text-accent-blue truncate",children:String(e.url)}):null}:null,WebSearch:e=>e?{content:i.jsxs("div",{className:"text-xs font-mono text-text-secondary",children:['"',String(e.query||""),'"']})}:null,AskUserQuestion:e=>{if(!e)return null;const t=e.questions;return!t||t.length===0?null:{subtitle:t.length===1?t[0].question||t[0].header||void 0:`${t.length} questions`,content:i.jsx("div",{className:"space-y-2",children:t.map((n,s)=>i.jsxs("div",{className:"rounded-lg bg-bg-secondary/50 overflow-hidden",children:[i.jsxs("div",{className:"px-3 py-2 text-xs",children:[n.header&&i.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[11px] font-medium mr-1.5",children:n.header}),i.jsx("span",{className:"text-text-primary font-medium",children:n.question}),n.multiSelect&&i.jsx("span",{className:"text-[10px] text-text-tertiary ml-1",children:"(multi)"})]}),n.options&&n.options.length>0&&i.jsx("div",{className:"border-t border-border-muted/30 px-3 py-1.5",children:n.options.map((l,d)=>i.jsxs("div",{className:"flex items-baseline gap-1.5 py-0.5 text-xs",children:[i.jsx("span",{className:"text-text-secondary font-medium",children:l.label}),l.description&&i.jsxs("span",{className:"text-text-tertiary",children:["— ",l.description]})]},d))})]},s))})}},ExitPlanMode:e=>{const t=e==null?void 0:e._planContent,r=e==null?void 0:e.allowedPrompts;return t?{content:i.jsxs("div",{className:"space-y-2",children:[i.jsx("div",{className:"max-h-60 overflow-y-auto prose prose-sm prose-invert max-w-none text-text-primary",children:i.jsx(Pt,{remarkPlugins:[Bt],children:t})}),r&&r.length>0&&i.jsxs("div",{className:"space-y-1 text-xs border-t border-border-muted/30 pt-2",children:[i.jsxs("div",{className:"text-text-tertiary",children:[r.length," permission(s) requested:"]}),r.map((n,s)=>i.jsxs("div",{className:"font-mono text-text-secondary",children:[i.jsx("span",{className:"text-accent-brand",children:n.tool}),": ",n.prompt]},s))]})]})}:!r||r.length===0?{subtitle:"Ready to implement the plan",content:null}:{subtitle:`${r.length} permission(s) requested`,content:i.jsx("div",{className:"space-y-1 text-xs",children:r.map((n,s)=>i.jsxs("div",{className:"font-mono text-text-secondary",children:[i.jsx("span",{className:"text-accent-brand",children:n.tool}),": ",n.prompt]},s))})}}};function xy(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e)}catch{return""}return String(e)}function Qc(e){if(!e)return null;const t=e.description?String(e.description):void 0,n=Object.keys(e).filter(s=>s!=="description").slice(0,3).map(s=>{const l=xy(e[s]);return l?`${s}: ${l}`:""}).filter(s=>s.length>0).map(s=>s.length>120?s.slice(0,120)+"...":s);return{subtitle:t,content:n.length>0?i.jsx("div",{className:"text-xs font-mono text-text-secondary whitespace-pre-wrap",children:n.join(`
|
|
538
|
+
`)}):null}}function Sy({interruption:e}){const{sessionId:t}=gt(),r=e.sessionId||t,{resolveInterruption:n,timeline:s}=Ye(),{t:l}=ie(),[d,a]=C.useState(!1),o=C.useMemo(()=>{if(e.toolName!=="ExitPlanMode"||!e.toolCallId)return;const g=s.find(u=>u.type==="tool_call"&&u.id===e.toolCallId);return(g==null?void 0:g.type)==="tool_call"?g.planContent:void 0},[e.toolName,e.toolCallId,s]),c=C.useCallback(async g=>{if(!(!r||d)){a(!0);try{await Te().respondToInterruption(r,e.id,g,e.toolCallId),n(e.id,g)}catch(u){console.error("Approval failed:",u),a(!1)}}},[r,e.id,e.toolCallId,n,d]);if(e.resolved)return i.jsx(i.Fragment,{});let m=typeof e.toolInput=="string"?{default:e.toolInput}:e.toolInput;e.toolName==="ExitPlanMode"&&o&&(m={...m||{},_planContent:o});const b=(e.toolName&&vy[e.toolName]||Qc)(m),v=e.toolTitle||e.toolName||l("tool.defaultName"),S=e.toolName==="ExitPlanMode",x=()=>i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:()=>c("allow"),disabled:d,className:`px-4 py-[6px] bg-text-primary hover:brightness-110 disabled:opacity-50
|
|
539
|
+
disabled:cursor-not-allowed text-bg-primary text-xs font-medium rounded-lg transition-all`,children:l("interruption.yes")}),i.jsx("button",{onClick:()=>c("deny"),disabled:d,className:`px-4 py-[6px] border border-border-muted text-text-secondary hover:bg-bg-hover
|
|
540
|
+
disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:l("interruption.keepPlanning")}),i.jsx("button",{onClick:()=>c("rejectAndExitPlan"),disabled:d,className:`px-4 py-[6px] border border-border-muted text-text-tertiary hover:bg-bg-hover
|
|
541
|
+
disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:l("interruption.exitPlanMode")})]}),p=()=>i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:()=>c("allow"),disabled:d,className:`px-4 py-[6px] bg-text-primary hover:brightness-110 disabled:opacity-50
|
|
542
|
+
disabled:cursor-not-allowed text-bg-primary text-xs font-medium rounded-lg transition-all`,children:l("interruption.allow")}),i.jsx("button",{onClick:()=>c("allowAll"),disabled:d,className:`px-4 py-[6px] border border-border-muted text-text-secondary hover:bg-bg-hover
|
|
543
|
+
disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:l("interruption.allowAll")}),i.jsx("button",{onClick:()=>c("deny"),disabled:d,className:`px-4 py-[6px] border border-border-muted text-text-tertiary hover:bg-bg-hover
|
|
544
|
+
disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:l("interruption.deny")})]});return i.jsxs("div",{className:"my-1.5 rounded-xl border border-border-muted bg-bg-card shadow-sm overflow-hidden",children:[i.jsxs("div",{className:"px-3.5 pt-3.5 pb-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[S&&i.jsx(gg,{size:16,strokeWidth:1.8,className:"text-accent-brand flex-shrink-0"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-primary",children:S?l("interruption.readyToCode"):v})]}),(b==null?void 0:b.subtitle)&&!S&&i.jsx("p",{className:"text-xs text-text-tertiary mt-1.5 leading-relaxed",children:b.subtitle}),(b==null?void 0:b.content)&&i.jsx("div",{className:"mt-2",children:b.content})]}),i.jsx("div",{className:"px-3.5 py-2.5 bg-bg-secondary/30 border-t border-border-muted/40",children:S?x():p()})]})}function ky({q:e,value:t,customText:r,onChangeValue:n,onChangeCustomText:s}){const{t:l}=ie(),d=e.options.length>0,a=C.useCallback(m=>{if(e.multiSelect){const h=Array.isArray(t)?t:[];h.includes(m)?n(h.filter(b=>b!==m)):n([...h,m])}else n(m),s("")},[e.multiSelect,t,n,s]),o=C.useCallback(m=>{s(m),e.multiSelect||n(m)},[e.multiSelect,n,s]),c=C.useCallback(m=>e.multiSelect?Array.isArray(t)&&t.includes(m):t===m&&!r,[e.multiSelect,t,r]);return i.jsxs("div",{className:"space-y-2",children:[i.jsxs("p",{className:"text-[13px] text-text-primary font-medium leading-relaxed",children:[e.header&&i.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[11px] font-medium mr-1.5",children:e.header}),e.question,e.multiSelect&&i.jsxs("span",{className:"text-[10px] text-text-tertiary ml-1",children:["(",l("question.multiple"),")"]})]}),d&&i.jsx("div",{className:"space-y-1",children:e.options.map(m=>{const h=c(m.label);return i.jsx("button",{type:"button",onClick:()=>a(m.label),className:`w-full text-left px-3 py-2 rounded-lg border text-xs transition-colors ${h?"border-accent-brand bg-accent-brand/10 text-text-primary":"border-border-default bg-bg-card hover:bg-bg-hover text-text-secondary"}`,children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`flex-shrink-0 w-3.5 h-3.5 rounded-${e.multiSelect?"sm":"full"} border ${h?"border-accent-brand bg-accent-brand":"border-border-muted"} flex items-center justify-center`,children:h&&i.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:i.jsx("path",{d:"M1.5 4L3 5.5L6.5 2",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.jsxs("span",{className:"flex-1",children:[i.jsx("span",{className:"font-medium",children:m.label}),m.description&&i.jsxs("span",{className:"text-text-tertiary ml-1",children:["— ",m.description]})]})]})},m.label)})}),i.jsx("div",{className:"mt-1.5",children:i.jsx("input",{type:"text",placeholder:l("question.customAnswer"),value:r,onChange:m=>o(m.target.value),className:"w-full px-3 py-2 rounded-lg border border-border-default bg-bg-card text-text-primary text-xs placeholder:text-text-tertiary focus:outline-none focus:border-accent-brand transition-colors"})})]})}function wy({questions:e,answers:t,customTexts:r}){const{t:n}=ie();return i.jsxs("div",{className:"space-y-2",children:[i.jsx("p",{className:"text-[13px] text-text-primary font-medium",children:n("question.reviewAnswers")}),i.jsx("div",{className:"space-y-1.5",children:e.map(s=>{const l=t[s.id],d=r[s.id]||"";let a;if(s.multiSelect){const o=Array.isArray(l)?[...l]:[];d.trim()&&o.push(d.trim()),a=o.length>0?o.join(", "):"—"}else a=d.trim()||(typeof l=="string"?l:"")||"—";return i.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[s.header&&i.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[10px] font-medium flex-shrink-0 mt-0.5",children:s.header}),i.jsxs("div",{className:"flex-1",children:[i.jsx("span",{className:"text-text-secondary",children:s.question}),i.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[a!=="—"&&i.jsx(kt,{size:12,className:"text-accent-green flex-shrink-0"}),i.jsx("span",{className:`font-medium ${a==="—"?"text-text-tertiary":"text-text-primary"}`,children:a})]})]})]},s.id)})})]})}function Ey(e,t,r){const n={};for(const s of e){const l=t[s.id],d=r[s.id]||"",a=s.question;if(s.multiSelect){const o=Array.isArray(l)?[...l]:[];d.trim()&&o.push(d.trim()),n[a]=o}else n[a]=d.trim()||(typeof l=="string"?l:"")||""}return n}function Cy({question:e}){const{t}=ie(),{sessionId:r}=gt(),n=e.sessionId||r,{submitQuestion:s,cancelQuestion:l}=Ye(),[d,a]=C.useState(!1),[o,c]=C.useState(()=>{const _={};for(const E of e.questions)_[E.id]=E.multiSelect?[]:"";return _}),[m,h]=C.useState(()=>{const _={};for(const E of e.questions)_[E.id]="";return _}),b=e.questions.length>1,[v,S]=C.useState(0),x=e.questions.length,p=C.useCallback((_,E)=>{c(w=>({...w,[_]:E}))},[]),g=C.useCallback((_,E)=>{h(w=>({...w,[_]:E}))},[]),u=C.useCallback(async()=>{if(!(!n||d)){a(!0);try{const _=Ey(e.questions,o,m);e.source==="interruption"?await Te().resolveInterruption(n,e.toolCallId,"allow",_):await Te().submitQuestionAnswers(n,e.toolCallId,_),s(e.id,_)}catch(_){console.error("Question submit failed:",_),a(!1)}}},[n,e.source,e.toolCallId,e.id,e.questions,o,m,s,d]),f=C.useCallback(async()=>{if(!(!n||d)){a(!0);try{e.source==="interruption"?await Te().resolveInterruption(n,e.toolCallId,"deny"):await Te().cancelQuestionAnswers(n,e.toolCallId),l(e.id)}catch(_){console.error("Question cancel failed:",_),a(!1)}}},[n,e.source,e.toolCallId,e.id,l,d]);if(e.status!=="pending")return e.status==="answered"&&e.answers?i.jsx("div",{className:"my-1.5 rounded-xl border border-border-muted/40 bg-bg-card/50 overflow-hidden",children:i.jsxs("div",{className:"px-3.5 py-2.5",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx(an,{size:14,strokeWidth:1.8,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"text-xs font-medium text-text-tertiary",children:b?t("question.titleWithCount").replace("{count}",String(e.questions.length)):t("question.singleTitle")}),i.jsx("span",{className:"text-[10px] text-accent-green font-medium",children:t("question.answered")})]}),i.jsx("div",{className:"space-y-1",children:e.questions.map(_=>{const E=e.answers[_.question]??e.answers[_.id],w=Array.isArray(E)?E.join(", "):E||"—";return i.jsxs("div",{className:"flex items-baseline gap-1.5 text-xs",children:[_.header&&i.jsx("span",{className:"inline-block px-1 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[10px] font-medium",children:_.header}),i.jsx("span",{className:"text-text-primary font-medium",children:w})]},_.id)})})]})}):i.jsx("div",{className:"my-1.5 rounded-xl border border-border-muted/40 bg-bg-card/50 overflow-hidden",children:i.jsxs("div",{className:"px-3.5 py-2.5 flex items-center gap-2",children:[i.jsx(an,{size:14,strokeWidth:1.8,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"text-xs text-text-tertiary",children:t("question.cancelled")})]})});const y=e.questions[b?Math.min(v,e.questions.length-1):0],k=b&&v===x;return i.jsxs("div",{className:"my-1.5 rounded-xl border border-accent-brand/50 bg-bg-card shadow-sm overflow-hidden animate-[borderGlow_2s_ease-in-out_infinite]",children:[i.jsxs("div",{className:"px-3.5 pt-3.5 pb-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(an,{size:16,strokeWidth:1.8,className:"text-accent-brand flex-shrink-0"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-primary",children:b?t("question.titleWithCount").replace("{count}",String(e.questions.length)):t("question.singleTitle")})]}),b&&i.jsxs("div",{className:"flex items-center gap-1 mt-2.5 mb-2 overflow-x-auto",children:[e.questions.map((_,E)=>i.jsx("button",{type:"button",onClick:()=>S(E),className:`px-2.5 py-1 rounded-md text-[11px] font-medium whitespace-nowrap transition-colors ${v===E?"bg-accent-brand text-white":"bg-bg-secondary/50 text-text-secondary hover:text-text-primary"}`,children:_.header||`Q${E+1}`},_.id)),i.jsx("button",{type:"button",onClick:()=>S(x),className:`px-2.5 py-1 rounded-md text-[11px] font-medium whitespace-nowrap transition-colors ${k?"bg-accent-brand text-white":"bg-bg-secondary/50 text-text-secondary hover:text-text-primary"}`,children:t("question.reviewTab")})]}),i.jsx("div",{className:"mt-2",children:k?i.jsx(wy,{questions:e.questions,answers:o,customTexts:m}):i.jsx(ky,{q:y,value:o[y.id]??"",customText:m[y.id]??"",onChangeValue:_=>p(y.id,_),onChangeCustomText:_=>g(y.id,_)})})]}),i.jsx("div",{className:"px-3.5 py-2.5 bg-bg-secondary/30 border-t border-border-muted/40",children:i.jsxs("div",{className:"flex items-center gap-2",children:[b&&!k?i.jsx("button",{type:"button",onClick:()=>S(_=>Math.min(_+1,x)),className:"px-4 py-[6px] bg-accent-brand hover:brightness-110 text-white text-xs font-medium rounded-lg transition-all",children:t("question.next")}):i.jsx("button",{type:"button",onClick:u,disabled:d,className:"px-4 py-[6px] bg-accent-brand hover:brightness-110 disabled:opacity-50 disabled:cursor-not-allowed text-white text-xs font-medium rounded-lg transition-all",children:t("question.submit")}),i.jsx("button",{type:"button",onClick:f,disabled:d,className:"px-4 py-[6px] border border-border-default bg-bg-card hover:bg-bg-hover disabled:opacity-50 disabled:cursor-not-allowed text-text-tertiary text-xs font-medium rounded-lg transition-colors",children:t("question.cancel")})]})})]})}function ed(e){try{const t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.text=="string")return t.text;if(Array.isArray(t)){const r=t.filter(n=>n&&typeof n.text=="string").map(n=>n.text);if(r.length>0)return r.join(`
|
|
545
|
+
`)}}catch{}return e}function kr(e){return e.replace(/\\r\\n/g,`
|
|
546
|
+
`).replace(/\\n/g,`
|
|
547
|
+
`)}function Xe(e){if(typeof e=="string"){const t=ed(e);return kr(t)}if(!e)return"";try{if(typeof e=="object"&&e!==null){const t=e,r=Object.keys(t);if(r.length===1&&typeof t[r[0]]=="string"){const n=t[r[0]],s=ed(n);return kr(s)}if(typeof t.text=="string"&&t.type==="text")return kr(t.text)}if(Array.isArray(e)){const t=e.filter(r=>r&&typeof r.text=="string").map(r=>r.text);if(t.length>0)return kr(t.join(`
|
|
548
|
+
`))}return JSON.stringify(e,null,2)}catch{return String(e)}}const Fe={size:14,strokeWidth:1.5},Pe="text-text-tertiary flex-shrink-0";function Ty(){return i.jsx(et,{...Fe,className:Pe})}function Ny(){return i.jsx(Ym,{...Fe,className:Pe})}function Ay(){return i.jsx(bu,{...Fe,className:Pe})}function Yu(){return i.jsx(ct,{...Fe,className:Pe})}function Bn(){return i.jsx(au,{...Fe,className:Pe})}function Xu(){return i.jsx(Sg,{...Fe,className:Pe})}function td(){return i.jsx(yu,{...Fe,className:Pe})}function rd(){return i.jsx(du,{...Fe,className:Pe})}function Ry(){return i.jsx(yg,{...Fe,className:Pe})}function Iy(){return i.jsx($h,{...Fe,className:Pe})}function Ly(){return i.jsx(fm,{...Fe,className:Pe})}function Oy(){return i.jsx(pu,{...Fe,className:Pe})}function $y(){return i.jsx(Nh,{...Fe,className:Pe})}function Dy(){return i.jsx(Rm,{...Fe,className:Pe})}function My(){return i.jsx(iu,{...Fe,className:Pe})}function nd(){return i.jsx(lu,{...Fe,className:Pe})}function Zu({status:e}){return e==="running"?i.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-text-tertiary animate-pulse"}):e==="failed"?i.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-accent-red"}):e==="completed"?i.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-accent-green"}):null}function jy(e){if(!e||!Array.isArray(e))return null;const t=e.find(r=>r.type==="diff");return!t||!t.path?null:{path:t.path,oldText:t.oldText??null,newText:t.newText??""}}function ut(e){return`/api/v1/files/download?path=${encodeURIComponent(e)}`}function Un(e){const t=[],r=n=>{if(n){if(typeof n=="object"&&n.type==="image_blob_ref"&&n.blob_path){t.push(n);return}if(Array.isArray(n)){for(const s of n)r(s);return}if(typeof n=="string"&&n.includes("image_blob_ref"))try{r(JSON.parse(n))}catch{}}};return r(e),t}function zn(e){var t,r,n,s,l;if(e.content&&Array.isArray(e.content)){for(const d of e.content){const a=d;if(a.type==="content"&&((t=a.content)==null?void 0:t.type)==="image"&&((r=a.content)!=null&&r.data))return`data:${a.content.mimeType||"image/png"};base64,${a.content.data}`;if(a.type==="image"&&a.data)return`data:${a.mimeType||a.mediaType||"image/png"};base64,${a.data}`;if(a.type==="image_url"&&((n=a.image_url)!=null&&n.url))return a.image_url.url;if(a.type==="image_blob_ref"&&a.blob_path)return ut(a.blob_path)}for(const d of e.content){const a=d,o=a.type==="content"&&((s=a.content)==null?void 0:s.type)==="text"?a.content.text:null;if(o){const c=Un(o);if(c.length>0)return ut(c[0].blob_path)}}}if(e.result&&typeof e.result=="object"){const d=e.result;if(d.type==="image"&&d.data)return`data:${d.mimeType||d.mediaType||"image/png"};base64,${d.data}`;if(d.type==="image_url"&&((l=d.image_url)!=null&&l.url))return d.image_url.url;if(d.type==="image_blob_ref"&&d.blob_path)return ut(d.blob_path)}if(e.result){const d=Un(e.result);if(d.length>0)return ut(d[0].blob_path)}return null}function id(e){const t=Xe(e);if(!t)return null;const r=t.match(/Full path:\s*(.+)/);if(r)return r[1].trim();const n=t.match(/file:\/\/([^\s\n]+)/);if(n)return n[1];const s=Un(e);return s.length>0?s[0].blob_path:null}function Fy(e){const t=e.input;if(t!=null&&t.description&&typeof t.description=="string")return t.description}function ye(e){return e.input||{}}function He(e,t){return e.length<=t?e:e.slice(0,t)+"..."}function Py(e,t=[]){const r=new Set(["description","activeForm",...t]),n=[];for(const[s,l]of Object.entries(e))r.has(s)||l===void 0||l===null||typeof l=="string"&&l.length>0&&n.push(l);return n.length>0?He(n.join(" · "),80):""}function By(e){if(e==null)return[];const t=Xe(e);if(!t)return[];try{const r=JSON.parse(t);if(Array.isArray(r))return r.map(n=>typeof n=="string"?n:JSON.stringify(n)).filter(Boolean)}catch{}return t.split(`
|
|
549
|
+
`).filter(Boolean)}function Uy(e){const t=Xe(e);if(!t)return"";const r=t.split(`
|
|
550
|
+
`),n=[];let s=!1,l="";for(const d of r){if(d.startsWith("Command: ")){s=!1,l="command";continue}if(d.startsWith("Stdout: ")||d==="Stdout:"){s=!0,l="stdout";const a=d.slice(8);a&&a!=="(empty)"&&n.push(a);continue}if(d.startsWith("Stderr: ")||d==="Stderr:"){s=!0,l="stderr";const a=d.slice(8);a&&a!=="(empty)"&&n.push(a);continue}if(d.startsWith("Exit Code: ")||d.startsWith("Signal: ")){s=!1,l="";continue}s&&(l==="stdout"||l==="stderr")&&n.push(d)}return n.length===0&&t.length>0&&!t.startsWith("Command: ")?t:n.join(`
|
|
551
|
+
`).trim()}function zy({result:e}){const{t}=ie(),[r,n]=C.useState(!1),s=By(e);if(s.length===0)return null;const l=10,d=r?s:s.slice(0,l),a=s.length>l;return i.jsxs("div",{className:"rounded-md bg-bg-secondary overflow-hidden",children:[i.jsx("div",{className:"px-2.5 py-1 text-[11px] text-text-tertiary border-b border-border-muted/30",children:t("tool.itemsCount").replace("{count}",String(s.length))}),i.jsx("div",{className:"max-h-64 overflow-y-auto",children:d.map((o,c)=>i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-0.5 text-xs font-mono text-text-secondary hover:bg-bg-hover/50",children:[i.jsx(et,{size:10,className:"text-text-tertiary flex-shrink-0"}),i.jsx(ft,{path:o,className:"truncate"})]},c))}),a&&!r&&i.jsx("button",{onClick:()=>n(!0),className:"w-full px-2.5 py-1 text-[11px] text-accent-brand hover:bg-bg-hover/30 border-t border-border-muted/30 cursor-pointer",children:t("tool.showAllItems").replace("{count}",String(s.length))})]})}function Je({result:e,maxLines:t=8}){const{t:r}=ie(),n=Xe(e);if(!n)return null;const s=n.split(`
|
|
552
|
+
`),l=s.length>t,d=l?s.slice(0,t).join(`
|
|
553
|
+
`):n;return i.jsxs("pre",{className:"text-text-secondary font-mono text-xs px-2.5 py-1.5 whitespace-pre-wrap break-words max-h-60 overflow-y-auto bg-bg-secondary/40 rounded-md",children:[d,l&&i.jsx("span",{className:"text-text-tertiary",children:`
|
|
554
|
+
${r("tool.moreLinesCount").replace("{count}",String(s.length-t))}`})]})}function Qt({src:e,alt:t}){const r=e.startsWith("file://")?ut(e.replace("file://","")):e.startsWith("/")&&!e.startsWith("/api/")?ut(e):e;return i.jsx("div",{className:"rounded-md overflow-hidden bg-bg-secondary/40 p-2",children:i.jsx("img",{src:r,alt:t||"Image",className:"max-w-full max-h-64 rounded object-contain",loading:"lazy"})})}const sd={read:{Icon:Ty,render:e=>{const t=zn(e);if(t){const n=ye(e),s=n.file_path?String(n.file_path).split("/").pop():void 0;return i.jsx(Qt,{src:t,alt:s})}if(e.result===void 0)return null;const r=Xe(e.result);return r?i.jsx("pre",{className:"text-text-secondary font-mono text-xs px-2.5 py-1.5 whitespace-pre overflow-x-auto max-h-64 overflow-y-auto bg-bg-secondary/40 rounded-md",children:r}):null}},edit:{Icon:Ny,render:e=>{const t=jy(e.content);if(t){const r=e.status==="failed";return i.jsxs("div",{className:r?"opacity-40":"",children:[i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-0.5 text-xs font-mono text-text-tertiary",children:[i.jsx(et,{size:10,className:"flex-shrink-0"}),i.jsx(ft,{path:t.path,className:"truncate"})]}),i.jsx(ir,{path:t.path,oldText:t.oldText,newText:t.newText,maxHeight:"max-h-64"})]})}return e.result!==void 0?i.jsx(Je,{result:e.result}):null}},execute:{Icon:Ay,render:e=>{const t=ye(e),n=(e.result!==void 0?Uy(e.result):"")||(e.result!==void 0?Xe(e.result):"");return i.jsxs("div",{className:"rounded-md overflow-hidden bg-bg-secondary/40",children:[!!t.command&&i.jsxs("pre",{className:"px-2.5 py-1.5 font-mono text-xs whitespace-pre overflow-x-auto text-text-primary",children:[i.jsx("span",{className:"text-text-tertiary select-none",children:"$ "}),String(t.command)]}),n&&i.jsx("pre",{className:"text-text-secondary font-mono text-xs px-2.5 py-1.5 whitespace-pre-wrap break-words max-h-60 overflow-y-auto border-t border-border-muted/30",children:n})]})}},search:{Icon:Yu,render:e=>i.jsx(zy,{result:e.result})},fetch:{Icon:Bn,render:e=>{const t=ye(e);return!t.url&&!t.query?null:i.jsxs("div",{className:"text-xs font-mono px-1 space-y-0.5",children:[!!t.url&&i.jsx("div",{className:"text-text-secondary truncate",children:String(t.url)}),!!t.prompt&&i.jsx("div",{className:"text-text-tertiary line-clamp-2",children:String(t.prompt)}),!!t.query&&i.jsx("div",{className:"text-text-secondary",children:String(t.query)})]})}}},ad={ImageGen:{Icon:nd,getTitle:(e,t)=>t("tool.imageGen"),getSummary:e=>{const t=ye(e);return t.prompt?He(String(t.prompt),60):void 0},render:(e,t)=>{const r=zn(e);if(r)return i.jsx(Qt,{src:r,alt:t("tool.generatedImage")});const n=id(e.result);return n?i.jsx(Qt,{src:ut(n),alt:t("tool.generatedImage")}):e.result!==void 0?i.jsx(Je,{result:e.result,maxLines:6}):null}},ImageEdit:{Icon:nd,getTitle:(e,t)=>t("tool.imageEdit"),getSummary:e=>{const t=ye(e);return t.prompt?He(String(t.prompt),60):void 0},render:(e,t)=>{const r=zn(e);if(r)return i.jsx(Qt,{src:r,alt:t("tool.editedImage")});const n=id(e.result);return n?i.jsx(Qt,{src:ut(n),alt:t("tool.editedImage")}):e.result!==void 0?i.jsx(Je,{result:e.result,maxLines:6}):null}},ToolSearch:{Icon:Yu,getTitle:(e,t)=>t("tool.toolSearch"),getSummary:e=>{const t=ye(e);if(t.query)return String(t.query);if(t.tool_names)return`[${String(t.tool_names)}]`},render:e=>e.result===void 0?null:i.jsx(Je,{result:e.result,maxLines:12})},TeamCreate:{Icon:td,getTitle:(e,t)=>t("tool.teamCreate"),getSummary:e=>{const t=ye(e),r=t.name?String(t.name):void 0,n=t.description?String(t.description):void 0;return r&&n?`${r} · ${n}`:r||n},render:e=>{if(e.result===void 0)return null;const t=Xe(e.result);return t?i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 bg-bg-secondary/40 rounded-md text-xs",children:[i.jsx(eu,{size:12,className:"text-accent-green flex-shrink-0"}),i.jsx("span",{className:"text-text-secondary",children:He(t,120)})]}):null}},TeamDelete:{Icon:td,getTitle:(e,t)=>t("tool.teamDelete"),getSummary:e=>{const t=ye(e);return t.team_name?String(t.team_name):void 0}},TaskCreate:{Icon:rd,getTitle:(e,t)=>t("tool.taskCreate"),getSummary:e=>{const t=ye(e);return t.subject?He(String(t.subject),80):void 0}},TaskUpdate:{Icon:Iy,getTitle:(e,t)=>t("tool.taskUpdate"),getSummary:e=>{const t=ye(e),r=[];return t.taskId&&r.push(`#${t.taskId}`),t.status&&r.push(String(t.status)),t.subject&&r.push(He(String(t.subject),40)),r.join(" · ")||void 0}},TaskList:{Icon:rd,getTitle:(e,t)=>t("tool.taskList")},TaskGet:{Icon:Ly,getTitle:(e,t)=>t("tool.taskGet"),getSummary:e=>{const t=ye(e);return t.taskId?`#${t.taskId}`:void 0},render:e=>e.result===void 0?null:i.jsx(Je,{result:e.result,maxLines:8})},SendMessage:{Icon:Ry,getTitle:(e,t)=>{const r=ye(e),n=String(r.type||"message"),s=r.recipient?String(r.recipient):void 0;switch(n){case"message":return s?`@${s}`:t("tool.sendMessage");case"broadcast":return"@team";case"shutdown_request":return s?`@${s} · shutdown`:t("tool.shutdown");case"shutdown_response":return r.approve!==!1?t("tool.taskCompleted"):t("tool.shutdownRejected");case"plan_approval_response":return s?`@${s} · ${r.approve!==!1?t("tool.approved"):t("tool.rejected")}`:t("tool.planResponse");default:return s?`@${s}`:n}},getSummary:e=>{const t=ye(e);return t.summary?He(String(t.summary),80):void 0},render:(e,t)=>{if(e.result===void 0)return null;let r;try{const s=e.result,l=typeof s=="string"?s:String(s&&typeof s=="object"?s.text??s.output??JSON.stringify(s):s);r=JSON.parse(l)}catch{try{r=typeof e.result=="object"?e.result:void 0}catch{}}if(r!=null&&r.success||r!=null&&r.routing)return i.jsx("div",{className:"text-xs text-text-tertiary pl-2.5 py-0.5",children:t("team.delivered")});const n=Xe(e.result);return n?i.jsx("div",{className:"text-xs text-text-secondary px-2.5 py-1.5 bg-bg-secondary/40 rounded-md",children:He(n,200)}):null}},WebSearch:{Icon:Bn,getTitle:(e,t)=>t("tool.webSearch"),getSummary:e=>{const t=ye(e);return t.query?He(String(t.query),80):void 0},render:e=>e.result===void 0?null:i.jsx(Je,{result:e.result,maxLines:10})},WebFetch:{Icon:Bn,getTitle:(e,t)=>t("tool.webFetch"),getSummary:e=>{const t=ye(e);return t.url?He(String(t.url),60):void 0},render:e=>{const t=ye(e);return i.jsxs("div",{className:"text-xs font-mono px-1 space-y-0.5",children:[!!t.url&&i.jsx("div",{className:"text-text-secondary truncate",children:String(t.url)}),!!t.prompt&&i.jsx("div",{className:"text-text-tertiary line-clamp-2",children:String(t.prompt)})]})}},SaveMemory:{Icon:Oy,getTitle:(e,t)=>t("tool.saveMemory"),getSummary:e=>{const t=ye(e);return t.content?He(String(t.content),60):void 0}},AskUserQuestion:{Icon:$y,getTitle:(e,t)=>t("tool.askUserQuestion"),getSummary:e=>{const r=ye(e).questions;if(!r||r.length===0)return;if(r.length===1)return r[0].question?He(String(r[0].question),80):r[0].header;const n=r.map(s=>s.header||"?").join(", ");return`${r.length} questions: ${n}`},render:(e,t)=>{const n=ye(e).questions;return!n||n.length===0?e.result!==void 0?i.jsx(Je,{result:e.result,maxLines:6}):null:i.jsxs("div",{className:"space-y-2",children:[n.map((s,l)=>i.jsxs("div",{className:"rounded-md bg-bg-secondary/40 overflow-hidden",children:[i.jsxs("div",{className:"px-2.5 py-1.5 text-xs",children:[s.header&&i.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[11px] font-medium mr-1.5",children:s.header}),i.jsx("span",{className:"text-text-primary font-medium",children:s.question}),s.multiSelect&&i.jsxs("span",{className:"text-[10px] text-text-tertiary ml-1",children:["(",t("question.multiLabel"),")"]})]}),s.options&&s.options.length>0&&i.jsx("div",{className:"border-t border-border-muted/30 px-2.5 py-1",children:s.options.map((d,a)=>i.jsxs("div",{className:"flex items-baseline gap-1.5 py-0.5 text-xs",children:[i.jsx("span",{className:"text-text-secondary font-medium",children:d.label}),d.description&&i.jsxs("span",{className:"text-text-tertiary",children:["— ",He(String(d.description),60)]})]},a))})]},l)),e.result!==void 0&&i.jsx(Je,{result:e.result,maxLines:4})]})}},EnterPlanMode:{Icon:Dy,getTitle:(e,t)=>t("tool.enterPlanMode"),render:e=>{if(e.result===void 0)return null;const t=Xe(e.result);if(!t)return null;const r=e.result,n=r!=null&&r.planFilePath?String(r.planFilePath):void 0;return i.jsxs("div",{className:"text-xs px-2.5 py-1.5 bg-bg-secondary/40 rounded-md space-y-1",children:[n&&i.jsxs("div",{className:"flex items-center gap-1.5 text-text-tertiary",children:[i.jsx(iu,{size:10,className:"flex-shrink-0"}),i.jsx(ft,{path:n,className:"font-mono truncate"})]}),!n&&t&&i.jsx("div",{className:"text-text-secondary",children:He(t,200)})]})}},ExitPlanMode:{Icon:My,getTitle:(e,t)=>t("tool.exitPlanMode"),getSummary:(e,t)=>{const n=ye(e).allowedPrompts;if(n&&n.length>0)return t("tool.permissionsCount").replace("{count}",String(n.length))},render:(e,t)=>{const n=ye(e).allowedPrompts,s=n&&n.length>0,l=e.result!==void 0;return!s&&!l?null:i.jsxs("div",{className:"space-y-1",children:[s&&i.jsxs("div",{className:"rounded-md bg-bg-secondary/40 px-2.5 py-1.5",children:[i.jsx("div",{className:"text-[11px] text-text-tertiary mb-1",children:t("tool.allowedActions")}),n.map((d,a)=>i.jsxs("div",{className:"flex items-center gap-1.5 text-xs py-0.5",children:[i.jsx(bu,{size:10,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"text-text-secondary",children:d.prompt})]},a))]}),l&&i.jsx(Je,{result:e.result,maxLines:6})]})}},Skill:{Icon:Xu,getTitle:(e,t)=>t("tool.skill"),getSummary:e=>{const t=ye(e);return t.skill?String(t.skill):t.command?String(t.command):void 0}}};function Hy(e){return e.toolName&&ad[e.toolName]?ad[e.toolName]:e.kind&&sd[e.kind]?sd[e.kind]:Ju}function Gy(e){return!!(e==null||e===""||Array.isArray(e)&&e.length===0||typeof e=="object"&&Object.keys(e).length===0)}const Ju={Icon:Xu,getSummary:e=>{const t=ye(e),r=Py(t);return r||void 0},render:e=>{const t=ye(e),r=Object.keys(t).length>0,n=e.result,s=n!==void 0&&!Gy(n)&&Xe(n).length>0;return!r&&!s?null:i.jsxs("div",{className:"space-y-1 max-h-64 overflow-y-auto",children:[r&&i.jsx("pre",{className:"text-text-tertiary font-mono text-xs px-2.5 py-1.5 whitespace-pre-wrap break-words bg-bg-secondary/40 rounded-md",children:JSON.stringify(t,null,2)}),s&&i.jsx("pre",{className:"text-text-secondary font-mono text-xs px-2.5 py-1.5 whitespace-pre-wrap break-words bg-bg-secondary/40 rounded-md",children:Xe(n)})]})}},Qu="subagent-collapse-pref";function od(){try{return localStorage.getItem(Qu)==="true"}catch{return!1}}function Wy(e){try{localStorage.setItem(Qu,String(e))}catch{}}function qy(){return i.jsxs("span",{className:"inline-flex items-center gap-0.5 ml-1 align-middle",children:[i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0s_infinite]"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0.2s_infinite]"}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0.4s_infinite]"})]})}function ld({entry:e,isActive:t}){const r=e.streaming&&t,n=e.content&&e.content.trim().length>0;return!n&&!r?i.jsx(i.Fragment,{}):i.jsxs("div",{className:"markdown-body text-chat text-text-primary py-0.5",children:[n&&i.jsx(Pt,{remarkPlugins:[Bt],children:e.content}),r&&i.jsx(qy,{})]})}function Vy(e){return C.useMemo(()=>{const t=e.subagentTimeline||[];let r=0,n=0;for(const s of t)s.type==="tool_call_ref"?r++:s.type==="message"&&n++;return{toolCount:r,messageCount:n}},[e.subagentTimeline])}function Ky({toolCall:e}){var g,u,f,y,k;const{t}=ie(),r=Ye(_=>_.childToolCalls),n=e.subagentTimeline||[],s=e.status==="running",l=e.status==="failed",d=!!((g=e.subagent)!=null&&g.memberName),a=Vy(e),[o,c]=C.useState(()=>!s&&od());C.useEffect(()=>{c(s?!1:od())},[s]);const m=C.useCallback(()=>{s||c(_=>{const E=!_;return Wy(E),E})},[s]),h=(u=e.subagent)!=null&&u.memberName?`@${e.subagent.memberName}`:((f=e.subagent)==null?void 0:f.type)||t("tool.agent"),b=((y=e.subagent)==null?void 0:y.description)||"",v=(k=e.subagent)==null?void 0:k.isBackground,S=n.length>0,x=S&&!o,p=C.useMemo(()=>{if(s)return null;const _=[];return l?_.push(t("tool.failed")):e.status==="completed"&&_.push(t("tool.completed")),a.toolCount>0&&_.push(t("tool.toolsCount").replace("{count}",String(a.toolCount))),_.length>0?_.join(" · "):null},[s,l,e.status,a.toolCount,t]);return d?i.jsxs("div",{className:`mb-1 rounded-lg border transition-colors ${s?"border-accent-purple/30 bg-accent-purple/5":l?"border-accent-red/20 bg-accent-red/5":"border-border-muted/50 bg-bg-secondary/30"}`,children:[i.jsxs("div",{className:`flex items-center gap-1.5 px-3 py-2 ${S?"cursor-pointer":""}`,onClick:S?m:void 0,children:[i.jsx("div",{className:`w-5 h-5 rounded-full bg-accent-purple/20 flex items-center justify-center flex-shrink-0 ${s?"animate-pulse":""}`,children:i.jsx(An,{size:12,className:"text-accent-purple"})}),i.jsx("span",{className:"text-[13px] font-semibold text-accent-purple",children:h}),b&&i.jsxs("span",{className:"text-xs text-text-tertiary truncate",children:["· ",b]}),i.jsx("span",{className:"flex-1"}),p&&i.jsx("span",{className:"text-[11px] text-text-tertiary",children:p}),s&&i.jsx(ve,{size:12,className:"text-accent-purple animate-spin"}),l&&i.jsx(Rn,{size:12,className:"text-accent-red"}),!s&&!l&&e.status==="completed"&&i.jsx(kt,{size:12,className:"text-accent-green"}),S&&!s&&(o?i.jsx(De,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}):i.jsx(it,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}))]}),x&&i.jsx("div",{className:"px-3 pb-2 pt-0 ml-2.5 pl-3 border-l border-accent-purple/20",children:n.map(_=>{if(_.type==="message")return i.jsx(ld,{entry:_,isActive:s},_.id);const E=r.get(_.toolCallId);return E?E.toolName==="SendMessage"?i.jsx(cd,{toolCall:E},E.id):i.jsx(Hn,{toolCall:E},E.id):null})})]}):i.jsxs("div",{className:"mb-0.5",children:[i.jsxs("div",{className:`flex items-center gap-1.5 py-0.5 ${S?"cursor-pointer hover:bg-bg-hover/30 rounded-md -mx-1 px-1":""}`,onClick:S?m:void 0,children:[i.jsx("div",{className:`w-5 h-5 rounded-full bg-accent-purple/20 flex items-center justify-center flex-shrink-0 ${s?"animate-pulse":""}`,children:i.jsx(An,{size:12,className:"text-accent-purple"})}),i.jsx("span",{className:"text-[13px] font-semibold text-accent-purple",children:h}),b&&i.jsxs("span",{className:"text-xs text-text-tertiary truncate",children:["· ",b]}),v&&i.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-bg-secondary text-text-tertiary",children:t("tool.background")}),i.jsx("span",{className:"flex-1"}),p&&i.jsx("span",{className:"text-[11px] text-text-tertiary",children:p}),s&&i.jsx(ve,{size:12,className:"text-accent-purple animate-spin"}),l&&i.jsx(Rn,{size:12,className:"text-accent-red"}),S&&!s&&(o?i.jsx(De,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}):i.jsx(it,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}))]}),x&&i.jsx("div",{className:"ml-2.5 pl-3 border-l border-accent-purple/25",children:n.map(_=>{if(_.type==="message")return i.jsx(ld,{entry:_,isActive:s},_.id);const E=r.get(_.toolCallId);return E?E.toolName==="SendMessage"?i.jsx(cd,{toolCall:E},E.id):i.jsx(Hn,{toolCall:E},E.id):null})})]})}function cd({toolCall:e}){const{t}=ie(),r=ye(e),n=String(r.type||"message"),s=r.recipient?String(r.recipient):void 0,l=r.summary?String(r.summary):void 0,d=e.status==="completed";let a="";switch(n){case"message":a=s?`@${s}`:"message";break;case"broadcast":a="@team";break;case"shutdown_request":a=s?`@${s} · shutdown`:"shutdown";break;case"shutdown_response":a=r.approve!==!1?t("tool.taskCompleted"):t("tool.shutdownRejected");break;case"plan_approval_response":a=s?`@${s} · ${r.approve!==!1?t("tool.approved"):t("tool.rejected")}`:t("tool.planResponse");break;default:a=s?`@${s}`:n}return i.jsxs("div",{className:"flex items-center gap-1.5 py-0.5 text-xs text-text-tertiary",children:[i.jsx("span",{className:"font-medium text-accent-purple",children:a}),l&&i.jsxs("span",{className:"truncate",children:["· ",l]}),d&&i.jsxs("span",{className:"text-text-tertiary/60",children:["· ",t("team.delivered")]}),!d&&i.jsx(Zu,{status:e.status})]})}function Hn({toolCall:e}){var v,S;const{t}=ie(),r=Hy(e),[n,s]=C.useState(()=>e.status==="failed");if(C.useEffect(()=>{e.status==="failed"&&s(!0)},[e.status]),e.subagent)return i.jsx(Ky,{toolCall:e});const l=r.Icon,d=e.status==="completed"||e.status==="failed",a=!!r.render||e.result!==void 0&&r===Ju,o=(v=r.getTitle)==null?void 0:v.call(r,e,t),c=Fy(e),m=o||(e.kind==="execute"&&c?c:void 0)||e.name||e.toolName||t("tool.defaultName"),b=((S=r.getSummary)==null?void 0:S.call(r,e,t))||(e.kind!=="execute"?c:void 0);return i.jsxs("div",{className:"mb-0.5",children:[i.jsxs("button",{onClick:()=>a&&s(!n),className:"flex items-center gap-1.5 py-0.5 text-left w-full rounded-md transition-colors hover:bg-bg-hover/50 cursor-pointer",children:[i.jsx(l,{}),i.jsx("span",{className:"text-[13px] text-text-secondary font-medium truncate",children:m}),b&&i.jsx(py,{text:b,className:"text-xs text-text-tertiary truncate flex-1"}),!b&&i.jsx("span",{className:"flex-1"}),i.jsx(Zu,{status:e.status}),a&&i.jsx(De,{size:12,strokeWidth:2,className:`text-text-tertiary flex-shrink-0 transition-transform duration-200 ${n?"rotate-90":""}`})]}),a&&n&&i.jsx(Yy,{renderer:r,toolCall:e,t,isFinished:d})]})}function Yy({renderer:e,toolCall:t,t:r,isFinished:n}){const s=e.render?e.render(t,r):i.jsx(Je,{result:t.result});return i.jsx("div",{className:"mt-0.5 mb-1",children:i.jsx("div",{className:n?"empty-result-container":"",children:s})})}const Xy=new Set(["TaskCreate","TaskUpdate","TaskList","TaskGet","AskUserQuestion"]);function ep({entries:e}){const t=e.filter(r=>r.type==="tool_call"?!Xy.has(r.toolName):r.type==="interruption"||r.type==="question");return t.length===0?null:i.jsx("div",{className:"flex flex-col gap-1 mb-2 w-full",children:t.map(r=>r.type==="tool_call"?i.jsx(Hn,{toolCall:r},r.id):r.type==="interruption"?i.jsx(Sy,{interruption:r},r.id):r.type==="question"?i.jsx(Cy,{question:r},r.id):null)})}function Zy(e){const t=e.match(/<command-name>(\/[^<]+)<\/command-name>/);if(!t)return null;const r=t[1];if(r==="/clear")return"";const n=e.match(/<command-args>([^<]*)<\/command-args>/),s=n?n[1]:"",l=e.match(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/),d=l?l[1].trim():"";let a=r;return s&&(a+=" "+s),d&&(a+=`
|
|
555
|
+
`+d),a}function Jy(e){return e.replace(/<system-reminder[\s\S]*?<\/system-reminder>\s*/g,"").replace(/<command-message>[\s\S]*?<\/command-message>\s*/g,"").replace(/<command-name>[\s\S]*?<\/command-name>\s*/g,"").replace(/<command-args>[\s\S]*?<\/command-args>\s*/g,"").replace(/<local-command-stdout>[\s\S]*?<\/local-command-stdout>\s*/g,"").replace(/<user-prompt-submit-hook>[\s\S]*?<\/user-prompt-submit-hook>\s*/g,"").replace(/<user_query>\s*/g,"").replace(/<\/user_query>\s*/g,"").trim()}function tp(e){const t=e.match(/<teammate-message\s+teammate_id="([^"]+)"(?:\s+summary="([^"]*)")?[^>]*>\n?([\s\S]*?)\n?<\/teammate-message>/);if(t)return{from:t[1],summary:t[2],content:t[3].trim()}}function Qy(e){try{const t=JSON.parse(e);if(t&&typeof t=="object"&&t.type)return t.type==="shutdown_response"?t.reason||`Shutdown ${t.approve!==!1?"accepted":"rejected"}`:t.type==="shutdown_request"?t.reason||"Shutdown requested":t.reason||t.summary||e}catch{}return e}function rp({msg:e}){var b;const[t,r]=C.useState(!1),{t:n}=ie(),l=(b=Be(v=>v.members).find(v=>v.name===e.from))==null?void 0:b.color,d=si(l),a=Qy(e.content),o=a.split(`
|
|
556
|
+
`),c=8,m=o.length>c,h=m&&!t?o.slice(0,c).join(`
|
|
557
|
+
`):a;return i.jsxs("div",{className:"mb-4",children:[i.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[i.jsx("span",{className:"text-[13px] font-semibold",style:{color:d},children:e.from}),e.summary&&i.jsxs("span",{className:"text-[12px] text-text-tertiary",children:["· ",e.summary]})]}),i.jsxs("div",{className:"ml-2 pl-3 border-l-2",style:{borderColor:`${d}33`},children:[i.jsx("div",{className:"prose prose-sm prose-invert max-w-none text-text-secondary text-[13px] [&_p]:my-1 [&_pre]:my-2 [&_code]:text-[12px] [&_h1]:text-[15px] [&_h2]:text-[14px] [&_h3]:text-[13px] [&_ul]:my-1 [&_ol]:my-1 [&_li]:my-0.5",children:i.jsx(Pt,{remarkPlugins:[Bt],children:h})}),m&&i.jsx("button",{type:"button",onClick:()=>r(!t),className:"text-[11px] text-text-tertiary hover:text-text-secondary mt-1 transition-colors",children:t?n("team.showLess"):n("team.moreLines").replace("{count}",String(o.length-c))})]})]})}function e_(e){if(!e)return!0;const t=e.trimStart();return!!/^\/clear\b/.test(t)}function np(e){const t=[];for(const r of e)if(r.type==="message"){const n=r;if(n.isCompactInternal){const s=t[t.length-1];s&&s.kind==="compact_group"?s.entries.push(n):t.push({kind:"compact_group",entries:[n]})}else if(n.role==="user"&&n.channel)t.push({kind:"channel_incoming",entry:n});else if(n.role==="user"){if(e_(n.content))continue;t.push({kind:"user",entry:n})}else t.push({kind:"assistant_message",entry:n})}else{const n=t[t.length-1];n&&n.kind==="assistant_tools"?n.entries.push(r):t.push({kind:"assistant_tools",entries:[r]})}return t}function dd(e){var t;switch(e.kind){case"user":case"assistant_message":case"channel_incoming":return e.entry.timestamp;case"compact_group":return(t=e.entries[0])==null?void 0:t.timestamp;case"assistant_tools":return}}function t_(e,t=150){return e.scrollHeight-e.scrollTop-e.clientHeight<t}function ud(){const{t:e}=ie(),r=tt(n=>n.resolved)==="dark"?qd:Vd;return i.jsxs("div",{className:"empty-state",children:[i.jsx("div",{className:"empty-state-logo",children:i.jsx("img",{src:r,alt:"CodeBuddy"})}),i.jsx("h1",{className:"empty-state-slogan",children:e("chat.empty.slogan")})]})}function r_({onClickCloseBottomSheet:e}={}){const{timeline:t,isAgentRunning:r,stopReason:n,errorMessage:s,historyLoading:l,agentPhaseLabel:d}=Ye(),a=C.useRef(null),o=C.useRef(null),{t:c,resolved:m}=ie(),[h,b]=C.useState(null);C.useEffect(()=>{if(!h)return;const A=M=>{M.key==="Escape"&&b(null)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[h]);const v=C.useRef(!0),S=C.useRef(0),x=C.useRef(!1),p=C.useMemo(()=>np(t),[t]),g=p.length===0,[u,f]=C.useState(!0),[y,k]=C.useState(!1),_=C.useRef(!1);C.useEffect(()=>{if(!g&&!_.current){k(!0);const A=setTimeout(()=>{f(!1),_.current=!0},600);return()=>clearTimeout(A)}},[g]);const E=C.useCallback(()=>{if(x.current)return;const A=o.current;A&&(v.current=t_(A))},[]);C.useEffect(()=>{const A=t.length;if(A>S.current){const M=t[S.current];(M==null?void 0:M.type)==="message"&&M.role==="user"&&(v.current=!0)}S.current=A},[t]),C.useEffect(()=>{if(!v.current)return;const A=o.current;A&&(x.current=!0,A.scrollTop=A.scrollHeight,requestAnimationFrame(()=>{x.current=!1}))},[t,r]);const w=t[t.length-1],N=(w==null?void 0:w.type)==="message"&&w.streaming,I=N&&!!w.thinking&&!w.content;return i.jsxs("div",{ref:o,onScroll:E,onClick:()=>e==null?void 0:e(),className:"absolute inset-0 overflow-y-auto overflow-x-hidden",children:[u&&i.jsx("div",{className:`empty-state-wrapper${y?" empty-state-fadeout":""}`,children:i.jsx(ud,{})}),!u&&l&&t.length===0&&i.jsx("div",{className:"flex items-center justify-center min-h-[60vh] h-full pb-20",children:i.jsx(ih,{size:"large"})}),!u&&g&&!r&&!l&&i.jsx(ud,{}),!g&&i.jsx("div",{className:"px-4 sm:px-6 pt-6 pb-4 animate-fadeIn",children:i.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col",children:[i.jsx("div",{className:"text-center mb-8",children:i.jsx("span",{className:"text-[13px] text-text-tertiary",children:c("chat.disclaimer")})}),p.map((A,M)=>{var z,P,U,T;const O=dd(A);let B=!1,F="";if(O!==void 0){const L=Fr(O);let $=null;for(let R=M-1;R>=0;R--){const q=dd(p[R]);if(q!==void 0){$=Fr(q);break}}L!==$&&(B=!0,F=Ku(O,m))}if(A.kind==="user"){const L=A.entry.content?tp(A.entry.content):void 0;if(L)return L.from==="system"?null:i.jsxs("div",{children:[B&&i.jsx(It,{label:F}),i.jsx(rp,{msg:L})]},A.entry.id);const $=A.entry.content||"",R=Zy($);if(R==="")return null;const q=R??Jy($);return!q&&!((z=A.entry.images)!=null&&z.length)&&!((P=A.entry.files)!=null&&P.length)?null:i.jsxs("div",{children:[B&&i.jsx(It,{label:F}),i.jsx("div",{className:"flex justify-end mb-6",children:i.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] px-5 py-3 rounded-2xl rounded-tr-sm bg-bg-user border border-transparent",children:[A.entry.images&&A.entry.images.length>0&&i.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:A.entry.images.map((W,Y)=>{const V="url"in W?W.url:`data:${W.mimeType};base64,${W.data}`;return i.jsx("img",{src:V,alt:"",className:"max-w-full h-auto rounded-lg cursor-pointer hover:opacity-80 transition-opacity",style:{maxHeight:360},onClick:()=>b(V)},Y)})}),A.entry.files&&A.entry.files.length>0&&i.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:A.entry.files.map((W,Y)=>i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg bg-bg-primary/50 border border-border-muted/30 max-w-[180px]",children:[i.jsx(et,{size:14,className:"shrink-0 text-text-tertiary"}),i.jsx("span",{className:"text-[12px] text-text-primary truncate",title:W.name,children:W.name})]},Y))}),q&&i.jsx("p",{className:"whitespace-pre-wrap break-words text-text-primary text-chat",children:q})]})})]},A.entry.id)}if(A.kind==="channel_incoming")return i.jsxs("div",{children:[B&&i.jsx(It,{label:F}),i.jsx(db,{content:A.entry.content,channel:A.entry.channel})]},A.entry.id);if(A.kind==="assistant_message"){if(!A.entry.content&&!A.entry.thinking)return null;const L=M>0?p[M-1]:void 0,$=(L==null?void 0:L.kind)==="channel_incoming";return i.jsxs("div",{children:[B&&i.jsx(It,{label:F}),$&&L.kind==="channel_incoming"&&i.jsx(ub,{channel:L.entry.channel}),i.jsx("div",{className:"mb-2 w-full",children:i.jsx("div",{className:"flex-1 min-w-0",children:i.jsx(lc,{message:A.entry})})})]},A.entry.id)}if(A.kind==="assistant_tools"){const L=((U=A.entries[0])==null?void 0:U.id)||`tools-${M}`;return i.jsx(ep,{entries:A.entries},L)}if(A.kind==="compact_group"){const L=((T=A.entries[0])==null?void 0:T.id)||`compact-${M}`;return i.jsxs("div",{children:[B&&i.jsx(It,{label:F}),i.jsx(_y,{entries:A.entries})]},L)}return null}),r&&t.length>0&&!N&&!I&&i.jsx("div",{className:"mb-2",children:i.jsxs("span",{className:"inline-flex items-center gap-1.5 text-text-tertiary text-xs",children:[i.jsx(ve,{size:12,className:"text-accent-brand animate-spin"}),i.jsx("span",{children:d||c("chat.thinking")})]})}),n&&!r&&i.jsx("div",{className:"py-2",children:i.jsx("span",{className:"text-xs text-text-tertiary",children:s?`${c("chat.error")}: ${s}`:c("chat.stopped")})})]})}),i.jsx("div",{ref:a,className:"h-6"}),h&&i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 cursor-zoom-out",onClick:()=>b(null),children:i.jsx("img",{src:h,alt:"",className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg shadow-2xl",onClick:A=>A.stopPropagation()})})]})}const n_="ENTRIES",ip="KEYS",sp="VALUES",Ae="";class pn{constructor(t,r){const n=t._tree,s=Array.from(n.keys());this.set=t,this._type=r,this._path=s.length>0?[{node:n,keys:s}]:[]}next(){const t=this.dive();return this.backtrack(),t}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:t,keys:r}=At(this._path);if(At(r)===Ae)return{done:!1,value:this.result()};const n=t.get(At(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const t=At(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>At(t)).filter(t=>t!==Ae).join("")}value(){return At(this._path).node.get(Ae)}result(){switch(this._type){case sp:return this.value();case ip:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const At=e=>e[e.length-1],i_=(e,t,r)=>{const n=new Map;if(t===void 0)return n;const s=t.length+1,l=s+r,d=new Uint8Array(l*s).fill(r+1);for(let a=0;a<s;++a)d[a]=a;for(let a=1;a<l;++a)d[a*s]=a;return ap(e,t,r,n,d,1,s,""),n},ap=(e,t,r,n,s,l,d,a)=>{const o=l*d;e:for(const c of e.keys())if(c===Ae){const m=s[o-1];m<=r&&n.set(a,[e.get(c),m])}else{let m=l;for(let h=0;h<c.length;++h,++m){const b=c[h],v=d*m,S=v-d;let x=s[v];const p=Math.max(0,m-r-1),g=Math.min(d-1,m+r);for(let u=p;u<g;++u){const f=b!==t[u],y=s[S+u]+ +f,k=s[S+u+1]+1,_=s[v+u]+1,E=s[v+u+1]=Math.min(y,k,_);E<x&&(x=E)}if(x>r)continue e}ap(e.get(c),t,r,n,s,m,d,a+c)}};class pt{constructor(t=new Map,r=""){this._size=void 0,this._tree=t,this._prefix=r}atPrefix(t){if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");const[r,n]=Pr(this._tree,t.slice(this._prefix.length));if(r===void 0){const[s,l]=cc(n);for(const d of s.keys())if(d!==Ae&&d.startsWith(l)){const a=new Map;return a.set(d.slice(l.length),s.get(d)),new pt(a,t)}}return new pt(r,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,s_(this._tree,t)}entries(){return new pn(this,n_)}forEach(t){for(const[r,n]of this)t(r,n,this)}fuzzyGet(t,r){return i_(this._tree,t,r)}get(t){const r=Gn(this._tree,t);return r!==void 0?r.get(Ae):void 0}has(t){const r=Gn(this._tree,t);return r!==void 0&&r.has(Ae)}keys(){return new pn(this,ip)}set(t,r){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,hn(this._tree,t).set(Ae,r),this}get size(){if(this._size)return this._size;this._size=0;const t=this.entries();for(;!t.next().done;)this._size+=1;return this._size}update(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const n=hn(this._tree,t);return n.set(Ae,r(n.get(Ae))),this}fetch(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const n=hn(this._tree,t);let s=n.get(Ae);return s===void 0&&n.set(Ae,s=r()),s}values(){return new pn(this,sp)}[Symbol.iterator](){return this.entries()}static from(t){const r=new pt;for(const[n,s]of t)r.set(n,s);return r}static fromObject(t){return pt.from(Object.entries(t))}}const Pr=(e,t,r=[])=>{if(t.length===0||e==null)return[e,r];for(const n of e.keys())if(n!==Ae&&t.startsWith(n))return r.push([e,n]),Pr(e.get(n),t.slice(n.length),r);return r.push([e,t]),Pr(void 0,"",r)},Gn=(e,t)=>{if(t.length===0||e==null)return e;for(const r of e.keys())if(r!==Ae&&t.startsWith(r))return Gn(e.get(r),t.slice(r.length))},hn=(e,t)=>{const r=t.length;e:for(let n=0;e&&n<r;){for(const l of e.keys())if(l!==Ae&&t[n]===l[0]){const d=Math.min(r-n,l.length);let a=1;for(;a<d&&t[n+a]===l[a];)++a;const o=e.get(l);if(a===l.length)e=o;else{const c=new Map;c.set(l.slice(a),o),e.set(t.slice(n,n+a),c),e.delete(l),e=c}n+=a;continue e}const s=new Map;return e.set(t.slice(n),s),s}return e},s_=(e,t)=>{const[r,n]=Pr(e,t);if(r!==void 0){if(r.delete(Ae),r.size===0)op(n);else if(r.size===1){const[s,l]=r.entries().next().value;lp(n,s,l)}}},op=e=>{if(e.length===0)return;const[t,r]=cc(e);if(t.delete(r),t.size===0)op(e.slice(0,-1));else if(t.size===1){const[n,s]=t.entries().next().value;n!==Ae&&lp(e.slice(0,-1),n,s)}},lp=(e,t,r)=>{if(e.length===0)return;const[n,s]=cc(e);n.set(s+t,r),n.delete(s)},cc=e=>e[e.length-1],dc="or",cp="and",a_="and_not";class $t{constructor(t){if((t==null?void 0:t.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const r=t.autoVacuum==null||t.autoVacuum===!0?fn:t.autoVacuum;this._options={...gn,...t,autoVacuum:r,searchOptions:{...pd,...t.searchOptions||{}},autoSuggestOptions:{...u_,...t.autoSuggestOptions||{}}},this._index=new pt,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=qn,this.addFields(this._options.fields)}add(t){const{extractField:r,stringifyField:n,tokenize:s,processTerm:l,fields:d,idField:a}=this._options,o=r(t,a);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const c=this.addDocumentId(o);this.saveStoredFields(c,t);for(const m of d){const h=r(t,m);if(h==null)continue;const b=s(n(h,m),m),v=this._fieldIds[m],S=new Set(b).size;this.addFieldLength(c,v,this._documentCount-1,S);for(const x of b){const p=l(x,m);if(Array.isArray(p))for(const g of p)this.addTerm(v,c,g);else p&&this.addTerm(v,c,p)}}}addAll(t){for(const r of t)this.add(r)}addAllAsync(t,r={}){const{chunkSize:n=10}=r,s={chunk:[],promise:Promise.resolve()},{chunk:l,promise:d}=t.reduce(({chunk:a,promise:o},c,m)=>(a.push(c),(m+1)%n===0?{chunk:[],promise:o.then(()=>new Promise(h=>setTimeout(h,0))).then(()=>this.addAll(a))}:{chunk:a,promise:o}),s);return d.then(()=>this.addAll(l))}remove(t){const{tokenize:r,processTerm:n,extractField:s,stringifyField:l,fields:d,idField:a}=this._options,o=s(t,a);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);const c=this._idToShortId.get(o);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const m of d){const h=s(t,m);if(h==null)continue;const b=r(l(h,m),m),v=this._fieldIds[m],S=new Set(b).size;this.removeFieldLength(c,v,this._documentCount,S);for(const x of b){const p=n(x,m);if(Array.isArray(p))for(const g of p)this.removeTerm(v,c,g);else p&&this.removeTerm(v,c,p)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(o),this._fieldLength.delete(c),this._documentCount-=1}removeAll(t){if(t)for(const r of t)this.remove(r);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new pt,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(t){const r=this._idToShortId.get(t);if(r==null)throw new Error(`MiniSearch: cannot discard document with ID ${t}: it is not in the index`);this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach((n,s)=>{this.removeFieldLength(r,s,this._documentCount,n)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:t,minDirtCount:r,batchSize:n,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:s},{minDirtCount:r,minDirtFactor:t})}discardAll(t){const r=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of t)this.discard(n)}finally{this._options.autoVacuum=r}this.maybeAutoVacuum()}replace(t){const{idField:r,extractField:n}=this._options,s=n(t,r);this.discard(s),this.add(t)}vacuum(t={}){return this.conditionalVacuum(t)}conditionalVacuum(t,r){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&r,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=qn,this.performVacuuming(t,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(r)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}async performVacuuming(t,r){const n=this._dirtCount;if(this.vacuumConditionsMet(r)){const s=t.batchSize||Wn.batchSize,l=t.batchWait||Wn.batchWait;let d=1;for(const[a,o]of this._index){for(const[c,m]of o)for(const[h]of m)this._documentIds.has(h)||(m.size<=1?o.delete(c):m.delete(h));this._index.get(a).size===0&&this._index.delete(a),d%s===0&&await new Promise(c=>setTimeout(c,l)),d+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:r,minDirtFactor:n}=t;return r=r||fn.minDirtCount,n=n||fn.minDirtFactor,this.dirtCount>=r&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(t){return this._idToShortId.has(t)}getStoredFields(t){const r=this._idToShortId.get(t);if(r!=null)return this._storedFields.get(r)}search(t,r={}){const{searchOptions:n}=this._options,s={...n,...r},l=this.executeQuery(t,r),d=[];for(const[a,{score:o,terms:c,match:m}]of l){const h=c.length||1,b={id:this._documentIds.get(a),score:o*h,terms:Object.keys(m),queryTerms:c,match:m};Object.assign(b,this._storedFields.get(a)),(s.filter==null||s.filter(b))&&d.push(b)}return t===$t.wildcard&&s.boostDocument==null||d.sort(md),d}autoSuggest(t,r={}){r={...this._options.autoSuggestOptions,...r};const n=new Map;for(const{score:l,terms:d}of this.search(t,r)){const a=d.join(" "),o=n.get(a);o!=null?(o.score+=l,o.count+=1):n.set(a,{score:l,terms:d,count:1})}const s=[];for(const[l,{score:d,terms:a,count:o}]of n)s.push({suggestion:l,terms:a,score:d/o});return s.sort(md),s}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),r)}static async loadJSONAsync(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(t),r)}static getDefault(t){if(gn.hasOwnProperty(t))return mn(gn,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,r){const{index:n,documentIds:s,fieldLength:l,storedFields:d,serializationVersion:a}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=wr(s),o._fieldLength=wr(l),o._storedFields=wr(d);for(const[c,m]of o._documentIds)o._idToShortId.set(m,c);for(const[c,m]of n){const h=new Map;for(const b of Object.keys(m)){let v=m[b];a===1&&(v=v.ds),h.set(parseInt(b,10),wr(v))}o._index.set(c,h)}return o}static async loadJSAsync(t,r){const{index:n,documentIds:s,fieldLength:l,storedFields:d,serializationVersion:a}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=await Er(s),o._fieldLength=await Er(l),o._storedFields=await Er(d);for(const[m,h]of o._documentIds)o._idToShortId.set(h,m);let c=0;for(const[m,h]of n){const b=new Map;for(const v of Object.keys(h)){let S=h[v];a===1&&(S=S.ds),b.set(parseInt(v,10),await Er(S))}++c%1e3===0&&await dp(0),o._index.set(m,b)}return o}static instantiateMiniSearch(t,r){const{documentCount:n,nextId:s,fieldIds:l,averageFieldLength:d,dirtCount:a,serializationVersion:o}=t;if(o!==1&&o!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new $t(r);return c._documentCount=n,c._nextId=s,c._idToShortId=new Map,c._fieldIds=l,c._avgFieldLength=d,c._dirtCount=a||0,c._index=new pt,c}executeQuery(t,r={}){if(t===$t.wildcard)return this.executeWildcardQuery(r);if(typeof t!="string"){const b={...r,...t,queries:void 0},v=t.queries.map(S=>this.executeQuery(S,b));return this.combineResults(v,b.combineWith)}const{tokenize:n,processTerm:s,searchOptions:l}=this._options,d={tokenize:n,processTerm:s,...l,...r},{tokenize:a,processTerm:o}=d,h=a(t).flatMap(b=>o(b)).filter(b=>!!b).map(d_(d)).map(b=>this.executeQuerySpec(b,d));return this.combineResults(h,d.combineWith)}executeQuerySpec(t,r){const n={...this._options.searchOptions,...r},s=(n.fields||this._options.fields).reduce((x,p)=>({...x,[p]:mn(n.boost,p)||1}),{}),{boostDocument:l,weights:d,maxFuzzy:a,bm25:o}=n,{fuzzy:c,prefix:m}={...pd.weights,...d},h=this._index.get(t.term),b=this.termResults(t.term,t.term,1,t.termBoost,h,s,l,o);let v,S;if(t.prefix&&(v=this._index.atPrefix(t.term)),t.fuzzy){const x=t.fuzzy===!0?.2:t.fuzzy,p=x<1?Math.min(a,Math.round(t.term.length*x)):x;p&&(S=this._index.fuzzyGet(t.term,p))}if(v)for(const[x,p]of v){const g=x.length-t.term.length;if(!g)continue;S==null||S.delete(x);const u=m*x.length/(x.length+.3*g);this.termResults(t.term,x,u,t.termBoost,p,s,l,o,b)}if(S)for(const x of S.keys()){const[p,g]=S.get(x);if(!g)continue;const u=c*x.length/(x.length+g);this.termResults(t.term,x,u,t.termBoost,p,s,l,o,b)}return b}executeWildcardQuery(t){const r=new Map,n={...this._options.searchOptions,...t};for(const[s,l]of this._documentIds){const d=n.boostDocument?n.boostDocument(l,"",this._storedFields.get(s)):1;r.set(s,{score:d,terms:[],match:{}})}return r}combineResults(t,r=dc){if(t.length===0)return new Map;const n=r.toLowerCase(),s=o_[n];if(!s)throw new Error(`Invalid combination operator: ${r}`);return t.reduce(s)||new Map}toJSON(){const t=[];for(const[r,n]of this._index){const s={};for(const[l,d]of n)s[l]=Object.fromEntries(d);t.push([r,s])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:t,serializationVersion:2}}termResults(t,r,n,s,l,d,a,o,c=new Map){if(l==null)return c;for(const m of Object.keys(d)){const h=d[m],b=this._fieldIds[m],v=l.get(b);if(v==null)continue;let S=v.size;const x=this._avgFieldLength[b];for(const p of v.keys()){if(!this._documentIds.has(p)){this.removeTerm(b,p,r),S-=1;continue}const g=a?a(this._documentIds.get(p),r,this._storedFields.get(p)):1;if(!g)continue;const u=v.get(p),f=this._fieldLength.get(p)[b],y=c_(u,S,this._documentCount,f,x,o),k=n*s*h*g*y,_=c.get(p);if(_){_.score+=k,p_(_.terms,t);const E=mn(_.match,r);E?E.push(m):_.match[r]=[m]}else c.set(p,{score:k,terms:[t],match:{[r]:[m]}})}}return c}addTerm(t,r,n){const s=this._index.fetch(n,gd);let l=s.get(t);if(l==null)l=new Map,l.set(r,1),s.set(t,l);else{const d=l.get(r);l.set(r,(d||0)+1)}}removeTerm(t,r,n){if(!this._index.has(n)){this.warnDocumentChanged(r,t,n);return}const s=this._index.fetch(n,gd),l=s.get(t);l==null||l.get(r)==null?this.warnDocumentChanged(r,t,n):l.get(r)<=1?l.size<=1?s.delete(t):l.delete(r):l.set(r,l.get(r)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(t,r,n){for(const s of Object.keys(this._fieldIds))if(this._fieldIds[s]===r){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(t)} has changed before removal: term "${n}" was not present in field "${s}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(t){const r=this._nextId;return this._idToShortId.set(t,r),this._documentIds.set(r,t),this._documentCount+=1,this._nextId+=1,r}addFields(t){for(let r=0;r<t.length;r++)this._fieldIds[t[r]]=r}addFieldLength(t,r,n,s){let l=this._fieldLength.get(t);l==null&&this._fieldLength.set(t,l=[]),l[r]=s;const a=(this._avgFieldLength[r]||0)*n+s;this._avgFieldLength[r]=a/(n+1)}removeFieldLength(t,r,n,s){if(n===1){this._avgFieldLength[r]=0;return}const l=this._avgFieldLength[r]*n-s;this._avgFieldLength[r]=l/(n-1)}saveStoredFields(t,r){const{storeFields:n,extractField:s}=this._options;if(n==null||n.length===0)return;let l=this._storedFields.get(t);l==null&&this._storedFields.set(t,l={});for(const d of n){const a=s(r,d);a!==void 0&&(l[d]=a)}}}$t.wildcard=Symbol("*");const mn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,o_={[dc]:(e,t)=>{for(const r of t.keys()){const n=e.get(r);if(n==null)e.set(r,t.get(r));else{const{score:s,terms:l,match:d}=t.get(r);n.score=n.score+s,n.match=Object.assign(n.match,d),hd(n.terms,l)}}return e},[cp]:(e,t)=>{const r=new Map;for(const n of t.keys()){const s=e.get(n);if(s==null)continue;const{score:l,terms:d,match:a}=t.get(n);hd(s.terms,d),r.set(n,{score:s.score+l,terms:s.terms,match:Object.assign(s.match,a)})}return r},[a_]:(e,t)=>{for(const r of t.keys())e.delete(r);return e}},l_={k:1.2,b:.7,d:.5},c_=(e,t,r,n,s,l)=>{const{k:d,b:a,d:o}=l;return Math.log(1+(r-t+.5)/(t+.5))*(o+e*(d+1)/(e+d*(1-a+a*n/s)))},d_=e=>(t,r,n)=>{const s=typeof e.fuzzy=="function"?e.fuzzy(t,r,n):e.fuzzy||!1,l=typeof e.prefix=="function"?e.prefix(t,r,n):e.prefix===!0,d=typeof e.boostTerm=="function"?e.boostTerm(t,r,n):1;return{term:t,fuzzy:s,prefix:l,termBoost:d}},gn={idField:"id",extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(h_),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])=="function"&&console[e](t)},autoVacuum:!0},pd={combineWith:dc,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:l_},u_={combineWith:cp,prefix:(e,t,r)=>t===r.length-1},Wn={batchSize:1e3,batchWait:10},qn={minDirtFactor:.1,minDirtCount:20},fn={...Wn,...qn},p_=(e,t)=>{e.includes(t)||e.push(t)},hd=(e,t)=>{for(const r of t)e.includes(r)||e.push(r)},md=({score:e},{score:t})=>t-e,gd=()=>new Map,wr=e=>{const t=new Map;for(const r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},Er=async e=>{const t=new Map;let r=0;for(const n of Object.keys(e))t.set(parseInt(n,10),e[n]),++r%1e3===0&&await dp(0);return t},dp=e=>new Promise(t=>setTimeout(t,e)),h_=/[\n\r\p{Z}\p{P}]+/u;function m_(e){const t=/[\u4e00-\u9fff]|[a-zA-Z0-9]+/g;return(e.match(t)||[]).map(r=>r.toLowerCase())}const g_=ze((e,t)=>({sidebar:null,sidebarLoading:!1,sidebarLang:null,currentPath:null,currentContent:null,contentLoading:!1,contentError:null,searchQuery:"",searchResults:[],searchIndex:null,searchDocuments:[],searchLang:null,loadSidebar:async r=>{if(!(t().sidebarLang===r&&t().sidebar)){e({sidebarLoading:!0});try{const n=await fetch(`/docs/sidebar-${r}.json`);if(!n.ok)throw new Error(`HTTP ${n.status}`);const s=await n.json();e({sidebar:s,sidebarLoading:!1,sidebarLang:r})}catch{e({sidebar:null,sidebarLoading:!1,sidebarLang:null})}}},loadDocument:async(r,n)=>{e({contentLoading:!0,contentError:null,currentPath:r});try{const l=await fetch(`/docs/${n==="zh"?"cn":"en"}${r}.md`);if(!l.ok)throw new Error(`HTTP ${l.status}`);const d=await l.text();t().currentPath===r&&e({currentContent:d,contentLoading:!1})}catch{t().currentPath===r&&e({currentContent:null,contentLoading:!1,contentError:r})}},initSearchIndex:async r=>{if(!(t().searchLang===r&&t().searchIndex))try{const n=await fetch(`/docs/search-index-${r}.json`);if(!n.ok)return;const s=await n.json(),l=new $t({fields:["title","body"],storeFields:["title","body"],tokenize:m_,searchOptions:{prefix:!0,fuzzy:.2,boost:{title:2}}});l.addAll(s),e({searchIndex:l,searchDocuments:[],searchLang:r})}catch{}},search:r=>{const{searchIndex:n}=t();if(e({searchQuery:r}),!r.trim()||!n){e({searchResults:[]});return}const l=n.search(r,{prefix:!0,fuzzy:.2}).slice(0,20).map(d=>{const a=d,o=a.title||d.id,c=a.body||"",m=c.toLowerCase(),h=r.toLowerCase(),b=m.indexOf(h);let v;if(b>=0){const S=Math.max(0,b-40),x=Math.min(c.length,b+r.length+80);v=(S>0?"...":"")+c.slice(S,x)+(x<c.length?"...":"")}else v=c.slice(0,120)+(c.length>120?"...":"");return{id:d.id,title:o,score:d.score,excerpt:v}});e({searchResults:l})},setCurrentPath:r=>e({currentPath:r}),clearSearch:()=>e({searchQuery:"",searchResults:[]})})),f_=br;function b_(e){const t=e.split(`
|
|
558
|
+
`),r=[];let n=!1;for(const s of t){if(s.startsWith("```")){n=!n;continue}if(n)continue;const l=s.match(/^##\s+(.+)$/),d=s.match(/^###\s+(.+)$/),a=d||l;if(!a)continue;const o=a[1].trim(),c=o.toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");r.push({id:c,text:o,level:d?3:2})}return r}function y_({className:e,children:t,...r}){const n=tt(d=>d.resolved),s=(e||"").match(/language-(\w+)/),l=String(t).replace(/\n$/,"");return s?i.jsx("div",{className:"relative group my-3",children:i.jsx(f_,{style:n==="dark"?Jr:Qr,language:s[1],PreTag:"div",customStyle:{margin:0,borderRadius:"8px",fontSize:"13px",lineHeight:"1.6"},children:l})}):i.jsx("code",{className:"bg-bg-tertiary text-text-primary px-1.5 py-0.5 rounded text-[13px]",...r,children:t})}function __({content:e,onNavigate:t}){const{t:r}=ie(),n=C.useMemo(()=>b_(e),[e]),[s,l]=C.useState(""),d=C.useRef(null);C.useEffect(()=>{var o;(o=d.current)==null||o.scrollTo(0,0)},[e]),C.useEffect(()=>{if(n.length===0)return;const o=new IntersectionObserver(c=>{for(const m of c)m.isIntersecting&&l(m.target.id)},{rootMargin:"-80px 0px -80% 0px"});for(const c of n){const m=document.getElementById(c.id);m&&o.observe(m)}return()=>o.disconnect()},[n]);const a=C.useCallback(o=>{const c=o.currentTarget.getAttribute("href");c&&c.startsWith("/cli/")&&(o.preventDefault(),t(c))},[t]);return i.jsxs("div",{className:"flex gap-6 h-full",children:[i.jsx("div",{ref:d,className:"flex-1 min-w-0 overflow-y-auto px-6 py-6",children:i.jsx("article",{className:"max-w-3xl mx-auto docs-markdown",children:i.jsx(Pt,{remarkPlugins:[Bt],components:{code:y_,h2:({children:o,...c})=>{const h=String(o).toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");return i.jsx("h2",{id:h,className:"text-xl font-semibold mt-8 mb-3 text-text-primary scroll-mt-20",...c,children:o})},h3:({children:o,...c})=>{const h=String(o).toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");return i.jsx("h3",{id:h,className:"text-lg font-medium mt-6 mb-2 text-text-primary scroll-mt-20",...c,children:o})},h1:({children:o,...c})=>i.jsx("h1",{className:"text-2xl font-bold mb-4 text-text-primary",...c,children:o}),p:({children:o,...c})=>i.jsx("p",{className:"text-sm leading-7 text-text-secondary mb-4",...c,children:o}),a:({children:o,href:c,...m})=>i.jsx("a",{href:c,onClick:c!=null&&c.startsWith("/cli/")?a:void 0,className:"text-accent-brand hover:underline",target:c!=null&&c.startsWith("http")?"_blank":void 0,rel:c!=null&&c.startsWith("http")?"noopener noreferrer":void 0,...m,children:o}),ul:({children:o,...c})=>i.jsx("ul",{className:"list-disc pl-6 mb-4 space-y-1 text-sm text-text-secondary",...c,children:o}),ol:({children:o,...c})=>i.jsx("ol",{className:"list-decimal pl-6 mb-4 space-y-1 text-sm text-text-secondary",...c,children:o}),blockquote:({children:o,...c})=>i.jsx("blockquote",{className:"border-l-4 border-border-primary pl-4 my-4 text-sm text-text-tertiary italic",...c,children:o}),table:({children:o,...c})=>i.jsx("div",{className:"overflow-x-auto my-4",children:i.jsx("table",{className:"min-w-full text-sm border-collapse",...c,children:o})}),th:({children:o,...c})=>i.jsx("th",{className:"border border-border-primary px-3 py-2 bg-bg-secondary text-left font-medium text-text-primary",...c,children:o}),td:({children:o,...c})=>i.jsx("td",{className:"border border-border-primary px-3 py-2 text-text-secondary",...c,children:o}),hr:()=>i.jsx("hr",{className:"my-6 border-border-primary"}),img:({src:o,alt:c,...m})=>i.jsx("img",{src:o,alt:c,className:"max-w-full rounded-lg my-4",loading:"lazy",...m})},children:e})})}),n.length>0&&i.jsx("div",{className:"hidden xl:block w-56 flex-shrink-0 py-6 pr-4",children:i.jsxs("div",{className:"sticky top-6",children:[i.jsx("h4",{className:"text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-3",children:r("docs.toc")}),i.jsx("nav",{className:"space-y-1",children:n.map(o=>i.jsx("a",{href:`#${o.id}`,onClick:c=>{var m;c.preventDefault(),(m=document.getElementById(o.id))==null||m.scrollIntoView({behavior:"smooth"})},className:`block text-xs py-0.5 transition-colors truncate
|
|
559
|
+
${o.level===3?"pl-3":""}
|
|
560
|
+
${s===o.id?"text-accent-brand font-medium":"text-text-tertiary hover:text-text-secondary"}`,children:o.text},o.id))})]})})]})}function v_({query:e,results:t,onSelect:r}){const{t:n}=ie();return e.trim()?t.length===0?i.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx(ct,{size:40,className:"mx-auto mb-4 text-text-tertiary opacity-30"}),i.jsx("div",{className:"text-text-secondary text-sm mb-1",children:n("docs.search.noResults")}),i.jsxs("div",{className:"text-text-tertiary text-xs",children:['"',e,'"']})]})}):i.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:[i.jsx("p",{className:"text-xs font-medium text-text-tertiary uppercase tracking-wider mb-4",children:n("docs.search.resultsCount").replace("{count}",String(t.length))}),i.jsx("div",{className:"space-y-2 max-w-3xl",children:t.map(s=>i.jsxs("button",{onClick:()=>r(s.id),className:"w-full text-left p-4 rounded-xl border border-border-default hover:border-accent-brand/40 hover:bg-bg-secondary/60 transition-all",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[i.jsx(et,{size:14,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:s.title})]}),i.jsx("p",{className:"text-xs text-text-tertiary line-clamp-2 pl-[22px] leading-relaxed",children:s.excerpt})]},s.id))})]}):i.jsx(i.Fragment,{})}function Vn({item:e,currentPath:t,onSelect:r,depth:n}){const[s,l]=C.useState(!e.collapsed),d=e.items&&e.items.length>0,a=e.link===t,o=d&&!e.link,c=C.useCallback(()=>{e.link&&r(e.link),d&&l(m=>!m)},[e.link,d,r]);return o&&n===0?i.jsxs("div",{className:"mt-4 first:mt-0",children:[i.jsxs("button",{onClick:c,className:["w-full text-left flex items-center gap-1.5 px-4 py-2 text-xs","font-semibold text-text-tertiary uppercase tracking-wider","hover:text-text-secondary transition-colors"].join(" "),children:[i.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",children:s?i.jsx(it,{size:12}):i.jsx(De,{size:12})}),i.jsx("span",{className:"truncate",children:e.text})]}),s&&i.jsx("div",{children:e.items.map((m,h)=>i.jsx(Vn,{item:m,currentPath:t,onSelect:r,depth:n+1},m.link||`${m.text}-${h}`))})]}):i.jsxs("div",{children:[i.jsxs("button",{onClick:c,className:`w-full text-left flex items-center gap-1.5 py-1.5 rounded-lg text-[13px] transition-colors
|
|
561
|
+
${a?"bg-accent-brand/10 text-accent-brand font-medium":"text-text-secondary hover:text-text-primary hover:bg-bg-hover"}`,style:{paddingLeft:`${n*12+16}px`,paddingRight:"16px"},children:[d&&i.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",children:s?i.jsx(it,{size:12}):i.jsx(De,{size:12})}),!d&&i.jsx("span",{className:"w-4 flex-shrink-0"}),i.jsx("span",{className:"truncate",children:e.text})]}),d&&s&&i.jsx("div",{children:e.items.map((m,h)=>i.jsx(Vn,{item:m,currentPath:t,onSelect:r,depth:n+1},m.link||`${m.text}-${h}`))})]})}function x_({items:e,currentPath:t,onSelect:r}){return i.jsx("nav",{className:"py-2 overflow-y-auto",children:e.map((n,s)=>i.jsx(Vn,{item:n,currentPath:t,onSelect:r,depth:0},n.link||`${n.text}-${s}`))})}function up(e){for(const t of e){if(t.link)return t.link;if(t.items){const r=up(t.items);if(r)return r}}return null}function fd(){const{t:e,resolved:t}=ie(),{sidebar:r,sidebarLoading:n,currentPath:s,currentContent:l,contentLoading:d,contentError:a,searchQuery:o,searchResults:c,loadSidebar:m,loadDocument:h,initSearchIndex:b,search:v,setCurrentPath:S,clearSearch:x}=g_(),[p,g]=C.useState(!1),[u,f]=C.useState(""),y=C.useRef(),k=jt(A=>{var M;return(M=A.info)==null?void 0:M.version}),_=k&&k!=="dev"?`CodeBuddy Code CLI v${k}`:"CodeBuddy Code CLI",E=t==="zh"?"zh":"en";C.useEffect(()=>{m(E),b(E)},[E,m,b]),C.useEffect(()=>{s&&h(s,E)},[E]),C.useEffect(()=>{if(!r)return;const A=Mr();if(A){const M=`/${A}`;S(M),h(M,E)}else if(!s){const M=up(r);M&&(S(M),h(M,E),window.location.hash=`/docs${M}`)}},[r]),C.useEffect(()=>{const A=()=>{if(!window.location.hash.startsWith("#/docs"))return;const O=Mr();if(O){const B=`/${O}`;B!==s&&(S(B),h(B,E),x(),f(""))}};return window.addEventListener("hashchange",A),()=>window.removeEventListener("hashchange",A)},[s,E,h,S,x]),C.useEffect(()=>(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{v(u)},300),()=>{y.current&&clearTimeout(y.current)}),[u,v]);const w=C.useCallback(A=>{x(),f(""),S(A),h(A,E),window.location.hash=`/docs${A}`,g(!1)},[E,h,S,x]),N=C.useCallback(A=>{w(A)},[w]),I=u.trim().length>0;return i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[i.jsx("div",{className:"flex-none border-b border-border-default px-6 py-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("button",{className:"md:hidden w-8 h-8 flex items-center justify-center rounded-lg text-text-tertiary hover:text-text-primary hover:bg-bg-hover transition-colors",onClick:()=>g(A=>!A),children:i.jsx($m,{size:16})}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("docs.title")}),i.jsx("p",{className:"text-sm text-text-tertiary mt-0.5",children:_})]})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative w-48 sm:w-64",children:[i.jsx(ct,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary"}),i.jsx("input",{type:"search",autoComplete:"off","data-1p-ignore":!0,"data-lpignore":"true",value:u,onChange:A=>f(A.target.value),placeholder:e("docs.search.placeholder"),className:["w-full pl-8 pr-8 py-1.5 text-sm rounded-lg border","border-border-default bg-bg-secondary text-text-primary","placeholder-text-tertiary focus:outline-none","focus:border-accent-brand transition-colors"].join(" ")}),u&&i.jsx("button",{onClick:()=>{f(""),x()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-tertiary hover:text-text-primary",children:i.jsx(Ue,{size:14})})]}),i.jsxs("a",{href:"/api/docs",target:"_blank",rel:"noopener noreferrer",className:["hidden sm:flex items-center gap-1.5 px-3 py-2 rounded-lg","border border-border-default text-text-secondary text-sm","hover:text-text-primary hover:border-accent-brand/50","hover:bg-bg-secondary transition-all"].join(" "),children:[i.jsx(nt,{size:14}),i.jsx("span",{children:e("docs.apiReference")})]}),i.jsx("button",{onClick:()=>{const M=`/docs${s||""}?standalone`;window.open(`${window.location.pathname}#${M}`,"_blank")},className:["hidden sm:flex items-center justify-center","w-8 h-8 rounded-lg border border-border-default","text-text-secondary hover:text-text-primary","hover:border-accent-brand/50","hover:bg-bg-secondary transition-all"].join(" "),title:e("docs.openStandalone"),children:i.jsx(uu,{size:14})})]})]})}),i.jsxs("div",{className:"flex-1 flex overflow-hidden relative",children:[p&&i.jsx("div",{className:"md:hidden fixed inset-0 bg-black/30 z-20",onClick:()=>g(!1)}),i.jsx("div",{className:`
|
|
562
|
+
w-64 flex-shrink-0 border-r border-border-default bg-bg-primary overflow-y-auto
|
|
563
|
+
md:relative md:translate-x-0
|
|
564
|
+
${p?"fixed inset-y-0 left-0 z-30 translate-x-0":"hidden md:block"}
|
|
565
|
+
`,children:n?i.jsx("div",{className:"flex flex-col items-center justify-center h-32",children:i.jsx(Qe,{size:"small",text:e("docs.loading")})}):r?i.jsx(x_,{items:r,currentPath:s,onSelect:w}):i.jsx("div",{className:"p-4 text-sm text-text-tertiary",children:e("docs.loadError")})}),i.jsx("div",{className:"flex-1 min-w-0 overflow-hidden flex flex-col",children:I?i.jsx(v_,{query:o,results:c,onSelect:N}):d?i.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:i.jsx(Qe,{size:"small",text:e("docs.loading")})}):a?i.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-text-tertiary text-[48px] mb-4 opacity-30",children:"📄"}),i.jsx("div",{className:"text-text-secondary text-sm mb-2",children:e("docs.notFound")}),i.jsx("div",{className:"text-text-tertiary text-xs",children:a})]})}):l?i.jsx(__,{content:l,onNavigate:w}):i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-text-tertiary",children:[i.jsx("div",{className:"text-[48px] mb-4 opacity-30",children:"📖"}),i.jsx("div",{className:"text-sm",children:e("docs.title")})]})})]})]})}async function Et(e,t){var s;const r=await fetch("/api/v1/fs/list",{method:"POST",headers:{...me(),"Content-Type":"application/json"},body:JSON.stringify({path:e,depth:t})});if(!r.ok)throw new Error(`List directory failed: HTTP ${r.status}`);const n=await r.json();return((s=n.data)==null?void 0:s.entries)??n.entries??[]}async function S_(e){const t=await fetch(`/api/v1/files/download?path=${encodeURIComponent(e)}`,{headers:me()});if(!t.ok)throw new Error(`Read file failed: HTTP ${t.status}`);return t.text()}async function bd(e,t){const r=await fetch(`/api/v1/files/upload?path=${encodeURIComponent(e)}`,{method:"POST",headers:me(),body:t});if(!r.ok)throw new Error(`Write file failed: HTTP ${r.status}`)}async function k_(e){const t=await fetch("/api/v1/fs/mkdir",{method:"POST",headers:{...me(),"Content-Type":"application/json"},body:JSON.stringify({path:e})});if(!t.ok)throw new Error(`Create directory failed: HTTP ${t.status}`)}async function w_(e){const t=await fetch("/api/v1/fs/remove",{method:"POST",headers:{...me(),"Content-Type":"application/json"},body:JSON.stringify({path:e})});if(!t.ok)throw new Error(`Remove failed: HTTP ${t.status}`)}async function E_(e){try{return await Et(e,1),"directory"}catch{return"file"}}async function yd(e,t){const r=await fetch("/api/v1/fs/move",{method:"POST",headers:{...me(),"Content-Type":"application/json"},body:JSON.stringify({source:e,destination:t})});if(!r.ok)throw new Error(`Move failed: HTTP ${r.status}`)}const C_={".ts":"typescript",".tsx":"typescript",".mts":"typescript",".cts":"typescript",".js":"javascript",".jsx":"javascript",".mjs":"javascript",".cjs":"javascript",".json":"json",".jsonc":"json",".md":"markdown",".mdx":"markdown",".css":"css",".scss":"scss",".less":"less",".html":"html",".htm":"html",".xml":"xml",".svg":"xml",".yaml":"yaml",".yml":"yaml",".py":"python",".pyw":"python",".go":"go",".rs":"rust",".java":"java",".c":"c",".h":"c",".cpp":"cpp",".cc":"cpp",".cxx":"cpp",".hpp":"cpp",".cs":"csharp",".rb":"ruby",".php":"php",".swift":"swift",".kt":"kotlin",".kts":"kotlin",".sh":"shell",".bash":"shell",".zsh":"shell",".sql":"sql",".graphql":"graphql",".gql":"graphql",".vue":"html",".lua":"lua",".r":"r",".R":"r",".dockerfile":"dockerfile",".toml":"ini",".ini":"ini",".cfg":"ini",".env":"ini",".gitignore":"ini"};function T_(e){const t=e.substring(e.lastIndexOf("/")+1);if(t==="Dockerfile"||t.startsWith("Dockerfile."))return"dockerfile";if(t==="Makefile"||t==="GNUmakefile")return"makefile";const r=e.substring(e.lastIndexOf("."));return C_[r]||"plaintext"}const N_=new Set([".png",".jpg",".jpeg",".gif",".webp",".bmp",".ico",".tiff",".tif",".mp3",".mp4",".wav",".avi",".mov",".mkv",".flac",".ogg",".zip",".gz",".tar",".bz2",".7z",".rar",".xz",".exe",".dll",".so",".dylib",".bin",".o",".a",".pdf",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".woff",".woff2",".ttf",".otf",".eot",".sqlite",".db"]);function pp(e){const t=e.substring(e.lastIndexOf(".")).toLowerCase();return N_.has(t)}const A_=new Set([".png",".jpg",".jpeg",".gif",".webp",".bmp",".ico",".tiff",".tif"]);function R_(e){const t=e.substring(e.lastIndexOf(".")).toLowerCase();return A_.has(t)?"image":t===".svg"?"svg":t===".md"||t===".mdx"?"markdown":t===".pdf"?"pdf":pp(e)?"binary":"editor"}const I_=2*1024*1024,hp="codebuddy_editor_split_ratio",mp="codebuddy_editor_expanded",gp="codebuddy_editor_recent",L_=10;function O_(){try{const e=sessionStorage.getItem(hp);if(e)return parseFloat(e)}catch{}return .22}function $_(e){try{sessionStorage.setItem(hp,String(e))}catch{}}function _d(){try{const e=sessionStorage.getItem(mp);if(e)return JSON.parse(e)}catch{}return[]}function bn(e){try{sessionStorage.setItem(mp,JSON.stringify(e))}catch{}}function D_(){try{const e=sessionStorage.getItem(gp);if(e)return JSON.parse(e)}catch{}return[]}function M_(e){try{sessionStorage.setItem(gp,JSON.stringify(e))}catch{}}function yn(e,t,r){const n=e.filter(l=>l.path!==t),s=[{path:t,name:r,timestamp:Date.now()},...n].slice(0,L_);return M_(s),s}function j_(e){return[...e].sort((t,r)=>t.type==="directory"&&r.type!=="directory"?-1:t.type!=="directory"&&r.type==="directory"?1:t.name.localeCompare(r.name,void 0,{numeric:!0,sensitivity:"base"}))}function vd(e){return j_(e).map(t=>({name:t.name,path:t.path,type:t.type,children:(t.type==="directory",void 0)}))}function fp(e,t,r){return e.path===t?{...e,children:r,isLoading:!1}:e.children?{...e,children:e.children.map(n=>fp(n,t,r))}:e}function uc(e,t){const r=[];if(e.children)for(const n of e.children)r.push(n.path),n.type==="directory"&&t.has(n.path)&&n.children&&r.push(...uc(n,t));return r}function Kn(e,t,r){return e.path===t?{...e,isLoading:r}:e.children?{...e,children:e.children.map(n=>Kn(n,t,r))}:e}function F_(e){const t=new Map,r=new Map;for(const n of e)r.set(n.name,(r.get(n.name)||0)+1);for(const n of e)if(r.get(n.name)>1){const s=n.path.split("/"),l=s.length>=2?s[s.length-2]:"";t.set(n.id,l?`${l}/`:"")}else t.set(n.id,"");return t}const Dt=ze((e,t)=>({rootPath:null,tree:null,treeLoading:!1,expandedPaths:new Set(_d()),selectedPath:null,selectedPaths:new Set,renamingPath:null,renamingIsNew:!1,tabs:[],activeTabId:null,recentFiles:D_(),splitRatio:O_(),setRootPath:async r=>{e({rootPath:r,treeLoading:!0,tree:null});try{const n=await Et(r),s=vd(n),l={name:r.split("/").pop()||r,path:r,type:"directory",children:s};e({tree:l,treeLoading:!1,expandedPaths:new Set([r,..._d()])})}catch{e({treeLoading:!1})}},loadDirectory:async r=>{const{tree:n}=t();if(n){e({tree:Kn(n,r,!0)});try{const s=await Et(r),l=vd(s),d=fp(t().tree,r,l);e({tree:d})}catch{const s=t().tree;s&&e({tree:Kn(s,r,!1)})}}},toggleExpand:r=>{const{expandedPaths:n}=t(),s=new Set(n);if(s.has(r))s.delete(r);else{s.add(r);const{tree:l}=t();if(l){const d=o=>{if(o.path===r)return o;if(o.children)for(const c of o.children){const m=d(c);if(m)return m}return null},a=d(l);a&&a.type==="directory"&&!a.children&&t().loadDirectory(r)}}bn([...s]),e({expandedPaths:s})},selectPath:(r,n)=>{const{selectedPaths:s,selectedPath:l,tree:d,expandedPaths:a}=t();if(n!=null&&n.ctrl){const o=new Set(s);o.has(r)?(o.delete(r),e({selectedPaths:o,selectedPath:o.size>0?[...o][o.size-1]:null})):(o.add(r),e({selectedPaths:o,selectedPath:r}))}else if(n!=null&&n.shift&&l&&d){const o=uc(d,a),c=o.indexOf(l),m=o.indexOf(r);if(c>=0&&m>=0){const h=Math.min(c,m),b=Math.max(c,m),v=new Set(o.slice(h,b+1));e({selectedPaths:v,selectedPath:r})}}else e({selectedPath:r,selectedPaths:new Set([r])})},refreshTree:async()=>{const{rootPath:r}=t();r&&await t().setRootPath(r)},collapseAll:()=>{const{rootPath:r}=t(),n=new Set;r&&n.add(r),bn([...n]),e({expandedPaths:n})},createNewFile:()=>{const{selectedPath:r,rootPath:n,tree:s,expandedPaths:l}=t();let d=n;if(r&&s){const o=m=>{if(m.path===r)return m;if(m.children)for(const h of m.children){const b=o(h);if(b)return b}return null},c=o(s);c&&(d=c.type==="directory"?c.path:c.path.substring(0,c.path.lastIndexOf("/")))}if(!d)return;l.has(d)||t().toggleExpand(d);const a=d+"/__new_file__";t().startCreateFile(a)},createNewFolder:()=>{const{selectedPath:r,rootPath:n,tree:s,expandedPaths:l}=t();let d=n;if(r&&s){const o=m=>{if(m.path===r)return m;if(m.children)for(const h of m.children){const b=o(h);if(b)return b}return null},c=o(s);c&&(d=c.type==="directory"?c.path:c.path.substring(0,c.path.lastIndexOf("/")))}if(!d)return;l.has(d)||t().toggleExpand(d);const a=d+"/__new_folder__";t().startCreateFolder(a)},startRename:r=>{e({renamingPath:r,renamingIsNew:!1,selectedPath:r})},startCreateFile:r=>{const n=r.substring(0,r.lastIndexOf("/")),{tree:s}=t();if(!s)return;const l={name:"",path:r,type:"file"},d=a=>a.path===n?{...a,children:[l,...a.children||[]]}:a.children?{...a,children:a.children.map(o=>d(o))}:a;e({tree:d(s),renamingPath:r,renamingIsNew:!0,selectedPath:r})},startCreateFolder:r=>{const n=r.substring(0,r.lastIndexOf("/")),{tree:s}=t();if(!s)return;const l={name:"",path:r,type:"directory"},d=a=>a.path===n?{...a,children:[l,...a.children||[]]}:a.children?{...a,children:a.children.map(o=>d(o))}:a;e({tree:d(s),renamingPath:r,renamingIsNew:!0,selectedPath:r})},confirmRename:async(r,n)=>{const{renamingIsNew:s}=t();if(!n.trim()){if(s){const a=r.substring(0,r.lastIndexOf("/"));e({renamingPath:null,renamingIsNew:!1}),await t().loadDirectory(a)}else e({renamingPath:null,renamingIsNew:!1});return}const l=r.substring(0,r.lastIndexOf("/")),d=l+"/"+n.trim();if(s){try{const{tree:a}=t(),o=m=>{if(m.path===r)return m;if(m.children)for(const h of m.children){const b=o(h);if(b)return b}return null},c=a?o(a):null;(c==null?void 0:c.type)==="directory"?await k_(d):await bd(d,""),e({renamingPath:null,renamingIsNew:!1,selectedPath:d}),await t().loadDirectory(l),(c==null?void 0:c.type)!=="directory"&&await t().openFile(d,n.trim())}catch{e({renamingPath:null,renamingIsNew:!1}),await t().loadDirectory(l)}return}if(d===r){e({renamingPath:null,renamingIsNew:!1});return}try{await yd(r,d),e(a=>({renamingPath:null,renamingIsNew:!1,selectedPath:d,tabs:a.tabs.map(o=>o.path===r?{...o,id:d,path:d,name:n.trim()}:o),activeTabId:a.activeTabId===r?d:a.activeTabId})),await t().loadDirectory(l)}catch{e({renamingPath:null,renamingIsNew:!1})}},cancelRename:()=>{const{renamingIsNew:r,renamingPath:n}=t();if(r&&n){const s=n.substring(0,n.lastIndexOf("/"));e({renamingPath:null,renamingIsNew:!1}),t().loadDirectory(s)}else e({renamingPath:null,renamingIsNew:!1})},openFile:async(r,n)=>{const{tabs:s}=t(),l=s.find(c=>c.path===r);if(l){e({activeTabId:l.id,selectedPath:r});return}const d=n||r.substring(r.lastIndexOf("/")+1),a=T_(r),o=R_(r);if(o==="image"||o==="pdf"||o==="binary"){const c={id:r,path:r,name:d,content:"",originalContent:"",language:a,isDirty:!1,isPinned:!1,viewMode:o};e(m=>({tabs:[...m.tabs,c],activeTabId:c.id,selectedPath:r,recentFiles:yn(m.recentFiles,r,d)}));return}try{const c=await S_(r);if(c.length>I_)return;const m={id:r,path:r,name:d,content:c,originalContent:c,language:a,isDirty:!1,isPinned:!1,viewMode:o};e(h=>({tabs:[...h.tabs,m],activeTabId:m.id,selectedPath:r,recentFiles:yn(h.recentFiles,r,d)}))}catch{}},closeTab:r=>{e(n=>{const s=n.tabs.find(c=>c.id===r),l=n.tabs.findIndex(c=>c.id===r),d=n.tabs.filter(c=>c.id!==r);let a=n.activeTabId;n.activeTabId===r&&(a=d.length>0?d[Math.min(l,d.length-1)].id:null);const o=s?yn(n.recentFiles,s.path,s.name):n.recentFiles;return{tabs:d,activeTabId:a,recentFiles:o}})},closeOtherTabs:r=>{e(n=>({tabs:n.tabs.filter(s=>s.id===r||s.isPinned),activeTabId:r}))},closeAllTabs:()=>{e(r=>{const n=r.tabs.filter(s=>s.isPinned);return{tabs:n,activeTabId:n.length>0?n[0].id:null}})},closeTabsToRight:r=>{e(n=>{const s=n.tabs.findIndex(a=>a.id===r);if(s<0)return n;const l=n.tabs.filter((a,o)=>o<=s||a.isPinned),d=l.some(a=>a.id===n.activeTabId);return{tabs:l,activeTabId:d?n.activeTabId:r}})},closeSavedTabs:()=>{e(r=>{const n=r.tabs.filter(l=>l.isPinned||l.isDirty),s=n.some(l=>l.id===r.activeTabId);return{tabs:n,activeTabId:s?r.activeTabId:n.length>0?n[0].id:null}})},setActiveTab:r=>{const n=t().tabs.find(s=>s.id===r);e({activeTabId:r,selectedPath:(n==null?void 0:n.path)||null})},updateTabContent:(r,n)=>{e(s=>({tabs:s.tabs.map(l=>l.id===r?{...l,content:n,isDirty:n!==l.originalContent}:l)}))},saveTab:async r=>{const n=t().tabs.find(s=>s.id===r);if(!(!n||!n.isDirty))try{await bd(n.path,n.content),e(s=>({tabs:s.tabs.map(l=>l.id===r?{...l,originalContent:l.content,isDirty:!1}:l)}))}catch{}},deleteSelected:async()=>{const{selectedPaths:r,tabs:n}=t();if(r.size===0)return;const s=[...r],l=new Set(s.map(d=>d.substring(0,d.lastIndexOf("/"))));try{await Promise.all(s.map(a=>w_(a)));const d=n.filter(a=>!s.some(o=>a.path===o||a.path.startsWith(o+"/")));e(a=>({selectedPaths:new Set,selectedPath:null,tabs:d,activeTabId:d.length>0?d.find(o=>o.id===a.activeTabId)?a.activeTabId:d[0].id:null}));for(const a of l)await t().loadDirectory(a)}catch{for(const d of l)await t().loadDirectory(d)}},moveToDirectory:async(r,n)=>{if(r.length===0)return;const s=new Set(r.map(l=>l.substring(0,l.lastIndexOf("/"))));s.add(n);try{for(const l of r){const d=l.substring(l.lastIndexOf("/")+1),a=n+"/"+d;l!==a&&await yd(l,a)}e({selectedPaths:new Set,selectedPath:null});for(const l of s)await t().loadDirectory(l)}catch{for(const l of s)await t().loadDirectory(l)}},revealInTree:async r=>{const{rootPath:n}=t();if(!n||!r.startsWith(n))return;const l=r.slice(n.length).replace(/^\//,"").split("/").filter(Boolean),d=new Set(t().expandedPaths);let a=n;d.add(n);for(const o of l)if(a=a+"/"+o,a!==r){d.add(a);const{tree:c}=t();if(c){const m=b=>{if(b.path===a)return b;if(b.children)for(const v of b.children){const S=m(v);if(S)return S}return null},h=m(c);h&&h.type==="directory"&&!h.children&&await t().loadDirectory(a)}}bn([...d]),e({expandedPaths:d,selectedPath:r})},reorderTabs:(r,n)=>{e(s=>{const l=[...s.tabs],[d]=l.splice(r,1);return l.splice(n,0,d),{tabs:l}})},pinTab:r=>{e(n=>{const s=n.tabs.findIndex(o=>o.id===r);if(s<0)return n;const l=[...n.tabs];l[s]={...l[s],isPinned:!0};const[d]=l.splice(s,1),a=l.reduce((o,c,m)=>c.isPinned?m:o,-1);return l.splice(a+1,0,d),{tabs:l}})},unpinTab:r=>{e(n=>({tabs:n.tabs.map(s=>s.id===r?{...s,isPinned:!1}:s)}))},setSplitRatio:r=>{const n=Math.max(.12,Math.min(.5,r));$_(n),e({splitRatio:n})}}));function P_(e){return[...e].sort((t,r)=>t.type==="directory"&&r.type!=="directory"?-1:t.type!=="directory"&&r.type==="directory"?1:t.name.localeCompare(r.name,void 0,{numeric:!0,sensitivity:"base"}))}function B_({filePath:e,rootPath:t,onSegmentClick:r,onOpenFile:n}){const l=(e.startsWith(t)?e.slice(t.length).replace(/^\//,""):e).split("/").filter(Boolean),[d,a]=C.useState(null),[o,c]=C.useState([]),[m,h]=C.useState(!1),[b,v]=C.useState(-1),S=C.useRef(null),x=C.useRef(null),p=C.useCallback(async(k,_)=>{const E=_.getBoundingClientRect();a({dirPath:k,anchorRect:E}),h(!0),c([]),v(-1);try{const w=await Et(k);c(P_(w.map(N=>({name:N.name,path:N.path,type:N.type}))))}catch{c([])}h(!1)},[]),g=C.useCallback(()=>{a(null),c([]),v(-1)},[]),u=C.useCallback(k=>{k.type==="directory"?(r(k.path),g()):(n(k.path),g())},[r,n,g]);C.useEffect(()=>{if(!d)return;const k=_=>{if(_.key==="Escape"){_.preventDefault(),g();return}_.key==="ArrowDown"?(_.preventDefault(),v(E=>E<o.length-1?E+1:0)):_.key==="ArrowUp"?(_.preventDefault(),v(E=>E>0?E-1:o.length-1)):_.key==="Enter"&&b>=0&&b<o.length&&(_.preventDefault(),u(o[b]))};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[d,o,b,g,u]),C.useEffect(()=>{var k;b>=0&&x.current&&((k=x.current.querySelectorAll(".breadcrumb-dropdown-item")[b])==null||k.scrollIntoView({block:"nearest"}))},[b]);const f=C.useCallback((k,_)=>{k.stopPropagation();const E=k.currentTarget;d&&d.dirPath===_?g():p(_,E)},[d,p,g]),y=C.useCallback((k,_)=>{k.stopPropagation();const E=k.currentTarget;d&&d.dirPath===_?g():p(_,E)},[d,p,g]);return i.jsxs("div",{className:"editor-breadcrumbs",children:[i.jsx("span",{style:{display:"inline-flex",alignItems:"center"},children:i.jsx("span",{className:`editor-breadcrumb-segment ${l.length===0?"active":""}`,onClick:k=>f(k,t),children:i.jsx("span",{children:t.split("/").pop()||t})})}),l.map((k,_)=>{const E=_===l.length-1,w=t+"/"+l.slice(0,_+1).join("/"),N=_===0?t:t+"/"+l.slice(0,_).join("/");return i.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[i.jsx("span",{className:"editor-breadcrumb-separator",children:i.jsx(De,{size:10})}),i.jsxs("span",{className:`editor-breadcrumb-segment ${E?"active":""} ${(d==null?void 0:d.dirPath)===(E?N:w)?"dropdown-open":""}`,onClick:I=>E?y(I,N):f(I,w),children:[E&&i.jsx(wt,{name:k,type:"file",size:14}),i.jsx("span",{style:E?{fontWeight:500}:void 0,children:k})]})]},w)}),d&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"breadcrumb-dropdown-overlay",onClick:g}),i.jsx("div",{ref:S,className:"breadcrumb-dropdown",style:{left:Math.min(d.anchorRect.left,window.innerWidth-260),top:d.anchorRect.bottom+2},children:m?i.jsx("div",{className:"breadcrumb-dropdown-loading",children:i.jsx(ve,{size:14,className:"animate-spin"})}):o.length===0?i.jsx("div",{className:"breadcrumb-dropdown-empty",children:"Empty"}):i.jsx("div",{className:"breadcrumb-dropdown-list",ref:x,children:o.map((k,_)=>{const E=k.path===e,w=_===b;return i.jsxs("div",{className:`breadcrumb-dropdown-item ${E?"current":""} ${w?"highlighted":""}`,onClick:()=>u(k),children:[k.type==="directory"?i.jsx(De,{size:12,style:{flexShrink:0,opacity:.5}}):i.jsx(wt,{name:k.name,type:k.type,size:16}),i.jsx("span",{className:"breadcrumb-dropdown-item-name",children:k.name})]},k.path)})})})]})]})}function U_({path:e,content:t,language:r,onContentChange:n,onSave:s,minimap:l=!0,onCursorChange:d}){const{t:a}=ie(),{resolved:o}=tt(),c=C.useRef(null),m=C.useRef(d);m.current=d;const h=o==="dark"?"vs-dark":"vs",b=C.useCallback((S,x)=>{c.current=S,S.addCommand(x.KeyMod.CtrlCmd|x.KeyCode.KeyS,()=>{s()});const p=()=>{const g=m.current;if(!g)return;const u=S.getPosition(),f=S.getSelection();if(!u)return;let y=0,k=0;if(f&&!f.isEmpty()){const _=S.getModel();_&&(y=_.getValueInRange(f).length,k=Math.abs(f.endLineNumber-f.startLineNumber)+1)}g(u.lineNumber,u.column,y,k)};S.onDidChangeCursorPosition(p),S.onDidChangeCursorSelection(p),p()},[s]),v=C.useCallback(S=>{S!==void 0&&n(S)},[n]);return C.useEffect(()=>{const S=c.current;if(S){const x=S.getModel();x&&x.getValue()!==t&&x.setValue(t)}},[e,t]),i.jsx(Kf,{height:"100%",language:r,theme:h,value:t,onChange:v,onMount:b,loading:i.jsxs("div",{className:"flex items-center justify-center h-full gap-2",style:{color:"var(--color-text-tertiary)"},children:[i.jsx(ve,{size:16,className:"animate-spin"}),i.jsx("span",{style:{fontSize:13},children:a("editor.loading")})]}),options:{fontSize:13,fontFamily:"'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace",lineHeight:20,minimap:{enabled:l,maxColumn:80},scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:"off",tabSize:4,insertSpaces:!0,renderWhitespace:"selection",bracketPairColorization:{enabled:!0},padding:{top:8},smoothScrolling:!0,cursorBlinking:"smooth",cursorSmoothCaretAnimation:"on",fixedOverflowWidgets:!0}},e)}const xd={image:"Image",svg:"SVG",markdown:"Markdown Preview",pdf:"PDF",binary:"Binary"};function Sd({language:e,cursorLine:t,cursorColumn:r,selectedCount:n,selectedLines:s,viewMode:l="editor",imageInfo:d,zoom:a,extraRight:o}){const{t:c}=ie();if(l==="image"||l==="svg")return i.jsxs("div",{className:"editor-statusbar",children:[i.jsx("div",{className:"editor-statusbar-left",children:d&&i.jsxs("span",{className:"editor-statusbar-item",children:[d.width," × ",d.height]})}),i.jsxs("div",{className:"editor-statusbar-right",children:[a!=null&&i.jsxs("span",{className:"editor-statusbar-item",children:[Math.round(a*100),"%"]}),i.jsx("span",{className:"editor-statusbar-item",children:xd[l]}),o]})]});if(l!=="editor")return i.jsxs("div",{className:"editor-statusbar",children:[i.jsx("div",{className:"editor-statusbar-left"}),i.jsxs("div",{className:"editor-statusbar-right",children:[i.jsx("span",{className:"editor-statusbar-item",children:xd[l]||l}),o]})]});const m=`Ln ${t}, Col ${r}`,h=n&&n>0?s&&s>1?` (${n} ${c("editor.selected")}, ${s} ${c("editor.lines")})`:` (${n} ${c("editor.selected")})`:"";return i.jsxs("div",{className:"editor-statusbar",children:[i.jsx("div",{className:"editor-statusbar-left",children:i.jsxs("span",{className:"editor-statusbar-item",children:[m,h]})}),i.jsxs("div",{className:"editor-statusbar-right",children:[i.jsx("span",{className:"editor-statusbar-item",children:e}),i.jsx("span",{className:"editor-statusbar-item",children:"UTF-8"}),i.jsx("span",{className:"editor-statusbar-item",children:"LF"}),i.jsx("span",{className:"editor-statusbar-item",children:"Spaces: 4"}),o]})]})}function kd({actions:e}={}){const{t}=ie(),{tabs:r,activeTabId:n,rootPath:s,setActiveTab:l,closeTab:d,closeOtherTabs:a,closeAllTabs:o,closeTabsToRight:c,closeSavedTabs:m,reorderTabs:h,pinTab:b,unpinTab:v}=Dt(),[S,x]=C.useState(null),p=C.useRef(null),[g,u]=C.useState(null),f=C.useRef(-1),y=C.useRef(null),[k,_]=C.useState(!1),[E,w]=C.useState(!1),N=C.useMemo(()=>F_(r),[r]),I=C.useCallback(()=>{const W=y.current;W&&(_(W.scrollLeft>0),w(W.scrollLeft+W.clientWidth<W.scrollWidth-1))},[]);C.useEffect(()=>{const W=y.current;if(!W)return;I(),W.addEventListener("scroll",I,{passive:!0});const Y=new ResizeObserver(I);return Y.observe(W),()=>{W.removeEventListener("scroll",I),Y.disconnect()}},[I,r.length]);const A=C.useCallback(()=>{var W;(W=y.current)==null||W.scrollBy({left:-150,behavior:"smooth"})},[]),M=C.useCallback(()=>{var W;(W=y.current)==null||W.scrollBy({left:150,behavior:"smooth"})},[]),O=C.useCallback((W,Y)=>{W.preventDefault(),x({x:W.clientX,y:W.clientY,tabId:Y})},[]),B=C.useCallback(()=>{x(null)},[]),F=C.useCallback((W,Y)=>{W.button===1&&(W.preventDefault(),d(Y))},[d]),z=C.useCallback((W,Y)=>{f.current=Y,W.dataTransfer.effectAllowed="move",W.currentTarget instanceof HTMLElement&&W.dataTransfer.setDragImage(W.currentTarget,0,0)},[]),P=C.useCallback((W,Y)=>{W.preventDefault(),W.dataTransfer.dropEffect="move",u(Y)},[]),U=C.useCallback((W,Y)=>{W.preventDefault();const V=f.current;V>=0&&V!==Y&&h(V,Y),f.current=-1,u(null)},[h]),T=C.useCallback(()=>{f.current=-1,u(null)},[]),L=C.useCallback(W=>{const Y=r.find(V=>V.id===W);Y&&navigator.clipboard.writeText(Y.path),B()},[r,B]),$=C.useCallback(W=>{const Y=r.find(V=>V.id===W);if(Y&&s){const V=Y.path.startsWith(s+"/")?Y.path.slice(s.length+1):Y.path;navigator.clipboard.writeText(V)}else Y&&navigator.clipboard.writeText(Y.path);B()},[r,s,B]),R=C.useCallback(W=>{const Y=r.find(V=>V.id===W);if(Y){const{selectPath:V,toggleExpand:H,expandedPaths:D}=Dt.getState(),X=Y.path.split("/");for(let K=1;K<X.length;K++){const ee=X.slice(0,K).join("/");ee&&!D.has(ee)&&H(ee)}V(Y.path)}B()},[r,B]);if(r.length===0)return null;const q=S?r.find(W=>W.id===S.tabId):null;return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"editor-tabs-wrapper",children:[k&&i.jsx("button",{className:"editor-tabs-scroll-btn",onClick:A,children:i.jsx(Sh,{size:14})}),i.jsx("div",{className:"editor-tabs",ref:y,children:r.map((W,Y)=>i.jsxs("div",{className:`editor-tab${W.id===n?" active":""}${g===Y?" drag-indicator":""}`,onClick:()=>l(W.id),onMouseDown:V=>F(V,W.id),onContextMenu:V=>O(V,W.id),title:W.path,draggable:!0,onDragStart:V=>z(V,Y),onDragOver:V=>P(V,Y),onDrop:V=>U(V,Y),onDragEnd:T,children:[i.jsx(wt,{name:W.name,type:"file",size:14}),i.jsx("span",{className:"editor-tab-name",children:W.name}),N.get(W.id)&&i.jsx("span",{className:"editor-tab-description",children:N.get(W.id)}),W.isPinned?W.isDirty?i.jsx("span",{className:"dirty-dot"}):i.jsx("span",{className:"pin-icon",children:i.jsx(Zm,{size:14})}):W.isDirty?i.jsx("span",{className:"dirty-dot"}):i.jsx("button",{className:"close-btn",onClick:V=>{V.stopPropagation(),d(W.id)},children:i.jsx(Ue,{size:12})})]},W.id))}),E&&i.jsx("button",{className:"editor-tabs-scroll-btn",onClick:M,children:i.jsx(De,{size:14})}),e&&i.jsx("div",{className:"editor-tabs-actions",children:e})]}),S&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"editor-context-overlay",onClick:B}),i.jsxs("div",{ref:p,className:"editor-context-menu",style:{left:S.x,top:S.y},children:[q!=null&&q.isPinned?i.jsx("button",{onClick:()=>{v(S.tabId),B()},children:t("editor.unpin")}):i.jsx("button",{onClick:()=>{b(S.tabId),B()},children:t("editor.pin")}),i.jsx("div",{className:"editor-context-separator"}),i.jsx("button",{onClick:()=>L(S.tabId),children:t("editor.copyPath")}),i.jsx("button",{onClick:()=>$(S.tabId),children:t("editor.copyRelativePath")}),i.jsx("button",{onClick:()=>R(S.tabId),children:t("editor.revealInExplorer")}),i.jsx("div",{className:"editor-context-separator"}),i.jsx("button",{onClick:()=>{d(S.tabId),B()},children:t("editor.close")}),i.jsx("button",{onClick:()=>{a(S.tabId),B()},children:t("editor.closeOthers")}),i.jsx("button",{onClick:()=>{c(S.tabId),B()},children:t("editor.closeToRight")}),i.jsx("button",{onClick:()=>{m(),B()},children:t("editor.closeSaved")}),i.jsx("button",{onClick:()=>{o(),B()},children:t("editor.closeAll")})]})]})]})}const z_=br;function pc(e){return`/api/v1/files/download?path=${encodeURIComponent(e)}`}function wd({path:e,onImageInfo:t,onZoomChange:r}){const n=C.useRef(null),s=C.useRef(null),[l,d]=C.useState("fit"),[a,o]=C.useState(null),[c,m]=C.useState(!1),[h,b]=C.useState({x:0,y:0}),v=C.useRef({x:0,y:0,tx:0,ty:0}),S=C.useCallback(()=>{if(!n.current||!a)return 1;const I=n.current.clientWidth-40,A=n.current.clientHeight-80;return I<=0||A<=0?1:Math.min(I/a.w,A/a.h,1)},[a]),x=l==="fit"?S():l,p=C.useCallback(()=>{const I=s.current;if(!I)return;const A=I.naturalWidth,M=I.naturalHeight;o({w:A,h:M}),t==null||t({width:A,height:M})},[t]);C.useEffect(()=>{r==null||r(x)},[x,r]);const g=C.useCallback(I=>{!I.ctrlKey&&!I.metaKey||(I.preventDefault(),d(A=>{const M=A==="fit"?S():A,O=I.deltaY<0?.1:-.1;return Math.min(5,Math.max(.1,M+O))}))},[S]),u=C.useCallback(I=>{l!=="fit"&&(I.preventDefault(),m(!0),v.current={x:I.clientX,y:I.clientY,tx:h.x,ty:h.y})},[l,h]),f=C.useCallback(I=>{if(!c)return;const A=I.clientX-v.current.x,M=I.clientY-v.current.y;b({x:v.current.tx+A,y:v.current.ty+M})},[c]),y=C.useCallback(()=>{m(!1)},[]),k=()=>d(I=>Math.min(5,(I==="fit"?S():I)+.1)),_=()=>d(I=>Math.max(.1,(I==="fit"?S():I)-.1)),E=()=>{d("fit"),b({x:0,y:0})},w=()=>{d(1),b({x:0,y:0})},N=x>=3;return i.jsxs("div",{ref:n,className:"file-preview-image-container checkerboard",onWheel:g,onMouseDown:u,onMouseMove:f,onMouseUp:y,onMouseLeave:y,style:{cursor:l!=="fit"?c?"grabbing":"grab":"default"},children:[i.jsx("img",{ref:s,src:pc(e),alt:e,onLoad:p,className:N?"pixelated":"",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${x})`,transformOrigin:"center center",maxWidth:"none",maxHeight:"none",userSelect:"none",pointerEvents:"none"},draggable:!1}),i.jsxs("div",{className:"image-zoom-toolbar",children:[i.jsx("button",{onClick:_,title:"Zoom Out",children:i.jsx(Pm,{size:16})}),i.jsxs("span",{className:"image-zoom-label",children:[Math.round(x*100),"%"]}),i.jsx("button",{onClick:k,title:"Zoom In",children:i.jsx(ht,{size:16})}),i.jsx("button",{onClick:E,title:"Fit to Window",children:i.jsx(uu,{size:16})}),i.jsx("button",{onClick:w,title:"Actual Size (1:1)",children:i.jsx(ug,{size:16})})]})]})}function H_({className:e,children:t}){const r=tt(l=>l.resolved),n=(e||"").match(/language-(\w+)/),s=String(t).replace(/\n$/,"");return n?i.jsx("div",{className:"relative group my-3",children:i.jsx(z_,{style:r==="dark"?Jr:Qr,language:n[1],PreTag:"div",customStyle:{margin:0,borderRadius:"8px",fontSize:"13px",lineHeight:"1.6"},children:s})}):i.jsx("code",{className:"bg-[var(--color-bg-tertiary)] px-1.5 py-0.5 rounded text-[13px]",children:t})}function G_({content:e}){return i.jsx("div",{className:"file-preview-markdown",children:i.jsx("div",{className:"file-preview-markdown-content",children:i.jsx(Pt,{remarkPlugins:[Bt],components:{code:H_},children:e})})})}function W_({path:e}){return i.jsx("iframe",{src:pc(e),className:"file-preview-pdf",title:"PDF Preview"})}function q_({path:e,name:t}){const{t:r}=ie();return i.jsxs("div",{className:"file-preview-binary",children:[i.jsx(su,{size:48,className:"text-[var(--color-text-tertiary)]"}),i.jsx("div",{className:"mt-4 text-lg font-medium text-[var(--color-text-primary)]",children:t}),i.jsx("div",{className:"mt-2 text-sm text-[var(--color-text-secondary)]",children:r("filePreview.binaryNotSupported")}),i.jsxs("a",{href:pc(e),download:t,className:"mt-4 inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-[var(--color-bg-tertiary)] text-[var(--color-text-primary)] hover:bg-[var(--color-bg-quaternary)] transition-colors text-sm",children:[i.jsx(nu,{size:16}),r("filePreview.download")]})]})}function V_({path:e,name:t,content:r,viewMode:n,onImageInfo:s,onZoomChange:l}){switch(n){case"image":return i.jsx(wd,{path:e,onImageInfo:s,onZoomChange:l});case"svg":return i.jsx(wd,{path:e,onImageInfo:s,onZoomChange:l});case"markdown":return i.jsx(G_,{content:r});case"pdf":return i.jsx(W_,{path:e});case"binary":return i.jsx(q_,{path:e,name:t});default:return null}}function bp({node:e,depth:t,isExpanded:r,isSelected:n,isMultiSelected:s,isRenaming:l,expandedPaths:d,selectedPath:a,selectedPaths:o,renamingPath:c,onToggleExpand:m,onSelect:h,onOpenFile:b,onConfirmRename:v,onCancelRename:S,onContextMenu:x,onDragStart:p,onDrop:g}){var $;const u=e.type==="directory",f=12+t*12,[y,k]=C.useState(e.name),_=C.useRef(null),[E,w]=C.useState(!1);C.useEffect(()=>{if(l&&_.current){k(e.name),_.current.focus();const R=e.name.lastIndexOf(".");!u&&R>0?_.current.setSelectionRange(0,R):_.current.select()}},[l,e.name,u]);const N=C.useCallback(R=>{l||(h(e.path,{ctrl:R.ctrlKey||R.metaKey,shift:R.shiftKey}),u?m(e.path):!R.ctrlKey&&!R.metaKey&&!R.shiftKey&&b(e.path,e.name))},[l,e.path,u,e.name,h,m,b]),I=C.useCallback(()=>{l||u||b(e.path,e.name)},[l,u,e.path,e.name,b]),A=C.useCallback(R=>{R.stopPropagation(),R.key==="Enter"?(R.preventDefault(),v(e.path,y)):R.key==="Escape"&&(R.preventDefault(),S())},[e.path,y,v,S]),M=C.useCallback(()=>{v(e.path,y)},[e.path,y,v]),O=C.useCallback(R=>{R.preventDefault(),x(R,e.path)},[x,e.path]),B=C.useCallback(R=>{const q=s?[...o]:[e.path];R.dataTransfer.effectAllowed="move",R.dataTransfer.setData("text/plain",JSON.stringify(q)),p(q)},[s,o,e.path,p]),F=C.useCallback(R=>{u&&(R.preventDefault(),R.dataTransfer.dropEffect="move",w(!0))},[u]),z=C.useCallback(()=>{w(!1)},[]),P=C.useCallback(R=>{R.preventDefault(),w(!1),u&&g(e.path)},[u,e.path,g]),U=n||s,T=12,L=12;return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`file-tree-item ${U?"selected":""} ${E?"drag-over":""}`,onClick:N,onDoubleClick:I,onContextMenu:O,draggable:!l,onDragStart:B,onDragOver:F,onDragLeave:z,onDrop:P,"data-path":e.path,title:e.path,children:[Array.from({length:t},(R,q)=>i.jsx("span",{className:"file-tree-indent-guide",style:{left:L+q*T+6}},q)),i.jsx("span",{style:{width:f,flexShrink:0}}),u?e.isLoading?i.jsx(ve,{size:16,className:"file-tree-chevron animate-spin"}):i.jsx(De,{size:16,className:`file-tree-chevron ${r?"expanded":""}`}):i.jsx(wt,{name:e.name,type:e.type,isExpanded:r,size:16}),l?i.jsx("input",{ref:_,className:"file-tree-rename-input",value:y,onChange:R=>k(R.target.value),onKeyDown:A,onBlur:M,onClick:R=>R.stopPropagation()}):i.jsx("span",{className:"file-tree-item-name",children:e.name})]}),u&&r&&(($=e.children)==null?void 0:$.map(R=>i.jsx(bp,{node:R,depth:t+1,isExpanded:d.has(R.path),isSelected:a===R.path,isMultiSelected:o.has(R.path),isRenaming:c===R.path,expandedPaths:d,selectedPath:a,selectedPaths:o,renamingPath:c,onToggleExpand:m,onSelect:h,onOpenFile:b,onConfirmRename:v,onCancelRename:S,onContextMenu:x,onDragStart:p,onDrop:g},R.path)))]})}function K_({initialPath:e,onSelect:t,onClose:r}){const{t:n}=ie(),[s,l]=C.useState(e||"/"),[d,a]=C.useState([]),[o,c]=C.useState(!0),[m,h]=C.useState(null),[b,v]=C.useState(!1),S=C.useRef(null),x=C.useCallback(async y=>{c(!0),h(null);try{const _=(await Et(y,1)).filter(E=>E.type==="directory").sort((E,w)=>E.name.localeCompare(w.name,void 0,{numeric:!0,sensitivity:"base"}));a(_),l(y)}catch{const k=y.replace(/\/[^/]+\/?$/,"")||"/";if(k!==y&&k.length>0)try{const E=(await Et(k,1)).filter(w=>w.type==="directory").sort((w,N)=>w.name.localeCompare(N.name,void 0,{numeric:!0,sensitivity:"base"}));a(E),l(k),c(!1);return}catch{}h(n("editor.loadError"))}finally{c(!1)}},[n]);C.useEffect(()=>{x(s)},[]);const p=C.useCallback(()=>{const y=s.replace(/\/[^/]+\/?$/,"")||"/";x(y)},[s,x]),g=C.useCallback(y=>{x(y)},[x]),u=C.useCallback(()=>{t(s)},[s,t]),f=C.useCallback(y=>{const k=y.trim();k&&x(k),v(!1)},[x]);return C.useEffect(()=>{b&&S.current&&(S.current.focus(),S.current.select())},[b]),C.useEffect(()=>{const y=k=>{k.key==="Escape"&&r()};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[r]),i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"fixed inset-0 z-50 bg-black/40",onClick:r}),i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:y=>y.target===y.currentTarget&&r(),children:i.jsxs("div",{className:"bg-bg-primary border border-border-default rounded-xl shadow-xl flex flex-col",style:{width:"480px",maxWidth:"90vw",maxHeight:"70vh"},children:[i.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border-muted/30",children:[i.jsx("span",{className:"text-sm font-medium text-text-primary",children:n("editor.openFolder")}),i.jsx("button",{className:"text-text-tertiary hover:text-text-primary",onClick:r,children:i.jsx(Ue,{size:16})})]}),i.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-2 border-b border-border-muted/30",children:[i.jsx("button",{className:"p-1 rounded hover:bg-bg-hover text-text-tertiary hover:text-text-primary flex-shrink-0",onClick:p,title:n("editor.parentFolder"),children:i.jsx(Nn,{size:14})}),b?i.jsx("input",{ref:S,type:"text",defaultValue:s,className:"flex-1 px-1.5 py-0.5 text-xs font-mono bg-bg-secondary border border-accent-brand rounded outline-none",onKeyDown:y=>{y.key==="Enter"&&f(y.target.value),y.key==="Escape"&&v(!1)},onBlur:y=>f(y.target.value)}):i.jsx("button",{className:"flex-1 text-left text-xs font-mono text-text-secondary truncate px-1.5 py-0.5 rounded hover:bg-bg-hover",onClick:()=>v(!0),title:s,children:s})]}),i.jsxs("div",{className:"flex-1 overflow-y-auto min-h-[200px]",children:[o&&i.jsx("div",{className:"flex items-center justify-center py-8 text-text-tertiary",children:i.jsx(ve,{size:16,className:"animate-spin"})}),m&&i.jsx("div",{className:"px-4 py-3 text-xs text-accent-red",children:m}),!o&&!m&&d.length===0&&i.jsx("div",{className:"px-4 py-8 text-center text-xs text-text-tertiary",children:n("editor.emptyFolder")}),!o&&!m&&d.map(y=>i.jsxs("button",{className:"flex items-center gap-2 w-full px-4 py-1.5 text-left text-sm text-text-primary hover:bg-bg-hover/50 cursor-pointer",onClick:()=>g(y.path),children:[i.jsx(lm,{size:14,className:"text-text-tertiary flex-shrink-0"}),i.jsx("span",{className:"truncate",children:y.name}),i.jsx(De,{size:12,className:"text-text-tertiary flex-shrink-0 ml-auto"})]},y.path))]}),i.jsxs("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t border-border-muted/30",children:[i.jsx("button",{className:"px-3 py-1.5 text-xs rounded-md text-text-secondary hover:bg-bg-hover border border-border-muted",onClick:r,children:n("editor.close")}),i.jsx("button",{className:"px-3 py-1.5 text-xs rounded-md bg-accent-brand text-white hover:opacity-90",onClick:u,children:n("editor.openFolder")})]})]})})]})}function Ed({onMenuClick:e}){var ue,se,Ne;const{t}=ie(),r=jt(re=>re.info),{rootPath:n,tree:s,treeLoading:l,expandedPaths:d,selectedPath:a,selectedPaths:o,renamingPath:c,setRootPath:m,toggleExpand:h,selectPath:b,openFile:v,refreshTree:S,collapseAll:x,createNewFile:p,createNewFolder:g,startRename:u,startCreateFile:f,startCreateFolder:y,confirmRename:k,cancelRename:_,deleteSelected:E,moveToDirectory:w}=Dt(),[N,I]=C.useState(!1),[A,M]=C.useState(!1),[O,B]=C.useState(!1),F=C.useRef(null),[z,P]=C.useState(null),U=C.useRef([]);C.useEffect(()=>{const re=Wu().has("path");r!=null&&r.cwd&&!n&&!re&&m(r.cwd)},[r==null?void 0:r.cwd,n,m]);const T=C.useCallback(re=>{B(!1),m(re)},[m]),L=C.useCallback((re,le)=>{v(re,le)},[v]),$=C.useCallback((re,le)=>{k(re,le)},[k]),R=C.useCallback((re,le)=>{re.preventDefault(),o.has(le)||b(le),P({x:re.clientX,y:re.clientY,path:le})},[o,b]),q=C.useCallback(()=>P(null),[]),W=C.useCallback(()=>{z&&(u(z.path),P(null))},[z,u]),Y=C.useCallback(()=>{P(null),E()},[E]),V=C.useCallback((re,le)=>{if(!re)return null;if(re.path===le)return re;if(re.children)for(const Se of re.children){const Ie=V(Se,le);if(Ie)return Ie}return null},[]),H=z?((ue=V(s,z.path))==null?void 0:ue.type)==="directory":!1,D=C.useCallback(()=>{if(z){const re=V(s,z.path),le=(re==null?void 0:re.type)==="directory"?z.path:z.path.substring(0,z.path.lastIndexOf("/"));if(le){d.has(le)||h(le);const Se=le+"/__new_file__";f(Se)}P(null)}},[z,s,d,h,f,V]),X=C.useCallback(()=>{if(z){const re=V(s,z.path),le=(re==null?void 0:re.type)==="directory"?z.path:z.path.substring(0,z.path.lastIndexOf("/"));if(le){d.has(le)||h(le);const Se=le+"/__new_folder__";y(Se)}P(null)}},[z,s,d,h,y,V]),K=C.useCallback(()=>{z&&(navigator.clipboard.writeText(z.path).catch(()=>{}),P(null))},[z]),ee=C.useCallback(()=>{if(z&&n){const re=z.path.startsWith(n+"/")?z.path.slice(n.length+1):z.path;navigator.clipboard.writeText(re).catch(()=>{}),P(null)}},[z,n]),te=C.useCallback(re=>{U.current=re},[]),oe=C.useCallback(re=>{U.current.length>0&&(w(U.current,re),U.current=[])},[w]),he=C.useCallback(re=>{var Ie,xe,Ve,J;if(c||!s)return;const le=uc(s,d);if(le.length===0)return;const Se=a?le.indexOf(a):-1;switch(re.key){case"ArrowDown":{re.preventDefault();const ne=Se<le.length-1?Se+1:0;b(le[ne],{shift:re.shiftKey}),(xe=(Ie=F.current)==null?void 0:Ie.querySelector(`[data-path="${CSS.escape(le[ne])}"]`))==null||xe.scrollIntoView({block:"nearest"});break}case"ArrowUp":{re.preventDefault();const ne=Se>0?Se-1:le.length-1;b(le[ne],{shift:re.shiftKey}),(J=(Ve=F.current)==null?void 0:Ve.querySelector(`[data-path="${CSS.escape(le[ne])}"]`))==null||J.scrollIntoView({block:"nearest"});break}case"ArrowRight":{re.preventDefault(),a&&!d.has(a)&&h(a);break}case"ArrowLeft":{re.preventDefault(),a&&d.has(a)&&h(a);break}case"Enter":{re.preventDefault(),a&&u(a);break}case"Delete":case"Backspace":{re.preventDefault(),o.size>0&&E();break}case" ":{if(re.preventDefault(),a){const ne=Le=>{if(!Le)return null;if(Le.path===a)return Le;if(Le.children)for(const at of Le.children){const Ge=ne(at);if(Ge)return Ge}return null},fe=ne(s);(fe==null?void 0:fe.type)==="directory"?h(a):fe&&v(fe.path,fe.name)}break}}},[s,d,a,o,c,b,h,u,v,E]),ge=(s==null?void 0:s.name)||(n==null?void 0:n.split("/").pop())||"WORKSPACE";return i.jsxs("div",{className:"file-tree",ref:F,tabIndex:0,onKeyDown:he,onClick:()=>{var re;return(re=F.current)==null?void 0:re.focus()},children:[i.jsxs("div",{className:"file-tree-title-bar",children:[e&&i.jsx("button",{className:"file-tree-title-menu",onClick:e,title:t("editor.toggleSidebar"),children:i.jsx(ni,{size:16})}),i.jsx("span",{className:"file-tree-title-text",children:t("editor.explorer")})]}),i.jsxs("div",{className:"file-tree-section-header",onClick:()=>I(!N),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[N?i.jsx(De,{size:12,style:{flexShrink:0}}):i.jsx(it,{size:12,style:{flexShrink:0}}),i.jsx("span",{className:"file-tree-section-name",children:ge.toUpperCase()}),A&&!N&&i.jsxs("div",{className:"file-tree-section-actions",onClick:re=>re.stopPropagation(),children:[i.jsx("button",{className:"file-tree-section-action",onClick:p,title:t("editor.newFile"),children:i.jsx(Zh,{size:14})}),i.jsx("button",{className:"file-tree-section-action",onClick:g,title:t("editor.newFolder"),children:i.jsx(am,{size:14})}),i.jsx("button",{className:"file-tree-section-action",onClick:()=>B(!0),title:t("editor.openFolder"),children:i.jsx(ei,{size:14})}),i.jsx("button",{className:"file-tree-section-action",onClick:S,title:t("editor.refresh"),children:i.jsx(st,{size:14})}),i.jsx("button",{className:"file-tree-section-action",onClick:x,title:t("editor.collapseAll"),children:i.jsx(Ph,{size:14})})]})]}),O&&i.jsx(K_,{initialPath:n||(r==null?void 0:r.cwd)||"/",onSelect:T,onClose:()=>B(!1)}),!N&&i.jsxs("div",{className:"file-tree-content",children:[l&&!s&&i.jsx("div",{className:"file-tree-loading",children:i.jsx(ve,{size:16,className:"animate-spin"})}),(se=s==null?void 0:s.children)==null?void 0:se.map(re=>i.jsx(bp,{node:re,depth:0,isExpanded:d.has(re.path),isSelected:a===re.path,isMultiSelected:o.has(re.path),isRenaming:c===re.path,expandedPaths:d,selectedPath:a,selectedPaths:o,renamingPath:c,onToggleExpand:h,onSelect:b,onOpenFile:L,onConfirmRename:$,onCancelRename:_,onContextMenu:R,onDragStart:te,onDrop:oe},re.path)),((Ne=s==null?void 0:s.children)==null?void 0:Ne.length)===0&&i.jsx("div",{className:"file-tree-empty",children:t("editor.emptyFolder")})]}),z&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"editor-context-overlay",onClick:q}),i.jsxs("div",{className:"editor-context-menu",style:{left:z.x,top:z.y},children:[H&&i.jsxs(i.Fragment,{children:[i.jsx("button",{onClick:D,children:t("editor.newFile")}),i.jsx("button",{onClick:X,children:t("editor.newFolder")}),i.jsx("div",{className:"editor-context-separator"})]}),i.jsx("button",{onClick:K,children:t("editor.copyPath")}),i.jsx("button",{onClick:ee,children:t("editor.copyRelativePath")}),i.jsx("div",{className:"editor-context-separator"}),o.size<=1&&i.jsx("button",{onClick:W,children:t("editor.rename")}),i.jsx("button",{className:"danger",onClick:Y,children:o.size>1?`${t("editor.delete")} (${o.size})`:t("editor.delete")})]})]})]})}function Y_(e,t){const r=e.toLowerCase(),n=t.toLowerCase();let s=0,l=0,d=-1;for(let a=0;a<n.length&&s<r.length;a++)n[a]===r[s]&&(l+=a===d+1?2:1,(a===0||n[a-1]==="/"||n[a-1]===".")&&(l+=3),d=a,s++);return{match:s===r.length,score:l}}const Cd=20,X_=3;function Z_({isOpen:e,onClose:t,onSelect:r,rootPath:n}){const{t:s}=ie(),[l,d]=C.useState(""),[a,o]=C.useState(0),[c,m]=C.useState([]),[h,b]=C.useState(!1),v=C.useRef(null),S=C.useRef(null),x=C.useRef(""),p=C.useRef([]),g=C.useCallback(async(y,k,_)=>{if(k>X_)return[];try{const E=await Et(y),w=[];for(const N of E){const I=_?`${_}/${N.name}`:N.name;if(N.type==="file"&&!pp(N.path))w.push({name:N.name,path:N.path,relativePath:I});else if(N.type==="directory"&&!N.name.startsWith(".")&&N.name!=="node_modules"){const A=await g(N.path,k+1,I);w.push(...A)}}return w}catch{return[]}},[]);C.useEffect(()=>{if(e){if(d(""),o(0),setTimeout(()=>{var y;return(y=v.current)==null?void 0:y.focus()},0),x.current===n&&p.current.length>0){m(p.current);return}b(!0),g(n,0,"").then(y=>{x.current=n,p.current=y,m(y),b(!1)})}},[e,n,g]);const u=C.useMemo(()=>{if(!l.trim())return c.slice(0,Cd);const y=[];for(const k of c){const _=Y_(l,k.relativePath);_.match&&y.push({entry:k,score:_.score})}return y.sort((k,_)=>_.score-k.score),y.slice(0,Cd).map(k=>k.entry)},[c,l]);C.useEffect(()=>{o(0)},[u.length,l]);const f=C.useCallback(y=>{switch(y.key){case"ArrowDown":y.preventDefault(),o(k=>(k+1)%Math.max(u.length,1));break;case"ArrowUp":y.preventDefault(),o(k=>(k-1+u.length)%Math.max(u.length,1));break;case"Enter":y.preventDefault(),u[a]&&r(u[a].path);break;case"Escape":y.preventDefault(),t();break}},[u,a,r,t]);return C.useEffect(()=>{var k;const y=(k=S.current)==null?void 0:k.children[a];y==null||y.scrollIntoView({block:"nearest"})},[a]),e?i.jsx("div",{className:"quick-open-overlay",onClick:t,children:i.jsxs("div",{className:"quick-open-dialog",onClick:y=>y.stopPropagation(),onKeyDown:f,children:[i.jsx("input",{ref:v,className:"quick-open-input",type:"text",value:l,onChange:y=>d(y.target.value),placeholder:s("editor.quickOpenPlaceholder")}),i.jsx("div",{className:"quick-open-list",ref:S,children:h?i.jsx("div",{className:"quick-open-empty",children:s("editor.quickOpenLoading")}):u.length===0?i.jsx("div",{className:"quick-open-empty",children:(l.trim(),s("editor.quickOpenEmpty"))}):u.map((y,k)=>i.jsxs("div",{className:`quick-open-item${k===a?" active":""}`,onClick:()=>r(y.path),onMouseEnter:()=>o(k),children:[i.jsx(wt,{name:y.name,type:"file",size:14}),i.jsx("span",{className:"quick-open-item-name",children:y.name}),i.jsx("span",{className:"quick-open-item-path",children:y.relativePath})]},y.path))})]})}):null}const J_=1e3;function Q_({onMenuClick:e}){const{t}=ie(),{tabs:r,activeTabId:n,splitRatio:s,setSplitRatio:l,updateTabContent:d,saveTab:a,closeTab:o,recentFiles:c}=Dt(),{setRootPath:m,openFile:h,rootPath:b,revealInTree:v}=Dt(),[S,x]=C.useState(!1),p=typeof navigator<"u"&&navigator.platform.includes("Mac"),[g,u]=C.useState(()=>window.innerWidth<768),[f,y]=C.useState(!1),k=C.useRef("");C.useEffect(()=>{const V=async()=>{if(oc()!=="editor")return;const X=Wu().get("path");if(!X||X===k.current)return;if(k.current=X,await E_(X)==="directory")await m(X);else{const ee=X.substring(0,X.lastIndexOf("/"));ee&&await m(ee),h(X)}};V();const H=()=>V();return window.addEventListener("hashchange",H),()=>window.removeEventListener("hashchange",H)},[]),C.useEffect(()=>{const V=window.matchMedia("(min-width: 768px)"),H=D=>{u(!D.matches),D.matches&&y(!1)};return V.addEventListener("change",H),()=>V.removeEventListener("change",H)},[]);const _=Dt(V=>V.tabs.length);C.useEffect(()=>{g&&n&&y(!0)},[g,n,_]);const E=r.find(V=>V.id===n)||null,w=C.useRef(),N=C.useCallback(V=>{if(n){d(n,V),clearTimeout(w.current);const H=n;w.current=setTimeout(()=>{a(H)},J_)}},[n,d,a]);C.useEffect(()=>()=>clearTimeout(w.current),[]),C.useEffect(()=>{const V=H=>{const D=H.metaKey||H.ctrlKey;D&&H.key==="p"&&!H.shiftKey&&(H.preventDefault(),x(!0)),D&&H.key==="w"&&!H.shiftKey&&(H.preventDefault(),n&&o(n))};return window.addEventListener("keydown",V),()=>window.removeEventListener("keydown",V)},[n,o]);const I=C.useCallback(()=>{clearTimeout(w.current),n&&a(n)},[n,a]),A=C.useCallback(()=>{y(!1)},[]),[M,O]=C.useState({line:1,col:1,selectedChars:0,selectedLines:0}),B=C.useCallback((V,H,D,X)=>{O({line:V,col:H,selectedChars:D,selectedLines:X})},[]),[F,z]=C.useState(null),[P,U]=C.useState(1),[T,L]=C.useState(new Set),$=(E==null?void 0:E.viewMode)==="markdown"&&T.has(E.id),R=C.useCallback(()=>{n&&L(V=>{const H=new Set(V);return H.has(n)?H.delete(n):H.add(n),H})},[n]),q=(E==null?void 0:E.viewMode)==="markdown"?$?i.jsx("button",{className:"editor-action-btn",onClick:R,title:t("editor.preview"),children:i.jsx(Qd,{size:16})}):i.jsx("button",{className:"editor-action-btn",onClick:R,title:t("editor.source"),children:i.jsx(ru,{size:16})}):null,W=E?E.viewMode==="editor"||$?i.jsx("div",{className:"editor-container",children:i.jsx(U_,{path:E.path,content:E.content,language:E.language,onContentChange:N,onSave:I,minimap:!g,onCursorChange:B})}):i.jsx(V_,{path:E.path,name:E.name,content:E.content,viewMode:E.viewMode,onImageInfo:z,onZoomChange:U}):i.jsxs("div",{className:"editor-empty",children:[i.jsx(Kh,{size:48,strokeWidth:1,style:{opacity:.12}}),i.jsx("span",{className:"editor-empty-title",children:t("editor.noFile")}),i.jsx("div",{className:"editor-empty-shortcuts",children:i.jsxs("div",{className:"editor-empty-hint",children:[i.jsxs("kbd",{children:[p?"⌘":"Ctrl","+P"]}),i.jsx("span",{children:t("editor.quickOpen")})]})}),c.length>0&&i.jsxs("div",{className:"editor-empty-recent",children:[i.jsx("span",{className:"editor-empty-recent-title",children:t("editor.recentFiles")}),c.slice(0,8).map(V=>i.jsxs("button",{className:"editor-empty-recent-item",onClick:()=>h(V.path),title:V.path,children:[i.jsx(wt,{name:V.name,type:"file",size:14}),i.jsx("span",{className:"editor-empty-recent-name",children:V.name}),i.jsx("span",{className:"editor-empty-recent-path",children:V.path.split("/").slice(-2,-1)[0]})]},V.path))]})]}),Y=S&&b&&i.jsx(Z_,{isOpen:S,onClose:()=>x(!1),onSelect:V=>{h(V),x(!1)},rootPath:b});return g?i.jsxs("div",{className:"editor-view",children:[Y,i.jsx("div",{className:"editor-sidebar editor-sidebar-mobile",children:i.jsx(Ed,{onMenuClick:e})}),i.jsx("div",{className:`editor-mobile-panel ${f?"open":""}`,children:i.jsxs("div",{className:"editor-main",children:[i.jsxs("div",{className:"editor-mobile-header",children:[i.jsx("button",{className:"editor-mobile-back",onClick:A,children:i.jsx(cr,{size:18})}),i.jsx("div",{className:"editor-mobile-tabs-wrap",children:i.jsx(kd,{actions:q})})]}),W,E&&i.jsx(Sd,{language:E.language,cursorLine:M.line,cursorColumn:M.col,selectedCount:M.selectedChars,selectedLines:M.selectedLines,viewMode:$?"editor":E.viewMode,imageInfo:F,zoom:P})]})})]}):i.jsxs("div",{className:"editor-view",children:[Y,i.jsxs(ii,{direction:"horizontal",ratio:s,onRatioChange:l,children:[i.jsx("div",{className:"editor-sidebar",children:i.jsx(Ed,{onMenuClick:e})}),i.jsxs("div",{className:"editor-main",children:[i.jsx(kd,{actions:q}),E&&b&&i.jsx(B_,{filePath:E.path,rootPath:b,onSegmentClick:v,onOpenFile:h}),W,E&&i.jsx(Sd,{language:E.language,cursorLine:M.line,cursorColumn:M.col,selectedCount:M.selectedChars,selectedLines:M.selectedLines,viewMode:$?"editor":E.viewMode,imageInfo:F,zoom:P})]})]})]})}function ev(e,t){const n=Date.now()-e,s=Math.floor(n/6e4),l=Math.floor(n/36e5),d=Math.floor(n/864e5);return t==="zh"?s<1?"刚刚":s<60?`${s} 分钟前`:l<24?`${l} 小时前`:d<30?`${d} 天前`:new Date(e).toLocaleDateString("zh-CN"):s<1?"Just now":s<60?`${s}m ago`:l<24?`${l}h ago`:d<30?`${d}d ago`:new Date(e).toLocaleDateString("en-US")}function tv({isOpen:e,onClose:t,onSwitchSession:r}){const{t:n,resolved:s}=ie(),[l,d]=C.useState([]),[a,o]=C.useState(!0),[c,m]=C.useState(null),[h,b]=C.useState(null),[v,S]=C.useState(null),[x,p]=C.useState(""),g=C.useRef(null),[u,f]=C.useState(null),y=C.useCallback(async()=>{o(!0),m(null);try{const A=await fetch("/api/v1/sessions",{headers:me()});if(!A.ok)throw new Error(`HTTP ${A.status}`);const M=await A.json(),O=M.data??M;d(O.sessions||[])}catch(A){m(A.message||"Unknown error")}finally{o(!1)}},[]);C.useEffect(()=>{e&&y()},[e,y]);const k=C.useCallback(async A=>{var M;try{const O=await fetch(`/api/v1/sessions/${encodeURIComponent(A.id)}`,{method:"DELETE",headers:me()});if(!O.ok){const B=await O.json().catch(()=>({}));throw new Error(((M=B.error)==null?void 0:M.message)||B.error||`HTTP ${O.status}`)}d(B=>B.filter(F=>F.id!==A.id))}catch(O){console.error("[history] Delete failed:",O)}finally{f(null)}},[]),_=C.useCallback(async(A,M)=>{var B;const O=M.trim();if(O)try{const F=await fetch(`/api/v1/sessions/${encodeURIComponent(A.id)}/rename`,{method:"POST",headers:me({"Content-Type":"application/json"}),body:JSON.stringify({name:O})});if(!F.ok){const z=await F.json().catch(()=>({}));throw new Error(((B=z.error)==null?void 0:B.message)||z.error||`HTTP ${F.status}`)}d(z=>z.map(P=>P.id===A.id?{...P,name:O}:P))}catch(F){console.error("[history] Rename failed:",F)}finally{S(null),p("")}},[]),E=C.useCallback((A,M)=>{M.stopPropagation(),S(A),p(A.name),setTimeout(()=>{var O;return(O=g.current)==null?void 0:O.focus()},50)},[]),w=C.useCallback((A,M)=>{M.stopPropagation(),!A.isCurrent&&f(A)},[]),N=C.useCallback(async A=>{if(!(A.isCurrent||h)){b(A.id);try{await(r==null?void 0:r(A.id)),t()}finally{b(null)}}},[h,r,t]),I=()=>a?i.jsx("div",{className:"history-loading",children:i.jsx(Qe,{size:"small",text:n("history.loading")})}):c?i.jsxs("div",{className:"history-error",children:[i.jsx("p",{className:"history-error-text",children:n("history.loadError")}),i.jsx("button",{className:"history-retry-btn",onClick:y,children:n("history.retry")})]}):l.length===0?i.jsxs("div",{className:"history-empty",children:[i.jsx(ri,{size:48,className:"text-text-tertiary"}),i.jsx("p",{className:"history-empty-title",children:n("history.noData")}),i.jsx("p",{className:"history-empty-hint",children:n("history.noDataHint")})]}):i.jsx("div",{className:"history-list",children:l.map((A,M)=>{const O=Fr(A.updatedAt),B=M>0?Fr(l[M-1].updatedAt):null,F=O!==B;return i.jsxs("div",{children:[F&&i.jsx(It,{label:Ku(A.updatedAt,s)}),i.jsxs("div",{className:`history-session-item${A.isCurrent?" current":""}${!A.isCurrent&&!h?" clickable":""}`,onClick:()=>!A.isCurrent&&!h&&N(A),children:[i.jsxs("div",{className:"history-session-info",children:[i.jsx("p",{className:"history-session-name",children:A.name}),i.jsxs("div",{className:"history-session-meta",children:[A.isCurrent&&i.jsx("span",{className:"history-session-badge",children:n("history.current")}),i.jsx("span",{children:n("history.messages").replace("{count}",String(A.messageCount))}),i.jsx("span",{children:ev(A.updatedAt,s)})]})]}),i.jsxs("div",{className:"history-session-actions",children:[h===A.id&&i.jsx("div",{className:"history-session-switching",children:i.jsx("div",{className:"history-session-spinner"})}),h!==A.id&&i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"history-action-btn",title:n("history.rename"),onClick:z=>E(A,z),children:i.jsx(Vm,{size:14})}),!A.isCurrent&&i.jsx("button",{className:"history-action-btn danger",title:n("history.delete"),onClick:z=>w(A,z),children:i.jsx(Ur,{size:14})})]})]})]})]},A.id)})});return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:`history-drawer-overlay ${e?"open":""}`,onClick:t}),i.jsxs("div",{className:`history-drawer ${e?"open":""}`,children:[i.jsxs("div",{className:"history-drawer-header",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"history-drawer-title",children:n("history.title")}),i.jsx("p",{className:"history-drawer-subtitle",children:n("history.description")})]}),i.jsx("button",{onClick:t,className:"history-drawer-close",children:i.jsx(Ue,{size:16})})]}),i.jsx("div",{className:"history-content",children:I()})]}),v&&i.jsx("div",{className:"history-rename-overlay",onClick:()=>S(null),children:i.jsxs("div",{className:"history-rename-dialog",onClick:A=>A.stopPropagation(),children:[i.jsx("h3",{children:n("history.renameTitle")}),i.jsx("input",{ref:g,className:"history-rename-input",value:x,onChange:A=>p(A.target.value),placeholder:n("history.renamePlaceholder"),onKeyDown:A=>{A.key==="Enter"&&x.trim()&&_(v,x),A.key==="Escape"&&S(null)}}),i.jsxs("div",{className:"history-rename-actions",children:[i.jsx("button",{className:"history-rename-cancel",onClick:()=>S(null),children:n("history.renameCancel")}),i.jsx("button",{className:"history-rename-ok",disabled:!x.trim(),onClick:()=>_(v,x),children:n("history.renameOk")})]})]})}),u&&i.jsx("div",{className:"history-delete-overlay",onClick:()=>f(null),children:i.jsxs("div",{className:"history-delete-dialog",onClick:A=>A.stopPropagation(),children:[i.jsx("p",{children:n("history.deleteConfirm")}),i.jsxs("div",{className:"history-delete-actions",children:[i.jsx("button",{className:"history-delete-cancel",onClick:()=>f(null),children:n("history.deleteCancel")}),i.jsx("button",{className:"history-delete-ok",onClick:()=>k(u),children:n("history.deleteOk")})]})]})})]})}function Cr(e,t){return`${e}@${t}`}async function xt(e,t){return _e(e,{method:"POST",headers:{"Content-Type":"application/json",...me()},body:t?JSON.stringify(t):void 0})}async function rv(e){return _e(e,{method:"DELETE",headers:me()})}async function Td(e){return _e(e,{method:"GET",headers:me()})}const nv=ze((e,t)=>({plugins:[],loading:!1,error:null,marketplaces:[],marketplaceLoading:!1,availablePlugins:[],browsingMarketplace:null,browsingLoading:!1,browsingError:null,operatingPlugins:new Set,fetchPlugins:async()=>{e({loading:!0,error:null});try{const r=await Td("/api/v1/plugins");if(!r.ok)throw new Error(`HTTP ${r.status}`);const s=(await r.json()).data;e({plugins:Array.isArray(s)?s:[],loading:!1})}catch(r){console.warn("[plugin-store] fetchPlugins failed:",r),e({error:r.message,loading:!1})}},fetchMarketplaces:async()=>{e({marketplaceLoading:!0});try{const r=await Td("/api/v1/plugins/marketplaces");if(!r.ok)throw new Error(`HTTP ${r.status}`);const s=(await r.json()).data;e({marketplaces:Array.isArray(s)?s:[],marketplaceLoading:!1})}catch(r){console.warn("[plugin-store] fetchMarketplaces failed:",r),e({marketplaceLoading:!1})}},browseMarketplace:async r=>{var n;e({browsingMarketplace:r,browsingLoading:!0,browsingError:null});try{const s=await xt("/api/v1/plugins/marketplaces/browse",{marketplace:r});if(!s.ok){const o=await s.json().catch(()=>null);throw new Error(((n=o==null?void 0:o.error)==null?void 0:n.message)||`HTTP ${s.status}`)}const l=await s.json(),a=(Array.isArray(l.data)?l.data:[]).map(o=>({name:o.name,version:o.version,description:o.description,marketplace:o.marketplaceName||r,installed:!!o.status,author:o.author,license:o.license,homepage:o.homepage,repository:o.repository,keywords:o.keywords,category:o.category,features:o.features,source:o.source}));e({availablePlugins:a,browsingLoading:!1})}catch(s){console.warn("[plugin-store] browseMarketplace failed:",s),e({browsingError:s.message,browsingLoading:!1})}},browseAllMarketplaces:async()=>{const{marketplaces:r}=t();if(r.length!==0){e({browsingMarketplace:"__all__",browsingLoading:!0,browsingError:null});try{const n=await Promise.allSettled(r.map(async o=>{var b;const c=await xt("/api/v1/plugins/marketplaces/browse",{marketplace:o.name});if(!c.ok){const v=await c.json().catch(()=>null);throw new Error(((b=v==null?void 0:v.error)==null?void 0:b.message)||`HTTP ${c.status}`)}const m=await c.json();return(Array.isArray(m.data)?m.data:[]).map(v=>({name:v.name,version:v.version,description:v.description,marketplace:v.marketplaceName||o.name,installed:!!v.status,author:v.author,license:v.license,homepage:v.homepage,repository:v.repository,keywords:v.keywords,category:v.category,features:v.features,source:v.source}))})),s=[];let l=!1;for(const o of n)o.status==="fulfilled"?s.push(...o.value):l=!0;const d=new Set,a=s.filter(o=>{const c=`${o.name}@${o.marketplace}`;return d.has(c)?!1:(d.add(c),!0)});e({availablePlugins:a,browsingLoading:!1,browsingError:l&&a.length===0?"Some marketplaces failed to load":null})}catch(n){console.warn("[plugin-store] browseAllMarketplaces failed:",n),e({browsingError:n.message,browsingLoading:!1})}}},enablePlugin:async(r,n)=>{var l;const s=Cr(r,n);e(d=>({operatingPlugins:new Set(d.operatingPlugins).add(s)}));try{const d=await xt("/api/v1/plugins/enable",{plugin:s});if(!d.ok){const a=await d.json().catch(()=>null);throw new Error(((l=a==null?void 0:a.error)==null?void 0:l.message)||`HTTP ${d.status}`)}await t().fetchPlugins()}finally{e(d=>{const a=new Set(d.operatingPlugins);return a.delete(s),{operatingPlugins:a}})}},disablePlugin:async(r,n)=>{var l;const s=Cr(r,n);e(d=>({operatingPlugins:new Set(d.operatingPlugins).add(s)}));try{const d=await xt("/api/v1/plugins/disable",{plugin:s});if(!d.ok){const a=await d.json().catch(()=>null);throw new Error(((l=a==null?void 0:a.error)==null?void 0:l.message)||`HTTP ${d.status}`)}await t().fetchPlugins()}finally{e(d=>{const a=new Set(d.operatingPlugins);return a.delete(s),{operatingPlugins:a}})}},uninstallPlugin:async(r,n)=>{var l;const s=Cr(r,n);e(d=>({operatingPlugins:new Set(d.operatingPlugins).add(s)}));try{const d=await xt("/api/v1/plugins/uninstall",{plugin:s});if(!d.ok){const a=await d.json().catch(()=>null);throw new Error(((l=a==null?void 0:a.error)==null?void 0:l.message)||`HTTP ${d.status}`)}await t().fetchPlugins()}finally{e(d=>{const a=new Set(d.operatingPlugins);return a.delete(s),{operatingPlugins:a}})}},installPlugin:async(r,n)=>{var l;const s=Cr(r,n);e(d=>({operatingPlugins:new Set(d.operatingPlugins).add(s)}));try{const d=await xt("/api/v1/plugins",{plugin:s});if(!d.ok){const o=await d.json().catch(()=>null);throw new Error(((l=o==null?void 0:o.error)==null?void 0:l.message)||`HTTP ${d.status}`)}await t().fetchPlugins();const a=t();a.browsingMarketplace&&(a.browsingMarketplace==="__all__"?await t().browseAllMarketplaces():await t().browseMarketplace(a.browsingMarketplace))}finally{e(d=>{const a=new Set(d.operatingPlugins);return a.delete(s),{operatingPlugins:a}})}},addMarketplace:async(r,n)=>{var l;const s=await xt("/api/v1/plugins/marketplaces",{source:r,name:n});if(!s.ok){const d=await s.json().catch(()=>null);throw new Error(((l=d==null?void 0:d.error)==null?void 0:l.message)||`HTTP ${s.status}`)}await t().fetchMarketplaces()},removeMarketplace:async r=>{var s;const n=await rv(`/api/v1/plugins/marketplaces/${encodeURIComponent(r)}`);if(!n.ok){const l=await n.json().catch(()=>null);throw new Error(((s=l==null?void 0:l.error)==null?void 0:s.message)||`HTTP ${n.status}`)}await t().fetchMarketplaces()}}));function yp(){const{t:e}=ie(),{plugins:t,marketplaces:r,loading:n,marketplaceLoading:s,error:l,operatingPlugins:d,availablePlugins:a,browsingLoading:o,browsingError:c,fetchPlugins:m,fetchMarketplaces:h,browseMarketplace:b,browseAllMarketplaces:v,enablePlugin:S,disablePlugin:x,uninstallPlugin:p,installPlugin:g,addMarketplace:u,removeMarketplace:f}=nv(),[y,k]=C.useState("installed"),[_,E]=C.useState(""),[w,N]=C.useState("all"),[I,A]=C.useState(null),[M,O]=C.useState(!1),[B,F]=C.useState(""),[z,P]=C.useState(""),[U,T]=C.useState(!1),[L,$]=C.useState(null),[R,q]=C.useState(null),[W,Y]=C.useState(null),[V,H]=C.useState(""),[D,X]=C.useState(""),[K,ee]=C.useState(null),te=C.useCallback(J=>{ee(ne=>ne===J?null:J)},[]);C.useEffect(()=>{m(),h()},[m,h]),C.useEffect(()=>{y==="browse"&&!V&&r.length>0&&(H("__all__"),v())},[y,r,V,v]);const oe=C.useCallback(async J=>{A(null);try{J.status==="enabled"?await x(J.name,J.marketplace):await S(J.name,J.marketplace)}catch(ne){A(ne.message)}},[S,x]),he=C.useCallback(async J=>{A(null),q(null);try{await p(J.name,J.marketplace)}catch(ne){A(ne.message)}},[p]),ge=C.useCallback(async J=>{A(null);try{await g(J.name,J.marketplace)}catch(ne){A(ne.message)}},[g]),ue=C.useCallback(async()=>{const J=B.trim();if(J){T(!0),$(null);try{await u(J,z.trim()||void 0),F(""),P(""),O(!1)}catch(ne){$(ne.message)}finally{T(!1)}}},[B,z,u]),se=C.useCallback(async J=>{A(null),Y(null);try{if(await f(J),V===J&&r.length>1){const ne=r.find(fe=>fe.name!==J);ne&&(H(ne.name),b(ne.name))}}catch(ne){A(ne.message)}},[f,V,r,b]),Ne=C.useCallback(()=>{m(),h(),y==="browse"&&V&&(V==="__all__"?v():b(V))},[m,h,y,V,b,v]),re=C.useCallback(J=>{H(J),X(""),J==="__all__"?v():b(J)},[b,v]),le=J=>`${J.name}@${J.marketplace}`,Se=C.useMemo(()=>{const J=new Set(t.map(ne=>ne.marketplace));return Array.from(J).sort()},[t]),Ie=C.useMemo(()=>{let J=t;w!=="all"&&(J=J.filter(fe=>fe.marketplace===w));const ne=_.trim().toLowerCase();return ne&&(J=J.filter(fe=>fe.name.toLowerCase().includes(ne)||fe.description&&fe.description.toLowerCase().includes(ne)||fe.marketplace.toLowerCase().includes(ne))),J},[t,w,_]),xe=C.useMemo(()=>{let J=a;const ne=D.trim().toLowerCase();return ne&&(J=J.filter(fe=>fe.name.toLowerCase().includes(ne)||fe.description&&fe.description.toLowerCase().includes(ne))),J},[a,D]),Ve=t.filter(J=>J.status==="enabled").length;return i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[i.jsx("div",{className:"flex-none border-b border-border-muted px-6 py-4",children:i.jsxs("div",{className:"max-w-3xl mx-auto",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("plugins.title")}),y==="installed"&&t.length>0&&i.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[t.length," ",e("plugins.totalCount")," · ",Ve," ",e("plugins.enabled")]}),y==="browse"&&V&&!o&&a.length>0&&i.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[a.length," ",e("plugins.totalCount")]}),y==="marketplaces"&&r.length>0&&i.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[r.length," ",e("plugins.totalCount")]})]}),i.jsx("button",{onClick:Ne,disabled:n||o,className:`flex items-center gap-2 px-3 py-2 rounded-lg border transition-all ${n||o?"opacity-50 cursor-not-allowed border-border-muted text-text-secondary":"border-border-muted text-text-secondary hover:text-text-primary hover:border-text-primary/20 hover:bg-bg-secondary"}`,title:e("plugins.refresh"),children:i.jsx(st,{size:14,className:n||o?"animate-spin":""})})]}),i.jsxs("div",{className:"flex gap-1 border-b border-border-muted",children:[i.jsx("button",{onClick:()=>{k("installed"),A(null)},className:`px-4 py-2.5 text-[13px] font-medium border-b-2 transition-colors ${y==="installed"?"text-text-primary border-text-primary":"text-text-secondary border-transparent hover:text-text-primary"}`,children:e("plugins.installedPlugins")}),i.jsx("button",{onClick:()=>{k("browse"),A(null)},className:`px-4 py-2.5 text-[13px] font-medium border-b-2 transition-colors ${y==="browse"?"text-text-primary border-text-primary":"text-text-secondary border-transparent hover:text-text-primary"}`,children:e("plugins.browseMarketplace")}),i.jsx("button",{onClick:()=>{k("marketplaces"),A(null)},className:`px-4 py-2.5 text-[13px] font-medium border-b-2 transition-colors ${y==="marketplaces"?"text-text-primary border-text-primary":"text-text-secondary border-transparent hover:text-text-primary"}`,children:e("plugins.marketplaces")})]}),y==="installed"&&t.length>0&&i.jsxs("div",{className:"flex items-center gap-2 mt-4",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(ct,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary pointer-events-none"}),i.jsx("input",{type:"text",value:_,onChange:J=>E(J.target.value),placeholder:e("plugins.searchPlaceholder"),className:"w-full bg-bg-secondary text-text-primary text-[13px] border border-border-muted rounded-lg pl-9 pr-8 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all placeholder:text-text-tertiary"}),_&&i.jsx("button",{onClick:()=>E(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 flex items-center justify-center rounded-full text-text-tertiary hover:text-text-secondary transition-colors",children:i.jsx(Ue,{size:12})})]}),Se.length>1&&i.jsxs("select",{value:w,onChange:J=>N(J.target.value),className:"bg-bg-secondary text-text-primary text-[13px] border border-border-muted rounded-lg px-2 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all cursor-pointer shrink-0 max-w-[120px] sm:max-w-[160px]",children:[i.jsx("option",{value:"all",children:e("plugins.allMarketplaces")}),Se.map(J=>i.jsx("option",{value:J,children:J},J))]})]}),y==="browse"&&r.length>0&&i.jsxs("div",{className:"flex items-center gap-2 mt-4",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(ct,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary pointer-events-none"}),i.jsx("input",{type:"text",value:D,onChange:J=>X(J.target.value),placeholder:e("plugins.searchPlaceholder"),className:"w-full bg-bg-secondary text-text-primary text-[13px] border border-border-muted rounded-lg pl-9 pr-8 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all placeholder:text-text-tertiary"}),D&&i.jsx("button",{onClick:()=>X(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 flex items-center justify-center rounded-full text-text-tertiary hover:text-text-secondary transition-colors",children:i.jsx(Ue,{size:12})})]}),i.jsxs("select",{value:V,onChange:J=>re(J.target.value),className:"bg-bg-secondary text-text-primary text-[13px] border border-border-muted rounded-lg px-2 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all cursor-pointer shrink-0 max-w-[120px] sm:max-w-[160px]",children:[i.jsx("option",{value:"__all__",children:e("plugins.allMarketplaces")}),r.map(J=>i.jsx("option",{value:J.name,children:J.name},J.name))]})]})]})}),i.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:i.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[I&&i.jsxs("div",{className:"bg-accent-red/10 border border-accent-red/30 rounded-xl p-3.5 text-accent-red text-[13px] flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[i.jsx(on,{size:14,className:"shrink-0"}),i.jsxs("span",{className:"truncate",children:[e("plugins.operationFailed"),": ",I]})]}),i.jsx("button",{onClick:()=>A(null),className:"w-5 h-5 flex items-center justify-center rounded-full hover:bg-accent-red/20 transition-colors shrink-0 ml-3",children:i.jsx(Ue,{size:12})})]}),y==="installed"&&i.jsxs(i.Fragment,{children:[n&&t.length===0&&i.jsx("div",{className:"flex flex-col items-center justify-center py-20",children:i.jsx(Qe,{size:"small",text:e("plugins.loading")})}),l&&!n&&t.length===0&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[i.jsx(on,{size:40,className:"text-text-tertiary opacity-40 mb-4"}),i.jsx("div",{className:"text-[14px] text-text-secondary font-medium mb-3",children:e("plugins.error")}),i.jsx("button",{onClick:m,className:"px-4 py-2 rounded-lg text-[13px] font-medium bg-text-primary text-white hover:opacity-80 transition-colors",children:e("plugins.retry")})]}),!n&&!l&&t.length===0&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[i.jsx(Mt,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noPlugins")}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noPluginsHint")})]}),t.length>0&&Ie.length===0&&!n&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-text-tertiary",children:[i.jsx(ct,{size:36,className:"mb-3 opacity-30"}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noSearchResults")})]}),Ie.length>0&&i.jsx("div",{className:"space-y-3",children:Ie.map(J=>{const ne=le(J);return i.jsx(iv,{plugin:J,isEnabled:J.status==="enabled",isOperating:d.has(ne),isExpanded:K===ne,confirmUninstall:R===ne,onToggle:()=>oe(J),onUninstall:()=>he(J),onConfirmUninstall:()=>q(ne),onCancelUninstall:()=>q(null),onExpand:()=>te(ne),t:e},ne)})})]}),y==="browse"&&i.jsxs(i.Fragment,{children:[!s&&r.length===0&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[i.jsx(rr,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noMarketplaces")}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noMarketplacesHint")})]}),o&&a.length===0&&V&&i.jsx("div",{className:"flex flex-col items-center justify-center py-20",children:i.jsx(Qe,{size:"small",text:e("plugins.browsingMarketplace")})}),c&&a.length===0&&V&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[i.jsx(on,{size:40,className:"text-text-tertiary opacity-40 mb-4"}),i.jsx("div",{className:"text-[14px] text-text-secondary font-medium mb-3",children:e("plugins.error")}),i.jsx("button",{onClick:()=>V&&b(V),className:"px-4 py-2 rounded-lg text-[13px] font-medium bg-text-primary text-white hover:opacity-80 transition-colors",children:e("plugins.retry")})]}),V&&a.length===0&&!o&&!c&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[i.jsx(Mt,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noAvailablePlugins")}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noAvailablePluginsHint")})]}),a.length>0&&xe.length===0&&!o&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-text-tertiary",children:[i.jsx(ct,{size:36,className:"mb-3 opacity-30"}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noSearchResults")})]}),xe.length>0&&i.jsx("div",{className:"space-y-3",children:xe.map(J=>{const ne=`${J.name}@${J.marketplace}`;return i.jsx(sv,{plugin:J,isInstalled:J.installed,isOperating:d.has(ne),isExpanded:K===ne,onInstall:()=>ge(J),onExpand:()=>te(ne),t:e},ne)})})]}),y==="marketplaces"&&i.jsxs("div",{className:"space-y-3",children:[!M&&i.jsxs("button",{onClick:()=>O(!0),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[12px] font-medium text-text-primary border border-border-muted hover:bg-bg-tertiary hover:border-text-primary/30 transition-colors",children:[i.jsx(ht,{size:12}),e("plugins.addMarketplace")]}),M&&i.jsxs("div",{className:"bg-bg-secondary rounded-xl border border-border-muted p-4 space-y-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-[13px] font-medium",children:e("plugins.addMarketplace")}),i.jsx("button",{onClick:()=>{O(!1),$(null)},className:"w-6 h-6 flex items-center justify-center rounded-full hover:bg-bg-tertiary transition-colors text-text-secondary",children:i.jsx(Ue,{size:12})})]}),i.jsx("input",{type:"text",value:B,onChange:J=>F(J.target.value),placeholder:e("plugins.sourcePlaceholder"),className:"w-full bg-bg-primary text-text-primary text-[13px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all placeholder:text-text-tertiary"}),i.jsx("input",{type:"text",value:z,onChange:J=>P(J.target.value),placeholder:e("plugins.namePlaceholder"),className:"w-full bg-bg-primary text-text-primary text-[13px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-text-primary/10 focus:border-text-primary/30 transition-all placeholder:text-text-tertiary"}),L&&i.jsx("div",{className:"text-accent-red text-[12px]",children:L}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx("button",{onClick:()=>{O(!1),$(null)},className:"px-3 py-1.5 rounded-lg text-[12px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:e("plugins.cancel")}),i.jsxs("button",{onClick:ue,disabled:!B.trim()||U,className:"px-3 py-1.5 rounded-lg text-[12px] font-medium bg-text-primary text-white hover:opacity-80 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1.5",children:[U&&i.jsx(ve,{size:12,className:"animate-spin"}),e("plugins.add")]})]})]}),s&&r.length===0&&i.jsx("div",{className:"flex items-center justify-center py-6",children:i.jsx(ve,{size:18,className:"animate-spin text-text-tertiary"})}),!s&&r.length===0&&!M&&i.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[i.jsx(rr,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noMarketplaces")}),i.jsx("div",{className:"text-[13px]",children:e("plugins.noMarketplacesHint")})]}),r.length>0&&i.jsx("div",{className:"bg-bg-secondary rounded-xl border border-border-muted overflow-hidden",children:r.map((J,ne)=>i.jsxs("div",{className:`flex items-center justify-between px-4 py-3 ${ne>0?"border-t border-border-muted":""}`,children:[i.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[i.jsx(rr,{size:14,className:"text-text-tertiary shrink-0"}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-[13px] font-medium truncate",children:J.name}),J.type&&i.jsx("div",{className:"text-[11px] text-text-tertiary",children:J.type})]})]}),i.jsx("div",{className:"flex items-center gap-2 shrink-0",children:W===J.name?i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:()=>se(J.name),className:"px-2.5 py-1 rounded-md text-[11px] font-medium text-white bg-accent-red hover:bg-accent-red/90 transition-colors",children:e("plugins.removeMarketplace")}),i.jsx("button",{onClick:()=>Y(null),className:"px-2.5 py-1 rounded-md text-[11px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:e("plugins.cancel")})]}):i.jsx("button",{onClick:()=>Y(J.name),className:"w-7 h-7 flex items-center justify-center rounded-md text-text-tertiary hover:text-accent-red hover:bg-accent-red/10 transition-colors",title:e("plugins.removeMarketplace"),children:i.jsx(Ur,{size:13})})})]},J.name))})]})]})})]})}function iv({plugin:e,isEnabled:t,isOperating:r,isExpanded:n,confirmUninstall:s,onToggle:l,onUninstall:d,onConfirmUninstall:a,onCancelUninstall:o,onExpand:c,t:m}){return i.jsxs("div",{className:`group rounded-xl border transition-all ${t?"bg-bg-secondary border-border-muted":"bg-bg-secondary border-border-muted hover:border-border-muted"}`,children:[i.jsxs("div",{className:"flex items-start gap-4 px-5 py-4 cursor-pointer",onClick:c,children:[i.jsx("div",{className:`flex-shrink-0 w-9 h-9 rounded-lg flex items-center justify-center mt-0.5 ${t?"bg-text-primary/8":"bg-bg-tertiary"}`,children:i.jsx(Mt,{size:18,className:t?"text-text-primary":"text-text-tertiary"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[i.jsx("span",{className:"text-[14px] font-semibold text-text-primary truncate",children:e.name}),e.version&&i.jsxs("span",{className:"text-[11px] text-text-tertiary shrink-0 font-mono",children:["v",e.version]}),i.jsx("span",{className:`text-[10px] px-1.5 py-px rounded font-medium shrink-0 ${t?"bg-accent-green/15 text-accent-green":"bg-bg-tertiary text-text-tertiary"}`,children:m(t?"plugins.enabled":"plugins.disabled")})]}),e.description&&i.jsx("div",{className:`text-[12px] text-text-secondary leading-relaxed mb-1.5 ${n?"":"line-clamp-2"}`,children:e.description}),i.jsxs("div",{className:"flex items-center gap-1 text-[11px] text-text-tertiary",children:[i.jsx(rr,{size:10,className:"shrink-0"}),i.jsx("span",{children:e.marketplace})]})]}),i.jsx("div",{className:"flex items-center gap-1.5 shrink-0 pt-0.5",onClick:h=>h.stopPropagation(),children:r?i.jsx("div",{className:"w-[72px] flex justify-center",children:i.jsx(ve,{size:16,className:"animate-spin text-text-tertiary"})}):s?i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("button",{onClick:d,className:"px-2.5 py-1 rounded-md text-[11px] font-medium text-white bg-accent-red hover:bg-accent-red/90 transition-colors",children:m("plugins.uninstall")}),i.jsx("button",{onClick:o,className:"px-2.5 py-1 rounded-md text-[11px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:m("plugins.cancel")})]}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:l,className:`px-2.5 py-1.5 rounded-md text-[11px] font-medium transition-colors flex items-center gap-1 ${t?"text-text-secondary border border-border-muted hover:bg-bg-tertiary":"text-text-primary border border-border-muted hover:bg-bg-tertiary"}`,title:m(t?"plugins.disable":"plugins.enable"),children:[t?i.jsx(rg,{size:11}):i.jsx(hu,{size:11}),m(t?"plugins.disable":"plugins.enable")]}),i.jsx("button",{onClick:a,className:"w-7 h-7 flex items-center justify-center rounded-md text-text-tertiary hover:text-accent-red hover:bg-accent-red/10 transition-colors opacity-0 group-hover:opacity-100",title:m("plugins.uninstall"),children:i.jsx(Ur,{size:13})})]})})]}),n&&i.jsx(_p,{plugin:e,t:m})]})}function sv({plugin:e,isInstalled:t,isOperating:r,isExpanded:n,onInstall:s,onExpand:l,t:d}){return i.jsxs("div",{className:`group rounded-xl border transition-all ${t?"bg-bg-secondary border-border-muted":"bg-bg-secondary border-border-muted hover:border-border-muted"}`,children:[i.jsxs("div",{className:"flex items-start gap-4 px-5 py-4 cursor-pointer",onClick:l,children:[i.jsx("div",{className:`flex-shrink-0 w-9 h-9 rounded-lg flex items-center justify-center mt-0.5 ${t?"bg-text-primary/8":"bg-bg-tertiary"}`,children:i.jsx(Mt,{size:18,className:t?"text-text-primary":"text-text-tertiary"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[i.jsx("span",{className:"text-[14px] font-semibold text-text-primary truncate",children:e.name}),e.version&&i.jsxs("span",{className:"text-[11px] text-text-tertiary shrink-0 font-mono",children:["v",e.version]}),t&&i.jsx("span",{className:"text-[10px] px-1.5 py-px rounded font-medium shrink-0 bg-accent-green/15 text-accent-green",children:d("plugins.installedLabel")})]}),e.description&&i.jsx("div",{className:`text-[12px] text-text-secondary leading-relaxed mb-1.5 ${n?"":"line-clamp-2"}`,children:e.description}),i.jsxs("div",{className:"flex items-center gap-1 text-[11px] text-text-tertiary",children:[i.jsx(rr,{size:10,className:"shrink-0"}),i.jsx("span",{children:e.marketplace})]})]}),i.jsx("div",{className:"flex items-center gap-1.5 shrink-0 pt-0.5",onClick:a=>a.stopPropagation(),children:t?i.jsx("div",{className:"px-2.5 py-1.5 rounded-md text-[11px] font-medium text-text-tertiary bg-bg-tertiary",children:d("plugins.installed")}):r?i.jsx("div",{className:"w-[72px] flex justify-center",children:i.jsx(ve,{size:16,className:"animate-spin text-text-tertiary"})}):i.jsxs("button",{onClick:s,className:"px-2.5 py-1.5 rounded-md text-[11px] font-medium text-text-primary border border-border-muted hover:bg-bg-tertiary transition-colors flex items-center gap-1",title:d("plugins.install"),children:[i.jsx(nu,{size:11}),d("plugins.install")]})})]}),n&&i.jsx(_p,{plugin:e,t:d})]})}function _p({plugin:e,t}){const r=e.source,n=typeof r=="object"&&r!==null?r.url:void 0,s=typeof r=="object"&&r!==null?r.source:typeof r=="string"?r:void 0;return i.jsxs("div",{className:"border-t border-border-muted mx-5 px-0 py-3.5 space-y-2.5",children:[e.category&&i.jsx(lt,{label:t("plugins.category"),children:i.jsx("span",{className:"text-[11px] px-2 py-0.5 rounded bg-[#f5a623]/8 text-[#b8860b] font-medium",children:e.category})}),e.author&&i.jsxs(lt,{label:t("plugins.author"),children:[i.jsx("span",{className:"text-[12px] text-text-primary font-medium",children:e.author.name}),e.author.email&&i.jsx("a",{href:`mailto:${e.author.email}`,className:"text-[11px] text-text-tertiary hover:text-text-primary hover:underline ml-1",onClick:l=>l.stopPropagation(),children:e.author.email}),e.author.url&&i.jsxs("a",{href:e.author.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-[11px] text-text-tertiary hover:text-text-primary hover:underline ml-1",onClick:l=>l.stopPropagation(),children:[e.author.url,i.jsx(nt,{size:9})]})]}),e.license&&i.jsx(lt,{label:t("plugins.license"),children:i.jsx("span",{className:"text-[12px] text-text-secondary",children:e.license})}),e.homepage&&i.jsx(lt,{label:t("plugins.homepage"),children:i.jsxs("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-text-secondary hover:text-text-primary hover:underline break-all",onClick:l=>l.stopPropagation(),children:[e.homepage,i.jsx(nt,{size:10,className:"shrink-0 text-text-tertiary"})]})}),e.repository&&i.jsx(lt,{label:t("plugins.repository"),children:i.jsxs("a",{href:e.repository,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-text-secondary hover:text-text-primary hover:underline break-all",onClick:l=>l.stopPropagation(),children:[e.repository,i.jsx(nt,{size:10,className:"shrink-0 text-text-tertiary"})]})}),s&&i.jsx(lt,{label:t("plugins.source"),children:n?i.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-text-secondary hover:text-text-primary hover:underline break-all",onClick:l=>l.stopPropagation(),children:[s,i.jsx(nt,{size:10,className:"shrink-0 text-text-tertiary"})]}):i.jsx("span",{className:"text-[12px] text-text-secondary font-mono",children:s})}),e.keywords&&e.keywords.length>0&&i.jsx(lt,{label:t("plugins.keywords"),children:i.jsx("div",{className:"flex flex-wrap gap-1",children:e.keywords.map(l=>i.jsx("span",{className:"text-[10px] px-1.5 py-px rounded bg-bg-tertiary text-text-tertiary",children:l},l))})}),e.features&&e.features.length>0&&i.jsx(lt,{label:t("plugins.features"),children:i.jsx("ul",{className:"space-y-0.5",children:e.features.map((l,d)=>i.jsxs("li",{className:"text-[12px] text-text-secondary flex items-start gap-1.5",children:[i.jsx("span",{className:"text-text-tertiary shrink-0",children:"·"}),l]},d))})})]})}function lt({label:e,children:t}){return i.jsxs("div",{className:"flex items-baseline gap-3",children:[i.jsx("span",{className:"text-[11px] text-text-tertiary w-12 shrink-0 text-right",children:e}),i.jsx("div",{className:"flex-1 min-w-0 flex items-baseline flex-wrap gap-1",children:t})]})}const av=[{value:"low",labelKey:"settings.effort.low"},{value:"medium",labelKey:"settings.effort.medium"},{value:"high",labelKey:"settings.effort.high"},{value:"xhigh",labelKey:"settings.effort.xhigh"}],ov=[{titleKey:"settings.group.modelAndReasoning",items:[{key:"model",labelKey:"settings.item.model",descKey:"settings.item.model.desc",type:"text"},{key:"reasoningEffort",labelKey:"settings.item.reasoningEffort",descKey:"settings.item.reasoningEffort.desc",type:"select",options:av},{key:"alwaysThinkingEnabled",labelKey:"settings.item.alwaysThinkingEnabled",type:"toggle"}]},{titleKey:"settings.group.behavior",items:[{key:"autoCompactEnabled",labelKey:"settings.item.autoCompactEnabled",type:"toggle"},{key:"includeCoAuthoredBy",labelKey:"settings.item.includeCoAuthoredBy",type:"toggle"},{key:"fileCheckpointingEnabled",labelKey:"settings.item.fileCheckpointingEnabled",descKey:"settings.item.fileCheckpointingEnabled.desc",type:"toggle"},{key:"promptSuggestionEnabled",labelKey:"settings.item.promptSuggestionEnabled",type:"toggle"},{key:"ignoreGitIgnore",labelKey:"settings.item.ignoreGitIgnore",descKey:"settings.item.ignoreGitIgnore.desc",type:"toggle"},{key:"deferToolLoading",labelKey:"settings.item.deferToolLoading",type:"toggle"},{key:"hookOutputCollapsed",labelKey:"settings.item.hookOutputCollapsed",type:"toggle"}]},{titleKey:"settings.group.memory",items:[{key:"memory.enabled",labelKey:"settings.item.memory.enabled",type:"toggle"},{key:"memory.autoMemoryEnabled",labelKey:"settings.item.memory.autoMemoryEnabled",descKey:"settings.item.memory.autoMemoryEnabled.desc",type:"toggle"}]},{titleKey:"settings.group.language",items:[{key:"language",labelKey:"settings.item.language",descKey:"settings.item.language.desc",type:"text"}]},{titleKey:"settings.group.advanced",items:[{key:"cleanupPeriodDays",labelKey:"settings.item.cleanupPeriodDays",type:"number"},{key:"imageHistoryRetainRounds",labelKey:"settings.item.imageHistoryRetainRounds",descKey:"settings.item.imageHistoryRetainRounds.desc",type:"number"},{key:"env",labelKey:"settings.item.env",descKey:"settings.item.env.desc",type:"json"}]},{titleKey:"settings.group.sandbox",items:[{key:"sandbox.enabled",labelKey:"settings.item.sandbox.enabled",descKey:"settings.item.sandbox.enabled.desc",type:"toggle"},{key:"sandbox.autoAllowBashIfSandboxed",labelKey:"settings.item.sandbox.autoAllowBashIfSandboxed",descKey:"settings.item.sandbox.autoAllowBashIfSandboxed.desc",type:"toggle"}]}];function lv(e,t){const r=t.split(".");let n=e;for(const s of r){if(n==null||typeof n!="object")return;n=n[s]}return n}function vp(){const{status:e,sessionId:t,currentModel:r,models:n,modes:s,currentMode:l}=gt(),{info:d,fetch:a}=jt(),{mode:o,toggle:c}=tt(),{t:m,locale:h,toggleLocale:b}=ie(),[v,S]=C.useState(null),[x,p]=C.useState({}),g=C.useRef({}),[u,f]=C.useState(!1),[y,k]=C.useState({}),_=C.useRef({});C.useEffect(()=>{let U=!1;return f(!0),Promise.all([fetch("/api/v1/settings").then(T=>{if(!T.ok)throw new Error(`Settings API: ${T.status}`);return T.json()}).then(T=>(T==null?void 0:T.data)??T??{}),fetch("/api/v1/settings?scope=user").then(T=>{if(!T.ok)throw new Error(`User settings API: ${T.status}`);return T.json()}).then(T=>(T==null?void 0:T.data)??T??{})]).then(([T,L])=>{U||(p(T),g.current=L,f(!1))}).catch(T=>{console.error("Failed to load settings:",T),U||f(!1)}),()=>{U=!0}},[]),C.useEffect(()=>()=>{Object.values(_.current).forEach(clearTimeout)},[]),C.useEffect(()=>{d||a()},[d,a]);const E=C.useCallback((U,T)=>{navigator.clipboard.writeText(U).then(()=>{S(T),setTimeout(()=>S(null),1500)})},[]),w=async U=>{if(I("model",U),t)try{await Te().setModel(t,U)}catch(T){console.error("Model change failed:",T)}},N=async U=>{if(I("permissions.defaultMode",U),t)try{await Te().setMode(t,U)}catch(T){console.error("Mode change failed:",T)}},I=C.useCallback(async(U,T)=>{const L=U.split(".")[0];let $=T;if(U.includes(".")){const R=U.split("."),W={...g.current[L]??{}};let Y=W;for(let V=1;V<R.length-1;V++)Y[R[V]]=Y[R[V]]?{...Y[R[V]]}:{},Y=Y[R[V]];Y[R[R.length-1]]=T,$=W}try{const R=await fetch(`/api/v1/settings/${L}?scope=user`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:$})});R.ok||R.status===204?(U.includes(".")?(g.current={...g.current,[L]:$},p(q=>({...q,[L]:{...q[L]??{},...$}}))):(g.current={...g.current,[U]:T},p(q=>({...q,[U]:T}))),A(U,"success")):(console.error(`Failed to save setting "${U}": HTTP ${R.status}`),A(U,"error"))}catch(R){console.error(`Failed to save setting "${U}":`,R),A(U,"error")}},[]),A=C.useCallback((U,T)=>{k(L=>({...L,[U]:T})),_.current[U]&&clearTimeout(_.current[U]),_.current[U]=setTimeout(()=>{k(L=>{const $={...L};return delete $[U],$})},1500)},[]),M={disconnected:"bg-gray-400",connecting:"bg-accent-yellow animate-pulse",connected:"bg-accent-green",error:"bg-accent-red"}[e],O={connected:"connection.connected",connecting:"connection.connecting",disconnected:"connection.disconnected",error:"connection.error"},B=o==="light"?Ag:o==="dark"?Um:Tg,F=m(o==="light"?"theme.light":o==="dark"?"theme.dark":"theme.system"),z=h==="system"?Sm:au,P=m(h==="zh"?"locale.zh":h==="en"?"locale.en":"locale.system");return i.jsx("div",{className:"settings-view",children:i.jsx("div",{className:"settings-content",children:i.jsxs("div",{className:"settings-sections",children:[i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("sidebar.connectionStatus")}),i.jsxs("div",{className:"settings-card",children:[i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.status")}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`w-2 h-2 rounded-full ${M}`}),i.jsx("span",{className:"settings-value",children:m(O[e]||"connection.disconnected")})]})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.sessionId")}),i.jsx("span",{className:"settings-value font-mono text-[12px]",children:t?t.substring(0,12):m("sidebar.notConnected")})]})]})]}),i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("settings.appearance")}),i.jsxs("div",{className:"settings-card",children:[i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.theme")}),i.jsxs("button",{onClick:c,className:"settings-toggle-btn",children:[i.jsx(B,{size:14,className:"text-accent-brand"}),i.jsx("span",{children:F})]})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.language")}),i.jsxs("button",{onClick:b,className:"settings-toggle-btn",children:[i.jsx(z,{size:14,className:"text-accent-brand"}),i.jsx("span",{children:P})]})]})]})]}),n.length>0&&i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("settings.model")}),i.jsx("div",{className:"settings-card",children:i.jsx("select",{value:r,onChange:U=>w(U.target.value),className:"settings-select",children:n.map(U=>i.jsx("option",{value:U.id,children:U.name||U.id},U.id))})})]}),s.length>0&&i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("settings.mode")}),i.jsx("div",{className:"settings-card",children:i.jsx("select",{value:l,onChange:U=>N(U.target.value),className:"settings-select",children:s.map(U=>i.jsx("option",{value:U.id,title:U.description,children:U.name},U.id))})})]}),u?i.jsx("div",{className:"settings-group",children:i.jsx("span",{className:"settings-value",children:m("settings.loading")})}):ov.map(U=>i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m(U.titleKey)}),i.jsx("div",{className:"settings-card",children:U.items.map(T=>i.jsx(cv,{item:T,value:lv(x,T.key),feedback:y[T.key],onSave:I},T.key))})]},U.titleKey)),d&&i.jsxs("div",{className:"settings-group",children:[i.jsx("h2",{className:"settings-group-title",children:m("settings.systemInfo")}),i.jsxs("div",{className:"settings-card",children:[i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.cwd")}),i.jsxs("button",{onClick:()=>E(d.cwd,"cwd"),className:"settings-copy-btn",title:d.cwd,children:[i.jsx("span",{className:"truncate cursor-pointer hover:underline hover:text-accent-brand",onClick:U=>{U.stopPropagation(),qu(d.cwd)},children:d.cwd}),v==="cwd"?i.jsx(kt,{size:12,className:"shrink-0 text-accent-green"}):i.jsx(In,{size:12,className:"shrink-0 text-text-tertiary"})]})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.os")}),i.jsxs("span",{className:"settings-value",children:[d.os," ",d.arch]})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.nodeVersion")}),i.jsx("span",{className:"settings-value",children:d.nodeVersion})]}),i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.gatewayMode")}),i.jsx("span",{className:"settings-value capitalize",children:d.gatewayMode})]}),d.tunnelUrl&&i.jsxs("div",{className:"settings-row",children:[i.jsx("span",{className:"settings-label",children:m("sidebar.tunnelUrl")}),i.jsxs("button",{onClick:()=>E(d.tunnelUrl,"tunnel"),className:"settings-copy-btn",title:d.tunnelUrl,children:[i.jsx("span",{className:"truncate",children:d.tunnelUrl.replace(/^https?:\/\//,"")}),v==="tunnel"?i.jsx(kt,{size:12,className:"shrink-0 text-accent-green"}):i.jsx(In,{size:12,className:"shrink-0 text-text-tertiary"})]})]})]})]})]})})})}function cv({item:e,value:t,feedback:r,onSave:n}){const{t:s}=ie(),[l,d]=C.useState(""),a=C.useRef(null);C.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),C.useEffect(()=>{e.type==="text"||e.type==="number"?d(t!=null?String(t):""):e.type==="json"&&d(t!=null?JSON.stringify(t,null,2):"")},[t,e.type]);const o=C.useCallback(()=>{n(e.key,!t)},[e.key,t,n]),c=C.useCallback(h=>{n(e.key,h||void 0)},[e.key,n]),m=C.useCallback(h=>{d(h),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{if(e.type==="number"){const b=Number(h);!isNaN(b)&&h.trim()!==""&&n(e.key,b)}else if(e.type==="json")try{const b=JSON.parse(h);n(e.key,b)}catch{}else n(e.key,h)},600)},[e.key,e.type,n]);return i.jsxs("div",{className:"settings-row",children:[i.jsxs("div",{className:"flex flex-col gap-0.5 min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"settings-label",children:s(e.labelKey)}),r&&i.jsx("span",{className:`settings-save-feedback ${r==="success"?"success":"error"}`,children:s(r==="success"?"settings.saved":"settings.saveFailed")})]}),e.descKey&&i.jsx("span",{className:"settings-desc",children:s(e.descKey)})]}),i.jsxs("div",{className:"flex items-center shrink-0 ml-3",children:[e.type==="toggle"&&i.jsx("button",{className:`settings-toggle-switch ${t?"on":""}`,onClick:o}),e.type==="select"&&e.options&&i.jsxs("select",{value:t??"",onChange:h=>c(h.target.value),className:"settings-inline-select",children:[i.jsx("option",{value:"",children:"-"}),e.options.map(h=>i.jsx("option",{value:h.value,children:s(h.labelKey)},h.value))]}),e.type==="text"&&i.jsx("input",{type:"text",value:l,onChange:h=>m(h.target.value),placeholder:s("settings.notSet"),className:"settings-input"}),e.type==="number"&&i.jsx("input",{type:"number",value:l,onChange:h=>m(h.target.value),className:"settings-input",style:{width:80}}),e.type==="json"&&i.jsx("textarea",{value:l,onChange:h=>m(h.target.value),placeholder:"{}",className:"settings-input wide",rows:3,style:{width:"100%",resize:"vertical"}})]})]})}const xp=4,Sp="codebuddy_interaction_mode",kp="codebuddy_terminal_layout",wp="codebuddy_terminal_panes";let dv=0;function uv(){return`pane-${Date.now()}-${++dv}`}function Yn(e){return{id:e??uv(),ptySessionId:null,ptyStatus:"disconnected",errorMessage:null}}function Ft(e){return e.type==="leaf"?1:Ft(e.children[0])+Ft(e.children[1])}function Br(e){return e.type==="leaf"?[e.paneId]:[...Br(e.children[0]),...Br(e.children[1])]}function pv(){try{const e=sessionStorage.getItem(Sp);if(e==="chat"||e==="terminal")return e}catch{}return"chat"}function Nd(e){try{sessionStorage.setItem(Sp,e)}catch{}}function hv(){try{const e=sessionStorage.getItem(kp);if(e)return JSON.parse(e)}catch{}return null}function Tr(e){try{sessionStorage.setItem(kp,JSON.stringify(e))}catch{}}function mv(){try{const e=sessionStorage.getItem(wp);if(e)return JSON.parse(e)}catch{}return null}function Nr(e){try{sessionStorage.setItem(wp,JSON.stringify(e))}catch{}}function gv(){const e=hv(),t=mv();if(e&&t){const n=Br(e);if(n.every(s=>s in t)){const s={};for(const l of n)s[l]={...t[l],ptyStatus:"disconnected",errorMessage:null};return{panes:s,layout:e,activePaneId:n[0]}}}const r=Yn();return{panes:{[r.id]:r},layout:{type:"leaf",paneId:r.id},activePaneId:r.id}}function Xn(e,t,r,n){return e.type==="leaf"?e.paneId===t?{type:"split",direction:r,children:[{type:"leaf",paneId:t},{type:"leaf",paneId:n}],ratio:.5}:e:{...e,children:[Xn(e.children[0],t,r,n),Xn(e.children[1],t,r,n)]}}function Zn(e,t){if(e.type==="leaf")return e.paneId===t?null:e;const r=Zn(e.children[0],t),n=Zn(e.children[1],t);return r===null?n:n===null?r:{...e,children:[r,n]}}function Ep(e,t,r){if(t.length===0)return e.type==="split"?{...e,ratio:r}:e;if(e.type==="split"){const[n,...s]=t,l=[...e.children];return l[n]=Ep(l[n],s,r),{...e,children:l}}return e}function Ad(e){const t=Ut(),r={"Content-Type":"application/json"};t&&(r.Authorization=`Bearer ${t}`),fetch(`/api/v1/pty/${e}`,{method:"DELETE",headers:r}).catch(()=>{})}const _n=gv(),we=ze((e,t)=>({mode:pv(),mainView:"chat",terminalTitle:null,panes:_n.panes,layout:_n.layout,activePaneId:_n.activePaneId,setMode:r=>{Nd(r),e({mode:r,mainView:r==="terminal"?"terminal":"chat"})},setMainView:r=>{const n=r==="terminal"?"terminal":"chat";n!==t().mode&&Nd(n),e({mainView:r,mode:n})},setTerminalTitle:r=>e({terminalTitle:r}),splitPane:(r,n)=>{const s=t(),l=n??s.activePaneId;if(Ft(s.layout)>=xp)return;const d=Yn(),a=Xn(s.layout,l,r,d.id),o={...s.panes,[d.id]:d};Tr(a),Nr(o),e({layout:a,panes:o,activePaneId:d.id})},closePane:r=>{const n=t();if(Ft(n.layout)<=1)return;const s=Zn(n.layout,r);if(!s)return;const l=n.panes[r];l!=null&&l.ptySessionId&&Ad(l.ptySessionId);const d={...n.panes};delete d[r];const a=Br(s),o=a.includes(n.activePaneId)?n.activePaneId:a[0];Tr(s),Nr(d),e({layout:s,panes:d,activePaneId:o})},setActivePaneId:r=>e({activePaneId:r}),setRatio:(r,n)=>{const s=Math.max(.1,Math.min(.9,n)),l=Ep(t().layout,r,s);Tr(l),e({layout:l})},setPaneSession:(r,n)=>{const s={...t().panes};s[r]&&(s[r]={...s[r],ptySessionId:n},Nr(s),e({panes:s}))},setPaneStatus:(r,n)=>{const s={...t().panes};s[r]&&(s[r]={...s[r],ptyStatus:n},e({panes:s}))},setPaneError:(r,n)=>{const s={...t().panes};s[r]&&(s[r]={...s[r],errorMessage:n},e({panes:s}))},reset:()=>{const r=t().panes;for(const d of Object.values(r))d.ptySessionId&&Ad(d.ptySessionId);const n=Yn(),s={type:"leaf",paneId:n.id},l={[n.id]:n};Tr(s),Nr(l),e({panes:l,layout:s,activePaneId:n.id})}})),fv=3e3;function Cp(){const{t:e}=ie(),{setMainView:t}=we(),{setExternalInput:r,sessionId:n}=gt(),[s,l]=C.useState([]),[d,a]=C.useState(!0),[o,c]=C.useState(null),[m,h]=C.useState(!1),[b,v]=C.useState(!1),S=C.useRef(n);S.current=n;const x=C.useRef(null),p=C.useCallback(()=>{x.current&&(clearInterval(x.current),x.current=null)},[]),g=C.useCallback(async()=>{const _=new URLSearchParams,E=S.current;E&&_.append("sessionId",E);const w=_.toString(),N=`/api/v1/tasks/templates${w?"?"+w:""}`,I=await fetch(N,{headers:me()});if(!I.ok)throw new Error(`HTTP ${I.status}`);const A=await I.json(),M=A.data??A;return l(M.templates||[]),c(M.error||null),M.status},[]),u=C.useCallback(()=>{p(),x.current=setInterval(async()=>{try{const _=await g();_!=="loading"&&(p(),h(!1),_==="done"&&(v(!0),setTimeout(()=>v(!1),2e3)))}catch(_){console.error("[TasksView] Poll error:",_),p(),h(!1),c(_.message||"Failed to load templates")}},fv)},[g,p]);C.useEffect(()=>{let _=!1;return(async()=>{try{if(!S.current){if(_)return;a(!1);return}const w=await g();if(_)return;w==="loading"&&(h(!0),u())}catch(E){if(_)return;console.error("[TasksView] Initial fetch error:",E),c(E.message||"Failed to load templates")}finally{_||a(!1)}})(),()=>{_=!0,p()}},[g,u,p,n]);const f=C.useCallback(async()=>{h(!0),c(null),v(!1);try{const _=new URLSearchParams,E=S.current;E&&_.append("sessionId",E);const w=_.toString(),N=`/api/v1/tasks/templates/refresh${w?"?"+w:""}`,I=await fetch(N,{method:"POST",headers:me()});if(!I.ok)throw new Error(`HTTP ${I.status}`);u()}catch(_){console.error("[TasksView] Refresh trigger error:",_),c(_.message||"Failed to trigger refresh"),h(!1)}},[u]),y=C.useCallback(_=>{r(_.command),t("chat")},[r,t]),k=!d&&s.length===0&&!o;return i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[i.jsx("div",{className:"flex-none border-b border-border-default px-6 py-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("tasks.title")}),i.jsx("p",{className:"text-sm text-text-tertiary mt-1",children:e("tasks.subtitle")})]}),i.jsxs("button",{onClick:f,disabled:m,className:`flex items-center gap-2 px-3 py-2 rounded-lg border transition-all ${b?"border-green-500/50 text-green-500":m?"opacity-50 cursor-not-allowed border-border-default text-text-secondary":"border-border-default text-text-secondary hover:text-text-primary hover:border-accent-brand/50 hover:bg-bg-secondary"}`,title:e("tasks.refresh"),children:[b?i.jsx(kt,{size:16}):i.jsx(st,{size:16,className:m?"animate-spin":""}),i.jsx("span",{className:"text-sm",children:e(b?"tasks.refreshed":"tasks.refresh")})]})]})}),i.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:[d&&!m&&i.jsx("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:i.jsx(Qe,{size:"small",text:e("tasks.loading")})}),o&&!d&&i.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-text-tertiary text-[48px] mb-4 opacity-30",children:"⚠"}),i.jsx("div",{className:"text-text-secondary text-sm mb-4",children:e("tasks.error")}),i.jsx("button",{onClick:f,className:"px-4 py-2 rounded-lg bg-accent-brand text-white text-sm font-medium hover:bg-accent-brand/90 transition-colors",children:e("tasks.retry")})]})}),k&&i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:[i.jsx(vm,{size:48,className:"mb-4 opacity-30"}),i.jsx("div",{className:"text-sm font-medium mb-1",children:e("tasks.empty")})]}),s.length>0&&i.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 max-w-6xl transition-opacity duration-300 ${m?"opacity-50 pointer-events-none":"opacity-100"}`,children:s.map(_=>{const E=bv(_.icon);return i.jsxs("div",{onClick:()=>y(_),className:"group flex items-center gap-4 px-4 py-3.5 rounded-xl border border-border-default hover:border-accent-brand/40 hover:bg-bg-secondary/60 transition-all cursor-pointer",children:[i.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-bg-secondary flex items-center justify-center group-hover:bg-accent-brand/10 transition-colors",children:i.jsx(E,{size:20,className:"text-text-tertiary group-hover:text-accent-brand transition-colors"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("h3",{className:"text-sm font-semibold text-text-primary truncate",children:_.title}),i.jsx("p",{className:"text-xs text-text-tertiary mt-0.5 truncate",children:_.description})]})]},_.id)})})]})]})}function bv(e){switch(e){case"Newspaper":return Rc;case"MessageSquare":return Rc;case"GitBranch":return dm;case"Package":return Gm;case"FileText":return et;case"Zap":return jg;case"Clock":return ar;default:return ar}}var vn={exports:{}},Rd;function yv(){return Rd||(Rd=1,(function(e,t){(function(r,n){e.exports=n()})(self,(()=>(()=>{var r={};return(()=>{var n=r;Object.defineProperty(n,"__esModule",{value:!0}),n.FitAddon=void 0,n.FitAddon=class{activate(s){this._terminal=s}dispose(){}fit(){const s=this.proposeDimensions();if(!s||!this._terminal||isNaN(s.cols)||isNaN(s.rows))return;const l=this._terminal._core;this._terminal.rows===s.rows&&this._terminal.cols===s.cols||(l._renderService.clear(),this._terminal.resize(s.cols,s.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const s=this._terminal._core,l=s._renderService.dimensions;if(l.css.cell.width===0||l.css.cell.height===0)return;const d=this._terminal.options.scrollback===0?0:s.viewport.scrollBarWidth,a=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(a.getPropertyValue("height")),c=Math.max(0,parseInt(a.getPropertyValue("width"))),m=window.getComputedStyle(this._terminal.element),h=o-(parseInt(m.getPropertyValue("padding-top"))+parseInt(m.getPropertyValue("padding-bottom"))),b=c-(parseInt(m.getPropertyValue("padding-right"))+parseInt(m.getPropertyValue("padding-left")))-d;return{cols:Math.max(2,Math.floor(b/l.css.cell.width)),rows:Math.max(1,Math.floor(h/l.css.cell.height))}}}})(),r})()))})(vn)),vn.exports}var _v=yv(),xn={exports:{}},Id;function vv(){return Id||(Id=1,(function(e,t){(function(r,n){e.exports=n()})(globalThis,(()=>(()=>{var r={4567:function(d,a,o){var c=this&&this.__decorate||function(u,f,y,k){var _,E=arguments.length,w=E<3?f:k===null?k=Object.getOwnPropertyDescriptor(f,y):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(u,f,y,k);else for(var N=u.length-1;N>=0;N--)(_=u[N])&&(w=(E<3?_(w):E>3?_(f,y,w):_(f,y))||w);return E>3&&w&&Object.defineProperty(f,y,w),w},m=this&&this.__param||function(u,f){return function(y,k){f(y,k,u)}};Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;const h=o(9042),b=o(9924),v=o(844),S=o(4725),x=o(2585),p=o(3656);let g=a.AccessibilityManager=class extends v.Disposable{constructor(u,f,y,k){super(),this._terminal=u,this._coreBrowserService=y,this._renderService=k,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let _=0;_<this._terminal.rows;_++)this._rowElements[_]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[_]);if(this._topBoundaryFocusListener=_=>this._handleBoundaryFocus(_,0),this._bottomBoundaryFocusListener=_=>this._handleBoundaryFocus(_,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new b.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((_=>this._handleResize(_.rows)))),this.register(this._terminal.onRender((_=>this._refreshRows(_.start,_.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((_=>this._handleChar(_)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
|
|
566
|
+
`)))),this.register(this._terminal.onA11yTab((_=>this._handleTab(_)))),this.register(this._terminal.onKey((_=>this._handleKey(_.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,p.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,v.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(u){for(let f=0;f<u;f++)this._handleChar(" ")}_handleChar(u){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==u&&(this._charsToAnnounce+=u):this._charsToAnnounce+=u,u===`
|
|
567
|
+
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=h.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(u){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(u)||this._charsToConsume.push(u)}_refreshRows(u,f){this._liveRegionDebouncer.refresh(u,f,this._terminal.rows)}_renderRows(u,f){const y=this._terminal.buffer,k=y.lines.length.toString();for(let _=u;_<=f;_++){const E=y.lines.get(y.ydisp+_),w=[],N=(E==null?void 0:E.translateToString(!0,void 0,void 0,w))||"",I=(y.ydisp+_+1).toString(),A=this._rowElements[_];A&&(N.length===0?(A.innerText=" ",this._rowColumns.set(A,[0,1])):(A.textContent=N,this._rowColumns.set(A,w)),A.setAttribute("aria-posinset",I),A.setAttribute("aria-setsize",k))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(u,f){const y=u.target,k=this._rowElements[f===0?1:this._rowElements.length-2];if(y.getAttribute("aria-posinset")===(f===0?"1":`${this._terminal.buffer.lines.length}`)||u.relatedTarget!==k)return;let _,E;if(f===0?(_=y,E=this._rowElements.pop(),this._rowContainer.removeChild(E)):(_=this._rowElements.shift(),E=y,this._rowContainer.removeChild(_)),_.removeEventListener("focus",this._topBoundaryFocusListener),E.removeEventListener("focus",this._bottomBoundaryFocusListener),f===0){const w=this._createAccessibilityTreeNode();this._rowElements.unshift(w),this._rowContainer.insertAdjacentElement("afterbegin",w)}else{const w=this._createAccessibilityTreeNode();this._rowElements.push(w),this._rowContainer.appendChild(w)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(f===0?-1:1),this._rowElements[f===0?1:this._rowElements.length-2].focus(),u.preventDefault(),u.stopImmediatePropagation()}_handleSelectionChange(){var N;if(this._rowElements.length===0)return;const u=document.getSelection();if(!u)return;if(u.isCollapsed)return void(this._rowContainer.contains(u.anchorNode)&&this._terminal.clearSelection());if(!u.anchorNode||!u.focusNode)return void console.error("anchorNode and/or focusNode are null");let f={node:u.anchorNode,offset:u.anchorOffset},y={node:u.focusNode,offset:u.focusOffset};if((f.node.compareDocumentPosition(y.node)&Node.DOCUMENT_POSITION_PRECEDING||f.node===y.node&&f.offset>y.offset)&&([f,y]=[y,f]),f.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(f={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(f.node))return;const k=this._rowElements.slice(-1)[0];if(y.node.compareDocumentPosition(k)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(y={node:k,offset:((N=k.textContent)==null?void 0:N.length)??0}),!this._rowContainer.contains(y.node))return;const _=({node:I,offset:A})=>{const M=I instanceof Text?I.parentNode:I;let O=parseInt(M==null?void 0:M.getAttribute("aria-posinset"),10)-1;if(isNaN(O))return console.warn("row is invalid. Race condition?"),null;const B=this._rowColumns.get(M);if(!B)return console.warn("columns is null. Race condition?"),null;let F=A<B.length?B[A]:B.slice(-1)[0]+1;return F>=this._terminal.cols&&(++O,F=0),{row:O,column:F}},E=_(f),w=_(y);if(E&&w){if(E.row>w.row||E.row===w.row&&E.column>=w.column)throw new Error("invalid range");this._terminal.select(E.column,E.row,(w.row-E.row)*this._terminal.cols-E.column+w.column)}}_handleResize(u){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let f=this._rowContainer.children.length;f<this._terminal.rows;f++)this._rowElements[f]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[f]);for(;this._rowElements.length>u;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const u=this._coreBrowserService.mainDocument.createElement("div");return u.setAttribute("role","listitem"),u.tabIndex=-1,this._refreshRowDimensions(u),u}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let u=0;u<this._terminal.rows;u++)this._refreshRowDimensions(this._rowElements[u])}}_refreshRowDimensions(u){u.style.height=`${this._renderService.dimensions.css.cell.height}px`}};a.AccessibilityManager=g=c([m(1,x.IInstantiationService),m(2,S.ICoreBrowserService),m(3,S.IRenderService)],g)},3614:(d,a)=>{function o(b){return b.replace(/\r?\n/g,"\r")}function c(b,v){return v?"\x1B[200~"+b+"\x1B[201~":b}function m(b,v,S,x){b=c(b=o(b),S.decPrivateModes.bracketedPasteMode&&x.rawOptions.ignoreBracketedPasteMode!==!0),S.triggerDataEvent(b,!0),v.value=""}function h(b,v,S){const x=S.getBoundingClientRect(),p=b.clientX-x.left-10,g=b.clientY-x.top-10;v.style.width="20px",v.style.height="20px",v.style.left=`${p}px`,v.style.top=`${g}px`,v.style.zIndex="1000",v.focus()}Object.defineProperty(a,"__esModule",{value:!0}),a.rightClickHandler=a.moveTextAreaUnderMouseCursor=a.paste=a.handlePasteEvent=a.copyHandler=a.bracketTextForPaste=a.prepareTextForTerminal=void 0,a.prepareTextForTerminal=o,a.bracketTextForPaste=c,a.copyHandler=function(b,v){b.clipboardData&&b.clipboardData.setData("text/plain",v.selectionText),b.preventDefault()},a.handlePasteEvent=function(b,v,S,x){b.stopPropagation(),b.clipboardData&&m(b.clipboardData.getData("text/plain"),v,S,x)},a.paste=m,a.moveTextAreaUnderMouseCursor=h,a.rightClickHandler=function(b,v,S,x,p){h(b,v,S),p&&x.rightClickSelect(b),v.value=x.selectionText,v.select()}},7239:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ColorContrastCache=void 0;const c=o(1505);a.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(m,h,b){this._css.set(m,h,b)}getCss(m,h){return this._css.get(m,h)}setColor(m,h,b){this._color.set(m,h,b)}getColor(m,h){return this._color.get(m,h)}clear(){this._color.clear(),this._css.clear()}}},3656:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.addDisposableDomListener=void 0,a.addDisposableDomListener=function(o,c,m,h){o.addEventListener(c,m,h);let b=!1;return{dispose:()=>{b||(b=!0,o.removeEventListener(c,m,h))}}}},3551:function(d,a,o){var c=this&&this.__decorate||function(g,u,f,y){var k,_=arguments.length,E=_<3?u:y===null?y=Object.getOwnPropertyDescriptor(u,f):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(g,u,f,y);else for(var w=g.length-1;w>=0;w--)(k=g[w])&&(E=(_<3?k(E):_>3?k(u,f,E):k(u,f))||E);return _>3&&E&&Object.defineProperty(u,f,E),E},m=this&&this.__param||function(g,u){return function(f,y){u(f,y,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Linkifier=void 0;const h=o(3656),b=o(8460),v=o(844),S=o(2585),x=o(4725);let p=a.Linkifier=class extends v.Disposable{get currentLink(){return this._currentLink}constructor(g,u,f,y,k){super(),this._element=g,this._mouseService=u,this._renderService=f,this._bufferService=y,this._linkProviderService=k,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new b.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new b.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,v.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,v.toDisposable)((()=>{var _;this._lastMouseEvent=void 0,(_=this._activeProviderReplies)==null||_.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(g){this._lastMouseEvent=g;const u=this._positionFromMouseEvent(g,this._element,this._mouseService);if(!u)return;this._isMouseOut=!1;const f=g.composedPath();for(let y=0;y<f.length;y++){const k=f[y];if(k.classList.contains("xterm"))break;if(k.classList.contains("xterm-hover"))return}this._lastBufferCell&&u.x===this._lastBufferCell.x&&u.y===this._lastBufferCell.y||(this._handleHover(u),this._lastBufferCell=u)}_handleHover(g){if(this._activeLine!==g.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(g,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,g)||(this._clearCurrentLink(),this._askForLink(g,!0))}_askForLink(g,u){var y,k;this._activeProviderReplies&&u||((y=this._activeProviderReplies)==null||y.forEach((_=>{_==null||_.forEach((E=>{E.link.dispose&&E.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=g.y);let f=!1;for(const[_,E]of this._linkProviderService.linkProviders.entries())u?(k=this._activeProviderReplies)!=null&&k.get(_)&&(f=this._checkLinkProviderResult(_,g,f)):E.provideLinks(g.y,(w=>{var I,A;if(this._isMouseOut)return;const N=w==null?void 0:w.map((M=>({link:M})));(I=this._activeProviderReplies)==null||I.set(_,N),f=this._checkLinkProviderResult(_,g,f),((A=this._activeProviderReplies)==null?void 0:A.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(g.y,this._activeProviderReplies)}))}_removeIntersectingLinks(g,u){const f=new Set;for(let y=0;y<u.size;y++){const k=u.get(y);if(k)for(let _=0;_<k.length;_++){const E=k[_],w=E.link.range.start.y<g?0:E.link.range.start.x,N=E.link.range.end.y>g?this._bufferService.cols:E.link.range.end.x;for(let I=w;I<=N;I++){if(f.has(I)){k.splice(_--,1);break}f.add(I)}}}}_checkLinkProviderResult(g,u,f){var _;if(!this._activeProviderReplies)return f;const y=this._activeProviderReplies.get(g);let k=!1;for(let E=0;E<g;E++)this._activeProviderReplies.has(E)&&!this._activeProviderReplies.get(E)||(k=!0);if(!k&&y){const E=y.find((w=>this._linkAtPosition(w.link,u)));E&&(f=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!f)for(let E=0;E<this._activeProviderReplies.size;E++){const w=(_=this._activeProviderReplies.get(E))==null?void 0:_.find((N=>this._linkAtPosition(N.link,u)));if(w){f=!0,this._handleNewLink(w);break}}return f}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(g){if(!this._currentLink)return;const u=this._positionFromMouseEvent(g,this._element,this._mouseService);u&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,u)&&this._currentLink.link.activate(g,this._currentLink.link.text)}_clearCurrentLink(g,u){this._currentLink&&this._lastMouseEvent&&(!g||!u||this._currentLink.link.range.start.y>=g&&this._currentLink.link.range.end.y<=u)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,v.disposeArray)(this._linkCacheDisposables))}_handleNewLink(g){if(!this._lastMouseEvent)return;const u=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);u&&this._linkAtPosition(g.link,u)&&(this._currentLink=g,this._currentLink.state={decorations:{underline:g.link.decorations===void 0||g.link.decorations.underline,pointerCursor:g.link.decorations===void 0||g.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,g.link,this._lastMouseEvent),g.link.decorations={},Object.defineProperties(g.link.decorations,{pointerCursor:{get:()=>{var f,y;return(y=(f=this._currentLink)==null?void 0:f.state)==null?void 0:y.decorations.pointerCursor},set:f=>{var y;(y=this._currentLink)!=null&&y.state&&this._currentLink.state.decorations.pointerCursor!==f&&(this._currentLink.state.decorations.pointerCursor=f,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",f))}},underline:{get:()=>{var f,y;return(y=(f=this._currentLink)==null?void 0:f.state)==null?void 0:y.decorations.underline},set:f=>{var y,k,_;(y=this._currentLink)!=null&&y.state&&((_=(k=this._currentLink)==null?void 0:k.state)==null?void 0:_.decorations.underline)!==f&&(this._currentLink.state.decorations.underline=f,this._currentLink.state.isHovered&&this._fireUnderlineEvent(g.link,f))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((f=>{if(!this._currentLink)return;const y=f.start===0?0:f.start+1+this._bufferService.buffer.ydisp,k=this._bufferService.buffer.ydisp+1+f.end;if(this._currentLink.link.range.start.y>=y&&this._currentLink.link.range.end.y<=k&&(this._clearCurrentLink(y,k),this._lastMouseEvent)){const _=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);_&&this._askForLink(_,!1)}}))))}_linkHover(g,u,f){var y;(y=this._currentLink)!=null&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(u,!0),this._currentLink.state.decorations.pointerCursor&&g.classList.add("xterm-cursor-pointer")),u.hover&&u.hover(f,u.text)}_fireUnderlineEvent(g,u){const f=g.range,y=this._bufferService.buffer.ydisp,k=this._createLinkUnderlineEvent(f.start.x-1,f.start.y-y-1,f.end.x,f.end.y-y-1,void 0);(u?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(k)}_linkLeave(g,u,f){var y;(y=this._currentLink)!=null&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(u,!1),this._currentLink.state.decorations.pointerCursor&&g.classList.remove("xterm-cursor-pointer")),u.leave&&u.leave(f,u.text)}_linkAtPosition(g,u){const f=g.range.start.y*this._bufferService.cols+g.range.start.x,y=g.range.end.y*this._bufferService.cols+g.range.end.x,k=u.y*this._bufferService.cols+u.x;return f<=k&&k<=y}_positionFromMouseEvent(g,u,f){const y=f.getCoords(g,u,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(g,u,f,y,k){return{x1:g,y1:u,x2:f,y2:y,cols:this._bufferService.cols,fg:k}}};a.Linkifier=p=c([m(1,x.IMouseService),m(2,x.IRenderService),m(3,S.IBufferService),m(4,x.ILinkProviderService)],p)},9042:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.tooMuchOutput=a.promptLabel=void 0,a.promptLabel="Terminal input",a.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(d,a,o){var c=this&&this.__decorate||function(x,p,g,u){var f,y=arguments.length,k=y<3?p:u===null?u=Object.getOwnPropertyDescriptor(p,g):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(x,p,g,u);else for(var _=x.length-1;_>=0;_--)(f=x[_])&&(k=(y<3?f(k):y>3?f(p,g,k):f(p,g))||k);return y>3&&k&&Object.defineProperty(p,g,k),k},m=this&&this.__param||function(x,p){return function(g,u){p(g,u,x)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OscLinkProvider=void 0;const h=o(511),b=o(2585);let v=a.OscLinkProvider=class{constructor(x,p,g){this._bufferService=x,this._optionsService=p,this._oscLinkService=g}provideLinks(x,p){var N;const g=this._bufferService.buffer.lines.get(x-1);if(!g)return void p(void 0);const u=[],f=this._optionsService.rawOptions.linkHandler,y=new h.CellData,k=g.getTrimmedLength();let _=-1,E=-1,w=!1;for(let I=0;I<k;I++)if(E!==-1||g.hasContent(I)){if(g.loadCell(I,y),y.hasExtendedAttrs()&&y.extended.urlId){if(E===-1){E=I,_=y.extended.urlId;continue}w=y.extended.urlId!==_}else E!==-1&&(w=!0);if(w||E!==-1&&I===k-1){const A=(N=this._oscLinkService.getLinkData(_))==null?void 0:N.uri;if(A){const M={start:{x:E+1,y:x},end:{x:I+(w||I!==k-1?0:1),y:x}};let O=!1;if(!(f!=null&&f.allowNonHttpProtocols))try{const B=new URL(A);["http:","https:"].includes(B.protocol)||(O=!0)}catch{O=!0}O||u.push({text:A,range:M,activate:(B,F)=>f?f.activate(B,F,M):S(0,F),hover:(B,F)=>{var z;return(z=f==null?void 0:f.hover)==null?void 0:z.call(f,B,F,M)},leave:(B,F)=>{var z;return(z=f==null?void 0:f.leave)==null?void 0:z.call(f,B,F,M)}})}w=!1,y.hasExtendedAttrs()&&y.extended.urlId?(E=I,_=y.extended.urlId):(E=-1,_=-1)}}p(u)}};function S(x,p){if(confirm(`Do you want to navigate to ${p}?
|
|
568
|
+
|
|
569
|
+
WARNING: This link could potentially be dangerous`)){const g=window.open();if(g){try{g.opener=null}catch{}g.location.href=p}else console.warn("Opening link blocked as opener could not be cleared")}}a.OscLinkProvider=v=c([m(0,b.IBufferService),m(1,b.IOptionsService),m(2,b.IOscLinkService)],v)},6193:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.RenderDebouncer=void 0,a.RenderDebouncer=class{constructor(o,c){this._renderCallback=o,this._coreBrowserService=c,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(o){return this._refreshCallbacks.push(o),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(o,c,m){this._rowCount=m,o=o!==void 0?o:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const o=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,c),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const o of this._refreshCallbacks)o(0);this._refreshCallbacks=[]}}},3236:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Terminal=void 0;const c=o(3614),m=o(3656),h=o(3551),b=o(9042),v=o(3730),S=o(1680),x=o(3107),p=o(5744),g=o(2950),u=o(1296),f=o(428),y=o(4269),k=o(5114),_=o(8934),E=o(3230),w=o(9312),N=o(4725),I=o(6731),A=o(8055),M=o(8969),O=o(8460),B=o(844),F=o(6114),z=o(8437),P=o(2584),U=o(7399),T=o(5941),L=o(9074),$=o(2585),R=o(5435),q=o(4567),W=o(779);class Y extends M.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(H={}){super(H),this.browser=F,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new B.MutableDisposable),this._onCursorMove=this.register(new O.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new O.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new O.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new O.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new O.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new O.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new O.EventEmitter),this._onBlur=this.register(new O.EventEmitter),this._onA11yCharEmitter=this.register(new O.EventEmitter),this._onA11yTabEmitter=this.register(new O.EventEmitter),this._onWillOpen=this.register(new O.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(L.DecorationService),this._instantiationService.setService($.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(W.LinkProviderService),this._instantiationService.setService(N.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(v.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((D,X)=>this.refresh(D,X)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((D=>this._reportWindowsOptions(D)))),this.register(this._inputHandler.onColor((D=>this._handleColorEvent(D)))),this.register((0,O.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,O.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,O.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,O.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((D=>this._afterResize(D.cols,D.rows)))),this.register((0,B.toDisposable)((()=>{var D,X;this._customKeyEventHandler=void 0,(X=(D=this.element)==null?void 0:D.parentNode)==null||X.removeChild(this.element)})))}_handleColorEvent(H){if(this._themeService)for(const D of H){let X,K="";switch(D.index){case 256:X="foreground",K="10";break;case 257:X="background",K="11";break;case 258:X="cursor",K="12";break;default:X="ansi",K="4;"+D.index}switch(D.type){case 0:const ee=A.color.toColorRGB(X==="ansi"?this._themeService.colors.ansi[D.index]:this._themeService.colors[X]);this.coreService.triggerDataEvent(`${P.C0.ESC}]${K};${(0,T.toRgbString)(ee)}${P.C1_ESCAPED.ST}`);break;case 1:if(X==="ansi")this._themeService.modifyColors((te=>te.ansi[D.index]=A.channels.toColor(...D.color)));else{const te=X;this._themeService.modifyColors((oe=>oe[te]=A.channels.toColor(...D.color)))}break;case 2:this._themeService.restoreColor(D.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(H){H?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(q.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(H){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(P.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var H;return(H=this.textarea)==null?void 0:H.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(P.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const H=this.buffer.ybase+this.buffer.y,D=this.buffer.lines.get(H);if(!D)return;const X=Math.min(this.buffer.x,this.cols-1),K=this._renderService.dimensions.css.cell.height,ee=D.getWidth(X),te=this._renderService.dimensions.css.cell.width*ee,oe=this.buffer.y*this._renderService.dimensions.css.cell.height,he=X*this._renderService.dimensions.css.cell.width;this.textarea.style.left=he+"px",this.textarea.style.top=oe+"px",this.textarea.style.width=te+"px",this.textarea.style.height=K+"px",this.textarea.style.lineHeight=K+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,m.addDisposableDomListener)(this.element,"copy",(D=>{this.hasSelection()&&(0,c.copyHandler)(D,this._selectionService)})));const H=D=>(0,c.handlePasteEvent)(D,this.textarea,this.coreService,this.optionsService);this.register((0,m.addDisposableDomListener)(this.textarea,"paste",H)),this.register((0,m.addDisposableDomListener)(this.element,"paste",H)),F.isFirefox?this.register((0,m.addDisposableDomListener)(this.element,"mousedown",(D=>{D.button===2&&(0,c.rightClickHandler)(D,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,m.addDisposableDomListener)(this.element,"contextmenu",(D=>{(0,c.rightClickHandler)(D,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),F.isLinux&&this.register((0,m.addDisposableDomListener)(this.element,"auxclick",(D=>{D.button===1&&(0,c.moveTextAreaUnderMouseCursor)(D,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,m.addDisposableDomListener)(this.textarea,"keyup",(H=>this._keyUp(H)),!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"keydown",(H=>this._keyDown(H)),!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"keypress",(H=>this._keyPress(H)),!0)),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionupdate",(H=>this._compositionHelper.compositionupdate(H)))),this.register((0,m.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,m.addDisposableDomListener)(this.textarea,"input",(H=>this._inputEvent(H)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(H){var X;if(!H)throw new Error("Terminal requires a parent element.");if(H.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((X=this.element)==null?void 0:X.ownerDocument.defaultView)&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=H.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),H.appendChild(this.element);const D=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),D.appendChild(this._viewportElement),this._viewportScrollArea=this._document.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this.register((0,m.addDisposableDomListener)(this.screenElement,"mousemove",(K=>this.updateCursorStyle(K)))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),D.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",b.promptLabel),F.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this.register(this._instantiationService.createInstance(k.CoreBrowserService,this.textarea,H.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(N.ICoreBrowserService,this._coreBrowserService),this.register((0,m.addDisposableDomListener)(this.textarea,"focus",(K=>this._handleTextAreaFocus(K)))),this.register((0,m.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(f.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(N.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(I.ThemeService),this._instantiationService.setService(N.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(y.CharacterJoinerService),this._instantiationService.setService(N.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(E.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(N.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((K=>this._onRender.fire(K)))),this.onResize((K=>this._renderService.resize(K.cols,K.rows))),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(g.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(_.MouseService),this._instantiationService.setService(N.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(h.Linkifier,this.screenElement)),this.element.appendChild(D);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(S.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((K=>this.scrollLines(K.amount,K.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(w.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(N.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((K=>this.scrollLines(K.amount,K.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((K=>this._renderService.handleSelectionChanged(K.start,K.end,K.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((K=>{this.textarea.value=K,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((K=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,m.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(x.BufferDecorationRenderer,this.screenElement)),this.register((0,m.addDisposableDomListener)(this.element,"mousedown",(K=>this._selectionService.handleMouseDown(K)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(q.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(K=>this._handleScreenReaderModeOptionChange(K)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(p.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(K=>{!this._overviewRulerRenderer&&K&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(p.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(u.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){const H=this,D=this.element;function X(te){const oe=H._mouseService.getMouseReportCoords(te,H.screenElement);if(!oe)return!1;let he,ge;switch(te.overrideType||te.type){case"mousemove":ge=32,te.buttons===void 0?(he=3,te.button!==void 0&&(he=te.button<3?te.button:3)):he=1&te.buttons?0:4&te.buttons?1:2&te.buttons?2:3;break;case"mouseup":ge=0,he=te.button<3?te.button:3;break;case"mousedown":ge=1,he=te.button<3?te.button:3;break;case"wheel":if(H._customWheelEventHandler&&H._customWheelEventHandler(te)===!1||H.viewport.getLinesScrolled(te)===0)return!1;ge=te.deltaY<0?0:1,he=4;break;default:return!1}return!(ge===void 0||he===void 0||he>4)&&H.coreMouseService.triggerMouseEvent({col:oe.col,row:oe.row,x:oe.x,y:oe.y,button:he,action:ge,ctrl:te.ctrlKey,alt:te.altKey,shift:te.shiftKey})}const K={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ee={mouseup:te=>(X(te),te.buttons||(this._document.removeEventListener("mouseup",K.mouseup),K.mousedrag&&this._document.removeEventListener("mousemove",K.mousedrag)),this.cancel(te)),wheel:te=>(X(te),this.cancel(te,!0)),mousedrag:te=>{te.buttons&&X(te)},mousemove:te=>{te.buttons||X(te)}};this.register(this.coreMouseService.onProtocolChange((te=>{te?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(te)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&te?K.mousemove||(D.addEventListener("mousemove",ee.mousemove),K.mousemove=ee.mousemove):(D.removeEventListener("mousemove",K.mousemove),K.mousemove=null),16&te?K.wheel||(D.addEventListener("wheel",ee.wheel,{passive:!1}),K.wheel=ee.wheel):(D.removeEventListener("wheel",K.wheel),K.wheel=null),2&te?K.mouseup||(K.mouseup=ee.mouseup):(this._document.removeEventListener("mouseup",K.mouseup),K.mouseup=null),4&te?K.mousedrag||(K.mousedrag=ee.mousedrag):(this._document.removeEventListener("mousemove",K.mousedrag),K.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,m.addDisposableDomListener)(D,"mousedown",(te=>{if(te.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(te))return X(te),K.mouseup&&this._document.addEventListener("mouseup",K.mouseup),K.mousedrag&&this._document.addEventListener("mousemove",K.mousedrag),this.cancel(te)}))),this.register((0,m.addDisposableDomListener)(D,"wheel",(te=>{if(!K.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(te)===!1)return!1;if(!this.buffer.hasScrollback){const oe=this.viewport.getLinesScrolled(te);if(oe===0)return;const he=P.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(te.deltaY<0?"A":"B");let ge="";for(let ue=0;ue<Math.abs(oe);ue++)ge+=he;return this.coreService.triggerDataEvent(ge,!0),this.cancel(te,!0)}return this.viewport.handleWheel(te)?this.cancel(te):void 0}}),{passive:!1})),this.register((0,m.addDisposableDomListener)(D,"touchstart",(te=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(te),this.cancel(te)}),{passive:!0})),this.register((0,m.addDisposableDomListener)(D,"touchmove",(te=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(te)?void 0:this.cancel(te)}),{passive:!1}))}refresh(H,D){var X;(X=this._renderService)==null||X.refreshRows(H,D)}updateCursorStyle(H){var D;(D=this._selectionService)!=null&&D.shouldColumnSelect(H)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(H,D,X=0){var K;X===1?(super.scrollLines(H,D,X),this.refresh(0,this.rows-1)):(K=this.viewport)==null||K.scrollLines(H)}paste(H){(0,c.paste)(H,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(H){this._customKeyEventHandler=H}attachCustomWheelEventHandler(H){this._customWheelEventHandler=H}registerLinkProvider(H){return this._linkProviderService.registerLinkProvider(H)}registerCharacterJoiner(H){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const D=this._characterJoinerService.register(H);return this.refresh(0,this.rows-1),D}deregisterCharacterJoiner(H){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(H)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(H){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+H)}registerDecoration(H){return this._decorationService.registerDecoration(H)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(H,D,X){this._selectionService.setSelection(H,D,X)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var H;(H=this._selectionService)==null||H.clearSelection()}selectAll(){var H;(H=this._selectionService)==null||H.selectAll()}selectLines(H,D){var X;(X=this._selectionService)==null||X.selectLines(H,D)}_keyDown(H){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1)return!1;const D=this.browser.isMac&&this.options.macOptionIsMeta&&H.altKey;if(!D&&!this._compositionHelper.keydown(H))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;D||H.key!=="Dead"&&H.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const X=(0,U.evaluateKeyboardEvent)(H,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(H),X.type===3||X.type===2){const K=this.rows-1;return this.scrollLines(X.type===2?-K:K),this.cancel(H,!0)}return X.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,H)||(X.cancel&&this.cancel(H,!0),!X.key||!!(H.key&&!H.ctrlKey&&!H.altKey&&!H.metaKey&&H.key.length===1&&H.key.charCodeAt(0)>=65&&H.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(X.key!==P.C0.ETX&&X.key!==P.C0.CR||(this.textarea.value=""),this._onKey.fire({key:X.key,domEvent:H}),this._showCursor(),this.coreService.triggerDataEvent(X.key,!0),!this.optionsService.rawOptions.screenReaderMode||H.altKey||H.ctrlKey?this.cancel(H,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(H,D){const X=H.isMac&&!this.options.macOptionIsMeta&&D.altKey&&!D.ctrlKey&&!D.metaKey||H.isWindows&&D.altKey&&D.ctrlKey&&!D.metaKey||H.isWindows&&D.getModifierState("AltGraph");return D.type==="keypress"?X:X&&(!D.keyCode||D.keyCode>47)}_keyUp(H){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1||((function(D){return D.keyCode===16||D.keyCode===17||D.keyCode===18})(H)||this.focus(),this.updateCursorStyle(H),this._keyPressHandled=!1)}_keyPress(H){let D;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1)return!1;if(this.cancel(H),H.charCode)D=H.charCode;else if(H.which===null||H.which===void 0)D=H.keyCode;else{if(H.which===0||H.charCode===0)return!1;D=H.which}return!(!D||(H.altKey||H.ctrlKey||H.metaKey)&&!this._isThirdLevelShift(this.browser,H)||(D=String.fromCharCode(D),this._onKey.fire({key:D,domEvent:H}),this._showCursor(),this.coreService.triggerDataEvent(D,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(H){if(H.data&&H.inputType==="insertText"&&(!H.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const D=H.data;return this.coreService.triggerDataEvent(D,!0),this.cancel(H),!0}return!1}resize(H,D){H!==this.cols||D!==this.rows?super.resize(H,D):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(H,D){var X,K;(X=this._charSizeService)==null||X.measure(),(K=this.viewport)==null||K.syncScrollArea(!0)}clear(){var H;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let D=1;D<this.rows;D++)this.buffer.lines.push(this.buffer.getBlankLine(z.DEFAULT_ATTR_DATA));this._onScroll.fire({position:this.buffer.ydisp,source:0}),(H=this.viewport)==null||H.reset(),this.refresh(0,this.rows-1)}}reset(){var D,X;this.options.rows=this.rows,this.options.cols=this.cols;const H=this._customKeyEventHandler;this._setup(),super.reset(),(D=this._selectionService)==null||D.reset(),this._decorationService.reset(),(X=this.viewport)==null||X.reset(),this._customKeyEventHandler=H,this.refresh(0,this.rows-1)}clearTextureAtlas(){var H;(H=this._renderService)==null||H.clearTextureAtlas()}_reportFocus(){var H;(H=this.element)!=null&&H.classList.contains("focus")?this.coreService.triggerDataEvent(P.C0.ESC+"[I"):this.coreService.triggerDataEvent(P.C0.ESC+"[O")}_reportWindowsOptions(H){if(this._renderService)switch(H){case R.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const D=this._renderService.dimensions.css.canvas.width.toFixed(0),X=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${P.C0.ESC}[4;${X};${D}t`);break;case R.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:const K=this._renderService.dimensions.css.cell.width.toFixed(0),ee=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${P.C0.ESC}[6;${ee};${K}t`)}}cancel(H,D){if(this.options.cancelEvents||D)return H.preventDefault(),H.stopPropagation(),!1}}a.Terminal=Y},9924:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TimeBasedDebouncer=void 0,a.TimeBasedDebouncer=class{constructor(o,c=1e3){this._renderCallback=o,this._debounceThresholdMS=c,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(o,c,m){this._rowCount=m,o=o!==void 0?o:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c;const h=Date.now();if(h-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=h,this._innerRefresh();else if(!this._additionalRefreshRequested){const b=h-this._lastRefreshMs,v=this._debounceThresholdMS-b;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),v)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const o=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,c)}}},1680:function(d,a,o){var c=this&&this.__decorate||function(g,u,f,y){var k,_=arguments.length,E=_<3?u:y===null?y=Object.getOwnPropertyDescriptor(u,f):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(g,u,f,y);else for(var w=g.length-1;w>=0;w--)(k=g[w])&&(E=(_<3?k(E):_>3?k(u,f,E):k(u,f))||E);return _>3&&E&&Object.defineProperty(u,f,E),E},m=this&&this.__param||function(g,u){return function(f,y){u(f,y,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Viewport=void 0;const h=o(3656),b=o(4725),v=o(8460),S=o(844),x=o(2585);let p=a.Viewport=class extends S.Disposable{constructor(g,u,f,y,k,_,E,w){super(),this._viewportElement=g,this._scrollArea=u,this._bufferService=f,this._optionsService=y,this._charSizeService=k,this._renderService=_,this._coreBrowserService=E,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new v.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,h.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((N=>this._activeBuffer=N.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((N=>this._renderDimensions=N))),this._handleThemeChange(w.colors),this.register(w.onChangeColors((N=>this._handleThemeChange(N)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(g){this._viewportElement.style.backgroundColor=g.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(g){if(g)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderDimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderDimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const u=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==u&&(this._lastRecordedBufferHeight=u,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const g=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==g&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=g),this._refreshAnimationFrame=null}syncScrollArea(g=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(g);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(g)}_handleScroll(g){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const u=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:u,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const g=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(g*(this._smoothScrollState.target-this._smoothScrollState.origin)),g<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(g,u){const f=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(u<0&&this._viewportElement.scrollTop!==0||u>0&&f<this._lastRecordedBufferHeight)||(g.cancelable&&g.preventDefault(),!1)}handleWheel(g){const u=this._getPixelsScrolled(g);return u!==0&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target===-1?this._smoothScrollState.target=this._viewportElement.scrollTop+u:this._smoothScrollState.target+=u,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=u,this._bubbleScroll(g,u))}scrollLines(g){if(g!==0)if(this._optionsService.rawOptions.smoothScrollDuration){const u=g*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+u,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:g,suppressScrollEvent:!1})}_getPixelsScrolled(g){if(g.deltaY===0||g.shiftKey)return 0;let u=this._applyScrollModifier(g.deltaY,g);return g.deltaMode===WheelEvent.DOM_DELTA_LINE?u*=this._currentRowHeight:g.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(u*=this._currentRowHeight*this._bufferService.rows),u}getBufferElements(g,u){var w;let f,y="";const k=[],_=u??this._bufferService.buffer.lines.length,E=this._bufferService.buffer.lines;for(let N=g;N<_;N++){const I=E.get(N);if(!I)continue;const A=(w=E.get(N+1))==null?void 0:w.isWrapped;if(y+=I.translateToString(!A),!A||N===E.length-1){const M=document.createElement("div");M.textContent=y,k.push(M),y.length>0&&(f=M),y=""}}return{bufferElements:k,cursorElement:f}}getLinesScrolled(g){if(g.deltaY===0||g.shiftKey)return 0;let u=this._applyScrollModifier(g.deltaY,g);return g.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(u/=this._currentRowHeight+0,this._wheelPartialScroll+=u,u=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):g.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(u*=this._bufferService.rows),u}_applyScrollModifier(g,u){const f=this._optionsService.rawOptions.fastScrollModifier;return f==="alt"&&u.altKey||f==="ctrl"&&u.ctrlKey||f==="shift"&&u.shiftKey?g*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:g*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(g){this._lastTouchY=g.touches[0].pageY}handleTouchMove(g){const u=this._lastTouchY-g.touches[0].pageY;return this._lastTouchY=g.touches[0].pageY,u!==0&&(this._viewportElement.scrollTop+=u,this._bubbleScroll(g,u))}};a.Viewport=p=c([m(2,x.IBufferService),m(3,x.IOptionsService),m(4,b.ICharSizeService),m(5,b.IRenderService),m(6,b.ICoreBrowserService),m(7,b.IThemeService)],p)},3107:function(d,a,o){var c=this&&this.__decorate||function(x,p,g,u){var f,y=arguments.length,k=y<3?p:u===null?u=Object.getOwnPropertyDescriptor(p,g):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(x,p,g,u);else for(var _=x.length-1;_>=0;_--)(f=x[_])&&(k=(y<3?f(k):y>3?f(p,g,k):f(p,g))||k);return y>3&&k&&Object.defineProperty(p,g,k),k},m=this&&this.__param||function(x,p){return function(g,u){p(g,u,x)}};Object.defineProperty(a,"__esModule",{value:!0}),a.BufferDecorationRenderer=void 0;const h=o(4725),b=o(844),v=o(2585);let S=a.BufferDecorationRenderer=class extends b.Disposable{constructor(x,p,g,u,f){super(),this._screenElement=x,this._bufferService=p,this._coreBrowserService=g,this._decorationService=u,this._renderService=f,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((y=>this._removeDecoration(y)))),this.register((0,b.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const x of this._decorationService.decorations)this._renderDecoration(x);this._dimensionsChanged=!1}_renderDecoration(x){this._refreshStyle(x),this._dimensionsChanged&&this._refreshXPosition(x)}_createElement(x){var u;const p=this._coreBrowserService.mainDocument.createElement("div");p.classList.add("xterm-decoration"),p.classList.toggle("xterm-decoration-top-layer",((u=x==null?void 0:x.options)==null?void 0:u.layer)==="top"),p.style.width=`${Math.round((x.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,p.style.height=(x.options.height||1)*this._renderService.dimensions.css.cell.height+"px",p.style.top=(x.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",p.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const g=x.options.x??0;return g&&g>this._bufferService.cols&&(p.style.display="none"),this._refreshXPosition(x,p),p}_refreshStyle(x){const p=x.marker.line-this._bufferService.buffers.active.ydisp;if(p<0||p>=this._bufferService.rows)x.element&&(x.element.style.display="none",x.onRenderEmitter.fire(x.element));else{let g=this._decorationElements.get(x);g||(g=this._createElement(x),x.element=g,this._decorationElements.set(x,g),this._container.appendChild(g),x.onDispose((()=>{this._decorationElements.delete(x),g.remove()}))),g.style.top=p*this._renderService.dimensions.css.cell.height+"px",g.style.display=this._altBufferIsActive?"none":"block",x.onRenderEmitter.fire(g)}}_refreshXPosition(x,p=x.element){if(!p)return;const g=x.options.x??0;(x.options.anchor||"left")==="right"?p.style.right=g?g*this._renderService.dimensions.css.cell.width+"px":"":p.style.left=g?g*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(x){var p;(p=this._decorationElements.get(x))==null||p.remove(),this._decorationElements.delete(x),x.dispose()}};a.BufferDecorationRenderer=S=c([m(1,v.IBufferService),m(2,h.ICoreBrowserService),m(3,v.IDecorationService),m(4,h.IRenderService)],S)},5871:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ColorZoneStore=void 0,a.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(o){if(o.options.overviewRulerOptions){for(const c of this._zones)if(c.color===o.options.overviewRulerOptions.color&&c.position===o.options.overviewRulerOptions.position){if(this._lineIntersectsZone(c,o.marker.line))return;if(this._lineAdjacentToZone(c,o.marker.line,o.options.overviewRulerOptions.position))return void this._addLineToZone(c,o.marker.line)}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=o.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=o.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=o.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=o.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:o.options.overviewRulerOptions.color,position:o.options.overviewRulerOptions.position,startBufferLine:o.marker.line,endBufferLine:o.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(o){this._linePadding=o}_lineIntersectsZone(o,c){return c>=o.startBufferLine&&c<=o.endBufferLine}_lineAdjacentToZone(o,c,m){return c>=o.startBufferLine-this._linePadding[m||"full"]&&c<=o.endBufferLine+this._linePadding[m||"full"]}_addLineToZone(o,c){o.startBufferLine=Math.min(o.startBufferLine,c),o.endBufferLine=Math.max(o.endBufferLine,c)}}},5744:function(d,a,o){var c=this&&this.__decorate||function(f,y,k,_){var E,w=arguments.length,N=w<3?y:_===null?_=Object.getOwnPropertyDescriptor(y,k):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(f,y,k,_);else for(var I=f.length-1;I>=0;I--)(E=f[I])&&(N=(w<3?E(N):w>3?E(y,k,N):E(y,k))||N);return w>3&&N&&Object.defineProperty(y,k,N),N},m=this&&this.__param||function(f,y){return function(k,_){y(k,_,f)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OverviewRulerRenderer=void 0;const h=o(5871),b=o(4725),v=o(844),S=o(2585),x={full:0,left:0,center:0,right:0},p={full:0,left:0,center:0,right:0},g={full:0,left:0,center:0,right:0};let u=a.OverviewRulerRenderer=class extends v.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(f,y,k,_,E,w,N){var A;super(),this._viewportElement=f,this._screenElement=y,this._bufferService=k,this._decorationService=_,this._renderService=E,this._optionsService=w,this._coreBrowserService=N,this._colorZoneStore=new h.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(A=this._viewportElement.parentElement)==null||A.insertBefore(this._canvas,this._viewportElement);const I=this._canvas.getContext("2d");if(!I)throw new Error("Ctx cannot be null");this._ctx=I,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,v.toDisposable)((()=>{var M;(M=this._canvas)==null||M.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const f=Math.floor(this._canvas.width/3),y=Math.ceil(this._canvas.width/3);p.full=this._canvas.width,p.left=f,p.center=y,p.right=f,this._refreshDrawHeightConstants(),g.full=0,g.left=0,g.center=p.left,g.right=p.left+p.center}_refreshDrawHeightConstants(){x.full=Math.round(2*this._coreBrowserService.dpr);const f=this._canvas.height/this._bufferService.buffer.lines.length,y=Math.round(Math.max(Math.min(f,12),6)*this._coreBrowserService.dpr);x.left=y,x.center=y,x.right=y}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*x.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*x.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*x.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*x.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const y of this._decorationService.decorations)this._colorZoneStore.addDecoration(y);this._ctx.lineWidth=1;const f=this._colorZoneStore.zones;for(const y of f)y.position!=="full"&&this._renderColorZone(y);for(const y of f)y.position==="full"&&this._renderColorZone(y);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(f){this._ctx.fillStyle=f.color,this._ctx.fillRect(g[f.position||"full"],Math.round((this._canvas.height-1)*(f.startBufferLine/this._bufferService.buffers.active.lines.length)-x[f.position||"full"]/2),p[f.position||"full"],Math.round((this._canvas.height-1)*((f.endBufferLine-f.startBufferLine)/this._bufferService.buffers.active.lines.length)+x[f.position||"full"]))}_queueRefresh(f,y){this._shouldUpdateDimensions=f||this._shouldUpdateDimensions,this._shouldUpdateAnchor=y||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};a.OverviewRulerRenderer=u=c([m(2,S.IBufferService),m(3,S.IDecorationService),m(4,b.IRenderService),m(5,S.IOptionsService),m(6,b.ICoreBrowserService)],u)},2950:function(d,a,o){var c=this&&this.__decorate||function(x,p,g,u){var f,y=arguments.length,k=y<3?p:u===null?u=Object.getOwnPropertyDescriptor(p,g):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(x,p,g,u);else for(var _=x.length-1;_>=0;_--)(f=x[_])&&(k=(y<3?f(k):y>3?f(p,g,k):f(p,g))||k);return y>3&&k&&Object.defineProperty(p,g,k),k},m=this&&this.__param||function(x,p){return function(g,u){p(g,u,x)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CompositionHelper=void 0;const h=o(4725),b=o(2585),v=o(2584);let S=a.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(x,p,g,u,f,y){this._textarea=x,this._compositionView=p,this._bufferService=g,this._optionsService=u,this._coreService=f,this._renderService=y,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(x){this._compositionView.textContent=x.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(x){if(this._isComposing||this._isSendingComposition){if(x.keyCode===229||x.keyCode===16||x.keyCode===17||x.keyCode===18)return!1;this._finalizeComposition(!1)}return x.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(x){if(this._compositionView.classList.remove("active"),this._isComposing=!1,x){const p={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let g;this._isSendingComposition=!1,p.start+=this._dataAlreadySent.length,g=this._isComposing?this._textarea.value.substring(p.start,p.end):this._textarea.value.substring(p.start),g.length>0&&this._coreService.triggerDataEvent(g,!0)}}),0)}else{this._isSendingComposition=!1;const p=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(p,!0)}}_handleAnyTextareaChanges(){const x=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const p=this._textarea.value,g=p.replace(x,"");this._dataAlreadySent=g,p.length>x.length?this._coreService.triggerDataEvent(g,!0):p.length<x.length?this._coreService.triggerDataEvent(`${v.C0.DEL}`,!0):p.length===x.length&&p!==x&&this._coreService.triggerDataEvent(p,!0)}}),0)}updateCompositionElements(x){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const p=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),g=this._renderService.dimensions.css.cell.height,u=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,f=p*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=f+"px",this._compositionView.style.top=u+"px",this._compositionView.style.height=g+"px",this._compositionView.style.lineHeight=g+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";const y=this._compositionView.getBoundingClientRect();this._textarea.style.left=f+"px",this._textarea.style.top=u+"px",this._textarea.style.width=Math.max(y.width,1)+"px",this._textarea.style.height=Math.max(y.height,1)+"px",this._textarea.style.lineHeight=y.height+"px"}x||setTimeout((()=>this.updateCompositionElements(!0)),0)}}};a.CompositionHelper=S=c([m(2,b.IBufferService),m(3,b.IOptionsService),m(4,b.ICoreService),m(5,h.IRenderService)],S)},9806:(d,a)=>{function o(c,m,h){const b=h.getBoundingClientRect(),v=c.getComputedStyle(h),S=parseInt(v.getPropertyValue("padding-left")),x=parseInt(v.getPropertyValue("padding-top"));return[m.clientX-b.left-S,m.clientY-b.top-x]}Object.defineProperty(a,"__esModule",{value:!0}),a.getCoords=a.getCoordsRelativeToElement=void 0,a.getCoordsRelativeToElement=o,a.getCoords=function(c,m,h,b,v,S,x,p,g){if(!S)return;const u=o(c,m,h);return u?(u[0]=Math.ceil((u[0]+(g?x/2:0))/x),u[1]=Math.ceil(u[1]/p),u[0]=Math.min(Math.max(u[0],1),b+(g?1:0)),u[1]=Math.min(Math.max(u[1],1),v),u):void 0}},9504:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.moveToCellSequence=void 0;const c=o(2584);function m(p,g,u,f){const y=p-h(p,u),k=g-h(g,u),_=Math.abs(y-k)-(function(E,w,N){let I=0;const A=E-h(E,N),M=w-h(w,N);for(let O=0;O<Math.abs(A-M);O++){const B=b(E,w)==="A"?-1:1,F=N.buffer.lines.get(A+B*O);F!=null&&F.isWrapped&&I++}return I})(p,g,u);return x(_,S(b(p,g),f))}function h(p,g){let u=0,f=g.buffer.lines.get(p),y=f==null?void 0:f.isWrapped;for(;y&&p>=0&&p<g.rows;)u++,f=g.buffer.lines.get(--p),y=f==null?void 0:f.isWrapped;return u}function b(p,g){return p>g?"A":"B"}function v(p,g,u,f,y,k){let _=p,E=g,w="";for(;_!==u||E!==f;)_+=y?1:-1,y&&_>k.cols-1?(w+=k.buffer.translateBufferLineToString(E,!1,p,_),_=0,p=0,E++):!y&&_<0&&(w+=k.buffer.translateBufferLineToString(E,!1,0,p+1),_=k.cols-1,p=_,E--);return w+k.buffer.translateBufferLineToString(E,!1,p,_)}function S(p,g){const u=g?"O":"[";return c.C0.ESC+u+p}function x(p,g){p=Math.floor(p);let u="";for(let f=0;f<p;f++)u+=g;return u}a.moveToCellSequence=function(p,g,u,f){const y=u.buffer.x,k=u.buffer.y;if(!u.buffer.hasScrollback)return(function(w,N,I,A,M,O){return m(N,A,M,O).length===0?"":x(v(w,N,w,N-h(N,M),!1,M).length,S("D",O))})(y,k,0,g,u,f)+m(k,g,u,f)+(function(w,N,I,A,M,O){let B;B=m(N,A,M,O).length>0?A-h(A,M):N;const F=A,z=(function(P,U,T,L,$,R){let q;return q=m(T,L,$,R).length>0?L-h(L,$):U,P<T&&q<=L||P>=T&&q<L?"C":"D"})(w,N,I,A,M,O);return x(v(w,B,I,F,z==="C",M).length,S(z,O))})(y,k,p,g,u,f);let _;if(k===g)return _=y>p?"D":"C",x(Math.abs(y-p),S(_,f));_=k>g?"D":"C";const E=Math.abs(k-g);return x((function(w,N){return N.cols-w})(k>g?p:y,u)+(E-1)*u.cols+1+((k>g?y:p)-1),S(_,f))}},1296:function(d,a,o){var c=this&&this.__decorate||function(O,B,F,z){var P,U=arguments.length,T=U<3?B:z===null?z=Object.getOwnPropertyDescriptor(B,F):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(O,B,F,z);else for(var L=O.length-1;L>=0;L--)(P=O[L])&&(T=(U<3?P(T):U>3?P(B,F,T):P(B,F))||T);return U>3&&T&&Object.defineProperty(B,F,T),T},m=this&&this.__param||function(O,B){return function(F,z){B(F,z,O)}};Object.defineProperty(a,"__esModule",{value:!0}),a.DomRenderer=void 0;const h=o(3787),b=o(2550),v=o(2223),S=o(6171),x=o(6052),p=o(4725),g=o(8055),u=o(8460),f=o(844),y=o(2585),k="xterm-dom-renderer-owner-",_="xterm-rows",E="xterm-fg-",w="xterm-bg-",N="xterm-focus",I="xterm-selection";let A=1,M=a.DomRenderer=class extends f.Disposable{constructor(O,B,F,z,P,U,T,L,$,R,q,W,Y){super(),this._terminal=O,this._document=B,this._element=F,this._screenElement=z,this._viewportElement=P,this._helperContainer=U,this._linkifier2=T,this._charSizeService=$,this._optionsService=R,this._bufferService=q,this._coreBrowserService=W,this._themeService=Y,this._terminalClass=A++,this._rowElements=[],this._selectionRenderModel=(0,x.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new u.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(_),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(I),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,S.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((V=>this._injectCss(V)))),this._injectCss(this._themeService.colors),this._rowFactory=L.createInstance(h.DomRendererRowFactory,document),this._element.classList.add(k+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((V=>this._handleLinkHover(V)))),this.register(this._linkifier2.onHideLinkUnderline((V=>this._handleLinkLeave(V)))),this.register((0,f.toDisposable)((()=>{this._element.classList.remove(k+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new b.WidthCache(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const O=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*O,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*O),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/O),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/O),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const F of this._rowElements)F.style.width=`${this.dimensions.css.canvas.width}px`,F.style.height=`${this.dimensions.css.cell.height}px`,F.style.lineHeight=`${this.dimensions.css.cell.height}px`,F.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const B=`${this._terminalSelector} .${_} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=B,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(O){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let B=`${this._terminalSelector} .${_} { color: ${O.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;B+=`${this._terminalSelector} .${_} .xterm-dim { color: ${g.color.multiplyOpacity(O.foreground,.5).css};}`,B+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;const F=`blink_underline_${this._terminalClass}`,z=`blink_bar_${this._terminalClass}`,P=`blink_block_${this._terminalClass}`;B+=`@keyframes ${F} { 50% { border-bottom-style: hidden; }}`,B+=`@keyframes ${z} { 50% { box-shadow: none; }}`,B+=`@keyframes ${P} { 0% { background-color: ${O.cursor.css}; color: ${O.cursorAccent.css}; } 50% { background-color: inherit; color: ${O.cursor.css}; }}`,B+=`${this._terminalSelector} .${_}.${N} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${F} 1s step-end infinite;}${this._terminalSelector} .${_}.${N} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${z} 1s step-end infinite;}${this._terminalSelector} .${_}.${N} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${P} 1s step-end infinite;}${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-block { background-color: ${O.cursor.css}; color: ${O.cursorAccent.css};}${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${O.cursor.css} !important; color: ${O.cursorAccent.css} !important;}${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${O.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${O.cursor.css} inset;}${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${O.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,B+=`${this._terminalSelector} .${I} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${I} div { position: absolute; background-color: ${O.selectionBackgroundOpaque.css};}${this._terminalSelector} .${I} div { position: absolute; background-color: ${O.selectionInactiveBackgroundOpaque.css};}`;for(const[U,T]of O.ansi.entries())B+=`${this._terminalSelector} .${E}${U} { color: ${T.css}; }${this._terminalSelector} .${E}${U}.xterm-dim { color: ${g.color.multiplyOpacity(T,.5).css}; }${this._terminalSelector} .${w}${U} { background-color: ${T.css}; }`;B+=`${this._terminalSelector} .${E}${v.INVERTED_DEFAULT_COLOR} { color: ${g.color.opaque(O.background).css}; }${this._terminalSelector} .${E}${v.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${g.color.multiplyOpacity(g.color.opaque(O.background),.5).css}; }${this._terminalSelector} .${w}${v.INVERTED_DEFAULT_COLOR} { background-color: ${O.foreground.css}; }`,this._themeStyleElement.textContent=B}_setDefaultSpacing(){const O=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${O}px`,this._rowFactory.defaultSpacing=O}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(O,B){for(let F=this._rowElements.length;F<=B;F++){const z=this._document.createElement("div");this._rowContainer.appendChild(z),this._rowElements.push(z)}for(;this._rowElements.length>B;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(O,B){this._refreshRowElements(O,B),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(N),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(N),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(O,B,F){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(O,B,F),this.renderRows(0,this._bufferService.rows-1),!O||!B)return;this._selectionRenderModel.update(this._terminal,O,B,F);const z=this._selectionRenderModel.viewportStartRow,P=this._selectionRenderModel.viewportEndRow,U=this._selectionRenderModel.viewportCappedStartRow,T=this._selectionRenderModel.viewportCappedEndRow;if(U>=this._bufferService.rows||T<0)return;const L=this._document.createDocumentFragment();if(F){const $=O[0]>B[0];L.appendChild(this._createSelectionElement(U,$?B[0]:O[0],$?O[0]:B[0],T-U+1))}else{const $=z===U?O[0]:0,R=U===P?B[0]:this._bufferService.cols;L.appendChild(this._createSelectionElement(U,$,R));const q=T-U-1;if(L.appendChild(this._createSelectionElement(U+1,0,this._bufferService.cols,q)),U!==T){const W=P===T?B[0]:this._bufferService.cols;L.appendChild(this._createSelectionElement(T,0,W))}}this._selectionContainer.appendChild(L)}_createSelectionElement(O,B,F,z=1){const P=this._document.createElement("div"),U=B*this.dimensions.css.cell.width;let T=this.dimensions.css.cell.width*(F-B);return U+T>this.dimensions.css.canvas.width&&(T=this.dimensions.css.canvas.width-U),P.style.height=z*this.dimensions.css.cell.height+"px",P.style.top=O*this.dimensions.css.cell.height+"px",P.style.left=`${U}px`,P.style.width=`${T}px`,P}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const O of this._rowElements)O.replaceChildren()}renderRows(O,B){const F=this._bufferService.buffer,z=F.ybase+F.y,P=Math.min(F.x,this._bufferService.cols-1),U=this._optionsService.rawOptions.cursorBlink,T=this._optionsService.rawOptions.cursorStyle,L=this._optionsService.rawOptions.cursorInactiveStyle;for(let $=O;$<=B;$++){const R=$+F.ydisp,q=this._rowElements[$],W=F.lines.get(R);if(!q||!W)break;q.replaceChildren(...this._rowFactory.createRow(W,R,R===z,T,L,P,U,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${k}${this._terminalClass}`}_handleLinkHover(O){this._setCellUnderline(O.x1,O.x2,O.y1,O.y2,O.cols,!0)}_handleLinkLeave(O){this._setCellUnderline(O.x1,O.x2,O.y1,O.y2,O.cols,!1)}_setCellUnderline(O,B,F,z,P,U){F<0&&(O=0),z<0&&(B=0);const T=this._bufferService.rows-1;F=Math.max(Math.min(F,T),0),z=Math.max(Math.min(z,T),0),P=Math.min(P,this._bufferService.cols);const L=this._bufferService.buffer,$=L.ybase+L.y,R=Math.min(L.x,P-1),q=this._optionsService.rawOptions.cursorBlink,W=this._optionsService.rawOptions.cursorStyle,Y=this._optionsService.rawOptions.cursorInactiveStyle;for(let V=F;V<=z;++V){const H=V+L.ydisp,D=this._rowElements[V],X=L.lines.get(H);if(!D||!X)break;D.replaceChildren(...this._rowFactory.createRow(X,H,H===$,W,Y,R,q,this.dimensions.css.cell.width,this._widthCache,U?V===F?O:0:-1,U?(V===z?B:P)-1:-1))}}};a.DomRenderer=M=c([m(7,y.IInstantiationService),m(8,p.ICharSizeService),m(9,y.IOptionsService),m(10,y.IBufferService),m(11,p.ICoreBrowserService),m(12,p.IThemeService)],M)},3787:function(d,a,o){var c=this&&this.__decorate||function(_,E,w,N){var I,A=arguments.length,M=A<3?E:N===null?N=Object.getOwnPropertyDescriptor(E,w):N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(_,E,w,N);else for(var O=_.length-1;O>=0;O--)(I=_[O])&&(M=(A<3?I(M):A>3?I(E,w,M):I(E,w))||M);return A>3&&M&&Object.defineProperty(E,w,M),M},m=this&&this.__param||function(_,E){return function(w,N){E(w,N,_)}};Object.defineProperty(a,"__esModule",{value:!0}),a.DomRendererRowFactory=void 0;const h=o(2223),b=o(643),v=o(511),S=o(2585),x=o(8055),p=o(4725),g=o(4269),u=o(6171),f=o(3734);let y=a.DomRendererRowFactory=class{constructor(_,E,w,N,I,A,M){this._document=_,this._characterJoinerService=E,this._optionsService=w,this._coreBrowserService=N,this._coreService=I,this._decorationService=A,this._themeService=M,this._workCell=new v.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(_,E,w){this._selectionStart=_,this._selectionEnd=E,this._columnSelectMode=w}createRow(_,E,w,N,I,A,M,O,B,F,z){const P=[],U=this._characterJoinerService.getJoinedCharacters(E),T=this._themeService.colors;let L,$=_.getNoBgTrimmedLength();w&&$<A+1&&($=A+1);let R=0,q="",W=0,Y=0,V=0,H=!1,D=0,X=!1,K=0;const ee=[],te=F!==-1&&z!==-1;for(let oe=0;oe<$;oe++){_.loadCell(oe,this._workCell);let he=this._workCell.getWidth();if(he===0)continue;let ge=!1,ue=oe,se=this._workCell;if(U.length>0&&oe===U[0][0]){ge=!0;const pe=U.shift();se=new g.JoinedCellData(this._workCell,_.translateToString(!0,pe[0],pe[1]),pe[1]-pe[0]),ue=pe[1]-1,he=se.getWidth()}const Ne=this._isCellInSelection(oe,E),re=w&&oe===A,le=te&&oe>=F&&oe<=z;let Se=!1;this._decorationService.forEachDecorationAtCell(oe,E,void 0,(pe=>{Se=!0}));let Ie=se.getChars()||b.WHITESPACE_CELL_CHAR;if(Ie===" "&&(se.isUnderline()||se.isOverline())&&(Ie=" "),K=he*O-B.get(Ie,se.isBold(),se.isItalic()),L){if(R&&(Ne&&X||!Ne&&!X&&se.bg===W)&&(Ne&&X&&T.selectionForeground||se.fg===Y)&&se.extended.ext===V&&le===H&&K===D&&!re&&!ge&&!Se){se.isInvisible()?q+=b.WHITESPACE_CELL_CHAR:q+=Ie,R++;continue}R&&(L.textContent=q),L=this._document.createElement("span"),R=0,q=""}else L=this._document.createElement("span");if(W=se.bg,Y=se.fg,V=se.extended.ext,H=le,D=K,X=Ne,ge&&A>=oe&&A<=ue&&(A=oe),!this._coreService.isCursorHidden&&re&&this._coreService.isCursorInitialized){if(ee.push("xterm-cursor"),this._coreBrowserService.isFocused)M&&ee.push("xterm-cursor-blink"),ee.push(N==="bar"?"xterm-cursor-bar":N==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(I)switch(I){case"outline":ee.push("xterm-cursor-outline");break;case"block":ee.push("xterm-cursor-block");break;case"bar":ee.push("xterm-cursor-bar");break;case"underline":ee.push("xterm-cursor-underline")}}if(se.isBold()&&ee.push("xterm-bold"),se.isItalic()&&ee.push("xterm-italic"),se.isDim()&&ee.push("xterm-dim"),q=se.isInvisible()?b.WHITESPACE_CELL_CHAR:se.getChars()||b.WHITESPACE_CELL_CHAR,se.isUnderline()&&(ee.push(`xterm-underline-${se.extended.underlineStyle}`),q===" "&&(q=" "),!se.isUnderlineColorDefault()))if(se.isUnderlineColorRGB())L.style.textDecorationColor=`rgb(${f.AttributeData.toColorRGB(se.getUnderlineColor()).join(",")})`;else{let pe=se.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&se.isBold()&&pe<8&&(pe+=8),L.style.textDecorationColor=T.ansi[pe].css}se.isOverline()&&(ee.push("xterm-overline"),q===" "&&(q=" ")),se.isStrikethrough()&&ee.push("xterm-strikethrough"),le&&(L.style.textDecoration="underline");let xe=se.getFgColor(),Ve=se.getFgColorMode(),J=se.getBgColor(),ne=se.getBgColorMode();const fe=!!se.isInverse();if(fe){const pe=xe;xe=J,J=pe;const bt=Ve;Ve=ne,ne=bt}let Le,at,Ge,We=!1;switch(this._decorationService.forEachDecorationAtCell(oe,E,void 0,(pe=>{pe.options.layer!=="top"&&We||(pe.backgroundColorRGB&&(ne=50331648,J=pe.backgroundColorRGB.rgba>>8&16777215,Le=pe.backgroundColorRGB),pe.foregroundColorRGB&&(Ve=50331648,xe=pe.foregroundColorRGB.rgba>>8&16777215,at=pe.foregroundColorRGB),We=pe.options.layer==="top")})),!We&&Ne&&(Le=this._coreBrowserService.isFocused?T.selectionBackgroundOpaque:T.selectionInactiveBackgroundOpaque,J=Le.rgba>>8&16777215,ne=50331648,We=!0,T.selectionForeground&&(Ve=50331648,xe=T.selectionForeground.rgba>>8&16777215,at=T.selectionForeground)),We&&ee.push("xterm-decoration-top"),ne){case 16777216:case 33554432:Ge=T.ansi[J],ee.push(`xterm-bg-${J}`);break;case 50331648:Ge=x.channels.toColor(J>>16,J>>8&255,255&J),this._addStyle(L,`background-color:#${k((J>>>0).toString(16),"0",6)}`);break;default:fe?(Ge=T.foreground,ee.push(`xterm-bg-${h.INVERTED_DEFAULT_COLOR}`)):Ge=T.background}switch(Le||se.isDim()&&(Le=x.color.multiplyOpacity(Ge,.5)),Ve){case 16777216:case 33554432:se.isBold()&&xe<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(xe+=8),this._applyMinimumContrast(L,Ge,T.ansi[xe],se,Le,void 0)||ee.push(`xterm-fg-${xe}`);break;case 50331648:const pe=x.channels.toColor(xe>>16&255,xe>>8&255,255&xe);this._applyMinimumContrast(L,Ge,pe,se,Le,at)||this._addStyle(L,`color:#${k(xe.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(L,Ge,T.foreground,se,Le,at)||fe&&ee.push(`xterm-fg-${h.INVERTED_DEFAULT_COLOR}`)}ee.length&&(L.className=ee.join(" "),ee.length=0),re||ge||Se?L.textContent=q:R++,K!==this.defaultSpacing&&(L.style.letterSpacing=`${K}px`),P.push(L),oe=ue}return L&&R&&(L.textContent=q),P}_applyMinimumContrast(_,E,w,N,I,A){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,u.treatGlyphAsBackgroundColor)(N.getCode()))return!1;const M=this._getContrastCache(N);let O;if(I||A||(O=M.getColor(E.rgba,w.rgba)),O===void 0){const B=this._optionsService.rawOptions.minimumContrastRatio/(N.isDim()?2:1);O=x.color.ensureContrastRatio(I||E,A||w,B),M.setColor((I||E).rgba,(A||w).rgba,O??null)}return!!O&&(this._addStyle(_,`color:${O.css}`),!0)}_getContrastCache(_){return _.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(_,E){_.setAttribute("style",`${_.getAttribute("style")||""}${E};`)}_isCellInSelection(_,E){const w=this._selectionStart,N=this._selectionEnd;return!(!w||!N)&&(this._columnSelectMode?w[0]<=N[0]?_>=w[0]&&E>=w[1]&&_<N[0]&&E<=N[1]:_<w[0]&&E>=w[1]&&_>=N[0]&&E<=N[1]:E>w[1]&&E<N[1]||w[1]===N[1]&&E===w[1]&&_>=w[0]&&_<N[0]||w[1]<N[1]&&E===N[1]&&_<N[0]||w[1]<N[1]&&E===w[1]&&_>=w[0])}};function k(_,E,w){for(;_.length<w;)_=E+_;return _}a.DomRendererRowFactory=y=c([m(1,p.ICharacterJoinerService),m(2,S.IOptionsService),m(3,p.ICoreBrowserService),m(4,S.ICoreService),m(5,S.IDecorationService),m(6,p.IThemeService)],y)},2550:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WidthCache=void 0,a.WidthCache=class{constructor(o,c){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=o.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const m=o.createElement("span");m.classList.add("xterm-char-measure-element");const h=o.createElement("span");h.classList.add("xterm-char-measure-element"),h.style.fontWeight="bold";const b=o.createElement("span");b.classList.add("xterm-char-measure-element"),b.style.fontStyle="italic";const v=o.createElement("span");v.classList.add("xterm-char-measure-element"),v.style.fontWeight="bold",v.style.fontStyle="italic",this._measureElements=[m,h,b,v],this._container.appendChild(m),this._container.appendChild(h),this._container.appendChild(b),this._container.appendChild(v),c.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(o,c,m,h){o===this._font&&c===this._fontSize&&m===this._weight&&h===this._weightBold||(this._font=o,this._fontSize=c,this._weight=m,this._weightBold=h,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${m}`,this._measureElements[1].style.fontWeight=`${h}`,this._measureElements[2].style.fontWeight=`${m}`,this._measureElements[3].style.fontWeight=`${h}`,this.clear())}get(o,c,m){let h=0;if(!c&&!m&&o.length===1&&(h=o.charCodeAt(0))<256){if(this._flat[h]!==-9999)return this._flat[h];const S=this._measure(o,0);return S>0&&(this._flat[h]=S),S}let b=o;c&&(b+="B"),m&&(b+="I");let v=this._holey.get(b);if(v===void 0){let S=0;c&&(S|=1),m&&(S|=2),v=this._measure(o,S),v>0&&this._holey.set(b,v)}return v}_measure(o,c){const m=this._measureElements[c];return m.textContent=o.repeat(32),m.offsetWidth/32}}},2223:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TEXT_BASELINE=a.DIM_OPACITY=a.INVERTED_DEFAULT_COLOR=void 0;const c=o(6114);a.INVERTED_DEFAULT_COLOR=257,a.DIM_OPACITY=.5,a.TEXT_BASELINE=c.isFirefox||c.isLegacyEdge?"bottom":"ideographic"},6171:(d,a)=>{function o(m){return 57508<=m&&m<=57558}function c(m){return m>=128512&&m<=128591||m>=127744&&m<=128511||m>=128640&&m<=128767||m>=9728&&m<=9983||m>=9984&&m<=10175||m>=65024&&m<=65039||m>=129280&&m<=129535||m>=127462&&m<=127487}Object.defineProperty(a,"__esModule",{value:!0}),a.computeNextVariantOffset=a.createRenderDimensions=a.treatGlyphAsBackgroundColor=a.allowRescaling=a.isEmoji=a.isRestrictedPowerlineGlyph=a.isPowerlineGlyph=a.throwIfFalsy=void 0,a.throwIfFalsy=function(m){if(!m)throw new Error("value must not be falsy");return m},a.isPowerlineGlyph=o,a.isRestrictedPowerlineGlyph=function(m){return 57520<=m&&m<=57527},a.isEmoji=c,a.allowRescaling=function(m,h,b,v){return h===1&&b>Math.ceil(1.5*v)&&m!==void 0&&m>255&&!c(m)&&!o(m)&&!(function(S){return 57344<=S&&S<=63743})(m)},a.treatGlyphAsBackgroundColor=function(m){return o(m)||(function(h){return 9472<=h&&h<=9631})(m)},a.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},a.computeNextVariantOffset=function(m,h,b=0){return(m-(2*Math.round(h)-b))%(2*Math.round(h))}},6052:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createSelectionRenderModel=void 0;class o{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(m,h,b,v=!1){if(this.selectionStart=h,this.selectionEnd=b,!h||!b||h[0]===b[0]&&h[1]===b[1])return void this.clear();const S=m.buffers.active.ydisp,x=h[1]-S,p=b[1]-S,g=Math.max(x,0),u=Math.min(p,m.rows-1);g>=m.rows||u<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=v,this.viewportStartRow=x,this.viewportEndRow=p,this.viewportCappedStartRow=g,this.viewportCappedEndRow=u,this.startCol=h[0],this.endCol=b[0])}isCellSelected(m,h,b){return!!this.hasSelection&&(b-=m.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?h>=this.startCol&&b>=this.viewportCappedStartRow&&h<this.endCol&&b<=this.viewportCappedEndRow:h<this.startCol&&b>=this.viewportCappedStartRow&&h>=this.endCol&&b<=this.viewportCappedEndRow:b>this.viewportStartRow&&b<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&b===this.viewportStartRow&&h>=this.startCol&&h<this.endCol||this.viewportStartRow<this.viewportEndRow&&b===this.viewportEndRow&&h<this.endCol||this.viewportStartRow<this.viewportEndRow&&b===this.viewportStartRow&&h>=this.startCol)}}a.createSelectionRenderModel=function(){return new o}},456:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SelectionModel=void 0,a.SelectionModel=class{constructor(o){this._bufferService=o,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?o%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)-1]:[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[o,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[Math.max(o,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const o=this.selectionStart,c=this.selectionEnd;return!(!o||!c)&&(o[1]>c[1]||o[1]===c[1]&&o[0]>c[0])}handleTrim(o){return this.selectionStart&&(this.selectionStart[1]-=o),this.selectionEnd&&(this.selectionEnd[1]-=o),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(d,a,o){var c=this&&this.__decorate||function(u,f,y,k){var _,E=arguments.length,w=E<3?f:k===null?k=Object.getOwnPropertyDescriptor(f,y):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(u,f,y,k);else for(var N=u.length-1;N>=0;N--)(_=u[N])&&(w=(E<3?_(w):E>3?_(f,y,w):_(f,y))||w);return E>3&&w&&Object.defineProperty(f,y,w),w},m=this&&this.__param||function(u,f){return function(y,k){f(y,k,u)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CharSizeService=void 0;const h=o(2585),b=o(8460),v=o(844);let S=a.CharSizeService=class extends v.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(u,f,y){super(),this._optionsService=y,this.width=0,this.height=0,this._onCharSizeChange=this.register(new b.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new g(this._optionsService))}catch{this._measureStrategy=this.register(new p(u,f,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const u=this._measureStrategy.measure();u.width===this.width&&u.height===this.height||(this.width=u.width,this.height=u.height,this._onCharSizeChange.fire())}};a.CharSizeService=S=c([m(2,h.IOptionsService)],S);class x extends v.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(f,y){f!==void 0&&f>0&&y!==void 0&&y>0&&(this._result.width=f,this._result.height=y)}}class p extends x{constructor(f,y,k){super(),this._document=f,this._parentElement=y,this._optionsService=k,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}}class g extends x{constructor(f){super(),this._optionsService=f,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");const y=this._ctx.measureText("W");if(!("width"in y&&"fontBoundingBoxAscent"in y&&"fontBoundingBoxDescent"in y))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;const f=this._ctx.measureText("W");return this._validateAndSet(f.width,f.fontBoundingBoxAscent+f.fontBoundingBoxDescent),this._result}}},4269:function(d,a,o){var c=this&&this.__decorate||function(g,u,f,y){var k,_=arguments.length,E=_<3?u:y===null?y=Object.getOwnPropertyDescriptor(u,f):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(g,u,f,y);else for(var w=g.length-1;w>=0;w--)(k=g[w])&&(E=(_<3?k(E):_>3?k(u,f,E):k(u,f))||E);return _>3&&E&&Object.defineProperty(u,f,E),E},m=this&&this.__param||function(g,u){return function(f,y){u(f,y,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CharacterJoinerService=a.JoinedCellData=void 0;const h=o(3734),b=o(643),v=o(511),S=o(2585);class x extends h.AttributeData{constructor(u,f,y){super(),this.content=0,this.combinedData="",this.fg=u.fg,this.bg=u.bg,this.combinedData=f,this._width=y}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(u){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}a.JoinedCellData=x;let p=a.CharacterJoinerService=class Tp{constructor(u){this._bufferService=u,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new v.CellData}register(u){const f={id:this._nextCharacterJoinerId++,handler:u};return this._characterJoiners.push(f),f.id}deregister(u){for(let f=0;f<this._characterJoiners.length;f++)if(this._characterJoiners[f].id===u)return this._characterJoiners.splice(f,1),!0;return!1}getJoinedCharacters(u){if(this._characterJoiners.length===0)return[];const f=this._bufferService.buffer.lines.get(u);if(!f||f.length===0)return[];const y=[],k=f.translateToString(!0);let _=0,E=0,w=0,N=f.getFg(0),I=f.getBg(0);for(let A=0;A<f.getTrimmedLength();A++)if(f.loadCell(A,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==N||this._workCell.bg!==I){if(A-_>1){const M=this._getJoinedRanges(k,w,E,f,_);for(let O=0;O<M.length;O++)y.push(M[O])}_=A,w=E,N=this._workCell.fg,I=this._workCell.bg}E+=this._workCell.getChars().length||b.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-_>1){const A=this._getJoinedRanges(k,w,E,f,_);for(let M=0;M<A.length;M++)y.push(A[M])}return y}_getJoinedRanges(u,f,y,k,_){const E=u.substring(f,y);let w=[];try{w=this._characterJoiners[0].handler(E)}catch(N){console.error(N)}for(let N=1;N<this._characterJoiners.length;N++)try{const I=this._characterJoiners[N].handler(E);for(let A=0;A<I.length;A++)Tp._mergeRanges(w,I[A])}catch(I){console.error(I)}return this._stringRangesToCellRanges(w,k,_),w}_stringRangesToCellRanges(u,f,y){let k=0,_=!1,E=0,w=u[k];if(w){for(let N=y;N<this._bufferService.cols;N++){const I=f.getWidth(N),A=f.getString(N).length||b.WHITESPACE_CELL_CHAR.length;if(I!==0){if(!_&&w[0]<=E&&(w[0]=N,_=!0),w[1]<=E){if(w[1]=N,w=u[++k],!w)break;w[0]<=E?(w[0]=N,_=!0):_=!1}E+=A}}w&&(w[1]=this._bufferService.cols)}}static _mergeRanges(u,f){let y=!1;for(let k=0;k<u.length;k++){const _=u[k];if(y){if(f[1]<=_[0])return u[k-1][1]=f[1],u;if(f[1]<=_[1])return u[k-1][1]=Math.max(f[1],_[1]),u.splice(k,1),u;u.splice(k,1),k--}else{if(f[1]<=_[0])return u.splice(k,0,f),u;if(f[1]<=_[1])return _[0]=Math.min(f[0],_[0]),u;f[0]<_[1]&&(_[0]=Math.min(f[0],_[0]),y=!0)}}return y?u[u.length-1][1]=f[1]:u.push(f),u}};a.CharacterJoinerService=p=c([m(0,S.IBufferService)],p)},5114:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CoreBrowserService=void 0;const c=o(844),m=o(8460),h=o(3656);class b extends c.Disposable{constructor(x,p,g){super(),this._textarea=x,this._window=p,this.mainDocument=g,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new v(this._window),this._onDprChange=this.register(new m.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new m.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((u=>this._screenDprMonitor.setWindow(u)))),this.register((0,m.forwardEvent)(this._screenDprMonitor.onDprChange,this._onDprChange)),this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get window(){return this._window}set window(x){this._window!==x&&(this._window=x,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}a.CoreBrowserService=b;class v extends c.Disposable{constructor(x){super(),this._parentWindow=x,this._windowResizeListener=this.register(new c.MutableDisposable),this._onDprChange=this.register(new m.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,c.toDisposable)((()=>this.clearListener())))}setWindow(x){this._parentWindow=x,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,h.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var x;this._outerListener&&((x=this._resolutionMediaMatchList)==null||x.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}}},779:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LinkProviderService=void 0;const c=o(844);class m extends c.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,c.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(b){return this.linkProviders.push(b),{dispose:()=>{const v=this.linkProviders.indexOf(b);v!==-1&&this.linkProviders.splice(v,1)}}}}a.LinkProviderService=m},8934:function(d,a,o){var c=this&&this.__decorate||function(S,x,p,g){var u,f=arguments.length,y=f<3?x:g===null?g=Object.getOwnPropertyDescriptor(x,p):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(S,x,p,g);else for(var k=S.length-1;k>=0;k--)(u=S[k])&&(y=(f<3?u(y):f>3?u(x,p,y):u(x,p))||y);return f>3&&y&&Object.defineProperty(x,p,y),y},m=this&&this.__param||function(S,x){return function(p,g){x(p,g,S)}};Object.defineProperty(a,"__esModule",{value:!0}),a.MouseService=void 0;const h=o(4725),b=o(9806);let v=a.MouseService=class{constructor(S,x){this._renderService=S,this._charSizeService=x}getCoords(S,x,p,g,u){return(0,b.getCoords)(window,S,x,p,g,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,u)}getMouseReportCoords(S,x){const p=(0,b.getCoordsRelativeToElement)(window,S,x);if(this._charSizeService.hasValidSize)return p[0]=Math.min(Math.max(p[0],0),this._renderService.dimensions.css.canvas.width-1),p[1]=Math.min(Math.max(p[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(p[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(p[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(p[0]),y:Math.floor(p[1])}}};a.MouseService=v=c([m(0,h.IRenderService),m(1,h.ICharSizeService)],v)},3230:function(d,a,o){var c=this&&this.__decorate||function(u,f,y,k){var _,E=arguments.length,w=E<3?f:k===null?k=Object.getOwnPropertyDescriptor(f,y):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(u,f,y,k);else for(var N=u.length-1;N>=0;N--)(_=u[N])&&(w=(E<3?_(w):E>3?_(f,y,w):_(f,y))||w);return E>3&&w&&Object.defineProperty(f,y,w),w},m=this&&this.__param||function(u,f){return function(y,k){f(y,k,u)}};Object.defineProperty(a,"__esModule",{value:!0}),a.RenderService=void 0;const h=o(6193),b=o(4725),v=o(8460),S=o(844),x=o(7226),p=o(2585);let g=a.RenderService=class extends S.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(u,f,y,k,_,E,w,N){super(),this._rowCount=u,this._charSizeService=k,this._renderer=this.register(new S.MutableDisposable),this._pausedResizeTask=new x.DebouncedIdleTask,this._observerDisposable=this.register(new S.MutableDisposable),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new v.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new v.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new v.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new v.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new h.RenderDebouncer(((I,A)=>this._renderRows(I,A)),w),this.register(this._renderDebouncer),this.register(w.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(E.onResize((()=>this._fullRefresh()))),this.register(E.buffers.onBufferActivate((()=>{var I;return(I=this._renderer.value)==null?void 0:I.clear()}))),this.register(y.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(_.onDecorationRegistered((()=>this._fullRefresh()))),this.register(_.onDecorationRemoved((()=>this._fullRefresh()))),this.register(y.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],(()=>{this.clear(),this.handleResize(E.cols,E.rows),this._fullRefresh()}))),this.register(y.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(E.buffer.y,E.buffer.y,!0)))),this.register(N.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(w.window,f),this.register(w.onWindowChange((I=>this._registerIntersectionObserver(I,f))))}_registerIntersectionObserver(u,f){if("IntersectionObserver"in u){const y=new u.IntersectionObserver((k=>this._handleIntersectionChange(k[k.length-1])),{threshold:0});y.observe(f),this._observerDisposable.value=(0,S.toDisposable)((()=>y.disconnect()))}}_handleIntersectionChange(u){this._isPaused=u.isIntersecting===void 0?u.intersectionRatio===0:!u.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(u,f,y=!1){this._isPaused?this._needsFullRefresh=!0:(y||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(u,f,this._rowCount))}_renderRows(u,f){this._renderer.value&&(u=Math.min(u,this._rowCount-1),f=Math.min(f,this._rowCount-1),this._renderer.value.renderRows(u,f),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:u,end:f}),this._onRender.fire({start:u,end:f}),this._isNextRenderRedrawOnly=!0)}resize(u,f){this._rowCount=f,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(u){this._renderer.value=u,this._renderer.value&&(this._renderer.value.onRequestRedraw((f=>this.refreshRows(f.start,f.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(u){return this._renderDebouncer.addRefreshCallback(u)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var u,f;this._renderer.value&&((f=(u=this._renderer.value).clearTextureAtlas)==null||f.call(u),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(u,f){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>{var y;return(y=this._renderer.value)==null?void 0:y.handleResize(u,f)})):this._renderer.value.handleResize(u,f),this._fullRefresh())}handleCharSizeChanged(){var u;(u=this._renderer.value)==null||u.handleCharSizeChanged()}handleBlur(){var u;(u=this._renderer.value)==null||u.handleBlur()}handleFocus(){var u;(u=this._renderer.value)==null||u.handleFocus()}handleSelectionChanged(u,f,y){var k;this._selectionState.start=u,this._selectionState.end=f,this._selectionState.columnSelectMode=y,(k=this._renderer.value)==null||k.handleSelectionChanged(u,f,y)}handleCursorMove(){var u;(u=this._renderer.value)==null||u.handleCursorMove()}clear(){var u;(u=this._renderer.value)==null||u.clear()}};a.RenderService=g=c([m(2,p.IOptionsService),m(3,b.ICharSizeService),m(4,p.IDecorationService),m(5,p.IBufferService),m(6,b.ICoreBrowserService),m(7,b.IThemeService)],g)},9312:function(d,a,o){var c=this&&this.__decorate||function(w,N,I,A){var M,O=arguments.length,B=O<3?N:A===null?A=Object.getOwnPropertyDescriptor(N,I):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(w,N,I,A);else for(var F=w.length-1;F>=0;F--)(M=w[F])&&(B=(O<3?M(B):O>3?M(N,I,B):M(N,I))||B);return O>3&&B&&Object.defineProperty(N,I,B),B},m=this&&this.__param||function(w,N){return function(I,A){N(I,A,w)}};Object.defineProperty(a,"__esModule",{value:!0}),a.SelectionService=void 0;const h=o(9806),b=o(9504),v=o(456),S=o(4725),x=o(8460),p=o(844),g=o(6114),u=o(4841),f=o(511),y=o(2585),k=" ",_=new RegExp(k,"g");let E=a.SelectionService=class extends p.Disposable{constructor(w,N,I,A,M,O,B,F,z){super(),this._element=w,this._screenElement=N,this._linkifier=I,this._bufferService=A,this._coreService=M,this._mouseService=O,this._optionsService=B,this._renderService=F,this._coreBrowserService=z,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new f.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new x.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new x.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new x.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new x.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=P=>this._handleMouseMove(P),this._mouseUpListener=P=>this._handleMouseUp(P),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((P=>this._handleTrim(P))),this.register(this._bufferService.buffers.onBufferActivate((P=>this._handleBufferActivate(P)))),this.enable(),this._model=new v.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,p.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const w=this._model.finalSelectionStart,N=this._model.finalSelectionEnd;return!(!w||!N||w[0]===N[0]&&w[1]===N[1])}get selectionText(){const w=this._model.finalSelectionStart,N=this._model.finalSelectionEnd;if(!w||!N)return"";const I=this._bufferService.buffer,A=[];if(this._activeSelectionMode===3){if(w[0]===N[0])return"";const M=w[0]<N[0]?w[0]:N[0],O=w[0]<N[0]?N[0]:w[0];for(let B=w[1];B<=N[1];B++){const F=I.translateBufferLineToString(B,!0,M,O);A.push(F)}}else{const M=w[1]===N[1]?N[0]:void 0;A.push(I.translateBufferLineToString(w[1],!0,w[0],M));for(let O=w[1]+1;O<=N[1]-1;O++){const B=I.lines.get(O),F=I.translateBufferLineToString(O,!0);B!=null&&B.isWrapped?A[A.length-1]+=F:A.push(F)}if(w[1]!==N[1]){const O=I.lines.get(N[1]),B=I.translateBufferLineToString(N[1],!0,0,N[0]);O&&O.isWrapped?A[A.length-1]+=B:A.push(B)}}return A.map((M=>M.replace(_," "))).join(g.isWindows?`\r
|
|
570
|
+
`:`
|
|
571
|
+
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(w){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),g.isLinux&&w&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(w){const N=this._getMouseBufferCoords(w),I=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;return!!(I&&A&&N)&&this._areCoordsInSelection(N,I,A)}isCellInSelection(w,N){const I=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;return!(!I||!A)&&this._areCoordsInSelection([w,N],I,A)}_areCoordsInSelection(w,N,I){return w[1]>N[1]&&w[1]<I[1]||N[1]===I[1]&&w[1]===N[1]&&w[0]>=N[0]&&w[0]<I[0]||N[1]<I[1]&&w[1]===I[1]&&w[0]<I[0]||N[1]<I[1]&&w[1]===N[1]&&w[0]>=N[0]}_selectWordAtCursor(w,N){var M,O;const I=(O=(M=this._linkifier.currentLink)==null?void 0:M.link)==null?void 0:O.range;if(I)return this._model.selectionStart=[I.start.x-1,I.start.y-1],this._model.selectionStartLength=(0,u.getRangeLength)(I,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const A=this._getMouseBufferCoords(w);return!!A&&(this._selectWordAt(A,N),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(w,N){this._model.clearSelection(),w=Math.max(w,0),N=Math.min(N,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,w],this._model.selectionEnd=[this._bufferService.cols,N],this.refresh(),this._onSelectionChange.fire()}_handleTrim(w){this._model.handleTrim(w)&&this.refresh()}_getMouseBufferCoords(w){const N=this._mouseService.getCoords(w,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(N)return N[0]--,N[1]--,N[1]+=this._bufferService.buffer.ydisp,N}_getMouseEventScrollAmount(w){let N=(0,h.getCoordsRelativeToElement)(this._coreBrowserService.window,w,this._screenElement)[1];const I=this._renderService.dimensions.css.canvas.height;return N>=0&&N<=I?0:(N>I&&(N-=I),N=Math.min(Math.max(N,-50),50),N/=50,N/Math.abs(N)+Math.round(14*N))}shouldForceSelection(w){return g.isMac?w.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:w.shiftKey}handleMouseDown(w){if(this._mouseDownTimeStamp=w.timeStamp,(w.button!==2||!this.hasSelection)&&w.button===0){if(!this._enabled){if(!this.shouldForceSelection(w))return;w.stopPropagation()}w.preventDefault(),this._dragScrollAmount=0,this._enabled&&w.shiftKey?this._handleIncrementalClick(w):w.detail===1?this._handleSingleClick(w):w.detail===2?this._handleDoubleClick(w):w.detail===3&&this._handleTripleClick(w),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(w){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(w))}_handleSingleClick(w){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(w)?3:0,this._model.selectionStart=this._getMouseBufferCoords(w),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const N=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);N&&N.length!==this._model.selectionStart[0]&&N.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(w){this._selectWordAtCursor(w,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(w){const N=this._getMouseBufferCoords(w);N&&(this._activeSelectionMode=2,this._selectLineAt(N[1]))}shouldColumnSelect(w){return w.altKey&&!(g.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(w){if(w.stopImmediatePropagation(),!this._model.selectionStart)return;const N=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(w),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(w),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const I=this._bufferService.buffer;if(this._model.selectionEnd[1]<I.lines.length){const A=I.lines.get(this._model.selectionEnd[1]);A&&A.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}N&&N[0]===this._model.selectionEnd[0]&&N[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});const w=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(w.ydisp+this._bufferService.rows,w.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=w.ydisp),this.refresh()}}_handleMouseUp(w){const N=w.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&N<500&&w.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const I=this._mouseService.getCoords(w,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(I&&I[0]!==void 0&&I[1]!==void 0){const A=(0,b.moveToCellSequence)(I[0]-1,I[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(A,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const w=this._model.finalSelectionStart,N=this._model.finalSelectionEnd,I=!(!w||!N||w[0]===N[0]&&w[1]===N[1]);I?w&&N&&(this._oldSelectionStart&&this._oldSelectionEnd&&w[0]===this._oldSelectionStart[0]&&w[1]===this._oldSelectionStart[1]&&N[0]===this._oldSelectionEnd[0]&&N[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(w,N,I)):this._oldHasSelection&&this._fireOnSelectionChange(w,N,I)}_fireOnSelectionChange(w,N,I){this._oldSelectionStart=w,this._oldSelectionEnd=N,this._oldHasSelection=I,this._onSelectionChange.fire()}_handleBufferActivate(w){this.clearSelection(),this._trimListener.dispose(),this._trimListener=w.activeBuffer.lines.onTrim((N=>this._handleTrim(N)))}_convertViewportColToCharacterIndex(w,N){let I=N;for(let A=0;N>=A;A++){const M=w.loadCell(A,this._workCell).getChars().length;this._workCell.getWidth()===0?I--:M>1&&N!==A&&(I+=M-1)}return I}setSelection(w,N,I){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[w,N],this._model.selectionStartLength=I,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(w){this._isClickInSelection(w)||(this._selectWordAtCursor(w,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(w,N,I=!0,A=!0){if(w[0]>=this._bufferService.cols)return;const M=this._bufferService.buffer,O=M.lines.get(w[1]);if(!O)return;const B=M.translateBufferLineToString(w[1],!1);let F=this._convertViewportColToCharacterIndex(O,w[0]),z=F;const P=w[0]-F;let U=0,T=0,L=0,$=0;if(B.charAt(F)===" "){for(;F>0&&B.charAt(F-1)===" ";)F--;for(;z<B.length&&B.charAt(z+1)===" ";)z++}else{let W=w[0],Y=w[0];O.getWidth(W)===0&&(U++,W--),O.getWidth(Y)===2&&(T++,Y++);const V=O.getString(Y).length;for(V>1&&($+=V-1,z+=V-1);W>0&&F>0&&!this._isCharWordSeparator(O.loadCell(W-1,this._workCell));){O.loadCell(W-1,this._workCell);const H=this._workCell.getChars().length;this._workCell.getWidth()===0?(U++,W--):H>1&&(L+=H-1,F-=H-1),F--,W--}for(;Y<O.length&&z+1<B.length&&!this._isCharWordSeparator(O.loadCell(Y+1,this._workCell));){O.loadCell(Y+1,this._workCell);const H=this._workCell.getChars().length;this._workCell.getWidth()===2?(T++,Y++):H>1&&($+=H-1,z+=H-1),z++,Y++}}z++;let R=F+P-U+L,q=Math.min(this._bufferService.cols,z-F+U+T-L-$);if(N||B.slice(F,z).trim()!==""){if(I&&R===0&&O.getCodePoint(0)!==32){const W=M.lines.get(w[1]-1);if(W&&O.isWrapped&&W.getCodePoint(this._bufferService.cols-1)!==32){const Y=this._getWordAt([this._bufferService.cols-1,w[1]-1],!1,!0,!1);if(Y){const V=this._bufferService.cols-Y.start;R-=V,q+=V}}}if(A&&R+q===this._bufferService.cols&&O.getCodePoint(this._bufferService.cols-1)!==32){const W=M.lines.get(w[1]+1);if(W!=null&&W.isWrapped&&W.getCodePoint(0)!==32){const Y=this._getWordAt([0,w[1]+1],!1,!1,!0);Y&&(q+=Y.length)}}return{start:R,length:q}}}_selectWordAt(w,N){const I=this._getWordAt(w,N);if(I){for(;I.start<0;)I.start+=this._bufferService.cols,w[1]--;this._model.selectionStart=[I.start,w[1]],this._model.selectionStartLength=I.length}}_selectToWordAt(w){const N=this._getWordAt(w,!0);if(N){let I=w[1];for(;N.start<0;)N.start+=this._bufferService.cols,I--;if(!this._model.areSelectionValuesReversed())for(;N.start+N.length>this._bufferService.cols;)N.length-=this._bufferService.cols,I++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?N.start:N.start+N.length,I]}}_isCharWordSeparator(w){return w.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(w.getChars())>=0}_selectLineAt(w){const N=this._bufferService.buffer.getWrappedRangeForLine(w),I={start:{x:0,y:N.first},end:{x:this._bufferService.cols-1,y:N.last}};this._model.selectionStart=[0,N.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,u.getRangeLength)(I,this._bufferService.cols)}};a.SelectionService=E=c([m(3,y.IBufferService),m(4,y.ICoreService),m(5,S.IMouseService),m(6,y.IOptionsService),m(7,S.IRenderService),m(8,S.ICoreBrowserService)],E)},4725:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ILinkProviderService=a.IThemeService=a.ICharacterJoinerService=a.ISelectionService=a.IRenderService=a.IMouseService=a.ICoreBrowserService=a.ICharSizeService=void 0;const c=o(8343);a.ICharSizeService=(0,c.createDecorator)("CharSizeService"),a.ICoreBrowserService=(0,c.createDecorator)("CoreBrowserService"),a.IMouseService=(0,c.createDecorator)("MouseService"),a.IRenderService=(0,c.createDecorator)("RenderService"),a.ISelectionService=(0,c.createDecorator)("SelectionService"),a.ICharacterJoinerService=(0,c.createDecorator)("CharacterJoinerService"),a.IThemeService=(0,c.createDecorator)("ThemeService"),a.ILinkProviderService=(0,c.createDecorator)("LinkProviderService")},6731:function(d,a,o){var c=this&&this.__decorate||function(E,w,N,I){var A,M=arguments.length,O=M<3?w:I===null?I=Object.getOwnPropertyDescriptor(w,N):I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(E,w,N,I);else for(var B=E.length-1;B>=0;B--)(A=E[B])&&(O=(M<3?A(O):M>3?A(w,N,O):A(w,N))||O);return M>3&&O&&Object.defineProperty(w,N,O),O},m=this&&this.__param||function(E,w){return function(N,I){w(N,I,E)}};Object.defineProperty(a,"__esModule",{value:!0}),a.ThemeService=a.DEFAULT_ANSI_COLORS=void 0;const h=o(7239),b=o(8055),v=o(8460),S=o(844),x=o(2585),p=b.css.toColor("#ffffff"),g=b.css.toColor("#000000"),u=b.css.toColor("#ffffff"),f=b.css.toColor("#000000"),y={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};a.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const E=[b.css.toColor("#2e3436"),b.css.toColor("#cc0000"),b.css.toColor("#4e9a06"),b.css.toColor("#c4a000"),b.css.toColor("#3465a4"),b.css.toColor("#75507b"),b.css.toColor("#06989a"),b.css.toColor("#d3d7cf"),b.css.toColor("#555753"),b.css.toColor("#ef2929"),b.css.toColor("#8ae234"),b.css.toColor("#fce94f"),b.css.toColor("#729fcf"),b.css.toColor("#ad7fa8"),b.css.toColor("#34e2e2"),b.css.toColor("#eeeeec")],w=[0,95,135,175,215,255];for(let N=0;N<216;N++){const I=w[N/36%6|0],A=w[N/6%6|0],M=w[N%6];E.push({css:b.channels.toCss(I,A,M),rgba:b.channels.toRgba(I,A,M)})}for(let N=0;N<24;N++){const I=8+10*N;E.push({css:b.channels.toCss(I,I,I),rgba:b.channels.toRgba(I,I,I)})}return E})());let k=a.ThemeService=class extends S.Disposable{get colors(){return this._colors}constructor(E){super(),this._optionsService=E,this._contrastCache=new h.ColorContrastCache,this._halfContrastCache=new h.ColorContrastCache,this._onChangeColors=this.register(new v.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:p,background:g,cursor:u,cursorAccent:f,selectionForeground:void 0,selectionBackgroundTransparent:y,selectionBackgroundOpaque:b.color.blend(g,y),selectionInactiveBackgroundTransparent:y,selectionInactiveBackgroundOpaque:b.color.blend(g,y),ansi:a.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(E={}){const w=this._colors;if(w.foreground=_(E.foreground,p),w.background=_(E.background,g),w.cursor=_(E.cursor,u),w.cursorAccent=_(E.cursorAccent,f),w.selectionBackgroundTransparent=_(E.selectionBackground,y),w.selectionBackgroundOpaque=b.color.blend(w.background,w.selectionBackgroundTransparent),w.selectionInactiveBackgroundTransparent=_(E.selectionInactiveBackground,w.selectionBackgroundTransparent),w.selectionInactiveBackgroundOpaque=b.color.blend(w.background,w.selectionInactiveBackgroundTransparent),w.selectionForeground=E.selectionForeground?_(E.selectionForeground,b.NULL_COLOR):void 0,w.selectionForeground===b.NULL_COLOR&&(w.selectionForeground=void 0),b.color.isOpaque(w.selectionBackgroundTransparent)&&(w.selectionBackgroundTransparent=b.color.opacity(w.selectionBackgroundTransparent,.3)),b.color.isOpaque(w.selectionInactiveBackgroundTransparent)&&(w.selectionInactiveBackgroundTransparent=b.color.opacity(w.selectionInactiveBackgroundTransparent,.3)),w.ansi=a.DEFAULT_ANSI_COLORS.slice(),w.ansi[0]=_(E.black,a.DEFAULT_ANSI_COLORS[0]),w.ansi[1]=_(E.red,a.DEFAULT_ANSI_COLORS[1]),w.ansi[2]=_(E.green,a.DEFAULT_ANSI_COLORS[2]),w.ansi[3]=_(E.yellow,a.DEFAULT_ANSI_COLORS[3]),w.ansi[4]=_(E.blue,a.DEFAULT_ANSI_COLORS[4]),w.ansi[5]=_(E.magenta,a.DEFAULT_ANSI_COLORS[5]),w.ansi[6]=_(E.cyan,a.DEFAULT_ANSI_COLORS[6]),w.ansi[7]=_(E.white,a.DEFAULT_ANSI_COLORS[7]),w.ansi[8]=_(E.brightBlack,a.DEFAULT_ANSI_COLORS[8]),w.ansi[9]=_(E.brightRed,a.DEFAULT_ANSI_COLORS[9]),w.ansi[10]=_(E.brightGreen,a.DEFAULT_ANSI_COLORS[10]),w.ansi[11]=_(E.brightYellow,a.DEFAULT_ANSI_COLORS[11]),w.ansi[12]=_(E.brightBlue,a.DEFAULT_ANSI_COLORS[12]),w.ansi[13]=_(E.brightMagenta,a.DEFAULT_ANSI_COLORS[13]),w.ansi[14]=_(E.brightCyan,a.DEFAULT_ANSI_COLORS[14]),w.ansi[15]=_(E.brightWhite,a.DEFAULT_ANSI_COLORS[15]),E.extendedAnsi){const N=Math.min(w.ansi.length-16,E.extendedAnsi.length);for(let I=0;I<N;I++)w.ansi[I+16]=_(E.extendedAnsi[I],a.DEFAULT_ANSI_COLORS[I+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(E){this._restoreColor(E),this._onChangeColors.fire(this.colors)}_restoreColor(E){if(E!==void 0)switch(E){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[E]=this._restoreColors.ansi[E]}else for(let w=0;w<this._restoreColors.ansi.length;++w)this._colors.ansi[w]=this._restoreColors.ansi[w]}modifyColors(E){E(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function _(E,w){if(E!==void 0)try{return b.css.toColor(E)}catch{}return w}a.ThemeService=k=c([m(0,x.IOptionsService)],k)},6349:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CircularList=void 0;const c=o(8460),m=o(844);class h extends m.Disposable{constructor(v){super(),this._maxLength=v,this.onDeleteEmitter=this.register(new c.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new c.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new c.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(v){if(this._maxLength===v)return;const S=new Array(v);for(let x=0;x<Math.min(v,this.length);x++)S[x]=this._array[this._getCyclicIndex(x)];this._array=S,this._maxLength=v,this._startIndex=0}get length(){return this._length}set length(v){if(v>this._length)for(let S=this._length;S<v;S++)this._array[S]=void 0;this._length=v}get(v){return this._array[this._getCyclicIndex(v)]}set(v,S){this._array[this._getCyclicIndex(v)]=S}push(v){this._array[this._getCyclicIndex(this._length)]=v,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(v,S,...x){if(S){for(let p=v;p<this._length-S;p++)this._array[this._getCyclicIndex(p)]=this._array[this._getCyclicIndex(p+S)];this._length-=S,this.onDeleteEmitter.fire({index:v,amount:S})}for(let p=this._length-1;p>=v;p--)this._array[this._getCyclicIndex(p+x.length)]=this._array[this._getCyclicIndex(p)];for(let p=0;p<x.length;p++)this._array[this._getCyclicIndex(v+p)]=x[p];if(x.length&&this.onInsertEmitter.fire({index:v,amount:x.length}),this._length+x.length>this._maxLength){const p=this._length+x.length-this._maxLength;this._startIndex+=p,this._length=this._maxLength,this.onTrimEmitter.fire(p)}else this._length+=x.length}trimStart(v){v>this._length&&(v=this._length),this._startIndex+=v,this._length-=v,this.onTrimEmitter.fire(v)}shiftElements(v,S,x){if(!(S<=0)){if(v<0||v>=this._length)throw new Error("start argument out of range");if(v+x<0)throw new Error("Cannot shift elements in list beyond index 0");if(x>0){for(let g=S-1;g>=0;g--)this.set(v+g+x,this.get(v+g));const p=v+S+x-this._length;if(p>0)for(this._length+=p;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let p=0;p<S;p++)this.set(v+p+x,this.get(v+p))}}_getCyclicIndex(v){return(this._startIndex+v)%this._maxLength}}a.CircularList=h},1439:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clone=void 0,a.clone=function o(c,m=5){if(typeof c!="object")return c;const h=Array.isArray(c)?[]:{};for(const b in c)h[b]=m<=1?c[b]:c[b]&&o(c[b],m-1);return h}},8055:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.contrastRatio=a.toPaddedHex=a.rgba=a.rgb=a.css=a.color=a.channels=a.NULL_COLOR=void 0;let o=0,c=0,m=0,h=0;var b,v,S,x,p;function g(f){const y=f.toString(16);return y.length<2?"0"+y:y}function u(f,y){return f<y?(y+.05)/(f+.05):(f+.05)/(y+.05)}a.NULL_COLOR={css:"#00000000",rgba:0},(function(f){f.toCss=function(y,k,_,E){return E!==void 0?`#${g(y)}${g(k)}${g(_)}${g(E)}`:`#${g(y)}${g(k)}${g(_)}`},f.toRgba=function(y,k,_,E=255){return(y<<24|k<<16|_<<8|E)>>>0},f.toColor=function(y,k,_,E){return{css:f.toCss(y,k,_,E),rgba:f.toRgba(y,k,_,E)}}})(b||(a.channels=b={})),(function(f){function y(k,_){return h=Math.round(255*_),[o,c,m]=p.toChannels(k.rgba),{css:b.toCss(o,c,m,h),rgba:b.toRgba(o,c,m,h)}}f.blend=function(k,_){if(h=(255&_.rgba)/255,h===1)return{css:_.css,rgba:_.rgba};const E=_.rgba>>24&255,w=_.rgba>>16&255,N=_.rgba>>8&255,I=k.rgba>>24&255,A=k.rgba>>16&255,M=k.rgba>>8&255;return o=I+Math.round((E-I)*h),c=A+Math.round((w-A)*h),m=M+Math.round((N-M)*h),{css:b.toCss(o,c,m),rgba:b.toRgba(o,c,m)}},f.isOpaque=function(k){return(255&k.rgba)==255},f.ensureContrastRatio=function(k,_,E){const w=p.ensureContrastRatio(k.rgba,_.rgba,E);if(w)return b.toColor(w>>24&255,w>>16&255,w>>8&255)},f.opaque=function(k){const _=(255|k.rgba)>>>0;return[o,c,m]=p.toChannels(_),{css:b.toCss(o,c,m),rgba:_}},f.opacity=y,f.multiplyOpacity=function(k,_){return h=255&k.rgba,y(k,h*_/255)},f.toColorRGB=function(k){return[k.rgba>>24&255,k.rgba>>16&255,k.rgba>>8&255]}})(v||(a.color=v={})),(function(f){let y,k;try{const _=document.createElement("canvas");_.width=1,_.height=1;const E=_.getContext("2d",{willReadFrequently:!0});E&&(y=E,y.globalCompositeOperation="copy",k=y.createLinearGradient(0,0,1,1))}catch{}f.toColor=function(_){if(_.match(/#[\da-f]{3,8}/i))switch(_.length){case 4:return o=parseInt(_.slice(1,2).repeat(2),16),c=parseInt(_.slice(2,3).repeat(2),16),m=parseInt(_.slice(3,4).repeat(2),16),b.toColor(o,c,m);case 5:return o=parseInt(_.slice(1,2).repeat(2),16),c=parseInt(_.slice(2,3).repeat(2),16),m=parseInt(_.slice(3,4).repeat(2),16),h=parseInt(_.slice(4,5).repeat(2),16),b.toColor(o,c,m,h);case 7:return{css:_,rgba:(parseInt(_.slice(1),16)<<8|255)>>>0};case 9:return{css:_,rgba:parseInt(_.slice(1),16)>>>0}}const E=_.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(E)return o=parseInt(E[1]),c=parseInt(E[2]),m=parseInt(E[3]),h=Math.round(255*(E[5]===void 0?1:parseFloat(E[5]))),b.toColor(o,c,m,h);if(!y||!k)throw new Error("css.toColor: Unsupported css format");if(y.fillStyle=k,y.fillStyle=_,typeof y.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(y.fillRect(0,0,1,1),[o,c,m,h]=y.getImageData(0,0,1,1).data,h!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:b.toRgba(o,c,m,h),css:_}}})(S||(a.css=S={})),(function(f){function y(k,_,E){const w=k/255,N=_/255,I=E/255;return .2126*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.7152*(N<=.03928?N/12.92:Math.pow((N+.055)/1.055,2.4))+.0722*(I<=.03928?I/12.92:Math.pow((I+.055)/1.055,2.4))}f.relativeLuminance=function(k){return y(k>>16&255,k>>8&255,255&k)},f.relativeLuminance2=y})(x||(a.rgb=x={})),(function(f){function y(_,E,w){const N=_>>24&255,I=_>>16&255,A=_>>8&255;let M=E>>24&255,O=E>>16&255,B=E>>8&255,F=u(x.relativeLuminance2(M,O,B),x.relativeLuminance2(N,I,A));for(;F<w&&(M>0||O>0||B>0);)M-=Math.max(0,Math.ceil(.1*M)),O-=Math.max(0,Math.ceil(.1*O)),B-=Math.max(0,Math.ceil(.1*B)),F=u(x.relativeLuminance2(M,O,B),x.relativeLuminance2(N,I,A));return(M<<24|O<<16|B<<8|255)>>>0}function k(_,E,w){const N=_>>24&255,I=_>>16&255,A=_>>8&255;let M=E>>24&255,O=E>>16&255,B=E>>8&255,F=u(x.relativeLuminance2(M,O,B),x.relativeLuminance2(N,I,A));for(;F<w&&(M<255||O<255||B<255);)M=Math.min(255,M+Math.ceil(.1*(255-M))),O=Math.min(255,O+Math.ceil(.1*(255-O))),B=Math.min(255,B+Math.ceil(.1*(255-B))),F=u(x.relativeLuminance2(M,O,B),x.relativeLuminance2(N,I,A));return(M<<24|O<<16|B<<8|255)>>>0}f.blend=function(_,E){if(h=(255&E)/255,h===1)return E;const w=E>>24&255,N=E>>16&255,I=E>>8&255,A=_>>24&255,M=_>>16&255,O=_>>8&255;return o=A+Math.round((w-A)*h),c=M+Math.round((N-M)*h),m=O+Math.round((I-O)*h),b.toRgba(o,c,m)},f.ensureContrastRatio=function(_,E,w){const N=x.relativeLuminance(_>>8),I=x.relativeLuminance(E>>8);if(u(N,I)<w){if(I<N){const O=y(_,E,w),B=u(N,x.relativeLuminance(O>>8));if(B<w){const F=k(_,E,w);return B>u(N,x.relativeLuminance(F>>8))?O:F}return O}const A=k(_,E,w),M=u(N,x.relativeLuminance(A>>8));if(M<w){const O=y(_,E,w);return M>u(N,x.relativeLuminance(O>>8))?A:O}return A}},f.reduceLuminance=y,f.increaseLuminance=k,f.toChannels=function(_){return[_>>24&255,_>>16&255,_>>8&255,255&_]}})(p||(a.rgba=p={})),a.toPaddedHex=g,a.contrastRatio=u},8969:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CoreTerminal=void 0;const c=o(844),m=o(2585),h=o(4348),b=o(7866),v=o(744),S=o(7302),x=o(6975),p=o(8460),g=o(1753),u=o(1480),f=o(7994),y=o(9282),k=o(5435),_=o(5981),E=o(2660);let w=!1;class N extends c.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new p.EventEmitter),this._onScroll.event((A=>{var M;(M=this._onScrollApi)==null||M.fire(A.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(A){for(const M in A)this.optionsService.options[M]=A[M]}constructor(A){super(),this._windowsWrappingHeuristics=this.register(new c.MutableDisposable),this._onBinary=this.register(new p.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new p.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new p.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new p.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new p.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new p.EventEmitter),this._instantiationService=new h.InstantiationService,this.optionsService=this.register(new S.OptionsService(A)),this._instantiationService.setService(m.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(v.BufferService)),this._instantiationService.setService(m.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(b.LogService)),this._instantiationService.setService(m.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(x.CoreService)),this._instantiationService.setService(m.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(g.CoreMouseService)),this._instantiationService.setService(m.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(u.UnicodeService)),this._instantiationService.setService(m.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(f.CharsetService),this._instantiationService.setService(m.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(E.OscLinkService),this._instantiationService.setService(m.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new k.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,p.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,p.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,p.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,p.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((M=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((M=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new _.WriteBuffer(((M,O)=>this._inputHandler.parse(M,O)))),this.register((0,p.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(A,M){this._writeBuffer.write(A,M)}writeSync(A,M){this._logService.logLevel<=m.LogLevelEnum.WARN&&!w&&(this._logService.warn("writeSync is unreliable and will be removed soon."),w=!0),this._writeBuffer.writeSync(A,M)}input(A,M=!0){this.coreService.triggerDataEvent(A,M)}resize(A,M){isNaN(A)||isNaN(M)||(A=Math.max(A,v.MINIMUM_COLS),M=Math.max(M,v.MINIMUM_ROWS),this._bufferService.resize(A,M))}scroll(A,M=!1){this._bufferService.scroll(A,M)}scrollLines(A,M,O){this._bufferService.scrollLines(A,M,O)}scrollPages(A){this.scrollLines(A*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(A){const M=A-this._bufferService.buffer.ydisp;M!==0&&this.scrollLines(M)}registerEscHandler(A,M){return this._inputHandler.registerEscHandler(A,M)}registerDcsHandler(A,M){return this._inputHandler.registerDcsHandler(A,M)}registerCsiHandler(A,M){return this._inputHandler.registerCsiHandler(A,M)}registerOscHandler(A,M){return this._inputHandler.registerOscHandler(A,M)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let A=!1;const M=this.optionsService.rawOptions.windowsPty;M&&M.buildNumber!==void 0&&M.buildNumber!==void 0?A=M.backend==="conpty"&&M.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(A=!0),A?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const A=[];A.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),A.push(this.registerCsiHandler({final:"H"},(()=>((0,y.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,c.toDisposable)((()=>{for(const M of A)M.dispose()}))}}}a.CoreTerminal=N},8460:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.runAndSubscribe=a.forwardEvent=a.EventEmitter=void 0,a.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=o=>(this._listeners.push(o),{dispose:()=>{if(!this._disposed){for(let c=0;c<this._listeners.length;c++)if(this._listeners[c]===o)return void this._listeners.splice(c,1)}}})),this._event}fire(o,c){const m=[];for(let h=0;h<this._listeners.length;h++)m.push(this._listeners[h]);for(let h=0;h<m.length;h++)m[h].call(void 0,o,c)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},a.forwardEvent=function(o,c){return o((m=>c.fire(m)))},a.runAndSubscribe=function(o,c){return c(void 0),o((m=>c(m)))}},5435:function(d,a,o){var c=this&&this.__decorate||function(U,T,L,$){var R,q=arguments.length,W=q<3?T:$===null?$=Object.getOwnPropertyDescriptor(T,L):$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(U,T,L,$);else for(var Y=U.length-1;Y>=0;Y--)(R=U[Y])&&(W=(q<3?R(W):q>3?R(T,L,W):R(T,L))||W);return q>3&&W&&Object.defineProperty(T,L,W),W},m=this&&this.__param||function(U,T){return function(L,$){T(L,$,U)}};Object.defineProperty(a,"__esModule",{value:!0}),a.InputHandler=a.WindowsOptionsReportType=void 0;const h=o(2584),b=o(7116),v=o(2015),S=o(844),x=o(482),p=o(8437),g=o(8460),u=o(643),f=o(511),y=o(3734),k=o(2585),_=o(1480),E=o(6242),w=o(6351),N=o(5941),I={"(":0,")":1,"*":2,"+":3,"-":1,".":2},A=131072;function M(U,T){if(U>24)return T.setWinLines||!1;switch(U){case 1:return!!T.restoreWin;case 2:return!!T.minimizeWin;case 3:return!!T.setWinPosition;case 4:return!!T.setWinSizePixels;case 5:return!!T.raiseWin;case 6:return!!T.lowerWin;case 7:return!!T.refreshWin;case 8:return!!T.setWinSizeChars;case 9:return!!T.maximizeWin;case 10:return!!T.fullscreenWin;case 11:return!!T.getWinState;case 13:return!!T.getWinPosition;case 14:return!!T.getWinSizePixels;case 15:return!!T.getScreenSizePixels;case 16:return!!T.getCellSizePixels;case 18:return!!T.getWinSizeChars;case 19:return!!T.getScreenSizeChars;case 20:return!!T.getIconTitle;case 21:return!!T.getWinTitle;case 22:return!!T.pushTitle;case 23:return!!T.popTitle;case 24:return!!T.setWinLines}return!1}var O;(function(U){U[U.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",U[U.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(O||(a.WindowsOptionsReportType=O={}));let B=0;class F extends S.Disposable{getAttrData(){return this._curAttrData}constructor(T,L,$,R,q,W,Y,V,H=new v.EscapeSequenceParser){super(),this._bufferService=T,this._charsetService=L,this._coreService=$,this._logService=R,this._optionsService=q,this._oscLinkService=W,this._coreMouseService=Y,this._unicodeService=V,this._parser=H,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new x.StringToUtf32,this._utf8Decoder=new x.Utf8ToUtf32,this._workCell=new f.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=p.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new g.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new g.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new g.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new g.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new g.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new g.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new g.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new g.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new g.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new g.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new g.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new g.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new g.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new z(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((D=>this._activeBuffer=D.activeBuffer))),this._parser.setCsiHandlerFallback(((D,X)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(D),params:X.toArray()})})),this._parser.setEscHandlerFallback((D=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(D)})})),this._parser.setExecuteHandlerFallback((D=>{this._logService.debug("Unknown EXECUTE code: ",{code:D})})),this._parser.setOscHandlerFallback(((D,X,K)=>{this._logService.debug("Unknown OSC code: ",{identifier:D,action:X,data:K})})),this._parser.setDcsHandlerFallback(((D,X,K)=>{X==="HOOK"&&(K=K.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(D),action:X,payload:K})})),this._parser.setPrintHandler(((D,X,K)=>this.print(D,X,K))),this._parser.registerCsiHandler({final:"@"},(D=>this.insertChars(D))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(D=>this.scrollLeft(D))),this._parser.registerCsiHandler({final:"A"},(D=>this.cursorUp(D))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(D=>this.scrollRight(D))),this._parser.registerCsiHandler({final:"B"},(D=>this.cursorDown(D))),this._parser.registerCsiHandler({final:"C"},(D=>this.cursorForward(D))),this._parser.registerCsiHandler({final:"D"},(D=>this.cursorBackward(D))),this._parser.registerCsiHandler({final:"E"},(D=>this.cursorNextLine(D))),this._parser.registerCsiHandler({final:"F"},(D=>this.cursorPrecedingLine(D))),this._parser.registerCsiHandler({final:"G"},(D=>this.cursorCharAbsolute(D))),this._parser.registerCsiHandler({final:"H"},(D=>this.cursorPosition(D))),this._parser.registerCsiHandler({final:"I"},(D=>this.cursorForwardTab(D))),this._parser.registerCsiHandler({final:"J"},(D=>this.eraseInDisplay(D,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(D=>this.eraseInDisplay(D,!0))),this._parser.registerCsiHandler({final:"K"},(D=>this.eraseInLine(D,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(D=>this.eraseInLine(D,!0))),this._parser.registerCsiHandler({final:"L"},(D=>this.insertLines(D))),this._parser.registerCsiHandler({final:"M"},(D=>this.deleteLines(D))),this._parser.registerCsiHandler({final:"P"},(D=>this.deleteChars(D))),this._parser.registerCsiHandler({final:"S"},(D=>this.scrollUp(D))),this._parser.registerCsiHandler({final:"T"},(D=>this.scrollDown(D))),this._parser.registerCsiHandler({final:"X"},(D=>this.eraseChars(D))),this._parser.registerCsiHandler({final:"Z"},(D=>this.cursorBackwardTab(D))),this._parser.registerCsiHandler({final:"`"},(D=>this.charPosAbsolute(D))),this._parser.registerCsiHandler({final:"a"},(D=>this.hPositionRelative(D))),this._parser.registerCsiHandler({final:"b"},(D=>this.repeatPrecedingCharacter(D))),this._parser.registerCsiHandler({final:"c"},(D=>this.sendDeviceAttributesPrimary(D))),this._parser.registerCsiHandler({prefix:">",final:"c"},(D=>this.sendDeviceAttributesSecondary(D))),this._parser.registerCsiHandler({final:"d"},(D=>this.linePosAbsolute(D))),this._parser.registerCsiHandler({final:"e"},(D=>this.vPositionRelative(D))),this._parser.registerCsiHandler({final:"f"},(D=>this.hVPosition(D))),this._parser.registerCsiHandler({final:"g"},(D=>this.tabClear(D))),this._parser.registerCsiHandler({final:"h"},(D=>this.setMode(D))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(D=>this.setModePrivate(D))),this._parser.registerCsiHandler({final:"l"},(D=>this.resetMode(D))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(D=>this.resetModePrivate(D))),this._parser.registerCsiHandler({final:"m"},(D=>this.charAttributes(D))),this._parser.registerCsiHandler({final:"n"},(D=>this.deviceStatus(D))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(D=>this.deviceStatusPrivate(D))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(D=>this.softReset(D))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(D=>this.setCursorStyle(D))),this._parser.registerCsiHandler({final:"r"},(D=>this.setScrollRegion(D))),this._parser.registerCsiHandler({final:"s"},(D=>this.saveCursor(D))),this._parser.registerCsiHandler({final:"t"},(D=>this.windowOptions(D))),this._parser.registerCsiHandler({final:"u"},(D=>this.restoreCursor(D))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(D=>this.insertColumns(D))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(D=>this.deleteColumns(D))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(D=>this.selectProtected(D))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(D=>this.requestMode(D,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(D=>this.requestMode(D,!1))),this._parser.setExecuteHandler(h.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(h.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(h.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(h.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(h.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(h.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(h.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(h.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(h.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(h.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(h.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(h.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new E.OscHandler((D=>(this.setTitle(D),this.setIconName(D),!0)))),this._parser.registerOscHandler(1,new E.OscHandler((D=>this.setIconName(D)))),this._parser.registerOscHandler(2,new E.OscHandler((D=>this.setTitle(D)))),this._parser.registerOscHandler(4,new E.OscHandler((D=>this.setOrReportIndexedColor(D)))),this._parser.registerOscHandler(8,new E.OscHandler((D=>this.setHyperlink(D)))),this._parser.registerOscHandler(10,new E.OscHandler((D=>this.setOrReportFgColor(D)))),this._parser.registerOscHandler(11,new E.OscHandler((D=>this.setOrReportBgColor(D)))),this._parser.registerOscHandler(12,new E.OscHandler((D=>this.setOrReportCursorColor(D)))),this._parser.registerOscHandler(104,new E.OscHandler((D=>this.restoreIndexedColor(D)))),this._parser.registerOscHandler(110,new E.OscHandler((D=>this.restoreFgColor(D)))),this._parser.registerOscHandler(111,new E.OscHandler((D=>this.restoreBgColor(D)))),this._parser.registerOscHandler(112,new E.OscHandler((D=>this.restoreCursorColor(D)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const D in b.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:D},(()=>this.selectCharset("("+D))),this._parser.registerEscHandler({intermediates:")",final:D},(()=>this.selectCharset(")"+D))),this._parser.registerEscHandler({intermediates:"*",final:D},(()=>this.selectCharset("*"+D))),this._parser.registerEscHandler({intermediates:"+",final:D},(()=>this.selectCharset("+"+D))),this._parser.registerEscHandler({intermediates:"-",final:D},(()=>this.selectCharset("-"+D))),this._parser.registerEscHandler({intermediates:".",final:D},(()=>this.selectCharset("."+D))),this._parser.registerEscHandler({intermediates:"/",final:D},(()=>this.selectCharset("/"+D)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((D=>(this._logService.error("Parsing error: ",D),D))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new w.DcsHandler(((D,X)=>this.requestStatusString(D,X))))}_preserveStack(T,L,$,R){this._parseStack.paused=!0,this._parseStack.cursorStartX=T,this._parseStack.cursorStartY=L,this._parseStack.decodedLength=$,this._parseStack.position=R}_logSlowResolvingAsync(T){this._logService.logLevel<=k.LogLevelEnum.WARN&&Promise.race([T,new Promise(((L,$)=>setTimeout((()=>$("#SLOW_TIMEOUT")),5e3)))]).catch((L=>{if(L!=="#SLOW_TIMEOUT")throw L;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(T,L){let $,R=this._activeBuffer.x,q=this._activeBuffer.y,W=0;const Y=this._parseStack.paused;if(Y){if($=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,L))return this._logSlowResolvingAsync($),$;R=this._parseStack.cursorStartX,q=this._parseStack.cursorStartY,this._parseStack.paused=!1,T.length>A&&(W=this._parseStack.position+A)}if(this._logService.logLevel<=k.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof T=="string"?` "${T}"`:` "${Array.prototype.map.call(T,(D=>String.fromCharCode(D))).join("")}"`),typeof T=="string"?T.split("").map((D=>D.charCodeAt(0))):T),this._parseBuffer.length<T.length&&this._parseBuffer.length<A&&(this._parseBuffer=new Uint32Array(Math.min(T.length,A))),Y||this._dirtyRowTracker.clearRange(),T.length>A)for(let D=W;D<T.length;D+=A){const X=D+A<T.length?D+A:T.length,K=typeof T=="string"?this._stringDecoder.decode(T.substring(D,X),this._parseBuffer):this._utf8Decoder.decode(T.subarray(D,X),this._parseBuffer);if($=this._parser.parse(this._parseBuffer,K))return this._preserveStack(R,q,K,D),this._logSlowResolvingAsync($),$}else if(!Y){const D=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer);if($=this._parser.parse(this._parseBuffer,D))return this._preserveStack(R,q,D,0),this._logSlowResolvingAsync($),$}this._activeBuffer.x===R&&this._activeBuffer.y===q||this._onCursorMove.fire();const V=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),H=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);H<this._bufferService.rows&&this._onRequestRefreshRows.fire(Math.min(H,this._bufferService.rows-1),Math.min(V,this._bufferService.rows-1))}print(T,L,$){let R,q;const W=this._charsetService.charset,Y=this._optionsService.rawOptions.screenReaderMode,V=this._bufferService.cols,H=this._coreService.decPrivateModes.wraparound,D=this._coreService.modes.insertMode,X=this._curAttrData;let K=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&$-L>0&&K.getWidth(this._activeBuffer.x-1)===2&&K.setCellFromCodepoint(this._activeBuffer.x-1,0,1,X);let ee=this._parser.precedingJoinState;for(let te=L;te<$;++te){if(R=T[te],R<127&&W){const ue=W[String.fromCharCode(R)];ue&&(R=ue.charCodeAt(0))}const oe=this._unicodeService.charProperties(R,ee);q=_.UnicodeService.extractWidth(oe);const he=_.UnicodeService.extractShouldJoin(oe),ge=he?_.UnicodeService.extractWidth(ee):0;if(ee=oe,Y&&this._onA11yChar.fire((0,x.stringFromCodePoint)(R)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+q-ge>V){if(H){const ue=K;let se=this._activeBuffer.x-ge;for(this._activeBuffer.x=ge,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),K=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),ge>0&&K instanceof p.BufferLine&&K.copyCellsFrom(ue,se,0,ge,!1);se<V;)ue.setCellFromCodepoint(se++,0,1,X)}else if(this._activeBuffer.x=V-1,q===2)continue}if(he&&this._activeBuffer.x){const ue=K.getWidth(this._activeBuffer.x-1)?1:2;K.addCodepointToCell(this._activeBuffer.x-ue,R,q);for(let se=q-ge;--se>=0;)K.setCellFromCodepoint(this._activeBuffer.x++,0,0,X)}else if(D&&(K.insertCells(this._activeBuffer.x,q-ge,this._activeBuffer.getNullCell(X)),K.getWidth(V-1)===2&&K.setCellFromCodepoint(V-1,u.NULL_CELL_CODE,u.NULL_CELL_WIDTH,X)),K.setCellFromCodepoint(this._activeBuffer.x++,R,q,X),q>0)for(;--q;)K.setCellFromCodepoint(this._activeBuffer.x++,0,0,X)}this._parser.precedingJoinState=ee,this._activeBuffer.x<V&&$-L>0&&K.getWidth(this._activeBuffer.x)===0&&!K.hasContent(this._activeBuffer.x)&&K.setCellFromCodepoint(this._activeBuffer.x,0,1,X),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(T,L){return T.final!=="t"||T.prefix||T.intermediates?this._parser.registerCsiHandler(T,L):this._parser.registerCsiHandler(T,($=>!M($.params[0],this._optionsService.rawOptions.windowOptions)||L($)))}registerDcsHandler(T,L){return this._parser.registerDcsHandler(T,new w.DcsHandler(L))}registerEscHandler(T,L){return this._parser.registerEscHandler(T,L)}registerOscHandler(T,L){return this._parser.registerOscHandler(T,new E.OscHandler(L))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var T;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((T=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&T.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const L=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);L.hasWidth(this._activeBuffer.x)&&!L.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const T=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-T),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(T=this._bufferService.cols-1){this._activeBuffer.x=Math.min(T,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(T,L){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=T,this._activeBuffer.y=this._activeBuffer.scrollTop+L):(this._activeBuffer.x=T,this._activeBuffer.y=L),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(T,L){this._restrictCursor(),this._setCursor(this._activeBuffer.x+T,this._activeBuffer.y+L)}cursorUp(T){const L=this._activeBuffer.y-this._activeBuffer.scrollTop;return L>=0?this._moveCursor(0,-Math.min(L,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1)),!0}cursorDown(T){const L=this._activeBuffer.scrollBottom-this._activeBuffer.y;return L>=0?this._moveCursor(0,Math.min(L,T.params[0]||1)):this._moveCursor(0,T.params[0]||1),!0}cursorForward(T){return this._moveCursor(T.params[0]||1,0),!0}cursorBackward(T){return this._moveCursor(-(T.params[0]||1),0),!0}cursorNextLine(T){return this.cursorDown(T),this._activeBuffer.x=0,!0}cursorPrecedingLine(T){return this.cursorUp(T),this._activeBuffer.x=0,!0}cursorCharAbsolute(T){return this._setCursor((T.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(T){return this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1),!0}charPosAbsolute(T){return this._setCursor((T.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(T){return this._moveCursor(T.params[0]||1,0),!0}linePosAbsolute(T){return this._setCursor(this._activeBuffer.x,(T.params[0]||1)-1),!0}vPositionRelative(T){return this._moveCursor(0,T.params[0]||1),!0}hVPosition(T){return this.cursorPosition(T),!0}tabClear(T){const L=T.params[0];return L===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:L===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(T){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let L=T.params[0]||1;for(;L--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(T){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let L=T.params[0]||1;for(;L--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(T){const L=T.params[0];return L===1&&(this._curAttrData.bg|=536870912),L!==2&&L!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(T,L,$,R=!1,q=!1){const W=this._activeBuffer.lines.get(this._activeBuffer.ybase+T);W.replaceCells(L,$,this._activeBuffer.getNullCell(this._eraseAttrData()),q),R&&(W.isWrapped=!1)}_resetBufferLine(T,L=!1){const $=this._activeBuffer.lines.get(this._activeBuffer.ybase+T);$&&($.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),L),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+T),$.isWrapped=!1)}eraseInDisplay(T,L=!1){let $;switch(this._restrictCursor(this._bufferService.cols),T.params[0]){case 0:for($=this._activeBuffer.y,this._dirtyRowTracker.markDirty($),this._eraseInBufferLine($++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,L);$<this._bufferService.rows;$++)this._resetBufferLine($,L);this._dirtyRowTracker.markDirty($);break;case 1:for($=this._activeBuffer.y,this._dirtyRowTracker.markDirty($),this._eraseInBufferLine($,0,this._activeBuffer.x+1,!0,L),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get($+1).isWrapped=!1);$--;)this._resetBufferLine($,L);this._dirtyRowTracker.markDirty(0);break;case 2:for($=this._bufferService.rows,this._dirtyRowTracker.markDirty($-1);$--;)this._resetBufferLine($,L);this._dirtyRowTracker.markDirty(0);break;case 3:const R=this._activeBuffer.lines.length-this._bufferService.rows;R>0&&(this._activeBuffer.lines.trimStart(R),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-R,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-R,0),this._onScroll.fire(0))}return!0}eraseInLine(T,L=!1){switch(this._restrictCursor(this._bufferService.cols),T.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,L);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,L);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,L)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(T){this._restrictCursor();let L=T.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const $=this._activeBuffer.ybase+this._activeBuffer.y,R=this._bufferService.rows-1-this._activeBuffer.scrollBottom,q=this._bufferService.rows-1+this._activeBuffer.ybase-R+1;for(;L--;)this._activeBuffer.lines.splice(q-1,1),this._activeBuffer.lines.splice($,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(T){this._restrictCursor();let L=T.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const $=this._activeBuffer.ybase+this._activeBuffer.y;let R;for(R=this._bufferService.rows-1-this._activeBuffer.scrollBottom,R=this._bufferService.rows-1+this._activeBuffer.ybase-R;L--;)this._activeBuffer.lines.splice($,1),this._activeBuffer.lines.splice(R,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(T){this._restrictCursor();const L=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return L&&(L.insertCells(this._activeBuffer.x,T.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(T){this._restrictCursor();const L=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return L&&(L.deleteCells(this._activeBuffer.x,T.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(T){let L=T.params[0]||1;for(;L--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(T){let L=T.params[0]||1;for(;L--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(p.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const L=T.params[0]||1;for(let $=this._activeBuffer.scrollTop;$<=this._activeBuffer.scrollBottom;++$){const R=this._activeBuffer.lines.get(this._activeBuffer.ybase+$);R.deleteCells(0,L,this._activeBuffer.getNullCell(this._eraseAttrData())),R.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const L=T.params[0]||1;for(let $=this._activeBuffer.scrollTop;$<=this._activeBuffer.scrollBottom;++$){const R=this._activeBuffer.lines.get(this._activeBuffer.ybase+$);R.insertCells(0,L,this._activeBuffer.getNullCell(this._eraseAttrData())),R.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const L=T.params[0]||1;for(let $=this._activeBuffer.scrollTop;$<=this._activeBuffer.scrollBottom;++$){const R=this._activeBuffer.lines.get(this._activeBuffer.ybase+$);R.insertCells(this._activeBuffer.x,L,this._activeBuffer.getNullCell(this._eraseAttrData())),R.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const L=T.params[0]||1;for(let $=this._activeBuffer.scrollTop;$<=this._activeBuffer.scrollBottom;++$){const R=this._activeBuffer.lines.get(this._activeBuffer.ybase+$);R.deleteCells(this._activeBuffer.x,L,this._activeBuffer.getNullCell(this._eraseAttrData())),R.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(T){this._restrictCursor();const L=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return L&&(L.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(T.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(T){const L=this._parser.precedingJoinState;if(!L)return!0;const $=T.params[0]||1,R=_.UnicodeService.extractWidth(L),q=this._activeBuffer.x-R,W=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(q),Y=new Uint32Array(W.length*$);let V=0;for(let D=0;D<W.length;){const X=W.codePointAt(D)||0;Y[V++]=X,D+=X>65535?2:1}let H=V;for(let D=1;D<$;++D)Y.copyWithin(H,0,V),H+=V;return this.print(Y,0,H),!0}sendDeviceAttributesPrimary(T){return T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(h.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(h.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(T){return T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(h.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(h.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(h.C0.ESC+"[>83;40003;0c")),!0}_is(T){return(this._optionsService.rawOptions.termName+"").indexOf(T)===0}setMode(T){for(let L=0;L<T.length;L++)switch(T.params[L]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(T){for(let L=0;L<T.length;L++)switch(T.params[L]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,b.DEFAULT_CHARSET),this._charsetService.setgCharset(1,b.DEFAULT_CHARSET),this._charsetService.setgCharset(2,b.DEFAULT_CHARSET),this._charsetService.setgCharset(3,b.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(T){for(let L=0;L<T.length;L++)switch(T.params[L]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(T){for(let L=0;L<T.length;L++)switch(T.params[L]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[L]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(T,L){const $=this._coreService.decPrivateModes,{activeProtocol:R,activeEncoding:q}=this._coreMouseService,W=this._coreService,{buffers:Y,cols:V}=this._bufferService,{active:H,alt:D}=Y,X=this._optionsService.rawOptions,K=he=>he?1:2,ee=T.params[0];return te=ee,oe=L?ee===2?4:ee===4?K(W.modes.insertMode):ee===12?3:ee===20?K(X.convertEol):0:ee===1?K($.applicationCursorKeys):ee===3?X.windowOptions.setWinLines?V===80?2:V===132?1:0:0:ee===6?K($.origin):ee===7?K($.wraparound):ee===8?3:ee===9?K(R==="X10"):ee===12?K(X.cursorBlink):ee===25?K(!W.isCursorHidden):ee===45?K($.reverseWraparound):ee===66?K($.applicationKeypad):ee===67?4:ee===1e3?K(R==="VT200"):ee===1002?K(R==="DRAG"):ee===1003?K(R==="ANY"):ee===1004?K($.sendFocus):ee===1005?4:ee===1006?K(q==="SGR"):ee===1015?4:ee===1016?K(q==="SGR_PIXELS"):ee===1048?1:ee===47||ee===1047||ee===1049?K(H===D):ee===2004?K($.bracketedPasteMode):0,W.triggerDataEvent(`${h.C0.ESC}[${L?"":"?"}${te};${oe}$y`),!0;var te,oe}_updateAttrColor(T,L,$,R,q){return L===2?(T|=50331648,T&=-16777216,T|=y.AttributeData.fromColorRGB([$,R,q])):L===5&&(T&=-50331904,T|=33554432|255&$),T}_extractColor(T,L,$){const R=[0,0,-1,0,0,0];let q=0,W=0;do{if(R[W+q]=T.params[L+W],T.hasSubParams(L+W)){const Y=T.getSubParams(L+W);let V=0;do R[1]===5&&(q=1),R[W+V+1+q]=Y[V];while(++V<Y.length&&V+W+1+q<R.length);break}if(R[1]===5&&W+q>=2||R[1]===2&&W+q>=5)break;R[1]&&(q=1)}while(++W+L<T.length&&W+q<R.length);for(let Y=2;Y<R.length;++Y)R[Y]===-1&&(R[Y]=0);switch(R[0]){case 38:$.fg=this._updateAttrColor($.fg,R[1],R[3],R[4],R[5]);break;case 48:$.bg=this._updateAttrColor($.bg,R[1],R[3],R[4],R[5]);break;case 58:$.extended=$.extended.clone(),$.extended.underlineColor=this._updateAttrColor($.extended.underlineColor,R[1],R[3],R[4],R[5])}return W}_processUnderline(T,L){L.extended=L.extended.clone(),(!~T||T>5)&&(T=1),L.extended.underlineStyle=T,L.fg|=268435456,T===0&&(L.fg&=-268435457),L.updateExtended()}_processSGR0(T){T.fg=p.DEFAULT_ATTR_DATA.fg,T.bg=p.DEFAULT_ATTR_DATA.bg,T.extended=T.extended.clone(),T.extended.underlineStyle=0,T.extended.underlineColor&=-67108864,T.updateExtended()}charAttributes(T){if(T.length===1&&T.params[0]===0)return this._processSGR0(this._curAttrData),!0;const L=T.length;let $;const R=this._curAttrData;for(let q=0;q<L;q++)$=T.params[q],$>=30&&$<=37?(R.fg&=-50331904,R.fg|=16777216|$-30):$>=40&&$<=47?(R.bg&=-50331904,R.bg|=16777216|$-40):$>=90&&$<=97?(R.fg&=-50331904,R.fg|=16777224|$-90):$>=100&&$<=107?(R.bg&=-50331904,R.bg|=16777224|$-100):$===0?this._processSGR0(R):$===1?R.fg|=134217728:$===3?R.bg|=67108864:$===4?(R.fg|=268435456,this._processUnderline(T.hasSubParams(q)?T.getSubParams(q)[0]:1,R)):$===5?R.fg|=536870912:$===7?R.fg|=67108864:$===8?R.fg|=1073741824:$===9?R.fg|=2147483648:$===2?R.bg|=134217728:$===21?this._processUnderline(2,R):$===22?(R.fg&=-134217729,R.bg&=-134217729):$===23?R.bg&=-67108865:$===24?(R.fg&=-268435457,this._processUnderline(0,R)):$===25?R.fg&=-536870913:$===27?R.fg&=-67108865:$===28?R.fg&=-1073741825:$===29?R.fg&=2147483647:$===39?(R.fg&=-67108864,R.fg|=16777215&p.DEFAULT_ATTR_DATA.fg):$===49?(R.bg&=-67108864,R.bg|=16777215&p.DEFAULT_ATTR_DATA.bg):$===38||$===48||$===58?q+=this._extractColor(T,q,R):$===53?R.bg|=1073741824:$===55?R.bg&=-1073741825:$===59?(R.extended=R.extended.clone(),R.extended.underlineColor=-1,R.updateExtended()):$===100?(R.fg&=-67108864,R.fg|=16777215&p.DEFAULT_ATTR_DATA.fg,R.bg&=-67108864,R.bg|=16777215&p.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",$);return!0}deviceStatus(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(`${h.C0.ESC}[0n`);break;case 6:const L=this._activeBuffer.y+1,$=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${h.C0.ESC}[${L};${$}R`)}return!0}deviceStatusPrivate(T){if(T.params[0]===6){const L=this._activeBuffer.y+1,$=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${h.C0.ESC}[?${L};${$}R`)}return!0}softReset(T){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(T){const L=T.params[0]||1;switch(L){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const $=L%2==1;return this._optionsService.options.cursorBlink=$,!0}setScrollRegion(T){const L=T.params[0]||1;let $;return(T.length<2||($=T.params[1])>this._bufferService.rows||$===0)&&($=this._bufferService.rows),$>L&&(this._activeBuffer.scrollTop=L-1,this._activeBuffer.scrollBottom=$-1,this._setCursor(0,0)),!0}windowOptions(T){if(!M(T.params[0],this._optionsService.rawOptions.windowOptions))return!0;const L=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:L!==2&&this._onRequestWindowsOptionsReport.fire(O.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(O.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${h.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:L!==0&&L!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),L!==0&&L!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:L!==0&&L!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),L!==0&&L!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(T){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(T){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(T){return this._windowTitle=T,this._onTitleChange.fire(T),!0}setIconName(T){return this._iconName=T,!0}setOrReportIndexedColor(T){const L=[],$=T.split(";");for(;$.length>1;){const R=$.shift(),q=$.shift();if(/^\d+$/.exec(R)){const W=parseInt(R);if(P(W))if(q==="?")L.push({type:0,index:W});else{const Y=(0,N.parseColor)(q);Y&&L.push({type:1,index:W,color:Y})}}}return L.length&&this._onColor.fire(L),!0}setHyperlink(T){const L=T.split(";");return!(L.length<2)&&(L[1]?this._createHyperlink(L[0],L[1]):!L[0]&&this._finishHyperlink())}_createHyperlink(T,L){this._getCurrentLinkId()&&this._finishHyperlink();const $=T.split(":");let R;const q=$.findIndex((W=>W.startsWith("id=")));return q!==-1&&(R=$[q].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:R,uri:L}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(T,L){const $=T.split(";");for(let R=0;R<$.length&&!(L>=this._specialColors.length);++R,++L)if($[R]==="?")this._onColor.fire([{type:0,index:this._specialColors[L]}]);else{const q=(0,N.parseColor)($[R]);q&&this._onColor.fire([{type:1,index:this._specialColors[L],color:q}])}return!0}setOrReportFgColor(T){return this._setOrReportSpecialColor(T,0)}setOrReportBgColor(T){return this._setOrReportSpecialColor(T,1)}setOrReportCursorColor(T){return this._setOrReportSpecialColor(T,2)}restoreIndexedColor(T){if(!T)return this._onColor.fire([{type:2}]),!0;const L=[],$=T.split(";");for(let R=0;R<$.length;++R)if(/^\d+$/.exec($[R])){const q=parseInt($[R]);P(q)&&L.push({type:2,index:q})}return L.length&&this._onColor.fire(L),!0}restoreFgColor(T){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(T){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(T){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,b.DEFAULT_CHARSET),!0}selectCharset(T){return T.length!==2?(this.selectDefaultCharset(),!0):(T[0]==="/"||this._charsetService.setgCharset(I[T[0]],b.CHARSETS[T[1]]||b.DEFAULT_CHARSET),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const T=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,T,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=p.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(T){return this._charsetService.setgLevel(T),!0}screenAlignmentPattern(){const T=new f.CellData;T.content=4194373,T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg,this._setCursor(0,0);for(let L=0;L<this._bufferService.rows;++L){const $=this._activeBuffer.ybase+this._activeBuffer.y+L,R=this._activeBuffer.lines.get($);R&&(R.fill(T),R.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(T,L){const $=this._bufferService.buffer,R=this._optionsService.rawOptions;return(q=>(this._coreService.triggerDataEvent(`${h.C0.ESC}${q}${h.C0.ESC}\\`),!0))(T==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:T==='"p'?'P1$r61;1"p':T==="r"?`P1$r${$.scrollTop+1};${$.scrollBottom+1}r`:T==="m"?"P1$r0m":T===" q"?`P1$r${{block:2,underline:4,bar:6}[R.cursorStyle]-(R.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(T,L){this._dirtyRowTracker.markRangeDirty(T,L)}}a.InputHandler=F;let z=class{constructor(U){this._bufferService=U,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(U){U<this.start?this.start=U:U>this.end&&(this.end=U)}markRangeDirty(U,T){U>T&&(B=U,U=T,T=B),U<this.start&&(this.start=U),T>this.end&&(this.end=T)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function P(U){return 0<=U&&U<256}z=c([m(0,k.IBufferService)],z)},844:(d,a)=>{function o(c){for(const m of c)m.dispose();c.length=0}Object.defineProperty(a,"__esModule",{value:!0}),a.getDisposeArrayDisposable=a.disposeArray=a.toDisposable=a.MutableDisposable=a.Disposable=void 0,a.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const c of this._disposables)c.dispose();this._disposables.length=0}register(c){return this._disposables.push(c),c}unregister(c){const m=this._disposables.indexOf(c);m!==-1&&this._disposables.splice(m,1)}},a.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(c){var m;this._isDisposed||c===this._value||((m=this._value)==null||m.dispose(),this._value=c)}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,(c=this._value)==null||c.dispose(),this._value=void 0}},a.toDisposable=function(c){return{dispose:c}},a.disposeArray=o,a.getDisposeArrayDisposable=function(c){return{dispose:()=>o(c)}}},1505:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FourKeyMap=a.TwoKeyMap=void 0;class o{constructor(){this._data={}}set(m,h,b){this._data[m]||(this._data[m]={}),this._data[m][h]=b}get(m,h){return this._data[m]?this._data[m][h]:void 0}clear(){this._data={}}}a.TwoKeyMap=o,a.FourKeyMap=class{constructor(){this._data=new o}set(c,m,h,b,v){this._data.get(c,m)||this._data.set(c,m,new o),this._data.get(c,m).set(h,b,v)}get(c,m,h,b){var v;return(v=this._data.get(c,m))==null?void 0:v.get(h,b)}clear(){this._data.clear()}}},6114:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.isChromeOS=a.isLinux=a.isWindows=a.isIphone=a.isIpad=a.isMac=a.getSafariVersion=a.isSafari=a.isLegacyEdge=a.isFirefox=a.isNode=void 0,a.isNode=typeof process<"u"&&"title"in process;const o=a.isNode?"node":navigator.userAgent,c=a.isNode?"node":navigator.platform;a.isFirefox=o.includes("Firefox"),a.isLegacyEdge=o.includes("Edge"),a.isSafari=/^((?!chrome|android).)*safari/i.test(o),a.getSafariVersion=function(){if(!a.isSafari)return 0;const m=o.match(/Version\/(\d+)/);return m===null||m.length<2?0:parseInt(m[1])},a.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(c),a.isIpad=c==="iPad",a.isIphone=c==="iPhone",a.isWindows=["Windows","Win16","Win32","WinCE"].includes(c),a.isLinux=c.indexOf("Linux")>=0,a.isChromeOS=/\bCrOS\b/.test(o)},6106:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SortedList=void 0;let o=0;a.SortedList=class{constructor(c){this._getKey=c,this._array=[]}clear(){this._array.length=0}insert(c){this._array.length!==0?(o=this._search(this._getKey(c)),this._array.splice(o,0,c)):this._array.push(c)}delete(c){if(this._array.length===0)return!1;const m=this._getKey(c);if(m===void 0||(o=this._search(m),o===-1)||this._getKey(this._array[o])!==m)return!1;do if(this._array[o]===c)return this._array.splice(o,1),!0;while(++o<this._array.length&&this._getKey(this._array[o])===m);return!1}*getKeyIterator(c){if(this._array.length!==0&&(o=this._search(c),!(o<0||o>=this._array.length)&&this._getKey(this._array[o])===c))do yield this._array[o];while(++o<this._array.length&&this._getKey(this._array[o])===c)}forEachByKey(c,m){if(this._array.length!==0&&(o=this._search(c),!(o<0||o>=this._array.length)&&this._getKey(this._array[o])===c))do m(this._array[o]);while(++o<this._array.length&&this._getKey(this._array[o])===c)}values(){return[...this._array].values()}_search(c){let m=0,h=this._array.length-1;for(;h>=m;){let b=m+h>>1;const v=this._getKey(this._array[b]);if(v>c)h=b-1;else{if(!(v<c)){for(;b>0&&this._getKey(this._array[b-1])===c;)b--;return b}m=b+1}}return m}}},7226:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DebouncedIdleTask=a.IdleTaskQueue=a.PriorityTaskQueue=void 0;const c=o(6114);class m{constructor(){this._tasks=[],this._i=0}enqueue(v){this._tasks.push(v),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(v){this._idleCallback=void 0;let S=0,x=0,p=v.timeRemaining(),g=0;for(;this._i<this._tasks.length;){if(S=Date.now(),this._tasks[this._i]()||this._i++,S=Math.max(1,Date.now()-S),x=Math.max(S,x),g=v.timeRemaining(),1.5*x>g)return p-S<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(p-S))}ms`),void this._start();p=g}this.clear()}}class h extends m{_requestCallback(v){return setTimeout((()=>v(this._createDeadline(16))))}_cancelCallback(v){clearTimeout(v)}_createDeadline(v){const S=Date.now()+v;return{timeRemaining:()=>Math.max(0,S-Date.now())}}}a.PriorityTaskQueue=h,a.IdleTaskQueue=!c.isNode&&"requestIdleCallback"in window?class extends m{_requestCallback(b){return requestIdleCallback(b)}_cancelCallback(b){cancelIdleCallback(b)}}:h,a.DebouncedIdleTask=class{constructor(){this._queue=new a.IdleTaskQueue}set(b){this._queue.clear(),this._queue.enqueue(b)}flush(){this._queue.flush()}}},9282:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.updateWindowsModeWrappedState=void 0;const c=o(643);a.updateWindowsModeWrappedState=function(m){const h=m.buffer.lines.get(m.buffer.ybase+m.buffer.y-1),b=h==null?void 0:h.get(m.cols-1),v=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);v&&b&&(v.isWrapped=b[c.CHAR_DATA_CODE_INDEX]!==c.NULL_CELL_CODE&&b[c.CHAR_DATA_CODE_INDEX]!==c.WHITESPACE_CELL_CODE)}},3734:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ExtendedAttrs=a.AttributeData=void 0;class o{constructor(){this.fg=0,this.bg=0,this.extended=new c}static toColorRGB(h){return[h>>>16&255,h>>>8&255,255&h]}static fromColorRGB(h){return(255&h[0])<<16|(255&h[1])<<8|255&h[2]}clone(){const h=new o;return h.fg=this.fg,h.bg=this.bg,h.extended=this.extended.clone(),h}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}a.AttributeData=o;class c{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(h){this._ext=h}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(h){this._ext&=-469762049,this._ext|=h<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(h){this._ext&=-67108864,this._ext|=67108863&h}get urlId(){return this._urlId}set urlId(h){this._urlId=h}get underlineVariantOffset(){const h=(3758096384&this._ext)>>29;return h<0?4294967288^h:h}set underlineVariantOffset(h){this._ext&=536870911,this._ext|=h<<29&3758096384}constructor(h=0,b=0){this._ext=0,this._urlId=0,this._ext=h,this._urlId=b}clone(){return new c(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}a.ExtendedAttrs=c},9092:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Buffer=a.MAX_BUFFER_SIZE=void 0;const c=o(6349),m=o(7226),h=o(3734),b=o(8437),v=o(4634),S=o(511),x=o(643),p=o(4863),g=o(7116);a.MAX_BUFFER_SIZE=4294967295,a.Buffer=class{constructor(u,f,y){this._hasScrollback=u,this._optionsService=f,this._bufferService=y,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=b.DEFAULT_ATTR_DATA.clone(),this.savedCharset=g.DEFAULT_CHARSET,this.markers=[],this._nullCell=S.CellData.fromCharData([0,x.NULL_CELL_CHAR,x.NULL_CELL_WIDTH,x.NULL_CELL_CODE]),this._whitespaceCell=S.CellData.fromCharData([0,x.WHITESPACE_CELL_CHAR,x.WHITESPACE_CELL_WIDTH,x.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new m.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(u){return u?(this._nullCell.fg=u.fg,this._nullCell.bg=u.bg,this._nullCell.extended=u.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new h.ExtendedAttrs),this._nullCell}getWhitespaceCell(u){return u?(this._whitespaceCell.fg=u.fg,this._whitespaceCell.bg=u.bg,this._whitespaceCell.extended=u.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new h.ExtendedAttrs),this._whitespaceCell}getBlankLine(u,f){return new b.BufferLine(this._bufferService.cols,this.getNullCell(u),f)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const u=this.ybase+this.y-this.ydisp;return u>=0&&u<this._rows}_getCorrectBufferLength(u){if(!this._hasScrollback)return u;const f=u+this._optionsService.rawOptions.scrollback;return f>a.MAX_BUFFER_SIZE?a.MAX_BUFFER_SIZE:f}fillViewportRows(u){if(this.lines.length===0){u===void 0&&(u=b.DEFAULT_ATTR_DATA);let f=this._rows;for(;f--;)this.lines.push(this.getBlankLine(u))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(u,f){const y=this.getNullCell(b.DEFAULT_ATTR_DATA);let k=0;const _=this._getCorrectBufferLength(f);if(_>this.lines.maxLength&&(this.lines.maxLength=_),this.lines.length>0){if(this._cols<u)for(let w=0;w<this.lines.length;w++)k+=+this.lines.get(w).resize(u,y);let E=0;if(this._rows<f)for(let w=this._rows;w<f;w++)this.lines.length<f+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new b.BufferLine(u,y)):this.ybase>0&&this.lines.length<=this.ybase+this.y+E+1?(this.ybase--,E++,this.ydisp>0&&this.ydisp--):this.lines.push(new b.BufferLine(u,y)));else for(let w=this._rows;w>f;w--)this.lines.length>f+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(_<this.lines.maxLength){const w=this.lines.length-_;w>0&&(this.lines.trimStart(w),this.ybase=Math.max(this.ybase-w,0),this.ydisp=Math.max(this.ydisp-w,0),this.savedY=Math.max(this.savedY-w,0)),this.lines.maxLength=_}this.x=Math.min(this.x,u-1),this.y=Math.min(this.y,f-1),E&&(this.y+=E),this.savedX=Math.min(this.savedX,u-1),this.scrollTop=0}if(this.scrollBottom=f-1,this._isReflowEnabled&&(this._reflow(u,f),this._cols>u))for(let E=0;E<this.lines.length;E++)k+=+this.lines.get(E).resize(u,y);this._cols=u,this._rows=f,this._memoryCleanupQueue.clear(),k>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let u=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,u=!1);let f=0;for(;this._memoryCleanupPosition<this.lines.length;)if(f+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),f>100)return!0;return u}get _isReflowEnabled(){const u=this._optionsService.rawOptions.windowsPty;return u&&u.buildNumber?this._hasScrollback&&u.backend==="conpty"&&u.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(u,f){this._cols!==u&&(u>this._cols?this._reflowLarger(u,f):this._reflowSmaller(u,f))}_reflowLarger(u,f){const y=(0,v.reflowLargerGetLinesToRemove)(this.lines,this._cols,u,this.ybase+this.y,this.getNullCell(b.DEFAULT_ATTR_DATA));if(y.length>0){const k=(0,v.reflowLargerCreateNewLayout)(this.lines,y);(0,v.reflowLargerApplyNewLayout)(this.lines,k.layout),this._reflowLargerAdjustViewport(u,f,k.countRemoved)}}_reflowLargerAdjustViewport(u,f,y){const k=this.getNullCell(b.DEFAULT_ATTR_DATA);let _=y;for(;_-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<f&&this.lines.push(new b.BufferLine(u,k))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-y,0)}_reflowSmaller(u,f){const y=this.getNullCell(b.DEFAULT_ATTR_DATA),k=[];let _=0;for(let E=this.lines.length-1;E>=0;E--){let w=this.lines.get(E);if(!w||!w.isWrapped&&w.getTrimmedLength()<=u)continue;const N=[w];for(;w.isWrapped&&E>0;)w=this.lines.get(--E),N.unshift(w);const I=this.ybase+this.y;if(I>=E&&I<E+N.length)continue;const A=N[N.length-1].getTrimmedLength(),M=(0,v.reflowSmallerGetNewLineLengths)(N,this._cols,u),O=M.length-N.length;let B;B=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+O):Math.max(0,this.lines.length-this.lines.maxLength+O);const F=[];for(let $=0;$<O;$++){const R=this.getBlankLine(b.DEFAULT_ATTR_DATA,!0);F.push(R)}F.length>0&&(k.push({start:E+N.length+_,newLines:F}),_+=F.length),N.push(...F);let z=M.length-1,P=M[z];P===0&&(z--,P=M[z]);let U=N.length-O-1,T=A;for(;U>=0;){const $=Math.min(T,P);if(N[z]===void 0)break;if(N[z].copyCellsFrom(N[U],T-$,P-$,$,!0),P-=$,P===0&&(z--,P=M[z]),T-=$,T===0){U--;const R=Math.max(U,0);T=(0,v.getWrappedLineTrimmedLength)(N,R,this._cols)}}for(let $=0;$<N.length;$++)M[$]<u&&N[$].setCell(M[$],y);let L=O-B;for(;L-- >0;)this.ybase===0?this.y<f-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+_)-f&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+O,this.ybase+f-1)}if(k.length>0){const E=[],w=[];for(let z=0;z<this.lines.length;z++)w.push(this.lines.get(z));const N=this.lines.length;let I=N-1,A=0,M=k[A];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+_);let O=0;for(let z=Math.min(this.lines.maxLength-1,N+_-1);z>=0;z--)if(M&&M.start>I+O){for(let P=M.newLines.length-1;P>=0;P--)this.lines.set(z--,M.newLines[P]);z++,E.push({index:I+1,amount:M.newLines.length}),O+=M.newLines.length,M=k[++A]}else this.lines.set(z,w[I--]);let B=0;for(let z=E.length-1;z>=0;z--)E[z].index+=B,this.lines.onInsertEmitter.fire(E[z]),B+=E[z].amount;const F=Math.max(0,N+_-this.lines.maxLength);F>0&&this.lines.onTrimEmitter.fire(F)}}translateBufferLineToString(u,f,y=0,k){const _=this.lines.get(u);return _?_.translateToString(f,y,k):""}getWrappedRangeForLine(u){let f=u,y=u;for(;f>0&&this.lines.get(f).isWrapped;)f--;for(;y+1<this.lines.length&&this.lines.get(y+1).isWrapped;)y++;return{first:f,last:y}}setupTabStops(u){for(u!=null?this.tabs[u]||(u=this.prevStop(u)):(this.tabs={},u=0);u<this._cols;u+=this._optionsService.rawOptions.tabStopWidth)this.tabs[u]=!0}prevStop(u){for(u==null&&(u=this.x);!this.tabs[--u]&&u>0;);return u>=this._cols?this._cols-1:u<0?0:u}nextStop(u){for(u==null&&(u=this.x);!this.tabs[++u]&&u<this._cols;);return u>=this._cols?this._cols-1:u<0?0:u}clearMarkers(u){this._isClearing=!0;for(let f=0;f<this.markers.length;f++)this.markers[f].line===u&&(this.markers[f].dispose(),this.markers.splice(f--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let u=0;u<this.markers.length;u++)this.markers[u].dispose(),this.markers.splice(u--,1);this._isClearing=!1}addMarker(u){const f=new p.Marker(u);return this.markers.push(f),f.register(this.lines.onTrim((y=>{f.line-=y,f.line<0&&f.dispose()}))),f.register(this.lines.onInsert((y=>{f.line>=y.index&&(f.line+=y.amount)}))),f.register(this.lines.onDelete((y=>{f.line>=y.index&&f.line<y.index+y.amount&&f.dispose(),f.line>y.index&&(f.line-=y.amount)}))),f.register(f.onDispose((()=>this._removeMarker(f)))),f}_removeMarker(u){this._isClearing||this.markers.splice(this.markers.indexOf(u),1)}}},8437:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLine=a.DEFAULT_ATTR_DATA=void 0;const c=o(3734),m=o(511),h=o(643),b=o(482);a.DEFAULT_ATTR_DATA=Object.freeze(new c.AttributeData);let v=0;class S{constructor(p,g,u=!1){this.isWrapped=u,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*p);const f=g||m.CellData.fromCharData([0,h.NULL_CELL_CHAR,h.NULL_CELL_WIDTH,h.NULL_CELL_CODE]);for(let y=0;y<p;++y)this.setCell(y,f);this.length=p}get(p){const g=this._data[3*p+0],u=2097151&g;return[this._data[3*p+1],2097152&g?this._combined[p]:u?(0,b.stringFromCodePoint)(u):"",g>>22,2097152&g?this._combined[p].charCodeAt(this._combined[p].length-1):u]}set(p,g){this._data[3*p+1]=g[h.CHAR_DATA_ATTR_INDEX],g[h.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[p]=g[1],this._data[3*p+0]=2097152|p|g[h.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*p+0]=g[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[h.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(p){return this._data[3*p+0]>>22}hasWidth(p){return 12582912&this._data[3*p+0]}getFg(p){return this._data[3*p+1]}getBg(p){return this._data[3*p+2]}hasContent(p){return 4194303&this._data[3*p+0]}getCodePoint(p){const g=this._data[3*p+0];return 2097152&g?this._combined[p].charCodeAt(this._combined[p].length-1):2097151&g}isCombined(p){return 2097152&this._data[3*p+0]}getString(p){const g=this._data[3*p+0];return 2097152&g?this._combined[p]:2097151&g?(0,b.stringFromCodePoint)(2097151&g):""}isProtected(p){return 536870912&this._data[3*p+2]}loadCell(p,g){return v=3*p,g.content=this._data[v+0],g.fg=this._data[v+1],g.bg=this._data[v+2],2097152&g.content&&(g.combinedData=this._combined[p]),268435456&g.bg&&(g.extended=this._extendedAttrs[p]),g}setCell(p,g){2097152&g.content&&(this._combined[p]=g.combinedData),268435456&g.bg&&(this._extendedAttrs[p]=g.extended),this._data[3*p+0]=g.content,this._data[3*p+1]=g.fg,this._data[3*p+2]=g.bg}setCellFromCodepoint(p,g,u,f){268435456&f.bg&&(this._extendedAttrs[p]=f.extended),this._data[3*p+0]=g|u<<22,this._data[3*p+1]=f.fg,this._data[3*p+2]=f.bg}addCodepointToCell(p,g,u){let f=this._data[3*p+0];2097152&f?this._combined[p]+=(0,b.stringFromCodePoint)(g):2097151&f?(this._combined[p]=(0,b.stringFromCodePoint)(2097151&f)+(0,b.stringFromCodePoint)(g),f&=-2097152,f|=2097152):f=g|4194304,u&&(f&=-12582913,f|=u<<22),this._data[3*p+0]=f}insertCells(p,g,u){if((p%=this.length)&&this.getWidth(p-1)===2&&this.setCellFromCodepoint(p-1,0,1,u),g<this.length-p){const f=new m.CellData;for(let y=this.length-p-g-1;y>=0;--y)this.setCell(p+g+y,this.loadCell(p+y,f));for(let y=0;y<g;++y)this.setCell(p+y,u)}else for(let f=p;f<this.length;++f)this.setCell(f,u);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,u)}deleteCells(p,g,u){if(p%=this.length,g<this.length-p){const f=new m.CellData;for(let y=0;y<this.length-p-g;++y)this.setCell(p+y,this.loadCell(p+g+y,f));for(let y=this.length-g;y<this.length;++y)this.setCell(y,u)}else for(let f=p;f<this.length;++f)this.setCell(f,u);p&&this.getWidth(p-1)===2&&this.setCellFromCodepoint(p-1,0,1,u),this.getWidth(p)!==0||this.hasContent(p)||this.setCellFromCodepoint(p,0,1,u)}replaceCells(p,g,u,f=!1){if(f)for(p&&this.getWidth(p-1)===2&&!this.isProtected(p-1)&&this.setCellFromCodepoint(p-1,0,1,u),g<this.length&&this.getWidth(g-1)===2&&!this.isProtected(g)&&this.setCellFromCodepoint(g,0,1,u);p<g&&p<this.length;)this.isProtected(p)||this.setCell(p,u),p++;else for(p&&this.getWidth(p-1)===2&&this.setCellFromCodepoint(p-1,0,1,u),g<this.length&&this.getWidth(g-1)===2&&this.setCellFromCodepoint(g,0,1,u);p<g&&p<this.length;)this.setCell(p++,u)}resize(p,g){if(p===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const u=3*p;if(p>this.length){if(this._data.buffer.byteLength>=4*u)this._data=new Uint32Array(this._data.buffer,0,u);else{const f=new Uint32Array(u);f.set(this._data),this._data=f}for(let f=this.length;f<p;++f)this.setCell(f,g)}else{this._data=this._data.subarray(0,u);const f=Object.keys(this._combined);for(let k=0;k<f.length;k++){const _=parseInt(f[k],10);_>=p&&delete this._combined[_]}const y=Object.keys(this._extendedAttrs);for(let k=0;k<y.length;k++){const _=parseInt(y[k],10);_>=p&&delete this._extendedAttrs[_]}}return this.length=p,4*u*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const p=new Uint32Array(this._data.length);return p.set(this._data),this._data=p,1}return 0}fill(p,g=!1){if(g)for(let u=0;u<this.length;++u)this.isProtected(u)||this.setCell(u,p);else{this._combined={},this._extendedAttrs={};for(let u=0;u<this.length;++u)this.setCell(u,p)}}copyFrom(p){this.length!==p.length?this._data=new Uint32Array(p._data):this._data.set(p._data),this.length=p.length,this._combined={};for(const g in p._combined)this._combined[g]=p._combined[g];this._extendedAttrs={};for(const g in p._extendedAttrs)this._extendedAttrs[g]=p._extendedAttrs[g];this.isWrapped=p.isWrapped}clone(){const p=new S(0);p._data=new Uint32Array(this._data),p.length=this.length;for(const g in this._combined)p._combined[g]=this._combined[g];for(const g in this._extendedAttrs)p._extendedAttrs[g]=this._extendedAttrs[g];return p.isWrapped=this.isWrapped,p}getTrimmedLength(){for(let p=this.length-1;p>=0;--p)if(4194303&this._data[3*p+0])return p+(this._data[3*p+0]>>22);return 0}getNoBgTrimmedLength(){for(let p=this.length-1;p>=0;--p)if(4194303&this._data[3*p+0]||50331648&this._data[3*p+2])return p+(this._data[3*p+0]>>22);return 0}copyCellsFrom(p,g,u,f,y){const k=p._data;if(y)for(let E=f-1;E>=0;E--){for(let w=0;w<3;w++)this._data[3*(u+E)+w]=k[3*(g+E)+w];268435456&k[3*(g+E)+2]&&(this._extendedAttrs[u+E]=p._extendedAttrs[g+E])}else for(let E=0;E<f;E++){for(let w=0;w<3;w++)this._data[3*(u+E)+w]=k[3*(g+E)+w];268435456&k[3*(g+E)+2]&&(this._extendedAttrs[u+E]=p._extendedAttrs[g+E])}const _=Object.keys(p._combined);for(let E=0;E<_.length;E++){const w=parseInt(_[E],10);w>=g&&(this._combined[w-g+u]=p._combined[w])}}translateToString(p,g,u,f){g=g??0,u=u??this.length,p&&(u=Math.min(u,this.getTrimmedLength())),f&&(f.length=0);let y="";for(;g<u;){const k=this._data[3*g+0],_=2097151&k,E=2097152&k?this._combined[g]:_?(0,b.stringFromCodePoint)(_):h.WHITESPACE_CELL_CHAR;if(y+=E,f)for(let w=0;w<E.length;++w)f.push(g);g+=k>>22||1}return f&&f.push(g),y}}a.BufferLine=S},4841:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.getRangeLength=void 0,a.getRangeLength=function(o,c){if(o.start.y>o.end.y)throw new Error(`Buffer range end (${o.end.x}, ${o.end.y}) cannot be before start (${o.start.x}, ${o.start.y})`);return c*(o.end.y-o.start.y)+(o.end.x-o.start.x+1)}},4634:(d,a)=>{function o(c,m,h){if(m===c.length-1)return c[m].getTrimmedLength();const b=!c[m].hasContent(h-1)&&c[m].getWidth(h-1)===1,v=c[m+1].getWidth(0)===2;return b&&v?h-1:h}Object.defineProperty(a,"__esModule",{value:!0}),a.getWrappedLineTrimmedLength=a.reflowSmallerGetNewLineLengths=a.reflowLargerApplyNewLayout=a.reflowLargerCreateNewLayout=a.reflowLargerGetLinesToRemove=void 0,a.reflowLargerGetLinesToRemove=function(c,m,h,b,v){const S=[];for(let x=0;x<c.length-1;x++){let p=x,g=c.get(++p);if(!g.isWrapped)continue;const u=[c.get(x)];for(;p<c.length&&g.isWrapped;)u.push(g),g=c.get(++p);if(b>=x&&b<p){x+=u.length-1;continue}let f=0,y=o(u,f,m),k=1,_=0;for(;k<u.length;){const w=o(u,k,m),N=w-_,I=h-y,A=Math.min(N,I);u[f].copyCellsFrom(u[k],_,y,A,!1),y+=A,y===h&&(f++,y=0),_+=A,_===w&&(k++,_=0),y===0&&f!==0&&u[f-1].getWidth(h-1)===2&&(u[f].copyCellsFrom(u[f-1],h-1,y++,1,!1),u[f-1].setCell(h-1,v))}u[f].replaceCells(y,h,v);let E=0;for(let w=u.length-1;w>0&&(w>f||u[w].getTrimmedLength()===0);w--)E++;E>0&&(S.push(x+u.length-E),S.push(E)),x+=u.length-1}return S},a.reflowLargerCreateNewLayout=function(c,m){const h=[];let b=0,v=m[b],S=0;for(let x=0;x<c.length;x++)if(v===x){const p=m[++b];c.onDeleteEmitter.fire({index:x-S,amount:p}),x+=p-1,S+=p,v=m[++b]}else h.push(x);return{layout:h,countRemoved:S}},a.reflowLargerApplyNewLayout=function(c,m){const h=[];for(let b=0;b<m.length;b++)h.push(c.get(m[b]));for(let b=0;b<h.length;b++)c.set(b,h[b]);c.length=m.length},a.reflowSmallerGetNewLineLengths=function(c,m,h){const b=[],v=c.map(((g,u)=>o(c,u,m))).reduce(((g,u)=>g+u));let S=0,x=0,p=0;for(;p<v;){if(v-p<h){b.push(v-p);break}S+=h;const g=o(c,x,m);S>g&&(S-=g,x++);const u=c[x].getWidth(S-1)===2;u&&S--;const f=u?h-1:h;b.push(f),p+=f}return b},a.getWrappedLineTrimmedLength=o},5295:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferSet=void 0;const c=o(8460),m=o(844),h=o(9092);class b extends m.Disposable{constructor(S,x){super(),this._optionsService=S,this._bufferService=x,this._onBufferActivate=this.register(new c.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new h.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new h.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(S){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(S),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(S,x){this._normal.resize(S,x),this._alt.resize(S,x),this.setupTabStops(S)}setupTabStops(S){this._normal.setupTabStops(S),this._alt.setupTabStops(S)}}a.BufferSet=b},511:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CellData=void 0;const c=o(482),m=o(643),h=o(3734);class b extends h.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new h.ExtendedAttrs,this.combinedData=""}static fromCharData(S){const x=new b;return x.setFromCharData(S),x}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,c.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(S){this.fg=S[m.CHAR_DATA_ATTR_INDEX],this.bg=0;let x=!1;if(S[m.CHAR_DATA_CHAR_INDEX].length>2)x=!0;else if(S[m.CHAR_DATA_CHAR_INDEX].length===2){const p=S[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=p&&p<=56319){const g=S[m.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=g&&g<=57343?this.content=1024*(p-55296)+g-56320+65536|S[m.CHAR_DATA_WIDTH_INDEX]<<22:x=!0}else x=!0}else this.content=S[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|S[m.CHAR_DATA_WIDTH_INDEX]<<22;x&&(this.combinedData=S[m.CHAR_DATA_CHAR_INDEX],this.content=2097152|S[m.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}a.CellData=b},643:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WHITESPACE_CELL_CODE=a.WHITESPACE_CELL_WIDTH=a.WHITESPACE_CELL_CHAR=a.NULL_CELL_CODE=a.NULL_CELL_WIDTH=a.NULL_CELL_CHAR=a.CHAR_DATA_CODE_INDEX=a.CHAR_DATA_WIDTH_INDEX=a.CHAR_DATA_CHAR_INDEX=a.CHAR_DATA_ATTR_INDEX=a.DEFAULT_EXT=a.DEFAULT_ATTR=a.DEFAULT_COLOR=void 0,a.DEFAULT_COLOR=0,a.DEFAULT_ATTR=256|a.DEFAULT_COLOR<<9,a.DEFAULT_EXT=0,a.CHAR_DATA_ATTR_INDEX=0,a.CHAR_DATA_CHAR_INDEX=1,a.CHAR_DATA_WIDTH_INDEX=2,a.CHAR_DATA_CODE_INDEX=3,a.NULL_CELL_CHAR="",a.NULL_CELL_WIDTH=1,a.NULL_CELL_CODE=0,a.WHITESPACE_CELL_CHAR=" ",a.WHITESPACE_CELL_WIDTH=1,a.WHITESPACE_CELL_CODE=32},4863:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Marker=void 0;const c=o(8460),m=o(844);class h{get id(){return this._id}constructor(v){this.line=v,this.isDisposed=!1,this._disposables=[],this._id=h._nextId++,this._onDispose=this.register(new c.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,m.disposeArray)(this._disposables),this._disposables.length=0)}register(v){return this._disposables.push(v),v}}a.Marker=h,h._nextId=1},7116:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DEFAULT_CHARSET=a.CHARSETS=void 0,a.CHARSETS={},a.DEFAULT_CHARSET=a.CHARSETS.B,a.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},a.CHARSETS.A={"#":"£"},a.CHARSETS.B=void 0,a.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},a.CHARSETS.C=a.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},a.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},a.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},a.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},a.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},a.CHARSETS.E=a.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},a.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},a.CHARSETS.H=a.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},a.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(d,a)=>{var o,c,m;Object.defineProperty(a,"__esModule",{value:!0}),a.C1_ESCAPED=a.C1=a.C0=void 0,(function(h){h.NUL="\0",h.SOH="",h.STX="",h.ETX="",h.EOT="",h.ENQ="",h.ACK="",h.BEL="\x07",h.BS="\b",h.HT=" ",h.LF=`
|
|
572
|
+
`,h.VT="\v",h.FF="\f",h.CR="\r",h.SO="",h.SI="",h.DLE="",h.DC1="",h.DC2="",h.DC3="",h.DC4="",h.NAK="",h.SYN="",h.ETB="",h.CAN="",h.EM="",h.SUB="",h.ESC="\x1B",h.FS="",h.GS="",h.RS="",h.US="",h.SP=" ",h.DEL=""})(o||(a.C0=o={})),(function(h){h.PAD="",h.HOP="",h.BPH="",h.NBH="",h.IND="",h.NEL="
",h.SSA="",h.ESA="",h.HTS="",h.HTJ="",h.VTS="",h.PLD="",h.PLU="",h.RI="",h.SS2="",h.SS3="",h.DCS="",h.PU1="",h.PU2="",h.STS="",h.CCH="",h.MW="",h.SPA="",h.EPA="",h.SOS="",h.SGCI="",h.SCI="",h.CSI="",h.ST="",h.OSC="",h.PM="",h.APC=""})(c||(a.C1=c={})),(function(h){h.ST=`${o.ESC}\\`})(m||(a.C1_ESCAPED=m={}))},7399:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.evaluateKeyboardEvent=void 0;const c=o(2584),m={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};a.evaluateKeyboardEvent=function(h,b,v,S){const x={type:0,cancel:!1,key:void 0},p=(h.shiftKey?1:0)|(h.altKey?2:0)|(h.ctrlKey?4:0)|(h.metaKey?8:0);switch(h.keyCode){case 0:h.key==="UIKeyInputUpArrow"?x.key=b?c.C0.ESC+"OA":c.C0.ESC+"[A":h.key==="UIKeyInputLeftArrow"?x.key=b?c.C0.ESC+"OD":c.C0.ESC+"[D":h.key==="UIKeyInputRightArrow"?x.key=b?c.C0.ESC+"OC":c.C0.ESC+"[C":h.key==="UIKeyInputDownArrow"&&(x.key=b?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:x.key=h.ctrlKey?"\b":c.C0.DEL,h.altKey&&(x.key=c.C0.ESC+x.key);break;case 9:if(h.shiftKey){x.key=c.C0.ESC+"[Z";break}x.key=c.C0.HT,x.cancel=!0;break;case 13:x.key=h.altKey?c.C0.ESC+c.C0.CR:c.C0.CR,x.cancel=!0;break;case 27:x.key=c.C0.ESC,h.altKey&&(x.key=c.C0.ESC+c.C0.ESC),x.cancel=!0;break;case 37:if(h.metaKey)break;p?(x.key=c.C0.ESC+"[1;"+(p+1)+"D",x.key===c.C0.ESC+"[1;3D"&&(x.key=c.C0.ESC+(v?"b":"[1;5D"))):x.key=b?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:if(h.metaKey)break;p?(x.key=c.C0.ESC+"[1;"+(p+1)+"C",x.key===c.C0.ESC+"[1;3C"&&(x.key=c.C0.ESC+(v?"f":"[1;5C"))):x.key=b?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:if(h.metaKey)break;p?(x.key=c.C0.ESC+"[1;"+(p+1)+"A",v||x.key!==c.C0.ESC+"[1;3A"||(x.key=c.C0.ESC+"[1;5A")):x.key=b?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:if(h.metaKey)break;p?(x.key=c.C0.ESC+"[1;"+(p+1)+"B",v||x.key!==c.C0.ESC+"[1;3B"||(x.key=c.C0.ESC+"[1;5B")):x.key=b?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:h.shiftKey||h.ctrlKey||(x.key=c.C0.ESC+"[2~");break;case 46:x.key=p?c.C0.ESC+"[3;"+(p+1)+"~":c.C0.ESC+"[3~";break;case 36:x.key=p?c.C0.ESC+"[1;"+(p+1)+"H":b?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:x.key=p?c.C0.ESC+"[1;"+(p+1)+"F":b?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:h.shiftKey?x.type=2:h.ctrlKey?x.key=c.C0.ESC+"[5;"+(p+1)+"~":x.key=c.C0.ESC+"[5~";break;case 34:h.shiftKey?x.type=3:h.ctrlKey?x.key=c.C0.ESC+"[6;"+(p+1)+"~":x.key=c.C0.ESC+"[6~";break;case 112:x.key=p?c.C0.ESC+"[1;"+(p+1)+"P":c.C0.ESC+"OP";break;case 113:x.key=p?c.C0.ESC+"[1;"+(p+1)+"Q":c.C0.ESC+"OQ";break;case 114:x.key=p?c.C0.ESC+"[1;"+(p+1)+"R":c.C0.ESC+"OR";break;case 115:x.key=p?c.C0.ESC+"[1;"+(p+1)+"S":c.C0.ESC+"OS";break;case 116:x.key=p?c.C0.ESC+"[15;"+(p+1)+"~":c.C0.ESC+"[15~";break;case 117:x.key=p?c.C0.ESC+"[17;"+(p+1)+"~":c.C0.ESC+"[17~";break;case 118:x.key=p?c.C0.ESC+"[18;"+(p+1)+"~":c.C0.ESC+"[18~";break;case 119:x.key=p?c.C0.ESC+"[19;"+(p+1)+"~":c.C0.ESC+"[19~";break;case 120:x.key=p?c.C0.ESC+"[20;"+(p+1)+"~":c.C0.ESC+"[20~";break;case 121:x.key=p?c.C0.ESC+"[21;"+(p+1)+"~":c.C0.ESC+"[21~";break;case 122:x.key=p?c.C0.ESC+"[23;"+(p+1)+"~":c.C0.ESC+"[23~";break;case 123:x.key=p?c.C0.ESC+"[24;"+(p+1)+"~":c.C0.ESC+"[24~";break;default:if(!h.ctrlKey||h.shiftKey||h.altKey||h.metaKey)if(v&&!S||!h.altKey||h.metaKey)!v||h.altKey||h.ctrlKey||h.shiftKey||!h.metaKey?h.key&&!h.ctrlKey&&!h.altKey&&!h.metaKey&&h.keyCode>=48&&h.key.length===1?x.key=h.key:h.key&&h.ctrlKey&&(h.key==="_"&&(x.key=c.C0.US),h.key==="@"&&(x.key=c.C0.NUL)):h.keyCode===65&&(x.type=1);else{const g=m[h.keyCode],u=g==null?void 0:g[h.shiftKey?1:0];if(u)x.key=c.C0.ESC+u;else if(h.keyCode>=65&&h.keyCode<=90){const f=h.ctrlKey?h.keyCode-64:h.keyCode+32;let y=String.fromCharCode(f);h.shiftKey&&(y=y.toUpperCase()),x.key=c.C0.ESC+y}else if(h.keyCode===32)x.key=c.C0.ESC+(h.ctrlKey?c.C0.NUL:" ");else if(h.key==="Dead"&&h.code.startsWith("Key")){let f=h.code.slice(3,4);h.shiftKey||(f=f.toLowerCase()),x.key=c.C0.ESC+f,x.cancel=!0}}else h.keyCode>=65&&h.keyCode<=90?x.key=String.fromCharCode(h.keyCode-64):h.keyCode===32?x.key=c.C0.NUL:h.keyCode>=51&&h.keyCode<=55?x.key=String.fromCharCode(h.keyCode-51+27):h.keyCode===56?x.key=c.C0.DEL:h.keyCode===219?x.key=c.C0.ESC:h.keyCode===220?x.key=c.C0.FS:h.keyCode===221&&(x.key=c.C0.GS)}return x}},482:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Utf8ToUtf32=a.StringToUtf32=a.utf32ToString=a.stringFromCodePoint=void 0,a.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},a.utf32ToString=function(o,c=0,m=o.length){let h="";for(let b=c;b<m;++b){let v=o[b];v>65535?(v-=65536,h+=String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):h+=String.fromCharCode(v)}return h},a.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(o,c){const m=o.length;if(!m)return 0;let h=0,b=0;if(this._interim){const v=o.charCodeAt(b++);56320<=v&&v<=57343?c[h++]=1024*(this._interim-55296)+v-56320+65536:(c[h++]=this._interim,c[h++]=v),this._interim=0}for(let v=b;v<m;++v){const S=o.charCodeAt(v);if(55296<=S&&S<=56319){if(++v>=m)return this._interim=S,h;const x=o.charCodeAt(v);56320<=x&&x<=57343?c[h++]=1024*(S-55296)+x-56320+65536:(c[h++]=S,c[h++]=x)}else S!==65279&&(c[h++]=S)}return h}},a.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(o,c){const m=o.length;if(!m)return 0;let h,b,v,S,x=0,p=0,g=0;if(this.interim[0]){let y=!1,k=this.interim[0];k&=(224&k)==192?31:(240&k)==224?15:7;let _,E=0;for(;(_=63&this.interim[++E])&&E<4;)k<<=6,k|=_;const w=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,N=w-E;for(;g<N;){if(g>=m)return 0;if(_=o[g++],(192&_)!=128){g--,y=!0;break}this.interim[E++]=_,k<<=6,k|=63&_}y||(w===2?k<128?g--:c[x++]=k:w===3?k<2048||k>=55296&&k<=57343||k===65279||(c[x++]=k):k<65536||k>1114111||(c[x++]=k)),this.interim.fill(0)}const u=m-4;let f=g;for(;f<m;){for(;!(!(f<u)||128&(h=o[f])||128&(b=o[f+1])||128&(v=o[f+2])||128&(S=o[f+3]));)c[x++]=h,c[x++]=b,c[x++]=v,c[x++]=S,f+=4;if(h=o[f++],h<128)c[x++]=h;else if((224&h)==192){if(f>=m)return this.interim[0]=h,x;if(b=o[f++],(192&b)!=128){f--;continue}if(p=(31&h)<<6|63&b,p<128){f--;continue}c[x++]=p}else if((240&h)==224){if(f>=m)return this.interim[0]=h,x;if(b=o[f++],(192&b)!=128){f--;continue}if(f>=m)return this.interim[0]=h,this.interim[1]=b,x;if(v=o[f++],(192&v)!=128){f--;continue}if(p=(15&h)<<12|(63&b)<<6|63&v,p<2048||p>=55296&&p<=57343||p===65279)continue;c[x++]=p}else if((248&h)==240){if(f>=m)return this.interim[0]=h,x;if(b=o[f++],(192&b)!=128){f--;continue}if(f>=m)return this.interim[0]=h,this.interim[1]=b,x;if(v=o[f++],(192&v)!=128){f--;continue}if(f>=m)return this.interim[0]=h,this.interim[1]=b,this.interim[2]=v,x;if(S=o[f++],(192&S)!=128){f--;continue}if(p=(7&h)<<18|(63&b)<<12|(63&v)<<6|63&S,p<65536||p>1114111)continue;c[x++]=p}}return x}}},225:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeV6=void 0;const c=o(1480),m=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],h=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let b;a.UnicodeV6=class{constructor(){if(this.version="6",!b){b=new Uint8Array(65536),b.fill(1),b[0]=0,b.fill(0,1,32),b.fill(0,127,160),b.fill(2,4352,4448),b[9001]=2,b[9002]=2,b.fill(2,11904,42192),b[12351]=1,b.fill(2,44032,55204),b.fill(2,63744,64256),b.fill(2,65040,65050),b.fill(2,65072,65136),b.fill(2,65280,65377),b.fill(2,65504,65511);for(let v=0;v<m.length;++v)b.fill(0,m[v][0],m[v][1]+1)}}wcwidth(v){return v<32?0:v<127?1:v<65536?b[v]:(function(S,x){let p,g=0,u=x.length-1;if(S<x[0][0]||S>x[u][1])return!1;for(;u>=g;)if(p=g+u>>1,S>x[p][1])g=p+1;else{if(!(S<x[p][0]))return!0;u=p-1}return!1})(v,h)?0:v>=131072&&v<=196605||v>=196608&&v<=262141?2:1}charProperties(v,S){let x=this.wcwidth(v),p=x===0&&S!==0;if(p){const g=c.UnicodeService.extractWidth(S);g===0?p=!1:g>x&&(x=g)}return c.UnicodeService.createPropertyValue(0,x,p)}}},5981:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WriteBuffer=void 0;const c=o(8460),m=o(844);class h extends m.Disposable{constructor(v){super(),this._action=v,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new c.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(v,S){if(S!==void 0&&this._syncCalls>S)return void(this._syncCalls=0);if(this._pendingData+=v.length,this._writeBuffer.push(v),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let x;for(this._isSyncWriting=!0;x=this._writeBuffer.shift();){this._action(x);const p=this._callbacks.shift();p&&p()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(v,S){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=v.length,this._writeBuffer.push(v),this._callbacks.push(S),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=v.length,this._writeBuffer.push(v),this._callbacks.push(S)}_innerWrite(v=0,S=!0){const x=v||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const p=this._writeBuffer[this._bufferOffset],g=this._action(p,S);if(g){const f=y=>Date.now()-x>=12?setTimeout((()=>this._innerWrite(0,y))):this._innerWrite(x,y);return void g.catch((y=>(queueMicrotask((()=>{throw y})),Promise.resolve(!1)))).then(f)}const u=this._callbacks[this._bufferOffset];if(u&&u(),this._bufferOffset++,this._pendingData-=p.length,Date.now()-x>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}a.WriteBuffer=h},5941:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.toRgbString=a.parseColor=void 0;const o=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,c=/^[\da-f]+$/;function m(h,b){const v=h.toString(16),S=v.length<2?"0"+v:v;switch(b){case 4:return v[0];case 8:return S;case 12:return(S+S).slice(0,3);default:return S+S}}a.parseColor=function(h){if(!h)return;let b=h.toLowerCase();if(b.indexOf("rgb:")===0){b=b.slice(4);const v=o.exec(b);if(v){const S=v[1]?15:v[4]?255:v[7]?4095:65535;return[Math.round(parseInt(v[1]||v[4]||v[7]||v[10],16)/S*255),Math.round(parseInt(v[2]||v[5]||v[8]||v[11],16)/S*255),Math.round(parseInt(v[3]||v[6]||v[9]||v[12],16)/S*255)]}}else if(b.indexOf("#")===0&&(b=b.slice(1),c.exec(b)&&[3,6,9,12].includes(b.length))){const v=b.length/3,S=[0,0,0];for(let x=0;x<3;++x){const p=parseInt(b.slice(v*x,v*x+v),16);S[x]=v===1?p<<4:v===2?p:v===3?p>>4:p>>8}return S}},a.toRgbString=function(h,b=16){const[v,S,x]=h;return`rgb:${m(v,b)}/${m(S,b)}/${m(x,b)}`}},5770:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PAYLOAD_LIMIT=void 0,a.PAYLOAD_LIMIT=1e7},6351:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DcsHandler=a.DcsParser=void 0;const c=o(482),m=o(8742),h=o(5770),b=[];a.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=b,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=b}registerHandler(S,x){this._handlers[S]===void 0&&(this._handlers[S]=[]);const p=this._handlers[S];return p.push(x),{dispose:()=>{const g=p.indexOf(x);g!==-1&&p.splice(g,1)}}}clearHandler(S){this._handlers[S]&&delete this._handlers[S]}setHandlerFallback(S){this._handlerFb=S}reset(){if(this._active.length)for(let S=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;S>=0;--S)this._active[S].unhook(!1);this._stack.paused=!1,this._active=b,this._ident=0}hook(S,x){if(this.reset(),this._ident=S,this._active=this._handlers[S]||b,this._active.length)for(let p=this._active.length-1;p>=0;p--)this._active[p].hook(x);else this._handlerFb(this._ident,"HOOK",x)}put(S,x,p){if(this._active.length)for(let g=this._active.length-1;g>=0;g--)this._active[g].put(S,x,p);else this._handlerFb(this._ident,"PUT",(0,c.utf32ToString)(S,x,p))}unhook(S,x=!0){if(this._active.length){let p=!1,g=this._active.length-1,u=!1;if(this._stack.paused&&(g=this._stack.loopPosition-1,p=x,u=this._stack.fallThrough,this._stack.paused=!1),!u&&p===!1){for(;g>=0&&(p=this._active[g].unhook(S),p!==!0);g--)if(p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=g,this._stack.fallThrough=!1,p;g--}for(;g>=0;g--)if(p=this._active[g].unhook(!1),p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=g,this._stack.fallThrough=!0,p}else this._handlerFb(this._ident,"UNHOOK",S);this._active=b,this._ident=0}};const v=new m.Params;v.addParam(0),a.DcsHandler=class{constructor(S){this._handler=S,this._data="",this._params=v,this._hitLimit=!1}hook(S){this._params=S.length>1||S.params[0]?S.clone():v,this._data="",this._hitLimit=!1}put(S,x,p){this._hitLimit||(this._data+=(0,c.utf32ToString)(S,x,p),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(S){let x=!1;if(this._hitLimit)x=!1;else if(S&&(x=this._handler(this._data,this._params),x instanceof Promise))return x.then((p=>(this._params=v,this._data="",this._hitLimit=!1,p)));return this._params=v,this._data="",this._hitLimit=!1,x}}},2015:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.EscapeSequenceParser=a.VT500_TRANSITION_TABLE=a.TransitionTable=void 0;const c=o(844),m=o(8742),h=o(6242),b=o(6351);class v{constructor(g){this.table=new Uint8Array(g)}setDefault(g,u){this.table.fill(g<<4|u)}add(g,u,f,y){this.table[u<<8|g]=f<<4|y}addMany(g,u,f,y){for(let k=0;k<g.length;k++)this.table[u<<8|g[k]]=f<<4|y}}a.TransitionTable=v;const S=160;a.VT500_TRANSITION_TABLE=(function(){const p=new v(4095),g=Array.apply(null,Array(256)).map(((E,w)=>w)),u=(E,w)=>g.slice(E,w),f=u(32,127),y=u(0,24);y.push(25),y.push.apply(y,u(28,32));const k=u(0,14);let _;for(_ in p.setDefault(1,0),p.addMany(f,0,2,0),k)p.addMany([24,26,153,154],_,3,0),p.addMany(u(128,144),_,3,0),p.addMany(u(144,152),_,3,0),p.add(156,_,0,0),p.add(27,_,11,1),p.add(157,_,4,8),p.addMany([152,158,159],_,0,7),p.add(155,_,11,3),p.add(144,_,11,9);return p.addMany(y,0,3,0),p.addMany(y,1,3,1),p.add(127,1,0,1),p.addMany(y,8,0,8),p.addMany(y,3,3,3),p.add(127,3,0,3),p.addMany(y,4,3,4),p.add(127,4,0,4),p.addMany(y,6,3,6),p.addMany(y,5,3,5),p.add(127,5,0,5),p.addMany(y,2,3,2),p.add(127,2,0,2),p.add(93,1,4,8),p.addMany(f,8,5,8),p.add(127,8,5,8),p.addMany([156,27,24,26,7],8,6,0),p.addMany(u(28,32),8,0,8),p.addMany([88,94,95],1,0,7),p.addMany(f,7,0,7),p.addMany(y,7,0,7),p.add(156,7,0,0),p.add(127,7,0,7),p.add(91,1,11,3),p.addMany(u(64,127),3,7,0),p.addMany(u(48,60),3,8,4),p.addMany([60,61,62,63],3,9,4),p.addMany(u(48,60),4,8,4),p.addMany(u(64,127),4,7,0),p.addMany([60,61,62,63],4,0,6),p.addMany(u(32,64),6,0,6),p.add(127,6,0,6),p.addMany(u(64,127),6,0,0),p.addMany(u(32,48),3,9,5),p.addMany(u(32,48),5,9,5),p.addMany(u(48,64),5,0,6),p.addMany(u(64,127),5,7,0),p.addMany(u(32,48),4,9,5),p.addMany(u(32,48),1,9,2),p.addMany(u(32,48),2,9,2),p.addMany(u(48,127),2,10,0),p.addMany(u(48,80),1,10,0),p.addMany(u(81,88),1,10,0),p.addMany([89,90,92],1,10,0),p.addMany(u(96,127),1,10,0),p.add(80,1,11,9),p.addMany(y,9,0,9),p.add(127,9,0,9),p.addMany(u(28,32),9,0,9),p.addMany(u(32,48),9,9,12),p.addMany(u(48,60),9,8,10),p.addMany([60,61,62,63],9,9,10),p.addMany(y,11,0,11),p.addMany(u(32,128),11,0,11),p.addMany(u(28,32),11,0,11),p.addMany(y,10,0,10),p.add(127,10,0,10),p.addMany(u(28,32),10,0,10),p.addMany(u(48,60),10,8,10),p.addMany([60,61,62,63],10,0,11),p.addMany(u(32,48),10,9,12),p.addMany(y,12,0,12),p.add(127,12,0,12),p.addMany(u(28,32),12,0,12),p.addMany(u(32,48),12,9,12),p.addMany(u(48,64),12,0,11),p.addMany(u(64,127),12,12,13),p.addMany(u(64,127),10,12,13),p.addMany(u(64,127),9,12,13),p.addMany(y,13,13,13),p.addMany(f,13,13,13),p.add(127,13,0,13),p.addMany([27,156,24,26],13,14,0),p.add(S,0,2,0),p.add(S,8,5,8),p.add(S,6,0,6),p.add(S,11,0,11),p.add(S,13,13,13),p})();class x extends c.Disposable{constructor(g=a.VT500_TRANSITION_TABLE){super(),this._transitions=g,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new m.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(u,f,y)=>{},this._executeHandlerFb=u=>{},this._csiHandlerFb=(u,f)=>{},this._escHandlerFb=u=>{},this._errorHandlerFb=u=>u,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,c.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new h.OscParser),this._dcsParser=this.register(new b.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(g,u=[64,126]){let f=0;if(g.prefix){if(g.prefix.length>1)throw new Error("only one byte as prefix supported");if(f=g.prefix.charCodeAt(0),f&&60>f||f>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(g.intermediates){if(g.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let k=0;k<g.intermediates.length;++k){const _=g.intermediates.charCodeAt(k);if(32>_||_>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");f<<=8,f|=_}}if(g.final.length!==1)throw new Error("final must be a single byte");const y=g.final.charCodeAt(0);if(u[0]>y||y>u[1])throw new Error(`final must be in range ${u[0]} .. ${u[1]}`);return f<<=8,f|=y,f}identToString(g){const u=[];for(;g;)u.push(String.fromCharCode(255&g)),g>>=8;return u.reverse().join("")}setPrintHandler(g){this._printHandler=g}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(g,u){const f=this._identifier(g,[48,126]);this._escHandlers[f]===void 0&&(this._escHandlers[f]=[]);const y=this._escHandlers[f];return y.push(u),{dispose:()=>{const k=y.indexOf(u);k!==-1&&y.splice(k,1)}}}clearEscHandler(g){this._escHandlers[this._identifier(g,[48,126])]&&delete this._escHandlers[this._identifier(g,[48,126])]}setEscHandlerFallback(g){this._escHandlerFb=g}setExecuteHandler(g,u){this._executeHandlers[g.charCodeAt(0)]=u}clearExecuteHandler(g){this._executeHandlers[g.charCodeAt(0)]&&delete this._executeHandlers[g.charCodeAt(0)]}setExecuteHandlerFallback(g){this._executeHandlerFb=g}registerCsiHandler(g,u){const f=this._identifier(g);this._csiHandlers[f]===void 0&&(this._csiHandlers[f]=[]);const y=this._csiHandlers[f];return y.push(u),{dispose:()=>{const k=y.indexOf(u);k!==-1&&y.splice(k,1)}}}clearCsiHandler(g){this._csiHandlers[this._identifier(g)]&&delete this._csiHandlers[this._identifier(g)]}setCsiHandlerFallback(g){this._csiHandlerFb=g}registerDcsHandler(g,u){return this._dcsParser.registerHandler(this._identifier(g),u)}clearDcsHandler(g){this._dcsParser.clearHandler(this._identifier(g))}setDcsHandlerFallback(g){this._dcsParser.setHandlerFallback(g)}registerOscHandler(g,u){return this._oscParser.registerHandler(g,u)}clearOscHandler(g){this._oscParser.clearHandler(g)}setOscHandlerFallback(g){this._oscParser.setHandlerFallback(g)}setErrorHandler(g){this._errorHandler=g}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(g,u,f,y,k){this._parseStack.state=g,this._parseStack.handlers=u,this._parseStack.handlerPos=f,this._parseStack.transition=y,this._parseStack.chunkPos=k}parse(g,u,f){let y,k=0,_=0,E=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,E=this._parseStack.chunkPos+1;else{if(f===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const w=this._parseStack.handlers;let N=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(f===!1&&N>-1){for(;N>=0&&(y=w[N](this._params),y!==!0);N--)if(y instanceof Promise)return this._parseStack.handlerPos=N,y}this._parseStack.handlers=[];break;case 4:if(f===!1&&N>-1){for(;N>=0&&(y=w[N](),y!==!0);N--)if(y instanceof Promise)return this._parseStack.handlerPos=N,y}this._parseStack.handlers=[];break;case 6:if(k=g[this._parseStack.chunkPos],y=this._dcsParser.unhook(k!==24&&k!==26,f),y)return y;k===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(k=g[this._parseStack.chunkPos],y=this._oscParser.end(k!==24&&k!==26,f),y)return y;k===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,E=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let w=E;w<u;++w){switch(k=g[w],_=this._transitions.table[this.currentState<<8|(k<160?k:S)],_>>4){case 2:for(let O=w+1;;++O){if(O>=u||(k=g[O])<32||k>126&&k<S){this._printHandler(g,w,O),w=O-1;break}if(++O>=u||(k=g[O])<32||k>126&&k<S){this._printHandler(g,w,O),w=O-1;break}if(++O>=u||(k=g[O])<32||k>126&&k<S){this._printHandler(g,w,O),w=O-1;break}if(++O>=u||(k=g[O])<32||k>126&&k<S){this._printHandler(g,w,O),w=O-1;break}}break;case 3:this._executeHandlers[k]?this._executeHandlers[k]():this._executeHandlerFb(k),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:w,code:k,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const N=this._csiHandlers[this._collect<<8|k];let I=N?N.length-1:-1;for(;I>=0&&(y=N[I](this._params),y!==!0);I--)if(y instanceof Promise)return this._preserveStack(3,N,I,_,w),y;I<0&&this._csiHandlerFb(this._collect<<8|k,this._params),this.precedingJoinState=0;break;case 8:do switch(k){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(k-48)}while(++w<u&&(k=g[w])>47&&k<60);w--;break;case 9:this._collect<<=8,this._collect|=k;break;case 10:const A=this._escHandlers[this._collect<<8|k];let M=A?A.length-1:-1;for(;M>=0&&(y=A[M](),y!==!0);M--)if(y instanceof Promise)return this._preserveStack(4,A,M,_,w),y;M<0&&this._escHandlerFb(this._collect<<8|k),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|k,this._params);break;case 13:for(let O=w+1;;++O)if(O>=u||(k=g[O])===24||k===26||k===27||k>127&&k<S){this._dcsParser.put(g,w,O),w=O-1;break}break;case 14:if(y=this._dcsParser.unhook(k!==24&&k!==26),y)return this._preserveStack(6,[],0,_,w),y;k===27&&(_|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let O=w+1;;O++)if(O>=u||(k=g[O])<32||k>127&&k<S){this._oscParser.put(g,w,O),w=O-1;break}break;case 6:if(y=this._oscParser.end(k!==24&&k!==26),y)return this._preserveStack(5,[],0,_,w),y;k===27&&(_|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&_}}}a.EscapeSequenceParser=x},6242:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OscHandler=a.OscParser=void 0;const c=o(5770),m=o(482),h=[];a.OscParser=class{constructor(){this._state=0,this._active=h,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(b,v){this._handlers[b]===void 0&&(this._handlers[b]=[]);const S=this._handlers[b];return S.push(v),{dispose:()=>{const x=S.indexOf(v);x!==-1&&S.splice(x,1)}}}clearHandler(b){this._handlers[b]&&delete this._handlers[b]}setHandlerFallback(b){this._handlerFb=b}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=h}reset(){if(this._state===2)for(let b=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;b>=0;--b)this._active[b].end(!1);this._stack.paused=!1,this._active=h,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||h,this._active.length)for(let b=this._active.length-1;b>=0;b--)this._active[b].start();else this._handlerFb(this._id,"START")}_put(b,v,S){if(this._active.length)for(let x=this._active.length-1;x>=0;x--)this._active[x].put(b,v,S);else this._handlerFb(this._id,"PUT",(0,m.utf32ToString)(b,v,S))}start(){this.reset(),this._state=1}put(b,v,S){if(this._state!==3){if(this._state===1)for(;v<S;){const x=b[v++];if(x===59){this._state=2,this._start();break}if(x<48||57<x)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+x-48}this._state===2&&S-v>0&&this._put(b,v,S)}}end(b,v=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let S=!1,x=this._active.length-1,p=!1;if(this._stack.paused&&(x=this._stack.loopPosition-1,S=v,p=this._stack.fallThrough,this._stack.paused=!1),!p&&S===!1){for(;x>=0&&(S=this._active[x].end(b),S!==!0);x--)if(S instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!1,S;x--}for(;x>=0;x--)if(S=this._active[x].end(!1),S instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!0,S}else this._handlerFb(this._id,"END",b);this._active=h,this._id=-1,this._state=0}}},a.OscHandler=class{constructor(b){this._handler=b,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(b,v,S){this._hitLimit||(this._data+=(0,m.utf32ToString)(b,v,S),this._data.length>c.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(b){let v=!1;if(this._hitLimit)v=!1;else if(b&&(v=this._handler(this._data),v instanceof Promise))return v.then((S=>(this._data="",this._hitLimit=!1,S)));return this._data="",this._hitLimit=!1,v}}},8742:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Params=void 0;const o=2147483647;class c{static fromArray(h){const b=new c;if(!h.length)return b;for(let v=Array.isArray(h[0])?1:0;v<h.length;++v){const S=h[v];if(Array.isArray(S))for(let x=0;x<S.length;++x)b.addSubParam(S[x]);else b.addParam(S)}return b}constructor(h=32,b=32){if(this.maxLength=h,this.maxSubParamsLength=b,b>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(h),this.length=0,this._subParams=new Int32Array(b),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(h),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const h=new c(this.maxLength,this.maxSubParamsLength);return h.params.set(this.params),h.length=this.length,h._subParams.set(this._subParams),h._subParamsLength=this._subParamsLength,h._subParamsIdx.set(this._subParamsIdx),h._rejectDigits=this._rejectDigits,h._rejectSubDigits=this._rejectSubDigits,h._digitIsSub=this._digitIsSub,h}toArray(){const h=[];for(let b=0;b<this.length;++b){h.push(this.params[b]);const v=this._subParamsIdx[b]>>8,S=255&this._subParamsIdx[b];S-v>0&&h.push(Array.prototype.slice.call(this._subParams,v,S))}return h}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(h){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=h>o?o:h}}addSubParam(h){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=h>o?o:h,this._subParamsIdx[this.length-1]++}}hasSubParams(h){return(255&this._subParamsIdx[h])-(this._subParamsIdx[h]>>8)>0}getSubParams(h){const b=this._subParamsIdx[h]>>8,v=255&this._subParamsIdx[h];return v-b>0?this._subParams.subarray(b,v):null}getSubParamsAll(){const h={};for(let b=0;b<this.length;++b){const v=this._subParamsIdx[b]>>8,S=255&this._subParamsIdx[b];S-v>0&&(h[b]=this._subParams.slice(v,S))}return h}addDigit(h){let b;if(this._rejectDigits||!(b=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const v=this._digitIsSub?this._subParams:this.params,S=v[b-1];v[b-1]=~S?Math.min(10*S+h,o):h}}a.Params=c},5741:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.AddonManager=void 0,a.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()}loadAddon(o,c){const m={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(m),c.dispose=()=>this._wrappedAddonDispose(m),c.activate(o)}_wrappedAddonDispose(o){if(o.isDisposed)return;let c=-1;for(let m=0;m<this._addons.length;m++)if(this._addons[m]===o){c=m;break}if(c===-1)throw new Error("Could not dispose an addon that has not been loaded");o.isDisposed=!0,o.dispose.apply(o.instance),this._addons.splice(c,1)}}},8771:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferApiView=void 0;const c=o(3785),m=o(511);a.BufferApiView=class{constructor(h,b){this._buffer=h,this.type=b}init(h){return this._buffer=h,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(h){const b=this._buffer.lines.get(h);if(b)return new c.BufferLineApiView(b)}getNullCell(){return new m.CellData}}},3785:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLineApiView=void 0;const c=o(511);a.BufferLineApiView=class{constructor(m){this._line=m}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(m,h){if(!(m<0||m>=this._line.length))return h?(this._line.loadCell(m,h),h):this._line.loadCell(m,new c.CellData)}translateToString(m,h,b){return this._line.translateToString(m,h,b)}}},8285:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferNamespaceApi=void 0;const c=o(8771),m=o(8460),h=o(844);class b extends h.Disposable{constructor(S){super(),this._core=S,this._onBufferChange=this.register(new m.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new c.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new c.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}a.BufferNamespaceApi=b},7975:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ParserApi=void 0,a.ParserApi=class{constructor(o){this._core=o}registerCsiHandler(o,c){return this._core.registerCsiHandler(o,(m=>c(m.toArray())))}addCsiHandler(o,c){return this.registerCsiHandler(o,c)}registerDcsHandler(o,c){return this._core.registerDcsHandler(o,((m,h)=>c(m,h.toArray())))}addDcsHandler(o,c){return this.registerDcsHandler(o,c)}registerEscHandler(o,c){return this._core.registerEscHandler(o,c)}addEscHandler(o,c){return this.registerEscHandler(o,c)}registerOscHandler(o,c){return this._core.registerOscHandler(o,c)}addOscHandler(o,c){return this.registerOscHandler(o,c)}}},7090:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeApi=void 0,a.UnicodeApi=class{constructor(o){this._core=o}register(o){this._core.unicodeService.register(o)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(o){this._core.unicodeService.activeVersion=o}}},744:function(d,a,o){var c=this&&this.__decorate||function(p,g,u,f){var y,k=arguments.length,_=k<3?g:f===null?f=Object.getOwnPropertyDescriptor(g,u):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(p,g,u,f);else for(var E=p.length-1;E>=0;E--)(y=p[E])&&(_=(k<3?y(_):k>3?y(g,u,_):y(g,u))||_);return k>3&&_&&Object.defineProperty(g,u,_),_},m=this&&this.__param||function(p,g){return function(u,f){g(u,f,p)}};Object.defineProperty(a,"__esModule",{value:!0}),a.BufferService=a.MINIMUM_ROWS=a.MINIMUM_COLS=void 0;const h=o(8460),b=o(844),v=o(5295),S=o(2585);a.MINIMUM_COLS=2,a.MINIMUM_ROWS=1;let x=a.BufferService=class extends b.Disposable{get buffer(){return this.buffers.active}constructor(p){super(),this.isUserScrolling=!1,this._onResize=this.register(new h.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new h.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(p.rawOptions.cols||0,a.MINIMUM_COLS),this.rows=Math.max(p.rawOptions.rows||0,a.MINIMUM_ROWS),this.buffers=this.register(new v.BufferSet(p,this))}resize(p,g){this.cols=p,this.rows=g,this.buffers.resize(p,g),this._onResize.fire({cols:p,rows:g})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(p,g=!1){const u=this.buffer;let f;f=this._cachedBlankLine,f&&f.length===this.cols&&f.getFg(0)===p.fg&&f.getBg(0)===p.bg||(f=u.getBlankLine(p,g),this._cachedBlankLine=f),f.isWrapped=g;const y=u.ybase+u.scrollTop,k=u.ybase+u.scrollBottom;if(u.scrollTop===0){const _=u.lines.isFull;k===u.lines.length-1?_?u.lines.recycle().copyFrom(f):u.lines.push(f.clone()):u.lines.splice(k+1,0,f.clone()),_?this.isUserScrolling&&(u.ydisp=Math.max(u.ydisp-1,0)):(u.ybase++,this.isUserScrolling||u.ydisp++)}else{const _=k-y+1;u.lines.shiftElements(y+1,_-1,-1),u.lines.set(k,f.clone())}this.isUserScrolling||(u.ydisp=u.ybase),this._onScroll.fire(u.ydisp)}scrollLines(p,g,u){const f=this.buffer;if(p<0){if(f.ydisp===0)return;this.isUserScrolling=!0}else p+f.ydisp>=f.ybase&&(this.isUserScrolling=!1);const y=f.ydisp;f.ydisp=Math.max(Math.min(f.ydisp+p,f.ybase),0),y!==f.ydisp&&(g||this._onScroll.fire(f.ydisp))}};a.BufferService=x=c([m(0,S.IOptionsService)],x)},7994:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CharsetService=void 0,a.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(o){this.glevel=o,this.charset=this._charsets[o]}setgCharset(o,c){this._charsets[o]=c,this.glevel===o&&(this.charset=c)}}},1753:function(d,a,o){var c=this&&this.__decorate||function(f,y,k,_){var E,w=arguments.length,N=w<3?y:_===null?_=Object.getOwnPropertyDescriptor(y,k):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(f,y,k,_);else for(var I=f.length-1;I>=0;I--)(E=f[I])&&(N=(w<3?E(N):w>3?E(y,k,N):E(y,k))||N);return w>3&&N&&Object.defineProperty(y,k,N),N},m=this&&this.__param||function(f,y){return function(k,_){y(k,_,f)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreMouseService=void 0;const h=o(2585),b=o(8460),v=o(844),S={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:f=>f.button!==4&&f.action===1&&(f.ctrl=!1,f.alt=!1,f.shift=!1,!0)},VT200:{events:19,restrict:f=>f.action!==32},DRAG:{events:23,restrict:f=>f.action!==32||f.button!==3},ANY:{events:31,restrict:f=>!0}};function x(f,y){let k=(f.ctrl?16:0)|(f.shift?4:0)|(f.alt?8:0);return f.button===4?(k|=64,k|=f.action):(k|=3&f.button,4&f.button&&(k|=64),8&f.button&&(k|=128),f.action===32?k|=32:f.action!==0||y||(k|=3)),k}const p=String.fromCharCode,g={DEFAULT:f=>{const y=[x(f,!1)+32,f.col+32,f.row+32];return y[0]>255||y[1]>255||y[2]>255?"":`\x1B[M${p(y[0])}${p(y[1])}${p(y[2])}`},SGR:f=>{const y=f.action===0&&f.button!==4?"m":"M";return`\x1B[<${x(f,!0)};${f.col};${f.row}${y}`},SGR_PIXELS:f=>{const y=f.action===0&&f.button!==4?"m":"M";return`\x1B[<${x(f,!0)};${f.x};${f.y}${y}`}};let u=a.CoreMouseService=class extends v.Disposable{constructor(f,y){super(),this._bufferService=f,this._coreService=y,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new b.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const k of Object.keys(S))this.addProtocol(k,S[k]);for(const k of Object.keys(g))this.addEncoding(k,g[k]);this.reset()}addProtocol(f,y){this._protocols[f]=y}addEncoding(f,y){this._encodings[f]=y}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(f){if(!this._protocols[f])throw new Error(`unknown protocol "${f}"`);this._activeProtocol=f,this._onProtocolChange.fire(this._protocols[f].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(f){if(!this._encodings[f])throw new Error(`unknown encoding "${f}"`);this._activeEncoding=f}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(f){if(f.col<0||f.col>=this._bufferService.cols||f.row<0||f.row>=this._bufferService.rows||f.button===4&&f.action===32||f.button===3&&f.action!==32||f.button!==4&&(f.action===2||f.action===3)||(f.col++,f.row++,f.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,f,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(f))return!1;const y=this._encodings[this._activeEncoding](f);return y&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(y):this._coreService.triggerDataEvent(y,!0)),this._lastEvent=f,!0}explainEvents(f){return{down:!!(1&f),up:!!(2&f),drag:!!(4&f),move:!!(8&f),wheel:!!(16&f)}}_equalEvents(f,y,k){if(k){if(f.x!==y.x||f.y!==y.y)return!1}else if(f.col!==y.col||f.row!==y.row)return!1;return f.button===y.button&&f.action===y.action&&f.ctrl===y.ctrl&&f.alt===y.alt&&f.shift===y.shift}};a.CoreMouseService=u=c([m(0,h.IBufferService),m(1,h.ICoreService)],u)},6975:function(d,a,o){var c=this&&this.__decorate||function(u,f,y,k){var _,E=arguments.length,w=E<3?f:k===null?k=Object.getOwnPropertyDescriptor(f,y):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(u,f,y,k);else for(var N=u.length-1;N>=0;N--)(_=u[N])&&(w=(E<3?_(w):E>3?_(f,y,w):_(f,y))||w);return E>3&&w&&Object.defineProperty(f,y,w),w},m=this&&this.__param||function(u,f){return function(y,k){f(y,k,u)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreService=void 0;const h=o(1439),b=o(8460),v=o(844),S=o(2585),x=Object.freeze({insertMode:!1}),p=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let g=a.CoreService=class extends v.Disposable{constructor(u,f,y){super(),this._bufferService=u,this._logService=f,this._optionsService=y,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new b.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new b.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new b.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new b.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,h.clone)(x),this.decPrivateModes=(0,h.clone)(p)}reset(){this.modes=(0,h.clone)(x),this.decPrivateModes=(0,h.clone)(p)}triggerDataEvent(u,f=!1){if(this._optionsService.rawOptions.disableStdin)return;const y=this._bufferService.buffer;f&&this._optionsService.rawOptions.scrollOnUserInput&&y.ybase!==y.ydisp&&this._onRequestScrollToBottom.fire(),f&&this._onUserInput.fire(),this._logService.debug(`sending data "${u}"`,(()=>u.split("").map((k=>k.charCodeAt(0))))),this._onData.fire(u)}triggerBinaryEvent(u){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${u}"`,(()=>u.split("").map((f=>f.charCodeAt(0))))),this._onBinary.fire(u))}};a.CoreService=g=c([m(0,S.IBufferService),m(1,S.ILogService),m(2,S.IOptionsService)],g)},9074:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DecorationService=void 0;const c=o(8055),m=o(8460),h=o(844),b=o(6106);let v=0,S=0;class x extends h.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new b.SortedList((u=>u==null?void 0:u.marker.line)),this._onDecorationRegistered=this.register(new m.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new m.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,h.toDisposable)((()=>this.reset())))}registerDecoration(u){if(u.marker.isDisposed)return;const f=new p(u);if(f){const y=f.marker.onDispose((()=>f.dispose()));f.onDispose((()=>{f&&(this._decorations.delete(f)&&this._onDecorationRemoved.fire(f),y.dispose())})),this._decorations.insert(f),this._onDecorationRegistered.fire(f)}return f}reset(){for(const u of this._decorations.values())u.dispose();this._decorations.clear()}*getDecorationsAtCell(u,f,y){let k=0,_=0;for(const E of this._decorations.getKeyIterator(f))k=E.options.x??0,_=k+(E.options.width??1),u>=k&&u<_&&(!y||(E.options.layer??"bottom")===y)&&(yield E)}forEachDecorationAtCell(u,f,y,k){this._decorations.forEachByKey(f,(_=>{v=_.options.x??0,S=v+(_.options.width??1),u>=v&&u<S&&(!y||(_.options.layer??"bottom")===y)&&k(_)}))}}a.DecorationService=x;class p extends h.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=c.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=c.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(u){super(),this.options=u,this.onRenderEmitter=this.register(new m.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new m.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=u.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.InstantiationService=a.ServiceCollection=void 0;const c=o(2585),m=o(8343);class h{constructor(...v){this._entries=new Map;for(const[S,x]of v)this.set(S,x)}set(v,S){const x=this._entries.get(v);return this._entries.set(v,S),x}forEach(v){for(const[S,x]of this._entries.entries())v(S,x)}has(v){return this._entries.has(v)}get(v){return this._entries.get(v)}}a.ServiceCollection=h,a.InstantiationService=class{constructor(){this._services=new h,this._services.set(c.IInstantiationService,this)}setService(b,v){this._services.set(b,v)}getService(b){return this._services.get(b)}createInstance(b,...v){const S=(0,m.getServiceDependencies)(b).sort(((g,u)=>g.index-u.index)),x=[];for(const g of S){const u=this._services.get(g.id);if(!u)throw new Error(`[createInstance] ${b.name} depends on UNKNOWN service ${g.id}.`);x.push(u)}const p=S.length>0?S[0].index:v.length;if(v.length!==p)throw new Error(`[createInstance] First service dependency of ${b.name} at position ${p+1} conflicts with ${v.length} static arguments`);return new b(...v,...x)}}},7866:function(d,a,o){var c=this&&this.__decorate||function(p,g,u,f){var y,k=arguments.length,_=k<3?g:f===null?f=Object.getOwnPropertyDescriptor(g,u):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(p,g,u,f);else for(var E=p.length-1;E>=0;E--)(y=p[E])&&(_=(k<3?y(_):k>3?y(g,u,_):y(g,u))||_);return k>3&&_&&Object.defineProperty(g,u,_),_},m=this&&this.__param||function(p,g){return function(u,f){g(u,f,p)}};Object.defineProperty(a,"__esModule",{value:!0}),a.traceCall=a.setTraceLogger=a.LogService=void 0;const h=o(844),b=o(2585),v={trace:b.LogLevelEnum.TRACE,debug:b.LogLevelEnum.DEBUG,info:b.LogLevelEnum.INFO,warn:b.LogLevelEnum.WARN,error:b.LogLevelEnum.ERROR,off:b.LogLevelEnum.OFF};let S,x=a.LogService=class extends h.Disposable{get logLevel(){return this._logLevel}constructor(p){super(),this._optionsService=p,this._logLevel=b.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),S=this}_updateLogLevel(){this._logLevel=v[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(p){for(let g=0;g<p.length;g++)typeof p[g]=="function"&&(p[g]=p[g]())}_log(p,g,u){this._evalLazyOptionalParams(u),p.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+g,...u)}trace(p,...g){var u;this._logLevel<=b.LogLevelEnum.TRACE&&this._log(((u=this._optionsService.options.logger)==null?void 0:u.trace.bind(this._optionsService.options.logger))??console.log,p,g)}debug(p,...g){var u;this._logLevel<=b.LogLevelEnum.DEBUG&&this._log(((u=this._optionsService.options.logger)==null?void 0:u.debug.bind(this._optionsService.options.logger))??console.log,p,g)}info(p,...g){var u;this._logLevel<=b.LogLevelEnum.INFO&&this._log(((u=this._optionsService.options.logger)==null?void 0:u.info.bind(this._optionsService.options.logger))??console.info,p,g)}warn(p,...g){var u;this._logLevel<=b.LogLevelEnum.WARN&&this._log(((u=this._optionsService.options.logger)==null?void 0:u.warn.bind(this._optionsService.options.logger))??console.warn,p,g)}error(p,...g){var u;this._logLevel<=b.LogLevelEnum.ERROR&&this._log(((u=this._optionsService.options.logger)==null?void 0:u.error.bind(this._optionsService.options.logger))??console.error,p,g)}};a.LogService=x=c([m(0,b.IOptionsService)],x),a.setTraceLogger=function(p){S=p},a.traceCall=function(p,g,u){if(typeof u.value!="function")throw new Error("not supported");const f=u.value;u.value=function(...y){if(S.logLevel!==b.LogLevelEnum.TRACE)return f.apply(this,y);S.trace(`GlyphRenderer#${f.name}(${y.map((_=>JSON.stringify(_))).join(", ")})`);const k=f.apply(this,y);return S.trace(`GlyphRenderer#${f.name} return`,k),k}}},7302:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OptionsService=a.DEFAULT_OPTIONS=void 0;const c=o(8460),m=o(844),h=o(6114);a.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:h.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const b=["normal","bold","100","200","300","400","500","600","700","800","900"];class v extends m.Disposable{constructor(x){super(),this._onOptionChange=this.register(new c.EventEmitter),this.onOptionChange=this._onOptionChange.event;const p={...a.DEFAULT_OPTIONS};for(const g in x)if(g in p)try{const u=x[g];p[g]=this._sanitizeAndValidateOption(g,u)}catch(u){console.error(u)}this.rawOptions=p,this.options={...p},this._setupOptions(),this.register((0,m.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(x,p){return this.onOptionChange((g=>{g===x&&p(this.rawOptions[x])}))}onMultipleOptionChange(x,p){return this.onOptionChange((g=>{x.indexOf(g)!==-1&&p()}))}_setupOptions(){const x=g=>{if(!(g in a.DEFAULT_OPTIONS))throw new Error(`No option with key "${g}"`);return this.rawOptions[g]},p=(g,u)=>{if(!(g in a.DEFAULT_OPTIONS))throw new Error(`No option with key "${g}"`);u=this._sanitizeAndValidateOption(g,u),this.rawOptions[g]!==u&&(this.rawOptions[g]=u,this._onOptionChange.fire(g))};for(const g in this.rawOptions){const u={get:x.bind(this,g),set:p.bind(this,g)};Object.defineProperty(this.options,g,u)}}_sanitizeAndValidateOption(x,p){switch(x){case"cursorStyle":if(p||(p=a.DEFAULT_OPTIONS[x]),!(function(g){return g==="block"||g==="underline"||g==="bar"})(p))throw new Error(`"${p}" is not a valid value for ${x}`);break;case"wordSeparator":p||(p=a.DEFAULT_OPTIONS[x]);break;case"fontWeight":case"fontWeightBold":if(typeof p=="number"&&1<=p&&p<=1e3)break;p=b.includes(p)?p:a.DEFAULT_OPTIONS[x];break;case"cursorWidth":p=Math.floor(p);case"lineHeight":case"tabStopWidth":if(p<1)throw new Error(`${x} cannot be less than 1, value: ${p}`);break;case"minimumContrastRatio":p=Math.max(1,Math.min(21,Math.round(10*p)/10));break;case"scrollback":if((p=Math.min(p,4294967295))<0)throw new Error(`${x} cannot be less than 0, value: ${p}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(p<=0)throw new Error(`${x} cannot be less than or equal to 0, value: ${p}`);break;case"rows":case"cols":if(!p&&p!==0)throw new Error(`${x} must be numeric, value: ${p}`);break;case"windowsPty":p=p??{}}return p}}a.OptionsService=v},2660:function(d,a,o){var c=this&&this.__decorate||function(v,S,x,p){var g,u=arguments.length,f=u<3?S:p===null?p=Object.getOwnPropertyDescriptor(S,x):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(v,S,x,p);else for(var y=v.length-1;y>=0;y--)(g=v[y])&&(f=(u<3?g(f):u>3?g(S,x,f):g(S,x))||f);return u>3&&f&&Object.defineProperty(S,x,f),f},m=this&&this.__param||function(v,S){return function(x,p){S(x,p,v)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OscLinkService=void 0;const h=o(2585);let b=a.OscLinkService=class{constructor(v){this._bufferService=v,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(v){const S=this._bufferService.buffer;if(v.id===void 0){const y=S.addMarker(S.ybase+S.y),k={data:v,id:this._nextId++,lines:[y]};return y.onDispose((()=>this._removeMarkerFromLink(k,y))),this._dataByLinkId.set(k.id,k),k.id}const x=v,p=this._getEntryIdKey(x),g=this._entriesWithId.get(p);if(g)return this.addLineToLink(g.id,S.ybase+S.y),g.id;const u=S.addMarker(S.ybase+S.y),f={id:this._nextId++,key:this._getEntryIdKey(x),data:x,lines:[u]};return u.onDispose((()=>this._removeMarkerFromLink(f,u))),this._entriesWithId.set(f.key,f),this._dataByLinkId.set(f.id,f),f.id}addLineToLink(v,S){const x=this._dataByLinkId.get(v);if(x&&x.lines.every((p=>p.line!==S))){const p=this._bufferService.buffer.addMarker(S);x.lines.push(p),p.onDispose((()=>this._removeMarkerFromLink(x,p)))}}getLinkData(v){var S;return(S=this._dataByLinkId.get(v))==null?void 0:S.data}_getEntryIdKey(v){return`${v.id};;${v.uri}`}_removeMarkerFromLink(v,S){const x=v.lines.indexOf(S);x!==-1&&(v.lines.splice(x,1),v.lines.length===0&&(v.data.id!==void 0&&this._entriesWithId.delete(v.key),this._dataByLinkId.delete(v.id)))}};a.OscLinkService=b=c([m(0,h.IBufferService)],b)},8343:(d,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createDecorator=a.getServiceDependencies=a.serviceRegistry=void 0;const o="di$target",c="di$dependencies";a.serviceRegistry=new Map,a.getServiceDependencies=function(m){return m[c]||[]},a.createDecorator=function(m){if(a.serviceRegistry.has(m))return a.serviceRegistry.get(m);const h=function(b,v,S){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(x,p,g){p[o]===p?p[c].push({id:x,index:g}):(p[c]=[{id:x,index:g}],p[o]=p)})(h,b,S)};return h.toString=()=>m,a.serviceRegistry.set(m,h),h}},2585:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.IDecorationService=a.IUnicodeService=a.IOscLinkService=a.IOptionsService=a.ILogService=a.LogLevelEnum=a.IInstantiationService=a.ICharsetService=a.ICoreService=a.ICoreMouseService=a.IBufferService=void 0;const c=o(8343);var m;a.IBufferService=(0,c.createDecorator)("BufferService"),a.ICoreMouseService=(0,c.createDecorator)("CoreMouseService"),a.ICoreService=(0,c.createDecorator)("CoreService"),a.ICharsetService=(0,c.createDecorator)("CharsetService"),a.IInstantiationService=(0,c.createDecorator)("InstantiationService"),(function(h){h[h.TRACE=0]="TRACE",h[h.DEBUG=1]="DEBUG",h[h.INFO=2]="INFO",h[h.WARN=3]="WARN",h[h.ERROR=4]="ERROR",h[h.OFF=5]="OFF"})(m||(a.LogLevelEnum=m={})),a.ILogService=(0,c.createDecorator)("LogService"),a.IOptionsService=(0,c.createDecorator)("OptionsService"),a.IOscLinkService=(0,c.createDecorator)("OscLinkService"),a.IUnicodeService=(0,c.createDecorator)("UnicodeService"),a.IDecorationService=(0,c.createDecorator)("DecorationService")},1480:(d,a,o)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeService=void 0;const c=o(8460),m=o(225);class h{static extractShouldJoin(v){return(1&v)!=0}static extractWidth(v){return v>>1&3}static extractCharKind(v){return v>>3}static createPropertyValue(v,S,x=!1){return(16777215&v)<<3|(3&S)<<1|(x?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new c.EventEmitter,this.onChange=this._onChange.event;const v=new m.UnicodeV6;this.register(v),this._active=v.version,this._activeProvider=v}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(v){if(!this._providers[v])throw new Error(`unknown Unicode version "${v}"`);this._active=v,this._activeProvider=this._providers[v],this._onChange.fire(v)}register(v){this._providers[v.version]=v}wcwidth(v){return this._activeProvider.wcwidth(v)}getStringCellWidth(v){let S=0,x=0;const p=v.length;for(let g=0;g<p;++g){let u=v.charCodeAt(g);if(55296<=u&&u<=56319){if(++g>=p)return S+this.wcwidth(u);const k=v.charCodeAt(g);56320<=k&&k<=57343?u=1024*(u-55296)+k-56320+65536:S+=this.wcwidth(k)}const f=this.charProperties(u,x);let y=h.extractWidth(f);h.extractShouldJoin(f)&&(y-=h.extractWidth(x)),S+=y,x=f}return S}charProperties(v,S){return this._activeProvider.charProperties(v,S)}}a.UnicodeService=h}},n={};function s(d){var a=n[d];if(a!==void 0)return a.exports;var o=n[d]={exports:{}};return r[d].call(o.exports,o,o.exports,s),o.exports}var l={};return(()=>{var d=l;Object.defineProperty(d,"__esModule",{value:!0}),d.Terminal=void 0;const a=s(9042),o=s(3236),c=s(844),m=s(5741),h=s(8285),b=s(7975),v=s(7090),S=["cols","rows"];class x extends c.Disposable{constructor(g){super(),this._core=this.register(new o.Terminal(g)),this._addonManager=this.register(new m.AddonManager),this._publicOptions={...this._core.options};const u=y=>this._core.options[y],f=(y,k)=>{this._checkReadonlyOptions(y),this._core.options[y]=k};for(const y in this._core.options){const k={get:u.bind(this,y),set:f.bind(this,y)};Object.defineProperty(this._publicOptions,y,k)}}_checkReadonlyOptions(g){if(S.includes(g))throw new Error(`Option "${g}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new b.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new v.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new h.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const g=this._core.coreService.decPrivateModes;let u="none";switch(this._core.coreMouseService.activeProtocol){case"X10":u="x10";break;case"VT200":u="vt200";break;case"DRAG":u="drag";break;case"ANY":u="any"}return{applicationCursorKeysMode:g.applicationCursorKeys,applicationKeypadMode:g.applicationKeypad,bracketedPasteMode:g.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:u,originMode:g.origin,reverseWraparoundMode:g.reverseWraparound,sendFocusMode:g.sendFocus,wraparoundMode:g.wraparound}}get options(){return this._publicOptions}set options(g){for(const u in g)this._publicOptions[u]=g[u]}blur(){this._core.blur()}focus(){this._core.focus()}input(g,u=!0){this._core.input(g,u)}resize(g,u){this._verifyIntegers(g,u),this._core.resize(g,u)}open(g){this._core.open(g)}attachCustomKeyEventHandler(g){this._core.attachCustomKeyEventHandler(g)}attachCustomWheelEventHandler(g){this._core.attachCustomWheelEventHandler(g)}registerLinkProvider(g){return this._core.registerLinkProvider(g)}registerCharacterJoiner(g){return this._checkProposedApi(),this._core.registerCharacterJoiner(g)}deregisterCharacterJoiner(g){this._checkProposedApi(),this._core.deregisterCharacterJoiner(g)}registerMarker(g=0){return this._verifyIntegers(g),this._core.registerMarker(g)}registerDecoration(g){return this._checkProposedApi(),this._verifyPositiveIntegers(g.x??0,g.width??0,g.height??0),this._core.registerDecoration(g)}hasSelection(){return this._core.hasSelection()}select(g,u,f){this._verifyIntegers(g,u,f),this._core.select(g,u,f)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(g,u){this._verifyIntegers(g,u),this._core.selectLines(g,u)}dispose(){super.dispose()}scrollLines(g){this._verifyIntegers(g),this._core.scrollLines(g)}scrollPages(g){this._verifyIntegers(g),this._core.scrollPages(g)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(g){this._verifyIntegers(g),this._core.scrollToLine(g)}clear(){this._core.clear()}write(g,u){this._core.write(g,u)}writeln(g,u){this._core.write(g),this._core.write(`\r
|
|
573
|
+
`,u)}paste(g){this._core.paste(g)}refresh(g,u){this._verifyIntegers(g,u),this._core.refresh(g,u)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(g){this._addonManager.loadAddon(this,g)}static get strings(){return a}_verifyIntegers(...g){for(const u of g)if(u===1/0||isNaN(u)||u%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...g){for(const u of g)if(u&&(u===1/0||isNaN(u)||u%1!=0||u<0))throw new Error("This API only accepts positive integers")}}d.Terminal=x})(),l})()))})(xn)),xn.exports}var xv=vv();const Sn={background:"#ffffff",foreground:"#1e1e1e",cursor:"#1e1e1e",cursorAccent:"#ffffff",selectionBackground:"#add6ff80",black:"#000000",red:"#cd3131",green:"#00bc00",yellow:"#949800",blue:"#0451a5",magenta:"#bc05bc",cyan:"#0598bc",white:"#555555",brightBlack:"#666666",brightRed:"#cd3131",brightGreen:"#14ce14",brightYellow:"#b5ba00",brightBlue:"#0451a5",brightMagenta:"#bc05bc",brightCyan:"#0598bc",brightWhite:"#a5a5a5"},kn={background:"#121212",foreground:"#cccccc",cursor:"#cccccc",cursorAccent:"#121212",selectionBackground:"#264f7880",black:"#000000",red:"#f44747",green:"#6a9955",yellow:"#d7ba7d",blue:"#569cd6",magenta:"#c586c0",cyan:"#4ec9b0",white:"#d4d4d4",brightBlack:"#808080",brightRed:"#f44747",brightGreen:"#6a9955",brightYellow:"#d7ba7d",brightBlue:"#569cd6",brightMagenta:"#c586c0",brightCyan:"#4ec9b0",brightWhite:"#e5e5e5"},Sv=2e3;function yr(){const e=Ut(),t={"Content-Type":"application/json"};return e&&(t.Authorization=`Bearer ${e}`),t}function kv(e){const t=Ut(),r=t?`?password=${encodeURIComponent(t)}`:"";return`/api/v1/pty/${e}/output${r}`}async function wv(e,t){try{await fetch(`/api/v1/pty/${e}/input/send`,{method:"POST",headers:yr(),body:JSON.stringify({data:t})})}catch{}}async function Ld(e,t,r){try{await fetch(`/api/v1/pty/${e}/resize`,{method:"POST",headers:yr(),body:JSON.stringify({cols:t,rows:r})})}catch{}}async function Od(e){try{return(await fetch(`/api/v1/pty/${e}`,{headers:yr()})).ok}catch{return!1}}async function $d(e,t){const r=await fetch("/api/v1/pty",{method:"POST",headers:yr(),body:JSON.stringify({cols:e,rows:t})});if(!r.ok){const s=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(s.error||`HTTP ${r.status}`)}const n=await r.json();return n.data??n}async function Ev(){try{const e=await fetch("/api/v1/pty",{headers:yr()});if(!e.ok)return[];const t=await e.json();return(t.data??t).sessions||[]}catch{return[]}}function Cv(e){const t=we.getState().panes,r=new Set;for(const[n,s]of Object.entries(t))n!==e&&s.ptySessionId&&r.add(s.ptySessionId);return r}function Tv(e,t){const r=[];let n="",s="",l=t;for(;l<e.length;){const d=e.indexOf(`
|
|
574
|
+
`,l);if(d===-1)break;const a=e.substring(l,d);l=d+1,a===""?(s&&r.push({event:n||"message",data:s}),n="",s=""):a.startsWith("event: ")?n=a.substring(7):a.startsWith("data: ")&&(s=a.substring(6))}return{events:r,newIndex:l}}function Nv({paneId:e}){const{t}=ie(),{resolved:r}=tt(),n=we(F=>F.panes[e]),s=we(F=>F.activePaneId),l=we(F=>F.layout),d=we(F=>F.mainView),a=we(F=>F.setActivePaneId),o=we(F=>F.closePane),c=we(F=>F.setPaneSession),m=we(F=>F.setPaneStatus),h=we(F=>F.setPaneError),b=we(F=>F.setTerminalTitle),v=s===e,S=Ft(l),x=C.useRef(null),p=C.useRef(null),g=C.useRef(null),u=C.useRef(null),f=C.useRef(!0),y=C.useRef(!1),k=C.useRef(!1),_=C.useRef(null),E=C.useRef(null),w=C.useCallback(()=>{const F=u.current;F&&(F.abort(),u.current=null)},[]),N=C.useCallback((F,z)=>{w(),m(e,"connecting"),E.current=z;const P=new XMLHttpRequest;u.current=P;let U=0;P.open("GET",kv(z));const T=Ut();T&&P.setRequestHeader("Authorization",`Bearer ${T}`),P.onreadystatechange=()=>{if(P.readyState===XMLHttpRequest.HEADERS_RECEIVED)if(P.status===200){if(!f.current)return;m(e,"connected"),h(e,null);const q=g.current;if(q)try{q.fit(),Ld(z,F.cols,F.rows)}catch{}F.focus()}else{if(!f.current)return;m(e,"error"),h(e,`HTTP ${P.status}`)}},P.onprogress=()=>{if(!f.current)return;const{events:q,newIndex:W}=Tv(P.responseText,U);U=W;let Y="";for(const V of q)try{const H=JSON.parse(V.data);switch(V.event){case"output":Y+=H.data;break;case"exit":Y&&(F.write(Y),Y=""),c(e,null),m(e,"disconnected"),k.current=!1,E.current=null,F.write(`\r
|
|
575
|
+
${t("terminal.processExited")}\r
|
|
576
|
+
`);break;case"keepalive":break}}catch{}Y&&F.write(Y)},P.onerror=()=>{f.current&&(m(e,"error"),h(e,t("terminal.connectionLost")))},P.onloadend=()=>{var W;if(!f.current)return;((W=we.getState().panes[e])==null?void 0:W.ptyStatus)==="connected"&&(m(e,"error"),h(e,t("terminal.connectionLost")))},P.send();const L=F.onData(q=>{E.current&&wv(E.current,q)}),$=F.onResize(({cols:q,rows:W})=>{E.current&&Ld(E.current,q,W)});k.current=!0;const R=()=>{L.dispose(),$.dispose(),w(),E.current=null};return _.current=R,R},[w,e,c,m,h]),I=C.useCallback(()=>{const F=x.current;if(!F||y.current)return;const z=r==="dark"?kn:Sn;for(;F.firstChild;)F.removeChild(F.firstChild);const P=new xv.Terminal({cursorBlink:!0,fontSize:14,fontFamily:'Menlo, Monaco, "Courier New", monospace',theme:z,allowProposedApi:!0,scrollback:1e4}),U=new _v.FitAddon;P.loadAddon(U),P.open(F);const T=F.querySelector(".xterm-helper-textarea");T&&(T.setAttribute("autocomplete","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.setAttribute("unselectable","on")),p.current=P,g.current=U,y.current=!0;const L=P.onTitleChange(W=>{f.current&&b(W||null)});let $=null;const R=()=>{$&&clearTimeout($),$=setTimeout(()=>{if(f.current)try{U.fit()}catch{}},50)},q=new ResizeObserver(R);return q.observe(F),window.addEventListener("resize",R),()=>{L.dispose(),q.disconnect(),window.removeEventListener("resize",R),$&&clearTimeout($)}},[]),A=C.useCallback(async()=>{var q;const F=p.current,z=g.current;if(!F||!z||!f.current||k.current)return;try{z.fit()}catch{}const P=F.cols||80,U=F.rows||24,T=(q=we.getState().panes[e])==null?void 0:q.ptySessionId;if(T&&await Od(T)&&f.current){N(F,T);return}if(!f.current)return;const L=Cv(e),R=(await Ev()).find(W=>!W.hasClient&&!L.has(W.id));if(R&&f.current){c(e,R.id),N(F,R.id);return}if(f.current){m(e,"connecting");try{const{sessionId:W}=await $d(P,U);if(!f.current)return;c(e,W),N(F,W)}catch(W){if(!f.current)return;m(e,"error"),h(e,W.message||t("terminal.createSessionFailed"))}}},[N,e,c,m,h]),M=C.useRef(null);C.useEffect(()=>{f.current=!0;const F=x.current;if(!F)return;const z=()=>{if(!f.current)return;const{clientWidth:U,clientHeight:T}=F;if(!(U===0||T===0)&&(y.current||(M.current=I()||null),p.current&&g.current)){try{g.current.fit()}catch{}k.current||A()}};if(F.clientWidth>0&&F.clientHeight>0){const U=requestAnimationFrame(z);return()=>cancelAnimationFrame(U)}const P=new ResizeObserver(U=>{for(const T of U){const{width:L,height:$}=T.contentRect;if(L>0&&$>0){P.disconnect(),z();break}}});return P.observe(F),()=>P.disconnect()},[I,A]),C.useEffect(()=>()=>{var F,z,P;f.current=!1,(F=_.current)==null||F.call(_),(z=M.current)==null||z.call(M),(P=p.current)==null||P.dispose(),p.current=null,g.current=null,y.current=!1,k.current=!1},[]),C.useEffect(()=>{const F=p.current;if(F){const z=r==="dark"?kn:Sn;F.options.theme=z;try{F.refresh(0,F.rows-1)}catch{}}},[r,d]);const O=C.useCallback(async()=>{var z,P;if(w(),k.current=!1,m(e,"connecting"),h(e,null),await new Promise(U=>setTimeout(U,Sv)),!f.current)return;const F=p.current;if(F)try{F.clear();try{(z=g.current)==null||z.fit()}catch{}const U=F.cols||80,T=F.rows||24,L=(P=we.getState().panes[e])==null?void 0:P.ptySessionId;if(L&&await Od(L)&&f.current){N(F,L);return}if(!f.current)return;const{sessionId:$}=await $d(U,T);if(!f.current)return;c(e,$),N(F,$)}catch(U){if(!f.current)return;m(e,"error"),h(e,U.message||t("terminal.reconnectFailed"))}},[w,N,e,c,m,h]),B=C.useCallback(()=>{var F;v||a(e),(F=p.current)==null||F.focus()},[v,e,a]);return n?i.jsxs("div",{className:`terminal-pane flex flex-col h-full w-full ${v&&S>1?"active":""}`,style:{backgroundColor:r==="dark"?kn.background:Sn.background},onClick:B,children:[S>1&&i.jsx("div",{className:"terminal-pane-toolbar",children:i.jsx("button",{onClick:F=>{F.stopPropagation(),o(e)},className:"w-6 h-6 flex items-center justify-center rounded bg-bg-tertiary/80 text-text-secondary hover:text-text-primary hover:bg-bg-hover transition-colors",title:t("terminal.closePane"),children:i.jsx(Ue,{size:14})})}),i.jsx("div",{ref:x,className:"flex-1 w-full",style:{overflow:"hidden",padding:"4px"}}),n.ptyStatus==="connecting"&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-bg-primary/80 z-10",children:i.jsx(Qe,{size:"small",text:t("terminal.connecting")})}),n.ptyStatus==="error"&&i.jsxs("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between px-4 py-2 bg-accent-red/10 border-t border-accent-red/30 z-10",children:[i.jsxs("div",{className:"flex items-center gap-2 text-accent-red text-xs",children:[i.jsx(Eh,{size:14}),i.jsx("span",{children:n.errorMessage||t("terminal.error")})]}),i.jsxs("button",{onClick:O,className:"flex items-center gap-1.5 px-3 py-1 rounded-md bg-bg-secondary border border-border-muted text-text-primary text-xs hover:bg-bg-hover transition-colors",children:[i.jsx(st,{size:12}),i.jsx("span",{children:t("terminal.reconnect")})]})]})]}):i.jsx("div",{})}function Jn({node:e,path:t}){const r=we(s=>s.setRatio),n=C.useCallback(s=>{r(t,s)},[r,t]);return e.type==="leaf"?i.jsx(Nv,{paneId:e.paneId}):i.jsxs(ii,{direction:e.direction,ratio:e.ratio,onRatioChange:n,children:[i.jsx(Jn,{node:e.children[0],path:[...t,0]}),i.jsx(Jn,{node:e.children[1],path:[...t,1]})]})}function Np(){const e=we(t=>t.layout);return i.jsx("div",{className:"flex-1 w-full h-full overflow-hidden",children:i.jsx(Jn,{node:e,path:[]})})}function Av({isOpen:e,onClose:t,onImageSelect:r,onFileSelect:n,onNewChat:s,onHistory:l,mainView:d}){const{t:a}=ie(),o=C.useRef(null),[c,m]=C.useState(null),[h,b]=C.useState(0),v=C.useCallback(()=>{r(),t()},[r,t]),S=C.useCallback(()=>{n(),t()},[n,t]),x=[{type:"attachment",icon:i.jsx(lu,{size:22}),label:a("input.menu.image"),action:v},{type:"attachment",icon:i.jsx(et,{size:22}),label:a("input.menu.file"),action:S},{type:"action",icon:i.jsx(ht,{size:20}),label:a("chat.newChat"),action:s},{type:"action",icon:i.jsx(ou,{size:20}),label:a("sidebar.chatHistory"),action:l},{type:"nav",view:"changes",icon:i.jsx(ti,{size:20}),label:a("sidebar.changes")},{type:"nav",view:"tasks",icon:i.jsx(cu,{size:20}),label:a("sidebar.nav.tasks")},{type:"nav",view:"terminal",icon:i.jsx(gu,{size:20}),label:a("sidebar.terminalMode")},{type:"nav",view:"plugins",icon:i.jsx(Mt,{size:20}),label:a("sidebar.nav.plugins")},{type:"nav",view:"settings",icon:i.jsx(mu,{size:20}),label:a("sidebar.preferences")}].filter(k=>!(k.type==="action"&&!k.action)),p=8,g=Math.ceil(x.length/p),u=[];for(let k=0;k<g;k++)u.push(x.slice(k*p,(k+1)*p));C.useEffect(()=>{const k=o.current;if(!k)return;const _=()=>{const E=k.clientWidth;if(E>0){const w=Math.round(k.scrollLeft/E);b(w)}};return k.addEventListener("scroll",_,{passive:!0}),()=>k.removeEventListener("scroll",_)},[]);const f=C.useCallback(k=>{const _=o.current;_&&_.scrollTo({left:k*_.clientWidth,behavior:"smooth"})},[]),y=C.useCallback(()=>{m(null)},[]);return e?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"bottom-sheet-inline",children:[i.jsx("div",{ref:o,className:"bottom-sheet-scroll",children:u.map((k,_)=>i.jsx("div",{className:"bottom-sheet-page",children:i.jsx("div",{className:"bottom-sheet-grid",children:k.map((E,w)=>i.jsxs("button",{className:E.type==="nav"&&d===E.view?"active":"",onClick:()=>{var N;E.type==="attachment"||E.type==="action"?(N=E.action)==null||N.call(E):E.type==="nav"&&E.view&&m(E.view)},children:[E.icon,i.jsx("span",{children:E.label})]},w))})},_))}),g>1&&i.jsx("div",{className:"bottom-sheet-pagination",children:Array.from({length:g}).map((k,_)=>i.jsx("button",{className:`pagination-dot ${_===h?"active":""}`,onClick:()=>f(_)},_))})]}),c&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"floating-panel-overlay",onClick:y}),i.jsxs("div",{className:"floating-panel-container",children:[i.jsx("div",{className:"floating-panel-header",children:i.jsx("button",{onClick:y,className:"floating-panel-close-btn",title:"Close",children:i.jsx(Ue,{size:24})})}),i.jsxs("div",{className:"floating-panel-content",children:[c==="changes"&&i.jsx(Iu,{}),c==="tasks"&&i.jsx(Cp,{}),c==="terminal"&&i.jsx(Np,{}),c==="plugins"&&i.jsx(yp,{}),c==="settings"&&i.jsx(vp,{})]})]})]})]}):null}const Rv=5,Ap=10*1024*1024,er=["image/jpeg","image/png","image/gif","image/webp"];let Iv=0;function Lv(e){return!er.includes(e.type)||e.size>Ap?Promise.resolve(null):new Promise(t=>{const r=new FileReader;r.onload=()=>{const n=r.result,s=n.split(",")[1]||"";t({id:`img-${++Iv}`,dataUrl:n,data:s,mimeType:e.type})},r.onerror=()=>t(null),r.readAsDataURL(e)})}const Ov=10,$v=1*1024*1024,Dv=new Set([".txt",".md",".markdown",".json",".jsonl",".yaml",".yml",".toml",".xml",".html",".htm",".css",".scss",".less",".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".go",".rs",".java",".kt",".swift",".c",".cpp",".h",".hpp",".sh",".bash",".zsh",".fish",".ps1",".bat",".cmd",".sql",".graphql",".gql",".env",".ini",".cfg",".conf",".properties",".csv",".tsv",".log",".dockerfile",".makefile",".cmake",".gitignore",".gitattributes",".editorconfig",".vue",".svelte",".astro"]);let Mv=0;function Rp(e){if(e.type.startsWith("text/")||e.type==="application/json"||e.type==="application/xml"||e.type==="application/javascript")return!0;const t=e.name.toLowerCase(),r=t.lastIndexOf(".");if(r!==-1){const s=t.slice(r);if(Dv.has(s))return!0}const n=t.split("/").pop()||t;return!!["makefile","dockerfile","cmakelists.txt","gemfile","rakefile","procfile"].includes(n)}function jv(e){return!Rp(e)||e.size>$v?Promise.resolve(null):new Promise(t=>{const r=new FileReader;r.onload=()=>{const n=r.result;t({id:`file-${++Mv}`,name:e.name,size:e.size,text:n,mimeType:e.type||"text/plain"})},r.onerror=()=>t(null),r.readAsText(e)})}function Fv(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Pv({onNavigate:e,onNewChat:t,onHistory:r,mainView:n,showBottomSheet:s=!1,setShowBottomSheet:l}){const d=C.useCallback(G=>{l&&l(typeof G=="function"?G(s):G)},[l,s]),[a,o]=C.useState(""),[c,m]=C.useState([]),[h,b]=C.useState([]),[v,S]=C.useState(0),[x,p]=C.useState(!1),[g,u]=C.useState(null),[f,y]=C.useState(0),[k,_]=C.useState([]),[E,w]=C.useState(0),[N,I]=C.useState(null),A=C.useRef(null),M=C.useRef(null),O=C.useRef(null),B=C.useRef(null),F=C.useRef(null),z=C.useRef(null),P=C.useRef(null),U=C.useRef(null),T=C.useRef(0),L=C.useRef(!1),{sessionId:$,commands:R,thinkingEnabled:q,setThinkingEnabled:W,promptSuggestion:Y,setPromptSuggestion:V,externalInput:H,setExternalInput:D}=gt(),{isAgentRunning:X,hasPendingInterruption:K,timeline:ee,addUserMessage:te,addQueuedUserMessage:oe,setSessionEnd:he,resolveInterruption:ge}=Ye(),{t:ue,tryT:se}=ie();C.useEffect(()=>{H!==null&&(o(H),D(null),V(null),requestAnimationFrame(()=>{var G;(G=A.current)==null||G.focus()}))},[H,D,V]);const Ne=C.useCallback(async G=>{const Z=Array.from(G).filter(de=>er.includes(de.type)&&de.size<=Ap);if(Z.length===0)return;S(de=>de+Z.length);const be=(await Promise.all(Z.map(Lv))).filter(de=>de!==null);S(de=>Math.max(0,de-Z.length)),be.length>0&&m(de=>{const Oe=Rv-de.length;return[...de,...be.slice(0,Oe)]})},[]),re=C.useCallback(G=>{m(Z=>Z.filter(ae=>ae.id!==G))},[]),le=C.useCallback(async G=>{const Z=Array.from(G),be=(await Promise.all(Z.map(jv))).filter(de=>de!==null);be.length!==0&&b(de=>{const Oe=Ov-de.length;return[...de,...be.slice(0,Oe)]})},[]),Se=C.useCallback(G=>{b(Z=>Z.filter(ae=>ae.id!==G))},[]),Ie=C.useCallback(G=>{var Z;G.preventDefault(),G.stopPropagation(),T.current++,(Z=G.dataTransfer)!=null&&Z.types.includes("Files")&&p(!0)},[]),xe=C.useCallback(G=>{G.preventDefault(),G.stopPropagation(),T.current--,T.current===0&&p(!1)},[]),Ve=C.useCallback(G=>{G.preventDefault(),G.stopPropagation()},[]),J=C.useCallback(G=>{var Z;if(G.preventDefault(),G.stopPropagation(),T.current=0,p(!1),(Z=G.dataTransfer)!=null&&Z.files){const ae=Array.from(G.dataTransfer.files),be=ae.filter(Oe=>er.includes(Oe.type)),de=ae.filter(Oe=>!er.includes(Oe.type)&&Rp(Oe));be.length>0&&Ne(be),de.length>0&&le(de)}},[Ne,le]),ne=C.useCallback(G=>{var ae;const Z=(ae=G.clipboardData)==null?void 0:ae.files;Z&&Z.length>0&&Array.from(Z).some(de=>er.includes(de.type))&&(G.preventDefault(),Ne(Z))},[Ne]),fe=C.useCallback(()=>{var G;(G=M.current)==null||G.click()},[]),Le=C.useCallback(()=>{var G;(G=O.current)==null||G.click()},[]),at=C.useCallback(G=>{G.target.files&&Ne(G.target.files),G.target.value=""},[Ne]),Ge=C.useCallback(G=>{G.target.files&&le(G.target.files),G.target.value=""},[le]),We=C.useMemo(()=>{const G=a.trimStart();if(!G.startsWith("/")||G.includes(" "))return[];const Z=G.substring(1).toLowerCase();return R.filter(ae=>{const be=se(`command.${ae.name}.description`)??ae.description;return ae.name.toLowerCase().includes(Z)||ae.description.toLowerCase().includes(Z)||be.toLowerCase().includes(Z)}).slice(0,8)},[a,R,se]),pe=We.length>0;C.useEffect(()=>{y(0)},[We.length]),C.useEffect(()=>{if(pe&&B.current){const G=B.current.children[f];G==null||G.scrollIntoView({block:"nearest"})}},[f,pe]);const bt=C.useMemo(()=>{if(N===null)return null;const G=a.substring(N+1),Z=G.search(/\s/),ae=Z===-1?G:G.substring(0,Z);return Z===0?null:ae},[a,N]),ot=bt!==null&&k.length>0,Yt=C.useRef(null);C.useEffect(()=>{if(bt===null){_([]);return}return Yt.current&&clearTimeout(Yt.current),Yt.current=setTimeout(async()=>{try{const G=new URLSearchParams;bt&&G.set("query",bt),G.set("limit","15");const Z=await fetch(`/api/v1/fs/search?${G.toString()}`);if(Z.ok){const ae=await Z.json();_(ae.items||[]),w(0)}else _([])}catch{_([])}},150),()=>{Yt.current&&clearTimeout(Yt.current)}},[bt]),C.useEffect(()=>{if(ot&&F.current){const G=F.current.children[E];G==null||G.scrollIntoView({block:"nearest"})}},[E,ot]);const en=C.useRef(!1),tn=C.useCallback(G=>{if(N===null)return;const Z=a.substring(0,N),ae=a.substring(N+1),be=ae.search(/\s/),de=be===-1?"":ae.substring(be),Ze=de.length===0||!/^\s/.test(de)?" ":"",_t=`${Z}@${G.path}${Ze}${de}`,Xt=Z.length+1+G.path.length+Ze.length;o(_t),_([]),I(null),en.current=!0,requestAnimationFrame(()=>{const Tt=A.current;Tt&&(Tt.focus(),Tt.setSelectionRange(Xt,Xt))})},[a,N]);C.useEffect(()=>{var Z;!(window.innerWidth<=768)&&!X&&((Z=A.current)==null||Z.focus())},[X]),C.useEffect(()=>{const G=A.current;if(G){G.style.height="auto";const Z=window.innerHeight*.2,ae=Math.min(G.scrollHeight,Z);G.style.height=`${ae}px`,G.style.overflowY=G.scrollHeight>Z?"auto":"hidden"}},[a]);const rn=C.useCallback(G=>{var Z;o(`/${G.name} `),(Z=A.current)==null||Z.focus()},[]),yt=C.useCallback(async G=>{var gc;const Z=(G??a).trim(),ae=c.length>0,be=h.length>0;if(!Z&&!(ae||be)||!$||K)return;o(""),V(null);const Oe=[...c],Ze=[...h];m([]),b([]);const _t=Oe.length>0?Oe.map(ke=>({data:ke.data,mimeType:ke.mimeType})):void 0,Xt=Ze.length>0?Ze.map(ke=>({name:ke.name,text:ke.text,mimeType:ke.mimeType})):void 0,Tt=Ze.length>0?Ze.map(ke=>({name:ke.name,size:ke.size,mimeType:ke.mimeType})):void 0;if((gc=A.current)==null||gc.blur(),X)oe(Z,_t,Tt),Te().prompt($,Z,_t,Xt).catch(ke=>{console.error("Queued prompt failed:",ke)});else{te(Z,_t,Tt);try{const ke=await Te().prompt($,Z,_t,Xt);he(ke.stopReason,ke.errorMessage)}catch(ke){console.error("Prompt failed:",ke),he("error",ke instanceof Error?ke.message:ue("input.promptFailed"))}}},[a,c,h,$,X,K,te,oe,he,V,ue]),Ip=C.useCallback(async()=>{if($)try{const G=Te(),Z=ee.filter(ae=>ae.type==="interruption"&&!ae.resolved);for(const ae of Z)if(ae.type==="interruption")try{await G.respondToInterruption($,ae.id,"deny",ae.toolCallId),ge(ae.id,"deny")}catch{}await G.cancel($)}catch(G){console.error("Cancel failed:",G)}},[$,ee,ge]),Lp=C.useCallback(()=>{L.current=!0},[]),Op=C.useCallback(()=>{L.current=!1},[]),$p=C.useCallback(G=>{G.preventDefault(),u({x:G.clientX,y:G.clientY})},[]),Dp=C.useCallback(()=>{const G=A.current;if(!G)return;const Z=G.selectionStart??a.length,ae=G.selectionEnd??Z,be=a.slice(0,Z)+`
|
|
577
|
+
`+a.slice(ae);o(be),u(null),requestAnimationFrame(()=>{G.selectionStart=G.selectionEnd=Z+1,G.focus()})},[a]),Mp=C.useCallback(()=>{u(null),yt()},[yt]);C.useEffect(()=>{if(!g)return;const G=()=>u(null),Z=()=>u(null);return document.addEventListener("mousedown",G),document.addEventListener("scroll",Z,!0),()=>{document.removeEventListener("mousedown",G),document.removeEventListener("scroll",Z,!0)}},[g]),C.useEffect(()=>{if(!pe)return;const G=Z=>{B.current&&!B.current.contains(Z.target)&&o("")};return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[pe]),C.useEffect(()=>{if(!s)return;const G=Z=>{const ae=Z.target;P.current&&!P.current.contains(ae)&&U.current&&!U.current.contains(ae)&&d(!1)};return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[s,d]),C.useEffect(()=>{if(!ot)return;const G=Z=>{F.current&&!F.current.contains(Z.target)&&(I(null),_([]))};return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[ot]);const jp=C.useCallback(G=>{if(pe){if(G.key==="ArrowUp"){G.preventDefault(),y(Z=>Z>0?Z-1:We.length-1);return}if(G.key==="ArrowDown"){G.preventDefault(),y(Z=>Z<We.length-1?Z+1:0);return}if(G.key==="Tab"||G.key==="Enter"&&!G.shiftKey&&!L.current&&!G.nativeEvent.isComposing){G.preventDefault(),rn(We[f]);return}if(G.key==="Escape"){G.preventDefault(),o("");return}}if(ot){if(G.key==="ArrowUp"){G.preventDefault(),w(Z=>Z>0?Z-1:k.length-1);return}if(G.key==="ArrowDown"){G.preventDefault(),w(Z=>Z<k.length-1?Z+1:0);return}if(G.key==="Tab"||G.key==="Enter"&&!G.shiftKey&&!L.current&&!G.nativeEvent.isComposing){G.preventDefault(),tn(k[E]);return}if(G.key==="Escape"){G.preventDefault(),I(null),_([]);return}}if(G.key==="Tab"&&!pe&&!ot&&Y&&!a){G.preventDefault(),o(Y),V(null);return}if(G.key==="Enter"&&!G.shiftKey&&!L.current&&!G.nativeEvent.isComposing){if(G.preventDefault(),!a&&Y&&!X&&!K){yt(Y);return}yt()}},[yt,pe,We,f,rn,ot,k,E,tn,Y,a,V,X,K]),Fp=C.useCallback(async()=>{if(!$)return;const G=!q;W(G);try{await Te().setConfigOption($,"thought_level",G?"enabled":"disabled")}catch(Z){W(!G),console.error("Toggle thinking failed:",Z)}},[$,q,W]),mc=!K&&(a.trim().length>0||c.length>0||h.length>0||!!Y&&!a&&!X),Pp=c.length>0||h.length>0||v>0;return i.jsx("div",{className:"px-0 pb-0 pt-0 md:px-4 md:pb-6 md:pt-2",children:i.jsxs("div",{className:"max-w-3xl mx-auto",children:[e&&n!==void 0&&i.jsx("div",{ref:P,children:i.jsx(Av,{isOpen:s,onClose:()=>d(!1),onImageSelect:fe,onFileSelect:Le,onNewChat:t,onHistory:r,mainView:n,onNavigate:e})}),i.jsxs("div",{className:`relative bg-bg-secondary rounded-none md:rounded-2xl shadow-sm transition-all focus-within:shadow-md border-t md:border ${x?"border-accent-brand border-dashed bg-accent-brand/5":"border-border-default"}`,onDragEnter:Ie,onDragLeave:xe,onDragOver:Ve,onDrop:J,children:[x&&i.jsx("div",{className:"absolute inset-0 z-20 rounded-2xl flex items-center justify-center bg-accent-brand/5 pointer-events-none",children:i.jsx("span",{className:"text-accent-brand text-[14px] font-medium",children:ue("input.dropHint")})}),pe&&i.jsx("div",{ref:B,className:"absolute bottom-full left-3 right-3 mb-2 bg-bg-secondary rounded-xl border border-border-default shadow-lg max-h-[280px] overflow-y-auto z-10 py-1",children:We.map((G,Z)=>i.jsxs("button",{className:`w-full text-left px-3 py-2 flex items-baseline gap-3 transition-colors ${Z===f?"bg-bg-primary text-text-primary":"text-text-primary hover:bg-bg-primary"}`,onMouseEnter:()=>y(Z),onMouseDown:ae=>{ae.preventDefault(),rn(G)},children:[i.jsxs("span",{className:"font-mono text-[13px] font-medium shrink-0",children:["/",G.name]}),G.type==="skill"&&i.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-accent-brand/15 text-accent-brand font-medium shrink-0",children:"Skill"}),i.jsx("span",{className:"text-text-tertiary text-[12px] truncate",children:se(`command.${G.name}.description`)??G.description})]},G.name))}),ot&&i.jsx("div",{ref:F,className:"absolute bottom-full left-3 right-3 mb-2 bg-bg-secondary rounded-xl border border-border-default shadow-lg max-h-[280px] overflow-y-auto z-10 py-1",children:k.map((G,Z)=>i.jsxs("button",{className:`w-full text-left px-3 py-2 flex items-center gap-3 transition-colors ${Z===E?"bg-bg-primary text-text-primary":"text-text-primary hover:bg-bg-primary"}`,onMouseEnter:()=>w(Z),onMouseDown:ae=>{ae.preventDefault(),tn(G)},children:[G.type==="directory"?i.jsx(ei,{size:14,className:"shrink-0 text-accent-brand"}):i.jsx(et,{size:14,className:"shrink-0 text-text-tertiary"}),i.jsx("span",{className:"font-mono text-[13px] truncate",children:G.name}),i.jsx("span",{className:"text-text-tertiary text-[11px] truncate ml-auto",children:G.path})]},G.path))}),Pp&&i.jsxs("div",{className:"px-4 pt-3 pb-1 flex flex-wrap gap-2",children:[c.map(G=>i.jsxs("div",{className:"relative group",children:[i.jsx("img",{src:G.dataUrl,alt:"",className:"w-16 h-16 rounded-lg object-cover border border-border-default"}),i.jsx("button",{onClick:()=>re(G.id),className:"absolute -top-1.5 -right-1.5 w-5 h-5 rounded-full bg-bg-tertiary border border-border-default flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-accent-red hover:border-accent-red hover:text-white",children:i.jsx(Ue,{size:12})})]},G.id)),Array.from({length:v}).map((G,Z)=>i.jsx("div",{className:"w-16 h-16 rounded-lg border border-border-default skeleton-shimmer"},`skeleton-${Z}`)),h.map(G=>i.jsxs("div",{className:"relative group flex items-center gap-2 px-3 py-2 rounded-lg border border-border-default bg-bg-primary max-w-[200px]",children:[i.jsx(et,{size:16,className:"shrink-0 text-text-tertiary"}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("div",{className:"text-[12px] text-text-primary truncate",title:G.name,children:G.name}),i.jsx("div",{className:"text-[11px] text-text-tertiary",children:Fv(G.size)})]}),i.jsx("button",{onClick:()=>Se(G.id),className:"shrink-0 w-4 h-4 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity text-text-tertiary hover:text-accent-red",children:i.jsx(Ue,{size:12})})]},G.id))]}),i.jsxs("div",{className:"relative",children:[i.jsx("textarea",{ref:A,value:a,onChange:G=>{const Z=G.target.value,ae=G.target.selectionStart??Z.length;if(o(Z),en.current){en.current=!1;return}let be=null;for(let de=ae-1;de>=0;de--){const Oe=Z[de];if(Oe==="@"){const Ze=de>0?Z[de-1]:" ";(Ze===" "||Ze===`
|
|
578
|
+
`||de===0)&&(Z.substring(de+1,ae).includes(" ")||(be=de));break}if(Oe===" "||Oe===`
|
|
579
|
+
`)break}be!==null?N!==be&&(I(be),w(0)):N!==null&&(I(null),_([]))},onCompositionStart:Lp,onCompositionEnd:Op,onKeyDown:jp,onPaste:ne,onContextMenu:$p,onFocus:()=>d(!1),placeholder:K?ue("input.placeholderPending"):X?ue("input.placeholderRunning"):Y?"":ue("input.placeholder"),enterKeyHint:"send",rows:1,className:["w-full bg-transparent text-text-primary text-[15px] px-5 pt-4 pb-2","resize-none outline-none placeholder:text-text-tertiary","leading-relaxed"].join(" ")}),Y&&!a&&!X&&!K&&i.jsx("div",{className:"absolute inset-0 flex items-start px-5 pt-4 pb-2 pointer-events-none overflow-hidden",children:i.jsx("span",{className:"text-[15px] leading-relaxed text-text-tertiary truncate max-w-full",children:Y})})]}),g&&i.jsxs("div",{ref:z,className:"fixed z-50 bg-bg-secondary rounded-xl border border-border-default shadow-lg overflow-hidden min-w-[120px]",style:{left:g.x,top:g.y},onMouseDown:G=>G.stopPropagation(),children:[i.jsxs("button",{className:"w-full text-left px-4 py-2.5 flex items-center gap-2.5 text-text-primary hover:bg-bg-primary transition-colors text-[13px]",onMouseDown:G=>{G.preventDefault(),G.stopPropagation(),Dp()},children:[i.jsx(Nc,{size:14,className:"text-text-tertiary"}),ue("input.contextMenu.newline")]}),mc&&i.jsxs("button",{className:"w-full text-left px-4 py-2.5 flex items-center gap-2.5 text-text-primary hover:bg-bg-primary transition-colors text-[13px]",onMouseDown:G=>{G.preventDefault(),G.stopPropagation(),Mp()},children:[i.jsx(Nn,{size:14,className:"text-text-tertiary"}),ue("input.contextMenu.send")]})]}),i.jsx("input",{ref:M,type:"file",accept:"image/jpeg,image/png,image/gif,image/webp",multiple:!0,className:"hidden",onChange:at}),i.jsx("input",{ref:O,type:"file",accept:".txt,.md,.json,.yaml,.yml,.toml,.xml,.html,.css,.scss,.js,.jsx,.ts,.tsx,.py,.rb,.go,.rs,.java,.kt,.swift,.c,.cpp,.h,.hpp,.sh,.bash,.sql,.csv,.tsv,.log,.env,.ini,.cfg,.conf,.vue,.svelte,.astro,.graphql,.gql,.makefile,.dockerfile,.gitignore,.editorconfig",multiple:!0,className:"hidden",onChange:Ge}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",onClick:G=>{var Z;G.target===G.currentTarget&&((Z=A.current)==null||Z.focus())},children:[i.jsx("div",{className:"flex items-center",children:i.jsxs("button",{onClick:Fp,className:`flex items-center gap-1 px-2.5 py-1 rounded-full border transition-colors ${q?"bg-text-primary border-text-primary text-bg-primary":"bg-bg-primary border-border-default text-text-tertiary hover:text-text-primary hover:bg-bg-primary"}`,children:[i.jsx("span",{className:"w-3.5 h-3.5 flex items-center justify-center text-[10px] font-semibold",children:"∞"}),i.jsx("span",{className:"text-[12px] font-medium",children:ue("input.deepThinking")})]})}),i.jsxs("div",{className:"flex items-center gap-1",children:[!X&&i.jsx("button",{ref:U,onClick:()=>d(G=>!G),className:"flex items-center justify-center w-8 h-8 rounded-full text-text-tertiary hover:text-text-primary hover:bg-bg-primary transition-colors",title:ue("input.addFile"),children:i.jsx(ht,{size:18})}),i.jsx("button",{onClick:()=>{const G=A.current;if(!G)return;const Z=G.selectionStart??a.length,ae=G.selectionEnd??Z,be=a.slice(0,Z)+`
|
|
580
|
+
`+a.slice(ae);o(be),requestAnimationFrame(()=>{G.selectionStart=G.selectionEnd=Z+1,G.focus()})},className:"flex items-center justify-center w-8 h-8 rounded-full text-text-tertiary hover:text-text-primary hover:bg-bg-primary transition-colors",title:ue("input.newline"),children:i.jsx(Nc,{size:15})}),X&&i.jsx("button",{onClick:Ip,className:"flex items-center justify-center w-8 h-8 rounded-full text-text-tertiary hover:text-text-primary hover:bg-bg-primary transition-colors",title:ue("input.stop"),children:i.jsx(fu,{size:14,fill:"currentColor",strokeWidth:0})}),mc&&i.jsx("button",{onClick:()=>{!a&&Y&&!X?yt(Y):yt()},className:"flex items-center justify-center w-8 h-8 rounded-full bg-text-primary text-bg-primary hover:scale-105 active:scale-95 shadow-sm transition-all",title:ue("input.send"),children:i.jsx(Nn,{size:18,strokeWidth:2.5})})]})]})]})]})})}function Bv({children:e}){return i.jsx("code",{className:"bg-bg-tertiary px-1.5 py-0.5 rounded text-xs text-accent-brand",children:e})}function Dd(e){const t=[];let r=e,n=0;for(;r.length>0;){const s=r.indexOf("<code>");if(s===-1){t.push(i.jsx("span",{children:r},n));break}s>0&&(t.push(i.jsx("span",{children:r.substring(0,s)},n)),n++);const l=r.indexOf("</code>",s);if(l===-1){t.push(i.jsx("span",{children:r},n));break}const d=r.substring(s+6,l);t.push(i.jsx(Bv,{children:d},n)),n++,r=r.substring(l+7)}return i.jsx(i.Fragment,{children:t})}function Uv(){const{error:e,isSubmitting:t,login:r,clearError:n}=Gd(),{t:s}=ie(),[l,d]=C.useState(""),a=C.useCallback(async c=>{c.preventDefault(),l.trim()&&await r(l)},[l,r]),o=e?s(e)!==e?s(e):e:null;return i.jsxs("div",{className:"login-page",children:[i.jsxs("div",{className:"login-orb login-orb-right",children:[i.jsx("div",{className:"login-orb-layer login-orb-layer-1"}),i.jsx("div",{className:"login-orb-layer login-orb-layer-2"})]}),i.jsx("div",{className:"login-ellipse login-ellipse-outer"}),i.jsx("div",{className:"login-ellipse login-ellipse-outer2"}),i.jsx("div",{className:"login-ellipse login-ellipse-inner"}),i.jsxs("div",{className:"login-orb login-orb-left",children:[i.jsx("div",{className:"login-orb-layer login-orb-layer-1"}),i.jsx("div",{className:"login-orb-layer login-orb-layer-2"})]}),i.jsx("div",{className:"login-ellipse login-ellipse-left"}),i.jsx("div",{className:"login-ellipse login-ellipse-left2"}),i.jsxs("div",{className:"login-content",children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[i.jsx("div",{className:"login-logo",children:i.jsx("img",{src:Kd,alt:"CodeBuddy"})}),i.jsx("h1",{className:"login-title",children:s("login.slogan")}),i.jsx("p",{className:"login-tagline",children:s("login.tagline")})]}),i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px"},children:[o&&i.jsx("div",{className:"login-error",style:{marginBottom:"8px"},children:o}),i.jsxs("form",{onSubmit:a,style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},children:[i.jsx("input",{type:"password",name:"password",value:l,onChange:c=>{d(c.target.value),e&&n()},placeholder:s("login.placeholder"),autoFocus:!0,autoComplete:"current-password",disabled:t,className:"login-input"}),i.jsx("button",{type:"submit",disabled:t||!l.trim(),className:"login-btn",children:t?i.jsx("span",{className:"thinking-text",children:s("login.submit")}):s("login.submit")})]}),i.jsxs("div",{className:"login-hints",children:[i.jsx("p",{children:s("login.hint.password")}),i.jsx("p",{children:s("login.hint.urlAuth").includes("<code>")?Dd(s("login.hint.urlAuth")):s("login.hint.urlAuth")}),i.jsx("p",{children:s("login.hint.disable").includes("<code>")?Dd(s("login.hint.disable")):s("login.hint.disable")})]})]})]}),i.jsxs("div",{className:"login-footer",children:[i.jsx("a",{href:"#privacy",children:s("login.privacy")}),i.jsx("a",{href:"#terms",children:s("login.terms")})]})]})}const zv="codebuddy.workers.passwords";function Hv(){try{const e=localStorage.getItem(zv);return e?JSON.parse(e):{}}catch{return{}}}function Gv(e){return Hv()[e]}const hc=ze((e,t)=>({workers:[],daemon:null,viewingLogsPid:null,logsType:"",logsAvailableTypes:[],logsContent:"",logsPath:"",loading:!1,error:null,fetchWorkers:async()=>{e({loading:!0,error:null});try{const r=await _e("/api/v1/workers",{headers:me()});if(!r.ok)throw new Error(`HTTP ${r.status}`);const n=await r.json();e({workers:n.data||[],loading:!1})}catch(r){e({error:r.message,loading:!1})}},fetchDaemonStatus:async()=>{try{const r=await _e("/api/v1/daemon/status",{headers:me()});if(!r.ok)throw new Error(`HTTP ${r.status}`);const n=await r.json();e({daemon:n.data||null})}catch{e({daemon:{status:"stopped"}})}},killWorker:async r=>{var n;e({error:null});try{const s=await _e(`/api/v1/workers/${r}`,{method:"DELETE",headers:me()});if(!s.ok&&s.status!==204){const l=await s.json().catch(()=>({}));throw new Error(((n=l.error)==null?void 0:n.message)||`HTTP ${s.status}`)}await t().fetchWorkers()}catch(s){e({error:s.message})}},fetchLogs:async(r,n,s=200)=>{var l;try{const d=n?`&type=${n}`:"",a=await _e(`/api/v1/workers/${r}/logs?tail=${s}${d}`,{headers:me()});if(!a.ok){const m=await a.json().catch(()=>({}));throw new Error(((l=m.error)==null?void 0:l.message)||`HTTP ${a.status}`)}const c=(await a.json()).data||{};e({logsContent:c.content||"",logsType:c.type||"",logsAvailableTypes:c.availableTypes||[],logsPath:c.logPath||""})}catch(d){e({logsContent:`Error loading logs: ${d.message}`})}},setViewingLogsPid:r=>{e({viewingLogsPid:r,logsContent:"",logsType:"",logsAvailableTypes:[],logsPath:""})},startDaemon:async r=>{var n;e({error:null});try{const s=await _e("/api/v1/daemon/start",{method:"POST",headers:me({"Content-Type":"application/json"}),body:JSON.stringify(r||{})});if(!s.ok){const l=await s.json().catch(()=>({}));throw new Error(((n=l.error)==null?void 0:n.message)||`HTTP ${s.status}`)}await t().fetchDaemonStatus(),await t().fetchWorkers()}catch(s){e({error:s.message})}},stopDaemon:async()=>{var r;e({error:null});try{const n=await _e("/api/v1/daemon/stop",{method:"POST",headers:me()});if(!n.ok&&n.status!==204){const s=await n.json().catch(()=>({}));throw new Error(((r=s.error)==null?void 0:r.message)||`HTTP ${n.status}`)}await t().fetchDaemonStatus(),await t().fetchWorkers()}catch(n){e({error:n.message})}},restartDaemon:async()=>{var r;e({error:null});try{const n=await _e("/api/v1/daemon/restart",{method:"POST",headers:me({"Content-Type":"application/json"}),body:JSON.stringify({})});if(!n.ok){const s=await n.json().catch(()=>({}));throw new Error(((r=s.error)==null?void 0:r.message)||`HTTP ${n.status}`)}await t().fetchDaemonStatus(),await t().fetchWorkers()}catch(n){e({error:n.message})}}})),Wv=br,qv=5e3,Vv={telemetry:{zh:"遥测日志",en:"Telemetry"},process:{zh:"进程输出",en:"Process"},debug:{zh:"调试日志",en:"Debug"},transcript:{zh:"对话记录",en:"Transcript"}};function Kv(){const{t:e,resolved:t}=ie(),r=tt(_=>_.resolved),{workers:n,fetchWorkers:s,logsContent:l,logsType:d,logsAvailableTypes:a,logsPath:o,fetchLogs:c}=hc(),[m,h]=C.useState(""),[b,v]=C.useState(""),[S,x]=C.useState(!1),p=C.useRef(null);C.useEffect(()=>{s();const E=window.location.hash.match(/[?&]worker=(\d+)/);E&&h(E[1])},[s]),C.useEffect(()=>{m&&c(m)},[m,c]),C.useEffect(()=>{if(!m&&n.length>0){const E=window.location.hash.match(/[?&]worker=(\d+)/);if(E)h(E[1]);else{const w=n.find(N=>N.isCurrent);w&&h(String(w.pid))}}},[n,m]),C.useEffect(()=>{if(!S||!m)return;const _=setInterval(()=>{c(m,d||void 0)},qv);return()=>clearInterval(_)},[S,m,d,c]),C.useEffect(()=>{p.current&&(p.current.scrollTop=p.current.scrollHeight)},[l]);const g=C.useCallback(()=>{m&&c(m,d||void 0)},[m,d,c]),u=C.useCallback(_=>{m&&c(m,_)},[m,c]),f=C.useMemo(()=>{if(!b.trim()||!l)return l;const _=b.toLowerCase();return l.split(`
|
|
581
|
+
`).filter(w=>w.toLowerCase().includes(_)).join(`
|
|
582
|
+
`)},[l,b]),y=C.useMemo(()=>{if(!b.trim()||!l)return 0;const _=b.toLowerCase();return l.split(`
|
|
583
|
+
`).filter(E=>E.toLowerCase().includes(_)).length},[l,b]),k=n.find(_=>String(_.pid)===m);return i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[i.jsxs("div",{className:"flex-none px-4 py-3 border-b border-border-primary bg-bg-primary",children:[i.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(tu,{size:18,className:"text-accent-brand"}),i.jsx("h1",{className:"text-base font-semibold text-text-primary",children:e("logs.title")})]}),i.jsxs("select",{value:m,onChange:_=>h(_.target.value),className:`px-2.5 py-1.5 text-xs rounded-lg border border-border-primary bg-bg-secondary
|
|
584
|
+
text-text-primary focus:outline-none focus:border-accent-brand min-w-[180px]`,children:[i.jsx("option",{value:"",children:e("logs.selectWorker")}),n.map(_=>i.jsxs("option",{value:_.pid,children:["PID ",_.pid," — ",_.name||_.kind,_.isCurrent?` (${e("logs.current")})`:""]},_.pid))]}),a.length>0&&i.jsx("div",{className:"flex items-center gap-0.5 bg-bg-tertiary rounded-lg p-0.5",children:a.map(_=>{var E;return i.jsx("button",{onClick:()=>u(_),className:`px-2.5 py-1 text-[11px] font-medium rounded-md transition-colors ${_===d?"bg-bg-primary text-text-primary shadow-sm":"text-text-tertiary hover:text-text-secondary"}`,children:((E=Vv[_])==null?void 0:E[t])||_},_)})}),i.jsx("div",{className:"flex-1"}),i.jsxs("div",{className:"relative",children:[i.jsx(ct,{size:13,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-text-tertiary"}),i.jsx("input",{type:"text",value:b,onChange:_=>v(_.target.value),placeholder:e("logs.search"),className:`pl-7 pr-7 py-1.5 text-xs rounded-lg border border-border-primary bg-bg-secondary
|
|
585
|
+
text-text-primary placeholder:text-text-tertiary focus:outline-none focus:border-accent-brand w-[180px]`}),b&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"absolute right-8 top-1/2 -translate-y-1/2 text-[10px] text-text-tertiary",children:y}),i.jsx("button",{onClick:()=>v(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-tertiary hover:text-text-primary",children:i.jsx(Ue,{size:12})})]})]}),i.jsxs("button",{onClick:()=>x(!S),className:`flex items-center gap-1 px-2.5 py-1.5 text-xs rounded-lg border transition-colors ${S?"border-accent-brand/40 bg-accent-brand/10 text-accent-brand":"border-border-primary text-text-secondary hover:text-text-primary"}`,title:e("logs.autoRefresh"),children:[i.jsx(st,{size:12,className:S?"animate-spin":""}),e("logs.autoRefresh")]}),i.jsx("button",{onClick:g,className:"p-1.5 rounded-lg text-text-tertiary hover:text-text-primary hover:bg-bg-hover transition-colors",title:e("logs.refresh"),children:i.jsx(st,{size:14})})]}),k&&i.jsxs("div",{className:"flex items-center gap-3 mt-2 text-[11px] text-text-tertiary",children:[o&&i.jsx(ft,{path:o,className:"font-mono truncate max-w-[400px]"}),k.url&&i.jsx("a",{href:k.url,target:"_blank",rel:"noopener noreferrer",className:"text-accent-brand hover:underline",children:k.url})]})]}),i.jsx("div",{className:"flex-1 overflow-auto bg-bg-primary",children:m?!l&&a.length===0?i.jsx("div",{className:"flex items-center justify-center h-full text-text-tertiary text-sm",children:e("logs.empty")}):b?i.jsx("div",{ref:p,className:"p-4 font-mono text-xs leading-5 min-h-full",children:f?f.split(`
|
|
586
|
+
`).map((_,E)=>i.jsx(Jv,{line:_,searchText:b},E)):i.jsx("span",{className:"text-text-tertiary",children:e("logs.empty")})}):i.jsx("div",{ref:p,className:"min-h-full",children:i.jsx(Wv,{language:"log",style:r==="dark"?Jr:Qr,showLineNumbers:!0,wrapLongLines:!0,customStyle:{margin:0,padding:"16px",border:"none",background:"transparent",fontSize:"12px",lineHeight:"1.5"},lineNumberStyle:{minWidth:"3em",paddingRight:"1em",color:"var(--color-text-tertiary)",userSelect:"none"},children:l||e("logs.empty")})}):i.jsx("div",{className:"flex items-center justify-center h-full text-text-tertiary text-sm",children:e("logs.selectWorker")})})]})}const Yv={ERROR:"text-red-500 dark:text-red-400",WARN:"text-amber-600 dark:text-amber-400",INFO:"text-blue-500 dark:text-blue-400",DEBUG:"text-text-tertiary"},Xv={ERROR:"bg-red-50/50 dark:bg-red-900/10",WARN:"bg-amber-50/50 dark:bg-amber-900/10"},Zv=/^\[(\w+)\]\s/;function Jv({line:e,searchText:t}){var o;if(!e.trim())return i.jsx("div",{className:"h-5"});const r=e.match(Zv),n=((o=r==null?void 0:r[1])==null?void 0:o.toUpperCase())||"",s=Yv[n]||"text-text-secondary",l=Xv[n]||"",a=t&&e.toLowerCase().includes(t.toLowerCase())?"bg-yellow-100/60 dark:bg-yellow-900/20":"";return i.jsx("div",{className:`whitespace-pre-wrap break-all px-2 py-px rounded-sm ${l} ${a}`,children:r?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:`font-semibold ${s}`,children:["[",r[1],"]"]}),i.jsx("span",{className:"text-text-secondary",children:Md(e.slice(r[0].length),t)})]}):i.jsx("span",{className:"text-text-secondary",children:Md(e,t)})})}function Md(e,t){if(!t)return e;const r=e.toLowerCase(),n=t.toLowerCase(),s=[];let l=0,d=r.indexOf(n);for(;d!==-1;)d>l&&s.push(e.slice(l,d)),s.push(i.jsx("mark",{className:"bg-yellow-300 dark:bg-yellow-700 text-text-primary rounded-sm px-px",children:e.slice(d,d+t.length)},d)),l=d+t.length,d=r.indexOf(n,l);return l<e.length&&s.push(e.slice(l)),s.length>0?i.jsx(i.Fragment,{children:s}):e}const Qv=8e3,ex=ze((e,t)=>({metrics:null,loading:!1,error:null,_pollTimer:null,fetchMetrics:async()=>{e({loading:!t().metrics,error:null});try{const r=await _e("/api/v1/metrics",{headers:me()});if(!r.ok)throw new Error(`Failed to fetch metrics: ${r.status}`);const n=await r.json();e({metrics:n.data,loading:!1})}catch(r){e({error:r.message,loading:!1})}},startPolling:(r=Qv)=>{const{stopPolling:n,fetchMetrics:s}=t();n(),s();const l=setInterval(s,r);e({_pollTimer:l})},stopPolling:()=>{const{_pollTimer:r}=t();r&&(clearInterval(r),e({_pollTimer:null}))}})),tx={interactive:"bg-blue-50 text-blue-700 border border-blue-200 dark:bg-blue-500/10 dark:text-blue-400 dark:border-blue-500/20",bg:"bg-purple-50 text-purple-700 border border-purple-200 dark:bg-purple-500/10 dark:text-purple-400 dark:border-purple-500/20",daemon:"bg-green-50 text-green-700 border border-green-200 dark:bg-green-500/10 dark:text-green-400 dark:border-green-500/20","daemon-worker":"bg-orange-50 text-orange-700 border border-orange-200 dark:bg-orange-500/10 dark:text-orange-400 dark:border-orange-500/20"};function rx(){const{t:e}=ie(),{metrics:t,loading:r,error:n,fetchMetrics:s,startPolling:l,stopPolling:d}=ex(),{workers:a,fetchWorkers:o}=hc();if(C.useEffect(()=>(l(8e3),o(),()=>d()),[l,d,o]),r&&!t)return i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsx(Qe,{size:"large",text:e("metrics.loading")})});if(n&&!t)return i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-text-secondary mb-4",children:n}),i.jsx("button",{onClick:s,className:"px-4 py-2 bg-accent-brand text-white rounded-lg text-sm",children:e("metrics.refresh")})]})});const c=nx((t==null?void 0:t.instances)||[],a);return i.jsxs("div",{className:"flex-1 overflow-auto p-4 md:p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Jd,{size:20,className:"text-accent-brand"}),i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("metrics.title")})]}),i.jsxs("button",{onClick:()=>{s(),o()},className:`flex items-center gap-1.5 px-3 py-1.5 text-sm text-text-secondary
|
|
587
|
+
hover:text-text-primary hover:bg-bg-hover rounded-lg transition-colors`,title:e("metrics.refresh"),children:[i.jsx(st,{size:14}),i.jsx("span",{children:e("metrics.refresh")})]})]}),t&&i.jsxs(i.Fragment,{children:[i.jsx(ix,{metrics:t}),i.jsx(sx,{workers:c})]})]})}function nx(e,t){return e.map(r=>{const n=t.find(s=>s.pid===r.pid);return{...r,kind:n==null?void 0:n.kind,name:n==null?void 0:n.name,url:(n==null?void 0:n.url)||(n==null?void 0:n.endpoint),status:n==null?void 0:n.status}})}function ix({metrics:e}){const{t}=ie(),r=e.memTotalMib>0?e.memUsedMib/e.memTotalMib*100:0,n=e.diskTotal>0?e.diskUsed/e.diskTotal*100:0;return i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[i.jsx(wn,{icon:i.jsx(zt,{size:18}),label:t("metrics.cpu"),value:`${e.cpuUsedPct.toFixed(1)}%`,subtext:`${e.cpuCount} ${t("metrics.cores")}`,percent:e.cpuUsedPct,colorClasses:Ir(e.cpuUsedPct)}),i.jsx(wn,{icon:i.jsx(Ln,{size:18}),label:t("metrics.memory"),value:`${jd(e.memUsedMib)} / ${jd(e.memTotalMib)}`,subtext:`${r.toFixed(1)}%`,percent:r,colorClasses:Ir(r)}),i.jsx(wn,{icon:i.jsx(mm,{size:18}),label:t("metrics.disk"),value:`${Fd(e.diskUsed)} / ${Fd(e.diskTotal)}`,subtext:`${n.toFixed(1)}%`,percent:n,colorClasses:Ir(n)})]})}function wn({icon:e,label:t,value:r,subtext:n,percent:s,colorClasses:l}){const[d,a]=l;return i.jsxs("div",{className:"bg-bg-secondary rounded-xl p-4 border border-border-primary",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsx("span",{className:d,children:e}),i.jsx("span",{className:"text-sm font-medium text-text-secondary",children:t})]}),i.jsx("div",{className:"text-xl font-semibold text-text-primary mb-1",children:r}),i.jsx("div",{className:"text-xs text-text-tertiary mb-3",children:n}),i.jsx("div",{className:"h-2 bg-bg-tertiary rounded-full overflow-hidden",children:i.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${a}`,style:{width:`${Math.min(s,100)}%`}})})]})}function sx({workers:e}){const{t}=ie();return e.length===0?i.jsx("div",{className:"text-center py-12 text-text-tertiary",children:t("metrics.noWorkers")}):i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[i.jsx(zt,{size:18,className:"text-text-secondary"}),i.jsxs("h2",{className:"text-base font-medium text-text-primary",children:["Workers (",e.length,")"]})]}),i.jsx("div",{className:"space-y-3",children:e.map(r=>i.jsx(ax,{worker:r},r.id))})]})}function ax({worker:e}){const{t}=ie();return i.jsx("div",{className:`bg-bg-secondary rounded-xl p-4 md:p-5 border transition-colors hover:border-gray-300 dark:hover:border-gray-600 border-border-primary ${e.error?"opacity-60":""}`,children:i.jsxs("div",{className:"flex flex-col gap-4",children:[i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${e.error?"bg-red-400":"bg-green-400"}`}),e.kind&&i.jsx("span",{className:`inline-block px-2.5 py-0.5 text-xs font-medium rounded-md ${tx[e.kind]||"bg-gray-100 text-gray-600"}`,children:e.kind}),i.jsx("span",{className:"text-sm font-medium text-text-primary",children:e.name||e.hostname}),e.isCurrent&&i.jsx("span",{className:"text-[10px] uppercase font-bold tracking-wider px-1.5 py-0.5 bg-accent-brand/10 text-accent-brand rounded",children:t("metrics.current")}),e.error&&i.jsx("span",{className:"text-xs text-red-400",children:e.error})]}),i.jsxs("span",{className:"text-xs text-text-tertiary font-mono bg-bg-tertiary px-2 py-0.5 rounded-md border border-border-primary/50",children:["PID ",e.pid]})]}),i.jsxs("div",{className:"flex flex-col md:flex-row md:items-start justify-between gap-4 md:gap-6",children:[i.jsxs("div",{className:"flex flex-col gap-2.5 flex-1 min-w-0",children:[i.jsx(ft,{path:e.cwd,className:"text-[13px] text-text-secondary font-mono truncate max-w-full"}),e.url&&i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(nt,{size:14,className:"text-text-tertiary flex-none"}),i.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-accent-brand hover:underline truncate",children:e.url})]})]}),e.rssMib>0||e.heapUsedMib>0?i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 flex-none",style:{minWidth:"460px"},children:[i.jsxs("div",{className:"min-w-[100px]",children:[i.jsx(Rt,{icon:i.jsx(Ln,{size:14}),label:"RSS",value:`${e.rssMib.toFixed(0)} MiB`}),i.jsx("div",{className:"mt-1.5 h-1.5 bg-bg-tertiary rounded-full overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full bg-blue-500 transition-all duration-500",style:{width:`${Math.min(e.rssMib/2048*100,100)}%`}})})]}),i.jsxs("div",{className:"min-w-[140px]",children:[i.jsx(Rt,{icon:i.jsx(Ln,{size:14}),label:"Heap",value:`${e.heapUsedMib.toFixed(0)} / ${e.heapTotalMib.toFixed(0)} MiB`}),e.heapTotalMib>0&&i.jsx("div",{className:"mt-1.5 h-1.5 bg-bg-tertiary rounded-full overflow-hidden",children:i.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${Ir(e.heapUsedMib/e.heapTotalMib*100)[1]}`,style:{width:`${Math.min(e.heapUsedMib/e.heapTotalMib*100,100)}%`}})})]}),i.jsx("div",{className:"min-w-[80px]",children:i.jsx(Rt,{icon:i.jsx(ar,{size:14}),label:t("metrics.uptime"),value:Pd(e.uptimeSeconds)})}),i.jsx("div",{className:"min-w-[60px]",children:i.jsx(Rt,{icon:i.jsx(Or,{size:14}),label:t("metrics.version"),value:e.version||"-"})})]}):i.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-none",style:{minWidth:"200px"},children:[i.jsx("div",{className:"min-w-[80px]",children:i.jsx(Rt,{icon:i.jsx(ar,{size:14}),label:t("metrics.uptime"),value:Pd(e.uptimeSeconds)})}),i.jsx("div",{className:"min-w-[60px]",children:i.jsx(Rt,{icon:i.jsx(Or,{size:14}),label:t("metrics.version"),value:e.version||"-"})})]})]})]})})}function Rt({icon:e,label:t,value:r}){return i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsxs("div",{className:"flex items-center gap-1.5 text-text-tertiary",children:[e,i.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider",children:t})]}),i.jsx("div",{className:"text-sm font-semibold text-text-primary",style:{fontVariantNumeric:"tabular-nums"},children:r})]})}function Ir(e){return e>=90?["text-red-500","bg-red-500"]:e>=70?["text-amber-500","bg-amber-500"]:["text-green-500","bg-green-500"]}function jd(e){return e>=1024?`${(e/1024).toFixed(1)} GiB`:`${e} MiB`}function Fd(e){if(e===0)return"0 B";const t=e/(1024*1024*1024);return t>=1?`${t.toFixed(1)} GB`:`${(e/(1024*1024)).toFixed(0)} MB`}function Pd(e){if(e<60)return`${e}s`;if(e<3600)return`${Math.floor(e/60)}m ${e%60}s`;const t=Math.floor(e/3600),r=Math.floor(e%3600/60);return t>=24?`${Math.floor(t/24)}d ${t%24}h`:`${t}h ${r}m`}function ox({onNavigate:e}){const{t}=ie(),[r,n]=C.useState(Mr);if(C.useEffect(()=>{const s=()=>n(Mr());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),r==="add-wechat"||r!=null&&r.startsWith("rebind-wechat/")){const s=r!=null&&r.startsWith("rebind-wechat/")?r.split("/")[1]:void 0;return i.jsx(cx,{onBack:()=>Zc("remote-control"),t,existingInstanceId:s})}return r==="add-wecom"?i.jsx(dx,{onBack:()=>Zc("remote-control"),t}):i.jsx(lx,{onNavigate:e,t})}function lx({onNavigate:e,t}){const[r,n]=C.useState([]),[s,l]=C.useState(!0),[d,a]=C.useState(null),[o,c]=C.useState(null),m=C.useCallback(async()=>{try{const _=await _e("/api/v1/channels");if(_.ok){const E=await _.json();n((E.clients||[]).filter(w=>!w.hidden&&!w.instanceId.startsWith("_pending")))}}catch{}finally{l(!1)}},[]);C.useEffect(()=>{m();const _=setInterval(m,5e3);return()=>clearInterval(_)},[m]);const h=C.useCallback(async(_,E,w)=>{const N=`${E}:${w}:${_}`;c(N),a(null);try{const I=_==="delete"?"DELETE":"POST",A=_==="delete"?`/api/v1/channels/${E}/${w}`:`/api/v1/channels/${E}/${w}/${_}`,M=await _e(A,{method:I});if(!M.ok){const B=await M.json().catch(()=>({}));throw new Error(B.error||`Failed: ${M.status}`)}const O=await M.json().catch(()=>({}));if(_==="unbind"&&E==="wechat"&&O.needsQrScan){Zt("remote-control",`rebind-wechat/${w}`);return}await m()}catch(I){a((I==null?void 0:I.message)||"Action failed")}finally{c(null)}},[m]),b=_=>_==="connected"?"text-green-500":_==="connecting"?"text-yellow-500":_==="error"?"text-red-500":"text-text-tertiary",v=_=>t(_==="connected"?"remoteControl.connected":_==="connecting"?"remoteControl.connecting":"remoteControl.disconnected"),S=_=>_==="wechat"?i.jsx(pu,{size:18,className:"text-green-500"}):_==="wecom"?i.jsx(On,{size:18,className:"text-accent-brand"}):i.jsx(Ac,{size:18,className:"text-text-tertiary"}),x=_=>_==="wechat"?t("channel.wechat")+t("remoteControl.bot"):_==="wecom"?t("channel.wecom")+t("remoteControl.bot"):_,p=_=>`${x(_.clientType)} #${_.instanceId.slice(0,4)}`,g=r.filter(_=>_.clientType==="wechat"),u=r.filter(_=>_.clientType==="wecom"),f=r.filter(_=>_.clientType!=="wechat"&&_.clientType!=="wecom"),y=_=>{const E=`${_.clientType}:${_.instanceId}`,w=_.status==="connected",N=o==null?void 0:o.startsWith(E);return i.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-bg-secondary hover:bg-bg-hover transition-colors cursor-pointer",onClick:()=>{N||h(w?"stop":"start",_.clientType,_.instanceId)},children:[S(_.clientType),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-sm font-medium text-text-primary truncate",children:p(_)}),i.jsx("span",{className:`text-xs ${b(_.status)}`,children:v(_.status)})]}),i.jsxs("div",{className:"flex items-center gap-1",onClick:I=>I.stopPropagation(),children:[i.jsx("button",{className:`p-1.5 rounded-md text-text-tertiary transition-colors ${w?"hover:text-orange-500":"hover:text-green-500"} hover:bg-bg-hover`,title:t(w?"remoteControl.disconnect":"remoteControl.connect"),disabled:!!N,onClick:()=>h(w?"stop":"start",_.clientType,_.instanceId),children:w?i.jsx(Ac,{size:14}):i.jsx(wm,{size:14})}),w&&i.jsx("button",{className:"p-1.5 rounded-md text-text-tertiary hover:text-orange-500 hover:bg-bg-hover transition-colors",title:t("remoteControl.unbind"),disabled:!!N,onClick:()=>h("unbind",_.clientType,_.instanceId),children:i.jsx(st,{size:14})}),i.jsx("button",{className:"p-1.5 rounded-md text-text-tertiary hover:text-red-500 hover:bg-bg-hover transition-colors",title:t("remoteControl.delete"),disabled:!!N,onClick:()=>h("delete",_.clientType,_.instanceId),children:i.jsx(Ur,{size:14})})]})]},E)},k=(_,E,w,N)=>i.jsxs("div",{children:[i.jsx("h2",{className:"text-sm font-medium text-text-secondary mb-2",children:_}),E.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-text-tertiary",children:t("remoteControl.noChannels")}):i.jsx("div",{className:"space-y-2",children:E.map(y)}),w&&i.jsxs("button",{className:"flex items-center gap-1.5 mt-2 px-3 py-1.5 text-xs text-text-tertiary hover:text-text-primary hover:bg-bg-hover rounded-md transition-colors",onClick:w,children:[i.jsx(ht,{size:12}),N||t("remoteControl.add")]})]});return i.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[i.jsxs("div",{className:"px-6 py-5 border-b border-border-primary",children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.title")}),i.jsx("p",{className:"text-sm text-text-tertiary mt-1",children:t("remoteControl.subtitle")})]}),i.jsxs("div",{className:"px-6 py-4 flex-1 space-y-6",children:[d&&i.jsx("div",{className:"p-3 rounded-lg bg-red-500/10 text-red-500 text-sm",children:d}),s?i.jsx("div",{className:"text-sm text-text-tertiary py-4",children:t("remoteControl.connecting")}):r.length===0?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"py-8 text-center",children:[i.jsx(On,{size:32,className:"mx-auto mb-3 text-text-tertiary opacity-50"}),i.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.noChannels")}),i.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:t("remoteControl.noChannelsHint")})]}),i.jsxs("div",{className:"flex gap-3",children:[i.jsxs("button",{className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-bg-secondary hover:bg-bg-hover text-sm text-text-primary transition-colors border border-border-primary",onClick:()=>Zt("remote-control","add-wechat"),children:[i.jsx(ht,{size:14}),t("remoteControl.addWeChat")]}),i.jsxs("button",{className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-bg-secondary hover:bg-bg-hover text-sm text-text-primary transition-colors border border-border-primary",onClick:()=>Zt("remote-control","add-wecom"),children:[i.jsx(ht,{size:14}),t("remoteControl.addWeCom")]})]})]}):i.jsxs(i.Fragment,{children:[k(t("channel.wechat")+t("remoteControl.bot"),g,()=>Zt("remote-control","add-wechat"),t("remoteControl.addWeChat")),k(t("channel.wecom")+t("remoteControl.bot"),u,()=>Zt("remote-control","add-wecom"),t("remoteControl.addWeCom")),f.length>0&&k(t("remoteControl.plugin"),f)]}),i.jsx("hr",{className:"border-border-primary"}),i.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-lg bg-bg-secondary hover:bg-bg-hover cursor-pointer transition-colors border border-border-primary",onClick:()=>{e?e("plugins"):window.location.hash="#/plugins"},children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"text-sm font-medium text-text-primary",children:t("remoteControl.installMore")}),i.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:t("remoteControl.installMoreHint")})]}),i.jsx(mh,{size:16,className:"text-text-tertiary"})]})]})]})}function cx({onBack:e,t,existingInstanceId:r}){const[n,s]=C.useState(null),[l,d]=C.useState(t("remoteControl.fetchingQr")),[a,o]=C.useState(r??null),[c,m]=C.useState(null),[h,b]=C.useState(!1);return C.useEffect(()=>{let v=!1;return(async()=>{try{let S=r;if(!S){const x=await _e("/api/v1/channels/wechat",{method:"POST"});if(!x.ok)throw new Error((await x.json().catch(()=>({}))).error||"Failed");const p=await x.json();if(v)return;S=p.instanceId,o(S)}for(let x=0;x<180&&!v;x++){await new Promise(p=>setTimeout(p,1e3));try{const p=await fetch(`/api/v1/channels/wechat/${S}/qr`);if(!p.ok)continue;const g=await p.json();if(v)return;if(g.qrUrl&&s(g.qrUrl),g.message&&d(g.message),g.type==="confirmed"){b(!0),d(t("remoteControl.connected")),setTimeout(()=>{v||e()},1500);return}if(g.type==="error"){m(g.message);return}}catch{}}!v&&!h&&m("Timeout")}catch(S){v||m((S==null?void 0:S.message)||"Failed")}})(),()=>{v=!0}},[r]),i.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[i.jsxs("div",{className:"px-6 py-5 border-b border-border-primary flex items-center gap-3",children:[i.jsx("button",{onClick:e,className:"p-1 rounded-md hover:bg-bg-hover transition-colors",children:i.jsx(cr,{size:18})}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.addWeChat")}),i.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.scanQr")})]})]}),i.jsx("div",{className:"flex-1 flex flex-col items-center justify-center px-6 py-8",children:c?i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx("p",{className:"text-red-500",children:c}),i.jsx("button",{onClick:e,className:"px-4 py-2 rounded-lg bg-bg-secondary hover:bg-bg-hover text-sm border border-border-primary",children:t("remoteControl.cancel")})]}):n?i.jsxs("div",{className:"text-center space-y-4",children:[i.jsx("div",{className:"inline-block p-4 bg-white rounded-xl",children:i.jsx("img",{src:`https://api.qrserver.com/v1/create-qr-code/?size=240x240&data=${encodeURIComponent(n)}`,alt:"QR Code",className:"w-60 h-60"})}),i.jsx("p",{className:"text-sm text-text-secondary",children:l})]}):i.jsxs("div",{className:"text-center space-y-3",children:[i.jsx("div",{className:"w-8 h-8 mx-auto border-2 border-accent-brand border-t-transparent rounded-full animate-spin"}),i.jsx("p",{className:"text-sm text-text-tertiary",children:l})]})})]})}function dx({onBack:e,t}){const[r,n]=C.useState(""),[s,l]=C.useState(""),[d,a]=C.useState("botId"),[o,c]=C.useState(!1),[m,h]=C.useState(null),b=C.useCallback(async()=>{if(!(!r.trim()||!s.trim())){c(!0),h(null);try{const v=await _e("/api/v1/channels/wecom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({botId:r.trim(),secret:s.trim()})});if(!v.ok){const S=await v.json().catch(()=>({}));throw new Error(S.error||"Failed")}e()}catch(v){h((v==null?void 0:v.message)||"Failed")}finally{c(!1)}}},[r,s,e]);return i.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[i.jsxs("div",{className:"px-6 py-5 border-b border-border-primary flex items-center gap-3",children:[i.jsx("button",{onClick:e,className:"p-1 rounded-md hover:bg-bg-hover transition-colors",children:i.jsx(cr,{size:18})}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.addWeCom")}),i.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.wecomBotIdHint")})]})]}),i.jsxs("div",{className:"px-6 py-8 max-w-md mx-auto w-full space-y-6",children:[m&&i.jsx("div",{className:"p-3 rounded-lg bg-red-500/10 text-red-500 text-sm",children:m}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("label",{className:"text-sm font-medium text-text-primary",children:"Bot ID"}),i.jsx("input",{type:"text",className:"w-full px-3 py-2 rounded-lg bg-bg-secondary border border-border-primary text-sm text-text-primary placeholder-text-tertiary focus:outline-none focus:border-accent-brand transition-colors",placeholder:"Enter Bot ID",value:r,onChange:v=>n(v.target.value),autoFocus:!0,disabled:d==="secret",onKeyDown:v=>{v.key==="Enter"&&r.trim()&&a("secret")}})]}),d==="secret"&&i.jsxs("div",{className:"space-y-2",children:[i.jsx("label",{className:"text-sm font-medium text-text-primary",children:"Secret"}),i.jsx("input",{type:"password",className:"w-full px-3 py-2 rounded-lg bg-bg-secondary border border-border-primary text-sm text-text-primary placeholder-text-tertiary focus:outline-none focus:border-accent-brand transition-colors",placeholder:"Enter Secret",value:s,onChange:v=>l(v.target.value),autoFocus:!0,onKeyDown:v=>{v.key==="Enter"&&s.trim()&&b()}}),i.jsx("p",{className:"text-xs text-text-tertiary",children:t("remoteControl.wecomSecretHint")})]}),i.jsxs("div",{className:"flex gap-3 pt-2",children:[d==="botId"?i.jsx("button",{className:"px-4 py-2 rounded-lg bg-accent-brand text-white text-sm hover:bg-accent-brand/90 transition-colors disabled:opacity-50",disabled:!r.trim(),onClick:()=>a("secret"),children:t("remoteControl.next")}):i.jsx("button",{className:"px-4 py-2 rounded-lg bg-accent-brand text-white text-sm hover:bg-accent-brand/90 transition-colors disabled:opacity-50",disabled:!s.trim()||o,onClick:b,children:t(o?"remoteControl.connecting":"remoteControl.connect")}),i.jsx("button",{className:"px-4 py-2 rounded-lg bg-bg-secondary border border-border-primary text-sm text-text-secondary hover:bg-bg-hover transition-colors",onClick:e,children:t("remoteControl.cancel")})]})]})]})}const ux="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23copilot-clip-34e811bed903495093b85bf96a98fb1b_0)'%3e%3crect%20width='24'%20height='24'%20rx='12'%20fill='%234C4F6B'%3e%3c/rect%3e%3cpath%20d='M3.4689%2011.0144C3.32344%2011.2025%203.31607%2011.4567%203.4345%2012.0298C3.65883%2013.0748%204.24029%2014.4426%205.15579%2016.0716L5.747%2017.1172L5.72862%2017.511C5.70544%2017.9326%205.72848%2018.5857%205.77921%2019.0271C5.80994%2019.2967%205.8055%2019.3035%205.66483%2019.4638C5.12042%2020.0864%205.03916%2021.1287%205.44787%2022.2839C5.62456%2022.7775%206.16958%2023.6999%206.50726%2024.0756C7.35392%2025.0154%208.35051%2025.4646%209.11147%2025.246C9.25446%2025.2051%209.28403%2025.213%209.47117%2025.3424C10.182%2025.8233%2011.3834%2026.2377%2012.4447%2026.3663C14.2242%2026.5843%2016.2727%2026.143%2018.8281%2024.9925C19.8948%2024.5099%2022.2541%2023.1352%2023.2513%2022.4096C25.1083%2021.0667%2026.4805%2019.6414%2027.251%2018.2635C27.9337%2017.0364%2028.2735%2015.7781%2028.2495%2014.5174C28.2466%2014.2525%2028.2536%2014.2359%2028.3599%2014.1746C28.8797%2013.8703%2029.1497%2013.198%2029.0927%2012.3562C29.075%2012.1165%2029.0266%2011.7946%2028.9902%2011.6448C28.7404%2010.7144%2028.0885%209.59971%2027.4078%208.94729C26.6515%208.22182%2025.7943%207.9129%2025.1958%208.14598C25.0631%208.19758%2025.0452%208.19542%2024.9177%208.08995C24.6357%207.86124%2023.9604%207.43473%2023.5488%207.22673L23.1224%207.01477L22.8206%206.45595C22.0392%205.01609%2020.7826%203.33003%2019.8801%202.50992C19.4937%202.15818%2019.2668%202.03929%2019.019%202.05739C18.866%202.06657%2018.8535%202.07379%2018.645%202.26084C18.0389%202.79819%2017.1889%204.41355%2016.3588%206.60463L16.1271%207.21325L15.7053%207.34845C14.3909%207.76995%2013.2238%208.30219%2012.1896%208.94928C11.1973%209.56799%2010.6591%209.97037%209.84886%2010.688L9.36087%2011.1197L9.13878%2011.0813C7.00072%2010.7039%205.07892%2010.5639%204.19776%2010.7186C3.84772%2010.7832%203.55743%2010.9008%203.4689%2011.0144Z'%20fill='%23D2D3E0'%3e%3c/path%3e%3crect%20x='6.68555'%20y='16.3788'%20width='17.7918'%20height='11.5605'%20rx='4.61469'%20transform='rotate(-30%206.68555%2016.3788)'%20fill='%23212234'%3e%3c/rect%3e%3cg%3e%3crect%20x='12.2119'%20y='17.2593'%20width='2.13173'%20height='4.42744'%20rx='1.06587'%20transform='rotate(-30%2012.2119%2017.2593)'%20fill='%23D2D3E0'%3e%3canimate%20attributeName='height'%20values='4.42744;2.2;4.42744;4.42744;2.2;4.42744'%20dur='0.6s'%20begin='0s;blink134e811bed903495093b85bf96a98fb1b_0.end+3s'%20id='blink134e811bed903495093b85bf96a98fb1b_0'%3e%3c/animate%3e%3canimate%20attributeName='y'%20values='17.2593;18.2593;17.2593;17.2593;18.2593;17.2593'%20dur='0.6s'%20begin='0s;blink134e811bed903495093b85bf96a98fb1b_0.end+3s'%3e%3c/animate%3e%3canimate%20attributeName='opacity'%20values='1;0.2;1;1;0.2;1'%20dur='0.6s'%20begin='0s;blink134e811bed903495093b85bf96a98fb1b_0.end+3s'%3e%3c/animate%3e%3c/rect%3e%3c/g%3e%3cg%3e%3crect%20x='17.9634'%20y='13.9387'%20width='2.13173'%20height='4.42744'%20rx='1.06587'%20transform='rotate(-30%2017.9634%2013.9387)'%20fill='%23D2D3E0'%3e%3canimate%20attributeName='height'%20values='4.42744;2.2;4.42744;4.42744;2.2;4.42744'%20dur='0.6s'%20begin='0s;blink234e811bed903495093b85bf96a98fb1b_0.end+3s'%20id='blink234e811bed903495093b85bf96a98fb1b_0'%3e%3c/animate%3e%3canimate%20attributeName='y'%20values='13.9387;14.9387;13.9387;13.9387;14.9387;13.9387'%20dur='0.6s'%20begin='0s;blink234e811bed903495093b85bf96a98fb1b_0.end+3s'%3e%3c/animate%3e%3canimate%20attributeName='opacity'%20values='1;0.2;1;1;0.2;1'%20dur='0.6s'%20begin='0s;blink234e811bed903495093b85bf96a98fb1b_0.end+3s'%3e%3c/animate%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='copilot-clip-34e811bed903495093b85bf96a98fb1b_0'%3e%3crect%20width='24'%20height='24'%20rx='12'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",px="/assets/logo-iZVLr450.svg";function hx({isOpen:e,onClose:t,mainView:r,onNavigate:n}){const{t:s}=ie(),{userInfo:l}=Wd(),d=jt(b=>b.info),a=jt(b=>b.fetch),o=tr(b=>b.fileChanges.length);C.useEffect(()=>{d||a()},[a,d]);const c=(l==null?void 0:l.userName)||(d==null?void 0:d.userName)||s("sidebar.user"),m=(d==null?void 0:d.version)||"",h=m&&m!=="dev"&&m!=="0.0.0"?`v${m}`:"";return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:`sidebar-overlay ${e?"":"sidebar-overlay-hidden"}`,onClick:t}),i.jsxs("aside",{className:`sidebar ${e?"":"sidebar-closed"}`,children:[i.jsxs("div",{className:"sidebar-header",children:[i.jsx("img",{src:px,alt:"CodeBuddy",className:"sidebar-logo"}),i.jsx("span",{className:"sidebar-brand",children:"CodeBuddy"}),i.jsx("div",{className:"flex-1"}),i.jsx("button",{onClick:t,className:"md:hidden w-7 h-7 flex items-center justify-center rounded-md text-text-tertiary hover:text-text-primary hover:bg-bg-hover transition-colors",children:i.jsx(Ue,{size:16})})]}),i.jsxs("nav",{className:"sidebar-nav",children:[i.jsxs("button",{className:`sidebar-nav-item ${r==="chat"?"active":""}`,onClick:()=>n("chat"),children:[i.jsx(ri,{size:16}),i.jsx("span",{children:s("sidebar.chatMode")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="workers"?"active":""}`,onClick:()=>n("workers"),children:[i.jsx(zt,{size:16}),i.jsx("span",{children:s("sidebar.workers")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="remote-control"?"active":""}`,onClick:()=>n("remote-control"),children:[i.jsx(On,{size:16}),i.jsx("span",{children:s("sidebar.remoteControl")})]})]}),i.jsx("div",{className:"sidebar-content",children:i.jsxs("div",{className:"px-3 py-1",children:[i.jsxs("button",{className:`sidebar-nav-item ${r==="tasks"?"active":""}`,onClick:()=>n("tasks"),children:[i.jsx(cu,{size:16}),i.jsx("span",{children:s("sidebar.nav.tasks")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="terminal"?"active":""}`,onClick:()=>n("terminal"),children:[i.jsx(gu,{size:16}),i.jsx("span",{children:s("sidebar.terminalMode")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="editor"?"active":""}`,onClick:()=>n("editor"),children:[i.jsx(tm,{size:16}),i.jsx("span",{children:s("sidebar.editor")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="changes"?"active":""}`,onClick:()=>n("changes"),children:[i.jsx(ti,{size:16}),i.jsx("span",{children:s("sidebar.changes")}),o>0&&i.jsx("span",{className:"sidebar-badge",children:o})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="plugins"?"active":""}`,onClick:()=>n("plugins"),children:[i.jsx(Mt,{size:16}),i.jsx("span",{children:s("sidebar.nav.plugins")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="metrics"?"active":""}`,onClick:()=>n("metrics"),children:[i.jsx(Jd,{size:16}),i.jsx("span",{children:s("sidebar.metrics")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="logs"?"active":""}`,onClick:()=>n("logs"),children:[i.jsx(tu,{size:16}),i.jsx("span",{children:s("sidebar.logs")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="settings"?"active":""}`,onClick:()=>n("settings"),children:[i.jsx(mu,{size:16}),i.jsx("span",{children:s("sidebar.preferences")})]}),i.jsxs("button",{className:`sidebar-nav-item ${r==="docs"?"active":""}`,onClick:()=>n("docs"),children:[i.jsx(Qd,{size:16}),i.jsx("span",{children:s("sidebar.docs")})]})]})}),i.jsx("div",{className:"sidebar-footer",children:i.jsxs("div",{className:"sidebar-user",children:[i.jsx("img",{src:ux,alt:"User",className:"sidebar-user-avatar"}),i.jsxs("div",{className:"sidebar-user-info",children:[i.jsx("div",{className:"sidebar-user-name",children:c}),i.jsx("div",{className:"sidebar-user-status",children:h})]})]})})]})]})}function mx({onMenuClick:e,onNewChat:t,onSplitTerminal:r,onHistory:n,hasHistory:s,rightActions:l}){const{t:d}=ie(),{topic:a}=gt(),{mainView:o,layout:c,terminalTitle:m}=we(),[h,b]=C.useState(!1),v=C.useRef(null),S=o==="terminal",p=Ft(c)<xp;C.useEffect(()=>{if(!h)return;const y=k=>{v.current&&!v.current.contains(k.target)&&b(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[h]);const g=C.useCallback(y=>{b(!1),r==null||r(y)},[r]),u=()=>{switch(o){case"chat":return a||d("chat.newChat");case"terminal":return m||d("terminal.title");case"settings":return d("settings.title");case"tasks":return d("tasks.title");case"plugins":return d("sidebar.nav.plugins");default:return""}},f=()=>l||(S?i.jsxs("div",{ref:v,className:"relative",children:[i.jsx("button",{onClick:()=>p&&b(!h),className:`text-text-secondary transition-colors flex items-center justify-center w-8 h-8 rounded-full ${p?"hover:text-text-primary hover:bg-bg-secondary":"opacity-40 cursor-not-allowed"}`,title:p?void 0:d("terminal.maxPanes"),children:i.jsx(Tc,{size:20})}),h&&i.jsxs("div",{className:"absolute right-0 top-full mt-1 bg-bg-secondary border border-border-muted rounded-lg shadow-lg py-1 z-50 min-w-[140px]",children:[i.jsxs("button",{onClick:()=>g("horizontal"),className:"w-full flex items-center gap-3 px-4 py-2.5 text-[13px] text-text-primary hover:bg-bg-hover transition-colors",children:[i.jsx(Tc,{size:16,className:"text-text-secondary"}),i.jsx("span",{children:d("terminal.splitHorizontal")})]}),i.jsxs("button",{onClick:()=>g("vertical"),className:"w-full flex items-center gap-3 px-4 py-2.5 text-[13px] text-text-primary hover:bg-bg-hover transition-colors",children:[i.jsx(cg,{size:16,className:"text-text-secondary"}),i.jsx("span",{children:d("terminal.splitVertical")})]})]})]}):o==="chat"?i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("button",{onClick:t,className:"text-text-secondary hover:text-text-primary transition-colors flex items-center justify-center w-8 h-8 rounded-full hover:bg-bg-secondary",children:i.jsx(ht,{size:20})}),s&&i.jsx("button",{onClick:n,className:"text-text-secondary hover:text-text-primary transition-colors flex items-center justify-center w-8 h-8 rounded-full hover:bg-bg-secondary",title:d("sidebar.chatHistory"),children:i.jsx(ou,{size:18})})]}):null);return i.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-6 h-14 bg-bg-primary text-xs flex-shrink-0 transition-colors duration-200 sticky top-0 z-10",children:[i.jsx("div",{className:"flex items-center gap-4",children:i.jsx("button",{onClick:e,className:"text-text-secondary hover:text-text-primary transition-colors flex items-center justify-center w-8 h-8 rounded-full hover:bg-bg-secondary",children:i.jsx(ni,{size:20})})}),i.jsx("div",{className:"flex-1 flex justify-center items-center min-w-0 px-2",children:i.jsx("span",{className:"font-medium text-text-primary text-[15px] tracking-wide truncate max-w-full",children:u()})}),i.jsx("div",{className:"flex items-center",children:f()})]})}let En=1e5;function gx(e){if(!Array.isArray(e))return[];const t=[];let r=null;for(const n of e)if(n.sessionUpdate==="user_message_chunk"){r&&(t.push(r),r=null);const s=n.content,l=(s==null?void 0:s.text)||"";if(!l.trim())continue;t.push({type:"message",id:`member-msg-${++En}`,role:"user",content:l,timestamp:Date.now()})}else if(n.sessionUpdate==="agent_message_chunk"){const s=n.content;if((s==null?void 0:s.type)==="thinking")continue;const l=(s==null?void 0:s.text)||"";if(!l)continue;r?r={...r,content:r.content+l}:r={type:"message",id:`member-msg-${++En}`,role:"assistant",content:l,timestamp:Date.now()}}else if(n.sessionUpdate==="tool_call"){r&&(t.push(r),r=null);const l=(n._meta||{})["codebuddy.ai/toolName"]||"";t.push({type:"tool_call",id:n.toolCallId||`member-tc-${++En}`,name:n.title||l||n.kind||"tool",kind:n.kind||"other",toolName:l,input:n.rawInput||n.input,status:n.status==="completed"?"completed":n.status==="failed"?"failed":"running",locations:n.locations,content:n.content})}else if(n.sessionUpdate==="tool_call_update"){const s=t.findIndex(l=>l.type==="tool_call"&&l.id===n.toolCallId);if(s!==-1){const l=t[s];t[s]={...l,status:n.status==="completed"?"completed":n.status==="failed"?"failed":l.status,result:n.rawOutput||n.toolResult||l.result,...n.content!==void 0?{content:n.content}:{}}}}return r&&t.push(r),t}function fx(){var b;const e=Be(v=>v.focusedMemberName),t=Be(v=>v.memberHistories),r=Be(v=>v.members),n=Be(v=>v.setFocusedMember),s=C.useRef(null),l=r.find(v=>v.name===e),d=e&&t[e]||[],a=C.useMemo(()=>gx(d),[d]),o=C.useMemo(()=>np(a),[a]);C.useEffect(()=>{s.current&&(s.current.scrollTop=s.current.scrollHeight)},[o]);const c=C.useCallback(()=>{n(null)},[n]),m=(l==null?void 0:l.status)==="running"||(l==null?void 0:l.status)==="pending",{t:h}=ie();return i.jsxs("div",{ref:s,className:"absolute inset-0 overflow-y-auto overflow-x-hidden",children:[i.jsx("div",{className:"sticky top-0 z-10 bg-bg-primary/95 backdrop-blur-sm border-b border-border-muted/30",children:i.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 py-3 flex items-center gap-3",children:[i.jsx("button",{type:"button",onClick:c,className:"p-1.5 rounded-md hover:bg-bg-secondary text-text-tertiary hover:text-text-secondary transition-colors",title:h("team.backToMain"),children:i.jsx(cr,{size:16})}),i.jsx(An,{size:16,className:"text-accent-purple flex-shrink-0"}),i.jsxs("span",{className:"text-[14px] font-semibold text-accent-purple",children:["@",e]}),(l==null?void 0:l.description)&&i.jsx("span",{className:"text-[12px] text-text-tertiary truncate flex-1",children:l.description}),m&&i.jsx(ve,{size:14,className:"animate-spin text-accent-purple flex-shrink-0"}),i.jsx("div",{className:"flex-1"}),l&&i.jsxs("span",{className:"text-[11px] text-text-tertiary flex-shrink-0",children:[l.toolCallCount?h("team.tools").replace("{count}",String(l.toolCallCount)):"",(b=l.tokenUsage)!=null&&b.lastContextWindow?`${l.toolCallCount?" · ":""}${h("team.tokens").replace("{count}",String(Math.round(l.tokenUsage.lastContextWindow/1e3))+"k")}`:""]})]})}),i.jsx("div",{className:"px-4 sm:px-6 pt-4 pb-8",children:i.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col",children:[m&&o.length===0?i.jsxs("div",{className:"flex items-center justify-center gap-2 py-20 text-text-tertiary text-[13px]",children:[i.jsx(ve,{size:16,className:"animate-spin"}),i.jsx("span",{children:h("team.loadingHistory")})]}):o.length===0?i.jsx("div",{className:"flex items-center justify-center py-20 text-text-tertiary text-[13px]",children:h("team.noHistory")}):o.map((v,S)=>{if(v.kind==="user"){const x=v.entry.content?tp(v.entry.content):void 0;if(x)return x.from==="system"?null:i.jsx("div",{children:i.jsx(rp,{msg:x})},v.entry.id);let p=v.entry.content||"";return p=p.replace(/<system-reminder>[\s\S]*?<\/system-reminder>\s*/g,"").trim(),p?i.jsx("div",{className:"flex justify-end mb-6",children:i.jsx("div",{className:"max-w-[85%] sm:max-w-[75%] px-5 py-3 rounded-2xl rounded-tr-sm bg-bg-user border border-transparent",children:i.jsx("p",{className:"whitespace-pre-wrap break-words text-text-primary text-chat",children:p})})},v.entry.id):null}return v.kind==="assistant_message"?i.jsx("div",{className:"mb-6",children:i.jsx(lc,{message:v.entry})},v.entry.id):v.kind==="assistant_tools"?i.jsx("div",{className:"mb-6",children:i.jsx(ep,{entries:v.entries})},`tools-${S}`):null}),m&&o.length>0&&i.jsxs("div",{className:"flex items-center gap-2 py-4 text-text-tertiary text-[12px]",children:[i.jsx(ve,{size:12,className:"animate-spin"}),i.jsx("span",{children:h("team.agentRunning")})]})]})})]})}function bx(e,t){const r=[];for(const n of e)n.type==="tool_call"&&r.push(n);for(const n of t.values())r.push(n);return r}function yx(e,t){const r={};for(const n of e){const s=n.input||{},l=n.toolName;if(l==="TaskCreate"){const d=n.result,a=typeof d=="string"?d:d&&typeof d=="object"?String(d.text??d.output??""):"",o=!a&&Array.isArray(n.content)?n.content.reduce((b,v)=>{var S;return b||String(((S=v==null?void 0:v.content)==null?void 0:S.text)??(v==null?void 0:v.text)??"")},""):"",c=(a||o).match(/Task #(\d+)/),m=c?c[1]:`t-${Object.keys(r).length+1}`;let h=s.owner?String(s.owner):void 0;if(!h&&(t!=null&&t.length)){const b=s.subject?String(s.subject).toLowerCase():"",v=s.description?String(s.description).toLowerCase():"",S=b+" "+v;for(const x of t)if(S.includes(x.toLowerCase())){h=x;break}}r[m]={id:m,subject:s.subject?String(s.subject):"",status:"pending",owner:h,activeForm:s.activeForm?String(s.activeForm):void 0}}else if(l==="TaskUpdate"){const d=s.taskId?String(s.taskId):void 0;if(d&&r[d]){const a=r[d];s.status&&s.status!=="deleted"&&(a.status=String(s.status)),s.subject&&(a.subject=String(s.subject)),s.owner!==void 0&&(a.owner=s.owner?String(s.owner):void 0),s.activeForm&&(a.activeForm=String(s.activeForm)),s.status==="deleted"&&delete r[d]}}}return Object.values(r)}function _x(e){return e.filter(t=>t.toolName==="TaskCreate"||t.toolName==="TaskUpdate").length}function vx({status:e}){switch(e){case"completed":return i.jsx(eu,{size:14,className:"text-accent-green flex-shrink-0"});case"in_progress":return i.jsx(ve,{size:14,className:"text-accent-brand flex-shrink-0 animate-spin"});default:return i.jsx(Ih,{size:14,className:"text-text-tertiary flex-shrink-0"})}}function xx({member:e,isFocused:t,onClick:r}){var o;const n=e.status==="running"||e.status==="pending",s=e.status==="failed"||e.status==="killed",l=ob(e.color),d=si(e.color),a=[];return e.toolCallCount&&a.push(`${e.toolCallCount} tools`),(o=e.tokenUsage)!=null&&o.lastContextWindow&&a.push(`${(e.tokenUsage.lastContextWindow/1e3).toFixed(1)}k`),i.jsxs("button",{type:"button",onClick:r,className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] transition-colors cursor-pointer ${t?`${l.bg}`:n?`${l.bg} hover:opacity-80`:s?"bg-accent-red/10 text-accent-red":"bg-bg-secondary/50 text-text-tertiary hover:bg-bg-secondary/70"}`,style:{color:t||n?d:void 0,...t?{boxShadow:`0 0 0 1px ${d}40`}:{}},children:[i.jsxs("span",{className:"font-medium",children:["@",e.name]}),a.length>0&&i.jsx("span",{className:"opacity-70",children:a.join(" · ")}),n&&i.jsx(ve,{size:9,className:"animate-spin flex-shrink-0"}),s&&i.jsx(Rn,{size:9,className:"flex-shrink-0"}),!n&&!s&&i.jsx(kt,{size:9,className:"flex-shrink-0"})]})}function Sx(){const e=Ye(R=>R.timeline),t=Ye(R=>R.childToolCalls),r=Ye(R=>R.isAgentRunning),{t:n}=ie(),[s,l]=C.useState(!0),d=Be(R=>R.isInTeam),a=Be(R=>R.members),o=Be(R=>R.focusedMemberName),c=Be(R=>R.setFocusedMember),m=C.useMemo(()=>{const R=new Map;for(const q of a)q.color&&R.set(q.name,q.color);return R},[a]),h=C.useRef(0),[b,v]=C.useState(!1),S=C.useRef(r),x=C.useMemo(()=>bx(e,t),[e,t]),p=C.useMemo(()=>a.map(R=>R.name),[a]),g=C.useMemo(()=>yx(x,p),[x,p]),u=C.useMemo(()=>_x(x),[x]);C.useEffect(()=>{!S.current&&r&&(h.current=u,v(!0)),S.current=r},[r,u]),C.useEffect(()=>{b&&u>h.current&&v(!1)},[b,u]);const f=C.useCallback(()=>l(R=>!R),[]),y=C.useCallback(R=>{R.stopPropagation(),h.current=u,v(!0)},[u]),k=C.useCallback(R=>{c(o===R?null:R)},[o,c]),_=C.useCallback(R=>{R.owner&&m.has(R.owner)&&c(o===R.owner?null:R.owner)},[o,m,c]),E=a.filter(R=>R.status==="running"||R.status==="pending"),w=E.length>0,N=!r&&w,I=d&&a.length>0,A=g.length>0,M=A&&g.every(R=>R.status==="completed"),O=I&&!w&&!r,B=A&&g.every(R=>R.status==="pending")&&!r&&!w,z=A&&!(M||O||B)&&!b,P=I&&(w||o);if(!z&&!P)return null;const U=g.filter(R=>R.status==="completed").length,T=g.length,L=g.find(R=>R.status==="in_progress"),$=L?L.activeForm||L.subject:`${U}/${T}`;return i.jsx("div",{className:"flex-none px-4 sm:px-6 pb-1",children:i.jsx("div",{className:"max-w-3xl mx-auto",children:i.jsxs("div",{className:"rounded-lg border border-border-muted/15 bg-bg-secondary/30 overflow-hidden",children:[i.jsxs("button",{onClick:f,className:"flex items-center gap-2 w-full px-3 py-1.5 hover:bg-bg-hover/30 transition-colors cursor-pointer",children:[N?i.jsx(ve,{size:13,className:"animate-spin text-accent-purple flex-shrink-0"}):P?i.jsx(yu,{size:13,className:"text-accent-purple flex-shrink-0"}):i.jsx(du,{size:13,className:"text-text-tertiary flex-shrink-0"}),N?i.jsx("span",{className:"text-xs font-medium text-accent-purple",children:n("team.waitingForTeammates").replace("{count}",String(E.length)).replace("{s}",E.length>1?"s":"")}):i.jsxs(i.Fragment,{children:[z&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-xs font-medium text-text-primary",children:n("todo.title")}),i.jsxs("span",{className:"text-[11px] text-text-tertiary tabular-nums",children:[U,"/",T]})]}),P&&z&&i.jsx("span",{className:"text-border-muted/40",children:"·"}),P&&i.jsxs("span",{className:"text-[11px] text-text-tertiary",children:[n("team.title")," ",E.length>0?n("team.activeCount").replace("{count}",String(E.length)):""]})]}),!s&&z&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-border-muted/60 select-none",children:"|"}),L&&r&&i.jsx(ve,{size:10,className:"text-accent-brand animate-spin flex-shrink-0"}),i.jsx("span",{className:"text-xs text-text-secondary truncate flex-1 text-left",children:$})]}),i.jsx("span",{className:"flex-1"}),!r&&!N&&i.jsx("span",{role:"button",tabIndex:0,onClick:y,onKeyDown:R=>{R.key==="Enter"&&y(R)},className:"text-text-tertiary hover:text-text-primary p-0.5 rounded transition-colors flex-shrink-0",children:i.jsx(Ue,{size:12})}),s?i.jsx(it,{size:12,className:"text-text-tertiary flex-shrink-0"}):i.jsx(De,{size:12,className:"text-text-tertiary flex-shrink-0"})]}),s&&i.jsxs("div",{className:"border-t border-border-muted/40",children:[P&&i.jsx("div",{className:"flex flex-wrap gap-1.5 px-3 py-1.5",children:a.map(R=>i.jsx(xx,{member:R,isFocused:o===R.name,onClick:()=>k(R.name)},R.name))}),z&&i.jsx("div",{className:`px-3 py-1.5 space-y-0.5 max-h-52 overflow-y-auto ${P?"border-t border-border-muted/30":""}`,children:g.map((R,q)=>{const W=R.owner?m.get(R.owner):void 0,Y=!!W,V=W?si(W):void 0;return i.jsxs("div",{onClick:Y?()=>_(R):void 0,className:`flex items-center gap-2 py-0.5 text-xs ${Y?"cursor-pointer hover:bg-bg-hover/30 rounded px-1 -mx-1":""} ${R.status==="in_progress"?"text-text-primary":R.status==="completed"?"text-text-tertiary":"text-text-secondary"}`,children:[i.jsx(vx,{status:R.status}),i.jsxs("span",{className:`truncate ${R.status==="completed"?"line-through":""}`,children:[q+1,". ",R.status==="in_progress"?R.activeForm||R.subject||n("todo.untitled"):R.subject||n("todo.untitled")]}),W&&i.jsxs("span",{className:"text-[10px] font-medium flex-shrink-0 ml-auto",style:{color:V},children:["@",R.owner]})]},R.id)})})]})]})})})}const kx=1e4;function wx(){const{t:e}=ie(),{workers:t,daemon:r,loading:n,error:s,fetchWorkers:l,fetchDaemonStatus:d,killWorker:a,startDaemon:o,stopDaemon:c,restartDaemon:m}=hc();C.useEffect(()=>{l(),d();const S=setInterval(()=>{l(),d()},kx);return()=>clearInterval(S)},[l,d]);const h=C.useCallback(()=>{l(),d()},[l,d]),b=C.useCallback(S=>{window.location.hash=`#/logs?worker=${S.pid}`},[]),v=C.useCallback(async S=>{confirm(e("workers.action.kill.confirm"))&&await a(String(S.pid))},[a,e]);return i.jsxs("div",{className:"flex-1 overflow-auto p-4 md:p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(zt,{size:20,className:"text-accent-brand"}),i.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("workers.title")})]}),i.jsxs("button",{onClick:h,className:`flex items-center gap-1.5 px-3 py-1.5 text-sm text-text-secondary
|
|
588
|
+
hover:text-text-primary hover:bg-bg-hover rounded-lg transition-colors`,title:e("workers.refresh"),children:[i.jsx(st,{size:14,className:n?"animate-spin":""}),i.jsx("span",{children:e("workers.refresh")})]})]}),s&&i.jsx("div",{className:"mb-4 p-3 rounded-xl bg-red-50 dark:bg-red-900/20 text-red-600 dark:text-red-400 text-sm border border-red-200 dark:border-red-800/30",children:s}),i.jsx(Ex,{daemon:r,onStart:()=>o(),onStop:c,onRestart:m}),i.jsx(Cx,{workers:t,onViewLogs:b,onKill:v})]})}function Ex({daemon:e,onStart:t,onStop:r,onRestart:n}){const{t:s}=ie(),l=(e==null?void 0:e.status)==="running",[d,a]=C.useState(null),o=C.useCallback(async(c,m)=>{a(c);try{await m()}finally{a(null)}},[]);return i.jsx("div",{className:`bg-bg-secondary rounded-xl p-4 md:p-5 border mb-6 transition-colors hover:border-gray-300 dark:hover:border-gray-600 ${l?"border-green-400/40 ring-1 ring-green-400/10":"border-border-primary"}`,children:i.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Or,{size:18,className:l?"text-green-500":"text-text-tertiary"}),i.jsx("span",{className:"text-base font-semibold text-text-primary",children:s("workers.daemon")}),(e==null?void 0:e.pid)&&i.jsxs("span",{className:"text-xs text-text-tertiary font-mono bg-bg-tertiary px-2 py-0.5 rounded-md ml-2 border border-border-primary/50",children:["PID ",e.pid]})]}),i.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"relative flex h-2.5 w-2.5",children:[l&&i.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),i.jsx("span",{className:`relative inline-flex rounded-full h-2.5 w-2.5 ${l?"bg-green-500":"bg-gray-400"}`})]}),i.jsx("span",{className:"text-sm font-medium text-text-secondary",children:s(l?"workers.daemon.running":"workers.daemon.stopped")})]}),(e==null?void 0:e.endpoint)&&i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-border-primary",children:"|"}),i.jsx(nt,{size:14,className:"text-text-tertiary ml-1"}),i.jsx("a",{href:e.endpoint,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-accent-brand hover:underline",children:e.endpoint})]})]})]}),i.jsx("div",{className:"flex items-center gap-2 mt-2 md:mt-0",children:l?i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:()=>o("stop",r),disabled:d!==null,className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-lg border border-border-primary
|
|
589
|
+
bg-bg-primary text-text-secondary hover:text-red-600 hover:border-red-300 hover:bg-red-50 dark:hover:bg-red-900/20 transition-all disabled:opacity-50`,children:[d==="stop"?i.jsx(ve,{size:14,className:"animate-spin"}):i.jsx(fu,{size:14}),s("workers.daemon.stop")]}),i.jsxs("button",{onClick:()=>o("restart",n),disabled:d!==null,className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-lg border border-border-primary
|
|
590
|
+
bg-bg-primary text-text-secondary hover:text-text-primary hover:bg-bg-hover transition-all disabled:opacity-50`,children:[d==="restart"?i.jsx(ve,{size:14,className:"animate-spin"}):i.jsx(og,{size:14}),s("workers.daemon.restart")]})]}):i.jsxs("button",{onClick:()=>o("start",t),disabled:d!==null,className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-lg shadow-sm
|
|
591
|
+
bg-accent-brand text-white hover:bg-accent-brand/90 hover:shadow transition-all disabled:opacity-70`,children:[d==="start"?i.jsx(ve,{size:14,className:"animate-spin"}):i.jsx(Qm,{size:14}),s(d==="start"?"workers.daemon.starting":"workers.daemon.start")]})})]})})}function Cx({workers:e,onViewLogs:t,onKill:r}){const{t:n}=ie();return i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[i.jsx(zt,{size:18,className:"text-text-secondary"}),i.jsxs("h2",{className:"text-base font-medium text-text-primary",children:[n("workers.active")," (",e.length,")"]})]}),e.length===0?i.jsx("div",{className:"text-center py-12 text-text-tertiary",children:n("workers.empty")}):i.jsx("div",{className:"space-y-4",children:[...e].sort((s,l)=>(l.isCurrent?1:0)-(s.isCurrent?1:0)).map(s=>i.jsx(Nx,{worker:s,onViewLogs:t,onKill:r},`${s.pid}-${s.hostname}`))})]})}const Tx={interactive:"bg-blue-50 text-blue-700 border border-blue-200 dark:bg-blue-500/10 dark:text-blue-400 dark:border-blue-500/20",bg:"bg-purple-50 text-purple-700 border border-purple-200 dark:bg-purple-500/10 dark:text-purple-400 dark:border-purple-500/20",daemon:"bg-green-50 text-green-700 border border-green-200 dark:bg-green-500/10 dark:text-green-400 dark:border-green-500/20","daemon-worker":"bg-orange-50 text-orange-700 border border-orange-200 dark:bg-orange-500/10 dark:text-orange-400 dark:border-orange-500/20"};function Nx({worker:e,onViewLogs:t,onKill:r}){const{t:n}=ie();return i.jsxs("div",{className:"group bg-bg-secondary rounded-xl p-4 md:p-5 border border-border-primary transition-colors hover:border-gray-300 dark:hover:border-gray-600",children:[i.jsxs("div",{className:"flex items-center justify-between mb-3",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx("span",{className:`inline-block px-2.5 py-0.5 text-xs font-medium rounded-md ${Tx[e.kind]||"bg-gray-100 text-gray-600"}`,children:e.kind}),e.isCurrent&&i.jsx("span",{className:"text-[10px] uppercase font-bold tracking-wider px-1.5 py-0.5 bg-accent-brand/10 text-accent-brand rounded",children:"current"}),i.jsxs("span",{className:"text-xs text-text-tertiary font-mono",children:["PID ",e.pid]}),e.name&&e.name!=="-"&&i.jsx("span",{className:"text-sm font-medium text-text-primary",children:e.name})]}),i.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.url&&i.jsx("a",{href:Bd(e),target:"_blank",rel:"noopener noreferrer",className:"p-1.5 rounded-md text-text-tertiary hover:text-accent-brand hover:bg-bg-hover transition-colors",title:n("workers.action.open"),children:i.jsx(nt,{size:14})}),!e.manual&&i.jsx("button",{onClick:()=>t(e),className:"p-1.5 rounded-md text-text-tertiary hover:text-text-primary hover:bg-bg-hover transition-colors",title:n("workers.action.logs"),children:i.jsx(et,{size:14})}),!e.isCurrent&&i.jsx("button",{onClick:()=>r(e),className:"p-1.5 rounded-md text-text-tertiary hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 transition-colors",title:n("workers.action.kill"),children:i.jsx(hu,{size:14})})]})]}),i.jsxs("div",{className:"flex flex-col md:flex-row md:items-start justify-between gap-3 md:gap-6",children:[i.jsxs("div",{className:"flex flex-col gap-1.5 flex-1 min-w-0",children:[i.jsx(ft,{path:e.cwd,className:"text-[13px] text-text-secondary font-mono truncate max-w-full"}),e.url&&i.jsxs("a",{href:Bd(e),target:"_blank",rel:"noopener noreferrer",className:"text-xs text-text-tertiary hover:text-accent-brand truncate inline-flex items-center gap-1",title:e.url,children:[i.jsx(nt,{size:10,className:"flex-none"}),e.url]})]}),i.jsxs("div",{className:"flex flex-wrap gap-x-8 gap-y-3 shrink-0",children:[i.jsx(Cn,{icon:i.jsx(ar,{size:14}),label:"Started",value:Rx(e.startedAt)}),e.version&&i.jsx(Cn,{icon:i.jsx(zt,{size:14}),label:"Version",value:e.version}),e.hostname&&i.jsx(Cn,{icon:i.jsx(Or,{size:14}),label:"Host",value:e.hostname})]})]})]})}function Cn({icon:e,label:t,value:r,valueClassName:n}){return i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsxs("div",{className:"flex items-center gap-1.5 text-text-tertiary",children:[e,i.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider",children:t})]}),i.jsx("div",{className:`text-sm font-semibold text-text-primary ${n||""}`,children:r})]})}function Ax(e){try{const t=new URL(e).hostname;return t==="127.0.0.1"||t==="localhost"||t==="::1"}catch{return!1}}function Bd(e){if(!e.url)return"#";if(Ax(e.url))return e.url;const t=Gv(String(e.pid));if(!t)return e.url;try{const r=new URL(e.url);return r.searchParams.set("password",t),r.toString()}catch{return e.url}}function Rx(e){const t=Math.floor((Date.now()-e)/1e3);if(t<60)return`${t}s ago`;const r=Math.floor(t/60);if(r<60)return`${r}m ago`;const n=Math.floor(r/60);return n<24?`${n}h ${r%60}m`:`${Math.floor(n/24)}d ${n%24}h`}function Ix(){const{viewState:e,checkAuth:t}=Gd(),{status:r,sessionId:n,topic:s,setPromptSuggestion:l,setTopic:d}=gt(),{connect:a}=nh(),{clearChat:o}=Ye(),c=Be(z=>z.focusedMemberName),{t:m,resolved:h}=ie(),[b,v]=C.useState(()=>{try{const z=sessionStorage.getItem("codebuddy_sidebar_open");return z!==null?window.innerWidth>=768?z==="true":!1:window.innerWidth>=768}catch{return window.innerWidth>=768}}),S=C.useRef(b),[x,p]=C.useState(!1),[g,u]=C.useState(!1),{splitPane:f,mainView:y,setMainView:k}=we(),_=C.useCallback(z=>{v(P=>{const U=typeof z=="function"?z(P):z;S.current=U;try{sessionStorage.setItem("codebuddy_sidebar_open",String(U))}catch{}return U})},[]);C.useEffect(()=>{const z=window.matchMedia("(min-width: 768px)"),P=U=>{U.matches?v(S.current):v(!1)};return z.addEventListener("change",P),()=>z.removeEventListener("change",P)},[]);const[E,w]=C.useState(!1),N=C.useRef();C.useEffect(()=>r!=="connected"?void 0:((()=>{fetch("/api/v1/sessions",{headers:me()}).then(P=>P.ok?P.json():null).then(P=>{P!=null&&P.sessions&&w(P.sessions.length>1)}).catch(()=>{})})(),()=>{N.current&&clearTimeout(N.current)}),[r,n]);const I=C.useCallback(z=>{f(z)},[f]),A=C.useCallback(async()=>{if(n){try{await Te().prompt(n,"/clear")}catch(z){console.error("New chat (/clear) failed:",z)}o(),d(null),l(null),k("chat"),window.location.hash="/chat"}},[n,o,d,l,k]),M=C.useCallback(async z=>{if(n){try{await Te().prompt(n,`/resume ${z}`)}catch(P){console.error("Switch session failed:",P)}k("chat"),window.location.hash="/chat"}},[n,k]),O=C.useCallback(z=>{k(z),window.location.hash=`/${z}`,window.innerWidth<768&&v(!1)},[k]);if(C.useEffect(()=>{const z=new URLSearchParams(window.location.search),P=z.get("password"),U=z.get("token");if(P||U){Hd(P||U),z.delete("password"),z.delete("token");const T=z.toString()?`${window.location.pathname}?${z.toString()}`:window.location.pathname;window.history.replaceState({},"",T)}t()},[t]),C.useEffect(()=>{if(e==="authenticated"){const z=oc();k(z),(!window.location.hash||window.location.hash==="#")&&(window.location.hash=`/${z}`)}},[e,k]),C.useEffect(()=>cy(P=>{k(P)}),[k]),C.useEffect(()=>{if(e==="authenticated"){const z=Ut()||void 0;a({token:z,continue:!0})}},[e,a]),C.useEffect(()=>{document.documentElement.lang=h,document.title=s?`${s} - CodeBuddy Code`:m("page.title")},[h,m,s]),e==="loading")return i.jsx("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsx(Qe,{size:"large",text:m("app.connecting")})})});if(e==="login")return i.jsx(Uv,{});const B=()=>{if(r==="connecting")return i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsx(Qe,{size:"large",text:m("app.connecting")})});if(r!=="connected"&&y!=="settings"&&y!=="docs")return i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-text-secondary mb-4 font-medium",children:m("app.connectFailed")}),i.jsx("button",{onClick:()=>a(),className:["px-6 py-2.5 bg-accent-brand text-white rounded-full","text-sm font-medium transition-all hover:bg-accent-brand/90","hover:scale-105 active:scale-95 shadow-sm"].join(" "),children:m("app.retry")})]})});switch(y){case"chat":return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"flex-1 overflow-hidden w-full relative",children:c?i.jsx(fx,{}):i.jsx(r_,{onClickCloseBottomSheet:()=>u(!1)})}),i.jsx(Sx,{}),i.jsx("div",{className:"flex-none bg-bg-primary",children:i.jsx(Pv,{onNavigate:O,onNewChat:A,onHistory:()=>p(!0),mainView:y,showBottomSheet:g,setShowBottomSheet:u})})]});case"tasks":return i.jsx(Cp,{});case"plugins":return i.jsx(yp,{});case"terminal":return null;case"remote-control":return i.jsx(ox,{onNavigate:O});case"editor":return i.jsx(Q_,{onMenuClick:()=>_(z=>!z)});case"changes":return i.jsx(Iu,{onMenuClick:()=>_(z=>!z)});case"settings":return i.jsx(vp,{});case"metrics":return i.jsx(rx,{});case"workers":return i.jsx(wx,{});case"logs":return i.jsx(Kv,{});case"docs":return i.jsx(fd,{});default:return null}};return y==="docs"&&window.location.hash.includes("standalone")?i.jsx("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:i.jsx(fd,{})}):i.jsxs("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:[i.jsx(hx,{isOpen:b,onClose:()=>_(!1),mainView:y,onNavigate:O}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0 relative transition-all duration-300 h-full",children:[y!=="editor"&&y!=="changes"&&i.jsx(mx,{onMenuClick:()=>_(z=>!z),onNewChat:A,onSplitTerminal:I,onHistory:()=>p(!0),hasHistory:E}),i.jsxs("div",{className:"flex-1 flex flex-col w-full overflow-hidden relative",children:[i.jsx("div",{className:"flex-1 flex flex-col w-full",style:{display:y==="terminal"?"flex":"none"},children:i.jsx(Np,{})}),y!=="terminal"&&B()]}),i.jsx(tv,{isOpen:x,onClose:()=>p(!1),onSwitchSession:M})]})]})}Xp.createRoot(document.getElementById("root")).render(i.jsx(C.StrictMode,{children:i.jsx(Ix,{})}));
|