@tencent-ai/agent-sdk 0.3.103 → 0.3.105

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.
@@ -0,0 +1,480 @@
1
+ var qu=Object.defineProperty;var Vu=(e,t,r)=>t in e?qu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Re=(e,t,r)=>Vu(e,typeof t!="symbol"?t+"":t,r);import{W as ve,a as N,j as a,f as Ku,p as Hl,b as Gl,n as Wl,h as Yu,s as Xu,d as ql,M as Cr,c as Tr}from"./markdown-BCtMzQ91.js";import{r as Zu}from"./vendor-C4-dOWG8.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"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const p of c.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&i(p)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();const Vl=e=>{let t;const r=new Set,i=(l,h)=>{const m=typeof l=="function"?l(t):l;if(!Object.is(m,t)){const b=t;t=h??(typeof m!="object"||m===null)?m:Object.assign({},t,m),r.forEach(_=>_(t,b))}},s=()=>t,n={setState:i,getState:s,getInitialState:()=>o,subscribe:l=>(r.add(l),()=>r.delete(l))},o=t=e(i,s,n);return n},Ju=(e=>e?Vl(e):Vl),Qu=e=>e;function ep(e,t=Qu){const r=ve.useSyncExternalStore(e.subscribe,ve.useCallback(()=>t(e.getState()),[e,t]),ve.useCallback(()=>t(e.getInitialState()),[e,t]));return ve.useDebugValue(r),r}const Kl=e=>{const t=Ju(e),r=i=>ep(t,i);return Object.assign(r,t),r},Ue=(e=>e?Kl(e):Kl),Yl="codebuddy-theme";function sd(){var e;return typeof window<"u"&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"}function Xl(e){return e==="system"?sd():e}function Ur(e){document.documentElement.setAttribute("data-theme",e)}const yt=Ue((e,t)=>{const r=typeof localStorage<"u"?localStorage.getItem(Yl):null,i=r&&["light","dark","system"].includes(r)?r:"light",s=Xl(i);return Ur(s),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{if(t().mode==="system"){const p=sd();Ur(p),e({resolved:p})}}),{mode:i,resolved:s,setMode:c=>{const p=Xl(c);localStorage.setItem(Yl,c),Ur(p),e({mode:c,resolved:p})},toggle:()=>{const c=t().mode,p=c==="light"?"dark":c==="dark"?"system":"light";t().setMode(p)}}});var sr={},Zl;function tp(){if(Zl)return sr;Zl=1;var e=Zu();return sr.createRoot=e.createRoot,sr.hydrateRoot=e.hydrateRoot,sr}var rp=tp();let ht=0;function si(e){const t=e[e.length-1];return t&&t.type==="message"&&t.role==="assistant"&&t.streaming?e.length-1:-1}function kt(e){const t=si(e);if(t===-1)return e;const r=[...e],i=r[t],s={streaming:!1};return i.thinking&&i.thinkingStartTime&&!i.thinkingDuration&&(s.thinkingDuration=Math.round((Date.now()-i.thinkingStartTime)/1e3)),r[t]={...i,...s},r}const je=Ue((e,t)=>({timeline:[],childToolCalls:new Map,isAgentRunning:!1,stopReason:null,errorMessage:null,historyLoading:!1,hasPendingInterruption:!1,addUserMessage:(r,i,s)=>{e(c=>({timeline:[...kt(c.timeline),{type:"message",id:`msg-${++ht}`,role:"user",content:r,...i&&i.length>0?{images:i}:{},...s&&s.length>0?{files:s}:{},timestamp:Date.now()}],isAgentRunning:!0,stopReason:null,errorMessage:null}))},addQueuedUserMessage:(r,i,s)=>{e(c=>({timeline:[...c.timeline,{type:"message",id:`msg-${++ht}`,role:"user",content:r,...i&&i.length>0?{images:i}:{},...s&&s.length>0?{files:s}:{},timestamp:Date.now()}]}))},addChunk:(r,i,s)=>{e(c=>{if(i){const o=c.timeline.findIndex(l=>l.type==="tool_call"&&l.id===i);if(o!==-1){const l=c.timeline[o],h=[...l.subagentTimeline||[]],m=h[h.length-1];m&&m.type==="message"&&m.streaming?h[h.length-1]={...m,content:m.content+r}:h.push({type:"message",id:`sub-msg-${++ht}`,content:r,streaming:!0});const b=[...c.timeline];return b[o]={...l,subagentTimeline:h},{timeline:b}}}const p=[...c.timeline],n=si(p);if(n!==-1){const o=p[n],l={content:o.content+r};s&&!o.isCompactInternal&&(l.isCompactInternal=!0),o.thinking&&o.thinkingStartTime&&!o.thinkingDuration&&!o.content&&(l.thinkingDuration=Math.round((Date.now()-o.thinkingStartTime)/1e3)),p[n]={...o,...l}}else p.push({type:"message",id:`msg-${++ht}`,role:"assistant",content:r,timestamp:Date.now(),streaming:!0,...s?{isCompactInternal:s}:{}});return{timeline:p}})},addThinkingChunk:(r,i)=>{e(s=>{if(i){const n=s.timeline.findIndex(o=>o.type==="tool_call"&&o.id===i);if(n!==-1){const o=s.timeline[n],l=[...o.subagentTimeline||[]],h=l[l.length-1];h&&h.type==="message"&&h.streaming?l[l.length-1]={...h,content:h.content+r}:l.push({type:"message",id:`sub-msg-${++ht}`,content:r,streaming:!0});const m=[...s.timeline];return m[n]={...o,subagentTimeline:l},{timeline:m}}}const c=[...s.timeline],p=si(c);if(p!==-1){const n=c[p];c[p]={...n,thinking:(n.thinking||"")+r,thinkingStartTime:n.thinkingStartTime||Date.now()}}else c.push({type:"message",id:`msg-${++ht}`,role:"assistant",content:"",thinking:r,thinkingStartTime:Date.now(),timestamp:Date.now(),streaming:!0});return{timeline:c}})},finalizeAssistantMessage:()=>{e(r=>({timeline:kt(r.timeline)}))},addToolCall:r=>{e(i=>{const s=kt(i.timeline);if(r.parentToolCallId){const c=new Map(i.childToolCalls);return c.set(r.id,{...r,type:"tool_call"}),{timeline:s.map(p=>{if(p.type==="tool_call"&&p.id===r.parentToolCallId){const n=(p.subagentTimeline||[]).map(o=>o.type==="message"&&o.streaming?{...o,streaming:!1}:o);return{...p,children:[...p.children||[],r.id],subagentTimeline:[...n,{type:"tool_call_ref",toolCallId:r.id}]}}return p}),childToolCalls:c}}return{timeline:[...s,{...r,type:"tool_call"}]}})},updateToolCall:(r,i)=>{e(s=>{const c=l=>!l||!Array.isArray(l)?!1:l.some(h=>h.type==="diff"),p=l=>{let h=i;if(c(l.content)&&i.content!==void 0&&!c(i.content)){const{content:m,...b}=i;h=b}return{...l,...h,type:"tool_call"}};if(s.timeline.some(l=>l.type==="tool_call"&&l.id===r))return{timeline:s.timeline.map(l=>l.type==="tool_call"&&l.id===r?p(l):l)};const o=s.childToolCalls.get(r);if(o){const l=new Map(s.childToolCalls);return l.set(r,p(o)),{childToolCalls:l}}return{}})},getChildToolCall:r=>t().childToolCalls.get(r),addQuestion:r=>{e(i=>({timeline:[...kt(i.timeline),{...r,type:"question",status:"pending"}],hasPendingInterruption:!0}))},submitQuestion:(r,i)=>{e(s=>{const c=s.timeline.map(n=>n.type==="question"&&n.id===r?{...n,status:"answered",answers:i}:n),p=c.some(n=>n.type==="interruption"&&!n.resolved||n.type==="question"&&n.status==="pending");return{timeline:c,hasPendingInterruption:p}})},cancelQuestion:r=>{e(i=>{const s=i.timeline.map(p=>p.type==="question"&&p.id===r?{...p,status:"cancelled"}:p),c=s.some(p=>p.type==="interruption"&&!p.resolved||p.type==="question"&&p.status==="pending");return{timeline:s,hasPendingInterruption:c}})},addInterruption:r=>{e(i=>({timeline:[...kt(i.timeline),{...r,type:"interruption"}],hasPendingInterruption:!0}))},resolveInterruption:(r,i)=>{e(s=>{const c=s.timeline.map(n=>n.type==="interruption"&&n.id===r?{...n,resolved:!0,decision:i}:n),p=c.some(n=>n.type==="interruption"&&!n.resolved||n.type==="question"&&n.status==="pending");return{timeline:c,hasPendingInterruption:p}})},resolveInterruptionByToolCallId:(r,i)=>{e(s=>{const c=s.timeline.map(n=>n.type==="interruption"&&n.toolCallId===r&&!n.resolved?{...n,resolved:!0,decision:i}:n),p=c.some(n=>n.type==="interruption"&&!n.resolved||n.type==="question"&&n.status==="pending");return{timeline:c,hasPendingInterruption:p}})},setHistoryLoading:r=>e({historyLoading:r}),addHistoryUserMessage:(r,i,s,c)=>{e(p=>({timeline:[...kt(p.timeline),{type:"message",id:`msg-${++ht}`,role:"user",content:r,...i&&i.length>0?{images:i}:{},timestamp:Date.now(),...s?{isCompactInternal:s}:{},...c?{channel:c}:{}}]}))},setAgentRunning:r=>e({isAgentRunning:r}),setSessionEnd:(r,i)=>{t().finalizeAssistantMessage();const s=r==="end_turn";e(c=>{const p=c.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),n=new Map(c.childToolCalls);for(const[o,l]of n)l.status==="running"&&n.set(o,{...l,status:"completed"});return{isAgentRunning:!1,hasPendingInterruption:!1,stopReason:s?null:r,errorMessage:s?null:i||null,timeline:p,childToolCalls:n}})},clearMessages:()=>e({timeline:[],childToolCalls:new Map,isAgentRunning:!1,stopReason:null,errorMessage:null,historyLoading:!1,hasPendingInterruption:!1}),clearChat:()=>{t().clearMessages()}})),ip="modulepreload",np=function(e){return"/"+e},Jl={},oi=function(t,r,i){let s=Promise.resolve();if(r&&r.length>0){let p=function(l){return Promise.all(l.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),o=(n==null?void 0:n.nonce)||(n==null?void 0:n.getAttribute("nonce"));s=p(r.map(l=>{if(l=np(l),l in Jl)return;Jl[l]=!0;const h=l.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${m}`))return;const b=document.createElement("link");if(b.rel=h?"stylesheet":ip,h||(b.as="script"),b.crossOrigin="",b.href=l,o&&b.setAttribute("nonce",o),document.head.appendChild(b),h)return new Promise((_,w)=>{b.addEventListener("load",_),b.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${l}`)))})}))}function c(p){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=p,window.dispatchEvent(n),!n.defaultPrevented)throw p}return s.then(p=>{for(const n of p||[])n.status==="rejected"&&c(n.reason);return t().catch(c)})},tt=Ue((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 i=Ie();try{if(e({status:"connecting",error:null}),r){const{AcpClient:s}=await oi(async()=>{const{AcpClient:n}=await Promise.resolve().then(()=>ap);return{AcpClient:n}},void 0),c=new s(void 0,r);c.on("status_change",n=>e({status:n})),c.on("model_update",n=>{e({models:n.availableModels||[],currentModel:n.currentModelId||""})});const{sessionId:p}=await c.initializeSession({continue:!0});e({status:"connected",sessionId:p})}else{const{sessionId:s}=await i.initializeSession({continue:!0});e({status:"connected",sessionId:s})}}catch(s){e({status:"error",error:s.message})}},disconnect:async()=>{await Ie().disconnect(),e({status:"disconnected",sessionId:null})}})),od=Ue(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})}}));async function Fe(e,t,r){const i=(r==null?void 0:r.maxRetries)??3,s=(r==null?void 0:r.baseDelay)??500;for(let c=0;c<=i;c++)try{const p=await fetch(e,t);if(p.status>=500&&c<i){console.warn(`Request failed with ${p.status}, retrying (${c+1}/${i})...`),await new Promise(n=>setTimeout(n,s*Math.pow(2,c)));continue}return p}catch(p){if(c<i){console.warn(`Request failed with network error, retrying (${c+1}/${i})...`,p),await new Promise(n=>setTimeout(n,s*Math.pow(2,c)));continue}throw p}throw new Error("fetchWithRetry: max retries exceeded")}class Ni{constructor(t,r){Re(this,"baseUrl");Re(this,"token");Re(this,"connectionId",null);Re(this,"sessionToken",null);Re(this,"nextId",1);Re(this,"sseAbortController",null);Re(this,"sseReconnectTimer",null);Re(this,"reconnecting",null);Re(this,"listeners",new Map);Re(this,"_status","disconnected");Re(this,"pendingRequests",new Map);Re(this,"permissionRequestIds",new Map);Re(this,"extMethodRequestIds",new Map);Re(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 i={};this.token&&(i.Authorization=`Bearer ${this.token}`);const s=await Fe(`${this.baseUrl}/api/v1/acp/connect`,{method:"POST",headers:i});if(!s.ok){let n="";try{const o=await s.json();(r=o==null?void 0:o.error)!=null&&r.message&&(n=o.error.message)}catch{}throw new Error(n||`ACP connect failed: ${s.status} ${s.statusText}`)}const{connectionId:c,sessionToken:p}=await s.json();this.connectionId=c,this.sessionToken=p,this.setStatus("connected"),this.sseAbortController=new AbortController,this.tryEstablishGetSse().catch(()=>{})}catch(i){throw this.setStatus("error"),i}}async tryEstablishGetSse(t=0){var p;const s={Accept:"text/event-stream"};this.connectionId&&(s["acp-connection-id"]=this.connectionId),this.token&&(s.Authorization=`Bearer ${this.token}`);const c=n=>{if(this._status==="connected"&&n<10){const o=Math.min(2e3*Math.pow(2,n),6e4);this.sseReconnectTimer=setTimeout(()=>{this.sseReconnectTimer=null,this.tryEstablishGetSse(n+1).catch(()=>{})},o)}};try{const n=await fetch(`${this.baseUrl}/api/v1/acp`,{headers:s,signal:(p=this.sseAbortController)==null?void 0:p.signal});n.ok?this.readSseStream(n).catch(o=>{o.name!=="AbortError"&&console.error("GET SSE stream error:",o)}).finally(()=>{c(0)}):c(t)}catch(n){n.name!=="AbortError"&&(console.warn("GET SSE connection failed (notifications will use POST stream):",n.message),c(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 i=await Fe(`${this.baseUrl}/api/v1/acp/connect`,{method:"POST",headers:r});if(!i.ok)throw new Error(`Reconnect failed: ${i.status}`);const{connectionId:s,sessionToken:c}=await i.json();this.connectionId=s,this.sessionToken=c,await this.request("initialize",{protocolVersion:1,clientInfo:{name:"codebuddy-web-ui",version:"1.0.0"},clientCapabilities:{_meta:{"codebuddy.ai":{question:!0,promptSuggestion:!0}}}});let p=null;typeof window<"u"&&(p=new URLSearchParams(window.location.search).get("sessionId")),!p&&typeof sessionStorage<"u"&&(p=sessionStorage.getItem("acp-session-id")),p&&await this.request("session/load",{sessionId:p,cwd:window.location.origin,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 p,n;const r=(t==null?void 0:t.continue)??!1;await this.connect();const i=await this.request("initialize",{protocolVersion:1,clientInfo:{name:"codebuddy-web-ui",version:"1.0.0"},clientCapabilities:{_meta:{"codebuddy.ai":{question:!0,promptSuggestion:!0}}}});i.connectionId&&(this.connectionId=i.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:window.location.origin,mcpServers:[]});return this.syncSessionIdToUrl(s),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",s),(p=i.agentCapabilities)!=null&&p.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 c=await this.request("session/new",{cwd:window.location.origin,mcpServers:[],...r&&{_meta:{"codebuddy.ai/continue":!0}}});return this.syncSessionIdToUrl(c.sessionId),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",c.sessionId),(n=i.agentCapabilities)!=null&&n.delegateToolsSupport&&await this.registerUIControlDelegateTool(c.sessionId),{connectionId:this.connectionId||"",sessionId:c.sessionId,models:c.models,modes:c.modes,configOptions:c.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,i,s){const c=[];if(i)for(const p of i)c.push({type:"image",data:p.data,mimeType:p.mimeType});if(s)for(const p of s)c.push({type:"resource",resource:{uri:`file://${p.name}`,text:p.text,mimeType:p.mimeType}});return r&&c.push({type:"text",text:r}),this.request("session/prompt",{sessionId:t,prompt:c})}async loadSession(t){return this.request("session/load",{sessionId:t,cwd:window.location.origin,mcpServers:[]})}async cancel(t){this.cancelling=!0,await this.notify("session/cancel",{sessionId:t})}async approveInterruption(t,r,i){const s=this.permissionRequestIds.get(r);if(s===void 0){console.error(`No pending permission request for interruption: ${r}`);return}this.permissionRequestIds.delete(r);const c=this.mapPermissionDecisionToOptionId(i);await this.sendJsonRpcResult(s,{outcome:{outcome:"selected",optionId:c}})}async submitQuestionAnswers(t,r,i){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:i}),this.extMethodRequestIds.delete(r)}async cancelQuestionAnswers(t,r){const i=this.extMethodRequestIds.get(r);if(i===void 0)throw new Error(`No pending question request for toolCallId: ${r}`);await this.sendJsonRpcResult(i,{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,i){return this.request("session/set_config_option",{sessionId:t,configId:r,value:i})}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 i=this.listeners.get(t);if(i){const s=i.indexOf(r);s!==-1&&i.splice(s,1)}}}request(t,r){const i=this.nextId++,s={jsonrpc:"2.0",id:i,method:t,params:r},c=this.buildAcpHeaders();return new Promise((p,n)=>{this.pendingRequests.set(i,{resolve:p,reject:n});const o=new XMLHttpRequest;o.open("POST",`${this.baseUrl}/api/v1/acp`,!0);for(const[b,_]of Object.entries(c))o.setRequestHeader(b,_);let l=0,h="";const m=()=>{const b=o.responseText;if(b.length<=l)return;const _=b.substring(l);l=b.length,h+=_;const w=h.split(`
2
+
3
+ `);h=w.pop()||"";for(const v of w){const u=v.split(`
4
+ `);let f="";for(const d of u)d.startsWith("data: ")&&(f+=d.substring(6));if(f)try{const d=JSON.parse(f);this.handleMessage(d)}catch{}}};o.onprogress=m,o.onload=()=>{var _;if(m(),o.status<200||o.status>=300){const w=this.pendingRequests.get(i);if(w){if(this.pendingRequests.delete(i),o.status===409&&t!=="initialize"){console.warn(`ACP connection lost (409), reconnecting and retrying ${t}...`),this.reconnect().then(()=>this.request(t,r)).then(u=>w.resolve(u),u=>w.reject(u));return}let v="";try{const u=JSON.parse(o.responseText);(_=u==null?void 0:u.error)!=null&&_.message&&(v=u.error.message)}catch{}w.reject(new Error(v||`ACP request failed: ${o.status} ${o.statusText}`))}return}if(h.trim()){const w=h.split(`
5
+ `);let v="";for(const u of w)u.startsWith("data: ")&&(v+=u.substring(6));if(v)try{const u=JSON.parse(v);this.handleMessage(u)}catch{}}const b=this.pendingRequests.get(i);b&&(this.pendingRequests.delete(i),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(i);b&&(this.pendingRequests.delete(i),b.reject(new Error(`Network error during ACP request: ${t}`)))},o.ontimeout=()=>{const b=this.pendingRequests.get(i);b&&(this.pendingRequests.delete(i),b.reject(new Error(`Request timeout: ${t}`)))},o.timeout=600*1e3,o.send(JSON.stringify(s))})}async notify(t,r){const i={jsonrpc:"2.0",method:t,params:r};await fetch(`${this.baseUrl}/api/v1/acp`,{method:"POST",headers:this.buildAcpHeaders(),body:JSON.stringify(i)})}async readSseStream(t){var c;const r=(c=t.body)==null?void 0:c.getReader();if(!r)return;const i=new TextDecoder;let s="";try{for(;;){const{done:p,value:n}=await r.read();if(p)break;s+=i.decode(n,{stream:!0});const o=s.split(`
6
+
7
+ `);s=o.pop()||"";for(const l of o){const h=l.split(`
8
+ `);let m="";for(const b of h)b.startsWith("data: ")&&(m+=b.substring(6));if(m)try{const b=JSON.parse(m);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 i=r.update.sessionUpdate;this.emit(i,r.update)}}}mapPermissionDecisionToOptionId(t){return t==="allowAll"?"allow_always":t==="allow"?"allow":t==="rejectAndExitPlan"?"reject_and_exit_plan":"reject"}async sendJsonRpcResult(t,r){var c;const i={jsonrpc:"2.0",id:t,result:r},s=await fetch(`${this.baseUrl}/api/v1/acp`,{method:"POST",headers:this.buildAcpHeaders(),body:JSON.stringify(i)});if(!s.ok){let p="";try{const n=await s.json();(c=n==null?void 0:n.error)!=null&&c.message&&(p=n.error.message)}catch{}throw new Error(p||`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 l;const i=r==null?void 0:r.toolCall,s=`perm-${t}`,c=((l=i==null?void 0:i._meta)==null?void 0:l["codebuddy.ai/toolName"])||(i==null?void 0:i.toolName)||"tool",p=(i==null?void 0:i.title)||c,n=i==null?void 0:i.rawInput,o=i==null?void 0:i.toolCallId;this.permissionRequestIds.set(s,t),this.emit("interruption_request",{sessionUpdate:"interruption_request",interruptionId:s,reason:"Tool requires approval",options:((r==null?void 0:r.options)||[]).map(h=>h.optionId||h.name),toolName:c,toolTitle:p,toolInput:n,toolCallId:o})}handleExtMethodQuestion(t,r){const{sessionId:i,toolCallId:s,schema:c}=r||{},p=((c==null?void 0:c.questions)||[]).map(n=>({id:n.id,question:n.question,header:n.header||"",options:(n.options||[]).map(o=>({label:o.label||"",description:o.description||""})),multiSelect:!!n.multiSelect}));this.extMethodRequestIds.set(s,t),this.emit("question_request",{toolCallId:s,sessionId:i,questions:p})}async handleExtMethodDelegateTool(t,r){const{toolId:i,input:s}=r||{};try{if(i==="ui-control"){const{uiController:c}=await oi(async()=>{const{uiController:n}=await import("./index-DixJ0kqk.js");return{uiController:n}},[]),p=await c.execute({sessionId:r.sessionId,action:s.action,target:s.target,value:s.value});await this.sendJsonRpcResult(t,{status:"success",output:p})}else if(i==="ui-query"){const{uiController:c}=await oi(async()=>{const{uiController:n}=await import("./index-DixJ0kqk.js");return{uiController:n}},[]),p=await c.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:p})}else await this.sendJsonRpcResult(t,{status:"error",error:{message:`Unknown delegate tool: ${i}`}})}catch(c){await this.sendJsonRpcResult(t,{status:"error",error:{message:c instanceof Error?c.message:String(c)}})}}emit(t,r){const i=this.listeners.get(t);if(i)for(const s of i)try{s(r)}catch(c){console.error(`Event handler error for ${t}:`,c)}}setStatus(t){this._status=t,this.emit("status_change",t)}}const ap=Object.freeze(Object.defineProperty({__proto__:null,AcpClient:Ni,fetchWithRetry:Fe},Symbol.toStringTag,{value:"Module"}));let gt=null;function Ie(){return gt||(gt=new Ni),gt}function sp(){const e=N.useRef(Ie()),[t,r]=N.useState(0),{setStatus:i,setSessionId:s,setModels:c,setCurrentModel:p,setModes:n,setCurrentMode:o,setCommands:l,setTopic:h,setThinkingEnabled:m,setPromptSuggestion:b}=tt(),{addChunk:_,addThinkingChunk:w,addToolCall:v,updateToolCall:u,addInterruption:f,addQuestion:d,setSessionEnd:g,resolveInterruptionByToolCallId:y,setHistoryLoading:x,addHistoryUserMessage:k,finalizeAssistantMessage:E,clearChat:S}=je();N.useEffect(()=>{const $=e.current,D=[];return D.push($.on("user_message_chunk",A=>{const P=A.content,I=A._meta||{},U=!!I["codebuddy.ai/isCompactInternal"];let z;const W=I["codebuddy.ai/images"];Array.isArray(W)&&W.length>0&&(z=W.filter(M=>M.blobPath&&M.mimeType).map(M=>({url:`/api/v1/files/download?path=${encodeURIComponent(M.blobPath)}`,mimeType:M.mimeType})),z.length===0&&(z=void 0));let T;const j=I["codebuddy.ai/channelSource"];j&&(T={source:j,sender:I["codebuddy.ai/channelSender"]||"",senderName:I["codebuddy.ai/channelSenderName"],chatId:I["codebuddy.ai/channelChatId"],chatType:I["codebuddy.ai/channelChatType"]}),P&&typeof P.text=="string"&&k(P.text,z,U,T)})),D.push($.on("agent_message_chunk",A=>{const P=A.content,I=A._meta||{},U=I["codebuddy.ai/parentToolCallId"],z=!!I["codebuddy.ai/isCompactInternal"];typeof P=="string"?_(P,U,z):P&&P.type==="thinking"&&typeof P.text=="string"?w(P.text,U):P&&typeof P.text=="string"&&_(P.text,U,z)})),D.push($.on("tool_call",A=>{const P=A._meta||{},I=P["codebuddy.ai/parentToolCallId"],U=!!P["codebuddy.ai/isSubagent"],z=A.toolName||P["codebuddy.ai/toolName"]||"",W=P["codebuddy.ai/planContent"];v({id:A.toolCallId,name:A.title||z||A.kind||"tool",kind:A.kind||"other",toolName:z,input:A.rawInput||A.input,status:"running",locations:A.locations,content:A.content,parentToolCallId:I,subagent:U?{type:P["codebuddy.ai/subagentType"]||"general-purpose",description:P["codebuddy.ai/description"]||"",isBackground:!!P["codebuddy.ai/isBackground"],memberName:P["codebuddy.ai/memberName"]||void 0}:void 0,planContent:W})})),D.push($.on("tool_call_update",A=>{const I={status:A.status==="completed"?"completed":A.status==="failed"?"failed":A.toolStatus==="completed"?"completed":A.toolStatus==="failed"?"failed":"running",result:A.rawOutput||A.toolResult};A.content!==void 0&&(I.content=A.content),u(A.toolCallId,I)})),D.push($.on("interruption_request",A=>{f({id:A.interruptionId,reason:A.reason,options:A.options,toolName:A.toolName,toolTitle:A.toolTitle,toolInput:A.toolInput,toolCallId:A.toolCallId})})),D.push($.on("question_request",A=>{d({id:A.toolCallId,toolCallId:A.toolCallId,sessionId:A.sessionId,questions:A.questions||[]})})),D.push($.on("session_end",A=>{g(A.stopReason,A.errorMessage)})),D.push($.on("session_info_update",A=>{A.title&&h(A.title);const P=A._meta||{};if(P["codebuddy.ai/historyReplay"]==="start"?x(!0):P["codebuddy.ai/historyReplay"]==="end"&&(x(!1),E()),P["codebuddy.ai/sessionReset"]){const I=P["codebuddy.ai/newSessionId"];if(I){if(S(),h(null),b(null),s(I),typeof sessionStorage<"u"&&sessionStorage.setItem("acp-session-id",I),typeof window<"u"&&window.history&&window.location){const U=new URL(window.location.href);U.searchParams.get("sessionId")!==I&&(U.searchParams.set("sessionId",I),window.history.replaceState({},"",U.toString()))}$.loadSession(I).then(C).catch(U=>console.error("Failed to load new session after reset:",U))}}if(P["codebuddy.ai/permissionResolved"]){const I=P["codebuddy.ai/toolCallId"],U=P["codebuddy.ai/decision"];I&&U&&y(I,U)}if("codebuddy.ai/promptSuggestion"in P){const I=P["codebuddy.ai/promptSuggestion"];b(I||null)}})),D.push($.on("model_update",A=>{c(A.availableModels||[]),p(A.currentModelId||"")})),D.push($.on("mode_update",A=>{A.availableModes&&n(A.availableModes),A.currentModeId&&o(A.currentModeId)})),D.push($.on("current_mode_update",A=>{A.currentModeId&&o(A.currentModeId)})),D.push($.on("config_option_update",A=>{const P=A.configOptions||[];for(const I of P)I.id==="thought_level"?m(I.currentValue==="enabled"):I.id==="mode"&&I.currentValue?o(I.currentValue):I.id==="model"&&I.currentValue&&(p(I.currentValue),I.options&&c(I.options.map(U=>({id:U.value,name:U.name||U.value}))))})),D.push($.on("status_change",A=>{i(A)})),D.push($.on("available_commands_update",A=>{A.availableCommands&&l(A.availableCommands.map(P=>{var I;return{name:P.name,description:P.description||"",...((I=P._meta)==null?void 0:I.type)==="skill"?{type:"skill"}:{}}}))})),()=>{D.forEach(A=>A())}},[t,_,w,v,u,f,d,g,y,c,p,n,o,l,h,m,i,x,k,E,S,s,b]);const C=N.useCallback($=>{if($.models&&(c($.models.availableModels.map(D=>({id:D.modelId,name:D.name}))),p($.models.currentModelId)),$.modes&&(n($.modes.availableModes),o($.modes.currentModeId)),$.configOptions)for(const D of $.configOptions)D.id==="thought_level"&&m(D.currentValue==="enabled")},[c,p,n,o,m]),R=N.useCallback(async $=>{const D=typeof $=="string"?$:$==null?void 0:$.token,A=typeof $=="object"?$==null?void 0:$.continue:!1;if(D){if(gt)try{await gt.disconnect()}catch{}gt=new Ni(void 0,D),e.current=gt,r(P=>P+1)}try{i("connecting"),b(null);const P=await e.current.initializeSession({continue:A});s(P.sessionId),C(P),i("connected"),od.getState().fetchUserInfo(e.current)}catch(P){console.error("Connection failed:",P),i("error")}},[i,s,C,b]);return{client:e.current,connect:R}}const ld="/assets/dark-claw-cat-D_ew_BKV.png",cd="/assets/light-claw-cat-BgBWmnmi.png",dd="/assets/red-claw-cat--t2EuBIB.png",ud={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 pd({size:e="medium",className:t=""}){const i=yt(c=>c.resolved)==="dark"?ld:cd,s=ud[e];return a.jsxs("div",{className:`relative ${s.container} ${t}`,children:[a.jsx("img",{src:i,alt:"",className:"cat-loading-layer cat-loading-layer-base absolute inset-0 w-full h-full object-contain",decoding:"async",loading:"eager"}),a.jsx("img",{src:dd,alt:"",className:"cat-loading-layer cat-loading-layer-color absolute inset-0 w-full h-full object-contain",decoding:"async",loading:"eager"})]})}function Ze({size:e="medium",text:t="Loading...",className:r=""}){const i=ud[e];return a.jsxs("div",{className:`flex flex-col items-center justify-center gap-4 ${r}`,children:[a.jsx(pd,{size:e}),t&&a.jsx("div",{className:`text-text-secondary ${i.text} font-medium animate-pulse`,children:t})]})}function op({size:e="medium",className:t=""}){return a.jsx(pd,{size:e,className:t})}/**
9
+ * @license lucide-react v0.468.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 lp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),md=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim();/**
14
+ * @license lucide-react v0.468.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
+ */var cp={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"};/**
19
+ * @license lucide-react v0.468.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 dp=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:p,...n},o)=>N.createElement("svg",{ref:o,...cp,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:md("lucide",s),...n},[...p.map(([l,h])=>N.createElement(l,h)),...Array.isArray(c)?c:[c]]));/**
24
+ * @license lucide-react v0.468.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 re=(e,t)=>{const r=N.forwardRef(({className:i,...s},c)=>N.createElement(dp,{ref:c,iconNode:t,className:md(`lucide-${lp(e)}`,i),...s}));return r.displayName=`${e}`,r};/**
29
+ * @license lucide-react v0.468.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
+ */const Ar=re("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
34
+ * @license lucide-react v0.468.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 hd=re("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
39
+ * @license lucide-react v0.468.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 Ql=re("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
44
+ * @license lucide-react v0.468.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 Tt=re("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]]);/**
49
+ * @license lucide-react v0.468.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 up=re("BookOpen",[["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"}]]);/**
54
+ * @license lucide-react v0.468.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 bt=re("Bot",[["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"}]]);/**
59
+ * @license lucide-react v0.468.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 Je=re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
64
+ * @license lucide-react v0.468.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 ct=re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
69
+ * @license lucide-react v0.468.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 Qe=re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
74
+ * @license lucide-react v0.468.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 pp=re("CircleAlert",[["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"}]]);/**
79
+ * @license lucide-react v0.468.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 gd=re("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
84
+ * @license lucide-react v0.468.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 mp=re("CircleHelp",[["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"}]]);/**
89
+ * @license lucide-react v0.468.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 li=re("CircleX",[["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"}]]);/**
94
+ * @license lucide-react v0.468.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 hp=re("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
99
+ * @license lucide-react v0.468.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 gp=re("ClipboardList",[["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"}]]);/**
104
+ * @license lucide-react v0.468.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 ec=re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
109
+ * @license lucide-react v0.468.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 tc=re("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
114
+ * @license lucide-react v0.468.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 fp=re("CopyMinus",[["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"}]]);/**
119
+ * @license lucide-react v0.468.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 ci=re("Copy",[["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"}]]);/**
124
+ * @license lucide-react v0.468.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 rc=re("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);/**
129
+ * @license lucide-react v0.468.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 bp=re("CornerDownRight",[["polyline",{points:"15 10 20 15 15 20",key:"1q7qjw"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]);/**
134
+ * @license lucide-react v0.468.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 yp=re("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
139
+ * @license lucide-react v0.468.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 Bt=re("ExternalLink",[["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"}]]);/**
144
+ * @license lucide-react v0.468.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 _p=re("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
149
+ * @license lucide-react v0.468.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 fd=re("FilePen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/**
154
+ * @license lucide-react v0.468.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 vp=re("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
159
+ * @license lucide-react v0.468.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 et=re("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
164
+ * @license lucide-react v0.468.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 kp=re("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]);/**
169
+ * @license lucide-react v0.468.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 Sp=re("FolderClosed",[["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"}]]);/**
174
+ * @license lucide-react v0.468.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 Ri=re("FolderOpen",[["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"}]]);/**
179
+ * @license lucide-react v0.468.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 xp=re("FolderPlus",[["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"}]]);/**
184
+ * @license lucide-react v0.468.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 wp=re("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
189
+ * @license lucide-react v0.468.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 Ii=re("Globe",[["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"}]]);/**
194
+ * @license lucide-react v0.468.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 Ep=re("Hash",[["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"}]]);/**
199
+ * @license lucide-react v0.468.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 bd=re("History",[["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"}]]);/**
204
+ * @license lucide-react v0.468.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 yd=re("Image",[["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"}]]);/**
209
+ * @license lucide-react v0.468.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 Cp=re("Inbox",[["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"}]]);/**
214
+ * @license lucide-react v0.468.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 Tp=re("Languages",[["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"}]]);/**
219
+ * @license lucide-react v0.468.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 ic=re("Link2Off",[["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"}]]);/**
224
+ * @license lucide-react v0.468.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 Ap=re("Link2",[["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"}]]);/**
229
+ * @license lucide-react v0.468.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 _d=re("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
234
+ * @license lucide-react v0.468.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 vd=re("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
239
+ * @license lucide-react v0.468.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 Ce=re("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
244
+ * @license lucide-react v0.468.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 $p=re("Map",[["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"}]]);/**
249
+ * @license lucide-react v0.468.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 Np=re("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
254
+ * @license lucide-react v0.468.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 Rp=re("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
259
+ * @license lucide-react v0.468.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 zr=re("MessageCircleQuestion",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["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"}]]);/**
264
+ * @license lucide-react v0.468.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 kd=re("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
269
+ * @license lucide-react v0.468.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 Sd=re("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
274
+ * @license lucide-react v0.468.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 Ip=re("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
279
+ * @license lucide-react v0.468.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 nc=re("Newspaper",[["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-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
284
+ * @license lucide-react v0.468.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 Lp=re("Package",[["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"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
289
+ * @license lucide-react v0.468.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 xd=re("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
294
+ * @license lucide-react v0.468.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 Op=re("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
299
+ * @license lucide-react v0.468.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 Dp=re("Pencil",[["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"}]]);/**
304
+ * @license lucide-react v0.468.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 Xe=re("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
309
+ * @license lucide-react v0.468.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 Mp=re("PowerOff",[["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"}]]);/**
314
+ * @license lucide-react v0.468.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 jp=re("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
319
+ * @license lucide-react v0.468.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 di=re("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
324
+ * @license lucide-react v0.468.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 $t=re("RefreshCw",[["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"}]]);/**
329
+ * @license lucide-react v0.468.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 Fp=re("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/**
334
+ * @license lucide-react v0.468.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 Pp=re("Scissors",[["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"}]]);/**
339
+ * @license lucide-react v0.468.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 Bp=re("ScrollText",[["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"}]]);/**
344
+ * @license lucide-react v0.468.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 ft=re("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
349
+ * @license lucide-react v0.468.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 Up=re("Send",[["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"}]]);/**
354
+ * @license lucide-react v0.468.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 wd=re("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
359
+ * @license lucide-react v0.468.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 zp=re("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
364
+ * @license lucide-react v0.468.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 Ed=re("SquareTerminal",[["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"}]]);/**
369
+ * @license lucide-react v0.468.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 Hp=re("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
374
+ * @license lucide-react v0.468.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 Wt=re("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
379
+ * @license lucide-react v0.468.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 Gp=re("SunMoon",[["path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4",key:"1fu5g2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.9 4.9 1.4 1.4",key:"b9915j"}],["path",{d:"m17.7 17.7 1.4 1.4",key:"qc3ed3"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.3 17.7-1.4 1.4",key:"5gca6"}],["path",{d:"m19.1 4.9-1.4 1.4",key:"wpu9u6"}]]);/**
384
+ * @license lucide-react v0.468.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 Wp=re("Sun",[["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"}]]);/**
389
+ * @license lucide-react v0.468.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 Cd=re("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
394
+ * @license lucide-react v0.468.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 Zt=re("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
399
+ * @license lucide-react v0.468.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 Hr=re("TriangleAlert",[["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"}]]);/**
404
+ * @license lucide-react v0.468.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 Td=re("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
409
+ * @license lucide-react v0.468.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 Le=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
414
+ * @license lucide-react v0.468.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 qp=re("Zap",[["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"}]]),ac="codebuddy-locale";function Ad(){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 sc(e){return e==="system"?Ad():e}const ui=Ue((e,t)=>{const r=typeof localStorage<"u"?localStorage.getItem(ac):null,i=r&&["zh","en","system"].includes(r)?r:"system",s=sc(i);return typeof window<"u"&&window.addEventListener("languagechange",()=>{const c=ui.getState();if(c.mode==="system"){const p=Ad();p!==c.resolved&&ui.setState({resolved:p})}}),{mode:i,resolved:s,setLocale:c=>{const p=sc(c);localStorage.setItem(ac,c),e({mode:c,resolved:p})},toggle:()=>{const c=t().mode,p=c==="zh"?"en":c==="en"?"system":"zh";t().setLocale(p)}}}),Vp={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":"返回对话","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} 个完成","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.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":"全部折叠"},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","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","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.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"}};function le(){const{mode:e,resolved:t,setLocale:r,toggle:i}=ui();function s(c){return Vp[t][c]??c}return{t:s,locale:e,resolved:t,setLocale:r,toggleLocale:i}}const $d={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)"}},Nd="var(--color-text-primary)";function Kp(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 Yp(e){if(e.senderName)return e.senderName;const t=e.sender||"";return!t||t.includes("@")||t.length>20?"":t}function Xp({content:e,channel:t}){const{t:r}=le(),i=$d[t.source],s=i?r(i.labelKey):t.source,c=(i==null?void 0:i.color)||Nd,p=Yp(t),n=Kp(t);return a.jsxs("div",{className:"channel-item mb-4",style:{borderLeftColor:c},children:[a.jsxs("div",{className:"channel-label",style:{color:c},children:[s,p&&a.jsxs("span",{className:"channel-sender",children:[" · ",p]}),n&&a.jsxs("span",{className:"channel-bot-id",children:["#",n]})]}),a.jsx("div",{className:"channel-content",children:e})]})}function Zp({channel:e}){const{t}=le(),r=$d[e.source],i=r?t(r.labelKey):e.source,s=(r==null?void 0:r.color)||Nd;return a.jsxs("div",{className:"channel-response-indicator",children:[a.jsx(bp,{size:12,style:{color:s}}),a.jsx("span",{children:t("channel.replyTo").replace("{source}",i)})]})}function Jp(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Qp(e,t){if(e==null)return{};var r,i,s=Jp(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(i=0;i<c.length;i++)r=c[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function pi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function em(e){if(Array.isArray(e))return pi(e)}function tm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rm(e,t){if(e){if(typeof e=="string")return pi(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)?pi(e,t):void 0}}function im(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
419
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mi(e){return em(e)||tm(e)||rm(e)||im()}function Kt(e){"@babel/helpers - typeof";return Kt=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},Kt(e)}function nm(e,t){if(Kt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Kt(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function am(e){var t=nm(e,"string");return Kt(t)=="symbol"?t:t+""}function Rd(e,t,r){return(t=am(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},hi.apply(null,arguments)}function oc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oc(Object(r),!0).forEach(function(i){Rd(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function sm(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 Gr={};function om(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Gr[t]||(Gr[t]=sm(e)),Gr[t]}function lm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=e.filter(function(c){return c!=="token"}),s=om(i);return s.reduce(function(c,p){return wt(wt({},c),r[p])},t)}function lc(e){return e.join(" ")}function cm(e,t){var r=0;return function(i){return r+=1,i.map(function(s,c){return Id({node:s,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(c)})})}}function Id(e){var t=e.node,r=e.stylesheet,i=e.style,s=i===void 0?{}:i,c=e.useInlineStyles,p=e.key,n=t.properties,o=t.type,l=t.tagName,h=t.value;if(o==="text")return h;if(l){var m=cm(r,c),b;if(!c)b=wt(wt({},n),{},{className:lc(n.className)});else{var _=Object.keys(r).reduce(function(f,d){return d.split(".").forEach(function(g){f.includes(g)||f.push(g)}),f},[]),w=n.className&&n.className.includes("token")?["token"]:[],v=n.className&&w.concat(n.className.filter(function(f){return!_.includes(f)}));b=wt(wt({},n),{},{className:lc(v)||void 0,style:lm(n.className,Object.assign({},n.style,s),r)})}var u=m(t.children);return ve.createElement(l,hi({key:p},b),u)}}const dm=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var um=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function cc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cc(Object(r),!0).forEach(function(i){Rd(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var pm=/\n/g;function mm(e){return e.match(pm)}function hm(e){var t=e.lines,r=e.startingLineNumber,i=e.style;return t.map(function(s,c){var p=c+r;return ve.createElement("span",{key:"line-".concat(c),className:"react-syntax-highlighter-line-number",style:typeof i=="function"?i(p):i},"".concat(p,`
420
+ `))})}function gm(e){var t=e.codeString,r=e.codeStyle,i=e.containerStyle,s=i===void 0?{float:"left",paddingRight:"10px"}:i,c=e.numberStyle,p=c===void 0?{}:c,n=e.startingLineNumber;return ve.createElement("code",{style:Object.assign({},r,s)},hm({lines:t.replace(/\n$/,"").split(`
421
+ `),style:p,startingLineNumber:n}))}function fm(e){return"".concat(e.toString().length,".25em")}function Ld(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 Od(e,t,r){var i={display:"inline-block",minWidth:fm(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},s=typeof e=="function"?e(t):e,c=at(at({},i),s);return c}function fr(e){var t=e.children,r=e.lineNumber,i=e.lineNumberStyle,s=e.largestLineNumber,c=e.showInlineLineNumbers,p=e.lineProps,n=p===void 0?{}:p,o=e.className,l=o===void 0?[]:o,h=e.showLineNumbers,m=e.wrapLongLines,b=e.wrapLines,_=b===void 0?!1:b,w=_?at({},typeof n=="function"?n(r):n):{};if(w.className=w.className?[].concat(mi(w.className.trim().split(/\s+/)),mi(l)):l,r&&c){var v=Od(i,r,s);t.unshift(Ld(r,v))}return m&h&&(w.style=at({display:"flex"},w.style)),{type:"element",tagName:"span",properties:w,children:t}}function Dd(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 i=0;i<e.length;i++){var s=e[i];if(s.type==="text")r.push(fr({children:[s],className:mi(new Set(t))}));else if(s.children){var c,p=t.concat(((c=s.properties)===null||c===void 0?void 0:c.className)||[]);Dd(s.children,p).forEach(function(n){return r.push(n)})}}return r}function bm(e,t,r,i,s,c,p,n,o){var l,h=Dd(e.value),m=[],b=-1,_=0;function w(x,k){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return fr({children:x,lineNumber:k,lineNumberStyle:n,largestLineNumber:p,showInlineLineNumbers:s,lineProps:r,className:E,showLineNumbers:i,wrapLongLines:o,wrapLines:t})}function v(x,k){if(i&&k&&s){var E=Od(n,k,p);x.unshift(Ld(k,E))}return x}function u(x,k){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||E.length>0?w(x,k,E):v(x,k)}for(var f=function(){var k=h[_],E=k.children[0].value,S=mm(E);if(S){var C=E.split(`
422
+ `);C.forEach(function(R,$){var D=i&&m.length+c,A={type:"text",value:"".concat(R,`
423
+ `)};if($===0){var P=h.slice(b+1,_).concat(fr({children:[A],className:k.properties.className})),I=u(P,D);m.push(I)}else if($===C.length-1){var U=h[_+1]&&h[_+1].children&&h[_+1].children[0],z={type:"text",value:"".concat(R)};if(U){var W=fr({children:[z],className:k.properties.className});h.splice(_+1,0,W)}else{var T=[z],j=u(T,D,k.properties.className);m.push(j)}}else{var M=[A],F=u(M,D,k.properties.className);m.push(F)}}),b=_}_++};_<h.length;)f();if(b!==h.length-1){var d=h.slice(b+1,h.length);if(d&&d.length){var g=i&&m.length+c,y=u(d,g);m.push(y)}}return t?m:(l=[]).concat.apply(l,m)}function ym(e){var t=e.rows,r=e.stylesheet,i=e.useInlineStyles;return t.map(function(s,c){return Id({node:s,stylesheet:r,useInlineStyles:i,key:"code-segment-".concat(c)})})}function Md(e){return e&&typeof e.highlightAuto<"u"}function _m(e){var t=e.astGenerator,r=e.language,i=e.code,s=e.defaultCodeValue;if(Md(t)){var c=dm(t,r);return r==="text"?{value:s,language:"text"}:c?t.highlight(r,i):t.highlightAuto(i)}try{return r&&r!=="text"?{value:t.highlight(i,r)}:{value:s}}catch{return{value:s}}}function vm(e,t){return function(i){var s,c,p=i.language,n=i.children,o=i.style,l=o===void 0?t:o,h=i.customStyle,m=h===void 0?{}:h,b=i.codeTagProps,_=b===void 0?{className:p?"language-".concat(p):void 0,style:at(at({},l['code[class*="language-"]']),l['code[class*="language-'.concat(p,'"]')])}:b,w=i.useInlineStyles,v=w===void 0?!0:w,u=i.showLineNumbers,f=u===void 0?!1:u,d=i.showInlineLineNumbers,g=d===void 0?!0:d,y=i.startingLineNumber,x=y===void 0?1:y,k=i.lineNumberContainerStyle,E=i.lineNumberStyle,S=E===void 0?{}:E,C=i.wrapLines,R=i.wrapLongLines,$=R===void 0?!1:R,D=i.lineProps,A=D===void 0?{}:D,P=i.renderer,I=i.PreTag,U=I===void 0?"pre":I,z=i.CodeTag,W=z===void 0?"code":z,T=i.code,j=T===void 0?(Array.isArray(n)?n[0]:n)||"":T,M=i.astGenerator,F=Qp(i,um);M=M||e;var G=f?ve.createElement(gm,{containerStyle:k,codeStyle:_.style||{},numberStyle:S,startingLineNumber:x,codeString:j}):null,V=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},Q=Md(M)?"hljs":"prismjs",te=v?Object.assign({},F,{style:Object.assign({},V,m)}):Object.assign({},F,{className:F.className?"".concat(Q," ").concat(F.className):Q,style:Object.assign({},m)});if($?_.style=at({whiteSpace:"pre-wrap"},_.style):_.style=at({whiteSpace:"pre"},_.style),!M)return ve.createElement(U,te,G,ve.createElement(W,_,j));(C===void 0&&P||$)&&(C=!0),P=P||ym;var B=[{type:"text",value:j}],L=_m({astGenerator:M,language:p,code:j,defaultCodeValue:B});L.language===null&&(L.value=B);var K=(s=(c=j.match(/\n/g))===null||c===void 0?void 0:c.length)!==null&&s!==void 0?s:0,q=x+K,ee=bm(L,C,A,f,g,x,q,S,$);return ve.createElement(U,te,ve.createElement(W,_,!g&&G,P({rows:ee,stylesheet:l,useInlineStyles:v})))}}const km=["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"],dc=/[#.]/g;function Sm(e,t){const r=e||"",i={};let s=0,c,p;for(;s<r.length;){dc.lastIndex=s;const n=dc.exec(r),o=r.slice(s,n?n.index:r.length);o&&(c?c==="#"?i.id=o:Array.isArray(i.className)?i.className.push(o):i.className=[o]:p=o,s+=o.length),n&&(c=n[0],s++)}return{type:"element",tagName:p||t||"div",properties:i,children:[]}}function jd(e,t,r){const i=r?Cm(r):void 0;function s(c,p,...n){let o;if(c==null){o={type:"root",children:[]};const l=p;n.unshift(l)}else{o=Sm(c,t);const l=o.tagName.toLowerCase(),h=i?i.get(l):void 0;if(o.tagName=h||l,xm(p))n.unshift(p);else for(const[m,b]of Object.entries(p))wm(e,o.properties,m,b)}for(const l of n)gi(o.children,l);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return s}function xm(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 i of r){const s=t[i];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const c=s;for(const p of c)if(typeof p!="number"&&typeof p!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function wm(e,t,r,i){const s=Ku(e,r);let c;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;c=i}else typeof i=="boolean"?c=i:typeof i=="string"?s.spaceSeparated?c=Hl(i):s.commaSeparated?c=Gl(i):s.commaOrSpaceSeparated?c=Hl(Gl(i).join(" ")):c=uc(s,s.property,i):Array.isArray(i)?c=[...i]:c=s.property==="style"?Em(i):String(i);if(Array.isArray(c)){const p=[];for(const n of c)p.push(uc(s,s.property,n));c=p}s.property==="className"&&Array.isArray(t.className)&&(c=t.className.concat(c)),t[s.property]=c}}function gi(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)gi(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?gi(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function uc(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Wl(r)===Wl(t)))return!0}return r}function Em(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function Cm(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const Tm=["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"],Am=jd(Yu,"div");jd(Xu,"g",Tm);const $m=["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"],pc={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 Fd(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Nm(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Rm(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function mc(e){return Rm(e)||Fd(e)}const Im=["","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 Lm(e,t){const r={},i=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,s=[];let c=0,p=-1,n="",o,l;r.position&&("start"in r.position||"indent"in r.position?(l=r.position.indent,o=r.position.start):o=r.position);let h=(o?o.line:0)||1,m=(o?o.column:0)||1,b=w(),_;for(c--;++c<=e.length;)if(_===10&&(m=(l?l[p]:0)||1),_=e.charCodeAt(c),_===38){const f=e.charCodeAt(c+1);if(f===9||f===10||f===12||f===32||f===38||f===60||Number.isNaN(f)||i&&f===i){n+=String.fromCharCode(_),m++;continue}const d=c+1;let g=d,y=d,x;if(f===35){y=++g;const A=e.charCodeAt(y);A===88||A===120?(x="hexadecimal",y=++g):x="decimal"}else x="named";let k="",E="",S="";const C=x==="named"?mc:x==="decimal"?Fd:Nm;for(y--;++y<=e.length;){const A=e.charCodeAt(y);if(!C(A))break;S+=String.fromCharCode(A),x==="named"&&$m.includes(S)&&(k=S,E=ql(S))}let R=e.charCodeAt(y)===59;if(R){y++;const A=x==="named"?ql(S):!1;A&&(k=S,E=A)}let $=1+y-d,D="";if(!(!R&&r.nonTerminated===!1))if(!S)x!=="named"&&v(4,$);else if(x==="named"){if(R&&!E)v(5,1);else if(k!==S&&(y=g+k.length,$=1+y-g,R=!1),!R){const A=k?1:3;if(r.attribute){const P=e.charCodeAt(y);P===61?(v(A,$),E=""):mc(P)?E="":v(A,$)}else v(A,$)}D=E}else{R||v(2,$);let A=Number.parseInt(S,x==="hexadecimal"?16:10);if(Om(A))v(7,$),D="�";else if(A in pc)v(6,$),D=pc[A];else{let P="";Dm(A)&&v(6,$),A>65535&&(A-=65536,P+=String.fromCharCode(A>>>10|55296),A=56320|A&1023),D=P+String.fromCharCode(A)}}if(D){u(),b=w(),c=y-1,m+=y-d+1,s.push(D);const A=w();A.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,D,{start:b,end:A},e.slice(d-1,y)),b=A}else S=e.slice(d-1,y),n+=S,m+=S.length,c=y-1}else _===10&&(h++,p++,m=0),Number.isNaN(_)?u():(n+=String.fromCharCode(_),m++);return s.join("");function w(){return{line:h,column:m,offset:c+((o?o.offset:0)||0)}}function v(f,d){let g;r.warning&&(g=w(),g.column+=d,g.offset+=d,r.warning.call(r.warningContext||void 0,Im[f],g,f))}function u(){n&&(s.push(n),r.text&&r.text.call(r.textContext||void 0,n,{start:b,end:w()}),n="")}}function Om(e){return e>=55296&&e<=57343||e>1114111}function Dm(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 Mm=0,or={},_e={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Mm}),e.__id},clone:function e(t,r){r=r||{};var i,s;switch(_e.util.type(t)){case"Object":if(s=_e.util.objId(t),r[s])return r[s];i={},r[s]=i;for(var c in t)t.hasOwnProperty(c)&&(i[c]=e(t[c],r));return i;case"Array":return s=_e.util.objId(t),r[s]?r[s]:(i=[],r[s]=i,t.forEach(function(p,n){i[n]=e(p,r)}),i);default:return t}}},languages:{plain:or,plaintext:or,text:or,txt:or,extend:function(e,t){var r=_e.util.clone(_e.languages[e]);for(var i in t)r[i]=t[i];return r},insertBefore:function(e,t,r,i){i=i||_e.languages;var s=i[e],c={};for(var p in s)if(s.hasOwnProperty(p)){if(p==t)for(var n in r)r.hasOwnProperty(n)&&(c[n]=r[n]);r.hasOwnProperty(p)||(c[p]=s[p])}var o=i[e];return i[e]=c,_e.languages.DFS(_e.languages,function(l,h){h===o&&l!=e&&(this[l]=c)}),c},DFS:function e(t,r,i,s){s=s||{};var c=_e.util.objId;for(var p in t)if(t.hasOwnProperty(p)){r.call(t,p,t[p],i||p);var n=t[p],o=_e.util.type(n);o==="Object"&&!s[c(n)]?(s[c(n)]=!0,e(n,r,null,s)):o==="Array"&&!s[c(n)]&&(s[c(n)]=!0,e(n,r,p,s))}}},plugins:{},highlight:function(e,t,r){var i={code:e,grammar:t,language:r};if(_e.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=_e.tokenize(i.code,i.grammar),_e.hooks.run("after-tokenize",i),qt.stringify(_e.util.encode(i.tokens),i.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var i in r)t[i]=r[i];delete t.rest}var s=new jm;return br(s,s.head,e),Pd(e,s,t,s.head,0),Pm(s)},hooks:{all:{},add:function(e,t){var r=_e.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=_e.hooks.all[e];if(!(!r||!r.length))for(var i=0,s;s=r[i++];)s(t)}},Token:qt};function qt(e,t,r,i){this.type=e,this.content=t,this.alias=r,this.length=(i||"").length|0}function hc(e,t,r,i){e.lastIndex=t;var s=e.exec(r);if(s&&i&&s[1]){var c=s[1].length;s.index+=c,s[0]=s[0].slice(c)}return s}function Pd(e,t,r,i,s,c){for(var p in r)if(!(!r.hasOwnProperty(p)||!r[p])){var n=r[p];n=Array.isArray(n)?n:[n];for(var o=0;o<n.length;++o){if(c&&c.cause==p+","+o)return;var l=n[o],h=l.inside,m=!!l.lookbehind,b=!!l.greedy,_=l.alias;if(b&&!l.pattern.global){var w=l.pattern.toString().match(/[imsuy]*$/)[0];l.pattern=RegExp(l.pattern.source,w+"g")}for(var v=l.pattern||l,u=i.next,f=s;u!==t.tail&&!(c&&f>=c.reach);f+=u.value.length,u=u.next){var d=u.value;if(t.length>e.length)return;if(!(d instanceof qt)){var g=1,y;if(b){if(y=hc(v,f,e,m),!y||y.index>=e.length)break;var S=y.index,x=y.index+y[0].length,k=f;for(k+=u.value.length;S>=k;)u=u.next,k+=u.value.length;if(k-=u.value.length,f=k,u.value instanceof qt)continue;for(var E=u;E!==t.tail&&(k<x||typeof E.value=="string");E=E.next)g++,k+=E.value.length;g--,d=e.slice(f,k),y.index-=f}else if(y=hc(v,0,d,m),!y)continue;var S=y.index,C=y[0],R=d.slice(0,S),$=d.slice(S+C.length),D=f+d.length;c&&D>c.reach&&(c.reach=D);var A=u.prev;R&&(A=br(t,A,R),f+=R.length),Fm(t,A,g);var P=new qt(p,h?_e.tokenize(C,h):C,_,C);if(u=br(t,A,P),$&&br(t,u,$),g>1){var I={cause:p+","+o,reach:D};Pd(e,t,r,u.prev,f,I),c&&I.reach>c.reach&&(c.reach=I.reach)}}}}}}function jm(){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 br(e,t,r){var i=t.next,s={value:r,prev:t,next:i};return t.next=s,i.prev=s,e.length++,s}function Fm(e,t,r){for(var i=t.next,s=0;s<r&&i!==e.tail;s++)i=i.next;t.next=i,i.prev=t,e.length-=s}function Pm(e){for(var t=[],r=e.head.next;r!==e.tail;)t.push(r.value),r=r.next;return t}const Bd=_e;function Ud(){}Ud.prototype=Bd;const O=new Ud;O.highlight=Bm;O.register=Um;O.alias=zm;O.registered=Hm;O.listLanguages=Gm;O.util.encode=Wm;O.Token.stringify=fi;function Bm(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let r,i;if(t&&typeof t=="object")r=t;else{if(i=t,typeof i!="string")throw new TypeError("Expected `string` for `name`, got `"+i+"`");if(Object.hasOwn(O.languages,i))r=O.languages[i];else throw new Error("Unknown language: `"+i+"` is not registered")}return{type:"root",children:Bd.highlight.call(O,e,r,i)}}function Um(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(O.languages,e.displayName)||e(O)}function zm(e,t){const r=O.languages;let i={};typeof e=="string"?t&&(i[e]=t):i=e;let s;for(s in i)if(Object.hasOwn(i,s)){const c=i[s],p=typeof c=="string"?[c]:c;let n=-1;for(;++n<p.length;)r[p[n]]=r[s]}}function Hm(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(O.languages,e)}function Gm(){const e=O.languages,t=[];let r;for(r in e)Object.hasOwn(e,r)&&typeof e[r]=="object"&&t.push(r);return t}function fi(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const i=[];let s=-1;for(;++s<e.length;)e[s]!==null&&e[s]!==void 0&&e[s]!==""&&i.push(fi(e[s],t));return i}const r={attributes:{},classes:["token",e.type],content:fi(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&r.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),O.hooks.run("wrap",r),Am(r.tag+"."+r.classes.join("."),qm(r.attributes),r.content)}function Wm(e){return e}function qm(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=Lm(e[t]));return e}const Vm={'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"}};xe.displayName="markup";xe.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function xe(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(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,i){var s={};s["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[i]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var c={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};c["language-"+i]={pattern:/[\s\S]+/,inside:e.languages[i]};var p={};p[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:c},e.languages.insertBefore("markup","cdata",p)}}),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}_t.displayName="css";_t.aliases=[];function _t(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 i=t.languages.markup;i&&(i.tag.addInlined("style","css"),i.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:/[{}[\];(),.:]/}}Li.displayName="regex";Li.aliases=[];function Li(e){(function(t){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},i=/\\(?: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"},c={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},p="(?:[^\\\\-]|"+i.source+")",n=RegExp(p+"-"+p),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:n,inside:{escape:i,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":c,escape:i}},"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:i,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}Te.displayName="javascript";Te.aliases=["js"];function Te(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:/[,.:()]/}}Di.displayName="abnf";Di.aliases=[];function Di(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)}Mi.displayName="actionscript";Mi.aliases=[];function Mi(e){e.register(Te),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}})}ji.displayName="ada";ji.aliases=[];function ji(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}}Fi.displayName="agda";Fi.aliases=[];function Fi(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:/[()\[\]{}:.;,]/}}Bi.displayName="antlr4";Bi.aliases=["g4"];function Bi(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}Ui.displayName="apacheconf";Ui.aliases=[];function Ui(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:/\^?.*\$|\^.*\$?/}}Jt.displayName="sql";Jt.aliases=[];function Jt(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:/[;[\]()`,.]/}}zi.displayName="apex";zi.aliases=[];function zi(e){e.register(ce),e.register(Jt),(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,i=/\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(p){return RegExp(p.replace(/<CLASS-NAME>/g,function(){return i}),"i")}var c={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:c},{pattern:s(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:c},{pattern:s(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:c}],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)}Hi.displayName="apl";Hi.aliases=[];function Hi(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"}}}Gi.displayName="applescript";Gi.aliases=[];function Gi(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:/[{}():,¬«»《》]/}}Wi.displayName="aql";Wi.aliases=[];function Wi(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:/::|[?.:,;()[\]{}]/}}Ke.displayName="c";Ke.aliases=[];function Ke(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}Nt.displayName="cpp";Nt.aliases=[];function Nt(e){e.register(Ke),(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/,i=/\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 i})+")"),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)}qi.displayName="arduino";qi.aliases=["ino"];function qi(e){e.register(Nt),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:/[{},]/}}Ki.displayName="armasm";Ki.aliases=["arm-asm"];function Ki(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}$r.displayName="bash";$r.aliases=["sh","shell"];function $r(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",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},s={bash:i,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:i}},{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}},i.inside=t.languages.bash;for(var c=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],p=s.variable[1].inside,n=0;n<c.length;n++)p[c[n]]=t.languages.bash[c[n]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}Nr.displayName="yaml";Nr.aliases=["yml"];function Nr(e){(function(t){var r=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,s="(?:"+i.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+i.source+")?)",c=/(?:[^\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}),p=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function n(o,l){l=(l||"").replace(/m/g,"")+"m";var h=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return s}).replace(/<<value>>/g,function(){return o});return RegExp(h,l)}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"(?:"+c+"|"+p+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:n(/\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:n(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:n(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:n(p),lookbehind:!0,greedy:!0},number:{pattern:n(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}Yi.displayName="markdown";Yi.aliases=["md"];function Yi(e){e.register(xe),(function(t){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(n){return n=n.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+n+")")}var s=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,c=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return s}),p=/\|?[ \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("^"+c+p+"(?:"+c+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+c+p+")(?:"+c+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(s),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+c+")"+p+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+c+"$"),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:i(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~)<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:i(/!?\[(?:(?!\])<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(n){["url","bold","italic","strike","code-snippet"].forEach(function(o){n!==o&&(t.languages.markdown[n].inside.content.inside[o]=t.languages.markdown[o])})}),t.hooks.add("after-tokenize",function(n){if(n.language!=="markdown"&&n.language!=="md")return;function o(l){if(!(!l||typeof l=="string"))for(var h=0,m=l.length;h<m;h++){var b=l[h];if(b.type!=="code"){o(b.content);continue}var _=b.content[1],w=b.content[3];if(_&&w&&_.type==="code-language"&&w.type==="code-block"&&typeof _.content=="string"){var v=_.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase();var u="language-"+v;w.alias?typeof w.alias=="string"?w.alias=[w.alias,u]:w.alias.push(u):w.alias=[u]}}}o(n.tokens)}),t.hooks.add("wrap",function(n){if(n.type==="code-block"){for(var o="",l=0,h=n.classes.length;l<h;l++){var m=n.classes[l],b=/language-(.+)/.exec(m);if(b){o=b[1];break}}var _=t.languages[o];if(_)n.content=t.highlight(n.content.value,_,o);else if(o&&o!=="none"&&t.plugins.autoloader){var w="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);n.attributes.id=w,t.plugins.autoloader.loadLanguages(o,function(){var v=document.getElementById(w);v&&(v.innerHTML=t.highlight(v.textContent,t.languages[o],o))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}Xi.displayName="arturo";Xi.aliases=["art"];function Xi(e){(function(t){var r=function(i,s){return{pattern:RegExp(/\{!/.source+"(?:"+(s||i)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+i,inside:t.languages[i]},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)}Zi.displayName="asciidoc";Zi.aliases=["adoc"];function Zi(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+$).+/}},i=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(c){c=c.split(" ");for(var p={},n=0,o=c.length;n<o;n++)p[c[n]]=i[c[n]];return p}r.inside.interpreted.inside.rest=s("macro inline replacement entity"),i["passthrough-block"].inside.rest=s("macro"),i["literal-block"].inside.rest=s("callout"),i.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"),i["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"),i.title.inside.rest=s("macro inline replacement entity"),t.hooks.add("wrap",function(c){c.type==="entity"&&(c.attributes.title=c.content.value.replace(/&amp;/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}Rt.displayName="csharp";Rt.aliases=["cs","dotnet"];function Rt(e){e.register(ce),(function(t){function r(j,M){return j.replace(/<<(\d+)>>/g,function(F,G){return"(?:"+M[+G]+")"})}function i(j,M,F){return RegExp(r(j,M),"")}function s(j,M){for(var F=0;F<M;F++)j=j.replace(/<<self>>/g,function(){return"(?:"+j+")"});return j.replace(/<<self>>/g,"[^\\s\\S]")}var c={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 p(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var n=p(c.typeDeclaration),o=RegExp(p(c.type+" "+c.typeDeclaration+" "+c.contextual+" "+c.other)),l=p(c.typeDeclaration+" "+c.contextual+" "+c.other),h=p(c.type+" "+c.typeDeclaration+" "+c.other),m=s(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),b=s(/\((?:[^()]|<<self>>)*\)/.source,2),_=/@?\b[A-Za-z_]\w*\b/.source,w=r(/<<0>>(?:\s*<<1>>)?/.source,[_,m]),v=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[l,w]),u=/\[\s*(?:,\s*)*\]/.source,f=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,u]),d=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[m,b,u]),g=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[d]),y=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[g,v,u]),x={keyword:o,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,S=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:i(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:x},{pattern:i(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[_,y]),lookbehind:!0,inside:x},{pattern:i(/(\busing\s+)<<0>>(?=\s*=)/.source,[_]),lookbehind:!0},{pattern:i(/(\b<<0>>\s+)<<1>>/.source,[n,w]),lookbehind:!0,inside:x},{pattern:i(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:x},{pattern:i(/(\bwhere\s+)<<0>>/.source,[_]),lookbehind:!0},{pattern:i(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[f]),lookbehind:!0,inside:x},{pattern:i(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[y,h,_]),inside:x}],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:i(/([(,]\s*)<<0>>(?=\s*:)/.source,[_]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:i(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[_]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:i(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:i(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[y,v]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:i(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[y]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:i(/<<0>>\s*<<1>>(?=\s*\()/.source,[_,m]),inside:{function:i(/^<<0>>/.source,[_]),generic:{pattern:RegExp(m),alias:"class-name",inside:x}}},"type-list":{pattern:i(/\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,[n,w,_,y,o.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:i(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[w,b]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:o,"class-name":{pattern:RegExp(y),greedy:!0,inside:x},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 C=E+"|"+k,R=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),$=s(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),D=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,$]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:i(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[D,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:i(/^<<0>>(?=\s*:)/.source,[D]),alias:"keyword"},"attribute-arguments":{pattern:i(/\(<<0>>*\)/.source,[$]),inside:t.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,I=s(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),U=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,P]),z=s(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[C]),2),W=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,P]);function T(j,M){return{interpolation:{pattern:i(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:i(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[M,P]),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:i(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[U]),lookbehind:!0,greedy:!0,inside:T(U,I)},{pattern:i(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:T(W,z)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp})(e)}Ji.displayName="aspnet";Ji.aliases=[];function Ji(e){e.register(Rt),e.register(xe),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||{}}})}Qi.displayName="asm6502";Qi.aliases=[];function Qi(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:/[(),:]/}}en.displayName="asmatmel";en.aliases=[];function en(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:/[(),:]/}}tn.displayName="autohotkey";tn.aliases=[];function tn(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:/[{}[\]():,]/}}rn.displayName="autoit";rn.aliases=[];function rn(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:/[\[\]().,:]/}}nn.displayName="avisynth";nn.aliases=["avs"];function nn(e){(function(t){function r(l,h){return l.replace(/<<(\d+)>>/g,function(m,b){return h[+b]})}function i(l,h,m){return RegExp(r(l,h),m)}var s=/bool|clip|float|int|string|val/.source,c=[/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("|"),p=[/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("|"),n=[/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=[c,p,n].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:i(/\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:i(/\b(?:<<0>>)\b/.source,[o],"i"),alias:"function"},"type-cast":{pattern:i(/\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)}an.displayName="avro-idl";an.aliases=["avdl"];function an(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"]}sn.displayName="awk";sn.aliases=["gawk"];function sn(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}Rr.displayName="basic";Rr.aliases=[];function Rr(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:/[,;:()]/}}on.displayName="batch";on.aliases=[];function on(e){(function(t){var r=/%%?[~:\w]+%?|!\S+!/,i={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},s=/"(?:[\\"]"|[^"])*"(?!")/,c=/(?:\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:i,variable:r,number:c,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:i,variable:r,number:c,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:i,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:c,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:s,parameter:i,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:c,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}ln.displayName="bbcode";ln.aliases=["shortcode"];function ln(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}cn.displayName="bbj";cn.aliases=[];function cn(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)}dn.displayName="bicep";dn.aliases=[];function dn(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}un.displayName="birb";un.aliases=[];function un(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"}})}pn.displayName="bison";pn.aliases=[];function pn(e){e.register(Ke),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:/%[%?]|[|:;\[\]<>]/}}})}mn.displayName="bnf";mn.aliases=["rbnf"];function mn(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}hn.displayName="bqn";hn.aliases=[];function hn(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}gn.displayName="brainfuck";gn.aliases=[];function gn(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}fn.displayName="brightscript";fn.aliases=[];function fn(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}bn.displayName="bro";bn.aliases=[];function bn(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:/[{}[\];(),.:]/}}yn.displayName="bsl";yn.aliases=["oscript"];function yn(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}_n.displayName="cfscript";_n.aliases=["cfc"];function _n(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}vn.displayName="chaiscript";vn.aliases=[];function vn(e){e.register(ce),e.register(Nt),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]+/}}})}kn.displayName="cil";kn.aliases=[];function kn(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]+/}}Sn.displayName="cilkc";Sn.aliases=["cilk-c"];function Sn(e){e.register(Ke),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}xn.displayName="cilkcpp";xn.aliases=["cilk","cilk-cpp"];function xn(e){e.register(Nt),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}wn.displayName="clojure";wn.aliases=[];function wn(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:/[{}\[\](),]/}}En.displayName="cmake";En.aliases=[];function En(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:/[()>}]|\$[<{]/}}Cn.displayName="cobol";Cn.aliases=[];function Cn(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:/[.:,()]/}}Tn.displayName="coffeescript";Tn.aliases=["coffee"];function Tn(e){e.register(Te),(function(t){var r=/#(?!\{).+/,i={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:i}}],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:i}}}),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:i}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(e)}An.displayName="concurnas";An.aliases=["conc"];function An(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}$n.displayName="csp";$n.aliases=[];function $n(e){(function(t){function r(i){return RegExp(/([ \t])/.source+"(?:"+i+")"+/(?=[\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)}Nn.displayName="cooklang";Nn.aliases=[];function Nn(e){(function(t){var r=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,i=/[^{}@#]+/.source,s=/\{[^}#@]*\}/.source,c=i+s,p=/(?:h|hours|hrs|m|min|minutes)/.source,n={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("#(?:"+c+"|"+r+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+i+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+i),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+c+"|"+r+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+i+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":n}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+p+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Rn.displayName="coq";Rn.aliases=[];function Rn(e){(function(t){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,i=0;i<2;i++)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)}It.displayName="ruby";It.aliases=["rb"];function It(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 i="(?:"+[/([^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+i+/[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+i),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+i),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)}In.displayName="crystal";In.aliases=[];function In(e){e.register(It),(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)}Ln.displayName="css-extras";Ln.aliases=[];function Ln(e){e.register(_t),(function(t){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:i={"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=i,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},c={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:c,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:s,number:c})})(e)}On.displayName="csv";On.aliases=[];function On(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Dn.displayName="cue";Dn.aliases=[];function Dn(e){(function(t){var r=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,i=/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source,s="(?:"+i.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)}Mn.displayName="cypher";Mn.aliases=[];function Mn(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:/[()[\]{},;.]/}}jn.displayName="d";jn.aliases=[];function jn(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"}})}Fn.displayName="dart";Fn.aliases=[];function Fn(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/],i=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,s={pattern:RegExp(i+/[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(i+/[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)}Pn.displayName="dataweave";Pn.aliases=[];function Pn(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)}Bn.displayName="dax";Bn.aliases=[];function Bn(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:/[;\[\](){}`,.]/}}Un.displayName="dhall";Un.aliases=[];function Un(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}zn.displayName="diff";zn.aliases=[];function zn(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(i){var s=r[i],c=[];/^\w+$/.test(i)||c.push(/\w+/.exec(i)[0]),i==="diff"&&c.push("bold"),t.languages.diff[i]={pattern:RegExp("^(?:["+s+`].*(?:\r
424
+ ?|
425
+ |(?![\\s\\S])))+`,"m"),alias:c,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(i)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:r})})(e)}Ae.displayName="markup-templating";Ae.aliases=[];function Ae(e){e.register(xe),(function(t){function r(i,s){return"___"+i.toUpperCase()+s+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(i,s,c,p){if(i.language===s){var n=i.tokenStack=[];i.code=i.code.replace(c,function(o){if(typeof p=="function"&&!p(o))return o;for(var l=n.length,h;i.code.indexOf(h=r(s,l))!==-1;)++l;return n[l]=o,h}),i.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(i,s){if(i.language!==s||!i.tokenStack)return;i.grammar=t.languages[s];var c=0,p=Object.keys(i.tokenStack);function n(o){for(var l=0;l<o.length&&!(c>=p.length);l++){var h=o[l];if(typeof h=="string"||h.content&&typeof h.content=="string"){var m=p[c],b=i.tokenStack[m],_=typeof h=="string"?h:h.content,w=r(s,m),v=_.indexOf(w);if(v>-1){++c;var u=_.substring(0,v),f=new t.Token(s,t.tokenize(b,i.grammar),"language-"+s,b),d=_.substring(v+w.length),g=[];u&&g.push.apply(g,n([u])),g.push(f),d&&g.push.apply(g,n([d])),typeof h=="string"?o.splice.apply(o,[l,1].concat(g)):h.content=g}}else h.content&&n(h.content)}return o}n(i.tokens)}}})})(e)}Hn.displayName="django";Hn.aliases=["jinja2"];function Hn(e){e.register(Ae),(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,i=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(s){i.buildPlaceholders(s,"django",r)}),t.hooks.add("after-tokenize",function(s){i.tokenizePlaceholders(s,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(s){i.buildPlaceholders(s,"jinja2",r)}),t.hooks.add("after-tokenize",function(s){i.tokenizePlaceholders(s,"jinja2")})})(e)}Gn.displayName="dns-zone-file";Gn.aliases=["dns-zone"];function Gn(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"]}Wn.displayName="docker";Wn.aliases=["dockerfile"];function Wn(e){(function(t){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,i=/(?:[ \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,c=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return s}),p={pattern:RegExp(s),greedy:!0},n={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function o(l,h){return l=l.replace(/<OPT>/g,function(){return c}).replace(/<SP>/g,function(){return i}),RegExp(l,h)}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:[p,{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:n,string:p,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:n},t.languages.dockerfile=t.languages.docker})(e)}qn.displayName="dot";qn.aliases=["gv"];function qn(e){(function(t){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",i={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function s(c,p){return RegExp(c.replace(/<ID>/g,function(){return r}),p)}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:i},"attr-value":{pattern:s(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:i},"attr-name":{pattern:s(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:i},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:i},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}Vn.displayName="ebnf";Vn.aliases=[];function Vn(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:/[-=|*/!]/}}Kn.displayName="editorconfig";Kn.aliases=[];function Kn(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:/^=/}}}}Yn.displayName="eiffel";Yn.aliases=[];function Yn(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Xn.displayName="ejs";Xn.aliases=["eta"];function Xn(e){e.register(Te),e.register(Ae),(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 i=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(r,"ejs",i)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"ejs")}),t.languages.eta=t.languages.ejs})(e)}Zn.displayName="elixir";Zn.aliases=[];function Zn(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}}}})}Jn.displayName="elm";Jn.aliases=[];function Jn(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:/[{}[\]|(),.:]/}}Ir.displayName="lua";Ir.aliases=[];function Ir(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:/[\[\](){},;]|\.+|:+/}}Qn.displayName="etlua";Qn.aliases=[];function Qn(e){e.register(Ir),e.register(Ae),(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 i=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(r,"etlua",i)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"etlua")})})(e)}ea.displayName="erb";ea.aliases=[];function ea(e){e.register(Ae),e.register(It),(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 i=/<%=?(?:[^\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",i)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"erb")})})(e)}ta.displayName="erlang";ta.aliases=[];function ta(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:/[()[\]{}:;,.#|]|<<|>>/}}ra.displayName="excel-formula";ra.aliases=["xls","xlsx"];function ra(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"]}ia.displayName="fsharp";ia.aliases=[];function ia(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}})}na.displayName="factor";na.aliases=[];function na(e){(function(t){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},i={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:i.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:i},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:i}],"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:i}},c=function(l){return(l+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},p=function(l){return new RegExp("(^|\\s)(?:"+l.map(c).join("|")+")(?=\\s|$)")},n={"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(n).forEach(function(l){s[l].pattern=p(n[l])});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=p(o),t.languages.factor=s})(e)}aa.displayName="false";aa.aliases=[];function aa(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)}sa.displayName="firestore-security-rules";sa.aliases=[];function sa(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:/,/}}})}oa.displayName="flow";oa.aliases=[];function oa(e){e.register(Te),(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)}la.displayName="fortran";la.aliases=[];function la(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:/\(\/|\/\)|[(),;:&]/}}ca.displayName="ftl";ca.aliases=[];function ca(e){e.register(Ae),(function(t){for(var r=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)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(c){var p=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return r}),"gi");t.languages["markup-templating"].buildPlaceholders(c,"ftl",p)}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"ftl")})})(e)}da.displayName="gml";da.aliases=["gamemakerlanguage"];function da(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/})}ua.displayName="gap";ua.aliases=[];function ua(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}pa.displayName="gcode";pa.aliases=[];function pa(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:/[:*]/}}ma.displayName="gdscript";ma.aliases=[];function ma(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:/[.:,;()[\]{}]/}}ha.displayName="gedcom";ha.aliases=[];function ha(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"}}}ga.displayName="gettext";ga.aliases=["po"];function ga(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}fa.displayName="gherkin";fa.aliases=[];function fa(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)}ba.displayName="git";ba.aliases=[];function ba(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}}ya.displayName="glsl";ya.aliases=[];function ya(e){e.register(Ke),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/})}_a.displayName="gn";_a.aliases=["gni"];function _a(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}va.displayName="linker-script";va.aliases=["ld"];function va(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"]}ka.displayName="go";ka.aliases=[];function ka(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"]}Sa.displayName="go-module";Sa.aliases=["go-mod"];function Sa(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:/[()[\],]/}}xa.displayName="gradle";xa.aliases=[];function xa(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)}wa.displayName="graphql";wa.aliases=[];function wa(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 i=r.tokens.filter(function(u){return typeof u!="string"&&u.type!=="comment"&&u.type!=="scalar"}),s=0;function c(u){return i[s+u]}function p(u,f){f=f||0;for(var d=0;d<u.length;d++){var g=c(d+f);if(!g||g.type!==u[d])return!1}return!0}function n(u,f){for(var d=1,g=s;g<i.length;g++){var y=i[g],x=y.content;if(y.type==="punctuation"&&typeof x=="string"){if(u.test(x))d++;else if(f.test(x)&&(d--,d===0))return g}}return-1}function o(u,f){var d=u.alias;d?Array.isArray(d)||(u.alias=d=[d]):u.alias=d=[],d.push(f)}for(;s<i.length;){var l=i[s++];if(l.type==="keyword"&&l.content==="mutation"){var h=[];if(p(["definition-mutation","punctuation"])&&c(1).content==="("){s+=2;var m=n(/^\($/,/^\)$/);if(m===-1)continue;for(;s<m;s++){var b=c(0);b.type==="variable"&&(o(b,"variable-input"),h.push(b.content))}s=m+1}if(p(["punctuation","property-query"])&&c(0).content==="{"&&(s++,o(c(0),"property-mutation"),h.length>0)){var _=n(/^\{$/,/^\}$/);if(_===-1)continue;for(var w=s;w<_;w++){var v=i[w];v.type==="variable"&&h.indexOf(v.content)>=0&&o(v,"variable-input")}}}}})}Ea.displayName="groovy";Ea.aliases=[];function Ea(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)}Ca.displayName="less";Ca.aliases=[];function Ca(e){e.register(_t),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"}})}Ta.displayName="scss";Ta.aliases=[];function Ta(e){e.register(_t),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}Aa.displayName="textile";Aa.aliases=[];function Aa(e){e.register(xe),(function(t){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,i=/\)|\((?![^|()\n]+\))/.source;function s(m,b){return RegExp(m.replace(/<MOD>/g,function(){return"(?:"+r+")"}).replace(/<PAR>/g,function(){return"(?:"+i+")"}),b||"")}var c={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/},p=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:c},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:s(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:s(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:c},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:c},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:c},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:c},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:c},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:/[()]/}}}}}),n=p.phrase.inside,o={inline:n.inline,link:n.link,image:n.image,footnote:n.footnote,acronym:n.acronym,mark:n.mark};p.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var l=n.inline.inside;l.bold.inside=o,l.italic.inside=o,l.inserted.inside=o,l.deleted.inside=o,l.span.inside=o;var h=n.table.inside;h.inline=o.inline,h.link=o.link,h.image=o.image,h.footnote=o.footnote,h.acronym=o.acronym,h.mark=o.mark})(e)}$a.displayName="haml";$a.aliases=[];function $a(e){e.register(It),(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)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],s={},c=0,p=i.length;c<p;c++){var n=i[c];n=typeof n=="string"?{filter:n,language:n}:n,t.languages[n.language]&&(s["filter-"+n.filter]={pattern:RegExp(r.replace("{{filter_name}}",function(){return n.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[n.language,"language-"+n.language],inside:t.languages[n.language]}}})}t.languages.insertBefore("haml","filter",s)})(e)}Na.displayName="handlebars";Na.aliases=["hbs","mustache"];function Na(e){e.register(Ae),(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 i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(r,"handlebars",i)}),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)}Qt.displayName="haskell";Qt.aliases=["hs"];function Qt(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}Ra.displayName="haxe";Ra.aliases=[];function Ra(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:/[=\[\]{}]/}}La.displayName="hlsl";La.aliases=[];function La(e){e.register(Ke),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/})}Oa.displayName="hoon";Oa.aliases=[];function Oa(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Da.displayName="hpkp";Da.aliases=[];function Da(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Ma.displayName="hsts";Ma.aliases=[];function Ma(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}er.displayName="json";er.aliases=["webmanifest"];function er(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}ja.displayName="uri";ja.aliases=["url"];function ja(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}Fa.displayName="http";Fa.aliases=[];function Fa(e){(function(t){function r(h){return RegExp("(^(?:"+h+"):[ ]*(?![ ]))[^]+","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 i=t.languages,s={"application/javascript":i.javascript,"application/json":i.json||i.javascript,"application/xml":i.xml,"text/xml":i.xml,"text/html":i.html,"text/css":i.css,"text/plain":i.plain},c={"application/json":!0,"application/xml":!0};function p(h){var m=h.replace(/^[a-z]+\//,""),b="\\w+/(?:[\\w.-]+\\+)+"+m+"(?![+\\w.-])";return"(?:"+h+"|"+b+")"}var n;for(var o in s)if(s[o]){n=n||{};var l=c[o]?p(o):o;n[o.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:s[o]}}n&&t.languages.insertBefore("http","header",n)})(e)}Pa.displayName="ichigojam";Pa.aliases=[];function Pa(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:/[\[,;:()\]]/}}Ba.displayName="icon";Ba.aliases=[];function Ba(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:/[\[\](){},;]/}}Ua.displayName="icu-message-format";Ua.aliases=[];function Ua(e){(function(t){function r(o,l){return l<=0?/[]/.source:o.replace(/<SELF>/g,function(){return r(o,l-1)})}var i=/'[{}:=,](?:[^']|'')*'(?!')/,s={pattern:/''/,greedy:!0,alias:"operator"},c={pattern:i,greedy:!0,inside:{escape:s}},p=r(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return i.source}),8),n={pattern:RegExp(p),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(p),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":n,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":n,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:c},n.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)}za.displayName="idris";za.aliases=["idr"];function za(e){e.register(Qt),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}Ha.displayName="ignore";Ha.aliases=["gitignore","hgignore","npmignore"];function Ha(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)}Ga.displayName="inform7";Ga.aliases=[];function Ga(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"}}Wa.displayName="ini";Wa.aliases=[];function Wa(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:/=/}}qa.displayName="io";qa.aliases=[];function qa(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:/[{}[\];(),.:]/}}Va.displayName="j";Va.aliases=[];function Va(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:/[()]/}}Lt.displayName="java";Lt.aliases=[];function Lt(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/,i=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,s={pattern:RegExp(/(^|[^\w.])/.source+i+/[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+i+/[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+i+/[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+i+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:s.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+i+/(?:\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)}Ot.displayName="php";Ot.aliases=[];function Ot(e){e.register(Ae),(function(t){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{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,c=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,p=/[{}\[\](),:;]/;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:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:s,operator:c,punctuation:p};var n={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:n}},{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:n}}];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:i,number:s,operator:c,punctuation:p}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(l){if(/<\?/.test(l.code)){var h=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(l,"php",h)}}),t.hooks.add("after-tokenize",function(l){t.languages["markup-templating"].tokenizePlaceholders(l,"php")})})(e)}Dt.displayName="javadoclike";Dt.aliases=[];function Dt(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 i(c,p){var n="doc-comment",o=t.languages[c];if(o){var l=o[n];if(!l){var h={};h[n]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},o=t.languages.insertBefore(c,"comment",h),l=o[n]}if(l instanceof RegExp&&(l=o[n]={pattern:l}),Array.isArray(l))for(var m=0,b=l.length;m<b;m++)l[m]instanceof RegExp&&(l[m]={pattern:l[m]}),p(l[m]);else p(l)}}function s(c,p){typeof c=="string"&&(c=[c]),c.forEach(function(n){i(n,function(o){o.inside||(o.inside={}),o.inside.rest=p})})}Object.defineProperty(r,"addSupport",{value:s}),r.addSupport(["java","javascript","php"],r)})(e)}Ka.displayName="scala";Ka.aliases=[];function Ka(e){e.register(Lt),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}Ya.displayName="javadoc";Ya.aliases=[];function Ya(e){e.register(Lt),e.register(Dt),e.register(xe),(function(t){var r=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,i=/#\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 i});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)}Xa.displayName="javastacktrace";Xa.aliases=[];function Xa(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/}}}}Za.displayName="jexl";Za.aliases=[];function Za(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:/[{}[\](),.]/}}Ja.displayName="jolie";Ja.aliases=[];function Ja(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]*:)/}})}Qa.displayName="jq";Qa.aliases=[];function Qa(e){(function(t){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,i=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:/^\\\(|\)$/}}},c=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(i.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:s},string:{pattern:i,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=c})(e)}es.displayName="js-templates";es.aliases=[];function es(e){e.register(Te),(function(t){var r=t.languages.javascript["template-string"],i=r.pattern.source,s=r.inside.interpolation,c=s.inside["interpolation-punctuation"],p=s.pattern.source;function n(w,v){if(t.languages[w])return{pattern:RegExp("((?:"+v+")\\s*)"+i),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:w}}}}t.languages.javascript["template-string"]=[n("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),n("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),n("svg",/\bsvg/.source),n("markdown",/\b(?:markdown|md)/.source),n("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),n("sql",/\bsql/.source),r].filter(Boolean);function o(w,v){return"___"+v.toUpperCase()+"_"+w+"___"}function l(w,v,u){var f={code:w,grammar:v,language:u};return t.hooks.run("before-tokenize",f),f.tokens=t.tokenize(f.code,f.grammar),t.hooks.run("after-tokenize",f),f.tokens}function h(w){var v={};v["interpolation-punctuation"]=c;var u=t.tokenize(w,v);if(u.length===3){var f=[1,1];f.push.apply(f,l(u[1],t.languages.javascript,"javascript")),u.splice.apply(u,f)}return new t.Token("interpolation",u,s.alias,w)}function m(w,v,u){var f=t.tokenize(w,{interpolation:{pattern:RegExp(p),lookbehind:!0}}),d=0,g={},y=f.map(function(S){if(typeof S=="string")return S;for(var C=S.content,R;w.indexOf(R=o(d++,u))!==-1;);return g[R]=C,R}).join(""),x=l(y,v,u),k=Object.keys(g);d=0;function E(S){for(var C=0;C<S.length;C++){if(d>=k.length)return;var R=S[C];if(typeof R=="string"||typeof R.content=="string"){var $=k[d],D=typeof R=="string"?R:R.content,A=D.indexOf($);if(A!==-1){++d;var P=D.substring(0,A),I=h(g[$]),U=D.substring(A+$.length),z=[];if(P&&z.push(P),z.push(I),U){var W=[U];E(W),z.push.apply(z,W)}typeof R=="string"?(S.splice.apply(S,[C,1].concat(z)),C+=z.length-1):R.content=z}}else{var T=R.content;Array.isArray(T)?E(T):E([T])}}}return E(x),new t.Token(u,x,"language-"+u,w)}var b={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(w){if(!(w.language in b))return;function v(u){for(var f=0,d=u.length;f<d;f++){var g=u[f];if(typeof g!="string"){var y=g.content;if(!Array.isArray(y)){typeof y!="string"&&v([y]);continue}if(g.type==="template-string"){var x=y[1];if(y.length===3&&typeof x!="string"&&x.type==="embedded-code"){var k=_(x),E=x.alias,S=Array.isArray(E)?E[0]:E,C=t.languages[S];if(!C)continue;y[1]=m(k,C,S)}}else v(y)}}}v(w.tokens)});function _(w){return typeof w=="string"?w:Array.isArray(w)?w.map(_).join(""):_(w.content)}})(e)}tr.displayName="typescript";tr.aliases=["ts"];function tr(e){e.register(Te),(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)}ts.displayName="jsdoc";ts.aliases=[];function ts(e){e.register(Dt),e.register(Te),e.register(tr),(function(t){var r=t.languages.javascript,i=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+i+"\\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 i})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+i),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)}rs.displayName="n4js";rs.aliases=["n4jsd"];function rs(e){e.register(Te),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}is.displayName="js-extras";is.aliases=[];function is(e){e.register(Te),(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,l){return RegExp(o.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}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 i=["function","function-variable","method","method-variable","property-access"],s=0;s<i.length;s++){var c=i[s],p=t.languages.javascript[c];t.util.type(p)==="RegExp"&&(p=t.languages.javascript[c]={pattern:p});var n=p.inside||{};p.inside=n,n["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}ns.displayName="json5";ns.aliases=[];function ns(e){e.register(er),(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)}as.displayName="jsonp";as.aliases=[];function as(e){e.register(er),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*\()/})}ss.displayName="jsstacktrace";ss.aliases=[];function ss(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:/:/}}}}}}os.displayName="julia";os.aliases=[];function os(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|[πℯ]/}}ls.displayName="keepalived";ls.aliases=[];function ls(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:/[\{\}]/}}cs.displayName="keyman";cs.aliases=[];function cs(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:/[()=,]/}}ds.displayName="kotlin";ds.aliases=["kt","kts"];function ds(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)}us.displayName="kumir";us.aliases=["kum"];function us(e){(function(t){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function i(s,c){return RegExp(s.replace(/<nonId>/g,r),c)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:i(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:i(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:i(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:i(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:i(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:i(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:i(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:i(/(^|[<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)}ps.displayName="kusto";ps.aliases=[];function ps(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:/[()\[\]{},;.:]/}}ms.displayName="latex";ms.aliases=["context","tex"];function ms(e){(function(t){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,i={"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:i,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:i,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)}hs.displayName="latte";hs.aliases=[];function hs(e){e.register(ce),e.register(Ae),e.register(Ot),(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(i){if(i.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(i,"latte",s),i.grammar=r}}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"latte")})})(e)}rr.displayName="scheme";rr.aliases=[];function rr(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(i){for(var s in i)i[s]=i[s].replace(/<[\w\s]+>/g,function(c){return"(?:"+i[c].trim()+")"});return i[s]}})(e)}gs.displayName="lilypond";gs.aliases=["ly"];function gs(e){e.register(rr),(function(t){for(var r=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,i=5,s=0;s<i;s++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,/[^\s\S]/.source);var c=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/};c["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=c,t.languages.ly=c})(e)}fs.displayName="liquid";fs.aliases=[];function fs(e){e.register(Ae),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,i=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",r,function(s){var c=/^\{%-?\s*(\w+)/.exec(s);if(c){var p=c[1];if(p==="raw"&&!i)return i=!0,!0;if(p==="endraw")return i=!1,!0}return!i})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}bs.displayName="lisp";bs.aliases=["elisp","emacs","emacs-lisp"];function bs(e){(function(t){function r(w){return RegExp(/(\()/.source+"(?:"+w+")"+/(?=[\s\)])/.source)}function i(w){return RegExp(/([\s([])/.source+"(?:"+w+")"+/(?=[\s)])/.source)}var s=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,c="&"+s,p="(\\()",n="(?=\\))",o="(?=\\s)",l=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,h={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(p+"(?: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(p+"(?: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:i(/nil|t/.source),lookbehind:!0},number:{pattern:i(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(p+"def(?:const|custom|group|var)\\s+"+s),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(s)}},defun:{pattern:RegExp(p+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+s+/\s+\(/.source+l+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+s),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(p+"lambda\\s+\\(\\s*(?:&?"+s+"(?:\\s+&?"+s+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(p+s),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},m={"lisp-marker":RegExp(c),varform:{pattern:RegExp(/\(/.source+s+/\s+(?=\S)/.source+l+/\)/.source),inside:h},argument:{pattern:RegExp(/(^|[\s(])/.source+s),lookbehind:!0,alias:"variable"},rest:h},b="\\S+(?:\\s+\\S+)*",_={pattern:RegExp(p+l+n),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+b),inside:m},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+b),inside:m},keys:{pattern:RegExp("&key\\s+"+b+"(?:\\s+&allow-other-keys)?"),inside:m},argument:{pattern:RegExp(s),alias:"variable"},punctuation:/[()]/}};h.lambda.inside.arguments=_,h.defun.inside.arguments=t.util.clone(_),h.defun.inside.arguments.inside.sublist=_,t.languages.lisp=h,t.languages.elisp=h,t.languages.emacs=h,t.languages["emacs-lisp"]=h})(e)}ys.displayName="livescript";ys.aliases=[];function ys(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}_s.displayName="llvm";_s.aliases=[];function _s(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)}vs.displayName="log";vs.aliases=[];function vs(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:/[\[\].,]/}}ks.displayName="lolcode";ks.aliases=[];function ks(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}|…|,|!/}}Ss.displayName="magma";Ss.aliases=[];function Ss(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:/[()[\]{}<>,;.:]/}}xs.displayName="makefile";xs.aliases=[];function xs(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:/[:;(){}]/}}Lr.displayName="mata";Lr.aliases=[];function Lr(e){(function(t){var r=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,i=/\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(i),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)}ws.displayName="matlab";ws.aliases=[];function ws(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}|[.,;\[\](){}!]/}}Es.displayName="maxscript";Es.aliases=[];function Es(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)}Cs.displayName="mel";Cs.aliases=[];function Cs(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}Ts.displayName="mermaid";Ts.aliases=[];function Ts(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:/[(){};]/}}As.displayName="metafont";As.aliases=[];function As(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}}}$s.displayName="mizar";$s.aliases=[];function $s(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:/\(#|#\)|[,:;\[\](){}]/}}Ns.displayName="mongodb";Ns.aliases=[];function Ns(e){e.register(Te),(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"],i=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(c){return c.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(?:"+i.join("|")+")\\b"),alias:"keyword"}})})(e)}Rs.displayName="monkey";Rs.aliases=[];function Rs(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:/[.,:;()\[\]]/}}Is.displayName="moonscript";Is.aliases=["moon"];function Is(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}Ls.displayName="n1ql";Ls.aliases=[];function Ls(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:/[;[\](),.{}:]/}}Os.displayName="nand2tetris-hdl";Os.aliases=[];function Os(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:/[{}[\];(),:]/}}Ds.displayName="naniscript";Ds.aliases=["nani"];function Ds(e){(function(t){var r=/\{[^\r\n\[\]{}]*\}/,i={"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:i}}},"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:i},"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(p){var n=p.tokens;n.forEach(function(o){if(typeof o!="string"&&o.type==="generic-text"){var l=c(o);s(l)||(o.type="bad-line",o.content=l)}})});function s(p){for(var n="[]{}",o=[],l=0;l<p.length;l++){var h=p[l],m=n.indexOf(h);if(m!==-1){if(m%2===0)o.push(m+1);else if(o.pop()!==m)return!1}}return o.length===0}function c(p){return typeof p=="string"?p:Array.isArray(p)?p.map(c).join(""):c(p.content)}})(e)}Ms.displayName="nasm";Ms.aliases=[];function Ms(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:/[\[\]*+\-\/%<>=&|$!]/}}js.displayName="neon";js.aliases=[];function js(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:/[,:=[\]{}()-]/}}Fs.displayName="nevod";Fs.aliases=[];function Fs(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\-.]+/}}Ps.displayName="nginx";Ps.aliases=[];function Ps(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)}Bs.displayName="nim";Bs.aliases=[];function Bs(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}Us.displayName="nix";Us.aliases=[];function Us(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}zs.displayName="nsis";zs.aliases=[];function zs(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}}}Hs.displayName="objectivec";Hs.aliases=["objc"];function Hs(e){e.register(Ke),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}Gs.displayName="ocaml";Gs.aliases=[];function Gs(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/}}Ws.displayName="odin";Ws.aliases=[];function Ws(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)}qs.displayName="opencl";qs.aliases=[];function qs(e){e.register(Ke),(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)}Vs.displayName="openqasm";Vs.aliases=["qasm"];function Vs(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}Ks.displayName="oz";Ks.aliases=[];function Ks(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:/[\[\](){}.:;?]/}}Ys.displayName="parigp";Ys.aliases=[];function Ys(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:/[\[\]{}().,:;|]/}}Xs.displayName="parser";Xs.aliases=[];function Xs(e){e.register(xe),(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)}Zs.displayName="pascal";Zs.aliases=["objectpascal"];function Zs(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}Js.displayName="pascaligo";Js.aliases=[];function Js(e){(function(t){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,i=/(?:\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 i}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return i}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return i})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},c=["comment","keyword","builtin","operator","punctuation"].reduce(function(p,n){return p[n]=s[n],p},{});s["class-name"].forEach(function(p){p.inside=c})})(e)}Qs.displayName="psl";Qs.aliases=[];function Qs(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:/[(){}\[\];,]/}}eo.displayName="pcaxis";eo.aliases=["px"];function eo(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}to.displayName="peoplecode";to.aliases=["pcode"];function to(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}ro.displayName="perl";ro.aliases=[];function ro(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)}io.displayName="phpdoc";io.aliases=[];function io(e){e.register(Dt),e.register(Ot),(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)}no.displayName="php-extras";no.aliases=[];function no(e){e.register(Ot),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:/::|\\/}}})}ao.displayName="plant-uml";ao.aliases=["plantuml"];function ao(e){(function(t){var r=/\$\w+|%[a-z]+%/,i=/\[[^[\]]*\]/.source,s=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,c="(?:-+"+s+"-+|\\.+"+s+"\\.+|-+(?:"+i+"-*)?|"+i+"-+|\\.+(?:"+i+"\\.*)?|"+i+"\\.+)",p=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,n=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,o=/[[?]?[ox]?/.source,l=/[ox]?[\]?]?/.source,h=o+"(?:"+c+n+"|"+p+c+"(?:"+n+")?)"+l;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+h+/(?![-.<>?|\\\]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)}so.displayName="plsql";so.aliases=[];function so(e){e.register(Jt),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"}})}oo.displayName="powerquery";oo.aliases=["mscript","pq"];function oo(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}lo.displayName="powershell";lo.aliases=[];function lo(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)}co.displayName="processing";co.aliases=[];function co(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"}})}uo.displayName="prolog";uo.aliases=[];function uo(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:/[(){}\[\],]/}}po.displayName="promql";po.aliases=[];function po(e){(function(t){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],i=["on","ignoring","group_right","group_left","by","without"],s=["offset"],c=r.concat(i,s);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+i.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(?:"+c.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)}mo.displayName="properties";mo.aliases=[];function mo(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:/[=:]/}}ho.displayName="protobuf";ho.aliases=[];function ho(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)}go.displayName="stylus";go.aliases=[];function go(e){(function(t){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},i={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:i,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:i,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)}fo.displayName="twig";fo.aliases=[];function fo(e){e.register(Ae),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")})}bo.displayName="pug";bo.aliases=[];function bo(e){e.register(Te),e.register(xe),(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,i=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],s={},c=0,p=i.length;c<p;c++){var n=i[c];n=typeof n=="string"?{filter:n,language:n}:n,t.languages[n.language]&&(s["filter-"+n.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return n.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[n.language,"language-"+n.language],inside:t.languages[n.language]}}})}t.languages.insertBefore("pug","filter",s)})(e)}yo.displayName="puppet";yo.aliases=[];function yo(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)}_o.displayName="pure";_o.aliases=[];function _o(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"],i=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(s){var c=s;if(typeof s!="string"&&(c=s.alias,s=s.lang),t.languages[c]){var p={};p["inline-lang-"+c]={pattern:RegExp(i.replace("<lang>",s.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},p["inline-lang-"+c].inside.rest=t.util.clone(t.languages[c]),t.languages.insertBefore("pure","inline-lang",p)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}vo.displayName="purebasic";vo.aliases=["pbfasm"];function vo(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}ko.displayName="purescript";ko.aliases=["purs"];function ko(e){e.register(Qt),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}Or.displayName="python";Or.aliases=["py"];function Or(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:/![sra](?=[:}]$)/,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}So.displayName="qsharp";So.aliases=["qs"];function So(e){e.register(ce),(function(t){function r(_,w){return _.replace(/<<(\d+)>>/g,function(v,u){return"(?:"+w[+u]+")"})}function i(_,w,v){return RegExp(r(_,w),"")}function s(_,w){for(var v=0;v<w;v++)_=_.replace(/<<self>>/g,function(){return"(?:"+_+")"});return _.replace(/<<self>>/g,"[^\\s\\S]")}var c={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 p(_){return"\\b(?:"+_.trim().replace(/ /g,"|")+")\\b"}var n=RegExp(p(c.type+" "+c.other)),o=/\b[A-Za-z_]\w*\b/.source,l=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[o]),h={keyword:n,punctuation:/[<>()?,.:[\]]/},m=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[m]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[l]),lookbehind:!0,inside:h},{pattern:i(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[l]),lookbehind:!0,inside:h}],keyword:n,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,[m]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:i(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[b]),greedy:!0,inside:{interpolation:{pattern:i(/((?:^|[^\\])(?:\\\\)*)<<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}xo.displayName="q";xo.aliases=[];function xo(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:/[(){}\[\];.]/}}wo.displayName="qml";wo.aliases=[];function wo(e){e.register(Te),(function(t){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,i=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,s=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return r}).replace(/<comment>/g,function(){return i}),c=0;c<2;c++)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)}Eo.displayName="qore";Eo.aliases=[];function Eo(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/})}Co.displayName="r";Co.aliases=[];function Co(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:/[(){}\[\],;]/}}To.displayName="racket";To.aliases=["rkt"];function To(e){e.register(rr),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}Ao.displayName="cshtml";Ao.aliases=["razor"];function Ao(e){e.register(Rt),e.register(xe),(function(t){var r=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function s(d,g){for(var y=0;y<g;y++)d=d.replace(/<self>/g,function(){return"(?:"+d+")"});return d.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+i+")").replace(/<comment>/g,"(?:"+r+")")}var c=s(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),p=s(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),n=s(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),o=s(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),l=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+c+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+o+")?"+c+"|"+p+")*"+/(?![?!\.(\[]|<(?!\/))/.source,h=/@(?![\w()])/.source+"|"+l,m="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+h+`)[^"'@]*)+["'])`,b=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,m),_=/(?!\d)[^\s>\/=$<%]+/.source+b+/\s*\/?>/.source,w=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+b+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+_+"|"+s(/<\1/.source+b+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+_+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+_+")";t.languages.cshtml=t.languages.extend("markup",{});var v=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(w),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),u={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:v},f={pattern:RegExp(/(^|[^@])/.source+l),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:u}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+_),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+m),t.languages.insertBefore("inside","punctuation",{value:f},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+"(?:"+[n,/(?:code|functions)\s*/.source+n,/(?:for|foreach|lock|switch|using|while)\s*/.source+c+/\s*/.source+n,/do\s*/.source+n+/\s*while\s*/.source+c+/(?:\s*;)?/.source,/try\s*/.source+n+/\s*catch\s*/.source+c+/\s*/.source+n+/\s*finally\s*/.source+n,/if\s*/.source+c+/\s*/.source+n+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+c+")?"+/\s*/.source+n+")*",/helper\s+\w+\s*/.source+c+/\s*/.source+n].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:u}},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:u}},value:f,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml})(e)}Dr.displayName="jsx";Dr.aliases=[];function Dr(e){e.register(Te),e.register(xe),(function(t){var r=t.util.clone(t.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,s=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,c=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function p(l,h){return l=l.replace(/<S>/g,function(){return i}).replace(/<BRACES>/g,function(){return s}).replace(/<SPREAD>/g,function(){return c}),RegExp(l,h)}c=p(c).source,t.languages.jsx=t.languages.extend("markup",r),t.languages.jsx.tag.pattern=p(/<\/?(?:[\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:p(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:p(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var n=function(l){return l?typeof l=="string"?l:typeof l.content=="string"?l.content:l.content.map(n).join(""):""},o=function(l){for(var h=[],m=0;m<l.length;m++){var b=l[m],_=!1;if(typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?h.length>0&&h[h.length-1].tagName===n(b.content[0].content[1])&&h.pop():b.content[b.content.length-1].content==="/>"||h.push({tagName:n(b.content[0].content[1]),openedBraces:0}):h.length>0&&b.type==="punctuation"&&b.content==="{"?h[h.length-1].openedBraces++:h.length>0&&h[h.length-1].openedBraces>0&&b.type==="punctuation"&&b.content==="}"?h[h.length-1].openedBraces--:_=!0),(_||typeof b=="string")&&h.length>0&&h[h.length-1].openedBraces===0){var w=n(b);m<l.length-1&&(typeof l[m+1]=="string"||l[m+1].type==="plain-text")&&(w+=n(l[m+1]),l.splice(m+1,1)),m>0&&(typeof l[m-1]=="string"||l[m-1].type==="plain-text")&&(w=n(l[m-1])+w,l.splice(m-1,1),m--),l[m]=new t.Token("plain-text",w,null,w)}b.content&&typeof b.content!="string"&&o(b.content)}};t.hooks.add("after-tokenize",function(l){l.language!=="jsx"&&l.language!=="tsx"||o(l.tokens)})})(e)}$o.displayName="tsx";$o.aliases=[];function $o(e){e.register(Dr),e.register(tr),(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 i=t.languages.tsx.tag;i.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+i.pattern.source+")",i.pattern.flags),i.lookbehind=!0})(e)}No.displayName="reason";No.aliases=[];function No(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}Ro.displayName="rego";Ro.aliases=[];function Ro(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:/[,;.\[\]{}()]/}}Io.displayName="renpy";Io.aliases=["rpy"];function Io(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}Lo.displayName="rescript";Lo.aliases=["res"];function Lo(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}Oo.displayName="rest";Oo.aliases=[];function Oo(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}}}Do.displayName="rip";Do.aliases=[];function Do(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`'",.:;#\/\\()<>\[\]{}]*/}}Mo.displayName="roboconf";Mo.aliases=[];function Mo(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:/[{},.;:=]/}}jo.displayName="robotframework";jo.aliases=["robot"];function jo(e){(function(t){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},i={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function s(o,l){var h={};h["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var m in l)h[m]=l[m];return h.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},h.variable=i,h.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return o}),"im"),alias:"section",inside:h}}var c={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},p={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:i}},n={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:i}};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":p,documentation:c,property:n}),keywords:s("Keywords",{"keyword-name":p,documentation:c,property:n}),tasks:s("Tasks",{"task-name":p,documentation:c,property:n}),comment:r},t.languages.robot=t.languages.robotframework})(e)}Fo.displayName="rust";Fo.aliases=[];function Fo(e){(function(t){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,i=0;i<2;i++)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)}Po.displayName="sas";Po.aliases=[];function Po(e){(function(t){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,i=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,s={pattern:RegExp(r+"[bx]"),alias:"number"},c={pattern:/&[a-z_]\w*/i},p={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"},n={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},o=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],l={pattern:RegExp(r),greedy:!0},h=/[$%@.(){}\[\];,\\]/,m={pattern:/%?\b\w+(?=\()/,alias:"keyword"},b={function:m,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":c,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:i,"numeric-constant":s,punctuation:h,string:l},_={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},w={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},v={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"},u={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},f=/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,d={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return f}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return f}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:o,function:m,"arg-value":b["arg-value"],operator:b.operator,argument:b.arg,number:i,"numeric-constant":s,punctuation:h,string:l}},g={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":v,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:i,"numeric-constant":s,punctuation:h,string:l}},"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:g,"submit-statement":u,"global-statements":v,number:i,"numeric-constant":s,punctuation:h,string:l}},"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:g,"submit-statement":u,"global-statements":v,number:i,"numeric-constant":s,punctuation:h,string:l}},"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":d,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:b},step:n,keyword:g,function:m,format:_,altformat:w,"global-statements":v,number:i,"numeric-constant":s,punctuation:h,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,inside:b},"macro-keyword":p,"macro-variable":c,"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":p,"macro-variable":c,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:h}},"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:i,"numeric-constant":s}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:b},"cas-actions":d,comment:o,function:m,format:_,altformat:w,"numeric-constant":s,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:l,step:n,keyword:g,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:i,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:h}})(e)}Bo.displayName="sass";Bo.aliases=[];function Bo(e){e.register(_t),(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]+\}/,i=[/[+*\/%]|[=!]=|<=?|>=?|\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:i}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:i,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)}Uo.displayName="shell-session";Uo.aliases=["sh-session","shellsession"];function Uo(e){e.register($r),(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)}zo.displayName="smali";zo.aliases=[];function zo(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:/[{}(),;:]/}}Ho.displayName="smalltalk";Ho.aliases=[];function Ho(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:/[.;:?\[\](){}]/}}Go.displayName="smarty";Go.aliases=[];function Go(e){e.register(Ae),(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])*'/,i=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 c="{literal}",p="{/literal}",n=!1;t.languages["markup-templating"].buildPlaceholders(s,"smarty",i,function(o){return o===p&&(n=!1),n?!1:(o===c&&(n=!0),!0)})}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"smarty")})})(e)}Wo.displayName="sml";Wo.aliases=["smlnj"];function Wo(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)}qo.displayName="solidity";qo.aliases=["sol"];function qo(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}Vo.displayName="solution-file";Vo.aliases=["sln"];function Vo(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)}Ko.displayName="soy";Ko.aliases=[];function Ko(e){e.register(Ae),(function(t){var r=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\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:i,punctuation:/[\[\].?]/}},string:{pattern:r,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(s){var c=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,p="{literal}",n="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(s,"soy",c,function(l){return l===n&&(o=!1),o?!1:(l===p&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"soy")})})(e)}Mr.displayName="turtle";Mr.aliases=["trig"];function Mr(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}Yo.displayName="sparql";Yo.aliases=["rq"];function Yo(e){e.register(Mr),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}Xo.displayName="splunk-spl";Xo.aliases=[];function Xo(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:/[()[\],]/}}Zo.displayName="sqf";Zo.aliases=[];function Zo(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"]}Jo.displayName="squirrel";Jo.aliases=[];function Jo(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"}})}Qo.displayName="stan";Qo.aliases=[];function Qo(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)}el.displayName="stata";el.aliases=[];function el(e){e.register(Lt),e.register(Lr),e.register(Or),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:/[()[\].,;]/}}rl.displayName="supercollider";rl.aliases=["sclang"];function rl(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}il.displayName="swift";il.aliases=[];function il(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})}nl.displayName="systemd";nl.aliases=[];function nl(e){(function(t){var r={pattern:/^[;#].*/m,greedy:!0},i=/"(?:[^\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+"(?:"+i+`|(?=[^"\r
426
+ ]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+i+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+i),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}ir.displayName="t4-templating";ir.aliases=[];function ir(e){(function(t){function r(s,c,p){return{pattern:RegExp("<#"+s+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+s+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:c,alias:p}}}}function i(s){var c=t.languages[s],p="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("=",c,p),"class-feature":r("\\+",c,p),standard:r("",c,p)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:i})})(e)}al.displayName="t4-cs";al.aliases=["t4"];function al(e){e.register(Rt),e.register(ir),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}jr.displayName="vbnet";jr.aliases=[];function jr(e){e.register(Rr),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:/[,;:(){}]/})}sl.displayName="t4-vb";sl.aliases=[];function sl(e){e.register(ir),e.register(jr),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}ol.displayName="tap";ol.aliases=[];function ol(e){e.register(Nr),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"}}}ll.displayName="tcl";ll.aliases=[];function ll(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:/[{}()\[\]]/}}cl.displayName="tt2";cl.aliases=[];function cl(e){e.register(ce),e.register(Ae),(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 i=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(r,"tt2",i)}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"tt2")})})(e)}dl.displayName="toml";dl.aliases=[];function dl(e){(function(t){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function i(s){return s.replace(/__/g,function(){return r})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(i(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(i(/(^[\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)}ul.displayName="tremor";ul.aliases=["trickle","troy"];function ul(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)}pl.displayName="typoscript";pl.aliases=["tsconfig"];function pl(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)}ml.displayName="unrealscript";ml.aliases=["uc","uscript"];function ml(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}hl.displayName="uorazor";hl.aliases=[];function hl(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:/[()\[\]{}:.,]/}}gl.displayName="v";gl.aliases=[];function gl(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)}fl.displayName="vala";fl.aliases=[];function fl(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]+$/}}})}bl.displayName="velocity";bl.aliases=[];function bl(e){e.register(xe),(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)}yl.displayName="verilog";yl.aliases=[];function yl(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:/[[\];(),.:]/}}_l.displayName="vhdl";_l.aliases=[];function _l(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:/[{}[\];(),.:]/}}vl.displayName="vim";vl.aliases=[];function vl(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:/[{}[\](),;:]/}}kl.displayName="visual-basic";kl.aliases=["vb","vba"];function kl(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"]}Sl.displayName="warpscript";Sl.aliases=[];function Sl(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/}}xl.displayName="wasm";xl.aliases=[];function xl(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:/[()]/}}wl.displayName="web-idl";wl.aliases=["webidl"];function wl(e){(function(t){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,i="(?:"+/\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+i),lookbehind:!0,inside:s},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+i),lookbehind:!0,inside:s},{pattern:RegExp(/(\btypedef\b\s*)/.source+i),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(i+"(?="+/\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 c in t.languages["web-idl"])c!=="class-name"&&(s[c]=t.languages["web-idl"][c]);t.languages.webidl=t.languages["web-idl"]})(e)}El.displayName="wgsl";El.aliases=[];function El(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:/[@(){}[\],;<>:.]/}}Cl.displayName="wiki";Cl.aliases=[];function Cl(e){e.register(xe),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}}}})}Tl.displayName="wolfram";Tl.aliases=["mathematica","nb","wl"];function Tl(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}Al.displayName="wren";Al.aliases=[];function Al(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]+/}}}$l.displayName="xeora";$l.aliases=["xeoracube"];function $l(e){e.register(xe),(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)}Nl.displayName="xml-doc";Nl.aliases=[];function Nl(e){e.register(xe),(function(t){function r(p,n){t.languages[p]&&t.languages.insertBefore(p,"comment",{"doc-comment":n})}var i=t.languages.markup.tag,s={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:i}},c={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:i}};r("csharp",s),r("fsharp",s),r("vbnet",c)})(e)}Rl.displayName="xojo";Rl.aliases=[];function Rl(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:/[.,;:()]/}}Il.displayName="xquery";Il.aliases=[];function Il(e){e.register(xe),(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("")},i=function(s){for(var c=[],p=0;p<s.length;p++){var n=s[p],o=!1;if(typeof n!="string"&&(n.type==="tag"&&n.content[0]&&n.content[0].type==="tag"?n.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===r(n.content[0].content[1])&&c.pop():n.content[n.content.length-1].content==="/>"||c.push({tagName:r(n.content[0].content[1]),openedBraces:0}):c.length>0&&n.type==="punctuation"&&n.content==="{"&&(!s[p+1]||s[p+1].type!=="punctuation"||s[p+1].content!=="{")&&(!s[p-1]||s[p-1].type!=="plain-text"||s[p-1].content!=="{")?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&n.type==="punctuation"&&n.content==="}"?c[c.length-1].openedBraces--:n.type!=="comment"&&(o=!0)),(o||typeof n=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var l=r(n);p<s.length-1&&(typeof s[p+1]=="string"||s[p+1].type==="plain-text")&&(l+=r(s[p+1]),s.splice(p+1,1)),p>0&&(typeof s[p-1]=="string"||s[p-1].type==="plain-text")&&(l=r(s[p-1])+l,s.splice(p-1,1),p--),/^\s+$/.test(l)?s[p]=l:s[p]=new t.Token("plain-text",l,null,l)}n.content&&typeof n.content!="string"&&i(n.content)}};t.hooks.add("after-tokenize",function(s){s.language==="xquery"&&i(s.tokens)})})(e)}Ll.displayName="yang";Ll.aliases=[];function Ll(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:/[{};:]/}}Ol.displayName="zig";Ol.aliases=[];function Ol(e){(function(t){function r(l){return function(){return l}}var i=/\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(?!"+i.source+")(?!\\d)\\w+\\b",c=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,p=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,r(c)),n=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,r(s)),o="(?!\\s)(?:!?\\s*(?:"+p+"\\s*)*"+n+")+";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(c))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,r(o)).replace(/<ALIGN>/g,r(c))),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:i,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(l){l.inside===null&&(l.inside=t.languages.zig)})})(e)}O.register(xe);O.register(_t);O.register(ce);O.register(Li);O.register(Te);O.register(Oi);O.register(Di);O.register(Mi);O.register(ji);O.register(Fi);O.register(Pi);O.register(Bi);O.register(Ui);O.register(Jt);O.register(zi);O.register(Hi);O.register(Gi);O.register(Wi);O.register(Ke);O.register(Nt);O.register(qi);O.register(Vi);O.register(Ki);O.register($r);O.register(Nr);O.register(Yi);O.register(Xi);O.register(Zi);O.register(Rt);O.register(Ji);O.register(Qi);O.register(en);O.register(tn);O.register(rn);O.register(nn);O.register(an);O.register(sn);O.register(Rr);O.register(on);O.register(ln);O.register(cn);O.register(dn);O.register(un);O.register(pn);O.register(mn);O.register(hn);O.register(gn);O.register(fn);O.register(bn);O.register(yn);O.register(_n);O.register(vn);O.register(kn);O.register(Sn);O.register(xn);O.register(wn);O.register(En);O.register(Cn);O.register(Tn);O.register(An);O.register($n);O.register(Nn);O.register(Rn);O.register(It);O.register(In);O.register(Ln);O.register(On);O.register(Dn);O.register(Mn);O.register(jn);O.register(Fn);O.register(Pn);O.register(Bn);O.register(Un);O.register(zn);O.register(Ae);O.register(Hn);O.register(Gn);O.register(Wn);O.register(qn);O.register(Vn);O.register(Kn);O.register(Yn);O.register(Xn);O.register(Zn);O.register(Jn);O.register(Ir);O.register(Qn);O.register(ea);O.register(ta);O.register(ra);O.register(ia);O.register(na);O.register(aa);O.register(sa);O.register(oa);O.register(la);O.register(ca);O.register(da);O.register(ua);O.register(pa);O.register(ma);O.register(ha);O.register(ga);O.register(fa);O.register(ba);O.register(ya);O.register(_a);O.register(va);O.register(ka);O.register(Sa);O.register(xa);O.register(wa);O.register(Ea);O.register(Ca);O.register(Ta);O.register(Aa);O.register($a);O.register(Na);O.register(Qt);O.register(Ra);O.register(Ia);O.register(La);O.register(Oa);O.register(Da);O.register(Ma);O.register(er);O.register(ja);O.register(Fa);O.register(Pa);O.register(Ba);O.register(Ua);O.register(za);O.register(Ha);O.register(Ga);O.register(Wa);O.register(qa);O.register(Va);O.register(Lt);O.register(Ot);O.register(Dt);O.register(Ka);O.register(Ya);O.register(Xa);O.register(Za);O.register(Ja);O.register(Qa);O.register(es);O.register(tr);O.register(ts);O.register(rs);O.register(is);O.register(ns);O.register(as);O.register(ss);O.register(os);O.register(ls);O.register(cs);O.register(ds);O.register(us);O.register(ps);O.register(ms);O.register(hs);O.register(rr);O.register(gs);O.register(fs);O.register(bs);O.register(ys);O.register(_s);O.register(vs);O.register(ks);O.register(Ss);O.register(xs);O.register(Lr);O.register(ws);O.register(Es);O.register(Cs);O.register(Ts);O.register(As);O.register($s);O.register(Ns);O.register(Rs);O.register(Is);O.register(Ls);O.register(Os);O.register(Ds);O.register(Ms);O.register(js);O.register(Fs);O.register(Ps);O.register(Bs);O.register(Us);O.register(zs);O.register(Hs);O.register(Gs);O.register(Ws);O.register(qs);O.register(Vs);O.register(Ks);O.register(Ys);O.register(Xs);O.register(Zs);O.register(Js);O.register(Qs);O.register(eo);O.register(to);O.register(ro);O.register(io);O.register(no);O.register(ao);O.register(so);O.register(oo);O.register(lo);O.register(co);O.register(uo);O.register(po);O.register(mo);O.register(ho);O.register(go);O.register(fo);O.register(bo);O.register(yo);O.register(_o);O.register(vo);O.register(ko);O.register(Or);O.register(So);O.register(xo);O.register(wo);O.register(Eo);O.register(Co);O.register(To);O.register(Ao);O.register(Dr);O.register($o);O.register(No);O.register(Ro);O.register(Io);O.register(Lo);O.register(Oo);O.register(Do);O.register(Mo);O.register(jo);O.register(Fo);O.register(Po);O.register(Bo);O.register(Uo);O.register(zo);O.register(Ho);O.register(Go);O.register(Wo);O.register(qo);O.register(Vo);O.register(Ko);O.register(Mr);O.register(Yo);O.register(Xo);O.register(Zo);O.register(Jo);O.register(Qo);O.register(el);O.register(tl);O.register(rl);O.register(il);O.register(nl);O.register(ir);O.register(al);O.register(jr);O.register(sl);O.register(ol);O.register(ll);O.register(cl);O.register(dl);O.register(ul);O.register(pl);O.register(ml);O.register(hl);O.register(gl);O.register(fl);O.register(bl);O.register(yl);O.register(_l);O.register(vl);O.register(kl);O.register(Sl);O.register(xl);O.register(wl);O.register(El);O.register(Cl);O.register(Tl);O.register(Al);O.register($l);O.register(Nl);O.register(Rl);O.register(Il);O.register(Ll);O.register(Ol);var Dl=vm(O,Vm);Dl.supportedLanguages=km;const zd={'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%)"}},Hd={'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%)"}};let _r=null;function gc({text:e}){const[t,r]=N.useState(!1),{t:i}=le(),s=N.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(c=>{console.error("Failed to copy!",c)})},[e]);return a.jsxs("button",{onClick:s,className:"flex items-center gap-1 px-2 py-1 text-[13px] rounded-md text-text-tertiary hover:text-text-primary transition-colors",title:i("message.copyToClipboard"),children:[t?a.jsx(Je,{size:14,className:"text-accent-green"}):a.jsx(ci,{size:14}),a.jsx("span",{children:i(t?"message.copied":"message.copy")})]})}function Km({src:e,alt:t}){const r=N.useCallback(i=>{i.preventDefault(),e&&_r&&_r(e)},[e]);return a.jsx("img",{src:e,alt:t,className:"markdown-image cursor-pointer hover:opacity-90 transition-opacity",onClick:r,title:"点击放大"})}function Ym({className:e,children:t,...r}){const i=yt(n=>n.resolved),s=/language-(\w+)/.exec(e||""),c=String(t).replace(/\n$/,"");if(s){const n=s[1];return a.jsxs("div",{className:"my-3 rounded-xl overflow-hidden bg-bg-code",children:[a.jsxs("div",{className:"flex items-center justify-between px-3 py-1 bg-transparent text-[13px] text-text-secondary",children:[a.jsx("span",{children:n}),a.jsx(gc,{text:c})]}),a.jsx("div",{className:"px-3 pb-1 overflow-x-auto",children:a.jsx(Dl,{style:i==="dark"?zd:Hd,language:n,PreTag:"div",customStyle:{margin:0,padding:0,border:"none",background:"transparent",fontSize:"14px",lineHeight:"1.5"},children:c})})]})}return c.includes(`
427
+ `)?a.jsxs("div",{className:"my-3 rounded-xl overflow-hidden bg-bg-code",children:[a.jsx("div",{className:"flex items-center justify-end px-3 py-1 bg-transparent",children:a.jsx(gc,{text:c})}),a.jsx("pre",{className:"px-3 pb-2 overflow-x-auto text-text-primary font-mono",style:{margin:0,background:"transparent",fontSize:"14px",lineHeight:"1.2",whiteSpace:"pre"},children:c})]}):a.jsx("code",{className:e,...r,children:t})}function Xm({thinking:e,streaming:t,duration:r}){const[i,s]=N.useState(null),c=N.useRef(null),[p,n]=N.useState(0),o=N.useRef(Date.now()),{t:l}=le(),h=i!==null?i:t;N.useEffect(()=>{if(!t)return;o.current=Date.now();const _=setInterval(()=>{n(Math.round((Date.now()-o.current)/1e3))},1e3);return()=>clearInterval(_)},[t]),N.useEffect(()=>{t&&h&&c.current&&(c.current.scrollTop=c.current.scrollHeight)},[e,t,h]);const m=t?p:r||0,b=t?l("thinking.thinking"):`${l("thinking.done")}${l("thinking.seconds").replace("{n}",String(m))}`;return a.jsxs("div",{className:`thinking-block ${t?"thinking-block-streaming":""}`,children:[a.jsxs("div",{className:"thinking-block-header",onClick:()=>s(_=>_!==null?!_:!t),children:[a.jsx("span",{className:"thinking-block-header-text",children:b}),t&&a.jsx("span",{className:"thinking-dot"}),a.jsx(ct,{size:14,className:`thinking-block-toggle ${h?"expanded":""}`})]}),h&&a.jsx("div",{ref:c,className:"thinking-block-content",children:e})]})}function Gd({message:e}){const t=!!e.streaming&&!!e.thinking&&!e.thinkingDuration,r=!!e.thinking,i=!!e.content,[s,c]=N.useState(null);return N.useEffect(()=>(_r=c,()=>{_r=null}),[]),!r&&!i?null:a.jsxs("div",{className:"mb-2",children:[r&&a.jsx(Xm,{thinking:e.thinking,streaming:t,duration:e.thinkingDuration}),i&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"markdown-body text-chat text-text-primary",children:a.jsx(Cr,{remarkPlugins:[Tr],components:{code:Ym,img:({src:p,alt:n})=>a.jsx(Km,{src:p,alt:n}),table:({children:p,...n})=>a.jsx("div",{className:"markdown-table-wrapper",children:a.jsx("table",{...n,children:p})})},children:e.content})}),s&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 cursor-zoom-out",onClick:()=>c(null),children:a.jsx("img",{src:s,alt:"",className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg shadow-2xl",onClick:p=>p.stopPropagation()})})]})]})}function Zm(e){return e.replace(/<\/?[a-zA-Z][a-zA-Z0-9_-]*(?:\s[^>]*)?>/g,"").trim()}function Jm({entries:e}){const[t,r]=N.useState(!1),{t:i}=le(),s=e.find(n=>n.role==="assistant"),c=!s||!!s.streaming,p=N.useMemo(()=>{if(s!=null&&s.content)return{...s,content:Zm(s.content)}},[s]);return c?a.jsx("div",{className:"flex flex-col w-full my-4",children:a.jsxs("div",{className:"flex items-center w-full gap-3",children:[a.jsx("div",{className:"flex-1 h-px bg-border-muted"}),a.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:[a.jsx(Ce,{size:12,className:"animate-spin opacity-70"}),a.jsx("span",{children:i("chat.compacting")})]}),a.jsx("div",{className:"flex-1 h-px bg-border-muted"})]})}):a.jsxs("div",{className:"flex flex-col w-full my-4",children:[a.jsxs("div",{className:"flex items-center w-full gap-3",children:[a.jsx("div",{className:"flex-1 h-px bg-border-muted"}),a.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:[a.jsx(Pp,{size:12,className:"opacity-70"}),a.jsx("span",{children:i("chat.compacted")}),p&&a.jsx(Qe,{size:14,className:`transition-transform duration-200 opacity-60 ${t?"rotate-90":""}`})]}),a.jsx("div",{className:"flex-1 h-px bg-border-muted"})]}),t&&p&&a.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:a.jsx(Gd,{message:p})})]})}function Wd(e,t){const r=new Date(e),i=new Date,s=new Date(i.getFullYear(),i.getMonth(),i.getDate()),c=new Date(s.getTime()-864e5),p=new Date(r.getFullYear(),r.getMonth(),r.getDate()),n=String(r.getHours()).padStart(2,"0"),o=String(r.getMinutes()).padStart(2,"0"),l=`${n}:${o}`;return p.getTime()===s.getTime()?l:p.getTime()===c.getTime()?t==="zh"?`昨天 ${l}`:`Yesterday ${l}`:r.getFullYear()===i.getFullYear()?t==="zh"?`${r.getMonth()+1}月${r.getDate()}日 ${l}`:`${r.toLocaleDateString("en-US",{month:"short"})} ${r.getDate()} ${l}`:t==="zh"?`${r.getFullYear()}年${r.getMonth()+1}月${r.getDate()}日 ${l}`:`${r.toLocaleDateString("en-US",{month:"short"})} ${r.getDate()}, ${r.getFullYear()} ${l}`}function vr(e){const t=new Date(e),r=new Date,i=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(i.getTime()-864e5),c=new Date(t.getFullYear(),t.getMonth(),t.getDate());return c.getTime()===i.getTime()?`today-${t.getHours()}`:c.getTime()===s.getTime()?`yesterday-${t.getHours()}`:`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}function Ut({label:e}){return a.jsx("div",{className:"date-separator",children:a.jsx("span",{className:"date-separator-label",children:e})})}function Qm(e,t){const r=e.split(`
428
+ `),i=t.split(`
429
+ `),s=r.length,c=i.length;if(s*c>5e5)return[...r.map((h,m)=>({type:"-",text:h,oldLineNo:m+1})),...i.map((h,m)=>({type:"+",text:h,newLineNo:m+1}))];const p=Array.from({length:s+1},()=>Array(c+1).fill(0));for(let h=1;h<=s;h++)for(let m=1;m<=c;m++)r[h-1]===i[m-1]?p[h][m]=p[h-1][m-1]+1:p[h][m]=Math.max(p[h-1][m],p[h][m-1]);const n=[];let o=s,l=c;for(;o>0||l>0;)o>0&&l>0&&r[o-1]===i[l-1]?(n.push({type:" ",text:r[o-1],oldLineNo:o,newLineNo:l}),o--,l--):l>0&&(o===0||p[o][l-1]>=p[o-1][l])?(n.push({type:"+",text:i[l-1],newLineNo:l}),l--):(n.push({type:"-",text:r[o-1],oldLineNo:o}),o--);return n.reverse(),n}function eh(e,t=3){if(e.length<=40)return e;const r=new Set;e.forEach((c,p)=>{if(c.type!==" ")for(let n=Math.max(0,p-t);n<=Math.min(e.length-1,p+t);n++)r.add(n)});const i=[];let s=-1;for(let c=0;c<e.length;c++)r.has(c)&&(s!==-1&&c-s>1&&i.push("separator"),i.push(e[c]),s=c);return i}function yr({path:e,oldText:t,newText:r,maxHeight:i="max-h-80"}){const{t:s}=le(),c=e.split("/").pop()||e;if(t==null){const o=r.split(`
430
+ `);return a.jsxs("div",{className:"rounded-lg overflow-hidden bg-bg-secondary/30",children:[a.jsx(Wr,{fileName:c}),a.jsx("div",{className:`${i} overflow-y-auto font-mono text-[11px] leading-[18px]`,children:o.map((l,h)=>a.jsxs("div",{className:"flex bg-bg-diff-add",children:[a.jsx("span",{className:"w-10 text-right pr-2 text-text-tertiary/50 select-none shrink-0",children:h+1}),a.jsx("span",{className:"text-accent-green/70 select-none shrink-0 w-4 text-center",children:"+"}),a.jsx("span",{className:"text-accent-green flex-1 whitespace-pre-wrap break-all pr-2",children:l})]},h))})]})}const p=Qm(t,r),n=eh(p);return p.every(o=>o.type===" ")?a.jsxs("div",{className:"rounded-lg overflow-hidden bg-bg-secondary/30",children:[a.jsx(Wr,{fileName:c}),a.jsx("div",{className:"px-3 py-2 text-[11px] text-text-tertiary",children:s("diff.noChanges")})]}):a.jsxs("div",{className:"rounded-lg overflow-hidden bg-bg-secondary/30",children:[a.jsx(Wr,{fileName:c}),a.jsx("div",{className:`${i} overflow-y-auto font-mono text-[11px] leading-[18px]`,children:n.map((o,l)=>{if(o==="separator")return a.jsx("div",{className:"px-3 py-0.5",children:a.jsx("div",{className:"border-t border-dashed border-border-muted/50"})},`sep-${l}`);const h=o,m=h.type==="+"?"bg-bg-diff-add":h.type==="-"?"bg-bg-diff-del":"",b=h.type==="+"?"text-accent-green":h.type==="-"?"text-accent-red":"text-text-primary",_=h.type==="+"?"text-accent-green/70":h.type==="-"?"text-accent-red/70":"text-text-tertiary/30",w=h.type==="-"?h.oldLineNo:h.newLineNo;return a.jsxs("div",{className:`flex ${m}`,children:[a.jsx("span",{className:"w-10 text-right pr-2 text-text-tertiary/50 select-none shrink-0",children:w??""}),a.jsx("span",{className:`${_} select-none shrink-0 w-4 text-center`,children:h.type===" "?"":h.type}),a.jsx("span",{className:`${b} flex-1 whitespace-pre-wrap break-all pr-2`,children:h.text})]},l)})})]})}function Wr({fileName:e}){return a.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 bg-bg-secondary/30 border-b border-border-muted/30",children:[a.jsx(et,{size:11,className:"text-text-tertiary"}),a.jsx("span",{className:"text-[11px] text-text-tertiary font-mono",children:e})]})}const th={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?a.jsx("div",{className:"rounded-lg bg-bg-secondary/50 px-3.5 py-2.5 font-mono text-xs",children:a.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?a.jsx(yr,{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):"",i=e.new_string!=null?String(e.new_string):"";return{subtitle:t||void 0,content:t&&(r||i)?a.jsx(yr,{path:t,oldText:r,newText:i,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 i=r[0];return{subtitle:`${t} (${r.length})`,content:a.jsx(yr,{path:t,oldText:String(i.old_string||""),newText:String(i.new_string||""),maxHeight:"max-h-40"})}},Read:e=>e!=null&&e.file_path?{content:a.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:a.jsx("div",{className:"text-xs font-mono text-text-secondary truncate",children:t.join(" in ")})}},Grep:e=>e?{content:a.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?a.jsx("div",{className:"text-xs font-mono text-accent-blue truncate",children:String(e.url)}):null}:null,WebSearch:e=>e?{content:a.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:a.jsx("div",{className:"space-y-2",children:t.map((i,s)=>a.jsxs("div",{className:"rounded-lg bg-bg-secondary/50 overflow-hidden",children:[a.jsxs("div",{className:"px-3 py-2 text-xs",children:[i.header&&a.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:i.header}),a.jsx("span",{className:"text-text-primary font-medium",children:i.question}),i.multiSelect&&a.jsx("span",{className:"text-[10px] text-text-tertiary ml-1",children:"(multi)"})]}),i.options&&i.options.length>0&&a.jsx("div",{className:"border-t border-border-muted/30 px-3 py-1.5",children:i.options.map((c,p)=>a.jsxs("div",{className:"flex items-baseline gap-1.5 py-0.5 text-xs",children:[a.jsx("span",{className:"text-text-secondary font-medium",children:c.label}),c.description&&a.jsxs("span",{className:"text-text-tertiary",children:["— ",c.description]})]},p))})]},s))})}},ExitPlanMode:e=>{const t=e==null?void 0:e._planContent,r=e==null?void 0:e.allowedPrompts;return t?{content:a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:"max-h-60 overflow-y-auto prose prose-sm prose-invert max-w-none text-text-primary",children:a.jsx(Cr,{remarkPlugins:[Tr],children:t})}),r&&r.length>0&&a.jsxs("div",{className:"space-y-1 text-xs border-t border-border-muted/30 pt-2",children:[a.jsxs("div",{className:"text-text-tertiary",children:[r.length," permission(s) requested:"]}),r.map((i,s)=>a.jsxs("div",{className:"font-mono text-text-secondary",children:[a.jsx("span",{className:"text-accent-brand",children:i.tool}),": ",i.prompt]},s))]})]})}:!r||r.length===0?{subtitle:"Ready to implement the plan",content:null}:{subtitle:`${r.length} permission(s) requested`,content:a.jsx("div",{className:"space-y-1 text-xs",children:r.map((i,s)=>a.jsxs("div",{className:"font-mono text-text-secondary",children:[a.jsx("span",{className:"text-accent-brand",children:i.tool}),": ",i.prompt]},s))})}}};function rh(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 fc(e){if(!e)return null;const t=e.description?String(e.description):void 0,i=Object.keys(e).filter(s=>s!=="description").slice(0,3).map(s=>{const c=rh(e[s]);return c?`${s}: ${c}`:""}).filter(s=>s.length>0).map(s=>s.length>120?s.slice(0,120)+"...":s);return{subtitle:t,content:i.length>0?a.jsx("div",{className:"text-xs font-mono text-text-secondary whitespace-pre-wrap",children:i.join(`
431
+ `)}):null}}function ih({interruption:e}){const{sessionId:t}=tt(),{resolveInterruption:r,timeline:i}=je(),{t:s}=le(),[c,p]=N.useState(!1),n=N.useMemo(()=>{if(e.toolName!=="ExitPlanMode"||!e.toolCallId)return;const u=i.find(f=>f.type==="tool_call"&&f.id===e.toolCallId);return(u==null?void 0:u.type)==="tool_call"?u.planContent:void 0},[e.toolName,e.toolCallId,i]),o=N.useCallback(async u=>{if(!(!t||c)){p(!0);try{await Ie().approveInterruption(t,e.id,u),r(e.id,u)}catch(f){console.error("Approval failed:",f),p(!1)}}},[t,e.id,r,c]);if(N.useEffect(()=>{e.toolName==="AskUserQuestion"&&!e.resolved&&t&&o("allow")},[e.toolName,e.resolved,t]),e.resolved)return a.jsx(a.Fragment,{});let l=typeof e.toolInput=="string"?{default:e.toolInput}:e.toolInput;e.toolName==="ExitPlanMode"&&n&&(l={...l||{},_planContent:n});const m=(e.toolName&&th[e.toolName]||fc)(l),b=e.toolTitle||e.toolName||s("tool.defaultName"),_=e.toolName==="ExitPlanMode",w=()=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>o("allow"),disabled:c,className:`px-4 py-[6px] bg-text-primary hover:brightness-110 disabled:opacity-50
432
+ disabled:cursor-not-allowed text-bg-primary text-xs font-medium rounded-lg transition-all`,children:s("interruption.yes")}),a.jsx("button",{onClick:()=>o("deny"),disabled:c,className:`px-4 py-[6px] border border-border-muted text-text-secondary hover:bg-bg-hover
433
+ disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:s("interruption.keepPlanning")}),a.jsx("button",{onClick:()=>o("rejectAndExitPlan"),disabled:c,className:`px-4 py-[6px] border border-border-muted text-text-tertiary hover:bg-bg-hover
434
+ disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:s("interruption.exitPlanMode")})]}),v=()=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>o("allow"),disabled:c,className:`px-4 py-[6px] bg-text-primary hover:brightness-110 disabled:opacity-50
435
+ disabled:cursor-not-allowed text-bg-primary text-xs font-medium rounded-lg transition-all`,children:s("interruption.allow")}),a.jsx("button",{onClick:()=>o("allowAll"),disabled:c,className:`px-4 py-[6px] border border-border-muted text-text-secondary hover:bg-bg-hover
436
+ disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:s("interruption.allowAll")}),a.jsx("button",{onClick:()=>o("deny"),disabled:c,className:`px-4 py-[6px] border border-border-muted text-text-tertiary hover:bg-bg-hover
437
+ disabled:opacity-50 disabled:cursor-not-allowed text-xs font-medium rounded-lg transition-all`,children:s("interruption.deny")})]});return a.jsxs("div",{className:"my-1.5 rounded-xl border border-border-muted bg-bg-card shadow-sm overflow-hidden",children:[a.jsxs("div",{className:"px-3.5 pt-3.5 pb-3",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[_&&a.jsx(Bp,{size:16,strokeWidth:1.8,className:"text-accent-brand flex-shrink-0"}),a.jsx("span",{className:"text-[13px] font-semibold text-text-primary",children:_?s("interruption.readyToCode"):b})]}),(m==null?void 0:m.subtitle)&&!_&&a.jsx("p",{className:"text-xs text-text-tertiary mt-1.5 leading-relaxed",children:m.subtitle}),(m==null?void 0:m.content)&&a.jsx("div",{className:"mt-2",children:m.content})]}),a.jsx("div",{className:"px-3.5 py-2.5 bg-bg-secondary/30 border-t border-border-muted/40",children:_?w():v()})]})}function nh({q:e,value:t,customText:r,onChangeValue:i,onChangeCustomText:s}){const{t:c}=le(),p=e.options.length>0,n=N.useCallback(h=>{if(e.multiSelect){const m=Array.isArray(t)?t:[];m.includes(h)?i(m.filter(b=>b!==h)):i([...m,h])}else i(h),s("")},[e.multiSelect,t,i,s]),o=N.useCallback(h=>{s(h),e.multiSelect||i(h)},[e.multiSelect,i,s]),l=N.useCallback(h=>e.multiSelect?Array.isArray(t)&&t.includes(h):t===h&&!r,[e.multiSelect,t,r]);return a.jsxs("div",{className:"space-y-2",children:[a.jsxs("p",{className:"text-[13px] text-text-primary font-medium leading-relaxed",children:[e.header&&a.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&&a.jsxs("span",{className:"text-[10px] text-text-tertiary ml-1",children:["(",c("question.multiple"),")"]})]}),p&&a.jsx("div",{className:"space-y-1",children:e.options.map(h=>{const m=l(h.label);return a.jsx("button",{type:"button",onClick:()=>n(h.label),className:`w-full text-left px-3 py-2 rounded-lg border text-xs transition-colors ${m?"border-accent-brand bg-accent-brand/10 text-text-primary":"border-border-default bg-bg-card hover:bg-bg-hover text-text-secondary"}`,children:a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`flex-shrink-0 w-3.5 h-3.5 rounded-${e.multiSelect?"sm":"full"} border ${m?"border-accent-brand bg-accent-brand":"border-border-muted"} flex items-center justify-center`,children:m&&a.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:a.jsx("path",{d:"M1.5 4L3 5.5L6.5 2",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsxs("span",{className:"flex-1",children:[a.jsx("span",{className:"font-medium",children:h.label}),h.description&&a.jsxs("span",{className:"text-text-tertiary ml-1",children:["— ",h.description]})]})]})},h.label)})}),a.jsx("div",{className:"mt-1.5",children:a.jsx("input",{type:"text",placeholder:c("question.customAnswer"),value:r,onChange:h=>o(h.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 ah({questions:e,answers:t,customTexts:r}){const{t:i}=le();return a.jsxs("div",{className:"space-y-2",children:[a.jsx("p",{className:"text-[13px] text-text-primary font-medium",children:i("question.reviewAnswers")}),a.jsx("div",{className:"space-y-1.5",children:e.map(s=>{const c=t[s.id],p=r[s.id]||"";let n;if(s.multiSelect){const o=Array.isArray(c)?[...c]:[];p.trim()&&o.push(p.trim()),n=o.length>0?o.join(", "):"—"}else n=p.trim()||(typeof c=="string"?c:"")||"—";return a.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[s.header&&a.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}),a.jsxs("div",{className:"flex-1",children:[a.jsx("span",{className:"text-text-secondary",children:s.question}),a.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[n!=="—"&&a.jsx(Je,{size:12,className:"text-accent-green flex-shrink-0"}),a.jsx("span",{className:`font-medium ${n==="—"?"text-text-tertiary":"text-text-primary"}`,children:n})]})]})]},s.id)})})]})}function sh(e,t,r){const i={};for(const s of e){const c=t[s.id],p=r[s.id]||"";if(s.multiSelect){const n=Array.isArray(c)?[...c]:[];p.trim()&&n.push(p.trim()),i[s.id]=n}else i[s.id]=p.trim()||(typeof c=="string"?c:"")||""}return i}function oh({question:e}){const{t}=le(),{sessionId:r}=tt(),{submitQuestion:i,cancelQuestion:s}=je(),[c,p]=N.useState(!1),[n,o]=N.useState(()=>{const x={};for(const k of e.questions)x[k.id]=k.multiSelect?[]:"";return x}),[l,h]=N.useState(()=>{const x={};for(const k of e.questions)x[k.id]="";return x}),m=e.questions.length>1,[b,_]=N.useState(0),w=e.questions.length,v=N.useCallback((x,k)=>{o(E=>({...E,[x]:k}))},[]),u=N.useCallback((x,k)=>{h(E=>({...E,[x]:k}))},[]),f=N.useCallback(async()=>{if(!(!r||c)){p(!0);try{const x=sh(e.questions,n,l);await Ie().submitQuestionAnswers(r,e.toolCallId,x),i(e.id,x)}catch(x){console.error("Question submit failed:",x),p(!1)}}},[r,e.toolCallId,e.id,e.questions,n,l,i,c]),d=N.useCallback(async()=>{if(!(!r||c)){p(!0);try{await Ie().cancelQuestionAnswers(r,e.toolCallId),s(e.id)}catch(x){console.error("Question cancel failed:",x),p(!1)}}},[r,e.toolCallId,e.id,s,c]);if(e.status!=="pending")return e.status==="answered"&&e.answers?a.jsx("div",{className:"my-1.5 rounded-xl border border-border-muted/40 bg-bg-card/50 overflow-hidden",children:a.jsxs("div",{className:"px-3.5 py-2.5",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(zr,{size:14,strokeWidth:1.8,className:"text-text-tertiary flex-shrink-0"}),a.jsx("span",{className:"text-xs font-medium text-text-tertiary",children:m?t("question.titleWithCount").replace("{count}",String(e.questions.length)):t("question.singleTitle")}),a.jsx("span",{className:"text-[10px] text-accent-green font-medium",children:t("question.answered")})]}),a.jsx("div",{className:"space-y-1",children:e.questions.map(x=>{const k=e.answers[x.id],E=Array.isArray(k)?k.join(", "):k||"—";return a.jsxs("div",{className:"flex items-baseline gap-1.5 text-xs",children:[x.header&&a.jsx("span",{className:"inline-block px-1 py-0.5 rounded bg-accent-brand/10 text-accent-brand text-[10px] font-medium",children:x.header}),a.jsx("span",{className:"text-text-primary font-medium",children:E})]},x.id)})})]})}):a.jsx("div",{className:"my-1.5 rounded-xl border border-border-muted/40 bg-bg-card/50 overflow-hidden",children:a.jsxs("div",{className:"px-3.5 py-2.5 flex items-center gap-2",children:[a.jsx(zr,{size:14,strokeWidth:1.8,className:"text-text-tertiary flex-shrink-0"}),a.jsx("span",{className:"text-xs text-text-tertiary",children:t("question.cancelled")})]})});const g=e.questions[m?Math.min(b,e.questions.length-1):0],y=m&&b===w;return a.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:[a.jsxs("div",{className:"px-3.5 pt-3.5 pb-3",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(zr,{size:16,strokeWidth:1.8,className:"text-accent-brand flex-shrink-0"}),a.jsx("span",{className:"text-[13px] font-semibold text-text-primary",children:m?t("question.titleWithCount").replace("{count}",String(e.questions.length)):t("question.singleTitle")})]}),m&&a.jsxs("div",{className:"flex items-center gap-1 mt-2.5 mb-2 overflow-x-auto",children:[e.questions.map((x,k)=>a.jsx("button",{type:"button",onClick:()=>_(k),className:`px-2.5 py-1 rounded-md text-[11px] font-medium whitespace-nowrap transition-colors ${b===k?"bg-accent-brand text-white":"bg-bg-secondary/50 text-text-secondary hover:text-text-primary"}`,children:x.header||`Q${k+1}`},x.id)),a.jsx("button",{type:"button",onClick:()=>_(w),className:`px-2.5 py-1 rounded-md text-[11px] font-medium whitespace-nowrap transition-colors ${y?"bg-accent-brand text-white":"bg-bg-secondary/50 text-text-secondary hover:text-text-primary"}`,children:t("question.reviewTab")})]}),a.jsx("div",{className:"mt-2",children:y?a.jsx(ah,{questions:e.questions,answers:n,customTexts:l}):a.jsx(nh,{q:g,value:n[g.id]??"",customText:l[g.id]??"",onChangeValue:x=>v(g.id,x),onChangeCustomText:x=>u(g.id,x)})})]}),a.jsx("div",{className:"px-3.5 py-2.5 bg-bg-secondary/30 border-t border-border-muted/40",children:a.jsxs("div",{className:"flex items-center gap-2",children:[m&&!y?a.jsx("button",{type:"button",onClick:()=>_(x=>Math.min(x+1,w)),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")}):a.jsx("button",{type:"button",onClick:f,disabled:c,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")}),a.jsx("button",{type:"button",onClick:d,disabled:c,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 bc(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(i=>i&&typeof i.text=="string").map(i=>i.text);if(r.length>0)return r.join(`
438
+ `)}}catch{}return e}function lr(e){return e.replace(/\\r\\n/g,`
439
+ `).replace(/\\n/g,`
440
+ `)}function He(e){if(typeof e=="string"){const t=bc(e);return lr(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 i=t[r[0]],s=bc(i);return lr(s)}if(typeof t.text=="string"&&t.type==="text")return lr(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 lr(t.join(`
441
+ `))}return JSON.stringify(e,null,2)}catch{return String(e)}}const $e={size:14,strokeWidth:1.5},Ne="text-text-tertiary flex-shrink-0";function lh(){return a.jsx(et,{...$e,className:Ne})}function ch(){return a.jsx(Dp,{...$e,className:Ne})}function dh(){return a.jsx(Cd,{...$e,className:Ne})}function qd(){return a.jsx(ft,{...$e,className:Ne})}function bi(){return a.jsx(Ii,{...$e,className:Ne})}function Vd(){return a.jsx(zp,{...$e,className:Ne})}function yc(){return a.jsx(Td,{...$e,className:Ne})}function _c(){return a.jsx(vd,{...$e,className:Ne})}function uh(){return a.jsx(Up,{...$e,className:Ne})}function ph(){return a.jsx(gp,{...$e,className:Ne})}function mh(){return a.jsx(Ep,{...$e,className:Ne})}function hh(){return a.jsx(kd,{...$e,className:Ne})}function gh(){return a.jsx(mp,{...$e,className:Ne})}function fh(){return a.jsx($p,{...$e,className:Ne})}function bh(){return a.jsx(fd,{...$e,className:Ne})}function vc(){return a.jsx(yd,{...$e,className:Ne})}function Kd({status:e}){return e==="running"?a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-text-tertiary animate-pulse"}):e==="failed"?a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-accent-red"}):e==="completed"?a.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full flex-shrink-0 bg-accent-green"}):null}function yh(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 st(e){return`/api/v1/files/download?path=${encodeURIComponent(e)}`}function yi(e){const t=[],r=i=>{if(i){if(typeof i=="object"&&i.type==="image_blob_ref"&&i.blob_path){t.push(i);return}if(Array.isArray(i)){for(const s of i)r(s);return}if(typeof i=="string"&&i.includes("image_blob_ref"))try{r(JSON.parse(i))}catch{}}};return r(e),t}function _i(e){var t,r,i,s,c;if(e.content&&Array.isArray(e.content)){for(const p of e.content){const n=p;if(n.type==="content"&&((t=n.content)==null?void 0:t.type)==="image"&&((r=n.content)!=null&&r.data))return`data:${n.content.mimeType||"image/png"};base64,${n.content.data}`;if(n.type==="image"&&n.data)return`data:${n.mimeType||n.mediaType||"image/png"};base64,${n.data}`;if(n.type==="image_url"&&((i=n.image_url)!=null&&i.url))return n.image_url.url;if(n.type==="image_blob_ref"&&n.blob_path)return st(n.blob_path)}for(const p of e.content){const n=p,o=n.type==="content"&&((s=n.content)==null?void 0:s.type)==="text"?n.content.text:null;if(o){const l=yi(o);if(l.length>0)return st(l[0].blob_path)}}}if(e.result&&typeof e.result=="object"){const p=e.result;if(p.type==="image"&&p.data)return`data:${p.mimeType||p.mediaType||"image/png"};base64,${p.data}`;if(p.type==="image_url"&&((c=p.image_url)!=null&&c.url))return p.image_url.url;if(p.type==="image_blob_ref"&&p.blob_path)return st(p.blob_path)}if(e.result){const p=yi(e.result);if(p.length>0)return st(p[0].blob_path)}return null}function kc(e){const t=He(e);if(!t)return null;const r=t.match(/Full path:\s*(.+)/);if(r)return r[1].trim();const i=t.match(/file:\/\/([^\s\n]+)/);if(i)return i[1];const s=yi(e);return s.length>0?s[0].blob_path:null}function _h(e){const t=e.input;if(t!=null&&t.description&&typeof t.description=="string")return t.description}function me(e){return e.input||{}}function De(e,t){return e.length<=t?e:e.slice(0,t)+"..."}function vh(e,t=[]){const r=new Set(["description","activeForm",...t]),i=[];for(const[s,c]of Object.entries(e))r.has(s)||c===void 0||c===null||typeof c=="string"&&c.length>0&&i.push(c);return i.length>0?De(i.join(" · "),80):""}function kh(e){if(e==null)return[];const t=He(e);if(!t)return[];try{const r=JSON.parse(t);if(Array.isArray(r))return r.map(i=>typeof i=="string"?i:JSON.stringify(i)).filter(Boolean)}catch{}return t.split(`
442
+ `).filter(Boolean)}function Sh(e){const t=He(e);if(!t)return"";const r=t.split(`
443
+ `),i=[];let s=!1,c="";for(const p of r){if(p.startsWith("Command: ")){s=!1,c="command";continue}if(p.startsWith("Stdout: ")||p==="Stdout:"){s=!0,c="stdout";const n=p.slice(8);n&&n!=="(empty)"&&i.push(n);continue}if(p.startsWith("Stderr: ")||p==="Stderr:"){s=!0,c="stderr";const n=p.slice(8);n&&n!=="(empty)"&&i.push(n);continue}if(p.startsWith("Exit Code: ")||p.startsWith("Signal: ")){s=!1,c="";continue}s&&(c==="stdout"||c==="stderr")&&i.push(p)}return i.length===0&&t.length>0&&!t.startsWith("Command: ")?t:i.join(`
444
+ `).trim()}function xh({result:e}){const{t}=le(),[r,i]=N.useState(!1),s=kh(e);if(s.length===0)return null;const c=10,p=r?s:s.slice(0,c),n=s.length>c;return a.jsxs("div",{className:"rounded-md bg-bg-secondary overflow-hidden",children:[a.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))}),a.jsx("div",{className:"max-h-64 overflow-y-auto",children:p.map((o,l)=>a.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:[a.jsx(et,{size:10,className:"text-text-tertiary flex-shrink-0"}),a.jsx("span",{className:"truncate",title:o,children:o})]},l))}),n&&!r&&a.jsx("button",{onClick:()=>i(!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 Ve({result:e,maxLines:t=8}){const{t:r}=le(),i=He(e);if(!i)return null;const s=i.split(`
445
+ `),c=s.length>t,p=c?s.slice(0,t).join(`
446
+ `):i;return a.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:[p,c&&a.jsx("span",{className:"text-text-tertiary",children:`
447
+ ${r("tool.moreLinesCount").replace("{count}",String(s.length-t))}`})]})}function zt({src:e,alt:t}){const r=e.startsWith("file://")?st(e.replace("file://","")):e.startsWith("/")&&!e.startsWith("/api/")?st(e):e;return a.jsx("div",{className:"rounded-md overflow-hidden bg-bg-secondary/40 p-2",children:a.jsx("img",{src:r,alt:t||"Image",className:"max-w-full max-h-64 rounded object-contain",loading:"lazy"})})}const Sc={read:{Icon:lh,render:e=>{const t=_i(e);if(t){const i=me(e),s=i.file_path?String(i.file_path).split("/").pop():void 0;return a.jsx(zt,{src:t,alt:s})}if(e.result===void 0)return null;const r=He(e.result);return r?a.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:ch,render:e=>{const t=yh(e.content);if(t){const r=e.status==="failed";return a.jsx("div",{className:r?"opacity-40":"",children:a.jsx(yr,{path:t.path,oldText:t.oldText,newText:t.newText,maxHeight:"max-h-64"})})}return e.result!==void 0?a.jsx(Ve,{result:e.result}):null}},execute:{Icon:dh,render:e=>{const t=me(e),i=(e.result!==void 0?Sh(e.result):"")||(e.result!==void 0?He(e.result):"");return a.jsxs("div",{className:"rounded-md overflow-hidden bg-bg-secondary/40",children:[!!t.command&&a.jsxs("pre",{className:"px-2.5 py-1.5 font-mono text-xs whitespace-pre overflow-x-auto text-text-primary",children:[a.jsx("span",{className:"text-text-tertiary select-none",children:"$ "}),String(t.command)]}),i&&a.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:i})]})}},search:{Icon:qd,render:e=>a.jsx(xh,{result:e.result})},fetch:{Icon:bi,render:e=>{const t=me(e);return!t.url&&!t.query?null:a.jsxs("div",{className:"text-xs font-mono px-1 space-y-0.5",children:[!!t.url&&a.jsx("div",{className:"text-text-secondary truncate",children:String(t.url)}),!!t.prompt&&a.jsx("div",{className:"text-text-tertiary line-clamp-2",children:String(t.prompt)}),!!t.query&&a.jsx("div",{className:"text-text-secondary",children:String(t.query)})]})}}},xc={ImageGen:{Icon:vc,getTitle:(e,t)=>t("tool.imageGen"),getSummary:e=>{const t=me(e);return t.prompt?De(String(t.prompt),60):void 0},render:(e,t)=>{const r=_i(e);if(r)return a.jsx(zt,{src:r,alt:t("tool.generatedImage")});const i=kc(e.result);return i?a.jsx(zt,{src:st(i),alt:t("tool.generatedImage")}):e.result!==void 0?a.jsx(Ve,{result:e.result,maxLines:6}):null}},ImageEdit:{Icon:vc,getTitle:(e,t)=>t("tool.imageEdit"),getSummary:e=>{const t=me(e);return t.prompt?De(String(t.prompt),60):void 0},render:(e,t)=>{const r=_i(e);if(r)return a.jsx(zt,{src:r,alt:t("tool.editedImage")});const i=kc(e.result);return i?a.jsx(zt,{src:st(i),alt:t("tool.editedImage")}):e.result!==void 0?a.jsx(Ve,{result:e.result,maxLines:6}):null}},ToolSearch:{Icon:qd,getTitle:(e,t)=>t("tool.toolSearch"),getSummary:e=>{const t=me(e);if(t.query)return String(t.query);if(t.tool_names)return`[${String(t.tool_names)}]`},render:e=>e.result===void 0?null:a.jsx(Ve,{result:e.result,maxLines:12})},TeamCreate:{Icon:yc,getTitle:(e,t)=>t("tool.teamCreate"),getSummary:e=>{const t=me(e),r=t.name?String(t.name):void 0,i=t.description?String(t.description):void 0;return r&&i?`${r} · ${i}`:r||i},render:e=>{if(e.result===void 0)return null;const t=He(e.result);return t?a.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 bg-bg-secondary/40 rounded-md text-xs",children:[a.jsx(gd,{size:12,className:"text-accent-green flex-shrink-0"}),a.jsx("span",{className:"text-text-secondary",children:De(t,120)})]}):null}},TeamDelete:{Icon:yc,getTitle:(e,t)=>t("tool.teamDelete"),getSummary:e=>{const t=me(e);return t.team_name?String(t.team_name):void 0}},TaskCreate:{Icon:_c,getTitle:(e,t)=>t("tool.taskCreate"),getSummary:e=>{const t=me(e);return t.subject?De(String(t.subject),80):void 0}},TaskUpdate:{Icon:ph,getTitle:(e,t)=>t("tool.taskUpdate"),getSummary:e=>{const t=me(e),r=[];return t.taskId&&r.push(`#${t.taskId}`),t.status&&r.push(String(t.status)),t.subject&&r.push(De(String(t.subject),40)),r.join(" · ")||void 0}},TaskList:{Icon:_c,getTitle:(e,t)=>t("tool.taskList")},TaskGet:{Icon:mh,getTitle:(e,t)=>t("tool.taskGet"),getSummary:e=>{const t=me(e);return t.taskId?`#${t.taskId}`:void 0},render:e=>e.result===void 0?null:a.jsx(Ve,{result:e.result,maxLines:8})},SendMessage:{Icon:uh,getTitle:(e,t)=>{const r=me(e),i=String(r.type||"message"),s=r.recipient?String(r.recipient):void 0;switch(i){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}`:i}},getSummary:e=>{const t=me(e);return t.summary?De(String(t.summary),80):void 0},render:e=>{if(e.result===void 0)return null;const t=He(e.result);return t?a.jsx("div",{className:"text-xs text-text-secondary px-2.5 py-1.5 bg-bg-secondary/40 rounded-md",children:De(t,200)}):null}},WebSearch:{Icon:bi,getTitle:(e,t)=>t("tool.webSearch"),getSummary:e=>{const t=me(e);return t.query?De(String(t.query),80):void 0},render:e=>e.result===void 0?null:a.jsx(Ve,{result:e.result,maxLines:10})},WebFetch:{Icon:bi,getTitle:(e,t)=>t("tool.webFetch"),getSummary:e=>{const t=me(e);return t.url?De(String(t.url),60):void 0},render:e=>{const t=me(e);return a.jsxs("div",{className:"text-xs font-mono px-1 space-y-0.5",children:[!!t.url&&a.jsx("div",{className:"text-text-secondary truncate",children:String(t.url)}),!!t.prompt&&a.jsx("div",{className:"text-text-tertiary line-clamp-2",children:String(t.prompt)})]})}},SaveMemory:{Icon:hh,getTitle:(e,t)=>t("tool.saveMemory"),getSummary:e=>{const t=me(e);return t.content?De(String(t.content),60):void 0}},AskUserQuestion:{Icon:gh,getTitle:(e,t)=>t("tool.askUserQuestion"),getSummary:e=>{const r=me(e).questions;if(!r||r.length===0)return;if(r.length===1)return r[0].question?De(String(r[0].question),80):r[0].header;const i=r.map(s=>s.header||"?").join(", ");return`${r.length} questions: ${i}`},render:(e,t)=>{const i=me(e).questions;return!i||i.length===0?e.result!==void 0?a.jsx(Ve,{result:e.result,maxLines:6}):null:a.jsxs("div",{className:"space-y-2",children:[i.map((s,c)=>a.jsxs("div",{className:"rounded-md bg-bg-secondary/40 overflow-hidden",children:[a.jsxs("div",{className:"px-2.5 py-1.5 text-xs",children:[s.header&&a.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}),a.jsx("span",{className:"text-text-primary font-medium",children:s.question}),s.multiSelect&&a.jsxs("span",{className:"text-[10px] text-text-tertiary ml-1",children:["(",t("question.multiLabel"),")"]})]}),s.options&&s.options.length>0&&a.jsx("div",{className:"border-t border-border-muted/30 px-2.5 py-1",children:s.options.map((p,n)=>a.jsxs("div",{className:"flex items-baseline gap-1.5 py-0.5 text-xs",children:[a.jsx("span",{className:"text-text-secondary font-medium",children:p.label}),p.description&&a.jsxs("span",{className:"text-text-tertiary",children:["— ",De(String(p.description),60)]})]},n))})]},c)),e.result!==void 0&&a.jsx(Ve,{result:e.result,maxLines:4})]})}},EnterPlanMode:{Icon:fh,getTitle:(e,t)=>t("tool.enterPlanMode"),render:e=>{if(e.result===void 0)return null;const t=He(e.result);if(!t)return null;const r=e.result,i=r!=null&&r.planFilePath?String(r.planFilePath):void 0;return a.jsxs("div",{className:"text-xs px-2.5 py-1.5 bg-bg-secondary/40 rounded-md space-y-1",children:[i&&a.jsxs("div",{className:"flex items-center gap-1.5 text-text-tertiary",children:[a.jsx(fd,{size:10,className:"flex-shrink-0"}),a.jsx("span",{className:"font-mono truncate",children:i})]}),!i&&t&&a.jsx("div",{className:"text-text-secondary",children:De(t,200)})]})}},ExitPlanMode:{Icon:bh,getTitle:(e,t)=>t("tool.exitPlanMode"),getSummary:(e,t)=>{const i=me(e).allowedPrompts;if(i&&i.length>0)return t("tool.permissionsCount").replace("{count}",String(i.length))},render:(e,t)=>{const i=me(e).allowedPrompts,s=i&&i.length>0,c=e.result!==void 0;return!s&&!c?null:a.jsxs("div",{className:"space-y-1",children:[s&&a.jsxs("div",{className:"rounded-md bg-bg-secondary/40 px-2.5 py-1.5",children:[a.jsx("div",{className:"text-[11px] text-text-tertiary mb-1",children:t("tool.allowedActions")}),i.map((p,n)=>a.jsxs("div",{className:"flex items-center gap-1.5 text-xs py-0.5",children:[a.jsx(Cd,{size:10,className:"text-text-tertiary flex-shrink-0"}),a.jsx("span",{className:"text-text-secondary",children:p.prompt})]},n))]}),c&&a.jsx(Ve,{result:e.result,maxLines:6})]})}},Skill:{Icon:Vd,getTitle:(e,t)=>t("tool.skill"),getSummary:e=>{const t=me(e);return t.skill?String(t.skill):t.command?String(t.command):void 0}}};function wh(e){return e.toolName&&xc[e.toolName]?xc[e.toolName]:e.kind&&Sc[e.kind]?Sc[e.kind]:Yd}function Eh(e){return!!(e==null||e===""||Array.isArray(e)&&e.length===0||typeof e=="object"&&Object.keys(e).length===0)}const Yd={Icon:Vd,getSummary:e=>{const t=me(e),r=vh(t);return r||void 0},render:e=>{const t=me(e),r=Object.keys(t).length>0,i=e.result,s=i!==void 0&&!Eh(i)&&He(i).length>0;return!r&&!s?null:a.jsxs("div",{className:"space-y-1 max-h-64 overflow-y-auto",children:[r&&a.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&&a.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:He(i)})]})}},Xd="subagent-collapse-pref";function wc(){try{return localStorage.getItem(Xd)==="true"}catch{return!1}}function Ch(e){try{localStorage.setItem(Xd,String(e))}catch{}}function Th(){return a.jsxs("span",{className:"inline-flex items-center gap-0.5 ml-1 align-middle",children:[a.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0s_infinite]"}),a.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0.2s_infinite]"}),a.jsx("span",{className:"w-1 h-1 rounded-full bg-accent-purple animate-[dotPulse_1.4s_ease-in-out_0.4s_infinite]"})]})}function Ec({entry:e,isActive:t}){const r=e.streaming&&t,i=e.content&&e.content.trim().length>0;return!i&&!r?a.jsx(a.Fragment,{}):a.jsxs("div",{className:"markdown-body text-chat text-text-primary py-0.5",children:[i&&a.jsx(Cr,{remarkPlugins:[Tr],children:e.content}),r&&a.jsx(Th,{})]})}function Ah(e){return N.useMemo(()=>{const t=e.subagentTimeline||[];let r=0,i=0;for(const s of t)s.type==="tool_call_ref"?r++:s.type==="message"&&i++;return{toolCount:r,messageCount:i}},[e.subagentTimeline])}function $h({toolCall:e}){var f,d,g,y,x;const{t}=le(),r=je(k=>k.childToolCalls),i=e.subagentTimeline||[],s=e.status==="running",c=e.status==="failed",p=!!((f=e.subagent)!=null&&f.memberName),n=Ah(e),[o,l]=N.useState(()=>!s&&wc());N.useEffect(()=>{l(s?!1:wc())},[s]);const h=N.useCallback(()=>{s||l(k=>{const E=!k;return Ch(E),E})},[s]),m=(d=e.subagent)!=null&&d.memberName?`@${e.subagent.memberName}`:((g=e.subagent)==null?void 0:g.type)||t("tool.agent"),b=((y=e.subagent)==null?void 0:y.description)||"",_=(x=e.subagent)==null?void 0:x.isBackground,w=i.length>0,v=w&&!o,u=N.useMemo(()=>{if(s)return null;const k=[];return c?k.push(t("tool.failed")):e.status==="completed"&&k.push(t("tool.completed")),n.toolCount>0&&k.push(t("tool.toolsCount").replace("{count}",String(n.toolCount))),k.length>0?k.join(" · "):null},[s,c,e.status,n.toolCount,t]);return p?a.jsxs("div",{className:`mb-1 rounded-lg border transition-colors ${s?"border-accent-purple/30 bg-accent-purple/5":c?"border-accent-red/20 bg-accent-red/5":"border-border-muted/50 bg-bg-secondary/30"}`,children:[a.jsxs("div",{className:`flex items-center gap-1.5 px-3 py-2 ${w?"cursor-pointer":""}`,onClick:w?h:void 0,children:[a.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:a.jsx(bt,{size:12,className:"text-accent-purple"})}),a.jsx("span",{className:"text-[13px] font-semibold text-accent-purple",children:m}),b&&a.jsxs("span",{className:"text-xs text-text-tertiary truncate",children:["· ",b]}),a.jsx("span",{className:"flex-1"}),u&&a.jsx("span",{className:"text-[11px] text-text-tertiary",children:u}),s&&a.jsx(Ce,{size:12,className:"text-accent-purple animate-spin"}),c&&a.jsx(li,{size:12,className:"text-accent-red"}),!s&&!c&&e.status==="completed"&&a.jsx(Je,{size:12,className:"text-accent-green"}),w&&!s&&(o?a.jsx(Qe,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}):a.jsx(ct,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}))]}),v&&a.jsx("div",{className:"px-3 pb-2 pt-0 ml-2.5 pl-3 border-l border-accent-purple/20",children:i.map(k=>{if(k.type==="message")return a.jsx(Ec,{entry:k,isActive:s},k.id);const E=r.get(k.toolCallId);return E?E.toolName==="SendMessage"?a.jsx(Cc,{toolCall:E},E.id):a.jsx(vi,{toolCall:E},E.id):null})})]}):a.jsxs("div",{className:"mb-0.5",children:[a.jsxs("div",{className:`flex items-center gap-1.5 py-0.5 ${w?"cursor-pointer hover:bg-bg-hover/30 rounded-md -mx-1 px-1":""}`,onClick:w?h:void 0,children:[a.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:a.jsx(bt,{size:12,className:"text-accent-purple"})}),a.jsx("span",{className:"text-[13px] font-semibold text-accent-purple",children:m}),b&&a.jsxs("span",{className:"text-xs text-text-tertiary truncate",children:["· ",b]}),_&&a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-bg-secondary text-text-tertiary",children:t("tool.background")}),a.jsx("span",{className:"flex-1"}),u&&a.jsx("span",{className:"text-[11px] text-text-tertiary",children:u}),s&&a.jsx(Ce,{size:12,className:"text-accent-purple animate-spin"}),c&&a.jsx(li,{size:12,className:"text-accent-red"}),w&&!s&&(o?a.jsx(Qe,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}):a.jsx(ct,{size:12,strokeWidth:2,className:"text-text-tertiary flex-shrink-0"}))]}),v&&a.jsx("div",{className:"ml-2.5 pl-3 border-l border-accent-purple/25",children:i.map(k=>{if(k.type==="message")return a.jsx(Ec,{entry:k,isActive:s},k.id);const E=r.get(k.toolCallId);return E?E.toolName==="SendMessage"?a.jsx(Cc,{toolCall:E},E.id):a.jsx(vi,{toolCall:E},E.id):null})})]})}function Cc({toolCall:e}){const{t}=le(),r=me(e),i=String(r.type||"message"),s=r.recipient?String(r.recipient):void 0,c=r.summary?String(r.summary):void 0;let p="",n=a.jsx(hd,{size:10,className:"text-text-tertiary"});switch(i){case"message":p=s?`@${s}`:"message";break;case"broadcast":p="@team";break;case"shutdown_request":p=s?`@${s} · shutdown`:"shutdown";break;case"shutdown_response":p=r.approve!==!1?t("tool.taskCompleted"):t("tool.shutdownRejected"),n=a.jsx(Je,{size:10,className:"text-accent-green"});break;case"plan_approval_response":p=s?`@${s} · ${r.approve!==!1?t("tool.approved"):t("tool.rejected")}`:t("tool.planResponse");break;default:p=s?`@${s}`:i}return a.jsxs("div",{className:"flex items-center gap-1.5 py-0.5 text-xs text-text-tertiary",children:[n,a.jsx("span",{className:"font-medium text-accent-purple",children:p}),c&&a.jsx("span",{className:"truncate",children:c}),a.jsx(Kd,{status:e.status})]})}function vi({toolCall:e}){var _,w;const{t}=le(),r=wh(e),[i,s]=N.useState(()=>e.status==="failed");if(N.useEffect(()=>{e.status==="failed"&&s(!0)},[e.status]),e.subagent)return a.jsx($h,{toolCall:e});const c=r.Icon,p=e.status==="completed"||e.status==="failed",n=!!r.render||e.result!==void 0&&r===Yd,o=(_=r.getTitle)==null?void 0:_.call(r,e,t),l=_h(e),h=o||(e.kind==="execute"&&l?l:void 0)||e.name||e.toolName||t("tool.defaultName"),b=((w=r.getSummary)==null?void 0:w.call(r,e,t))||(e.kind!=="execute"?l:void 0);return a.jsxs("div",{className:"mb-0.5",children:[a.jsxs("button",{onClick:()=>n&&s(!i),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:[a.jsx(c,{}),a.jsx("span",{className:"text-[13px] text-text-secondary font-medium truncate",children:h}),b&&a.jsx("span",{className:"text-xs text-text-tertiary truncate flex-1",children:b}),!b&&a.jsx("span",{className:"flex-1"}),a.jsx(Kd,{status:e.status}),n&&a.jsx(Qe,{size:12,strokeWidth:2,className:`text-text-tertiary flex-shrink-0 transition-transform duration-200 ${i?"rotate-90":""}`})]}),n&&i&&a.jsx(Nh,{renderer:r,toolCall:e,t,isFinished:p})]})}function Nh({renderer:e,toolCall:t,t:r,isFinished:i}){const s=e.render?e.render(t,r):a.jsx(Ve,{result:t.result});return a.jsx("div",{className:"mt-0.5 mb-1",children:a.jsx("div",{className:i?"empty-result-container":"",children:s})})}const Rh=new Set(["TaskCreate","TaskUpdate","TaskList","TaskGet","AskUserQuestion"]);function Ih({entries:e}){const t=e.filter(r=>r.type==="tool_call"?!Rh.has(r.toolName):r.type==="interruption"||r.type==="question");return t.length===0?null:a.jsx("div",{className:"flex flex-col gap-1 mb-2 w-full",children:t.map(r=>r.type==="tool_call"?a.jsx(vi,{toolCall:r},r.id):r.type==="interruption"?a.jsx(ih,{interruption:r},r.id):r.type==="question"?a.jsx(oh,{question:r},r.id):null)})}function Lh(e){if(!e)return!0;const t=e.trimStart();return!!/^\/clear\b/.test(t)}function Oh(e){const t=[];for(const r of e)if(r.type==="message"){const i=r;if(i.isCompactInternal){const s=t[t.length-1];s&&s.kind==="compact_group"?s.entries.push(i):t.push({kind:"compact_group",entries:[i]})}else if(i.role==="user"&&i.channel)t.push({kind:"channel_incoming",entry:i});else if(i.role==="user"){if(Lh(i.content))continue;t.push({kind:"user",entry:i})}else t.push({kind:"assistant_message",entry:i})}else{const i=t[t.length-1];i&&i.kind==="assistant_tools"?i.entries.push(r):t.push({kind:"assistant_tools",entries:[r]})}return t}function Tc(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 Dh(e,t=150){return e.scrollHeight-e.scrollTop-e.clientHeight<t}function Ac(){const{t:e}=le(),r=yt(i=>i.resolved)==="dark"?ld:cd;return a.jsxs("div",{className:"empty-state",children:[a.jsx("div",{className:"empty-state-logo",children:a.jsx("img",{src:r,alt:"CodeBuddy"})}),a.jsx("h1",{className:"empty-state-slogan",children:e("chat.empty.slogan")})]})}function Mh({onClickCloseBottomSheet:e}={}){const{timeline:t,isAgentRunning:r,stopReason:i,errorMessage:s,historyLoading:c}=je(),p=N.useRef(null),n=N.useRef(null),{t:o,resolved:l}=le(),[h,m]=N.useState(null);N.useEffect(()=>{if(!h)return;const R=$=>{$.key==="Escape"&&m(null)};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[h]);const b=N.useRef(!0),_=N.useRef(0),w=N.useRef(!1),v=N.useMemo(()=>Oh(t),[t]),u=v.length===0,[f,d]=N.useState(!0),[g,y]=N.useState(!1),x=N.useRef(!1);N.useEffect(()=>{if(!u&&!x.current){y(!0);const R=setTimeout(()=>{d(!1),x.current=!0},600);return()=>clearTimeout(R)}},[u]);const k=N.useCallback(()=>{if(w.current)return;const R=n.current;R&&(b.current=Dh(R))},[]);N.useEffect(()=>{const R=t.length;if(R>_.current){const $=t[_.current];($==null?void 0:$.type)==="message"&&$.role==="user"&&(b.current=!0)}_.current=R},[t]),N.useEffect(()=>{if(!b.current)return;const R=n.current;R&&(w.current=!0,R.scrollTop=R.scrollHeight,requestAnimationFrame(()=>{w.current=!1}))},[t,r]);const E=t[t.length-1],S=(E==null?void 0:E.type)==="message"&&E.streaming,C=S&&!!E.thinking&&!E.content;return a.jsxs("div",{ref:n,onScroll:k,onClick:()=>e==null?void 0:e(),className:"absolute inset-0 overflow-y-auto overflow-x-hidden",children:[f&&a.jsx("div",{className:`empty-state-wrapper${g?" empty-state-fadeout":""}`,children:a.jsx(Ac,{})}),!f&&c&&t.length===0&&a.jsx("div",{className:"flex items-center justify-center min-h-[60vh] h-full pb-20",children:a.jsx(op,{size:"large"})}),!f&&u&&!r&&!c&&a.jsx(Ac,{}),!u&&a.jsx("div",{className:"px-4 sm:px-6 pt-6 pb-4 animate-fadeIn",children:a.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col",children:[a.jsx("div",{className:"text-center mb-8",children:a.jsx("span",{className:"text-[13px] text-text-tertiary",children:o("chat.disclaimer")})}),v.map((R,$)=>{var I,U;const D=Tc(R);let A=!1,P="";if(D!==void 0){const z=vr(D);let W=null;for(let T=$-1;T>=0;T--){const j=Tc(v[T]);if(j!==void 0){W=vr(j);break}}z!==W&&(A=!0,P=Wd(D,l))}if(R.kind==="user")return a.jsxs("div",{children:[A&&a.jsx(Ut,{label:P}),a.jsx("div",{className:"flex justify-end mb-6",children:a.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:[R.entry.images&&R.entry.images.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:R.entry.images.map((z,W)=>{const T="url"in z?z.url:`data:${z.mimeType};base64,${z.data}`;return a.jsx("img",{src:T,alt:"",className:"max-w-full h-auto rounded-lg cursor-pointer hover:opacity-80 transition-opacity",style:{maxHeight:360},onClick:()=>m(T)},W)})}),R.entry.files&&R.entry.files.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:R.entry.files.map((z,W)=>a.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:[a.jsx(et,{size:14,className:"shrink-0 text-text-tertiary"}),a.jsx("span",{className:"text-[12px] text-text-primary truncate",title:z.name,children:z.name})]},W))}),R.entry.content&&a.jsx("p",{className:"whitespace-pre-wrap break-words text-text-primary text-chat",children:R.entry.content})]})})]},R.entry.id);if(R.kind==="channel_incoming")return a.jsxs("div",{children:[A&&a.jsx(Ut,{label:P}),a.jsx(Xp,{content:R.entry.content,channel:R.entry.channel})]},R.entry.id);if(R.kind==="assistant_message"){if(!R.entry.content&&!R.entry.thinking)return null;const z=$>0?v[$-1]:void 0,W=(z==null?void 0:z.kind)==="channel_incoming";return a.jsxs("div",{children:[A&&a.jsx(Ut,{label:P}),W&&z.kind==="channel_incoming"&&a.jsx(Zp,{channel:z.entry.channel}),a.jsx("div",{className:"mb-2 w-full",children:a.jsx("div",{className:"flex-1 min-w-0",children:a.jsx(Gd,{message:R.entry})})})]},R.entry.id)}if(R.kind==="assistant_tools"){const z=((I=R.entries[0])==null?void 0:I.id)||`tools-${$}`;return a.jsx(Ih,{entries:R.entries},z)}if(R.kind==="compact_group"){const z=((U=R.entries[0])==null?void 0:U.id)||`compact-${$}`;return a.jsxs("div",{children:[A&&a.jsx(Ut,{label:P}),a.jsx(Jm,{entries:R.entries})]},z)}return null}),r&&t.length>0&&!S&&!C&&a.jsx("div",{className:"mb-2",children:a.jsxs("span",{className:"inline-flex items-center gap-1.5 text-text-tertiary text-xs",children:[a.jsx(Ce,{size:12,className:"text-accent-brand animate-spin"}),a.jsx("span",{children:o("chat.thinking")})]})}),i&&!r&&a.jsx("div",{className:"py-2",children:a.jsx("span",{className:"text-xs text-text-tertiary",children:s?`${o("chat.error")}: ${s}`:o("chat.stopped")})})]})}),a.jsx("div",{ref:p,className:"h-6"}),h&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 cursor-zoom-out",onClick:()=>m(null),children:a.jsx("img",{src:h,alt:"",className:"max-w-[90vw] max-h-[90vh] object-contain rounded-lg shadow-2xl",onClick:R=>R.stopPropagation()})})]})}const jh="ENTRIES",Zd="KEYS",Jd="VALUES",Se="";class qr{constructor(t,r){const i=t._tree,s=Array.from(i.keys());this.set=t,this._type=r,this._path=s.length>0?[{node:i,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}=St(this._path);if(St(r)===Se)return{done:!1,value:this.result()};const i=t.get(St(r));return this._path.push({node:i,keys:Array.from(i.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const t=St(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>St(t)).filter(t=>t!==Se).join("")}value(){return St(this._path).node.get(Se)}result(){switch(this._type){case Jd:return this.value();case Zd:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const St=e=>e[e.length-1],Fh=(e,t,r)=>{const i=new Map;if(t===void 0)return i;const s=t.length+1,c=s+r,p=new Uint8Array(c*s).fill(r+1);for(let n=0;n<s;++n)p[n]=n;for(let n=1;n<c;++n)p[n*s]=n;return Qd(e,t,r,i,p,1,s,""),i},Qd=(e,t,r,i,s,c,p,n)=>{const o=c*p;e:for(const l of e.keys())if(l===Se){const h=s[o-1];h<=r&&i.set(n,[e.get(l),h])}else{let h=c;for(let m=0;m<l.length;++m,++h){const b=l[m],_=p*h,w=_-p;let v=s[_];const u=Math.max(0,h-r-1),f=Math.min(p-1,h+r);for(let d=u;d<f;++d){const g=b!==t[d],y=s[w+d]+ +g,x=s[w+d+1]+1,k=s[_+d]+1,E=s[_+d+1]=Math.min(y,x,k);E<v&&(v=E)}if(v>r)continue e}Qd(e.get(l),t,r,i,s,h,p,n+l)}};class ot{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,i]=kr(this._tree,t.slice(this._prefix.length));if(r===void 0){const[s,c]=Ml(i);for(const p of s.keys())if(p!==Se&&p.startsWith(c)){const n=new Map;return n.set(p.slice(c.length),s.get(p)),new ot(n,t)}}return new ot(r,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,Ph(this._tree,t)}entries(){return new qr(this,jh)}forEach(t){for(const[r,i]of this)t(r,i,this)}fuzzyGet(t,r){return Fh(this._tree,t,r)}get(t){const r=ki(this._tree,t);return r!==void 0?r.get(Se):void 0}has(t){const r=ki(this._tree,t);return r!==void 0&&r.has(Se)}keys(){return new qr(this,Zd)}set(t,r){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,Vr(this._tree,t).set(Se,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 i=Vr(this._tree,t);return i.set(Se,r(i.get(Se))),this}fetch(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const i=Vr(this._tree,t);let s=i.get(Se);return s===void 0&&i.set(Se,s=r()),s}values(){return new qr(this,Jd)}[Symbol.iterator](){return this.entries()}static from(t){const r=new ot;for(const[i,s]of t)r.set(i,s);return r}static fromObject(t){return ot.from(Object.entries(t))}}const kr=(e,t,r=[])=>{if(t.length===0||e==null)return[e,r];for(const i of e.keys())if(i!==Se&&t.startsWith(i))return r.push([e,i]),kr(e.get(i),t.slice(i.length),r);return r.push([e,t]),kr(void 0,"",r)},ki=(e,t)=>{if(t.length===0||e==null)return e;for(const r of e.keys())if(r!==Se&&t.startsWith(r))return ki(e.get(r),t.slice(r.length))},Vr=(e,t)=>{const r=t.length;e:for(let i=0;e&&i<r;){for(const c of e.keys())if(c!==Se&&t[i]===c[0]){const p=Math.min(r-i,c.length);let n=1;for(;n<p&&t[i+n]===c[n];)++n;const o=e.get(c);if(n===c.length)e=o;else{const l=new Map;l.set(c.slice(n),o),e.set(t.slice(i,i+n),l),e.delete(c),e=l}i+=n;continue e}const s=new Map;return e.set(t.slice(i),s),s}return e},Ph=(e,t)=>{const[r,i]=kr(e,t);if(r!==void 0){if(r.delete(Se),r.size===0)eu(i);else if(r.size===1){const[s,c]=r.entries().next().value;tu(i,s,c)}}},eu=e=>{if(e.length===0)return;const[t,r]=Ml(e);if(t.delete(r),t.size===0)eu(e.slice(0,-1));else if(t.size===1){const[i,s]=t.entries().next().value;i!==Se&&tu(e.slice(0,-1),i,s)}},tu=(e,t,r)=>{if(e.length===0)return;const[i,s]=Ml(e);i.set(s+t,r),i.delete(s)},Ml=e=>e[e.length-1],jl="or",ru="and",Bh="and_not";class Ct{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?Xr:t.autoVacuum;this._options={...Yr,...t,autoVacuum:r,searchOptions:{...$c,...t.searchOptions||{}},autoSuggestOptions:{...Wh,...t.autoSuggestOptions||{}}},this._index=new ot,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=xi,this.addFields(this._options.fields)}add(t){const{extractField:r,stringifyField:i,tokenize:s,processTerm:c,fields:p,idField:n}=this._options,o=r(t,n);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${n}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const l=this.addDocumentId(o);this.saveStoredFields(l,t);for(const h of p){const m=r(t,h);if(m==null)continue;const b=s(i(m,h),h),_=this._fieldIds[h],w=new Set(b).size;this.addFieldLength(l,_,this._documentCount-1,w);for(const v of b){const u=c(v,h);if(Array.isArray(u))for(const f of u)this.addTerm(_,l,f);else u&&this.addTerm(_,l,u)}}}addAll(t){for(const r of t)this.add(r)}addAllAsync(t,r={}){const{chunkSize:i=10}=r,s={chunk:[],promise:Promise.resolve()},{chunk:c,promise:p}=t.reduce(({chunk:n,promise:o},l,h)=>(n.push(l),(h+1)%i===0?{chunk:[],promise:o.then(()=>new Promise(m=>setTimeout(m,0))).then(()=>this.addAll(n))}:{chunk:n,promise:o}),s);return p.then(()=>this.addAll(c))}remove(t){const{tokenize:r,processTerm:i,extractField:s,stringifyField:c,fields:p,idField:n}=this._options,o=s(t,n);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${n}"`);const l=this._idToShortId.get(o);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const h of p){const m=s(t,h);if(m==null)continue;const b=r(c(m,h),h),_=this._fieldIds[h],w=new Set(b).size;this.removeFieldLength(l,_,this._documentCount,w);for(const v of b){const u=i(v,h);if(Array.isArray(u))for(const f of u)this.removeTerm(_,l,f);else u&&this.removeTerm(_,l,u)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(o),this._fieldLength.delete(l),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 ot,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((i,s)=>{this.removeFieldLength(r,s,this._documentCount,i)}),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:i,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:i,batchWait:s},{minDirtCount:r,minDirtFactor:t})}discardAll(t){const r=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const i of t)this.discard(i)}finally{this._options.autoVacuum=r}this.maybeAutoVacuum()}replace(t){const{idField:r,extractField:i}=this._options,s=i(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 i=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=xi,this.performVacuuming(t,i)}),this._enqueuedVacuum)):this.vacuumConditionsMet(r)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}async performVacuuming(t,r){const i=this._dirtCount;if(this.vacuumConditionsMet(r)){const s=t.batchSize||Si.batchSize,c=t.batchWait||Si.batchWait;let p=1;for(const[n,o]of this._index){for(const[l,h]of o)for(const[m]of h)this._documentIds.has(m)||(h.size<=1?o.delete(l):h.delete(m));this._index.get(n).size===0&&this._index.delete(n),p%s===0&&await new Promise(l=>setTimeout(l,c)),p+=1}this._dirtCount-=i}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:r,minDirtFactor:i}=t;return r=r||Xr.minDirtCount,i=i||Xr.minDirtFactor,this.dirtCount>=r&&this.dirtFactor>=i}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:i}=this._options,s={...i,...r},c=this.executeQuery(t,r),p=[];for(const[n,{score:o,terms:l,match:h}]of c){const m=l.length||1,b={id:this._documentIds.get(n),score:o*m,terms:Object.keys(h),queryTerms:l,match:h};Object.assign(b,this._storedFields.get(n)),(s.filter==null||s.filter(b))&&p.push(b)}return t===Ct.wildcard&&s.boostDocument==null||p.sort(Rc),p}autoSuggest(t,r={}){r={...this._options.autoSuggestOptions,...r};const i=new Map;for(const{score:c,terms:p}of this.search(t,r)){const n=p.join(" "),o=i.get(n);o!=null?(o.score+=c,o.count+=1):i.set(n,{score:c,terms:p,count:1})}const s=[];for(const[c,{score:p,terms:n,count:o}]of i)s.push({suggestion:c,terms:n,score:p/o});return s.sort(Rc),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(Yr.hasOwnProperty(t))return Kr(Yr,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,r){const{index:i,documentIds:s,fieldLength:c,storedFields:p,serializationVersion:n}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=cr(s),o._fieldLength=cr(c),o._storedFields=cr(p);for(const[l,h]of o._documentIds)o._idToShortId.set(h,l);for(const[l,h]of i){const m=new Map;for(const b of Object.keys(h)){let _=h[b];n===1&&(_=_.ds),m.set(parseInt(b,10),cr(_))}o._index.set(l,m)}return o}static async loadJSAsync(t,r){const{index:i,documentIds:s,fieldLength:c,storedFields:p,serializationVersion:n}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=await dr(s),o._fieldLength=await dr(c),o._storedFields=await dr(p);for(const[h,m]of o._documentIds)o._idToShortId.set(m,h);let l=0;for(const[h,m]of i){const b=new Map;for(const _ of Object.keys(m)){let w=m[_];n===1&&(w=w.ds),b.set(parseInt(_,10),await dr(w))}++l%1e3===0&&await iu(0),o._index.set(h,b)}return o}static instantiateMiniSearch(t,r){const{documentCount:i,nextId:s,fieldIds:c,averageFieldLength:p,dirtCount:n,serializationVersion:o}=t;if(o!==1&&o!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new Ct(r);return l._documentCount=i,l._nextId=s,l._idToShortId=new Map,l._fieldIds=c,l._avgFieldLength=p,l._dirtCount=n||0,l._index=new ot,l}executeQuery(t,r={}){if(t===Ct.wildcard)return this.executeWildcardQuery(r);if(typeof t!="string"){const b={...r,...t,queries:void 0},_=t.queries.map(w=>this.executeQuery(w,b));return this.combineResults(_,b.combineWith)}const{tokenize:i,processTerm:s,searchOptions:c}=this._options,p={tokenize:i,processTerm:s,...c,...r},{tokenize:n,processTerm:o}=p,m=n(t).flatMap(b=>o(b)).filter(b=>!!b).map(Gh(p)).map(b=>this.executeQuerySpec(b,p));return this.combineResults(m,p.combineWith)}executeQuerySpec(t,r){const i={...this._options.searchOptions,...r},s=(i.fields||this._options.fields).reduce((v,u)=>({...v,[u]:Kr(i.boost,u)||1}),{}),{boostDocument:c,weights:p,maxFuzzy:n,bm25:o}=i,{fuzzy:l,prefix:h}={...$c.weights,...p},m=this._index.get(t.term),b=this.termResults(t.term,t.term,1,t.termBoost,m,s,c,o);let _,w;if(t.prefix&&(_=this._index.atPrefix(t.term)),t.fuzzy){const v=t.fuzzy===!0?.2:t.fuzzy,u=v<1?Math.min(n,Math.round(t.term.length*v)):v;u&&(w=this._index.fuzzyGet(t.term,u))}if(_)for(const[v,u]of _){const f=v.length-t.term.length;if(!f)continue;w==null||w.delete(v);const d=h*v.length/(v.length+.3*f);this.termResults(t.term,v,d,t.termBoost,u,s,c,o,b)}if(w)for(const v of w.keys()){const[u,f]=w.get(v);if(!f)continue;const d=l*v.length/(v.length+f);this.termResults(t.term,v,d,t.termBoost,u,s,c,o,b)}return b}executeWildcardQuery(t){const r=new Map,i={...this._options.searchOptions,...t};for(const[s,c]of this._documentIds){const p=i.boostDocument?i.boostDocument(c,"",this._storedFields.get(s)):1;r.set(s,{score:p,terms:[],match:{}})}return r}combineResults(t,r=jl){if(t.length===0)return new Map;const i=r.toLowerCase(),s=Uh[i];if(!s)throw new Error(`Invalid combination operator: ${r}`);return t.reduce(s)||new Map}toJSON(){const t=[];for(const[r,i]of this._index){const s={};for(const[c,p]of i)s[c]=Object.fromEntries(p);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,i,s,c,p,n,o,l=new Map){if(c==null)return l;for(const h of Object.keys(p)){const m=p[h],b=this._fieldIds[h],_=c.get(b);if(_==null)continue;let w=_.size;const v=this._avgFieldLength[b];for(const u of _.keys()){if(!this._documentIds.has(u)){this.removeTerm(b,u,r),w-=1;continue}const f=n?n(this._documentIds.get(u),r,this._storedFields.get(u)):1;if(!f)continue;const d=_.get(u),g=this._fieldLength.get(u)[b],y=Hh(d,w,this._documentCount,g,v,o),x=i*s*m*f*y,k=l.get(u);if(k){k.score+=x,qh(k.terms,t);const E=Kr(k.match,r);E?E.push(h):k.match[r]=[h]}else l.set(u,{score:x,terms:[t],match:{[r]:[h]}})}}return l}addTerm(t,r,i){const s=this._index.fetch(i,Ic);let c=s.get(t);if(c==null)c=new Map,c.set(r,1),s.set(t,c);else{const p=c.get(r);c.set(r,(p||0)+1)}}removeTerm(t,r,i){if(!this._index.has(i)){this.warnDocumentChanged(r,t,i);return}const s=this._index.fetch(i,Ic),c=s.get(t);c==null||c.get(r)==null?this.warnDocumentChanged(r,t,i):c.get(r)<=1?c.size<=1?s.delete(t):c.delete(r):c.set(r,c.get(r)-1),this._index.get(i).size===0&&this._index.delete(i)}warnDocumentChanged(t,r,i){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 "${i}" 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,i,s){let c=this._fieldLength.get(t);c==null&&this._fieldLength.set(t,c=[]),c[r]=s;const n=(this._avgFieldLength[r]||0)*i+s;this._avgFieldLength[r]=n/(i+1)}removeFieldLength(t,r,i,s){if(i===1){this._avgFieldLength[r]=0;return}const c=this._avgFieldLength[r]*i-s;this._avgFieldLength[r]=c/(i-1)}saveStoredFields(t,r){const{storeFields:i,extractField:s}=this._options;if(i==null||i.length===0)return;let c=this._storedFields.get(t);c==null&&this._storedFields.set(t,c={});for(const p of i){const n=s(r,p);n!==void 0&&(c[p]=n)}}}Ct.wildcard=Symbol("*");const Kr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Uh={[jl]:(e,t)=>{for(const r of t.keys()){const i=e.get(r);if(i==null)e.set(r,t.get(r));else{const{score:s,terms:c,match:p}=t.get(r);i.score=i.score+s,i.match=Object.assign(i.match,p),Nc(i.terms,c)}}return e},[ru]:(e,t)=>{const r=new Map;for(const i of t.keys()){const s=e.get(i);if(s==null)continue;const{score:c,terms:p,match:n}=t.get(i);Nc(s.terms,p),r.set(i,{score:s.score+c,terms:s.terms,match:Object.assign(s.match,n)})}return r},[Bh]:(e,t)=>{for(const r of t.keys())e.delete(r);return e}},zh={k:1.2,b:.7,d:.5},Hh=(e,t,r,i,s,c)=>{const{k:p,b:n,d:o}=c;return Math.log(1+(r-t+.5)/(t+.5))*(o+e*(p+1)/(e+p*(1-n+n*i/s)))},Gh=e=>(t,r,i)=>{const s=typeof e.fuzzy=="function"?e.fuzzy(t,r,i):e.fuzzy||!1,c=typeof e.prefix=="function"?e.prefix(t,r,i):e.prefix===!0,p=typeof e.boostTerm=="function"?e.boostTerm(t,r,i):1;return{term:t,fuzzy:s,prefix:c,termBoost:p}},Yr={idField:"id",extractField:(e,t)=>e[t],stringifyField:(e,t)=>e.toString(),tokenize:e=>e.split(Vh),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},$c={combineWith:jl,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:zh},Wh={combineWith:ru,prefix:(e,t,r)=>t===r.length-1},Si={batchSize:1e3,batchWait:10},xi={minDirtFactor:.1,minDirtCount:20},Xr={...Si,...xi},qh=(e,t)=>{e.includes(t)||e.push(t)},Nc=(e,t)=>{for(const r of t)e.includes(r)||e.push(r)},Rc=({score:e},{score:t})=>t-e,Ic=()=>new Map,cr=e=>{const t=new Map;for(const r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},dr=async e=>{const t=new Map;let r=0;for(const i of Object.keys(e))t.set(parseInt(i,10),e[i]),++r%1e3===0&&await iu(0);return t},iu=e=>new Promise(t=>setTimeout(t,e)),Vh=/[\n\r\p{Z}\p{P}]+/u;function Kh(e){const t=/[\u4e00-\u9fff]|[a-zA-Z0-9]+/g;return(e.match(t)||[]).map(r=>r.toLowerCase())}const Yh=Ue((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 i=await fetch(`/docs/sidebar-${r}.json`);if(!i.ok)throw new Error(`HTTP ${i.status}`);const s=await i.json();e({sidebar:s,sidebarLoading:!1,sidebarLang:r})}catch{e({sidebar:null,sidebarLoading:!1,sidebarLang:null})}}},loadDocument:async(r,i)=>{e({contentLoading:!0,contentError:null,currentPath:r});try{const c=await fetch(`/docs/${i==="zh"?"cn":"en"}${r}.md`);if(!c.ok)throw new Error(`HTTP ${c.status}`);const p=await c.text();t().currentPath===r&&e({currentContent:p,contentLoading:!1})}catch{t().currentPath===r&&e({currentContent:null,contentLoading:!1,contentError:r})}},initSearchIndex:async r=>{if(!(t().searchLang===r&&t().searchIndex))try{const i=await fetch(`/docs/search-index-${r}.json`);if(!i.ok)return;const s=await i.json(),c=new Ct({fields:["title","body"],storeFields:["title","body"],tokenize:Kh,searchOptions:{prefix:!0,fuzzy:.2,boost:{title:2}}});c.addAll(s),e({searchIndex:c,searchDocuments:[],searchLang:r})}catch{}},search:r=>{const{searchIndex:i}=t();if(e({searchQuery:r}),!r.trim()||!i){e({searchResults:[]});return}const c=i.search(r,{prefix:!0,fuzzy:.2}).slice(0,20).map(p=>{const n=p,o=n.title||p.id,l=n.body||"",h=l.toLowerCase(),m=r.toLowerCase(),b=h.indexOf(m);let _;if(b>=0){const w=Math.max(0,b-40),v=Math.min(l.length,b+r.length+80);_=(w>0?"...":"")+l.slice(w,v)+(v<l.length?"...":"")}else _=l.slice(0,120)+(l.length>120?"...":"");return{id:p.id,title:o,score:p.score,excerpt:_}});e({searchResults:c})},setCurrentPath:r=>e({currentPath:r}),clearSearch:()=>e({searchQuery:"",searchResults:[]})})),nu="codebuddy.auth.token";function Mt(){try{return sessionStorage.getItem(nu)}catch{return null}}function au(e){try{sessionStorage.setItem(nu,e)}catch{}}function ke(e){const t={...e},r=Mt();return r&&(t.Authorization=`Bearer ${r}`),t}const su=Ue(e=>({viewState:"loading",error:null,isSubmitting:!1,checkAuth:async()=>{try{e({viewState:"loading",error:null});const t=await Fe("/api/v1/auth/status",{headers:ke()});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 i=await(await fetch("/api/v1/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t})})).json();if(i.success){const s=i.token||t;return au(s),e({viewState:"authenticated",isSubmitting:!1,error:null}),!0}return e({error:i.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})})),Yt=Ue(e=>({info:null,loading:!1,fetch:async()=>{e({loading:!0});try{const t=await Fe("/api/v1/info",{headers:ke()});if(t.ok){const r=await t.json(),i=r.data??r;e({info:i,loading:!1})}else e({loading:!1})}catch{e({loading:!1})}}})),Xh="chat",Lc=new Set(["chat","tasks","plugins","terminal","instances","remote-control","settings","docs","editor"]);function ou(){let t=window.location.hash.slice(1);t.startsWith("/")&&(t=t.slice(1));const r=t.split("?")[0]||"";if(Lc.has(r))return r;const i=r.split("/")[0];return Lc.has(i)?i:Xh}function Oc(e){const t=new URLSearchParams(window.location.search),r=window.location.hash.slice(1),i=r.indexOf("?");i!==-1&&new URLSearchParams(r.slice(i+1)).forEach((n,o)=>{t.has(o)||t.set(o,n)});const s=t.toString(),c=s?`#/${e}?${s}`:`#/${e}`;window.location.hash=c}function Zh(e){const t=()=>{const r=ou();e(r)};return window.addEventListener("hashchange",t),()=>{window.removeEventListener("hashchange",t)}}function Sr(){const t=window.location.hash.slice(1).replace(/^\//,"").split("?")[0],r=t.indexOf("/");return r>0?t.slice(r+1):void 0}function Pt(e,t){const i=new URLSearchParams(window.location.search).toString(),s=i?`#/${e}/${t}?${i}`:`#/${e}/${t}`;window.location.hash=s}function Jh(e){const t=e.split(`
448
+ `),r=[];let i=!1;for(const s of t){if(s.startsWith("```")){i=!i;continue}if(i)continue;const c=s.match(/^##\s+(.+)$/),p=s.match(/^###\s+(.+)$/),n=p||c;if(!n)continue;const o=n[1].trim(),l=o.toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");r.push({id:l,text:o,level:p?3:2})}return r}function Qh({className:e,children:t,...r}){const i=yt(p=>p.resolved),s=(e||"").match(/language-(\w+)/),c=String(t).replace(/\n$/,"");return s?a.jsx("div",{className:"relative group my-3",children:a.jsx(Dl,{style:i==="dark"?zd:Hd,language:s[1],PreTag:"div",customStyle:{margin:0,borderRadius:"8px",fontSize:"13px",lineHeight:"1.6"},children:c})}):a.jsx("code",{className:"bg-bg-tertiary text-text-primary px-1.5 py-0.5 rounded text-[13px]",...r,children:t})}function eg({content:e,onNavigate:t}){const{t:r}=le(),i=N.useMemo(()=>Jh(e),[e]),[s,c]=N.useState(""),p=N.useRef(null);N.useEffect(()=>{var o;(o=p.current)==null||o.scrollTo(0,0)},[e]),N.useEffect(()=>{if(i.length===0)return;const o=new IntersectionObserver(l=>{for(const h of l)h.isIntersecting&&c(h.target.id)},{rootMargin:"-80px 0px -80% 0px"});for(const l of i){const h=document.getElementById(l.id);h&&o.observe(h)}return()=>o.disconnect()},[i]);const n=N.useCallback(o=>{const l=o.currentTarget.getAttribute("href");l&&l.startsWith("/cli/")&&(o.preventDefault(),t(l))},[t]);return a.jsxs("div",{className:"flex gap-6 h-full",children:[a.jsx("div",{ref:p,className:"flex-1 min-w-0 overflow-y-auto px-6 py-6",children:a.jsx("article",{className:"max-w-3xl mx-auto docs-markdown",children:a.jsx(Cr,{remarkPlugins:[Tr],components:{code:Qh,h2:({children:o,...l})=>{const m=String(o).toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");return a.jsx("h2",{id:m,className:"text-xl font-semibold mt-8 mb-3 text-text-primary scroll-mt-20",...l,children:o})},h3:({children:o,...l})=>{const m=String(o).toLowerCase().replace(/[^\w\u4e00-\u9fff\s-]/g,"").replace(/\s+/g,"-");return a.jsx("h3",{id:m,className:"text-lg font-medium mt-6 mb-2 text-text-primary scroll-mt-20",...l,children:o})},h1:({children:o,...l})=>a.jsx("h1",{className:"text-2xl font-bold mb-4 text-text-primary",...l,children:o}),p:({children:o,...l})=>a.jsx("p",{className:"text-sm leading-7 text-text-secondary mb-4",...l,children:o}),a:({children:o,href:l,...h})=>a.jsx("a",{href:l,onClick:l!=null&&l.startsWith("/cli/")?n:void 0,className:"text-accent-brand hover:underline",target:l!=null&&l.startsWith("http")?"_blank":void 0,rel:l!=null&&l.startsWith("http")?"noopener noreferrer":void 0,...h,children:o}),ul:({children:o,...l})=>a.jsx("ul",{className:"list-disc pl-6 mb-4 space-y-1 text-sm text-text-secondary",...l,children:o}),ol:({children:o,...l})=>a.jsx("ol",{className:"list-decimal pl-6 mb-4 space-y-1 text-sm text-text-secondary",...l,children:o}),blockquote:({children:o,...l})=>a.jsx("blockquote",{className:"border-l-4 border-border-primary pl-4 my-4 text-sm text-text-tertiary italic",...l,children:o}),table:({children:o,...l})=>a.jsx("div",{className:"overflow-x-auto my-4",children:a.jsx("table",{className:"min-w-full text-sm border-collapse",...l,children:o})}),th:({children:o,...l})=>a.jsx("th",{className:"border border-border-primary px-3 py-2 bg-bg-secondary text-left font-medium text-text-primary",...l,children:o}),td:({children:o,...l})=>a.jsx("td",{className:"border border-border-primary px-3 py-2 text-text-secondary",...l,children:o}),hr:()=>a.jsx("hr",{className:"my-6 border-border-primary"}),img:({src:o,alt:l,...h})=>a.jsx("img",{src:o,alt:l,className:"max-w-full rounded-lg my-4",loading:"lazy",...h})},children:e})})}),i.length>0&&a.jsx("div",{className:"hidden xl:block w-56 flex-shrink-0 py-6 pr-4",children:a.jsxs("div",{className:"sticky top-6",children:[a.jsx("h4",{className:"text-xs font-semibold text-text-tertiary uppercase tracking-wider mb-3",children:r("docs.toc")}),a.jsx("nav",{className:"space-y-1",children:i.map(o=>a.jsx("a",{href:`#${o.id}`,onClick:l=>{var h;l.preventDefault(),(h=document.getElementById(o.id))==null||h.scrollIntoView({behavior:"smooth"})},className:`block text-xs py-0.5 transition-colors truncate
449
+ ${o.level===3?"pl-3":""}
450
+ ${s===o.id?"text-accent-brand font-medium":"text-text-tertiary hover:text-text-secondary"}`,children:o.text},o.id))})]})})]})}function tg({query:e,results:t,onSelect:r}){const{t:i}=le();return e.trim()?t.length===0?a.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:a.jsxs("div",{className:"text-center",children:[a.jsx(ft,{size:40,className:"mx-auto mb-4 text-text-tertiary opacity-30"}),a.jsx("div",{className:"text-text-secondary text-sm mb-1",children:i("docs.search.noResults")}),a.jsxs("div",{className:"text-text-tertiary text-xs",children:['"',e,'"']})]})}):a.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:[a.jsx("p",{className:"text-xs font-medium text-text-tertiary uppercase tracking-wider mb-4",children:i("docs.search.resultsCount").replace("{count}",String(t.length))}),a.jsx("div",{className:"space-y-2 max-w-3xl",children:t.map(s=>a.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:[a.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[a.jsx(et,{size:14,className:"text-text-tertiary flex-shrink-0"}),a.jsx("span",{className:"text-sm font-medium text-text-primary truncate",children:s.title})]}),a.jsx("p",{className:"text-xs text-text-tertiary line-clamp-2 pl-[22px] leading-relaxed",children:s.excerpt})]},s.id))})]}):a.jsx(a.Fragment,{})}function wi({item:e,currentPath:t,onSelect:r,depth:i}){const[s,c]=N.useState(!e.collapsed),p=e.items&&e.items.length>0,n=e.link===t,o=p&&!e.link,l=N.useCallback(()=>{e.link&&r(e.link),p&&c(h=>!h)},[e.link,p,r]);return o&&i===0?a.jsxs("div",{className:"mt-4 first:mt-0",children:[a.jsxs("button",{onClick:l,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:[a.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",children:s?a.jsx(ct,{size:12}):a.jsx(Qe,{size:12})}),a.jsx("span",{className:"truncate",children:e.text})]}),s&&a.jsx("div",{children:e.items.map((h,m)=>a.jsx(wi,{item:h,currentPath:t,onSelect:r,depth:i+1},h.link||`${h.text}-${m}`))})]}):a.jsxs("div",{children:[a.jsxs("button",{onClick:l,className:`w-full text-left flex items-center gap-1.5 py-1.5 rounded-lg text-[13px] transition-colors
451
+ ${n?"bg-accent-brand/10 text-accent-brand font-medium":"text-text-secondary hover:text-text-primary hover:bg-bg-hover"}`,style:{paddingLeft:`${i*12+16}px`,paddingRight:"16px"},children:[p&&a.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",children:s?a.jsx(ct,{size:12}):a.jsx(Qe,{size:12})}),!p&&a.jsx("span",{className:"w-4 flex-shrink-0"}),a.jsx("span",{className:"truncate",children:e.text})]}),p&&s&&a.jsx("div",{children:e.items.map((h,m)=>a.jsx(wi,{item:h,currentPath:t,onSelect:r,depth:i+1},h.link||`${h.text}-${m}`))})]})}function rg({items:e,currentPath:t,onSelect:r}){return a.jsx("nav",{className:"py-2 overflow-y-auto",children:e.map((i,s)=>a.jsx(wi,{item:i,currentPath:t,onSelect:r,depth:0},i.link||`${i.text}-${s}`))})}function lu(e){for(const t of e){if(t.link)return t.link;if(t.items){const r=lu(t.items);if(r)return r}}return null}function Dc(){const{t:e,resolved:t}=le(),{sidebar:r,sidebarLoading:i,currentPath:s,currentContent:c,contentLoading:p,contentError:n,searchQuery:o,searchResults:l,loadSidebar:h,loadDocument:m,initSearchIndex:b,search:_,setCurrentPath:w,clearSearch:v}=Yh(),[u,f]=N.useState(!1),[d,g]=N.useState(""),y=N.useRef(),x=Yt($=>{var D;return(D=$.info)==null?void 0:D.version}),k=x&&x!=="dev"?`CodeBuddy Code CLI v${x}`:"CodeBuddy Code CLI",E=t==="zh"?"zh":"en";N.useEffect(()=>{h(E),b(E)},[E,h,b]),N.useEffect(()=>{s&&m(s,E)},[E]),N.useEffect(()=>{if(!r)return;const $=Sr();if($){const D=`/${$}`;w(D),m(D,E)}else if(!s){const D=lu(r);D&&(w(D),m(D,E),window.location.hash=`/docs${D}`)}},[r]),N.useEffect(()=>{const $=()=>{if(!window.location.hash.startsWith("#/docs"))return;const A=Sr();if(A){const P=`/${A}`;P!==s&&(w(P),m(P,E),v(),g(""))}};return window.addEventListener("hashchange",$),()=>window.removeEventListener("hashchange",$)},[s,E,m,w,v]),N.useEffect(()=>(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{_(d)},300),()=>{y.current&&clearTimeout(y.current)}),[d,_]);const S=N.useCallback($=>{v(),g(""),w($),m($,E),window.location.hash=`/docs${$}`,f(!1)},[E,m,w,v]),C=N.useCallback($=>{S($)},[S]),R=d.trim().length>0;return a.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[a.jsx("div",{className:"flex-none border-b border-border-default px-6 py-4",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.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:()=>f($=>!$),children:a.jsx(Rp,{size:16})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("docs.title")}),a.jsx("p",{className:"text-sm text-text-tertiary mt-0.5",children:k})]})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("div",{className:"relative w-48 sm:w-64",children:[a.jsx(ft,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary"}),a.jsx("input",{type:"search",autoComplete:"off","data-1p-ignore":!0,"data-lpignore":"true",value:d,onChange:$=>g($.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(" ")}),d&&a.jsx("button",{onClick:()=>{g(""),v()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-tertiary hover:text-text-primary",children:a.jsx(Le,{size:14})})]}),a.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:[a.jsx(Bt,{size:14}),a.jsx("span",{children:e("docs.apiReference")})]}),a.jsx("button",{onClick:()=>{const D=`/docs${s||""}?standalone`;window.open(`${window.location.pathname}#${D}`,"_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:a.jsx(Np,{size:14})})]})]})}),a.jsxs("div",{className:"flex-1 flex overflow-hidden relative",children:[u&&a.jsx("div",{className:"md:hidden fixed inset-0 bg-black/30 z-20",onClick:()=>f(!1)}),a.jsx("div",{className:`
452
+ w-64 flex-shrink-0 border-r border-border-default bg-bg-primary overflow-y-auto
453
+ md:relative md:translate-x-0
454
+ ${u?"fixed inset-y-0 left-0 z-30 translate-x-0":"hidden md:block"}
455
+ `,children:i?a.jsx("div",{className:"flex flex-col items-center justify-center h-32",children:a.jsx(Ze,{size:"small",text:e("docs.loading")})}):r?a.jsx(rg,{items:r,currentPath:s,onSelect:S}):a.jsx("div",{className:"p-4 text-sm text-text-tertiary",children:e("docs.loadError")})}),a.jsx("div",{className:"flex-1 min-w-0 overflow-hidden flex flex-col",children:R?a.jsx(tg,{query:o,results:l,onSelect:C}):p?a.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:a.jsx(Ze,{size:"small",text:e("docs.loading")})}):n?a.jsx("div",{className:"flex-1 flex flex-col items-center justify-center",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-text-tertiary text-[48px] mb-4 opacity-30",children:"📄"}),a.jsx("div",{className:"text-text-secondary text-sm mb-2",children:e("docs.notFound")}),a.jsx("div",{className:"text-text-tertiary text-xs",children:n})]})}):c?a.jsx(eg,{content:c,onNavigate:S}):a.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-text-tertiary",children:[a.jsx("div",{className:"text-[48px] mb-4 opacity-30",children:"📖"}),a.jsx("div",{className:"text-sm",children:e("docs.title")})]})})]})]})}async function Mc(e,t){var s;const r=await fetch("/api/v1/fs/list",{method:"POST",headers:{...ke(),"Content-Type":"application/json"},body:JSON.stringify({path:e,depth:t})});if(!r.ok)throw new Error(`List directory failed: HTTP ${r.status}`);const i=await r.json();return((s=i.data)==null?void 0:s.entries)??i.entries??[]}async function ig(e){const t=await fetch(`/api/v1/files/download?path=${encodeURIComponent(e)}`,{headers:ke()});if(!t.ok)throw new Error(`Read file failed: HTTP ${t.status}`);return t.text()}async function jc(e,t){const r=await fetch(`/api/v1/files/upload?path=${encodeURIComponent(e)}`,{method:"POST",headers:ke(),body:t});if(!r.ok)throw new Error(`Write file failed: HTTP ${r.status}`)}async function ng(e){const t=await fetch("/api/v1/fs/mkdir",{method:"POST",headers:{...ke(),"Content-Type":"application/json"},body:JSON.stringify({path:e})});if(!t.ok)throw new Error(`Create directory failed: HTTP ${t.status}`)}async function ag(e){const t=await fetch("/api/v1/fs/remove",{method:"POST",headers:{...ke(),"Content-Type":"application/json"},body:JSON.stringify({path:e})});if(!t.ok)throw new Error(`Remove failed: HTTP ${t.status}`)}async function Fc(e,t){const r=await fetch("/api/v1/fs/move",{method:"POST",headers:{...ke(),"Content-Type":"application/json"},body:JSON.stringify({source:e,destination:t})});if(!r.ok)throw new Error(`Move failed: HTTP ${r.status}`)}const sg={".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 og(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 sg[r]||"plaintext"}const lg=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 cg(e){const t=e.substring(e.lastIndexOf(".")).toLowerCase();return lg.has(t)}const dg=2*1024*1024,cu="codebuddy_editor_split_ratio",du="codebuddy_editor_expanded";function ug(){try{const e=sessionStorage.getItem(cu);if(e)return parseFloat(e)}catch{}return .22}function pg(e){try{sessionStorage.setItem(cu,String(e))}catch{}}function Pc(){try{const e=sessionStorage.getItem(du);if(e)return JSON.parse(e)}catch{}return[]}function Bc(e){try{sessionStorage.setItem(du,JSON.stringify(e))}catch{}}function mg(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 Uc(e){return mg(e).map(t=>({name:t.name,path:t.path,type:t.type,children:(t.type==="directory",void 0)}))}function uu(e,t,r){return e.path===t?{...e,children:r,isLoading:!1}:e.children?{...e,children:e.children.map(i=>uu(i,t,r))}:e}function Fl(e,t){const r=[];if(e.children)for(const i of e.children)r.push(i.path),i.type==="directory"&&t.has(i.path)&&i.children&&r.push(...Fl(i,t));return r}function Ei(e,t,r){return e.path===t?{...e,isLoading:r}:e.children?{...e,children:e.children.map(i=>Ei(i,t,r))}:e}const xr=Ue((e,t)=>({rootPath:null,tree:null,treeLoading:!1,expandedPaths:new Set(Pc()),selectedPath:null,selectedPaths:new Set,renamingPath:null,renamingIsNew:!1,tabs:[],activeTabId:null,splitRatio:ug(),setRootPath:async r=>{e({rootPath:r,treeLoading:!0,tree:null});try{const i=await Mc(r),s=Uc(i),c={name:r.split("/").pop()||r,path:r,type:"directory",children:s};e({tree:c,treeLoading:!1,expandedPaths:new Set([r,...Pc()])})}catch{e({treeLoading:!1})}},loadDirectory:async r=>{const{tree:i}=t();if(i){e({tree:Ei(i,r,!0)});try{const s=await Mc(r),c=Uc(s),p=uu(t().tree,r,c);e({tree:p})}catch{const s=t().tree;s&&e({tree:Ei(s,r,!1)})}}},toggleExpand:r=>{const{expandedPaths:i}=t(),s=new Set(i);if(s.has(r))s.delete(r);else{s.add(r);const{tree:c}=t();if(c){const p=o=>{if(o.path===r)return o;if(o.children)for(const l of o.children){const h=p(l);if(h)return h}return null},n=p(c);n&&n.type==="directory"&&!n.children&&t().loadDirectory(r)}}Bc([...s]),e({expandedPaths:s})},selectPath:(r,i)=>{const{selectedPaths:s,selectedPath:c,tree:p,expandedPaths:n}=t();if(i!=null&&i.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(i!=null&&i.shift&&c&&p){const o=Fl(p,n),l=o.indexOf(c),h=o.indexOf(r);if(l>=0&&h>=0){const m=Math.min(l,h),b=Math.max(l,h),_=new Set(o.slice(m,b+1));e({selectedPaths:_,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(),i=new Set;r&&i.add(r),Bc([...i]),e({expandedPaths:i})},createNewFile:()=>{const{selectedPath:r,rootPath:i,tree:s,expandedPaths:c}=t();let p=i;if(r&&s){const o=h=>{if(h.path===r)return h;if(h.children)for(const m of h.children){const b=o(m);if(b)return b}return null},l=o(s);l&&(p=l.type==="directory"?l.path:l.path.substring(0,l.path.lastIndexOf("/")))}if(!p)return;c.has(p)||t().toggleExpand(p);const n=p+"/__new_file__";t().startCreateFile(n)},createNewFolder:()=>{const{selectedPath:r,rootPath:i,tree:s,expandedPaths:c}=t();let p=i;if(r&&s){const o=h=>{if(h.path===r)return h;if(h.children)for(const m of h.children){const b=o(m);if(b)return b}return null},l=o(s);l&&(p=l.type==="directory"?l.path:l.path.substring(0,l.path.lastIndexOf("/")))}if(!p)return;c.has(p)||t().toggleExpand(p);const n=p+"/__new_folder__";t().startCreateFolder(n)},startRename:r=>{e({renamingPath:r,renamingIsNew:!1,selectedPath:r})},startCreateFile:r=>{const i=r.substring(0,r.lastIndexOf("/")),{tree:s}=t();if(!s)return;const c={name:"",path:r,type:"file"},p=n=>n.path===i?{...n,children:[c,...n.children||[]]}:n.children?{...n,children:n.children.map(o=>p(o))}:n;e({tree:p(s),renamingPath:r,renamingIsNew:!0,selectedPath:r})},startCreateFolder:r=>{const i=r.substring(0,r.lastIndexOf("/")),{tree:s}=t();if(!s)return;const c={name:"",path:r,type:"directory"},p=n=>n.path===i?{...n,children:[c,...n.children||[]]}:n.children?{...n,children:n.children.map(o=>p(o))}:n;e({tree:p(s),renamingPath:r,renamingIsNew:!0,selectedPath:r})},confirmRename:async(r,i)=>{const{renamingIsNew:s}=t();if(!i.trim()){if(s){const n=r.substring(0,r.lastIndexOf("/"));e({renamingPath:null,renamingIsNew:!1}),await t().loadDirectory(n)}else e({renamingPath:null,renamingIsNew:!1});return}const c=r.substring(0,r.lastIndexOf("/")),p=c+"/"+i.trim();if(s){try{const{tree:n}=t(),o=h=>{if(h.path===r)return h;if(h.children)for(const m of h.children){const b=o(m);if(b)return b}return null},l=n?o(n):null;(l==null?void 0:l.type)==="directory"?await ng(p):await jc(p,""),e({renamingPath:null,renamingIsNew:!1,selectedPath:p}),await t().loadDirectory(c),(l==null?void 0:l.type)!=="directory"&&await t().openFile(p,i.trim())}catch{e({renamingPath:null,renamingIsNew:!1}),await t().loadDirectory(c)}return}if(p===r){e({renamingPath:null,renamingIsNew:!1});return}try{await Fc(r,p),e(n=>({renamingPath:null,renamingIsNew:!1,selectedPath:p,tabs:n.tabs.map(o=>o.path===r?{...o,id:p,path:p,name:i.trim()}:o),activeTabId:n.activeTabId===r?p:n.activeTabId})),await t().loadDirectory(c)}catch{e({renamingPath:null,renamingIsNew:!1})}},cancelRename:()=>{const{renamingIsNew:r,renamingPath:i}=t();if(r&&i){const s=i.substring(0,i.lastIndexOf("/"));e({renamingPath:null,renamingIsNew:!1}),t().loadDirectory(s)}else e({renamingPath:null,renamingIsNew:!1})},openFile:async(r,i)=>{const{tabs:s}=t(),c=s.find(o=>o.path===r);if(c){e({activeTabId:c.id,selectedPath:r});return}if(cg(r))return;const p=i||r.substring(r.lastIndexOf("/")+1),n=og(r);try{const o=await ig(r);if(o.length>dg)return;const l={id:r,path:r,name:p,content:o,originalContent:o,language:n,isDirty:!1};e(h=>({tabs:[...h.tabs,l],activeTabId:l.id,selectedPath:r}))}catch{}},closeTab:r=>{e(i=>{const s=i.tabs.findIndex(n=>n.id===r),c=i.tabs.filter(n=>n.id!==r);let p=i.activeTabId;return i.activeTabId===r&&(p=c.length>0?c[Math.min(s,c.length-1)].id:null),{tabs:c,activeTabId:p}})},closeOtherTabs:r=>{e(i=>({tabs:i.tabs.filter(s=>s.id===r),activeTabId:r}))},closeAllTabs:()=>{e({tabs:[],activeTabId:null})},setActiveTab:r=>{const i=t().tabs.find(s=>s.id===r);e({activeTabId:r,selectedPath:(i==null?void 0:i.path)||null})},updateTabContent:(r,i)=>{e(s=>({tabs:s.tabs.map(c=>c.id===r?{...c,content:i,isDirty:i!==c.originalContent}:c)}))},saveTab:async r=>{const i=t().tabs.find(s=>s.id===r);if(!(!i||!i.isDirty))try{await jc(i.path,i.content),e(s=>({tabs:s.tabs.map(c=>c.id===r?{...c,originalContent:c.content,isDirty:!1}:c)}))}catch{}},deleteSelected:async()=>{const{selectedPaths:r,tabs:i}=t();if(r.size===0)return;const s=[...r],c=new Set(s.map(p=>p.substring(0,p.lastIndexOf("/"))));try{await Promise.all(s.map(n=>ag(n)));const p=i.filter(n=>!s.some(o=>n.path===o||n.path.startsWith(o+"/")));e(n=>({selectedPaths:new Set,selectedPath:null,tabs:p,activeTabId:p.length>0?p.find(o=>o.id===n.activeTabId)?n.activeTabId:p[0].id:null}));for(const n of c)await t().loadDirectory(n)}catch{for(const p of c)await t().loadDirectory(p)}},moveToDirectory:async(r,i)=>{if(r.length===0)return;const s=new Set(r.map(c=>c.substring(0,c.lastIndexOf("/"))));s.add(i);try{for(const c of r){const p=c.substring(c.lastIndexOf("/")+1),n=i+"/"+p;c!==n&&await Fc(c,n)}e({selectedPaths:new Set,selectedPath:null});for(const c of s)await t().loadDirectory(c)}catch{for(const c of s)await t().loadDirectory(c)}},setSplitRatio:r=>{const i=Math.max(.12,Math.min(.5,r));pg(i),e({splitRatio:i})}}));function zc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function hg(e){if(Array.isArray(e))return e}function gg(e,t,r){return(t=Sg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fg(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,c,p,n=[],o=!0,l=!1;try{if(c=(r=r.call(e)).next,t!==0)for(;!(o=(i=c.call(r)).done)&&(n.push(i.value),n.length!==t);o=!0);}catch(h){l=!0,s=h}finally{try{if(!o&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(l)throw s}}return n}}function bg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
456
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hc(Object(r),!0).forEach(function(i){gg(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hc(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function yg(e,t){if(e==null)return{};var r,i,s=_g(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(i=0;i<c.length;i++)r=c[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function _g(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function vg(e,t){return hg(e)||fg(e,t)||xg(e,t)||bg()}function kg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sg(e){var t=kg(e,"string");return typeof t=="symbol"?t:t+""}function xg(e,t){if(e){if(typeof e=="string")return zc(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)?zc(e,t):void 0}}function wg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function qc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wc(Object(r),!0).forEach(function(i){wg(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wc(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Eg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduceRight(function(s,c){return c(s)},i)}}function Ht(e){return function t(){for(var r=this,i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return s.length>=e.length?e.apply(this,s):function(){for(var p=arguments.length,n=new Array(p),o=0;o<p;o++)n[o]=arguments[o];return t.apply(r,[].concat(s,n))}}}function wr(e){return{}.toString.call(e).includes("Object")}function Cg(e){return!Object.keys(e).length}function Xt(e){return typeof e=="function"}function Tg(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ag(e,t){return wr(t)||lt("changeType"),Object.keys(t).some(function(r){return!Tg(e,r)})&&lt("changeField"),t}function $g(e){Xt(e)||lt("selectorType")}function Ng(e){Xt(e)||wr(e)||lt("handlerType"),wr(e)&&Object.values(e).some(function(t){return!Xt(t)})&&lt("handlersType")}function Rg(e){e||lt("initialIsRequired"),wr(e)||lt("initialType"),Cg(e)&&lt("initialContent")}function Ig(e,t){throw new Error(e[t]||e.default)}var Lg={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"},lt=Ht(Ig)(Lg),ur={changes:Ag,selector:$g,handler:Ng,initial:Rg};function Og(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ur.initial(e),ur.handler(t);var r={current:e},i=Ht(jg)(r,t),s=Ht(Mg)(r),c=Ht(ur.changes)(e),p=Ht(Dg)(r);function n(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return ur.selector(l),l(r.current)}function o(l){Eg(i,s,c,p)(l)}return[n,o]}function Dg(e,t){return Xt(t)?t(e.current):t}function Mg(e,t){return e.current=qc(qc({},e.current),t),t}function jg(e,t,r){return Xt(t)?t(e.current):Object.keys(r).forEach(function(i){var s;return(s=t[i])===null||s===void 0?void 0:s.call(t,e.current[i])}),r}var Fg={create:Og},Pg={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Bg(e){return function t(){for(var r=this,i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return s.length>=e.length?e.apply(this,s):function(){for(var p=arguments.length,n=new Array(p),o=0;o<p;o++)n[o]=arguments[o];return t.apply(r,[].concat(s,n))}}}function Ug(e){return{}.toString.call(e).includes("Object")}function zg(e){return e||Vc("configIsRequired"),Ug(e)||Vc("configType"),e.urls?(Hg(),{paths:{vs:e.urls.monacoBase}}):e}function Hg(){console.warn(pu.deprecation)}function Gg(e,t){throw new Error(e[t]||e.default)}var pu={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!
457
+ You are using deprecated way of configuration.
458
+
459
+ Instead of using
460
+ monaco.config({ urls: { monacoBase: '...' } })
461
+ use
462
+ monaco.config({ paths: { vs: '...' } })
463
+
464
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
465
+ `},Vc=Bg(Gg)(pu),Wg={config:zg},qg=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(s){return r.reduceRight(function(c,p){return p(c)},s)}};function mu(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],mu(e[r],t[r]))}),Gc(Gc({},e),t)}var Vg={type:"cancelation",msg:"operation is manually canceled"};function Zr(e){var t=!1,r=new Promise(function(i,s){e.then(function(c){return t?s(Vg):i(c)}),e.catch(s)});return r.cancel=function(){return t=!0},r}var Kg=["monaco"],Yg=Fg.create({config:Pg,isInitialized:!1,resolve:null,reject:null,monaco:null}),hu=vg(Yg,2),nr=hu[0],Fr=hu[1];function Xg(e){var t=Wg.config(e),r=t.monaco,i=yg(t,Kg);Fr(function(s){return{config:mu(s.config,i),monaco:r}})}function Zg(){var e=nr(function(t){var r=t.monaco,i=t.isInitialized,s=t.resolve;return{monaco:r,isInitialized:i,resolve:s}});if(!e.isInitialized){if(Fr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Zr(Jr);if(window.monaco&&window.monaco.editor)return gu(window.monaco),e.resolve(window.monaco),Zr(Jr);qg(Jg,ef)(tf)}return Zr(Jr)}function Jg(e){return document.body.appendChild(e)}function Qg(e){var t=document.createElement("script");return e&&(t.src=e),t}function ef(e){var t=nr(function(i){var s=i.config,c=i.reject;return{config:s,reject:c}}),r=Qg("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function tf(){var e=nr(function(r){var i=r.config,s=r.resolve,c=r.reject;return{config:i,resolve:s,reject:c}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var i=r.m||r;gu(i),e.resolve(i)},function(r){e.reject(r)})}function gu(e){nr().monaco||Fr({monaco:e})}function rf(){return nr(function(e){var t=e.monaco;return t})}var Jr=new Promise(function(e,t){return Fr({resolve:e,reject:t})}),fu={config:Xg,init:Zg,__getMonacoInstance:rf},nf={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Qr=nf,af={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},sf=af;function of({children:e}){return ve.createElement("div",{style:sf.container},e)}var lf=of,cf=lf;function df({width:e,height:t,isEditorReady:r,loading:i,_ref:s,className:c,wrapperProps:p}){return ve.createElement("section",{style:{...Qr.wrapper,width:e,height:t},...p},!r&&ve.createElement(cf,null,i),ve.createElement("div",{ref:s,style:{...Qr.fullWidth,...!r&&Qr.hide},className:c}))}var uf=df,bu=N.memo(uf);function pf(e){N.useEffect(e,[])}var yu=pf;function mf(e,t,r=!0){let i=N.useRef(!0);N.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var Me=mf;function Vt(){}function Et(e,t,r,i){return hf(e,i)||gf(e,t,r,i)}function hf(e,t){return e.editor.getModel(_u(e,t))}function gf(e,t,r,i){return e.editor.createModel(t,r,i?_u(e,i):void 0)}function _u(e,t){return e.Uri.parse(t)}function ff({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:s,originalModelPath:c,modifiedModelPath:p,keepCurrentOriginalModel:n=!1,keepCurrentModifiedModel:o=!1,theme:l="light",loading:h="Loading...",options:m={},height:b="100%",width:_="100%",className:w,wrapperProps:v={},beforeMount:u=Vt,onMount:f=Vt}){let[d,g]=N.useState(!1),[y,x]=N.useState(!0),k=N.useRef(null),E=N.useRef(null),S=N.useRef(null),C=N.useRef(f),R=N.useRef(u),$=N.useRef(!1);yu(()=>{let I=fu.init();return I.then(U=>(E.current=U)&&x(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>k.current?P():I.cancel()}),Me(()=>{if(k.current&&E.current){let I=k.current.getOriginalEditor(),U=Et(E.current,e||"",i||r||"text",c||"");U!==I.getModel()&&I.setModel(U)}},[c],d),Me(()=>{if(k.current&&E.current){let I=k.current.getModifiedEditor(),U=Et(E.current,t||"",s||r||"text",p||"");U!==I.getModel()&&I.setModel(U)}},[p],d),Me(()=>{let I=k.current.getModifiedEditor();I.getOption(E.current.editor.EditorOption.readOnly)?I.setValue(t||""):t!==I.getValue()&&(I.executeEdits("",[{range:I.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),I.pushUndoStop())},[t],d),Me(()=>{var I,U;(U=(I=k.current)==null?void 0:I.getModel())==null||U.original.setValue(e||"")},[e],d),Me(()=>{let{original:I,modified:U}=k.current.getModel();E.current.editor.setModelLanguage(I,i||r||"text"),E.current.editor.setModelLanguage(U,s||r||"text")},[r,i,s],d),Me(()=>{var I;(I=E.current)==null||I.editor.setTheme(l)},[l],d),Me(()=>{var I;(I=k.current)==null||I.updateOptions(m)},[m],d);let D=N.useCallback(()=>{var z;if(!E.current)return;R.current(E.current);let I=Et(E.current,e||"",i||r||"text",c||""),U=Et(E.current,t||"",s||r||"text",p||"");(z=k.current)==null||z.setModel({original:I,modified:U})},[r,t,s,e,i,c,p]),A=N.useCallback(()=>{var I;!$.current&&S.current&&(k.current=E.current.editor.createDiffEditor(S.current,{automaticLayout:!0,...m}),D(),(I=E.current)==null||I.editor.setTheme(l),g(!0),$.current=!0)},[m,l,D]);N.useEffect(()=>{d&&C.current(k.current,E.current)},[d]),N.useEffect(()=>{!y&&!d&&A()},[y,d,A]);function P(){var U,z,W,T;let I=(U=k.current)==null?void 0:U.getModel();n||((z=I==null?void 0:I.original)==null||z.dispose()),o||((W=I==null?void 0:I.modified)==null||W.dispose()),(T=k.current)==null||T.dispose()}return ve.createElement(bu,{width:_,height:b,isEditorReady:d,loading:h,_ref:S,className:w,wrapperProps:v})}var bf=ff;N.memo(bf);function yf(e){let t=N.useRef();return N.useEffect(()=>{t.current=e},[e]),t.current}var _f=yf,pr=new Map;function vf({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:s,path:c,theme:p="light",line:n,loading:o="Loading...",options:l={},overrideServices:h={},saveViewState:m=!0,keepCurrentModel:b=!1,width:_="100%",height:w="100%",className:v,wrapperProps:u={},beforeMount:f=Vt,onMount:d=Vt,onChange:g,onValidate:y=Vt}){let[x,k]=N.useState(!1),[E,S]=N.useState(!0),C=N.useRef(null),R=N.useRef(null),$=N.useRef(null),D=N.useRef(d),A=N.useRef(f),P=N.useRef(),I=N.useRef(i),U=_f(c),z=N.useRef(!1),W=N.useRef(!1);yu(()=>{let M=fu.init();return M.then(F=>(C.current=F)&&S(!1)).catch(F=>(F==null?void 0:F.type)!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>R.current?j():M.cancel()}),Me(()=>{var F,G,V,Q;let M=Et(C.current,e||i||"",t||s||"",c||r||"");M!==((F=R.current)==null?void 0:F.getModel())&&(m&&pr.set(U,(G=R.current)==null?void 0:G.saveViewState()),(V=R.current)==null||V.setModel(M),m&&((Q=R.current)==null||Q.restoreViewState(pr.get(c))))},[c],x),Me(()=>{var M;(M=R.current)==null||M.updateOptions(l)},[l],x),Me(()=>{!R.current||i===void 0||(R.current.getOption(C.current.editor.EditorOption.readOnly)?R.current.setValue(i):i!==R.current.getValue()&&(W.current=!0,R.current.executeEdits("",[{range:R.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),R.current.pushUndoStop(),W.current=!1))},[i],x),Me(()=>{var F,G;let M=(F=R.current)==null?void 0:F.getModel();M&&s&&((G=C.current)==null||G.editor.setModelLanguage(M,s))},[s],x),Me(()=>{var M;n!==void 0&&((M=R.current)==null||M.revealLine(n))},[n],x),Me(()=>{var M;(M=C.current)==null||M.editor.setTheme(p)},[p],x);let T=N.useCallback(()=>{var M;if(!(!$.current||!C.current)&&!z.current){A.current(C.current);let F=c||r,G=Et(C.current,i||e||"",t||s||"",F||"");R.current=(M=C.current)==null?void 0:M.editor.create($.current,{model:G,automaticLayout:!0,...l},h),m&&R.current.restoreViewState(pr.get(F)),C.current.editor.setTheme(p),n!==void 0&&R.current.revealLine(n),k(!0),z.current=!0}},[e,t,r,i,s,c,l,h,m,p,n]);N.useEffect(()=>{x&&D.current(R.current,C.current)},[x]),N.useEffect(()=>{!E&&!x&&T()},[E,x,T]),I.current=i,N.useEffect(()=>{var M,F;x&&g&&((M=P.current)==null||M.dispose(),P.current=(F=R.current)==null?void 0:F.onDidChangeModelContent(G=>{W.current||g(R.current.getValue(),G)}))},[x,g]),N.useEffect(()=>{if(x){let M=C.current.editor.onDidChangeMarkers(F=>{var V;let G=(V=R.current.getModel())==null?void 0:V.uri;if(G&&F.find(Q=>Q.path===G.path)){let Q=C.current.editor.getModelMarkers({resource:G});y==null||y(Q)}});return()=>{M==null||M.dispose()}}return()=>{}},[x,y]);function j(){var M,F;(M=P.current)==null||M.dispose(),b?m&&pr.set(c,R.current.saveViewState()):(F=R.current.getModel())==null||F.dispose(),R.current.dispose()}return ve.createElement(bu,{width:_,height:w,isEditorReady:x,loading:o,_ref:$,className:v,wrapperProps:u})}var kf=vf,Sf=N.memo(kf),xf=Sf;function wf({path:e,content:t,language:r,onContentChange:i,onSave:s,minimap:c=!0}){const{t:p}=le(),{resolved:n}=yt(),o=N.useRef(null),l=n==="dark"?"vs-dark":"vs",h=N.useCallback((b,_)=>{o.current=b,b.addCommand(_.KeyMod.CtrlCmd|_.KeyCode.KeyS,()=>{s()})},[s]),m=N.useCallback(b=>{b!==void 0&&i(b)},[i]);return N.useEffect(()=>{const b=o.current;if(b){const _=b.getModel();_&&_.getValue()!==t&&_.setValue(t)}},[e,t]),a.jsx(xf,{height:"100%",language:r,theme:l,value:t,onChange:m,onMount:h,loading:a.jsxs("div",{className:"flex items-center justify-center h-full gap-2",style:{color:"var(--color-text-tertiary)"},children:[a.jsx(Ce,{size:16,className:"animate-spin"}),a.jsx("span",{style:{fontSize:13},children:p("editor.loading")})]}),options:{fontSize:13,fontFamily:"'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace",lineHeight:20,minimap:{enabled:c,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)}class Ef{constructor(t,r,i,s,c=1,p=null,n=null,o=null){this.index=t,this.icon=r,this.colour=i,this.match=s,this.priority=c,this.interpreter=p||null,this.scope=n||null,this.lang=o||null}getClass(t,r){return t===null||this.colour[0]===null?r?["icon",this.icon]:`icon ${this.icon}`:r?["icon",this.icon,this.colour[t]]:`icon ${this.icon} ${this.colour[t]}`}}var Cf=Ef,Kc=[[[["acre-icon",["medium-blue","medium-blue"],/^APLSource$/],["acre-icon",["dark-blue","dark-blue"],/^\.acre$/],["agda-icon",["dark-cyan","dark-cyan"],/^\.agda$/i],["alacritty-alt-icon",["dark-blue","dark-blue"],/\/\.config\/alacritty$/i],["appstore-icon",[null,null],/\.(?:app|xcodeproj|xcworkspace)$/i],["arttext-icon",["dark-purple","dark-purple"],/\.artx$/i],["atom-icon",["dark-green","dark-green"],/^\.atom(?:-ci)?$/],["azurepipelines-icon",["dark-blue","dark-blue"],/^\.azure-pipelines$/i],["bazaar-icon",["medium-yellow","dark-yellow"],/^\.bzr$/],["bower-icon",["medium-yellow","medium-orange"],/^bower[-_]components$/],["cabal-icon",["medium-cyan","medium-cyan"],/^\.cabal$/i],["chef-icon",[null,null],/\.chef$/],["circleci-icon",[null,null],/^\.circleci$/],["cpan-icon",["medium-blue","medium-blue"],/^\.cpan$/i],["cpan-icon",["dark-blue","dark-blue"],/^\.cpanplus$/i],["cubit-icon",["medium-cyan","medium-cyan"],/^cubits?$/i],["cvs-icon",["medium-orange","medium-orange"],/^CVS$/],["deno-icon",["dark-purple","dark-purple"],/\.deno$/i],["dependabot-icon",["medium-blue","medium-blue"],/\.dependabot$/i],["devcontainer-icon",["medium-blue","medium-blue"],/^\.devcontainer$/i],["docker-icon",["dark-blue","dark-blue"],/^\.docker$/],["dropbox-icon",["medium-blue","medium-blue"],/^(?:Dropbox|\.dropbox\.cache)$/],["dvc-icon",["light-blue","light-blue"],/^\.dvc$/],["emacs-icon",["medium-purple","medium-purple"],/^\.emacs\.d$/],["expo-icon",["medium-blue","medium-blue"],/^\.expo(?:-shared)?$/i],["fossil-icon",[null,null],/^\.fossil-settings$/i],["dylib-icon",[null,null],/\.(?:appex|framework|ideplugin)$/i],["git-icon",["medium-red","medium-red"],/\.git$/],["github-icon",[null,null],/^\.github$/],["gitlab-icon",[null,null],/^\.gitlab$/],["istanbul-icon",["medium-orange","medium-orange"],/^\.nyc[-_]output$/],["hg-icon",["medium-grey","medium-grey"],/^\.hg$/],["meteor-icon",["dark-orange","dark-orange"],/^\.meteor$/],["node-icon",["medium-green","medium-green"],/^node_modules$/],["node-icon",["dark-green","dark-green"],/^\.node-gyp$/],["package-icon",[null,null],/^\.(?:bundle|paket)$/i],["svn-icon",[null,null],/^\.svn$/i],["textmate-icon",[null,null],/\.tmBundle$/i],["ufo-icon",[null,null],/\.ufo\d?$/i],["vagrant-icon",["medium-cyan","medium-cyan"],/\.vagrant$/i],["vagrant-icon",["dark-cyan","dark-cyan"],/\.vagrant\.d$/i],["vim-icon",["medium-green","medium-green"],/^\.vim$/i],["vs-icon",[null,null],/^\.vscode$/i],["yarn-icon",["medium-blue","medium-blue"],/^\.yarn$/i]],[[],[],[]]],[[["lock-icon",["dark-blue","dark-blue"],/(?:^|.*(?:\.|-|\/))vault\.ya?ml$$/i,4],["binary-icon",["dark-green","dark-green"],/\.swp$/i,4],["database-icon",["medium-red","medium-red"],/(?:^|\.)fonts\.(?:dir|scale|alias)$/i,4,,/^source\.fontdir$/i],["link-icon",["medium-blue","medium-blue"],/\.lnk$/i,3],["link-icon",["medium-blue","medium-blue"],/\.alias$/,3],["phoenix-icon",["medium-red","medium-red"],/^phoenix\.ex$/i,3],["phoenix-icon",["medium-orange","medium-orange"],/^phoenix\.[cm]?js$/i,3],["alacritty-icon",["medium-orange","medium-orange"],/^\.?alacritty\.ya?ml$/i,2],["angular-icon",["medium-red","medium-red"],/^angular[^.]*\.[cm]?js$/i,2],["ansible-icon",["dark-cyan","dark-cyan"],/(?:^|\.)ansible(?:\.ya?ml)?$|([\\\/])roles\1[^\\\/]+\1(?:tasks|handlers|tests)\1.*\.ya?ml$/i,2,,/^source\.ansible(?:[.-]advanced)?$/i,/^Ansible$/i],["ansible-icon",["dark-blue","dark-blue"],/([\\\/])roles\1[^\\\/]+\1(?:defaults|vars|meta)\1.*\.ya?ml$|([\\\/])(?:group_vars|host_vars)\1.*\.ya?ml$/i,2],["ant-icon",["dark-pink","dark-pink"],/^ant\.xml$|\.ant$/i,2,,/^text\.xml\.ant$/i,/^Ant[\W_ \t]?Build[\W_ \t]?System$/i],["antwar-icon",["dark-purple","dark-purple"],/^\.?antwar\.conf(?:ig)?\.[cm]?js$/i,2],["apache-icon",["medium-red","medium-red"],/^(?:apache2?|httpd)(?:\.[-\w]+)*.conf$/i,2],["apache-icon",["dark-red","dark-red"],/\.apacheconf$/i,2,,/\.apache-config$/i,/^Apache$|^(?:aconf|ApacheConf)$/i],["apache-icon",["medium-purple","medium-purple"],/apache2\/magic$/i,2],["apache-icon",["dark-green","dark-green"],/\.vhost$/i,2],["apache-icon",["medium-green","medium-green"],/\.thrift$/i,2],["apiextractor-icon",["light-blue","medium-blue"],/^api-extractor(?:-base)?\.json$/i,2],["appcelerator-icon",["medium-red","medium-red"],/^appcelerator\.[cm]?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],["atom-icon",["dark-green","dark-green"],/\.atomproject\.[jc]son$/i,2],["atoum-icon",["medium-blue","medium-blue"],/^\.?atoum(?:\.[^.]+)*\.php/i,2],["aurelia-icon",["dark-pink","dark-pink"],/^aurelia\.json$/i,2],["azurepipelines-icon",["dark-blue","dark-blue"],/^azure-pipelines\.ya?ml$/i,2],["backbone-icon",["dark-blue","dark-blue"],/^backbone(?:[-.]min|dev)?\.[cm]?js$/i,2],["behat-icon",["medium-cyan","medium-cyan"],/^behat(?:\.[^.]+)*\.ya?ml$/i,2],["bem-icon",["medium-maroon","medium-maroon"],/\.bemjson(?:\.[cm]?js)?$/i,2],["bintray-icon",["medium-green","medium-green"],/^\.bintray\.json$/i,2],["bitbucket-icon",["medium-blue","medium-blue"],/^bitbucket-pipelines\.ya?ml$/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-green","dark-green"],/^(?:custom\.)?bootstrap\S*\.cjs$/i,2],["bootstrap-icon",["medium-blue","dark-blue"],/^(?:custom\.)?bootstrap\S*\.mjs$/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],["bootstrap-icon",["medium-orange","medium-orange"],/\.bootstraprc$/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],["browsersync-icon",["medium-red","medium-red"],/^(?:bs-config|browser-sync)\.(?:[cm]?js|json)$/i,2],["brunch-icon",["medium-green","medium-green"],/^brunch-config\.(?:[cm]?js|coffee|ts)$/i,2],["bundler-icon",["medium-blue","dark-blue"],/^Gemfile(?:\.lock)?$/i,2],["cabal-icon",["medium-purple","medium-purple"],/^cabal\.(?:config|project)$/i,2],["cabal-icon",["medium-yellow","dark-yellow"],/^cabal-ghcjs\.project$/i,2],["caddy-icon",["dark-blue","dark-blue"],/^Caddyfile(?:$|[-.])/i,2],["caffe2-icon",["dark-blue","dark-blue"],/\.caffe2model$|^(?:init|predict)_net\.pb$/i,2],["caffe2-icon",["medium-purple","medium-purple"],/^(?:deploy|solver|train_val)\.prototxt$/i,2],["carthage-icon",["dark-pink","dark-pink"],/^Cartfile(?:\.|$)/,2],["chai-icon",["medium-red","dark-red"],/^chai\.(?:[jt]sx?|es6?|coffee)$/i,2],["chartjs-icon",["dark-pink","dark-pink"],/^Chart(?:\.bundle)?(?:\.min)?\.[cm]?js$/i,2],["checklist-icon",["medium-green","medium-green"],/^todo.txt$/i,2,,/^text\.(?:gfm-)?todotxt$/i,/^Checklist$/i],["chocolatey-icon",["medium-blue","medium-blue"],/^chocolatey.*\.ps1$/i,2],["circleci-icon",["medium-green","medium-green"],/^circle\.yml$/i,2],["codacy-icon",["dark-blue","dark-blue"],/\.codacy\.ya?ml$/i,2],["cc-icon",["medium-green","medium-green"],/\.codeclimate\.yml$/i,2],["codecov-icon",["dark-pink","dark-pink"],/^codecov\.ya?ml$/i,2],["codemeta-icon",["medium-grey","dark-grey"],/^codemeta\.json(?:ld)?$/i,2],["codeship-icon",["dark-blue","dark-blue"],/^codeship-[\w.-]+\.ya?ml$/i,2],["coffee-icon",["medium-cyan","medium-cyan"],/\.coffee\.ecr$/i,2],["coffee-icon",["medium-red","medium-red"],/\.coffee\.erb$/i,2],["commitlint-icon",["medium-blue","medium-blue"],/^commitlint\.config\.js$|^\.commitlintrc\.(?:json|js|ya?ml)$/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],["conan-icon",["medium-blue","dark-blue"],/^(?:conanfile\.(?:txt|py)|conan\.conf)$/i,2],["config-icon",["dark-blue","dark-blue"],/^buildozer\.spec$/i,2],["config-go-icon",["dark-blue","dark-blue"],/^go\.mod$/i,2],["config-go-icon",["medium-green","medium-green"],/^go\.sum$/i,2],["cordova-icon",["light-blue","light-blue"],/^cordova(?:[^.]*\.|-(?:\d\.)+)[cm]?js$/i,2],["coveralls-icon",["medium-red","medium-red"],/^\.coveralls\.ya?ml$/i,2],["cpan-icon",["medium-red","medium-red"],/^META\.yml$/,2],["cpan-icon",["medium-yellow","dark-yellow"],/^META\.json$/,2],["crowdin-icon",["medium-green","medium-green"],/^crowdin\.ya?ml$/i,2],["d3-icon",["medium-orange","medium-orange"],/^d3(?:\.v\d+)?[^.]*\.[cm]?js$/i,2],["database-icon",["medium-red","medium-red"],/^METADATA\.pb$|\.git[\/\\](?:.*[\/\\])?(?:HEAD|ORIG_HEAD|packed-refs|logs[\/\\](?:.+[\/\\])?[^\/\\]+)$/,2],["dependabot-icon",["medium-blue","medium-blue"],/^dependabot\.ya?ml$/i,2],["devcontainer-icon",["medium-blue","medium-blue"],/^devcontainer\.json$/i,2],["docker-icon",["dark-blue","dark-blue"],/^(?:Dockerfile|docker-compose)|\.docker(?:file|ignore)$/i,2,,/\.dockerfile$/i,/^D[0o]cker$/i],["docker-icon",["dark-orange","dark-orange"],/^docker-sync\.yml$/i,2],["doclets-icon",["light-green","medium-green"],/\.doclets\.ya?ml$/i,2],["docz-icon",["medium-yellow","dark-yellow"],/(?:^|\.)docz(?:rc)?(?:\.config)?\.[cm]?js$/i,2],["docz-icon",["medium-orange","dark-orange"],/(?:^|\.)docz(?:rc)?(?:\.config)?\.json$/i,2],["dojo-icon",["light-red","light-red"],/^dojo\.[cm]?js$/i,2],["dragula-icon",["dark-purple","dark-purple"],/^dragula(?:\.min)?\.(?:[cm]?js|css)$/i,2],["drawio-icon",["medium-orange","medium-orange"],/^\.drawio(?:$|\.)|\.d(?:raw)?io(?:\.png|\.svg)?$/i,2],["drone-icon",["medium-cyan","medium-cyan"],/\.drone\.ya?ml$/i,2],["electron-icon",["dark-blue","dark-blue"],/\.compilerc(?:\.json)?$/i,2],["ember-icon",["medium-red","medium-red"],/^ember(?:\.|(?:-[^.]+)?-(?:\d+\.)+(?:debug\.)?)[cm]?js$/i,2],["esdoc-icon",["medium-red","medium-red"],/^\.?esdoc\.(?:[cm]?js|json)$/i,2],["eslint-icon",["medium-purple","medium-purple"],/\.eslint(?:cache|ignore)$/i,2],["eslint-icon",["light-purple","light-purple"],/\.eslintrc(?:$|\.)/i,2],["extjs-icon",["light-green","light-green"],/\bExtjs(?:-ext)?\.[cm]?js$/i,2],["fabfile-icon",["medium-blue","medium-blue"],/^fabfile\.py$/i,2],["fabric-icon",["medium-orange","dark-orange"],/^fabric\.mod\.json$/i,2],["firebase-icon",["medium-yellow","medium-yellow"],/^firebase\.json$|^firestore\.indexes\.json$/i,2],["fossa-icon",["medium-blue","medium-blue"],/\.fossa\.ya?ml$/i,2],["fuelux-icon",["medium-orange","dark-orange"],/^fuelux(?:\.min)?\.(?:css|[cm]?js)$/i,2],["fusebox-icon",["medium-blue","medium-blue"],/^fuse\.[cm]?js$/,2],["galaxy-icon",["medium-grey","medium-grey"],/^galaxy\.ini$/i,2],["gatsby-icon",["dark-purple","dark-purple"],/^gatsby-.+\.[jt]s$/i,2],["gear-icon",["medium-blue","medium-blue"],/\.indent\.pro$/i,2],["gitlab-icon",["medium-orange","medium-orange"],/^\.gitlab-ci\.yml$/,2],["glide-icon",["light-orange","light-orange"],/^glide\.ya?ml$/i,2],["goreleaser-icon",["medium-blue","medium-blue"],/^\.goreleaser\.ya?ml$/i,2],["greenkeeper-icon",["medium-green","medium-green"],/^greenkeeper\.json$/i,2],["gridsome-icon",["medium-cyan","medium-cyan"],/\bgridsome\.(?:config|client|server)\.[jt]s$/i,2],["grunt-icon",["medium-yellow","medium-yellow"],/^gruntfile.*\.(?:[cm]?js|jsx)$/i,2],["grunt-icon",["medium-maroon","medium-maroon"],/^gruntfile.*\.(?:lit)?coffee$/i,2],["grunt-icon",["medium-blue","medium-blue"],/^gruntfile.*\.tsx?$/i,2],["gulp-icon",["medium-red","medium-red"],/^gulpfile.*\.(?:[cm]?js|jsx)$/i,2],["gulp-icon",["medium-maroon","medium-maroon"],/^gulpfile.*\.(?:lit)?coffee$/i,2],["gulp-icon",["medium-blue","medium-blue"],/^gulpfile.*\.tsx?$/i,2],["templeos-icon",["medium-orange","medium-orange"],/\.hc\.z$/i,2],["houndci-icon",["medium-purple","medium-purple"],/\.hound\.ya?ml$/i,2],["html5-icon",["medium-cyan","medium-cyan"],/\.html?\.ecr$/i,2],["html5-icon",["medium-red","medium-red"],/\.(?:html?\.erb(?:\.deface)?|rhtml)$/i,2,,/\.html\.erb$/i,/^Html$/i],["husky-icon",["medium-orange","dark-orange"],/\.huskyrc\.js$/i,2],["husky-icon",["medium-yellow","dark-yellow"],/\.huskyrc\.json$/i,2],["husky-icon",["medium-green","dark-green"],/\.huskyrc\.cjs$/i,2],["husky-icon",["medium-blue","dark-blue"],/\.huskyrc\.mjs$/i,2],["husky-icon",["medium-red","dark-red"],/\.huskyrc\.ya?ml$/i,2],["hyper-icon",["dark-purple","dark-purple"],/^\.hyper\.[cm]?js$/i,2],["icomoon-icon",["medium-purple","medium-purple"],/^icomoon(?:\.[-\w]+)*\.json$/i,2],["ionic-icon",["medium-blue","medium-blue"],/^ionic\.(?:project|config\.json)$/,2],["istanbul-icon",["medium-orange","medium-orange"],/^\.nycrc(?:\.json)?$/i,2],["istanbul-icon",["medium-green","medium-green"],/^\.nycrc\.ya?ml$/i,2],["istanbul-icon",["medium-yellow","dark-yellow"],/^nyc\.config\.js$/i,2],["istanbul-icon",["medium-green","dark-green"],/^nyc\.config\.cjs$/i,2],["istanbul-icon",["medium-blue","dark-blue"],/^nyc\.config\.mjs$/i,2],["jasmine-icon",["medium-purple","dark-purple"],/^\.?jasmine\.json$|^jasmine\.(?:[-\w]+\.)?(?:[cm]?js|ts|coffee)$/i,2],["js-icon",["medium-cyan","medium-cyan"],/\.js\.ecr$/i,2],["js-icon",["medium-red","medium-red"],/\.js\.erb$/i,2],["jekyll-icon",["medium-red","medium-red"],/^_config\.yml$/,2],["jest-icon",["medium-red","medium-red"],/^jest(?:\.config)?(?:\.babel)?\.(?:js(?:on|x)?|[cm]js|tsx?)$|^\.jestrc(?:$|\.)/i,2],["jest-icon",["medium-blue","medium-blue"],/\.(?:mjs|tsx?)\.snap$/i,2],["jest-icon",["medium-green","dark-green"],/\.cjs\.snap$/i,2],["jest-icon",["medium-yellow","dark-yellow"],/\.snap$/i,2],["jquery-icon",["dark-blue","dark-blue"],/^jquery(?:[-.](?:min|latest|slim|\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],["jscpd-icon",["medium-grey","medium-grey"],/\.jscpd(?:\.json)?$|^jscpd-report\.json/i,2],["jscpd-icon",["medium-orange","medium-orange"],/\.jscpd\.html$/i,2],["jscpd-icon",["medium-cyan","medium-cyan"],/\.jscpd\.xml$/i,2],["karma-icon",["medium-cyan","medium-cyan"],/^karma\.conf(?:ig)?\.[cm]?js$|^karma\.conf(?:ig)?\.ts$/i,2],["karma-icon",["medium-maroon","medium-maroon"],/^karma\.conf(?:ig)?\.coffee$/i,2],["keybase-icon",["medium-blue","medium-blue"],/^keybase\.txt$/i,2],["kitchenci-icon",["medium-green","medium-green"],/^\.?kitchen(?:\.[-\w]*)*\.ya?ml$/i,2],["knockout-icon",["medium-red","medium-red"],/^knockout[-.](?:\d+\.){3}(?:debug\.)?[cm]?js$/i,2],["kubernetes-icon",["medium-blue","medium-blue"],/^kubernetes.*\.ya?ml$|(?:^|\.)kazelcfg\.json$/i,2,/^kazel$/],["leaflet-icon",["medium-green","medium-green"],/^leaflet\.(?:draw-src|draw|spin|coordinates-(?:\d+\.)\d+\.\d+\.src)\.(?:[cm]?js|css)$|^wicket-leaflet\.[cm]?js$/i,2],["lefthook-icon",["medium-red","medium-red"],/^lefthook(?:-local)?\.ya?ml$/i,2],["lein-icon",[null,null],/project\.clj$/i,2],["lerna-icon",["medium-blue","dark-blue"],/^lerna\.json$/i,2],["lgtm-icon",["dark-purple","dark-purple"],/^\.?lgtm\.ya?ml$/i,2],["lighthouse-icon",["dark-blue","dark-blue"],/^\.?lighthouserc\.(?:json|js|ya?ml)$/i,2,/^lhci$/],["checklist-icon",["medium-green","medium-green"],/^mk\.config$/,2],["sourcemap-icon",["medium-blue","medium-blue"],/\.css\.map$/i,2],["sourcemap-icon",["medium-yellow","dark-yellow"],/\.js\.map$/i,2],["sourcemap-icon",["medium-green","dark-green"],/\.cjs\.map$/i,2],["sourcemap-icon",["medium-blue","dark-blue"],/\.mjs\.map$/i,2],["sourcemap-icon",["medium-orange","medium-orange"],/\.cidmap$/i,2,/^cidmap$/,/\.cidmap$/i,/^Map$|^cidmap$/i],["markdownlint-icon",["dark-green","dark-green"],/^\.markdownlint/i,2,/^mdl$/],["marko-icon",["medium-blue","medium-blue"],/\.marko$/i,2,/^marko$/,/\.marko$/i,/^mark[0o]$/i],["marko-icon",["medium-maroon","medium-maroon"],/\.marko\.[cm]?js$/i,2],["materialize-icon",["light-red","light-red"],/^materialize(?:\.min)?\.(?:[cm]?js|css)$/i,2],["mathjax-icon",["dark-green","dark-green"],/^MathJax[^.]*\.[cm]?js$/i,2],["meson-icon",["medium-green","medium-green"],/^(?:meson\.build|meson_options\.txt)$/i,2,,/\.meson$/i,/^Mes[0o]n$/i],["book-alt-icon",["medium-blue","medium-blue"],/^\.?mkdocs\.ya?ml$/i,2],["mocha-icon",["medium-maroon","medium-maroon"],/\.mocharc\.(?:jsonc?|[cm]?js|ya?ml)$|^mocha(?:\.min)?\.(?:[jt]sx?|es6?|coffee)$/i,2],["mocha-icon",["medium-red","medium-red"],/^mocha(?:\.min)?\.(?:s?css|less|styl)$/i,2],["mocha-icon",["light-maroon","light-maroon"],/mocha\.opts$/i,2],["modernizr-icon",["medium-red","medium-red"],/^\.?modernizr(?:rc)?\.[cm]?js$|^modernizr(?:[-\.]custom|-\d\.\d+)(?:\.\d+)?\.[cm]?js$/i,2],["moleculer-icon",["medium-blue","medium-blue"],/^moleculer\.config\.(?:[cm]?js|json|ts)$/i,2],["moment-icon",["medium-cyan","medium-cyan"],/^moment(?:-with-locales)?(?:\.min)?\.[cm]?js$/i,2],["moment-tz-icon",["dark-blue","dark-blue"],/^moment-timezone(?:-with-data)?(?:-\d{4}-\d{4})?(?:\.min)?\.[cm]?js$/i,2],["mootools-icon",["medium-purple","medium-purple"],/^mootools[^.]*\d+\.\d+(?:.\d+)?[^.]*\.[cm]?js$/i,2],["nanoc-icon",["medium-red","medium-red"],/^\.?nanoc\.ya?ml$/i,2],["neko-icon",["dark-orange","dark-orange"],/^run\.n$/,2],["nestjs-icon",["medium-red","medium-red"],/^nestconfig\.json$/i,2],["netlify-icon",["dark-blue","dark-blue"],/^netlify\.toml$/i,2],["newrelic-icon",["medium-cyan","medium-cyan"],/^newrelic\.yml/i,2],["nextflow-icon",["dark-green","dark-green"],/^nextflow\.config$/i,2],["nextjs-icon",["dark-grey","dark-grey"],/^next\.config\.[cm]?js$/i,2],["nginx-icon",["dark-green","dark-green"],/^nginx(?:\.[-\w]+)*\.conf$/i,2],["nginx-icon",["medium-green","medium-green"],/\.nginxconf$/i,2,,/\.nginx$/i,/^Nginx$|^nginx[\W_ \t]?c[0o]nfigurati[0o]n[\W_ \t]?file$/i],["nightwatch-icon",["dark-maroon","dark-maroon"],/^nightwatch\.conf(?:ig)?\.[cm]?js$/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(?:\.min)?\.(?:css|less|scss|styl)$/i,2],["npm-icon",["medium-red","medium-red"],/^(?:package\.json|\.npmignore|\.?npmrc|npm-debug\.log|npm-shrinkwrap\.json|package-lock\.json)$/i,2,,/\.ini\.npmrc\b/,/^Npm$/i],["nsri-icon",["medium-green","medium-green"],/^\.nsrirc(?:\.(?:json|(?:config\.)?[cm]?js|ya?ml))?$/i,2],["nsri-icon",["dark-green","dark-green"],/^\.nsriignore(?:\.(?:json|(?:config\.)?[cm]?js|ya?ml))?$/i,2],["nsri-alt-icon",["medium-green","medium-green"],/\.integrity\.json$/i,2],["nuxt-icon",["medium-cyan","medium-cyan"],/^nuxt\.config\.[jt]s$/i,2],["nx-icon",["dark-blue","dark-blue"],/^nx\.json$/i,2],["package-icon",["light-orange","light-orange"],/Cargo\.toml$/i,2],["package-icon",["dark-orange","dark-orange"],/Cargo\.lock$/i,2],["package-icon",["medium-green","medium-green"],/\.packages$/i,2],["package-icon",["medium-blue","medium-blue"],/^pubspec\.lock$/i,2],["package-icon",["medium-yellow","medium-yellow"],/^pubspec\.ya?ml$/i,2],["package-icon",["medium-blue","medium-blue"],/^paket\.(?:dependencies|lock|references|local|template)$/i,2,,/\.paket$/i,/^Paket$/i],["patreon-icon",["medium-orange","medium-orange"],/^PATR(?:ONS|EON)\.md$/,2],["phpunit-icon",["medium-purple","medium-purple"],/^phpunit\.xml$/i,2],["phraseapp-icon",["medium-blue","medium-blue"],/^\.phraseapp\.ya?ml$/i,2],["platformio-icon",["medium-orange","medium-orange"],/^platformio\.ini$/i,2],["pm2-icon",["medium-blue","medium-blue"],/^ecosystem.conf(?:ig)?./i,2],["pnpm-icon",["medium-orange","medium-orange"],/^pnpm-(?:lock|workspace)\.ya?ml$/i,2],["pnpm-icon",["medium-yellow","dark-yellow"],/^pnpmfile\.js$/i,2],["polymer-icon",["medium-purple","medium-purple"],/^polymer\.json$/i,2],["postcss-icon",["medium-orange","dark-orange"],/\.postcssrc(?:\.(?:[cm]?js|json|ya?ml))?$/i,2],["postcss-icon",["medium-yellow","dark-yellow"],/\bpostcss\.config\.[cm]?js$/i,2],["precommit-icon",["medium-yellow","dark-yellow"],/^\.pre-commit\b.*\.ya?ml$/i,2],["prettier-icon",["medium-cyan","dark-cyan"],/\.prettierrc(?:\.(?:[cm]?js|json|ya?ml))?$|^prettier\.config\.[cm]?js$/i,2],["prettier-icon",["dark-yellow","dark-yellow"],/\.prettierignore$/i,2],["proselint-icon",["dark-cyan","dark-cyan"],/\.proselintrc$/i,2],["protractor-icon",["medium-red","medium-red"],/^protractor\.(?:conf|config)\./i,2],["pug-icon",["medium-orange","medium-orange"],/^\.pug-lintrc/i,2],["pullapprove-icon",["dark-blue","dark-blue"],/^\.?pullapprove\.ya?ml$/i,2],["pypi-icon",["dark-blue","dark-blue"],/^requirements\.in$/i,2],["pyup-icon",["dark-cyan","dark-cyan"],/^\.pyup(?:\.ya?ml)?$/i,2],["quasar-icon",["medium-blue","medium-blue"],/^quasar\.conf\.[cm]?js$/i,2],["raphael-icon",["medium-orange","medium-orange"],/^raphael(?:\.min|\.no-deps)*\.[cm]?js$/i,2],["razzle-icon",["dark-blue","dark-blue"],/^razzle\.config\./i,2],["react-icon",["dark-blue","dark-blue"],/^react(?:-[^.]*)?\.[cm]?js$/i,2],["react-icon",["medium-blue","dark-blue"],/\.react\.[cm]?js$/i,2],["book-icon",["medium-blue","medium-blue"],/^README(?:\b|_)|^(?:(?:un)?licen[sc]es?(?:\.mysql)?|(?:read|readme|click|delete|keep|test)\.me)(?:\.(?:md|txt))?$|\.(?:readme|1st|licen[sc]es?)$/i,2],["book-icon",["dark-blue","dark-blue"],/^(?:notice|bugs|changes|change[-_]?log(?:[-._]?\d+)?|contribute|contributing|contributors|copy(?:ing|right)(?:\.regex)?|faq|fixes|hacking|history|install|maintainers|manifest|more\.stuff|notes|problems|projects|revision|terms|thanks|warnings)(?:_\w+)?$/i,2],["book-icon",["medium-blue","medium-blue"],/^zork\d\.doc$/,2],["remark-icon",["medium-yellow","medium-yellow"],/^\.rehyperc(?:\.(?:[cm]?js|json|ya?ml))?$/i,2],["remark-icon",["medium-red","medium-red"],/^\.remarkrc(?:\.(?:[cm]?js|json|ya?ml))?$/i,2],["remark-icon",["medium-green","medium-green"],/^\.retextrc(?:\.(?:[cm]?js|json|ya?ml))?$/i,2],["remark-icon",["dark-yellow","dark-yellow"],/\.rehypeignore$/i,2],["remark-icon",["dark-red","dark-red"],/\.remarkignore$/i,2],["remark-icon",["dark-green","dark-green"],/\.retextignore$/i,2],["renovate-icon",["medium-cyan","medium-cyan"],/(?!^renovate$)(?:\.|^)renovate(?:rc)?(?:\.json)?$/i,2],["requirejs-icon",["medium-blue","medium-blue"],/^require(?:[-.]min|dev)?\.[cm]?js$/i,2],["clojure-icon",["medium-maroon","dark-maroon"],/^riemann\.config$/i,2],["robots-icon",["dark-cyan","dark-cyan"],/^robots\.txt$/i,2],["manpage-icon",["dark-green","dark-green"],/^tmac\.|^(?:mmn|mmt|toc\.entries)$/i,2],["rollup-icon",["medium-red","medium-red"],/^rollup\.config\./i,2],["rubocop-icon",["dark-red","dark-red"],/^\.rubocop(?:_todo)?\.ya?ml$/i,2],["sass-icon",["medium-yellow","dark-yellow"],/^\.sassrc(?:\.[cm]?js)?$/i,2],["scrutinizer-icon",["dark-blue","dark-blue"],/\.scrutinizer\.yml$/i,2],["semrelease-icon",["medium-grey","medium-grey"],/^\.releaserc(?:\.(?:ya?ml|[cm]?js|json))?$/i,2],["sencha-icon",["light-green","light-green"],/^sencha(?:\.min)?\.[cm]?js$/i,2],["sequelize-icon",["medium-blue","dark-blue"],/\.sequelizerc(?:\.[cm]?js|\.json)?$/i,2],["serverless-icon",["medium-red","medium-red"],/(?:^|\.)serverless\.ya?ml$/i,2],["shadowcljs-icon",["medium-cyan","dark-cyan"],/^shadow-cljs\.edn$/i,2],["shipit-icon",["medium-orange","medium-orange"],/^shipitfile(?:\b.+)?\.[cm]?js$/i,2],["shippable-icon",["medium-cyan","medium-cyan"],/^shippable\.ya?ml$/i,2],["snapsvg-icon",["medium-cyan","medium-cyan"],/^snap\.svg(?:[-.]min)?\.[cm]?js$/i,2],["snapcraft-icon",["dark-cyan","dark-cyan"],/^snapcraft\.ya?ml$/i,2],["solidarity-icon",["dark-red","dark-red"],/^\.solidarity(?:\.json)?$/i,2],["stdlibjs-icon",["medium-orange","medium-orange"],/^stdlib(?:-.+)?\.[cm]?js$/i,2],["stdlibjs-icon",["medium-blue","medium-blue"],/^stdlib(?:-.+)?\.[cm]?js\.gz$/i,2],["storybook-icon",["medium-orange","medium-orange"],/\.(?:story|stories)\.(?:[cm]?js|jsx)$/i,2],["storybook-icon",["medium-blue","medium-blue"],/\.(?:story|stories)\.tsx?$/i,2],["stylable-icon",["medium-green","medium-green"],/\.st\.css$/i,2],["nailpolish-icon",["medium-yellow","medium-yellow"],/\.sc\.js$/i,2,,/^styled$/,/^Styled[\W_ \t]?C[0o]mp[0o]nent$/i],["nailpolish-icon",["medium-blue","dark-blue"],/\.sc\.jsx$|\.sc\.mjs$/i,2],["nailpolish-icon",["medium-green","dark-green"],/\.sc\.cjs$/i,2],["nailpolish-icon",["medium-blue","medium-blue"],/\.sc\.ts$/i,2],["nailpolish-icon",["light-blue","light-blue"],/\.sc\.tsx$/i,2],["stylelint-icon",["medium-purple","medium-purple"],/^\.stylelintrc(?:\.|$)/i,2],["stylelint-icon",["medium-yellow","dark-yellow"],/^stylelint\.config\.[cm]?js$/i,2],["stylelint-icon",["dark-blue","dark-blue"],/\.stylelint(?:ignore|cache)$/i,2],["stylishhaskell-icon",["medium-purple","medium-purple"],/^\.stylish-haskell\.ya?ml$/i,2],["swagger-icon",["medium-green","medium-green"],/^(?:openapi|swagger)\.(?:json|yaml|yml)$/i,2],["toc-icon",["medium-cyan","dark-cyan"],/\.toc$/i,2,,/\.toc$/i,/^Table[\W_ \t]?[0o]f[\W_ \t]?C[0o]ntents$/i],["tag-icon",["medium-green","medium-green"],/^\.atom-socket-.+\.\d$/,2],["tailwind-icon",["medium-cyan","medium-cyan"],/^\.?tailwind(?:\.config)?\.(?:[cm]?js|ts|coffee)$/i,2],["terraform-icon",["medium-yellow","medium-yellow"],/\.tf\.json$/i,2],["terser-icon",["medium-orange","medium-orange"],/^\.(?:terser|uglify)rc(?:\.\w+)?$/i,2],["test-ruby-icon",["medium-red","dark-red"],/[._-](?:spec|test)s?\.(?:rb|ruby)$/i,2],["test-ruby-icon",["medium-red","dark-red"],/([\\\x2F])(t|tests?|specs?)\1+(?:(?!\1).)*\.(rb|ruby)$/,2],["testcafe-icon",["medium-blue","medium-blue"],/^\.testcaferc\.json$/i,2],["tex-icon",["medium-red","dark-red"],/^hyphen(?:ex)?\.(?:cs|den|det|fr|sv|us)$/,2],["calc-icon",["medium-maroon","medium-maroon"],/\.8x[pk](?:\.txt)?$/i,2],["tmux-icon",["medium-green","medium-green"],/(?:\.|_|^)tmux\.conf$/i,2,,/\.tmux$/i,/^tmux$/i],["travis-icon",["medium-red","medium-red"],/^\.travis/i,2],["truffle-icon",["medium-maroon","dark-maroon"],/^\.?truffle\.[cm]?js$/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)?\.[cm]?js$/i,2],["unibeautify-icon",["dark-cyan","dark-cyan"],/\.unibeautifyrc$/i,2],["unibeautify-icon",["medium-orange","dark-orange"],/^unibeautify\.config\.[cm]?js$|\.unibeautifyrc\.(?:[cm]?js|json)$/i,2],["unibeautify-icon",["medium-yellow","dark-yellow"],/\.unibeautifyrc\.ya?ml$/i,2],["unicode-icon",["medium-red","medium-red"],/^(?:ArabicShaping|Bidi(?:Brackets|CharacterTest|Mirroring|Test)|Blocks|CJKRadicals|CaseFolding|CompositionExclusions|Derived(?:Age|CoreProperties|NormalizationProps)|EastAsianWidth|EmojiSources|EquivalentUnifiedIdeograph|HangulSyllableType|Index|Indic(?:Positional|Syllabic)Category|Jamo|LineBreak|NameAliases|NamedSequences(?:Prov)?|NamesList|Normalization(?:Corrections|Test)|NushuSources|PropList|Property(?:Value)?Aliases|Script(?:Extension)?s|SpecialCasing|StandardizedVariants|TangutSources|U(?:nicode|Source)Data|VerticalOrientation)\.txt$/,2,,/\.unidata$/i,/^Unic[0o]de$/i],["unicode-icon",["medium-red","medium-red"],/([\\\/])(UNIDATA|UCD)\1[^\\\/]+\.txt$/i,2],["v8-icon",["dark-blue","dark-blue"],/^\.c8rc(?:\.json)?$/i,2,/^c8$/],["zeit-icon",["medium-grey","dark-grey"],/^(?:vercel|now)\.json$/i,2],["vs-icon",["dark-purple","dark-purple"],/\.vcx?proj(?:\.[-\w]+)*$/i,2],["vs-icon",["dark-green","dark-green"],/\.vssettings(?:\.json)?$/i,2],["vs-icon",["medium-blue","medium-blue"],/\.vscodeignore(?:\.json)?$/i,2],["vsts-icon",["medium-blue","medium-blue"],/^\.vsts-ci\.ya?ml$/i,2],["vue-icon",["light-green","light-green"],/^vue\.config\.[cm]?js$/i,2],["wallaby-icon",["medium-green","medium-green"],/^\.wallaby\.[cm]?js$/i,2],["watchman-icon",["medium-blue","medium-blue"],/\.watchmanconfig$|^watchman\.json$/i,2],["webpack-icon",["medium-blue","medium-blue"],/(?:^|\.)webpack(?:file)?(?=\.|$).*\.(?:[jt]sx?|[cm]js|json|(?:lit)?coffee)$/i,2],["wercker-icon",["medium-purple","medium-purple"],/^wercker\.ya?ml$/i,2],["workbox-icon",["medium-orange","medium-orange"],/^workbox-config\.[cm]?js$/i,2],["xmake-icon",["medium-green","medium-green"],/^xmake\.lua$/i,2],["yaml-icon",["medium-orange","medium-orange"],/\.ya?ml\.mysql$/i,2],["yaml-icon",["dark-green","dark-green"],/\.ya?ml\.sed$/i,2],["yandex-icon",["medium-red","medium-red"],/^\.yaspellerrc(?:$|\.)|^\.yaspeller\.json$/i,2],["yarn-icon",["medium-blue","medium-blue"],/^yarn\.lock$|\.yarn-metadata(?:\.json)?$/i,2],["yeoman-icon",["medium-cyan","medium-cyan"],/\.yo-rc\.json$/i,2],["yui-icon",["dark-blue","dark-blue"],/^(?:yahoo-|yui)[^.]*\.[cm]?js$/i,2],["crafttweaker-icon",["medium-orange","dark-orange"],/^\.zsrc\.json$/i,2],["acre-icon",["medium-blue","medium-blue"],/^acre\.config$/i,1.5],["animestudio-icon",["medium-orange","medium-orange"],/\.animeproj$/i,1.5],["config-icon",["medium-green","medium-green"],/^settings\.bsp$/i,1.5],["config-icon",["dark-green","dark-green"],/\/(?:dev[-\w]+|troff)\/(?:[^\/]+\/)*(?:DESC|Foundry|download|symbolmap)(?:\.(?:in|proto|8400))?$/i,1.5,,/^source\.ditroff\.desc$/],["config-icon",["dark-blue","dark-blue"],/(?:^|[\/\\])\.ssh[\/\\]config$/,1.5],["config-coffee-icon",["medium-maroon","medium-maroon"],/^coffeelint\.json$/i,1.5],["config-hs-icon",["medium-purple","dark-purple"],/^haskellconfig\.json$/i,1.5],["config-js-icon",["medium-yellow","dark-yellow"],/^(?:jsconfig(?:\..+)?|\.?eshost(?:-config)?)\.json$/i,1.5],["config-perl-icon",["medium-blue","medium-blue"],/^perl[56]?-?config\.json$/i,1.5],["config-python-icon",["dark-blue","dark-blue"],/^python-?config\.json$|^pyproject\.toml$/i,1.5],["config-react-icon",["medium-blue","dark-blue"],/^jsxconfig\.json$/i,1.5],["config-ruby-icon",["medium-red","dark-red"],/^rubyconfig\.json$/i,1.5],["config-rust-icon",["medium-maroon","medium-maroon"],/^rustconfig\.json$/i,1.5],["config-ts-icon",["medium-blue","dark-blue"],/^tsconfig(?:\..+)?\.json$/i,1.5],["config-ts-icon",["medium-purple","dark-purple"],/^tslint\.json$/i,1.5],["database-icon",["dark-red","dark-red"],/^\.icondb\.js$/,1.5],["eclipse-lang-icon",["medium-blue","medium-blue"],/\.ecl(?:\.txt)?$/i,1.5,,/\.eclipse$/i,/^Ecli[\W_ \t]?Pse$/i],["emacs-icon",["medium-purple","medium-purple"],/(?:^|\.)(?:el|_?emacs|emacs\.desktop|abbrev[-_]defs)$/i,1.5,/^(?:x?emacs)$/,/\.emacs\.lisp$/i,/^Emacs[\W_ \t]?Lisp$|^elisp$/i],["emacs-icon",["dark-purple","dark-purple"],/(?:^|\.)(?:elc|eld)$/i,1.5],["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],["flask-icon",["dark-blue","dark-blue"],/^flask(?:[-_.].*)\.py$/i,1.5],["hygen-icon",["medium-pink","medium-pink"],/\.ejs\.t$/i,1.5],["lime-icon",["medium-green","medium-green"],/\.hxp$/i,1.5],["moho-icon",["medium-orange","medium-orange"],/\.mohoproj$/i,1.5],["pros-icon",["medium-orange","medium-orange"],/^project\.pros$/i,1.5],["qt-icon",["medium-yellow","dark-yellow"],/^(?:toolchain_)?installscript\.qs$/i,1.5],["test-coffee-icon",["medium-maroon","dark-maroon"],/[._-](?:spec|test)s?\.(?:(?:lit)?coffee|iced|cjsx)$/i,1.5],["test-generic-icon",["medium-green","medium-green"],/([\\\/])t\1t?\d+(?:(?!\1).)+\.sh$|[._-](spec|test)s?\.sh$/i,1.5],["test-go-icon",["medium-cyan","dark-cyan"],/[._-](?:spec|test)s?\.go$/i,1.5],["test-hs-icon",["medium-purple","dark-purple"],/[._-](?:spec|test)s?\.(?:hsc?|c2hs|lhs)$/i,1.5],["test-js-icon",["medium-yellow","dark-yellow"],/[._-](?:spec|test)s?\.(?:[_s]?js|js[bms]|es\d*)$|([\\\/])(?:(spec|test)s?|t)\1(?:\d+[-.])+(?!-)[^.\\\/]+\.js$/i,1.5],["test-js-icon",["medium-blue","dark-blue"],/[._-](?:spec|test)s?\.mjs$|([\\\/])(?:(spec|test)s?|t)\1(?:\d+[-.])+(?!-)[^.\\\/]+\.mjs$/i,1.5],["test-js-icon",["medium-green","dark-green"],/[._-](?:spec|test)s?\.cjs$|([\\\/])(?:(spec|test)s?|t)\1(?:\d+[-.])+(?!-)[^.\\\/]+\.cjs$/i,1.5],["test-perl-icon",["medium-blue","dark-blue"],/([\\\x2F])t\1(?:(?!\1).)+\.t$|([\\\x2F])(test|spec)s?(\1((?!\1).)+)*\1((?!\1).)+[._-](spec|test)s?\.p(er)?l$/i,1.5],["test-python-icon",["dark-blue","dark-blue"],/[._-](?:spec|test)s?\.py(?:3|thon)?|([\\\x2F])(test|spec)s?(\1((?!\1).)+)*\1(((?!\1).)+[._-](?:spec|test)s?|(?:spec|test)s?[._-].+)\.py(3|thon)?$/i,1.5],["test-react-icon",["medium-blue","dark-blue"],/[._-](?:spec|test)s?\.(?:jsx|react\.[cm]?js)$/,1.5],["test-react-icon",["medium-blue","dark-blue"],/([\\\/])(spec|test)s?\1(?:\d+[-.])+(?!-)[^.\\\/]+\.(jsx|react\.[cm]?js)$/i,1.5],["test-rust-icon",["medium-maroon","dark-maroon"],/[._-](?:spec|test)s?\.rs$/i,1.5],["test-ts-icon",["medium-blue","dark-blue"],/[._-](?:spec|test)s?\.ts$|([\\\/])(spec|test)s?\1(?:\d+[-.])+(?!-)[^.\\\/]+\.ts$/i,1.5],["test-ts-icon",["light-blue","medium-blue"],/[._-](?:spec|test)s?\.tsx$|([\\\/])(spec|test)s?\1(?:\d+[-.])+(?!-)[^.\\\/]+\.tsx$/i,1.5],["scales-icon",["medium-green","dark-green"],/^units\.lib$/i,1.5],["asm-zilog-icon",["medium-blue","medium-blue"],/\.PLX(?:COPY)?$/,1.25,,/\.zvm(?:asm|plx|plxedl)(?:\.|$)/,/^Assembly,[\W_ \t]?Zil[0o]g$|^z\/?(?:OS|VM)\s*(?:Assembl(?:y|er)|PL\/?X(?:\s*EDL)?)$/i],["bazel-icon",["medium-cyan","medium-cyan"],/^\.gazelcfg\.json$/i,1.25],["_1c-icon",["medium-red","medium-red"],/\.bsl$/i,,,/\.bsl$/i,/^1[\W_ \t]?C$|^1[\W_ \t]?C[\W_ \t]?Enterprise$/i],["_1c-icon",["dark-orange","dark-orange"],/\.sdbl$/i,,,/\.sdbl$/i,/^1[\W_ \t]?C$|^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],["_4d-icon",["dark-blue","dark-blue"],/\.4dm$/i,,,/\.4dm$/i,/^4[\W_ \t]?D$/i],["a-plus-icon",["medium-blue","medium-blue"],/\.a?\+$/i,,/^a\+$/],["abap-icon",["medium-orange","medium-orange"],/\.abap$/i,,,/\.abp$/i,/^Abap$/i],["abif-icon",["medium-blue","medium-blue"],/\.abif$/i],["abif-icon",["medium-green","medium-green"],/\.ab1$/i],["abif-icon",["medium-red","medium-red"],/\.fsa$/i],["as-icon",["medium-blue","medium-blue"],/\.swf$/i],["as-icon",["medium-red","medium-red"],/\.as$/i,,,/\.(?:flex-config|actionscript(?:\.\d+)?)$/i,/^Acti[0o]n[\W_ \t]?Script$|^(?: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,,,/\.ada$/i,/^Ada$|^(?:ada95|ada2005)$/i],["ae-icon",["dark-pink","dark-pink"],/\.aep$/i],["ae-icon",["dark-purple","dark-purple"],/\.aet$/i],["animate-icon",["dark-orange","medium-red"],/\.fla$/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$/i],["indesign-icon",["dark-blue","dark-blue"],/\.indb$/i],["psd-icon",["medium-blue","medium-blue"],/\.psd$/i],["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],["totvs-icon",["medium-maroon","medium-maroon"],/\.prw$/i,,/^advpl$/,/\.advpl$/i,/^advpl$/i],["totvs-icon",["medium-green","medium-green"],/\.ahu$/i],["totvs-icon",["dark-green","dark-green"],/\.aph$/i],["totvs-icon",["dark-blue","dark-blue"],/\.tlpp$/i],["affectscript-icon",["medium-pink","medium-pink"],/\.affect$/i,,,/\.affect$/i,/^Affect[\W_ \t]?Script$/i],["affinity-icon",["medium-blue","medium-blue"],/\.afdesign$/i],["affinity-icon",["medium-pink","medium-pink"],/\.afphoto$/i],["affinity-icon",["medium-red","medium-red"],/\.afpub$/i],["agda-icon",["dark-cyan","dark-cyan"],/\.agda$/i,,/^agda$/,/\.agda$/i,/^agda$/i],["agda-icon",["medium-cyan","medium-cyan"],/\.lagda$/i],["alex-icon",["medium-pink","dark-pink"],/\.alexrc$/i],["alex-icon",["medium-red","dark-red"],/\.alexignore$/i],["alloy-icon",["medium-red","medium-red"],/\.als$/i,,,/\.alloy$/i,/^All[0o]y$/i],["alpine-icon",["dark-blue","dark-blue"],/(?:\.|^)APKBUILD$/],["ampl-icon",["dark-maroon","dark-maroon"],/\.ampl$/i,,,/\.ampl$/i,/^Ampl$/i],["amusewiki-icon",["dark-red","dark-red"],/\.muse$/i,,,/\.muse$/i,/^Amuse[\W_ \t]?Wiki$|^Muse$/i],["analytica-icon",["medium-orange","medium-orange"],/\.ana$/i],["android-icon",["medium-green","medium-green"],/\.smali$/i],["android-icon",["dark-maroon","dark-maroon"],/\.rsh$/i],["angelscript-icon",["medium-blue","dark-blue"],/\.(?:acs|angelscript)$/i,,,/^source\.angelscript$/,/^Angel[\W_ \t]?Script$|^Angel[\W_ \t]?C[0o]de$/i],["sun-icon",["medium-yellow","dark-yellow"],/\.ansiweatherrc$/i],["antlr-icon",["medium-red","medium-red"],/\.g$/i,,/^antlr$/,/\.antlr$/i,/^antlr$/i],["antlr-icon",["medium-orange","medium-orange"],/\.g4$/i],["anyscript-icon",["dark-red","dark-red"],/\.any$/i,,,/(?:^|\.)any-?script(?:$|\.)/i,/^Any[\W_ \t]?Script$/i],["api-icon",["medium-blue","medium-blue"],/\.apib$/i,,,/\.apib$/i,/^Api[\W_ \t]?Blueprint$/i],["apl-icon",["dark-cyan","dark-cyan"],/\.apl[acfino]?$/i,,/^(?:gnu[-._]?)?aplx?$/i,/\.apl$/i,/^Apl$/i],["apl-icon",["medium-maroon","medium-maroon"],/\.apl\.history$/i],["apple-icon",["medium-purple","medium-purple"],/\.(?:applescript|scpt)$/i,,/^osascript$/,/\.applescript$/i,/^Apple$|^[0o]sascript$/i],["arc-icon",["medium-blue","medium-blue"],/\.arc$/i],["arduino-icon",["dark-cyan","dark-cyan"],/\.ino$/i,,,/\.arduino$/i,/^Arduin[0o]$/i],["asciidoctor-icon",["medium-blue","medium-blue"],/\.(?:ad|adoc|asc|asciidoc)$/i,,,/\.asciidoc$/i,/^Ascii[\W_ \t]?D[0o]c$/i],["asp-icon",["dark-blue","dark-blue"],/\.asp$/i,,,/\.asp$/i,/^[Aa][Ss][Pp].[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],["asm-icon",["medium-green","medium-green"],/\.a$|\.asm$/i,,,/(?:^|\.)(?:asm|assembly|lc-?3)(?:\.|$)/i,/^Assembly$|^asm$/i],["asm-icon",["medium-cyan","medium-cyan"],/\.i$/i],["asm-icon",["dark-green","dark-green"],/\.s$/i],["asm-icon",["medium-orange","medium-orange"],/\.a51$/i],["asm-agc-icon",["dark-blue","dark-blue"],/\.agc$/i,,,/\.source\.agc$/i,/^Assembly,[\W_ \t]?Agc$|^(?:Virtual\s*)?AGC$|^Apollo(?:[-_\s]*11)?\s*Guidance\s*Computer$/i],["asm-arm-icon",["medium-blue","medium-blue"],/\.arm$/i,,,/\.arm$/i,/^Assembly,[\W_ \t]?Arm$/i],["asm-avr-icon",["dark-purple","dark-purple"],/\.avr$/i,,,/(?:^|\.)avr(?:dis)?asm(?:\.|$)/i,/^Assembly,[\W_ \t]?Avr$/i],["asm-hitachi-icon",["medium-grey","medium-grey"],/\.h8(?:SX?|\d{3})?$/i],["asm-intel-icon",["dark-blue","dark-blue"],/\.(?:(?:x|i(?:a[-_]?))(?:32|86|64)(?:asm)?|i386|80386)$/i,,,/(?:^|\.)(?:(?:x|i(?:a[-_]?))(?:32|86|64)(?:asm)?|i386|80386)(?:\.|$)/i,/^Assembly,[\W_ \t]?Intel$|^(?:x86|x64|x86[-_]?64|i(?:a[-_]?)?(?:32|64)|i386|80386|Intel|Itanium|[ftm]asm)$/i],["asm-m68k-icon",["dark-red","dark-red"],/\.m68k$/i,,,/(?:^|\.)(?:m68k|dasm)(?:\.|$)/i,/^Assembly,[\W_ \t]?M[0o]t[0o]r[0o]la$|^(?:asm68(?:k|\d{2,3})?|m68k)$/i],["asm-m68k-icon",["medium-blue","medium-blue"],/\.lst$/i,,,/(?:^|\.)(?:lst-)?cpu[-_\s]?12(?:\.|$)/i,/^Assembly,[\W_ \t]?M[0o]t[0o]r[0o]la$|^lst[\W_ \t]?cpu12$/i],["asm-vax-icon",["medium-maroon","medium-maroon"],/\.v(?:ax|masm)$/i],["asm-zilog-icon",["medium-yellow","medium-yellow"],/\.z80$/i,,,/\.z80$/i,/^Assembly,[\W_ \t]?Zil[0o]g$/i],["asymptote-icon",["medium-red","medium-red"],/\.asy$/i,,/^asy$/,/\.asymptote$/i,/^Asympt[0o]te$/i],["atom-icon",["medium-green","medium-green"],/^\.?apmrc$/i],["ats-icon",["medium-red","medium-red"],/\.dats$/i,,,/\.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$|\.f4[ab]$/i],["audio-icon",["dark-yellow","dark-yellow"],/\.wav$/i],["audio-icon",["dark-cyan","dark-cyan"],/\.(?:aac|ac3|m4p)$/i],["audio-icon",["medium-purple","medium-purple"],/\.aif[fc]?$|\.mka$/i],["audio-icon",["medium-cyan","medium-cyan"],/\.au$|\.m4a$/i],["audio-icon",["dark-red","dark-red"],/\.flac$/i],["audio-icon",["medium-orange","medium-orange"],/\.it$/i],["audio-icon",["dark-green","dark-green"],/\.(?:mpc|mp\+)$/i],["audio-icon",["dark-orange","dark-orange"],/\.oga$/i],["audio-icon",["dark-maroon","dark-maroon"],/\.opus$/i],["audio-icon",["dark-blue","dark-blue"],/\.r[am]$/i],["audio-icon",["medium-green","medium-green"],/\.s3m$/i],["audio-icon",["medium-yellow","medium-yellow"],/\.sndh$/i],["audio-icon",["medium-blue","medium-blue"],/\.wma$/i],["augeas-icon",["dark-orange","dark-orange"],/\.aug$/i],["ahk-icon",["dark-blue","dark-blue"],/\.ahk$/i,,/^ahk$/,/\.ahk$/i,/^Aut[0o][\W_ \t]?H[0o]tkey$|^ahk$/i],["ahk-icon",["dark-purple","dark-purple"],/\.ahkl$/i],["autoit-icon",["medium-purple","medium-purple"],/\.au3$/i,,,/(?:^|\.)autoit(?:\.|$)/i,/^Aut[0o][\W_ \t]?It$|^(?:AutoIt3|AutoItScript|au3)$/i],["avro-icon",["medium-blue","medium-blue"],/\.av(?:cs|sc|dl)$/i,,,/(?:^|\.)avro(?:-idl)?(?:\.|$)/i,/^Avr[0o]$/i],["terminal-icon",["medium-blue","medium-blue"],/\.awk$/i,,/^awk$/,/\.awk$/i,/^awk$/i],["terminal-icon",["medium-red","medium-red"],/\.gawk$/i,,/^gawk$/,/\.gawk$/i,/^Awk$|^gawk$/i],["terminal-icon",["medium-maroon","medium-maroon"],/\.mawk$/i,,/^mawk$/,/\.mawk$/i,/^Awk$|^mawk$/i],["terminal-icon",["dark-green","dark-green"],/\.nawk$/i,,/^nawk$/,/\.nawk$/i,/^Awk$|^nawk$/i],["terminal-icon",["dark-cyan","dark-cyan"],/\.auk$/i],["babel-icon",["medium-yellow","medium-yellow"],/\.(?:babelrc|babelrc\.[cm]?js|languagebabel|babel)$|babel(?:\.[\w\-]+)*\.conf(?:ig)?\./i],["babel-icon",["dark-yellow","dark-yellow"],/\.babelignore$/i],["backup-icon",[null,null],/\.(?:bak|old|orig)$/],["ballerina-icon",["medium-cyan","medium-cyan"],/\.bal$/i,,/^ballerina$/,/\.ballerina$/i,/^ballerina$/i],["ballerina-icon",["dark-green","dark-green"],/\.balx$/i],["bazaar-icon",["medium-yellow","dark-yellow"],/\.bzrignore$/i],["bibtex-icon",["medium-red","dark-red"],/\.cbx$/i],["bibtex-icon",["medium-orange","dark-orange"],/\.bbx$/i],["bibtex-icon",["medium-yellow","dark-yellow"],/\.bib(?:tex)?$/i,,/^bibtex$/,/\.bibtex$/i,/^bibtex$/i],["bibtex-icon",["medium-green","dark-green"],/\.bst$/i],["biml-icon",["medium-red","medium-red"],/\.biml$/i,,,/\.biml$/i,/^Biml$/i],["binary-icon",["medium-red","medium-red"],/\.(?:[ls]?o|out)$|\.rpy[bc]$/i],["binary-icon",["dark-blue","dark-blue"],/\.axf$|\.d-objdump$|^\.rnd$/i],["binary-icon",["medium-green","medium-green"],/\.elf$/i],["binary-icon",["dark-red","dark-red"],/\.la$/i],["binary-icon",["dark-green","dark-green"],/\.ko$/i],["binary-icon",["dark-orange","dark-orange"],/\.(?:(?:c(?:[+px]{2}?)?-?)?objdump|bsdiff|bin|dat|pak|pdb)$/i],["binary-icon",["medium-orange","medium-orange"],/\.(?:gco?|gcode|[cdhk]nc)$/i,,/^g-code$/,/\.g-code$/i,/^Binary$|^g[\W_ \t]?c[0o]de$/i],["binary-icon",["dark-purple","dark-purple"],/\.py[cdo]$/i],["binary-icon",["medium-purple","medium-purple"],/\.prx$/i],["binary-icon",["medium-grey","medium-grey"],/\.puff$/i],["bison-icon",["medium-red","medium-red"],/\.bison$/i,,/^bison$/,/\.bison$/i,/^bis[0o]n$/i],["bison-icon",["dark-green","dark-green"],/\.y$/i],["bison-icon",["medium-green","medium-green"],/\.yacc$/i],["bison-icon",["medium-cyan","medium-cyan"],/\.yy$/i],["bithound-icon",["medium-red","medium-red"],/\.bithoundrc$/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,,,/\.bsv$/i,/^Bluespec$/i],["boo-icon",["medium-green","medium-green"],/\.boo$/i,,,/\.boo(?:\.unity)?$/i,/^B[0o][0o]$/i],["boot-icon",[null,null],/\.boot$/i],["bosque-icon",["medium-green","medium-green"],/\.bsq$/i,,,/\.source\.bsq$/i,/^B[0o]sque$/i],["brain-icon",["dark-pink","dark-pink"],/\.bf?$/i,,,/\.(?:bf|brainfuck)$/i,/^Brainfuck$|^(?:bf|Brainf\**ck)$/i],["bro-icon",["dark-cyan","dark-cyan"],/\.bro$/i,,,/\.bro$/i,/^Br[0o]$/i],["brotli-icon",["medium-orange","medium-orange"],/\.br$/i],["browserslist-icon",["medium-orange","medium-orange"],/^(?:browserslist|\.browserslistrc)$/i],["buck-icon",["medium-blue","medium-blue"],/\.buckconfig$/i],["buck-icon",["dark-blue","dark-blue"],/^BUCK$/],["bundler-icon",["medium-cyan","dark-cyan"],/\.gemfile$/i],["byond-icon",["medium-blue","medium-blue"],/\.dm$/i,,,/\.dm$/i,/^By[0o]nd$|^(?:DM|Dream\s*Maker(?:\s*Script)?)$/i],["c-icon",["medium-blue","medium-blue"],/\.c$/i,,/^tcc$/,/\.c$/i,/^C$/i],["c-icon",["medium-purple","medium-purple"],/\.h$|\.cats$/i],["c-icon",["medium-green","medium-green"],/\.idc$|\.xpm$/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],["c-icon",["medium-orange","medium-orange"],/\.xbm$/i],["c-icon",["medium-blue","medium-blue"],/(\\|\/)share(?:\1misc)?\1getopts?\d?$/],["csharp-icon",["medium-blue","dark-blue"],/\.cs$/i,,,/\.cs$/i,/^C#$|^c\s*sharp$/i],["csscript-icon",["dark-green","dark-green"],/\.csx$/i,,,/\.csx$/i,/^C#[\W_ \t]?Script$/i],["cpp-icon",["medium-blue","dark-blue"],/\.c[+px]{2}$|\.cc$/i,,,/\.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,,,/\.cabal$/i,/^Cabal$/i],["caffe-icon",["medium-maroon","medium-maroon"],/\.caffemodel$/i],["caffe-icon",["medium-green","medium-green"],/\.solverstate$/i],["cake-icon",["medium-yellow","medium-yellow"],/\.cake$/i,,,/\.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,,,/\.chapel$/i,/^Chapel$|^chpl$/i],["checklist-icon",["medium-yellow","medium-yellow"],/\.(?:todo|taskpaper)$/i],["cheetah3d-icon",["medium-yellow","dark-yellow"],/\.jas$/i],["chef-icon",["medium-orange","dark-orange"],/^chefignore$|^(?:Berks|Policy)file(?:\.lock)?$/i],["chrome-icon",["medium-red","medium-red"],/\.crx$/i],["chuck-icon",["medium-green","medium-green"],/\.ck$/i,,,/\.chuck$/i,/^Chuc[\W_ \t]?K$/i],["icon-circuit-board",["dark-green","dark-green"],/\.brd$|\.(?:cir|ckt|struct|tech)$/i,,/^ngspice$/,/\.spice$/i],["icon-circuit-board",["medium-red","medium-red"],/\.sch$|\.gbr$|\.gko$/i,,/^gerber$/,/\.gerber$/i],["icon-circuit-board",["medium-green","medium-green"],/\.pcb$|\.gm\d+$/i],["icon-circuit-board",["medium-blue","medium-blue"],/\.gtl$/i],["icon-circuit-board",["medium-cyan","medium-cyan"],/\.gbl$/i],["icon-circuit-board",["medium-orange","medium-orange"],/\.gbs$/i],["icon-circuit-board",["medium-maroon","medium-maroon"],/\.gto$/i],["icon-circuit-board",["dark-maroon","dark-maroon"],/\.gts$/i],["icon-circuit-board",["dark-orange","dark-orange"],/\.gtp$/i],["icon-circuit-board",["dark-blue","dark-blue"],/\.gbo$|\.drl$|\.net$/i],["icon-circuit-board",["dark-red","dark-red"],/\.gbp$|\.fab$/i],["icon-circuit-board",["dark-cyan","dark-cyan"],/\.dsn$|\.pho$/i],["icon-circuit-board",["medium-yellow","medium-yellow"],/\.gpt$/i],["icon-circuit-board",["dark-yellow","dark-yellow"],/\.gpb$/i],["cirru-icon",["medium-pink","dark-pink"],/\.cirru$/i,,,/\.cirru$/i,/^Cirru$/i],["clarion-icon",["medium-orange","medium-orange"],/\.clw$/i,,,/\.clarion$/i,/^Clari[0o]n$/i],["clean-icon",["dark-cyan","dark-cyan"],/\.icl$/i,,/^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,,,/\.click$/i,/^Click$|^Click!$/i],["clips-icon",["dark-green","dark-green"],/\.clp$/i,,,/\.clips$/i,/^Clips$/i],["clojure-icon",["medium-blue","dark-blue"],/\.clj$/i,,/^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(?:cm)?$/i],["closure-tpl-icon",["medium-blue","medium-blue"],/\.soy$/i,,,/^text\.html\.soy$/,/^Cl[0o]sure[\W_ \t]?Template$/i],["cloudfoundry-icon",["medium-blue","medium-blue"],/\.cfignore$/i],["cmake-icon",["medium-green","medium-green"],/\.cmake$/i,,/^cmake$/,/\.cmake$/i,/^cmake$/i],["cmake-icon",["medium-red","medium-red"],/^CMakeLists\.txt$/],["cobol-icon",["medium-blue","dark-blue"],/\.(?:cob|ccp|cbl|cobol|cpy)$/i,,,/\.cobol$/i,/^C[0o]b[0o]l$/i],["cocoapods-icon",["medium-red","medium-red"],/\.podspec$/i],["codekit-icon",[null,null],/(?:^config)?\.codekit\d*$/i],["coffee-icon",["medium-maroon","medium-maroon"],/\.coffee$/i,,/^coffee$/,/\.coffee$/i,/^C[0o]ffee[\W_ \t]?Script$|^Coffee(?:-Script)?$/i],["coffee-icon",["dark-maroon","dark-maroon"],/\.cjsx$/i],["coffee-icon",["light-maroon","light-maroon"],/\.litcoffee$/i,,/^litcoffee$/,/\.litcoffee$/i,/^C[0o]ffee[\W_ \t]?Script$|^litc[0o]ffee$/i],["coffee-icon",["medium-blue","medium-blue"],/\.iced$/i],["cf-icon",["light-cyan","light-cyan"],/\.cfc$/i,,,/\.cfscript$/i,/^C[0o]ld[\W_ \t]?Fusi[0o]n$|^(?:CFC|CFScript)$/i],["cf-icon",["medium-cyan","medium-cyan"],/\.cfml?$/i,,,/\.cfml?$/i,/^C[0o]ld[\W_ \t]?Fusi[0o]n$|^(?:cfml?|ColdFusion\s*HTML)$/i],["khronos-icon",["medium-orange","medium-orange"],/\.(?:dae|collada)$/i],["cl-icon",["medium-orange","medium-orange"],/\.cl$/i,,/^(?:c?lisp|sbcl|[ec]cl)$/,/\.common-lisp$/i,/^C[0o]mm[0o]n[\W_ \t]?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],["zip-icon",["medium-blue","medium-blue"],/\.rar$|\.iso$|\.wgt$|\.sit$/i],["zip-icon",["dark-blue","dark-blue"],/\.t?gz$|\.tar$|\.whl$/i],["zip-icon",["medium-maroon","medium-maroon"],/\.(?:lzo?|lzma|tlz|tar\.lzma)$|\.7z$/i],["zip-icon",["medium-red","medium-red"],/\.apk$|\.gem$/i],["zip-icon",["dark-cyan","dark-cyan"],/\.bz2$/i],["zip-icon",["medium-orange","medium-orange"],/\.maff$|\.xpi$/i],["zip-icon",["medium-cyan","medium-cyan"],/\.hqx$/i],["zip-icon",["medium-green","medium-green"],/\.epub$|\.dsk$/i],["zip-icon",["dark-pink","dark-pink"],/\.jar$/i],["zip-icon",["medium-purple","medium-purple"],/\.war$|\.ear$/i],["zip-icon",["dark-orange","dark-orange"],/\.xar$/i],["zip-icon",["light-orange","light-orange"],/\.egg$/i],["cdf-icon",["medium-red","medium-red"],/\.cdf$/i],["conda-icon",["medium-green","medium-green"],/^\.?condarc$/i],["config-icon",["medium-yellow","medium-yellow"],/\.(?:ini|desktop|directory|cfg|co?nf|prefs)$/i,,,/\.ini$/i,/^d[0o]sini$/i],["config-icon",["medium-purple","medium-purple"],/\.properties$/i,,,/\.java-properties$/i],["config-icon",["dark-red","dark-red"],/\.ld$/i],["config-icon",["medium-red","medium-red"],/\.lds$/i],["config-icon",["medium-green","medium-green"],/\.opts$|\.flc$/i,,,/^source\.figctrl$/i],["config-icon",["medium-blue","medium-blue"],/^mimeapps\.list$/i],["config-icon",["dark-blue","dark-blue"],/(?:\.|^)terminal(?:rc)?$/i],["config-icon",["medium-orange","medium-orange"],/^ld\.script$/i],["config-icon",["medium-cyan","medium-cyan"],/^\.?XCompose$/,,/^xcompose$/,/\.xcompose$/i,/^xc[0o]mp[0o]se$/i],["config-icon",["dark-red","dark-red"],/\.git[\/\\](?:config|info[\/\\]\w+)$/],["config-icon",["dark-cyan","dark-cyan"],/(^|[\/\\])\.fossil-settings\1(?:[^\/\/]+)/],["config-icon",["dark-orange","dark-orange"],/^\/(?:private\/)?etc\/(?:[^\/]+\/)*[^\/]*\.(?:cf|conf|ini)(?:\.default)?$/i],["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],["config-coffee-icon",["medium-red","medium-red"],/\.coffeelintignore$/i,,,/^source\.gitignore$/],["config-rust-icon",["dark-maroon","dark-maroon"],/^rust-toolchain$/i],["conll-icon",["medium-blue","medium-blue"],/\.conll$/i,,,/^text\.conllu$/,/^CoNLL(?:[-_\s]*[XU])?$/i],["conll-icon",["medium-orange","medium-orange"],/\.conllu$/i],["coq-icon",["medium-maroon","medium-maroon"],/\.coq$/i,,,/\.coq$/i,/^C[0o]q$/i],["corel-icon",["medium-blue","medium-blue"],/\.(?:cmx|ccx)$/i],["coreldraw-icon",["medium-green","medium-green"],/\.(?:cdrx?|cdt)$/i],["cpan-icon",["dark-blue","dark-blue"],/^cpanfile$/i],["cpan-icon",["medium-maroon","medium-maroon"],/^MANIFEST\.SKIP$/],["cpcdosc-icon",["medium-blue","medium-blue"],/\.cpc$/i,,,/\.cpc$/i,/^Cpcd[0o]s[\W_ \t]?C\+?$/i],["creole-icon",["medium-blue","medium-blue"],/\.creole$/i,,,/\.creole$/i,/^Cre[0o]le$/i],["crystal-icon",["medium-cyan","medium-cyan"],/\.e?cr$/i,,/^crystal$/,/\.crystal$/i,/^Crystal$/i],["csound-icon",["medium-maroon","medium-maroon"],/\.orc$/i,,,/\.csound$/i,/^Cs[0o]und$|^cs[0o]und[\W_ \t]?[0o]rc$/i],["csound-icon",["dark-orange","dark-orange"],/\.udo$/i],["csound-icon",["dark-maroon","dark-maroon"],/\.csd$/i,,,/\.csound-document$/i,/^Cs[0o]und$|^cs[0o]und[\W_ \t]?csd$/i],["csound-icon",["dark-blue","dark-blue"],/\.sco$/i,,,/\.csound-score$/i,/^Cs[0o]und$|^cs[0o]und[\W_ \t]?sc[0o]$/i],["css3-icon",["medium-blue","medium-blue"],/\.css$/i,,/^css$/,/\.css$/i,/^css$/i],["css3-icon",["dark-blue","dark-blue"],/\.less$/i,,/^less$/,/\.less$/i,/^Css$|^less$/i],["cucumber-icon",["medium-green","medium-green"],/\.feature$/i,,,/(?:^|\.)(?:gherkin\.feature|cucumber\.steps)(?:\.|$)/i,/^Cucumber$|^gherkin$/i],["nvidia-icon",["medium-green","medium-green"],/\.cu$/i,,,/\.cuda(?:-c\+\+)?$/i,/^Cuda$/i],["nvidia-icon",["dark-green","dark-green"],/\.cuh$/i],["cuneiform-icon",["dark-blue","dark-blue"],/\.cfl$/i,,/^cuneiform$/,/\.cfl$/i,/^Cuneif[0o]rm$/i],["curl-icon",["dark-blue","dark-blue"],/(?:^|\.)curlrc$|^_curlrc$/i,,,/\.curlrc$/i,/^c[\W_ \t]?Url$/i],["curry-icon",["medium-red","medium-red"],/\.curry$/i,,,/\.curry$/i,/^Curry$/i],["cvs-icon",["medium-orange","medium-orange"],/\.cvsignore$/i],["cwl-icon",["dark-red","dark-red"],/\.cwl$/i,,/^cwl-runner$/,/\.cwl$/i,/^Cwl$|^C[0o]mm[0o]n[\W_ \t]?W[0o]rkfl[0o]w[\W_ \t]?Language$/i],["cython-icon",["medium-orange","medium-orange"],/\.pyx$/i,,,/\.cython$/i,/^Cyth[0o]n$|^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,,,/\.d$/i,/^D$/i],["dafny-icon",["medium-yellow","medium-orange"],/\.(?:dfy|dafny)$/i,,/^dafny$/,/\.(?:dfy|dafny)(?:$|\.)/i,/^Dafny$/i],["yang-icon",["medium-red","medium-red"],/\.dnh$/i,,,/\.danmakufu$/i,/^Danmakufu$/i],["darcs-icon",["medium-green","medium-green"],/\.d(?:arcs)?patch$/i],["darcs-icon",["dark-green","dark-green"],/^\.boringignore$/i],["dart-icon",["medium-cyan","medium-cyan"],/\.dart$/i,,/^dart$/,/\.dart$/i,/^Dart$/i],["dashboard-icon",["medium-orange","medium-orange"],/\.s[kl]im$/i,,/^slim$/,/\.slim$/i,/^slim$/i],["dashboard-icon",["medium-green","medium-green"],/\.cpuprofile$/i],["dashboard-icon",["medium-blue","medium-blue"],/\.cloc$/i],["database-icon",["medium-red","medium-red"],/\.aff$|\.http$|\.pot?$|\.(?:irb-history|lesshst)$/i],["database-icon",["medium-maroon","medium-maroon"],/\.cson$|\.ston$|^(?:mime\.types|fstab)$/i],["database-icon",["medium-green","medium-green"],/\.dict?$|\.snip(?:pets?)?$/i,,,/\.(?:vim-snippet|snipmate|ultisnips|neosnippet|snippets?)(?:\.|$)/i],["database-icon",["medium-orange","medium-orange"],/\.hson$|\.ndjson$|\.dbi$|(?:^|\.)encodings\.dir$/i,,/^hson$/,/\.hson$/i,/^hs[0o]n$/i],["database-icon",["light-blue","light-blue"],/\.fea$/i,,,/\.opentype$/i,/^afdk[0o]$/i],["database-icon",["medium-purple","medium-purple"],/\.json\.eex$|\.edn$|^(?:magic\.mgc|figmagic)$/i],["database-icon",["medium-cyan","medium-cyan"],/\.cbor$|\.ttl$/i,,,/\.turtle$/i],["database-icon",["dark-cyan","dark-cyan"],/\.(?:proto|protote?xt|pbte?xt)$/i,,,/\.protobuf$/i,/^(?:protobuf|Protocol\s*Buffers?)(?:\s*text)?$/i],["database-icon",["medium-orange","medium-orange"],/\.pytb$/i,,,/\.python\.traceback$/i],["database-icon",["dark-blue","dark-blue"],/\.pydeps$/i],["database-icon",["dark-red","dark-red"],/\.ejson$|[\/\\](?:magic[\/\\]Magdir|file[\/\\]magic)[\/\\][-.\w]+$/i],["database-icon",["dark-purple","dark-purple"],/\.eam\.fs$/i],["database-icon",["dark-green","dark-green"],/\.son$|\.sy$/i,,/^son$/,/\.son$/i,/^s[0o]n$/i],["database-icon",["medium-blue","medium-blue"],/\.syntax$|\.webmanifest$|^pkginfo$/i],["database-icon",["medium-grey","medium-grey"],/\.(?:od|onlydata)$/i],["database-icon",["medium-green","medium-green"],/\.yas(?:nippet)?$/i,,,/^source\.yasnippet$/i,/(?:YA)?Snippet/i],["database-icon",["medium-red","medium-red"],/(\\|\/)share(?:\1misc)?\1(?:ascii|trace\.codes)$/],["database-icon",["dark-orange","dark-orange"],/\.(?:ldj|ldjson|jsonl)$/,,/^jsonl$/,/\.jsonl$/i,/^js[0o]nl$/i],["database-icon",["medium-green","medium-green"],/(\\|\/)dev[-\w]+\1(?:[^\\\/]+\1)*(?!DESC|NOTES)(?:[A-Z][-A-Z]*)(?:\.in)?$|\.ssh[\/\\](?:authorized_keys|known_hosts)$/],["dataweave-icon",["medium-blue","dark-blue"],/\.dwl$/i,,,/\.data-?weave/,/^Data[\W_ \t]?Weave$/i],["dbase-icon",["medium-red","medium-red"],/\.dbf$/i],["debian-icon",["medium-red","medium-red"],/\.deb$/i],["debian-icon",["dark-cyan","dark-cyan"],/(?:^|\.)(?:control|dsc)$/,,,/\.deb-control$/i,/^Debian$/i],["debian-icon",["medium-cyan","medium-cyan"],/^rules$/],["delphi-icon",["medium-red","medium-red"],/\.dfm$/i],["delphi-icon",["medium-blue","medium-blue"],/\.dof$/i],["delphi-icon",["medium-orange","medium-orange"],/\.dpr$/i],["devicetree-icon",["medium-purple","medium-purple"],/\.dts$/i,,,/\.dts$/i,/^Device[\W_ \t]?Tree$|^Device[\W_ \t]?Tree[\W_ \t]?S[0o]urce$/i],["devicetree-icon",["medium-orange","medium-orange"],/\.dtsi$/i],["dhall-icon",["dark-grey","dark-grey"],/\.dhall$/i,,,/\.\.dhall$/i,/^Dhall$/i],["dia-icon",["medium-cyan","dark-cyan"],/\.dia$/i],["diff-icon",["medium-orange","medium-orange"],/\.diff$/i,,,/\.diff$/i,/^Diff$|^udiff$/i],["digdag-icon",["medium-orange","medium-orange"],/\.dig$/i],["binary-icon",["dark-green","dark-green"],/\.dit(?:roff)?$/i,,,/\.source\.ditroff$/i,/^Ditr[0o]ff$/i],["earth-icon",["medium-blue","medium-blue"],/\.zone$/i],["earth-icon",["medium-green","medium-green"],/\.arpa$/i],["earth-icon",["dark-blue","dark-blue"],/^CNAME$/],["docbook-icon",["medium-cyan","medium-cyan"],/\.(?:dbk|docbook)$/i],["docpad-icon",["medium-maroon","medium-maroon"],/\.eco$/i,,,/\.eco$/i,/^D[0o]c[\W_ \t]?Pad$/i],["dosbox-icon",["medium-orange","medium-orange"],/^dosbox(?:\b|_).*(?:\.conf|pref\w*)$/i],["doxygen-icon",["medium-blue","medium-blue"],/^\.?Doxyfile$/i,,,/\.doxygen$/i,/^D[0o]xyfile$/i],["dyalog-icon",["medium-orange","medium-orange"],/\.dyalog$/i,,/^dyalog$/],["dyalog-icon",["medium-red","medium-red"],/\.dyapp$/i],["dyalog-icon",["dark-green","dark-green"],/\.mipage$/i],["dylib-icon",["medium-cyan","medium-cyan"],/\.(?:dylib|bundle)$/i],["icon-star",["dark-red","dark-red"],/\.dmark$/i],["e-icon",["medium-green","medium-green"],/\.E$/,,/^rune$/],["eagle-icon",["medium-red","medium-red"],/\.eup$/i,,,/\.eagle$/i,/^Eagle$/i],["easybuild-icon",["dark-blue","dark-blue"],/\.eb$/i],["ec-icon",["dark-blue","dark-blue"],/\.ec$/i,,/^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],["edge-icon",["dark-orange","dark-orange"],/\.edge$/i,,,/\.html.edge$/,/^Edge$/i],["editorconfig-icon",["medium-orange","medium-orange"],/\.editorconfig$/i,,,/\.editorconfig$/i,/^Edit[0o]r[\W_ \t]?C[0o]nfig$/i],["eiffel-icon",["medium-cyan","medium-cyan"],/\.e$/,,,/\.eiffel$/i,/^Eiffel$/i],["ejs-icon",["medium-green","medium-green"],/\.ejs$/i,,,/\.text\.html\.js$/i,/^Ejs$/i],["elixir-icon",["dark-purple","dark-purple"],/\.ex$/i,,/^elixir$/,/\.elixir$/i,/^elixir$/i],["elixir-icon",["medium-purple","medium-purple"],/\.(?:exs|l?eex)$/i],["elixir-icon",["light-purple","light-purple"],/^mix\.(?:exs?|lock)$/i],["elm-icon",["medium-blue","medium-blue"],/\.elm$/i,,,/\.elm$/i,/^Elm$/i],["at-icon",["medium-red","dark-red"],/^(?:authors|(?:code)?owners)$/i,,,/^text\.eml(?:$|\.)/,/^(?:EML|mbox|e?-?mail)$/i],["em-icon",["medium-red","medium-red"],/\.emberscript$/i,,,/\.ember(?:script)?$/i,/^Ember[\W_ \t]?Script$/i],["mustache-icon",["medium-blue","medium-blue"],/\.em(?:blem)?$/i,,,/\.emblem$/i,/^Emblem$/i],["ensime-icon",["medium-red","medium-red"],/\.ensime$/i],["eq-icon",["medium-orange","medium-orange"],/\.eq$/i,,,/\.eq$/i,/^Eq$/i],["erlang-icon",["medium-red","medium-red"],/\.erl$|^rebar(?:\.config)?\.lock$/i,,/^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],["erlang-icon",["dark-green","dark-green"],/^Emakefile$/],["factor-icon",["medium-orange","medium-orange"],/\.factor$/i,,,/\.factor$/i,/^Fact[0o]r$/i],["factor-icon",["dark-orange","dark-orange"],/\.factor-rc$/i],["factor-icon",["medium-red","medium-red"],/\.factor-boot-rc$/i],["falcon-icon",["medium-red","medium-red"],/\.fal(?:con)?$/i,,/^falcon$/,/\.falcon$/i,/^Falc[0o]n$/i],["fancy-icon",["dark-blue","dark-blue"],/\.fy$/i,,/^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,,,/\.fan(?:tom)?$/i,/^Fant[0o]m$/i],["dna-icon",["medium-purple","medium-purple"],/\.(?:fasta|fas?|seq|fsa)$/i,,/^fasta$/,/\.fasta$/i,/^fasta$/i],["dna-icon",["medium-green","medium-green"],/\.(?:fastq|fq)$/i,,/^fastq$/,/\.fastq$/i,/^Fasta$|^fastq$/i],["dna-icon",["medium-orange","medium-orange"],/\.(?:faa|mpfa)$/i],["dna-icon",["medium-pink","medium-pink"],/\.fna$/i],["dna-icon",["medium-red","medium-red"],/\.ffn$/i],["dna-icon",["medium-blue","medium-blue"],/\.frn$/i],["dna-icon",["dark-yellow","dark-yellow"],/\.sam$/i],["faust-icon",["dark-orange","dark-orange"],/\.dsp$/i,,,/\.faust$/i,/^Faust$/i],["fbx-icon",["medium-maroon","medium-maroon"],/\.fbx$/i],["fexl-icon",["medium-cyan","medium-cyan"],/\.fxl$/i,,/^fexl$/,/(?:^|\.)fe?xl(?:.|$)/i,/^Fexl$/i],["finaldraft-icon",["medium-green","medium-green"],/\.fdx$/i],["finder-icon",["medium-blue","medium-blue"],/^Icon\r$/],["finder-icon",["dark-blue","dark-blue"],/\.rsrc$/i],["firebase-icon",["medium-orange","medium-orange"],/^firestore\.rules?$|\.firebaserc$/i,,,/\bsource\.fire(?:store|rules)(?=\\.|$)/i,/^Firebase$|^firerules$/i],["firebase-bolt-icon",["medium-yellow","medium-yellow"],/\.bolt$/i,,,/\.bolt$/i,/^Firebase[\W_ \t]?B[0o]lt$/i],["firefox-icon",["medium-orange","medium-orange"],/\.webapp$/i],["floobits-icon",["medium-red","medium-red"],/\.flooignore$/i],["flow-icon",["medium-orange","medium-orange"],/\.(?:flowconfig|js\.flow|flow)$/i],["flutter-icon",["light-blue","light-blue"],/\.flutter-plugins$/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],["font-icon",["medium-blue","medium-blue"],/\.woff$/i],["font-icon",["light-green","light-green"],/\.eot$/i],["font-icon",["dark-green","dark-green"],/\.ttc$/i],["font-icon",["medium-green","medium-green"],/\.ttf$/i],["font-icon",["dark-yellow","dark-yellow"],/\.otf$/i],["font-icon",["dark-red","dark-red"],/\.pfb$/i],["font-icon",["medium-red","medium-red"],/\.pfm$/i],["font-bitmap-icon",["medium-cyan","medium-cyan"],/\.psfu?$/i],["font-bitmap-icon",["medium-orange","medium-orange"],/\.pcf$|\.tlf$/i],["font-bitmap-icon",["dark-blue","dark-blue"],/\.psftx$/i],["font-bitmap-icon",["medium-red","medium-red"],/\.bdf$|\.flf$/i,,,/^source\.figfont$/i],["font-bitmap-icon",["medium-blue","medium-blue"],/\.fnt$/i],["font-bitmap-icon",["dark-red","dark-red"],/\.fon$/i],["font-bitmap-icon",["dark-orange","dark-orange"],/\.snf$/i],["ff-icon",["medium-orange","medium-orange"],/\.(?:ff|pe)$/i,,/^fontforge$/,/\.source\.fontforge$/i,/^F[0o]nt[\W_ \t]?F[0o]rge$|^pfaedit$/i],["ff-icon",["dark-blue","dark-blue"],/\.sfd$/i,,,/\.text\.sfd$/i,/^F[0o]nt[\W_ \t]?F[0o]rge$/i],["fork-icon",["medium-blue","medium-blue"],/^\.issuetracker$/i],["fortran-icon",["medium-maroon","medium-maroon"],/\.f$/i,,,/\.fortran\.?(?:modern|punchcard)?$/i,/^F[0o]rtran$/i],["fortran-icon",["medium-green","medium-green"],/\.f90$/i,,,/\.fortran\.free$/i,/^F[0o]rtran$/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,,,/\.fortran\.fixed$/i,/^F[0o]rtran$/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],["fortran-icon",["dark-blue","dark-blue"],/\.pfo$/i],["fossa-icon",["dark-blue","dark-blue"],/\.fossaignore$/i],["fountain-icon",["medium-blue","medium-blue"],/\.fountain$/i,,,/\.fountain$/i,/^F[0o]untain$/i],["franca-icon",["medium-orange","medium-orange"],/\.fi?dl$/i,,,/\.fidl$/i,/^Franca$|^Franca[\W_ \t]?Idl$/i],["franca-icon",["medium-maroon","medium-maroon"],/\.fdepl$/i,,,/\.fdepl$/i,/^Franca$|^Franca[\W_ \t]?Depl[0o]yment$/i],["freemarker-icon",["medium-blue","medium-blue"],/\.ftl$/i,,,/\.ftl$/i,/^Free[\W_ \t]?Marker$|^ftl$/i],["frege-icon",["dark-red","dark-red"],/\.fr$/i],["fsharp-icon",["medium-blue","medium-blue"],/\.fs[xi]?$/i,,,/\.fsharp$/i,/^Fsharp$|^f#$/i],["fthtml-icon",["medium-orange","medium-orange"],/\.fthtml$/i,,,/\.source\.fthtml$/i,/^ft[\W_ \t]?Html$/i],["futhark-icon",["dark-maroon","dark-maroon"],/\.fut$/i,,/^futhark$/,/\.futhark$/i,/^Futhark$/i],["galen-icon",["medium-blue","medium-blue"],/\.gspec$/i,,,/^text\.galen$/,/^Galen$/i],["galen-icon",["medium-cyan","medium-cyan"],/\.gtest$/i,,,/^text\.galen-t$/,/^Galen$/i],["gml-icon",["medium-green","medium-green"],/\.gml$/i],["gams-icon",["dark-red","dark-red"],/\.gms$/i,,,/\.gams(?:-lst)?$/i,/^Gams$/i],["gap-icon",["medium-yellow","dark-yellow"],/\.gap$/i,,/^gap$/,/\.gap$/i,/^gap$/i],["gap-icon",["dark-blue","dark-blue"],/\.gi$/i],["gap-icon",["medium-orange","medium-orange"],/\.tst$/i],["gauss-icon",["medium-orange","medium-orange"],/\.gss$/i,,,/\.gauss$/i,/^Gauss$/i],["gdb-icon",["medium-green","dark-green"],/\.gdb$/i,,/^gdb$/,/\.gdb$/i,/^gdb$/i],["gdb-icon",["medium-cyan","dark-cyan"],/gdbinit$/i],["gear-icon",["medium-red","medium-red"],/^\.htaccess$|\.htmlhintrc$|\.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",["dark-green","dark-green"],/^text\.enc$/],["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],["code-icon",["medium-blue","medium-blue"],/\.xml$|\.config$|\.4th$|\.cocci$|\.dyl$|\.dylan$|\.fcgi$|\.forth$|\.launch$|\.manifest$|\.menu$|\.sk[12]$|\.srdf$|\.st$|\.ui$|\.wsf$|\.x3d$|\.xaml$/i,,,/\.smpl$/i],["code-icon",["dark-red","dark-red"],/\.rdf$|\.bc$|\.dotsettings$|\.fsproj$|\.xproj$/i,,/^baan$/,/\.baan$/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",["dark-blue","dark-blue"],/\.adm[lx]$|\.axml$|\.bmx$|\.brs$|\.ccxml$|\.clixml$|\.fth$|\.intr$|\.mdpolicy$|\.mtml$|\.myt$|\.xsd$/i,,/^brightscript$/,/\.brightscript$/i],["code-icon",["medium-purple","medium-purple"],/\.aepx$|\.dita$|\.grace$|\.lid$|\.qhelp$|\.tagx$/i],["code-icon",["medium-orange","medium-orange"],/\.appxmanifest$|\.befunge$|\.fun$|\.muf$|\.ssmssln$|\.xul$/i],["code-icon",["medium-cyan","medium-cyan"],/\.ash$|\.asn1?$|\.dtd$|\.props$|\.resx$|\.smt2$/i,,,/\.dtd$/i],["code-icon",["dark-red","dark-red"],/\.capnp$/i,,,/\.capnp$/i,/^(?:Cap[^\w\s]?n\s*Proto|capnp)$/i],["code-icon",["medium-red","medium-red"],/\.cscfg$|\.cgi$|\.ch$|\.cw$|\.fo$|\.iml$|\.mask$|\.mumps$|\.prg$|\.pt$|\.rl$|\.sml$|\.targets$|\.tera$|\.webidl$|\.wsdl$|\.xacro$|\.xliff$/i,,/^fasto$/,/\.fasto$/i],["code-icon",["dark-pink","dark-pink"],/\.ct$|\.zcml$/i],["code-icon",["dark-green","dark-green"],/\.cy$|\.eclxml$|\.ivy$|\.natvis$|\.proj$|\.sed$|\.tml$/i,,/^(?:[gs]?sed|minised)$/,/\.sed$/i],["code-icon",["dark-purple","dark-purple"],/\.rdg$|\.ditamap$|\.frt$|\.jspx$|\.lp$|\.omgrofl$|\.osm$|\.xib$/i],["code-icon",["medium-green","medium-green"],/\.ditaval$|\.spthy$|\.storyboard$|\.xmi$/i,,/^tamarin(?:[\s_-]?prover)?$/i,/(?:^|\.)(?:spthy|tamarin)(?:\.|$)/i],["code-icon",["medium-pink","medium-pink"],/\.fidl$|\.filters$|\.pig$/i,,/^fidl$/,/\.fidl$/i,/^fidl$/i],["code-icon",["medium-maroon","medium-maroon"],/\.fxml$/i],["code-icon",["dark-orange","dark-orange"],/\.grxml$|\.urdf$/i],["code-icon",["medium-yellow","medium-yellow"],/\.jelly$|\.joy$/i,,/^joy$/,/\.joy$/i],["code-icon",["medium-red","medium-red"],/\.jf?lex$/i,,,/^source\.jf?lex$/i],["code-icon",["dark-yellow","dark-yellow"],/\.jsproj$|\.ohm$|\.sgml?$/i,,/^ohm$/,/\.ohm$/i],["code-icon",["medium-red","medium-red"],/\.m4$/i,,/^m4$/,/\.m4$/i,/^m4$/i],["code-icon",["dark-blue","dark-blue"],/\.mq[45h]$/i,,,/(?:^|\.)mq[45](?=\.|$)/i],["code-icon",["dark-maroon","dark-maroon"],/\.mxml$/i],["code-icon",["light-green","light-green"],/\.odd$/i],["code-icon",["dark-cyan","dark-cyan"],/\.plist$|\.wisp$|\.xlf$|\.xslt$/i,,,/\.plist$/i],["code-icon",["light-blue","light-blue"],/\.psc1$|\.sk$|\.smt$/i,,/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$/i],["code-icon",["medium-blue","medium-blue"],/\.stellaris$/i,,/^stellaris$/,/\.stellaris$/i,/^stellaris$/i],["code-icon",["light-orange","light-orange"],/\.ux$/i],["code-icon",["light-purple","light-purple"],/\.vxml$/i],["code-icon",["medium-blue","medium-blue"],/\.wlp(?:4|ppp)$/i,,/^wlp4$/,/\.wlp4$/i,/^wlp4$/i],["code-icon",["medium-cyan","medium-cyan"],/\.xsl$/i,,/^xsl$/,/\.xsl$/i,/^xsl$/i],["genshi-icon",["medium-red","medium-red"],/\.kid$/i,,,/\.genshi$/i,/^Genshi$|^xml\+(?:genshi|kid)$/i],["genstat-icon",["medium-green","medium-green"],/\.gen$/i],["genstat-icon",["medium-blue","medium-blue"],/\.gpi$/i],["gentoo-icon",["dark-cyan","dark-cyan"],/\.ebuild$/i,,,/\.ebuild$/i,/^Gent[0o][0o]$/i],["gentoo-icon",["medium-blue","medium-blue"],/\.eclass$/i],["gimp-icon",["medium-red","medium-red"],/\.xcf$/i],["gimp-icon",["medium-orange","medium-orange"],/\.ggr$/i],["gimp-icon",["medium-maroon","medium-maroon"],/\.gih$/i],["gimp-icon",["medium-green","medium-green"],/\.gpl$/i],["gimp-icon",["medium-cyan","medium-cyan"],/\.vbr$/i],["git-icon",["medium-red","medium-red"],/^\.git|^\.keep$|\.mailmap$/i,,,/\.git-(?:commit|config|rebase)$/i,/^Git$/i],["git-commit-icon",["medium-red","medium-red"],/^(?:ATOM_)?COMMIT_EDITMSG$/],["git-merge-icon",["medium-red","medium-red"],/^MERGE_(?:HEAD|MODE|MSG)$/],["glade-icon",["medium-green","medium-green"],/\.glade$/i],["gltf-icon",["medium-green","medium-green"],/\.gltf$/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,,/^gn$/,/\.gn$/i,/^gn$/i],["gn-icon",["medium-blue","medium-blue"],/\.gni$/i],["gnu-icon",["medium-red","dark-red"],/\.(?:gnu|gplv[23])$/i],["gnuplot-icon",["medium-red","medium-red"],/\.(?:gp|plo?t|gnuplot)$/i,,/^gnuplot$/,/\.gnuplot$/i,/^Gnupl[0o]t$/i],["go-icon",["medium-blue","medium-blue"],/\.go$/i,,,/\.go(?:template)?$/i,/^G[0o]$/i],["godot-icon",["medium-blue","medium-blue"],/\.gd$/i,,,/\.gdscript$/i,/^G[0o]d[0o]t$|^Gdscript$/i],["godot-icon",["dark-blue","dark-blue"],/\.godot$/i],["godot-icon",["medium-cyan","medium-cyan"],/\.tres$/i],["godot-icon",["medium-green","medium-green"],/\.tscn$/i],["godot-icon",["medium-red","medium-red"],/\.import$/i],["golo-icon",["medium-orange","medium-orange"],/\.golo$/i,,,/\.golo$/i,/^G[0o]l[0o]$/i],["gosu-icon",["medium-blue","medium-blue"],/\.gs$/i,,,/\.gosu(?:\.\d+)?$/i,/^G[0o]su$/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,,,/\.gradle$/i,/^Gradle$/i],["gradle-icon",["dark-purple","dark-purple"],/gradlew$/i],["bnf-icon",["medium-maroon","medium-maroon"],/\.bnf$/i,,,/\.bnf$/i,/^Backus[\W_ \t]?Naur[\W_ \t]?F[0o]rm$/i],["bnf-icon",["medium-green","medium-green"],/\.abnf$/i,,,/\.abnf$/i,/^Augmented[\W_ \t]?Backus[\W_ \t]?Naur[\W_ \t]?F[0o]rm$/i],["bnf-icon",["medium-red","medium-red"],/\.ebnf$/i,,,/\.ebnf$/i,/^Extended[\W_ \t]?Backus[\W_ \t]?Naur[\W_ \t]?F[0o]rm$/i],["bnf-icon",["medium-grey","medium-grey"],/\.cddl$/i,,,/\.cddl$/i,/^C[0o]ncise[\W_ \t]?Data[\W_ \t]?Definiti[0o]n[\W_ \t]?Language$/i],["gf-icon",["medium-red","medium-red"],/\.gf$/i],["graphql-icon",["medium-pink","medium-pink"],/\.graphql$/i,,,/\.graphql$/i,/^Graph[\W_ \t]?Ql$/i],["graphql-icon",["medium-red","medium-red"],/\.graphqls$/i],["graphql-icon",["medium-purple","medium-purple"],/\.gql$/i],["graphviz-icon",["medium-blue","medium-blue"],/\.gv$/i,,,/\.dot$/i,/^Graphviz$/i],["graphviz-icon",["dark-cyan","dark-cyan"],/\.dot$/i],["graphviz-icon",["medium-orange","medium-orange"],/\.(?:plantuml|[ip]uml|pu)$/i],["gvdesign-icon",["medium-yellow","medium-yellow"],/\.gvdesign$/i],["groovy-icon",["light-blue","light-blue"],/\.(?:groovy|grt|gtpl|gsp|gvy)$/i,,/^groovy$/,/\.groovy$/i,/^Gr[0o][0o]vy$|^gsp$/i],["hack-icon",["medium-orange","medium-orange"],/\.hh$/i,,,/\.hack$/i,/^Hack$/i],["hack-icon",["medium-red","medium-red"],/\.hhi$/i],["hack-icon",["medium-yellow","medium-yellow"],/\.hack$/i],["haml-icon",["medium-yellow","medium-yellow"],/\.haml$/i,,/^haml$/,/\.haml$/i,/^haml$/i],["haml-icon",["medium-maroon","medium-maroon"],/\.hamlc$/i,,/^hamlc$/,/\.hamlc$/i,/^Haml$|^hamlc$/i],["haml-icon",["medium-red","medium-red"],/\.haml\.deface$/i],["harbour-icon",["dark-blue","dark-blue"],/\.hb$/i,,,/\.harbour$/i,/^Harb[0o]ur$/i],["hashicorp-icon",["dark-purple","dark-purple"],/\.hcl$/i,,,/(?:^|\.)(?:hcl|hashicorp)(?:\.|$)/i,/^Hashic[0o]rp[\W_ \t]?C[0o]nfigurati[0o]n[\W_ \t]?Language$/i],["hashicorp-icon",["medium-cyan","medium-cyan"],/\.workflow$/i],["haskell-icon",["medium-purple","medium-purple"],/\.hs$/i,,/^runhaskell$/,/\.source\.haskell$/i,/^Haskell$/i],["haskell-icon",["medium-blue","medium-blue"],/\.hsc$/i,,,/\.hsc2hs$/i,/^Haskell$/i],["haskell-icon",["dark-purple","dark-purple"],/\.c2hs$/i,,,/\.c2hs$/i,/^Haskell$|^C2hs(?:\s*Haskell)?$/i],["haskell-icon",["dark-blue","dark-blue"],/\.lhs$/i,,,/\.latex\.haskell$/i,/^Haskell$|^(?:lhaskell|lhs|Literate\s*Haskell)$/i],["haskell-icon",["medium-maroon","medium-maroon"],/\.hs-boot$|\.hsig$/i],["haxe-icon",["medium-orange","medium-orange"],/\.hx(?:[sm]l|)?$/,,,/(?:^|\.)haxe(?:\.\d+)?$/i,/^Haxe$/i],["haxedevelop-icon",["medium-blue","dark-blue"],/\.hxproj$/i],["helix-icon",["medium-blue","medium-blue"],/^\.p4ignore$/i],["question-icon",["medium-blue","medium-blue"],/\.chm$/i],["question-icon",["dark-blue","dark-blue"],/\.hlp$/i],["heroku-icon",["medium-purple","medium-purple"],/^(?:Proc|Apt)file$/],["heroku-icon",["light-purple","light-purple"],/\.buildpacks$/i],["heroku-icon",["dark-purple","dark-purple"],/\.slugignore$/i],["heroku-icon",["dark-purple","dark-purple"],/^\.vendor_urls$/],["hp-icon",["medium-blue","medium-blue"],/\.hpgl$/i],["hjson-icon",["medium-green","medium-green"],/\.hjson$/i,,,/\.hjson$/i,/^Hjs[0o]n$/i],["templeos-icon",["medium-yellow","medium-yellow"],/\.hc$/i,,,/\.hc$/,/^H[0o]ly[\W_ \t]?C$/i],["brew-icon",["medium-orange","dark-orange"],/^Brewfile$/],["hoplon-icon",["medium-red","medium-red"],/\.hl$/i],["html5-icon",["medium-orange","medium-orange"],/\.x?html?$/i,,,/\.html\.basic$/i,/^Html$|^(?:xhtml|htm)$/i],["html5-icon",["medium-red","medium-red"],/\.cshtml$|\.latte$/i,,/^latte$/,/\.latte$/i],["html5-icon",["dark-blue","dark-blue"],/\.gohtml$|\.phtml$/i,,/^gohtml$/,/\.gohtml$/i,/^Html$|^g[0o]html$/i],["html5-icon",["medium-purple","medium-purple"],/\.html\.eex$|\.jsp$/i,,,/\.jsp$/i],["html5-icon",["dark-purple","dark-purple"],/\.jspf$/i],["html5-icon",["medium-green","medium-green"],/\.kit$|\.swig$/i,,/^swig$/,/\.swig$/i],["html5-icon",["medium-blue","medium-blue"],/\.isml$/i,,/^isml$/,/\.isml$/i,/^Html$|^isml$/i],["html5-icon",["medium-cyan","medium-cyan"],/\.shtml$/i],["html5-icon",["dark-red","dark-red"],/\.scaml$/i,,/^scaml$/,/\.scaml$/i,/^Html$|^scaml$/i],["html5-icon",["medium-red","medium-red"],/\.vash$/i,,/^vash$/,/\.vash$/i,/^Html$|^vash$/i],["html5-icon",["medium-maroon","medium-maroon"],/\.xht$/i],["html5-icon",["medium-blue","medium-blue"],/\.dtml$/i,,/^dtml$/,/\.dtml$/i,/^Html$|^dtml$/i],["html5-icon",["medium-blue","medium-blue"],/\.mht(?:ml)?$/i,,/^mhtml$/,/\.mhtml$/i,/^Html$|^mhtml$/i],["husky-icon",["medium-blue","dark-blue"],/\.huskyrc$/i],["hy-icon",["dark-blue","dark-blue"],/\.hy$/i,,/^hy$/,/\.hy$/i,/^Hy$|^hylang$/i],["idl-icon",["medium-blue","medium-blue"],/\.dlm$/i,,,/\.idl$/i,/^Idl$/i],["idris-icon",["dark-red","dark-red"],/\.idr$/i,,,/\.(?: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$|\.cin$|\.cgm$|\.cr2$|\.(?:gsrc|gr(?:emli)?n)$|\.mng$|\.svgz$|\.pxm$/i,,,/^source\.gremlin$/],["image-icon",["medium-yellow","medium-yellow"],/\.gif$|\.ora$|\.sgi$/i],["image-icon",["medium-green","medium-green"],/\.jpe?g$/i],["image-icon",["medium-blue","medium-blue"],/\.ico$|\.hdr$|\.pxs$/i],["image-icon",["dark-blue","dark-blue"],/\.webp$|\.iff$|\.lbm$|\.liff$|\.nrrd$|\.pcx$|\.vsdx?$/i],["image-icon",["medium-red","medium-red"],/\.bmp$|\.bpg$|\.tiff?$|\.(?:wmf|emf|wmz|apm)$|\.pxb$/i],["image-icon",["dark-green","dark-green"],/\.cd5$|\.dds$|\.(?:jp[f2xm]|j2c|mj2)$/i],["image-icon",["medium-pink","medium-pink"],/\.dcm$|\.icns$|\.mpo$|\.pxls$/i],["image-icon",["medium-purple","medium-purple"],/\.djvu?$|\.pxr$/i],["image-icon",["dark-orange","dark-orange"],/\.dpx$|\.fig$|\.raw$|\.tga$/i],["image-icon",["light-blue","light-blue"],/\.ecw$|\.sct$/i],["image-icon",["dark-yellow","dark-yellow"],/\.exr$/i],["image-icon",["medium-cyan","medium-cyan"],/\.fits?$|\.fts$|\.jng$/i],["image-icon",["dark-red","dark-red"],/\.flif$|\.hdp$|\.heic$|\.heif$|\.jxr$|\.wdp$/i],["image-icon",["dark-cyan","dark-cyan"],/\.jps$/i],["image-icon",["light-purple","light-purple"],/\.pict$/i],["image-icon",["dark-maroon","dark-maroon"],/\.wbm$/i],["image-icon",["dark-grey","dark-grey"],/\.wbmp$/i],["image-icon",["dark-purple","dark-purple"],/\.xwd$/i],["image-icon",["medium-cyan","dark-cyan"],/\.pxg$/i],["imba-icon",["medium-yellow","medium-yellow"],/\.imba$/i,,,/\.imba$/,/^Imba$/i],["inform7-icon",["medium-blue","medium-blue"],/\.ni$/i,,,/\.inform-?7?$/i,/^Inf[0o]rm[\W_ \t]?7$|^i7$/i],["inform7-icon",["dark-blue","dark-blue"],/\.i7x$/i],["ink-icon",["dark-blue","dark-blue"],/\.ink$/i,,,/\.ink$/i,/^Ink$|^Inkle$/i],["ink-icon",["dark-purple","dark-purple"],/\.ink2$/i],["inkscape-icon",["dark-purple","dark-purple"],/\.inx$/i],["inno-icon",["dark-blue","dark-blue"],/\.iss$/i,,,/\.inno$/i,/^Inn[0o][\W_ \t]?Setup$/i],["inno-icon",["medium-cyan","medium-cyan"],/\.isl$/i],["io-icon",["dark-purple","dark-purple"],/\.io$/i,,/^io$/,/^source\.io$/i,/^I[0o]$/i],["ioke-icon",["medium-red","medium-red"],/\.ik$/i,,/^ioke$/],["isabelle-icon",["dark-red","dark-red"],/\.thy$/i,,,/\.isabelle\.theory$/i,/^Isabelle$/i],["isabelle-icon",["dark-blue","dark-blue"],/^ROOT$/],["j-icon",["light-blue","light-blue"],/\.ijs$/i,,/^jconsole$/,/\.j$/i,/^J$/i],["jade-icon",["medium-red","medium-red"],/\.jade$/i,,,/\.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,,,/\.java$/i,/^Java$/i],["java-icon",["medium-maroon","medium-maroon"],/\.class$/i],["js-icon",["medium-yellow","dark-yellow"],/\.js$|\.es\d?$/i,,/^(?:node|chakra|d8|iojs|g?js|qjs(?:c?|bnc?)?|mujs|rhino|slimerjs|v8(?:-shell)?)$/,/\.js$/i,/^Java[\W_ \t]?Script$|^(?:js|node)$/i],["js-icon",["medium-orange","dark-orange"],/\._js$/i],["js-icon",["medium-maroon","dark-maroon"],/\.jsb$|\.jse$|\.dust$/i],["js-icon",["medium-blue","dark-blue"],/\.jsm$|\.mjs$|\.xsjslib$/i],["js-icon",["medium-green","dark-green"],/\.jss$|\.cjs$/i],["js-icon",["medium-pink","dark-pink"],/\.sjs$/i],["js-icon",["medium-red","dark-red"],/\.ssjs$|\.jscript$|\.jslib$/i],["js-icon",["medium-orange","medium-orange"],/\.jspre$/i],["js-icon",["medium-purple","dark-purple"],/\.xsjs$/i],["js-icon",["dark-yellow","dark-yellow"],/\.htc$/i],["js-icon",["medium-purple","medium-purple"],/\.pac$/i],["js-icon",["dark-purple","dark-purple"],/\.pjs$/i],["js-icon",["medium-blue","medium-blue"],/([\/\\])cartridge\1scripts(?:\1.+)?\1[^\\\/]+\.ds$/i],["jekyll-icon",["medium-green","medium-green"],/\.nojekyll$/i],["jenkins-icon",["medium-red","dark-red"],/^Jenkinsfile$/],["jinja-icon",["dark-red","dark-red"],/\.jinja$/i,,,/\.jinja$/i,/^Jinja$|^(?:django|htmldjango|html\+django\/jinja|html\+jinja)$/i],["jinja-icon",["medium-red","medium-red"],/\.j(?:inja)?2$/i],["jison-icon",["medium-blue","medium-blue"],/\.jison$/i,,/^jison$/,/\.jison$/i,/^jis[0o]n$/i],["jison-icon",["medium-cyan","medium-cyan"],/\.jisonlex$/i,,/^JisonLex$/,/\.JisonLex$/i,/^Jis[0o]n$|^Jis[0o]n[\W_ \t]?Lex$/i],["jolie-icon",["dark-pink","dark-pink"],/\.ol$/i,,/^jolie$/,/\.jolie$/i,/^j[0o]lie$/i],["jolie-icon",["medium-red","medium-red"],/\.iol$/i],["json-icon",["medium-cyan","medium-cyan"],/\.(?:h|geo|topo)?json$/i,,,/\.json$/i,/^Js[0o]n$/i],["json-icon",["dark-blue","dark-blue"],/\.jsonc$/i,,,/\.jsonc$/i,/^Js[0o]n$|^Js[0o]n[\W_ \t]?with[\W_ \t]?C[0o]mments$/i],["json-icon",["medium-blue","medium-blue"],/\.rsj$/i],["jsonld-icon",["medium-blue","medium-blue"],/\.jsonld$/i],["json5-icon",["dark-yellow","dark-yellow"],/\.json5$/i,,,/\.json5$/i,/^Js[0o]n5$/i],["sql-icon",["medium-blue","medium-blue"],/\.jq$/i,,,/\.jq$/i,/^Js[0o]niq$/i],["jsonnet-icon",["dark-blue","dark-blue"],/\.jsonnet$/i,,/^jsonnet$/,/\.jsonnet$/i,/^js[0o]nnet$/i],["jsonnet-icon",["medium-blue","medium-blue"],/\.libsonnet$/i],["jsx-icon",["medium-blue","dark-blue"],/\.jsx$/i,,,/\.jsx$/i,/^Jsx$/i],["julia-icon",["medium-purple","medium-purple"],/\.jl$/i,,/^julia$/,/\.julia$/i,/^Julia$/i],["junos-icon",["medium-cyan","medium-cyan"],/\.jos$/i,,,/\.junos$/i,/^Jun[0o]s$|^(?:Juniper\W*)Jun\s*os(?:\W*Config)?$/i],["junos-icon",["medium-blue","medium-blue"],/\.slax$/i,,/^slax$/,/\.slax$/i,/^Jun[0o]s$|^slax$/i],["jupyter-icon",["dark-orange","dark-orange"],/\.ipynb$/i,,,/\.ipynb$/i,/^(?:ipynb|(?:Jupyter|IPython)\s*Notebook)$/i],["jupyter-icon",["dark-cyan","dark-cyan"],/^Notebook$/],["kaitai-icon",["medium-maroon","medium-maroon"],/\.ksy$/i],["kos-icon",["dark-green","dark-green"],/\.ks$/i,,,/^source\.kerboscript$/i,/^Kerb[0o][\W_ \t]?Script$/i],["keynote-icon",["medium-blue","medium-blue"],/\.keynote$/i],["keynote-icon",["dark-blue","dark-blue"],/\.knt$/i],["kicad-icon",["dark-blue","dark-blue"],/\.kicad_pcb$|^fp-lib-table$/i,,,/^source\.pcb\.board$|\.kicad(?=$|\.)/,/^Ki[\W_ \t]?Cad$/i],["kicad-icon",["dark-red","dark-red"],/\.kicad_pcb-bak$/i],["kicad-icon",["medium-green","medium-green"],/\.kicad_mod$/i],["kicad-icon",["medium-cyan","medium-cyan"],/\.kicad_wks$/i],["kivy-icon",["dark-maroon","dark-maroon"],/\.kv$/i,,,/\.kv$/i,/^Kivy$/i],["earth-icon",["medium-green","medium-green"],/\.kml$/i],["kotlin-icon",["dark-blue","dark-blue"],/\.kt$/i,,/^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,,,/\.krl$/i,/^Krl$/i],["kusto-icon",["medium-blue","medium-blue"],/\.(?:csl|kusto)$/i,,,/\.source\.kusto$/i,/^Kust[0o]$|Kusto (?:Query.?Language|Explorer)|^KQL$/i],["labview-icon",["dark-blue","dark-blue"],/\.lvproj$/i],["laravel-icon",["medium-orange","medium-orange"],/\.blade(?:\.php)?$/i,,,/\.php\.blade$/i,/^Laravel$/i],["lasso-icon",["dark-blue","dark-blue"],/\.lasso$|\.las$/i,,,/\.lasso$/i,/^Lass[0o]$|^lass[0o]script$/i],["lasso-icon",["medium-blue","medium-blue"],/\.lasso8$/i],["lasso-icon",["medium-purple","medium-purple"],/\.lasso9$/i],["lasso-icon",["dark-red","dark-red"],/\.lassoapp$/i],["lasso-icon",["medium-red","medium-red"],/\.ldml$/i],["latino-icon",["medium-blue","dark-blue"],/\.lat$/i,,,/\.source\.latino$/i,/^Latin[0o]$/i],["lean-icon",["dark-purple","dark-purple"],/\.lean$/i,,/^lean$/,/\.lean$/i,/^lean$/i],["lean-icon",["dark-red","dark-red"],/\.hlean$/i],["graph-icon",["medium-blue","medium-blue"],/\.ledger$/i,,/^ledger$/,/\.ledger$/i,/^ledger$/i],["graph-icon",["medium-green","medium-green"],/\.hledger$/i],["lektor-icon",["dark-purple","dark-purple"],/\.lr$/i],["lektor-icon",["medium-orange","medium-orange"],/\.lektorproject$/i],["lex-icon",["medium-cyan","medium-cyan"],/\.l(?:ex)?$/i,,/^lex$/,/\.lex$/i,/^lex$/i],["lex-icon",["dark-red","dark-red"],/\.flex$/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],["lilypond-icon",["medium-green","medium-green"],/\.ly$/i,,,/\.(?:At)?lilypond/i,/^Lily\s*Pond$/i],["lilypond-icon",["dark-green","dark-green"],/\.ily$/i],["link-icon",["dark-blue","dark-blue"],/\.url$/i],["linqpad-icon",["dark-pink","dark-pink"],/\.linq$/i],["lisp-icon",["dark-red","dark-red"],/\.lisp$/i,,/^lisp$/,/\.lisp$/i,/^lisp$/i],["lisp-icon",["medium-red","medium-red"],/\.lsp$/i,,/^newlisp$/,/\.newlisp$/i,/^Lisp$|^newlisp$/i],["lisp-icon",["medium-maroon","medium-maroon"],/\.nl$/i],["lisp-icon",["medium-blue","medium-blue"],/\.ny$|\.sexp$/i],["lisp-icon",["medium-purple","medium-purple"],/\.podsl$/i],["lisp-icon",["dark-purple","dark-purple"],/\.sbclrc$/i],["ls-icon",["medium-blue","medium-blue"],/\.ls$/i,,,/\.livescript$/i,/^Live[\W_ \t]?Script$|^(?: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,,/^llvm$/,/\.llvm$/i,/^llvm$/i],["llvm-icon",["medium-yellow","dark-yellow"],/\.clang-(?:format|tidy)$/i],["llvm-icon",["medium-red","dark-red"],/^ubsan\.blacklist$/i],["mobile-icon",["dark-blue","dark-blue"],/\.xm$/i,,/^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,,,/\.logtalk$/i,/^L[0o]gtalk$/i],["lookml-icon",["medium-purple","medium-purple"],/\.(?:lookml|lkml)$/i],["lsl-icon",["medium-cyan","medium-cyan"],/\.lsl$/i,,/^lsl$/,/\.lsl$/i,/^lsl$/i],["lsl-icon",["dark-cyan","dark-cyan"],/\.lslp$/i],["lua-icon",["medium-blue","medium-blue"],/\.lua$/i,,/^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],["lua-icon",["dark-green","dark-green"],/^Lakefile$/i],["lua-icon",["medium-green","medium-green"],/\.luacheckrc$/i],["lua-icon",["medium-purple","medium-purple"],/\.rockspec$/i],["macaulay2-icon",["light-cyan","dark-cyan"],/\.m2$/i,,/^m2$/,/\.macaulay2$/i,/^Macaulay2$|^m2$/i],["checklist-icon",["medium-yellow","medium-yellow"],/^Makefile|^makefile$/,,/^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$|^makefile\.sco$|\.am$/i],["checklist-icon",["medium-green","medium-green"],/^GNUmakefile$/i],["checklist-icon",["medium-blue","medium-blue"],/^Kbuild$/],["checklist-icon",["dark-blue","dark-blue"],/^\.?qmake$|\.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,,,/\.mako$/i,/^Mak[0o]$/i],["mapbox-icon",["medium-cyan","medium-cyan"],/\.mss$/i,,,/\.mss$/i,/^Mapb[0o]x$|^Carto(?:CSS)?$/i],["markdown-icon",["medium-blue","medium-blue"],/\.(?:md(?:te?xt)?|mdown|markdown|mkd|mkdown|mdwn|mkdn|ron|pmd|jmd)$/i,,,/(?:^|\.)[gp]fm|j?md|markdown(?:\.|$)/i,/^(?:CommonMark|GFM|Pandoc)$|\bMarkdown\b/i],["markdownlint-icon",["medium-red","medium-red"],/^\.?mdlrc(?:\.style)?\.rb$/i],["markdownlint-icon",["dark-cyan","dark-cyan"],/^\.?mdlrc$/i],["mathematica-icon",["dark-red","dark-red"],/\.mathematica$|\.nbp$/i,,,/\.mathematica$/i,/^Mathematica$|^mma$/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,,/^matlab$/,/\.matlab$/i,/^matlab$/i],["matlab-icon",["dark-maroon","dark-maroon"],/\.mlappinstall$/i],["matlab-icon",["medium-cyan","medium-cyan"],/\.mlpkginstall$/i],["matlab-icon",["dark-red","dark-red"],/\.mltbx$|\.slxp$/i],["matlab-icon",["medium-red","medium-red"],/\.mdlp$|\.slx$/i],["matlab-icon",["dark-purple","dark-purple"],/\.mn$/i],["matlab-icon",["medium-maroon","medium-maroon"],/\.sldd$/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,,,/\.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],["mdx-icon",["medium-orange","medium-orange"],/\.mdx$/i],["mediawiki-icon",["medium-yellow","medium-yellow"],/\.mediawiki$/i,,/^mediawiki$/,/\.mediawiki$/i,/^mediawiki$/i],["mediawiki-icon",["medium-orange","medium-orange"],/\.wiki$/i],["bullhorn-icon",["medium-orange","medium-orange"],/^\.mention-bot$/i],["hg-icon",["medium-grey","medium-grey"],/\.hgignore$/i],["hg-icon",["dark-grey","dark-grey"],/\.?hgrc$/i],["hg-icon",["dark-cyan","dark-cyan"],/\.hgsub$/i],["hg-icon",["medium-cyan","medium-cyan"],/\.hgsubstate$/i],["mercury-icon",["medium-cyan","medium-cyan"],/\.moo$/i,,/^mmi$/,/\.mercury$/i,/^Mercury$/i],["mermaid-icon",["medium-blue","medium-blue"],/\.(?:mmd|mermaid)$/i,,,/\.mermaid$/i,/^Mermaid$/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],["excel-icon",["medium-orange","medium-orange"],/\.xla$/i],["excel-icon",["dark-red","dark-red"],/\.xlam$/i],["excel-icon",["medium-maroon","medium-maroon"],/\.xltm$/i],["excel-icon",["dark-maroon","dark-maroon"],/\.xltx$/i],["infopath-icon",["dark-purple","dark-purple"],/\.(?:infopathxml|xsn|xsf|xtp2)$/i],["lync-icon",["dark-blue","dark-blue"],/\.o?crec$/i],["onenote-icon",["dark-purple","dark-purple"],/\.one$/i],["outlook-icon",["medium-blue","medium-blue"],/\.pst$|\.oab$/i],["outlook-icon",["dark-blue","dark-blue"],/\.bcmx$/i],["outlook-icon",["medium-red","medium-red"],/\.otm$/i],["outlook-icon",["medium-maroon","medium-maroon"],/\.oft$/i],["outlook-icon",["dark-red","dark-red"],/\.nk2$/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],["msproject-icon",["medium-green","medium-green"],/\.mpp$/i],["msproject-icon",["dark-green","dark-green"],/\.mpt$/i],["publisher-icon",["dark-cyan","dark-cyan"],/\.puz$/i],["visio-icon",["dark-blue","dark-blue"],/\.vsdx$|\.vs[st][mx]?$/i],["visio-icon",["dark-purple","dark-purple"],/\.vdw$/i],["visio-icon",["medium-red","medium-red"],/\.vdx$/i],["visio-icon",["medium-blue","medium-blue"],/\.vsd$/i],["visio-icon",["dark-maroon","dark-maroon"],/\.vsdm$/i],["visio-icon",["medium-green","medium-green"],/\.vsw$/i],["visio-icon",["dark-red","dark-red"],/\.vsx$|\.vtx$/i],["visio-icon",["medium-cyan","medium-cyan"],/\.vrd$/i],["visio-icon",["medium-orange","medium-orange"],/\.vsl$/i],["word-icon",["medium-blue","medium-blue"],/\.doc$/i],["word-icon",["dark-blue","dark-blue"],/\.docx$|\.wll$/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$|\.mcpack$|^pack\.mcmeta$/i,,,/\.forge-config$/i,/^Minecraft$/i],["minecraft-icon",["light-green","light-green"],/\.mcfunction$/i],["minecraft-icon",["medium-green","medium-green"],/\.mclevel$/i],["minecraft-icon",["medium-blue","medium-blue"],/\.mcworld$/i],["minecraft-icon",["dark-green","dark-green"],/\.png\.mcmeta$/],["minizinc-icon",["medium-blue","medium-blue"],/\.mzn$/i,,/^mzn$/,/\.mzn$/i,/^Mini[\W_ \t]?Zinc$|^mzn$/i],["minizinc-icon",["dark-blue","dark-blue"],/\.dzn$/i],["mirah-icon",["medium-blue","medium-blue"],/\.dr?uby$/g,,/^mirah$/,/\.mirah$/i,/^mirah$/i],["mirah-icon",["light-blue","light-blue"],/\.mir(?:ah)?$/g],["mirc-icon",["medium-red","medium-red"],/\.mrc$/i,,,/\.mrc$/i,/^m[\W_ \t]?Irc$/i],["mjml-icon",["medium-red","medium-red"],/\.mjml$/i,,/^mjml$/,/\.mjml$/i,/^mjml$/i],["mjml-icon",["medium-orange","medium-orange"],/\.mjmlslim$/i],["model-icon",["medium-red","medium-red"],/\.obj$|\.geo(?:m|metry)?$|\.mdl$/i,,,/\.wavefront\.obj$/i],["model-icon",["dark-blue","dark-blue"],/\.mtl$|\.c4d$|\.fnc$/i,,,/\.wavefront\.mtl$/i],["model-icon",["medium-cyan","medium-cyan"],/\.shader$/i,,,/\.(?:shader(?:code|lab)|cg)(?=\.|$)/i,/^Shader[\W_ \t]?Lab$/i],["model-icon",["medium-purple","medium-purple"],/\.comp$/i],["model-icon",["medium-green","medium-green"],/\.tesc$|\.tese$/i],["model-icon",["dark-cyan","dark-cyan"],/\.cginc$/i],["model-icon",["medium-orange","medium-orange"],/\.dxf$|\.u3d$/i],["model-icon",["dark-orange","dark-orange"],/\.dwg$/i],["model-icon",["medium-yellow","medium-yellow"],/\.jas$/i],["model-icon",["dark-red","dark-red"],/\.ply$/i],["model-icon",["dark-green","dark-green"],/\.stl$/i],["model-icon",["dark-blue","dark-blue"],/\.(?:rviz|vcg)$/i,,/^rviz$/,/\.rviz$/i,/^rviz$/i],["modelica-icon",["medium-red","dark-red"],/\.mo$/i,,,/\.modelica(?:script)?$/i,/^M[0o]delica$/i],["modo-icon",["medium-cyan","medium-cyan"],/\.lxo$/i],["modula2-icon",["medium-blue","medium-blue"],/\.mod$/i,,,/(?:^|\.)modula-?2(?:\.|$)/i,/^M[0o]dula[\W_ \t]?2$/i],["modula2-icon",["medium-green","medium-green"],/\.def$/i],["modula3-icon",["medium-blue","medium-blue"],/\.i3$/i,,,/(?:^|\.)modula-?3(?:\.|$)/i,/^M[0o]dula[\W_ \t]?3$/i],["modula3-icon",["medium-green","medium-green"],/\.ig$/i],["modula3-icon",["dark-blue","dark-blue"],/\.m3$/i],["modula3-icon",["dark-green","dark-green"],/\.mg$/i],["modula3-icon",["medium-red","medium-red"],/^m3(?:makefile|overrides)$/i,,/^quake$/,/\.quake$/i,/^M[0o]dula[\W_ \t]?3$|^quake$/i],["moho-icon",["medium-orange","medium-orange"],/\.moho$/i],["moho-icon",["medium-blue","medium-blue"],/\.mohoaction$/i],["moho-icon",["medium-maroon","medium-maroon"],/\.mohobrush$/i],["moho-icon",["medium-yellow","medium-yellow"],/\.mohoexport$/i],["moho-icon",["medium-purple","medium-purple"],/\.mohostyle$/i],["monkey-icon",["medium-maroon","medium-maroon"],/\.monkey$/i,,,/\.monkey$/i,/^M[0o]nkey$/i],["monotone-icon",["dark-purple","dark-purple"],/\.mtn-ignore$/i],["moon-icon",["medium-yellow","medium-yellow"],/\.moon$/i,,/^moon$/,/\.moon$/i,/^M[0o][0o]n[\W_ \t]?Script$/i],["mruby-icon",["medium-red","medium-red"],/\.mrb$/i,,/^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],["music-icon",["dark-red","dark-red"],/\.pd$/i],["mustache-icon",["medium-orange","medium-orange"],/\.(?:hb[st]|handlebars|(?:mu)?stache)$/i,,,/(?:^|\.)(?:mustache|handlebars)(?:\.|$)/i,/^Mustache$|^(?:hbs|htmlbars|handlebars)$/i],["nano-icon",["medium-blue","medium-blue"],/\.nanorc$/i,,,/\.nanorc(?=\.|$)/i,/^Nan[0o]$/i],["nant-icon",["medium-orange","medium-orange"],/\.build$/i,,,/\.nant-build$/i,/^Nant$/i],["nasm-icon",["dark-blue","dark-blue"],/\.nasm$/i],["earth-icon",["medium-green","medium-green"],/\.ncl$/i,,,/\.ncl$/i,/^Ncar[\W_ \t]?C[0o]mmand[\W_ \t]?Language[\W_ \t]?\(?Ncl\)?$/i],["ndepend-icon",["medium-blue","medium-blue"],/\.nd?proj$/i],["neko-icon",["medium-orange","medium-orange"],/\.neko$/i,,/^neko$/,/\.neko$/i,/^nek[0o]$/i],["neo4j-icon",["medium-blue","dark-blue"],/\.cyp(?:her)?$/i,,,/\.neo4j$/i,/^Ne[0o]4[\W_ \t]?J$/i],["neon-icon",["medium-grey","medium-grey"],/\.neon$/i,,,/\.neon$/i,/^Ne[0o]n$/i],["nessus-icon",["medium-cyan","dark-cyan"],/\.nasl$/i,,/^nasl$/,/\.nasl$/i,/^Nessus$/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],["nextflow-icon",["medium-green","medium-green"],/\.nf$/i,,/^nextflow$/,/\.nextflow$/i,/^nextfl[0o]w$/i],["nib-icon",["dark-orange","dark-orange"],/\.nib$/i],["nickle-icon",["medium-grey","dark-grey"],/\.5c$/i,,/^nickle$/,/\.nickle$/i,/^Nickle$/i],["nimrod-icon",["medium-green","medium-green"],/\.nim(?:rod)?$/i,,,/\.nim$/i,/^Nim$|^Nimr[0o]d$/i],["nimble-icon",["medium-grey","medium-grey"],/\.nimble$/i],["shuriken-icon",["medium-blue","medium-blue"],/\.ninja$/i,,/^ninja$/,/\.ninja$/i,/^ninja$/i],["n64-icon",["dark-cyan","dark-cyan"],/\.n64$/i],["n64-icon",["dark-green","dark-green"],/\.z64$/i],["nit-icon",["dark-green","dark-green"],/\.nit$/i,,,/\.nit$/i,/^Nit$/i],["nix-icon",["medium-cyan","medium-cyan"],/\.nix$/i,,,/\.nix$/i,/^Nix$|^nix[0o]s$/i],["nmap-icon",["dark-blue","dark-blue"],/\.nse$/i,,,/\.nmap$/i,/^Nmap$/i],["node-icon",["medium-green","medium-green"],/\.njs$|\.nvmrc$/i],["node-icon",["dark-green","dark-green"],/\.node$|\.node-version$|\.node_repl_history$/i],["node-icon",["dark-green","dark-green"],/^BUNDLED_NODE_VERSION$/],["nomad-icon",["medium-green","medium-green"],/\.nomad$/i],["noon-icon",["dark-grey","dark-grey"],/\.noon$/i,,/^noon$/,/\.noon$/i,/^N[0o][0o]n$/i],["nsis-icon",["medium-purple","medium-purple"],/\.nsi$/i,,/^nsis$/,/\.nsis$/i,/^nsis$/i],["nsis-icon",["dark-cyan","dark-cyan"],/\.nsh$/i],["recycle-icon",["light-green","light-green"],/\.nu$/i,,/^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],["nxc-icon",["medium-orange","medium-orange"],/\.nxc$/i,,,/\.nxc$/i,/^Nxc$/i],["oberon-icon",["medium-purple","medium-purple"],/\.ob2$/i,,,/\.oberon$/i,/^[0o]ber[0o]n$/i],["objc-icon",["medium-blue","medium-blue"],/\.mm?$/i,,,/\.objc(?:pp)?$/i,/^[0o]bjective[\W_ \t]?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,,,/\.objj$/i,/^[0o]bjective[\W_ \t]?J$|^(?:Obj-?J|ObjectiveJ)$/i],["objj-icon",["dark-red","dark-red"],/\.sj$/i],["ocaml-icon",["medium-orange","medium-orange"],/\.ml$/i,,/ocaml(?:run|script)?/,/\.ocaml$/i,/^[0o]caml$/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,,/^ocamllex$/,/\.ocamllex$/i,/^[0o]caml$|^[0o]camllex$/i],["ocaml-icon",["dark-yellow","dark-yellow"],/\.mly$/i,,/^menhir$/,/\.menhir$/i,/^[0o]caml$|^menhir$/i],["octave-icon",["medium-orange","medium-orange"],/\.octave$|\.octave_hist$/i,,,/\.octave$/i,/^[0o]ctave$/i],["octave-icon",["dark-orange","dark-orange"],/\.octaverc$/i],["odin-icon",["medium-blue","medium-blue"],/\.odin$/i,,/^odin$/,/\.odin$/i,/^[0o]din$/i],["ooc-icon",["medium-green","medium-green"],/\.ooc$/i,,,/\.ooc$/i,/^[0o][0o]c$/i],["opa-icon",["medium-blue","medium-blue"],/\.opa$/i,,,/\.opa$/i,/^[0o]pa$/i],["openpolicy-icon",["medium-cyan","medium-cyan"],/\.rego$/i,,,/\.rego$/i,/^[0o]pen[\W_ \t]?P[0o]licy[\W_ \t]?Agent$/i],["opencl-icon",["medium-red","medium-red"],/\.opencl$/i,,,/\.opencl$/i,/^[0o]pen[\W_ \t]?Cl$/i],["progress-icon",["medium-green","medium-green"],/\.(?:p|abl)$/i,,,/\.abl$/i,/^[0o]pen[\W_ \t]?Edge[\W_ \t]?Abl$|^(?:progress|openedge|abl)$/i],["opengl-icon",["dark-cyan","dark-cyan"],/\.(?:glslv?|gsh|gshader)$/i,,,/\.glsl$/i,/^[0o]pen[\W_ \t]?Gl[\W_ \t]?Shading[\W_ \t]?Language$|^(?:GLSL|GLslang)$/i],["vertex-icon",["medium-blue","medium-blue"],/\.(?:vert|vrx|vertex|vsh(?:ader)?)$/i],["vertex-icon",["medium-red","medium-red"],/\.(?:fra?g|fp|fsh|fshader)$/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,,,/\.scad$/i,/^[0o]pen[\W_ \t]?Scad$/i],["scad-icon",["medium-yellow","medium-yellow"],/\.jscad$/i],["openvms-icon",["medium-blue","medium-blue"],/\.hlb$/i],["openvms-icon",["medium-orange","medium-orange"],/\.cld$/i],["openvpn-icon",["medium-orange","medium-orange"],/\.ovpn$/i],["org-icon",["dark-green","dark-green"],/\.org$/i],["osx-icon",["medium-red","medium-red"],/\.dmg$/i],["ox-icon",["medium-cyan","dark-cyan"],/\.ox$/i,,,/\.ox$/i,/^[0o]x$/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,,,/\.oxygene$/i,/^[0o]xygene$/i],["oz-icon",["medium-yellow","medium-yellow"],/\.oz$/i,,,/\.oz$/i,/^[0o]z$/i],["p4-icon",["dark-purple","dark-purple"],/\.p4$/i,,,/\.p4$/i,/^P4$/i],["pan-icon",["medium-red","medium-red"],/\.pan$/i,,,/^source.pan$/,/^Pan$/i],["papyrus-icon",["medium-green","medium-green"],/\.psc$/i,,,/(?:^|\.)(?:papyrus\.skyrim|compiled-?papyrus|papyrus-assembly)(?:\.|$)/i,/^Papyrus$/i],["parrot-icon",["medium-green","medium-green"],/\.parrot$/i,,/^parrot$/],["parrot-icon",["dark-green","dark-green"],/\.pasm$/i,,,/\.parrot\.pasm$/i,/^Parr[0o]t$|^pasm$/i],["parrot-icon",["dark-blue","dark-blue"],/\.pir$/i,,,/\.parrot\.pir$/i,/^Parr[0o]t$|^pir$/i],["pascal-icon",["medium-purple","medium-purple"],/\.pas(?:cal)?$/i,,/pascal|instantfpc/,/\.pascal$/i,/^Pascal$/i],["pascal-icon",["dark-purple","dark-purple"],/\.lpr$/i],["pascal-icon",["medium-blue","medium-blue"],/\.lfm$|\.or$/i],["pascal-icon",["medium-red","medium-red"],/\.lps$/i],["pascal-icon",["dark-blue","dark-blue"],/\.lpi$/i],["pascal-icon",["dark-cyan","dark-cyan"],/\.lpk$/i],["pascal-icon",["medium-maroon","medium-maroon"],/\.lrs$/i],["pascal-icon",["dark-red","dark-red"],/\.lrt$/i],["pascal-icon",["medium-cyan","medium-cyan"],/\.ppu$/i],["patch-icon",["medium-green","medium-green"],/\.patch$/i],["pawn-icon",["medium-orange","medium-orange"],/\.pwn$/i,,,/\.pwn$/i,/^Pawn$/i],["pcd-icon",["medium-green","medium-green"],/\.pcd$/i],["icon-file-pdf",["medium-red","medium-red"],/\.pdf$/i],["peg-icon",["medium-red","medium-red"],/\.pegjs$/i,,/^pegjs$/,/\.pegjs$/i,/^pegjs$/i],["peg-icon",["medium-maroon","medium-maroon"],/\.pegcoffee$/i,,/^pegcoffee$/,/\.pegcoffee$/i,/^Peg[\W_ \t]?Js$|^pegc[0o]ffee$/i],["perl-icon",["medium-blue","medium-blue"],/\.p(?:er)?l$/i,,/^c?perl5?$/,/\.perl$/i,/^C?Perl$/i],["perl-icon",["dark-blue","dark-blue"],/\.al$|\.pm$/i],["perl-icon",["dark-purple","dark-purple"],/\.ph$/i],["perl-icon",["medium-purple","medium-purple"],/\.plx$/i],["perl-icon",["medium-red","medium-red"],/\.(?:psgi|xs)$/i],["phalcon-icon",["medium-cyan","medium-cyan"],/\.volt$/i,,,/\.volt$/i,/^Phalc[0o]n$/i],["php-icon",["dark-blue","dark-blue"],/\.php(?:[st\d]|_cs)?$/i,,/^php$/,/\.php$/i,/^Php$/i],["php-icon",["dark-green","dark-green"],/^Phakefile/],["php-icon",["medium-blue","medium-blue"],/\.engine$/i],["php-icon",["medium-red","medium-red"],/\.phar$/i],["pickle-icon",["dark-cyan","dark-cyan"],/\.(?:pkl|pickle)$/i],["pico8-icon",["medium-red","medium-red"],/\.p8$/i,,/^pico-8$/,/\.p8$/i,/^pico\W8$/i],["pike-icon",["dark-cyan","dark-cyan"],/\.pike$/i,,/^pike$/],["pike-icon",["medium-blue","medium-blue"],/\.pmod$/i],["pinescript-icon",["medium-green","medium-green"],/\.pine$/i,,,/\.pine$/i,/^Pine[\W_ \t]?Script$/i],["pipenv-icon",["dark-blue","dark-blue"],/^Pipfile(?:\.lock)?$/i],["sql-icon",["medium-red","medium-red"],/\.pls$|\.plsql$/i,,,/\.plsql(?:\.oracle)?(?:\.|$)/i,/^Plsql$/i],["sql-icon",["medium-orange","medium-orange"],/\.pck$/i],["sql-icon",["medium-blue","medium-blue"],/\.pks$/i],["sql-icon",["medium-purple","medium-purple"],/\.plb$/i],["sql-icon",["dark-red","dark-red"],/\.pkb$/i],["pod-icon",["dark-blue","dark-blue"],/\.pod$/i],["pogo-icon",["medium-orange","dark-orange"],/\.pogo$/i,,,/\.pogoscript$/i,/^P[0o]g[0o][\W_ \t]?Script$/i],["pony-icon",["light-maroon","light-maroon"],/\.pony$/i,,,/\.pony$/i,/^P[0o]ny$/i],["postcss-icon",["dark-red","dark-red"],/\.p(?:ost)?css$/i,,/^postcss$/,/\.postcss$/i,/^p[0o]stcss$/i],["postcss-icon",["dark-pink","dark-pink"],/\.sss$/i,,/^sugarss$/,/\.sugarss$/i,/^P[0o]st[\W_ \t]?Css$|^sugarss$/i],["pgsql-icon",["dark-blue","dark-blue"],/\.pgsql$/i],["postscript-icon",["medium-red","medium-red"],/\.ps$/i,,,/\.postscript$/i,/^P[0o]st[\W_ \t]?Script$|^p[0o]stscr$/i],["postscript-icon",["medium-orange","medium-orange"],/\.eps$/i],["postscript-icon",["dark-blue","dark-blue"],/\.pfa$/i],["postscript-icon",["medium-green","medium-green"],/\.a[fm]m$/i,,,/\.afm$/i,/^P[0o]st[\W_ \t]?Script$/i],["postscript-icon",["dark-orange","dark-orange"],/\.eps[fi]$|\.gsf$/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,,/^pwsh$/,/\.powershell$/i,/^P[0o]wer[\W_ \t]?Shell$|^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],["prisma-icon",["dark-blue","dark-blue"],/\.prisma$/i],["processing-icon",["dark-blue","dark-blue"],/\.pde$/i,,,/\.processing$/i,/^Pr[0o]cessing$/i],["prolog-icon",["medium-blue","medium-blue"],/\.pro$/i,,/^swipl$/,/\.prolog$/i,/^Pr[0o]l[0o]g$/i],["prolog-icon",["medium-cyan","medium-cyan"],/\.prolog$/i],["prolog-icon",["medium-purple","medium-purple"],/\.yap$/i,,/^yap$/],["propeller-icon",["medium-orange","medium-orange"],/\.spin$/i,,,/\.spin$/i,/^Pr[0o]peller[\W_ \t]?Spin$/i],["pug-icon",["medium-red","medium-red"],/\.pug$/i,,,/\.pug$/i,/^Pug$/i],["puppet-icon",["medium-purple","medium-purple"],/\.pp$/i,,/^puppet$/,/\.puppet$/i,/^puppet$/i],["puppet-icon",["medium-orange","medium-orange"],/\.epp$/i],["puppet-icon",["dark-blue","dark-blue"],/Modulefile$/i],["pure-icon",["medium-grey","medium-grey"],/\.pure$/i,,/^pure$/,/\.pure$/i,/^Pure$/i],["purebasic-icon",["medium-red","medium-red"],/\.pb$/i,,/^purebasic$/,/\.purebasic$/i,/^purebasic$/i],["purebasic-icon",["dark-orange","dark-orange"],/\.pbi$/i],["purescript-icon",["dark-purple","dark-purple"],/\.purs$/i,,,/\.purescript$/i,/^Pure[\W_ \t]?Script$/i],["pyret-icon",["dark-red","dark-red"],/\.arr$/i,,/^pyret$/,/^source\.arr$/,/^Pyret$/i],["python-icon",["dark-blue","dark-blue"],/\.py$|\.py3$|\.?(?:pypirc|pythonrc|python-venv)$/i,,/python[\d.]*/,/\.python$/i,/^Pyth[0o]n$|^rusth[0o]n$/i],["python-icon",["medium-blue","medium-blue"],/\.ipy$|\.pyi$/i],["python-icon",["dark-green","dark-green"],/\.isolate$|\.gypi$|\.pyt$/i],["python-icon",["medium-orange","medium-orange"],/\.pep$|\.pyde$/i,,/^pep8$/,/\.pep8$/i,/^Pyth[0o]n$|^pep8$/i],["python-icon",["medium-green","medium-green"],/\.gyp$|\.smk$/i],["python-icon",["dark-purple","dark-purple"],/\.pyp$/i],["python-icon",["medium-maroon","medium-maroon"],/\.pyw$/i],["python-icon",["dark-red","dark-red"],/\.pyz$|\.wsgi$/i],["python-icon",["dark-pink","dark-pink"],/\.tac$/i],["python-icon",["medium-yellow","dark-yellow"],/\.xpy$/i],["python-icon",["medium-pink","medium-pink"],/\.rpy$/i,,,/\.renpy$/i,/^Pyth[0o]n$|^Ren'?Py$/i],["python-icon",["dark-green","dark-green"],/^(?:SConstruct|SConscript)$/],["python-icon",["medium-green","medium-green"],/^(?:Snakefile|WATCHLISTS)$/],["python-icon",["dark-maroon","dark-maroon"],/^wscript$/],["qsharp-icon",["dark-purple","dark-purple"],/\.qs$/i,,,/\.source\.qsharp$/i,/^Q#$|^qsharp$/i],["kx-icon",["medium-blue","medium-blue"],/\.q$/i,,,/^source\.q$/,/^[Qq]\/[Kk][dD][bB]+$|^Kdb\s*\+$/],["kx-icon",["dark-purple","dark-purple"],/\.k$/i,,,/^source\.k4$/,/^Q\/?Kdb\+?$/i],["qiskit-icon",["dark-blue","dark-blue"],/\.qasm$/i,,,/\.qasm$/i,/^Qasm$|^[0o]pen[\W_ \t]?Qasm$/i],["qlik-icon",["medium-green","medium-green"],/\.qvw$/i],["qlik-icon",["dark-green","dark-green"],/\.qvd$/i],["qt-icon",["medium-green","medium-green"],/\.qml$/i,,/^qml$/,/\.qml$/i,/^Qt$|^qml$/i],["qt-icon",["dark-green","dark-green"],/\.qmlproject$/i],["qt-icon",["medum-cyan","medum-cyan"],/\.qbs$/i],["r-icon",["medium-blue","medium-blue"],/\.(?:r|Rprofile|Rhistory|rsx|rd)$/i,,/^Rscript$/,/\.r$/i,/^R$|^(?:Rscript|splus|Rlang)$/i],["racket-icon",["medium-red","medium-red"],/\.rkt$/i,,/^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,,/^scribble$/,/\.scribble$/i,/^Racket$|^scribble$/i],["perl6-icon",["medium-purple","medium-purple"],/\.pl6$/i,,/^perl6$/,/(?:^|\.)perl6(?:fe)?(?=\.|$)/,/^Raku$|^(?: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$|\.rakutest$/i],["perl6-icon",["medium-blue","medium-blue"],/\.p6l$|\.raku$/i],["perl6-icon",["dark-green","dark-green"],/\.pod6$/i],["perl6-icon",["dark-blue","dark-blue"],/\.rakumod$/i],["perl6-icon",["medium-green","medium-green"],/^Rexfile$/],["raml-icon",["medium-cyan","medium-cyan"],/\.raml$/i,,,/\.raml$/i,/^Raml$/i],["rascal-icon",["medium-yellow","medium-yellow"],/\.rsc$/i,,,/\.rascal$/i,/^Rascal$/i],["rdata-icon",["medium-red","medium-red"],/\.Rdata$/i],["rdata-icon",["medium-orange","medium-orange"],/\.rdb$/i],["rdata-icon",["medium-yellow","medium-yellow"],/\.rds$/i],["rdata-icon",["medium-maroon","medium-maroon"],/\.rdx$/i],["rdoc-icon",["medium-red","medium-red"],/\.rdoc$/i,,,/\.rdoc$/i,/^Rd[0o]c$/i],["book-icon",["medium-blue","medium-blue"],/\.changes$|\.journal$|\.faq$/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,,/^reason$/,/\.reason$/i,/^reas[0o]n$/i],["reason-icon",["medium-orange","medium-orange"],/\.rei$/i],["reasonstudios-icon",["medium-orange","medium-orange"],/\.reason$|\.rsn$/i],["reasonstudios-icon",["dark-orange","dark-orange"],/\.rns$/i],["reasonstudios-icon",["medium-red","medium-red"],/\.rx2$/i],["reasonstudios-icon",["medium-yellow","medium-yellow"],/\.sxt$/i],["rebol-icon",["dark-green","dark-green"],/\.reb(?:ol)?$/i,,/^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,,,/\.red$/i,/^Red$|^red\/?system$/i],["red-icon",["light-red","light-red"],/\.reds$/i],["red-hat-icon",["medium-red","medium-red"],/\.rpm(?:macros)?$/i],["red-hat-icon",["dark-red","dark-red"],/\.spec$/i],["reek-icon",["medium-red","medium-red"],/\.reek$/i],["regex-icon",["medium-green","medium-green"],/\.regexp?$/i,,,/(?:\.|^)regexp?(?:\.|$)/i,/^Reg[\W_ \t]?Exp$/i],["rst-icon",["dark-blue","dark-blue"],/\.re?st(?:\.txt)?$/i,,,/\.restructuredtext$/i,/^re[\W_ \t]?Structured[\W_ \t]?Text$|^re?st$/i],["rexx-icon",["medium-red","medium-red"],/\.rexx?$/i,,/rexx|regina/i,/\.rexx$/i,/^Rexx$/i],["rexx-icon",["medium-blue","medium-blue"],/\.pprx$/i],["rhino-icon",["medium-blue","medium-blue"],/\.3dm$/i],["rhino-icon",["medium-green","medium-green"],/\.rvb$/i,,/^rhino$/,/\.rhino$/i,/^Rhin[0o]3[\W_ \t]?D$|^rhin[0o]$/i],["ring-icon",["medium-purple","medium-purple"],/\.ring$/i,,,/\.ring$/i,/^Ring$/i],["riot-icon",["medium-red","medium-red"],/\.tag$/i,,,/\.riot$/i,/^Ri[0o]t[\W_ \t]?Js$/i],["rmarkdown-icon",["medium-red","medium-red"],/\.(?:rmd|rmarkdown)$/i],["robot-icon",["medium-cyan","medium-cyan"],/\.robot$/i],["manpage-icon",["dark-green","dark-green"],/\.(?:1(?:[bcmstx]|has|in)?|[24568]|3(?:avl|bsm|cfgadm|in|[cmx]|perl|pm?|qt)?|7(?:d|fs|i|ipp|m|p)?|9[efps]?|chem|eqn|groff|man|mandoc|mdoc|me|mom|nr?|nroff|pic|roff?|tmac|tmac-u|tr|troff)$|^(?:man|mdoc)\.template$|(?:^|\.)(?:(?:troff|eqn)rc(?:-end)?)$/i,,/man|mandoc|(?:[gnt]|dit)?roff/i,/\.[gtn]?roff$/i,/^(?:[gtn]?roff|man(?:[-_\s]?page|doc)?|mdoc)$/i],["manpage-icon",["dark-maroon","dark-maroon"],/\.(?:rnh|rno|run|runoff)$/i,,/^runoff$/,/\.runoff$/i,/^R[0o]ff$|^run[0o]ff$/i],["manpage-icon",["dark-green","dark-green"],/(\\|\/)(?:man(\w+)\1[^\\\/]+\.\2|(?:tmac|eqnchar)\.d\1(?:ms\.)?[^\\\/.]+(?:\.in)?|picasso\1(?:defs\.\w+|disclaimer))$/],["clojure-icon",["medium-red","medium-red"],/\.rg$/i],["rspec-icon",["medium-red","medium-red"],/\.rspec$/i],["rss-icon",["medium-orange","medium-orange"],/\.rss$/i],["rstudio-icon",["light-blue","light-blue"],/\.rproj$/i],["ruby-icon",["medium-red","medium-red"],/\.(?:rb|ru|ruby|erb|gemspec|god|mspec|pluginspec|podspec|rabl|rake|opal)$|^\.?(?:irbrc|gemrc|pryrc|ruby-(?:gemset|version))$/i,,/(?:mac|j)?ruby|rake|rbx/,/\.ruby$/i,/^Ruby$|^(?:rbx?|rake|jruby|macruby)$/i],["ruby-icon",["medium-red","medium-red"],/^(?:Appraisals|(?:Rake|App|[bB]uild|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,,/^rust$/,/\.rust$/i,/^rust$/i],["rust-icon",["light-maroon","light-maroon"],/\.rlib$/i],["rust-icon",["medium-red","medium-red"],/^rust-toolchain$/],["sac-icon",["medium-yellow","medium-yellow"],/\.sac$/i,,,/\.sac$/i,/^Sac$/i],["safari-icon",["medium-blue","medium-blue"],/\.webarchive$/i],["sage-icon",["medium-blue","medium-blue"],/\.sage$/i,,/^sage$/,/\.sage$/i,/^sage$/i],["sage-icon",["dark-blue","dark-blue"],/\.sagews$/i],["sails-icon",["medium-blue","medium-blue"],/^\.sailsrc$/i],["saltstack-icon",["medium-blue","dark-blue"],/\.sls$/i,,,/\.salt$/i,/^Salt[\W_ \t]?Stack$|^Salt(?:State)?$/i],["san-icon",["medium-cyan","medium-cyan"],/\.san$/i,,,/\.san$/i,/^San$/i],["sas-icon",["medium-blue","medium-blue"],/\.sas$/i,,,/\.sas$/i,/^Sas$/i],["sass-icon",["light-pink","light-pink"],/\.scss$/i,,/^scss$/,/\.scss$/i,/^Sass$|^scss$/i],["sass-icon",["dark-pink","dark-pink"],/\.sass$/i,,/^sass$/,/\.sass$/i,/^sass$/i],["sbt-icon",["dark-purple","dark-purple"],/\.sbt$/i],["scala-icon",["medium-red","medium-red"],/\.(?:sc|scala)$/i,,/^scala$/,/\.scala$/i,/^scala$/i],["scala-icon",["medium-green","medium-green"],/\.kojo$/i],["scheme-icon",["medium-red","medium-red"],/\.scm$/i,,/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,,/^scilab$/,/\.scilab$/i,/^scilab$/i],["scilab-icon",["dark-blue","dark-blue"],/\.sce$/i],["scilab-icon",["dark-cyan","dark-cyan"],/\.tst$/i],["scilla-icon",["medium-orange","medium-orange"],/\.scilla$/i,,,/\.scilla$/i,/^Scilla$/i],["scratch-icon",["dark-orange","dark-orange"],/\.sb2$/i],["scratch-icon",["medium-orange","medium-orange"],/\.sb3$/i],["secret-icon",[null,null],/\.secret$/i],["self-icon",["dark-blue","dark-blue"],/\.self$/i,,,/\.self$/i,/^Self$/i],["sentry-icon",["medium-red","light-red"],/\.sentryclirc$/i],["graph-icon",["light-red","light-red"],/\.csv$/i,,,/(?:^|\.)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],["graph-icon",["dark-blue","dark-blue"],/\.prn$/i],["sf-icon",["light-orange","light-orange"],/\.sfproj$/i],["terminal-icon",["medium-purple","medium-purple"],/\.(?:sh|rc|bash|tool|install|command)$/i,,/^(?:[bd]ash|a?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)$|^\/(?:private\/)?etc\/(?:[^\/]+\/)*(?:profile$|nanorc$|rc\.|csh\.)|\.profile$/i],["terminal-icon",["dark-yellow","dark-yellow"],/\.(?:ksh|mksh|pdksh)$/i,,/^(?:ksh|mksh(?:-static)?|pdksh|lksh)$/i,/\.ksh-shell$/i],["terminal-icon",["medium-yellow","dark-yellow"],/\.sh-session$/i,,,/\.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,,/^fish$/,/\.fish$/i,/^fish$/i],["terminal-icon",["medium-red","medium-red"],/^\.?(?:login|profile)$|^(?:configure|config\.(?:guess|rpath|status|sub)|depcomp|libtool|compile)$/],["terminal-icon",["medium-green","medium-green"],/^\.?_?dir_?colors$/i,,/^dircolors$/,/\.dircolors$/i,/^dirc[0o]l[0o]rs$/i],["terminal-icon",["medium-red","medium-red"],/\.inputrc$/i,,,/\.inputrc$/i,/^Readline[\W_ \t]?C[0o]nfig$/i],["terminal-icon",["medium-orange","medium-orange"],/^\.?cshrc$/i],["terminal-icon",["medium-yellow","medium-yellow"],/\.csh$/i],["shen-icon",["dark-cyan","dark-cyan"],/\.shen$/i],["shopify-icon",["medium-green","medium-green"],/\.liquid$/i],["filter-icon",["medium-red","medium-red"],/\.sieve$/i,,/^pigeonhole$/,/\.sieve$/i,/^Sieve$/i],["sigils-icon",["dark-red","dark-red"],/\.sigils$/i],["sgi-icon",["medium-orange","medium-orange"],/\.(?:sgi|iris)$/i],["silverstripe-icon",["medium-blue","medium-blue"],/\.ss$/i,,,/(?:^|\.)ss(?:template)?(?:\.|$)/i,/^Silver[\W_ \t]?Stripe$/i],["sketch-icon",["medium-orange","medium-orange"],/\.sketch$/i],["sketchup-lo-icon",["medium-red","dark-red"],/\.layout$/i],["sketchup-mk-icon",["medium-red","medium-red"],/\.skp$/i],["sketchup-sb-icon",["medium-red","dark-red"],/\.style$/i],["anchor-icon",["dark-blue","dark-blue"],/\.eskip$/i,,,/\.eskip$/i,/^Skipper$/i],["slash-icon",["dark-blue","dark-blue"],/\.sl$/i,,,/\.slash$/i,/^Slash$/i],["smarty-icon",["medium-yellow","dark-yellow"],/\.tpl$/i,,,/\.smarty$/i,/^Smarty$/i],["snort-icon",["light-red","light-red"],/\.snort$/i,,,/\.snort$/i,/^Sn[0o]rt$/i],["snyk-icon",["dark-purple","dark-purple"],/\.snyk$/i],["solidity-icon",["dark-cyan","dark-cyan"],/\.sol(?:idity)?$/i,,,/\.solidity$/i,/^S[0o]lidity$/i],["sophia-icon",["dark-pink","dark-pink"],/\.aes$/i,,,/\.sophia$/i,/^S[0o]phia$/i],["sorbet-icon",["medium-purple","dark-purple"],/\.rbi$/i],["clojure-icon",["medium-yellow","dark-yellow"],/\.(?:sma|sp)$/i,,,/\.sp$/i,/^S[0o]urce[\W_ \t]?Pawn$|^s[0o]urcem[0o]d$/i],["clojure-icon",["medium-green","medium-green"],/\.inc$/i],["spacemacs-icon",["medium-purple","medium-purple"],/(?:^|\.)spacemacs$/i,,/^spacemacs$/,/\.spacemacs$/i,/^Spacemacs$/i],["sparql-icon",["medium-blue","medium-blue"],/\.sparql$/i,,,/\.rq$/i,/^Sparql$/i],["sparql-icon",["dark-blue","dark-blue"],/\.rq$/i],["sqf-icon",["dark-maroon","dark-maroon"],/\.sqf$/i,,/^sqf$/,/\.sqf$/i,/^sqf$/i],["sqf-icon",["dark-red","dark-red"],/\.hqf$/i],["sql-icon",["medium-orange","medium-orange"],/\.(?:my)?sql$/i,,/^sql$/,/\.sql$/i,/^sql$/i],["sql-icon",["medium-blue","medium-blue"],/\.ddl$|\.4gl$/i,,,/4GL(?:\.|$)/i],["sql-icon",["medium-green","medium-green"],/\.udf$|\.spsql$/i],["sql-icon",["medium-red","medium-red"],/\.hql$/i],["sql-icon",["dark-cyan","dark-cyan"],/\.viw$/i],["sql-icon",["dark-blue","dark-blue"],/\.prc$|\.cql$/i],["sql-icon",["medium-purple","medium-purple"],/\.db2$/i],["sql-icon",["medium-cyan","medium-cyan"],/\.per$/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],["squarespace-icon",["dark-purple","dark-purple"],/\.jsont$/i,,,/\.jsont$/i,/^Square[\W_ \t]?Space$|^(?:json[-_]?t|json[-_\s]?template)$/i],["squirrel-icon",["medium-maroon","medium-maroon"],/\.nut$/i,,,/\.nut$/i,/^Squirrel$/i],["squirrel-icon",["medium-red","medium-red"],/\.gnut$/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,,,/\.stan$/i,/^Stan$/i],["bazel-icon",["dark-green","dark-green"],/^(?:\.bazelrc|bazel\.rc|bazel\.bazelrc)$/i,,/^bazel$/],["bazel-icon",["medium-green","medium-green"],/^(?:BUILD|WORKSPACE)(?:.[Bb][Aa][Zz][Ee][Ll])?$/,,,/^source\.build$|(?:^|\.)bazel(?:\.|$)/i,/^Starlark$/i],["bazel-icon",["dark-blue","dark-blue"],/\.(?:bzl|star)$/i,,,/(?:^|\.)(?:bzl|skylark)(?:\.|$)/i,/^Starlark$|^(?:Bazel|Skylark)$/i],["stata-icon",["medium-blue","medium-blue"],/\.do$/i,,/^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,,/^mata$/,/\.mata$/i,/^Stata$|^mata$/i],["stata-icon",["light-cyan","light-cyan"],/\.matah$/i],["stata-icon",["medium-purple","medium-purple"],/\.sthlp$/i],["stencil-icon",["medium-orange","medium-orange"],/\.stencil$/i,,,/\.stencil$/i,/^Stencil$/i],["storyist-icon",["medium-blue","medium-blue"],/\.story$/i],["strings-icon",["medium-red","medium-red"],/\.strings$/i,,,/\.strings$/i,/^Strings$/i],["stylus-icon",["medium-green","medium-green"],/\.(?:styl|stylus)$/i,,,/\.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,,/sclang|scsynth/,/\.supercollider$/i,/^Super[\W_ \t]?C[0o]llider$/i],["svelte-icon",["medium-orange","medium-orange"],/\.svelte$/i,,,/\.svelte$/i,/^Svelte$/i],["svg-icon",["dark-yellow","dark-yellow"],/\.svg$/i,,,/\.svg$/i,/^Svg$/i],["swagger-icon",["dark-green","dark-green"],/\.swagger-codegen-ignore$/i],["swift-icon",["medium-orange","medium-orange"],/\.swift$/i,,,/\.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],["tag-icon",["medium-cyan","medium-cyan"],/\.hgtags$|^localtags$/i],["tag-icon",["medium-orange","medium-orange"],/\.pid$/i],["tag-icon",["medium-maroon","medium-maroon"],/\.tld$/i],["tag-icon",["medium-green","medium-green"],/(?:\.|^)sha(?:256|sum)?$/i],["tcl-icon",["dark-orange","dark-orange"],/\.tcl$/i,,/tclsh|wish/,/\.tcl$/i,/^Tcl$/i],["tcl-icon",["medium-orange","medium-orange"],/\.adp$/i],["tcl-icon",["medium-red","medium-red"],/\.tm$/i],["tcl-icon",["dark-blue","dark-blue"],/\.exp$/i],["tcl-icon",["medium-cyan","medium-cyan"],/^\.tkcvs/i],["tcl-icon",["dark-red","dark-red"],/^\.tkdiffrc$/],["coffee-icon",["medium-orange","medium-orange"],/\.tea$/i,,,/\.tea$/i,/^Tea$/i],["tfs-icon",["dark-purple","dark-purple"],/\.tfignore$/i],["telegram-icon",["medium-blue","medium-blue"],/\.tl$/i,,,/\.tl$/i,/^Telegram$|Type\s*Language/i],["telegram-icon",["light-blue","light-blue"],/\.xps$/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],["tern-icon",["medium-purple","medium-purple"],/\.tern-config$/i],["terraform-icon",["dark-purple","dark-purple"],/\.tf(?:vars)?$/i,,,/\.terra(?:form)?$/i,/^Terraf[0o]rm$/i],["terraform-icon",["medium-cyan","medium-cyan"],/\.tfstate(?:\.backup)?$/i],["test-generic-icon",["medium-grey","dark-grey"],/\.bats$/i,,/^bats$/,/\.bats$/i,/^Test,[\W_ \t]?Generic$|^Bats$/i],["test-generic-icon",["dark-green","dark-green"],/\.xspec$/i],["test-perl-icon",["medium-blue","dark-blue"],/\.t$/i],["tex-icon",["medium-blue","dark-blue"],/\.tex$|\.ltx$|\.lbx$/i,,,/(?:^|\.)latex(?:\.|$)/i,/^Te[\W_ \t]?X$|^latex$/i],["tex-icon",["medium-green","dark-green"],/\.aux$|\.ins$/i],["tex-icon",["medium-red","dark-red"],/\.sty$/i,,,/(?:^|\.)tex(?:\.|$)/i,/^Te[\W_ \t]?X$/i],["tex-icon",["medium-maroon","dark-maroon"],/\.dtx$/i],["tex-icon",["medium-orange","dark-orange"],/\.cls$|\.mkiv$|\.mkvi$|\.mkii$/i],["tex-icon",["medium-purple","dark-purple"],/\.pgf$/i,,/^pgf$/,/\.pgf$/i,/^Te[\W_ \t]?X$|^pgf$/i],["tex-icon",["medium-purple","dark-purple"],/\.tikz$/i,,/^tikz$/,/\.tikz$/i,/^Te[\W_ \t]?X$|^tikz$/i],["tex-icon",["medium-red","dark-red"],/\.(?:texi(?:nfo)?|txi)$/i,,/^texinfo$/,/\.texinfo$/i,/^Te[\W_ \t]?X$|^texinf[0o]$/i],["icon-file-text",["medium-blue","medium-blue"],/\.te?xt$|\.dri$|\.irclog$|\.uot$/i],["icon-file-text",["medium-maroon","medium-maroon"],/\.log$|^Terminal[-_\s]Saved[-_\s]Output$|\.brf$|\.rpt$/i],["icon-file-text",["dark-red","dark-red"],/\.git[\/\\]description$|(\\|\/)share(?:\1misc)?\1(?:operator|mail\.(?:tilde)?help)$/],["icon-file-text",["medium-red","medium-red"],/\.err$|\.std(?:err|out)$|\.no$|^(?:bug-report|fdl|for-release|tests)$/i],["icon-file-text",["dark-red","dark-red"],/\.rtf$|\.uof$/i],["icon-file-text",["dark-blue","dark-blue"],/\.(?:i?nfo|lcov)$/i,,/^lcov$/,/\.lcov$/i,/^Text$|^lc[0o]v$/i],["icon-file-text",["dark-purple","dark-purple"],/\.abt$|\.sub$/i],["icon-file-text",["dark-orange","dark-orange"],/\.ans$/i],["icon-file-text",["medium-yellow","medium-yellow"],/\.etx$/i],["icon-file-text",["medium-purple","medium-purple"],/\.more$|\.srt$|\.uop$/i,,,/\.srt$/i],["icon-file-text",["medium-orange","medium-orange"],/\.msg$/i],["icon-file-text",["medium-cyan","medium-cyan"],/\.(?:utxt|utf8)$/i],["icon-file-text",["medium-green","medium-green"],/\.weechatlog$|\.uos$/i],["textile-icon",["medium-orange","medium-orange"],/\.textile$/i,,,/\.textile$/i,/^Textile$/i],["textmate-icon",["medium-green","medium-green"],/\.tmcg$/i,,,/\.tmcg$/i,/^Text[\W_ \t]?Mate$/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],["icon-paintcan",["medium-purple","medium-purple"],/\.theme$/i],["thor-icon",["medium-orange","medium-orange"],/\.thor$/i],["thor-icon",["dark-orange","dark-orange"],/^Thorfile$/i],["tilt-icon",["medium-green","medium-green"],/^Tiltfile$/i],["tipe-icon",["medium-cyan","medium-cyan"],/\.tipe$/i],["tla-icon",["medium-maroon","medium-maroon"],/\.tla$/i,,,/\.tla$/i,/^Tla\+?$/i],["toml-icon",["medium-green","medium-green"],/\.toml$/i,,,/\.toml$/i,/^T[0o]ml$/i],["tortoise-icon",["medium-red","medium-red"],/^.tgitconfig$/i],["tsx-icon",["light-blue","light-blue"],/\.tsx$/i,,,/\.tsx$/i,/^Tsx$/i],["ttcn3-icon",["medium-blue","medium-blue"],/\.ttcn3?$/i,,,/\.TTCN-3$/i,/^Ttcn[\W_ \t]?3$/i],["turing-icon",["medium-red","medium-red"],/\.tu$/i,,,/\.turing$/i,/^Turing$/i],["twig-icon",["medium-green","medium-green"],/\.twig$/i,,,/\.twig$/i,/^Twig$/i],["twine-icon",["medium-blue","medium-blue"],/\.tw$/i,,/^(?:Twine|Twee)$/i,/\.tw$/i,/^Twine[\W_ \t]?Script$|^Sugar[\W_ \t]?Cube$/i],["txl-icon",["medium-orange","medium-orange"],/\.txl$/i,,,/\.txl$/i,/^Txl$/i],["ts-icon",["medium-blue","medium-blue"],/\.ts$/i,,/\b(?:deno|tsc|ts-node)$/,/\.ts$/i,/^(?:ts|Type[-\s]*Script)$/i],["typo3-icon",["medium-orange","medium-orange"],/\.(?:typoscript|tsconfig)$/i],["scales-icon",["medium-green","dark-green"],/\.units$/i,,,/^source\.units(?:\.(?:gnu|bsd))?$/i,/^Units$/i],["scales-icon",["medium-red","dark-red"],/^\.?units[-_]?history$/i],["unity3d-icon",["dark-blue","dark-blue"],/\.anim$/i,,/^shaderlab$/,/\.shaderlab$/i,/^Unity3[\W_ \t]?D$|^shaderlab$/i],["unity3d-icon",["dark-green","dark-green"],/\.asset$|\.unitypackage$/i],["unity3d-icon",["medium-cyan","medium-cyan"],/\.cubemap$/i],["unity3d-icon",["medium-red","medium-red"],/\.mat$/i],["unity3d-icon",["dark-red","dark-red"],/\.meta$/i],["unity3d-icon",["dark-cyan","dark-cyan"],/\.physics?Material(?:2D)?$|\.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",["medium-grey","medium-grey"],/\.uc$/i,,,/\.uc$/i,/^Unreal$|^Unreal[\W_ \t]?Script$/i],["unreal-icon",["dark-blue","dark-blue"],/\.uasset$/i],["urweb-icon",["medium-maroon","medium-maroon"],/\.ur$/i,,,/\.ur$/i,/^Ur[\W_ \t]?Web$|^Ur(?:\/Web)?$/i],["urweb-icon",["dark-blue","dark-blue"],/\.urs$/i],["v8-icon",["medium-blue","medium-blue"],/^\.v8flags\b/],["vagrant-icon",["medium-cyan","medium-cyan"],/^Vagrantfile$/i],["vala-icon",["medium-purple","medium-purple"],/\.vala$/i,,/^vala$/,/\.vala$/i,/^vala$/i],["vala-icon",["dark-purple","dark-purple"],/\.vapi$/i],["source-icon",["medium-orange","medium-orange"],/\.bsp$/i],["source-icon",["medium-red","medium-red"],/\.vpk$/i],["source-icon",["dark-red","dark-red"],/\.vtfx$/i],["source-icon",["medium-blue","medium-blue"],/\.vmt$/i,,,/\.vmt$/i,/^Valve[\W_ \t]?S[0o]urce[\W_ \t]?Engine$|^Valve[\W_ \t]?Material[\W_ \t]?Type$/i],["source-icon",["dark-blue","dark-blue"],/\.vtf$/i],["source-icon",["medium-maroon","medium-maroon"],/\.vmf$/i],["source-icon",["medium-cyan","medium-cyan"],/\.res$/i],["varnish-icon",["dark-blue","dark-blue"],/\.vcl$/i,,,/(?:^|\.)(?:varnish|vcl)(?:\.|$)/i,/^Vcl$/i],["velocity-icon",["dark-blue","dark-blue"],/\.vm$/i,,,/\.velocity$/i,/^Vel[0o]city$/i],["zeit-icon",["medium-maroon","dark-maroon"],/^\.(?:vercel|now)ignore$/i],["verilog-icon",["dark-green","dark-green"],/\.v$/i,,/^(?:vvp|iverilog)$/i,/\.verilog$/i,/^Veril[0o]g$/i],["verilog-icon",["medium-red","medium-red"],/\.veo$/i],["vhdl-icon",["dark-green","dark-green"],/\.vhdl$/i,,/^vhdl$/,/\.vhdl$/i,/^vhdl$/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?$|\.avi$/i],["video-icon",["dark-blue","dark-blue"],/\.(?:mp4|m4v|h264)$|\.webm$/i],["video-icon",["medium-maroon","medium-maroon"],/\.asx$/i],["video-icon",["medium-cyan","medium-cyan"],/\.mov$/i],["video-icon",["medium-purple","medium-purple"],/\.mk(?:v|s|3d)$/i],["video-icon",["medium-red","medium-red"],/\.flv$|\.mpe?g$/i],["video-icon",["dark-purple","dark-purple"],/\.(?:asf|wmv)$/i],["video-icon",["medium-orange","medium-orange"],/\.(?:ogm|og[gv])$/i],["vim-icon",["medium-green","medium-green"],/\.(?:vim|[gn]?vimrc)$/i,,/Vim?/i,/\.viml$/i,/^(?:VimL?|NVim|Vim\s*Script)$/i],["vim-icon",["dark-green","dark-green"],/^[.gn_]?vim(?:rc|info)$|\.vmb$/i],["virtualbox-icon",["medium-blue","medium-blue"],/\.ova$/i],["virtualbox-icon",["medium-purple","medium-purple"],/\.ovf$/i],["virtualbox-icon",["medium-green","medium-green"],/\.vhd$/i],["virtualbox-icon",["dark-green","dark-green"],/\.vhdx$/i],["virtualbox-icon",["medium-blue","dark-blue"],/\.vbox_version$|\.vbox(?:-prev)?$/i],["vs-icon",["medium-blue","medium-blue"],/\.(?:vba?|fr[mx]|bas)$/i,,,/\.vbnet$/i,/^Visual[\W_ \t]?Studi[0o]$|^vb\.?net$/i],["vs-icon",["medium-red","medium-red"],/\.vbhtml$/i],["vs-icon",["medium-green","medium-green"],/\.vbs$/i],["vs-icon",["medium-cyan","medium-cyan"],/\.vsix$/i],["vs-icon",["dark-blue","dark-blue"],/\.csproj$|\.code-workspace$/i],["vs-icon",["dark-red","dark-red"],/\.vbproj$|\.modelproj$/i],["vs-icon",["medium-purple","medium-purple"],/\.vstemplate$/i],["vs-icon",["dark-orange","dark-orange"],/\.vsixmanifest$/i],["vs-icon",["medium-maroon","medium-maroon"],/\.builds$|\.wmaproj$/i],["vs-icon",["dark-purple","dark-purple"],/\.dbproj$/i],["vs-icon",["light-cyan","light-cyan"],/\.lsproj$/i],["vs-icon",["medium-orange","medium-orange"],/\.sln$|\.sqlproj$/i],["vs-icon",["light-red","light-red"],/\.njsproj$/i],["vs-icon",["medium-purple","dark-purple"],/\.vcxitems$/i],["vmware-icon",["medium-orange","dark-orange"],/\.vmdk$|\.vmx$|\.vmxf$/i],["vmware-icon",["medium-blue","dark-blue"],/\.nvram$|\.vmss$/i],["vmware-icon",["medium-green","medium-green"],/\.vmsd$|\.vmsn$/i],["vmware-icon",["medium-red","dark-red"],/\.vmtm$/i],["vue-icon",["light-green","light-green"],/\.vue$/i,,,/\.vue$/i,/^Vue$/i],["vyper-icon",["medium-grey","medium-grey"],/\.vy$/i,,/^vyper$/,/\.vyper$/i,/^Vyper$/i],["walt-icon",["medium-purple","medium-purple"],/\.walt$/i,,,/\.walt$/i,/^Walt$/i],["wdl-icon",["medium-blue","medium-blue"],/\.wdl$/i,,,/(?:^|\.)wdl(?=$|\.)/i,/^Wdl$|^W[0o]rkfl[0o]w[\W_ \t]?Descripti[0o]n[\W_ \t]?Language$/i],["owl-icon",["dark-blue","dark-blue"],/\.owl$/i],["wasm-icon",["medium-blue","medium-blue"],/\.was?t$/i,,/^wasmtime$/,/(?:^|\.)(?:webassembly|was[mt])(?:\.|$)/i,/^Web[\W_ \t]?Assembly$|^was[mti]$/i],["wasm-icon",["medium-red","medium-red"],/\.wasm$/i],["webgl-icon",["dark-red","dark-red"],/\.webgl$/i],["webhint-icon",["dark-purple","dark-purple"],/^\.hintrc$/i,,/^hint$/],["webvtt-icon",["dark-blue","dark-blue"],/\.vtt$/i,,,/^source\.vtt$/,/^Web[\W_ \t]?Vtt$/i],["wechat-icon",["medium-green","medium-green"],/\.wxml$/i],["wechat-icon",["medium-blue","medium-blue"],/\.wxss$/i],["wenyan-icon",["light-orange","light-orange"],/\.wy$/i,,/^wenyan$/,/^source\.wenyan$/,/^Wenyan$/i],["wget-icon",["medium-purple","medium-purple"],/^wgetrc$|\.wgetrc$/i,,/^wget$/,/\.wgetrc$/i,/^Wget$/i],["wget-icon",["medium-maroon","medium-maroon"],/\.wget-hsts$/i],["windows-icon",["medium-purple","medium-purple"],/\.bat$|\.cmd$/i,,,/(?:^|\.)(?:bat|dosbatch)(?:\.|$)/i,/^(?:bat|(?:DOS|Win)?Batch)$/i],["windows-icon",[null,null],/\.(?:exe|com|msi)$/i],["windows-icon",["medium-blue","medium-blue"],/\.reg$/i],["wix-icon",["medium-orange","medium-orange"],/\.wixproj$/i],["wix-icon",["medium-red","medium-red"],/\.wixobj$/i],["wix-icon",["dark-purple","dark-purple"],/\.wxs$/i],["wix-icon",["medium-orange","dark-orange"],/\.wxi$/i],["wix-icon",["medium-maroon","dark-maroon"],/\.wxl$|\.wix$/i],["wurst-icon",["medium-maroon","medium-maroon"],/\.wurst$/i,,,/\.wurst$/i,/^Wurst[\W_ \t]?Script$|^Wurst[\W_ \t]?Lang$/i],["x10-icon",["light-maroon","light-maroon"],/\.x10$/i,,,/\.x10$/i,/^X1[0o]$|^xten$/i],["x11-icon",["medium-orange","medium-orange"],/\.X(?:authority|clients|initrc|inputrc|profile|resources|session-errors|screensaver)$/i],["xamarin-icon",["light-blue","light-blue"],/\.workbook$/i],["xmos-icon",["medium-orange","medium-orange"],/\.xc$/i],["appstore-icon",["medium-blue","medium-blue"],/\.pbxproj$/i],["appstore-icon",["medium-cyan","medium-cyan"],/\.pbxuser$/i],["appstore-icon",["medium-orange","medium-orange"],/\.xccheckout$/i],["appstore-icon",["dark-purple","dark-purple"],/\.xcplugindata$/i],["appstore-icon",["dark-cyan","dark-cyan"],/\.xcrequiredplugins$|\.xcuserstate$/i],["appstore-icon",["medium-purple","medium-purple"],/\.xcscheme$/i],["appstore-icon",["dark-blue","dark-blue"],/\.xcscmblueprint$/i],["appstore-icon",["medium-green","medium-green"],/\.xcsettings$/i],["appstore-icon",["dark-red","dark-red"],/\.xcworkspacedata$/i],["appstore-icon",["medium-red","medium-red"],/\.mode\dv3$/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,,,/\.xq$/i,/^Xquery$/i],["xtend-icon",["dark-purple","dark-purple"],/\.xtend$/i,,,/\.xtend$/i,/^Xtend$/i],["yaml-icon",["medium-red","medium-red"],/\.ya?ml$/i],["yang-icon",["medium-yellow","medium-yellow"],/\.yang$/i,,,/\.yang$/i,/^Yang$/i],["yara-icon",["medium-red","medium-red"],/\.yara?$/i,,/^yara$/,/\.yara$/,/^Yara$/i],["yarn-icon",["dark-blue","dark-blue"],/\.(?:yarnrc|yarnclean|yarn-integrity)$/i],["yorick-icon",["medium-orange","medium-orange"],/\.yorick$/i,,/^yorick$/,/\.yorick$/i,/^Y[0o]rick$/i],["zbrush-icon",["dark-purple","dark-purple"],/\.zpr$/i],["zbrush-icon",["medium-red","dark-red"],/\.ztl$/i],["crafttweaker-icon",["medium-maroon","dark-maroon"],/\.zs$/i,,/^zenscript$/,/\.zenscript$/i,/^zenscript$/i],["zephir-icon",["medium-pink","medium-pink"],/\.zep$/i],["zig-icon",["medium-orange","medium-orange"],/\.zig$/i,,,/\.zig$/i,/^Zig$/i],["zimpl-icon",["medium-orange","medium-orange"],/\.(?:zimpl|zmpl|zpl)$/i],["zork-icon",["dark-cyan","dark-cyan"],/\.zap$/i,,,/\.zap$/i,/^Z[0o]rk[\W_ \t]?Assembly$|^Zap$/i],["zork-icon",["dark-green","dark-green"],/\.xzap$|^s4\.errors$/i],["zork-icon",["medium-red","medium-red"],/\.zabstr?$/i],["zork-icon",["dark-blue","dark-blue"],/\.zil$/i,,,/\.zil$/i,/^Z[0o]rk[\W_ \t]?Interpreter[\W_ \t]?Language$|^Zil$/i],["zork-icon",["medium-maroon","medium-maroon"],/\.mud$/i],["dotjs-icon",["medium-blue","medium-blue"],/\.dot$/i,.9,/^dotjs$/,/\.dotjs$/i,/^d[0o][\W_ \t]?T\.?js$|^d[0o]tjs$/i],["openvms-icon",["medium-orange","medium-orange"],/\.com$/i,.9,,/\.dcl$/i,/^[0o]pen[\W_ \t]?Vms$|^Digital[\W_ \t]?C[0o]mmand[\W_ \t]?Language$/i],["v-icon",["medium-blue","medium-blue"],/\.v$/i,.9,/^v$/i,/\.v$/i,/^V$/i],["v-icon",["dark-blue","dark-blue"],/\.vh$/i,.9],["cabal-icon",["medium-blue","medium-blue"],/^cabal\../i,.75],["config-icon",["dark-blue","dark-blue"],/[\/\\]fontforge[\/\\]hotkeys[\/\\][^\/\\]+/i,.75,,/fontforge.hotkeys/i],["database-icon",["medium-green","medium-green"],/\/tab\.(?:37|450-12|450|lp|think)$|\/dev[-\w]+\/(?:APL\.bug|[A-Z][-A-Za-z0-9]*)(?:\.fd)?$/i,.75],["outlook-icon",["dark-cyan","dark-cyan"],/\.olk14\w*$/i,.75],["image-icon",["medium-pink","medium-pink"],/\.pbm$/i,.75],["image-icon",["medium-grey","medium-grey"],/\.pgm$/i,.75],["image-icon",["dark-maroon","dark-maroon"],/\.ppm$/i,.75],["image-icon",["medium-blue","medium-blue"],/\.pnm$/i,.75],["animestudio-icon",["medium-maroon","medium-maroon"],/\.anme$|\.animebrush$/i,.5],["animestudio-icon",["medium-orange","medium-orange"],/\.anime$/i,.5],["animestudio-icon",["medium-blue","medium-blue"],/\.animeaction$/i,.5],["animestudio-icon",["medium-yellow","medium-yellow"],/\.animeexport$/i,.5],["animestudio-icon",["medium-purple","medium-purple"],/\.animestyle$/i,.5],["apple-icon",["medium-blue","medium-blue"],/^com\.apple\./,.5],["icon-circuit-board",["dark-blue","dark-blue"],/\.g[0-9]+$/i,.5],["icon-circuit-board",["dark-green","dark-green"],/^PCB\.[0-9]+(?:\.backup~?)?$/,.5],["config-icon",["medium-green","medium-green"],/^shells$/i,.5],["database-icon",["dark-green","dark-green"],/^term(?:cap|info)/i,.5],["database-icon",["medium-green","medium-green"],/^(?:birthtoken|flowers)$/,.5,,/^source\.generic-db$/],["download-icon",["dark-blue","dark-blue"],/\.crdownload$/i,.5],["git-icon",["medium-red","medium-red"],/\.git(?:ignore|config|attributes)$/i,.5],["lolcode-icon",["dark-red","dark-red"],/\.lol$/i,.5,/^lci$/,/\.lol$/i,/^L[0o]lc[0o]de$/i],["sourcemap-icon",["dark-blue","dark-blue"],/\.map$/i,.5],["miranda-icon",["medium-red","medium-red"],/\.m$/i,.5,,/\.miranda$/i,/^Miranda$/i],["model-icon",["medium-green","medium-green"],/\.x$/i,.5,,/(?:^|\.)direct-?x(?:$|\.)/i,/^Direct[\W_ \t]?X[\W_ \t]?3[\W_ \t]?D[\W_ \t]?File$/i],["openbsd-icon",["medium-orange","dark-orange"],/^\+(?:CONTENTS|DESC|DISPLAY)$/,.5,,/\.openbsd-pkg\.(?:contents|desc)$/,/^[0o]pen[\W_ \t]?Bsd$/i],["picolisp-icon",["medium-purple","medium-purple"],/\.l$/i,.5,/^(?:picolisp|pil)$/],["database-icon",["dark-blue","dark-blue"],/\.schema$/i,.25],["gnome-icon",[null,null],/\.gtk/,.25],["test-generic-icon",["medium-green","medium-green"],/\.test$/i,.25],["android-icon",["dark-cyan","dark-cyan"],/\.webarchivexml$/i,.2],["diff-icon",["medium-red","medium-red"],/\.diffs$/i,.1],["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,,/\.dogescript$/i,/^D[0o]gescript$/i],["finder-icon",["dark-blue","dark-blue"],/^\._./,0],["finder-icon",["dark-cyan","dark-cyan"],/\.DS_Store$/i,0],["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],["book-icon",["dark-blue","dark-blue"],/^zork\d\.(?!pre$|pur$)[a-z]+$/,0],["key-icon",["dark-blue","dark-blue"],/\.ssh[\/\\][^\/\\\s]+$/,0],["v8-icon",["medium-blue","medium-blue"],/^(?:[dv]8|v8[-_.][^.]*|mksnapshot|mkpeephole)$/i,0]],[[157,163,169,170,171,298,335,369,393,401,414,418,420,445,466,470,471,472,473,478,483,492,496,516,543,544,559,564,571,576,578,583,609,625,630,631,635,639,644,648,649,655,664,669,693,698,701,710,719,729,730,734,735,743,770,790,795,799,813,817,822,824,826,827,830,832,833,838,841,844,845,863,866,892,896,897,902,922,923,926,927,929,930,932,933,935,968,969,972,978,995,996,997,1005,1008,1010,1023,1036,1038,1042,1051,1052,1060,1063,1067,1069,1076,1077,1098,1119,1126,1182,1184,1187,1200,1209,1217,1218,1230,1233,1237,1239,1242,1252,1253,1255,1270,1275,1276,1279,1317,1320,1333,1334,1335,1341,1346,1347,1359,1360,1374,1381,1383,1386,1389,1390,1393,1394,1397,1414,1417,1418,1421,1422,1445,1451,1461,1464,1469,1470,1476,1480,1485,1491,1492,1494,1496,1499,1514,1516,1519,1521,1527,1545,1548,1550,1573,1576,1580,1589,1603,1619,1627,1628,1629,1635,1665,1667,1671,1686,1698,1700,1715,1741,1745,1748,1752,1753,1792,1794,1797,1806,1808,1831,1836],[9,11,14,60,87,125,169,171,175,193,198,209,267,277,287,296,334,335,362,364,365,368,370,375,378,393,397,401,405,407,408,412,414,416,417,418,420,422,423,424,432,436,437,438,440,441,442,444,445,447,466,468,469,470,471,472,473,478,483,485,492,496,504,505,507,508,509,515,516,524,525,526,530,533,537,542,557,558,559,562,563,564,569,571,573,576,578,580,581,583,601,609,616,618,623,624,625,626,628,629,630,631,632,633,635,636,637,639,640,643,644,645,648,649,655,656,659,664,667,669,671,674,679,681,683,685,690,692,699,701,706,707,708,709,710,713,714,715,716,718,719,726,729,730,733,734,735,741,743,747,748,770,771,773,774,777,783,784,785,786,788,789,790,791,792,794,795,798,799,821,827,833,841,844,845,846,849,856,863,866,867,868,873,874,878,880,881,882,883,885,888,892,893,896,897,899,900,902,903,904,905,907,917,918,921,923,927,929,930,932,933,935,936,937,960,961,963,966,968,970,972,973,976,978,993,995,996,997,999,1e3,1003,1004,1005,1007,1008,1009,1010,1011,1014,1017,1021,1023,1026,1027,1029,1030,1035,1036,1038,1042,1047,1051,1052,1057,1060,1063,1065,1067,1069,1076,1077,1087,1088,1089,1092,1098,1110,1119,1126,1127,1177,1182,1184,1186,1187,1191,1200,1201,1203,1205,1209,1215,1217,1224,1225,1226,1228,1230,1231,1232,1233,1237,1239,1240,1242,1245,1246,1247,1252,1253,1255,1263,1264,1265,1268,1270,1275,1276,1277,1279,1280,1281,1282,1283,1284,1285,1302,1309,1312,1313,1314,1315,1316,1318,1319,1320,1330,1333,1334,1335,1340,1341,1346,1349,1351,1357,1358,1359,1360,1362,1365,1374,1380,1381,1384,1385,1386,1389,1390,1392,1393,1394,1397,1404,1408,1409,1410,1411,1414,1417,1418,1421,1422,1431,1432,1437,1445,1451,1454,1459,1460,1461,1464,1465,1466,1469,1470,1476,1480,1483,1485,1488,1489,1490,1491,1492,1494,1496,1499,1502,1506,1514,1517,1519,1521,1522,1527,1530,1535,1536,1537,1538,1540,1541,1543,1545,1546,1548,1550,1562,1563,1572,1574,1575,1576,1580,1583,1585,1586,1589,1590,1591,1593,1603,1609,1611,1617,1619,1622,1624,1627,1628,1629,1635,1643,1644,1658,1659,1661,1662,1663,1664,1665,1666,1667,1669,1671,1680,1682,1686,1691,1695,1696,1698,1700,1715,1722,1740,1741,1742,1743,1745,1749,1752,1753,1755,1763,1764,1788,1789,1791,1792,1794,1797,1799,1801,1804,1806,1807,1808,1831,1833,1834,1835,1845],[2,9,11,14,60,87,125,169,171,175,193,198,209,267,277,287,296,321,334,335,362,364,365,368,370,375,378,393,397,401,405,407,408,412,414,416,417,418,420,422,423,424,432,436,437,438,440,441,442,444,445,447,466,468,469,470,471,472,473,478,483,485,492,496,504,505,507,508,509,515,516,524,525,526,530,533,537,542,543,544,557,558,559,562,563,564,569,571,573,576,578,580,581,583,601,602,605,609,614,616,618,623,624,625,626,628,629,630,631,632,633,635,636,637,639,640,643,644,645,648,649,654,655,656,658,659,660,664,667,669,671,674,679,681,683,685,690,692,699,701,706,707,708,709,710,713,714,715,716,718,719,726,729,730,733,734,735,741,743,747,748,766,770,771,773,774,777,783,784,785,786,788,789,790,791,792,794,795,798,799,812,813,817,820,821,822,824,826,827,830,831,832,833,834,837,838,841,844,845,846,849,856,863,866,867,868,873,874,878,880,881,882,883,885,888,892,893,896,897,899,900,902,903,904,905,907,917,918,921,922,923,924,926,927,929,930,932,933,935,936,937,940,960,961,963,966,968,970,972,973,976,978,993,995,996,997,999,1e3,1003,1004,1005,1007,1008,1009,1010,1011,1014,1017,1021,1023,1026,1027,1029,1030,1035,1036,1038,1042,1047,1051,1052,1057,1060,1063,1065,1067,1069,1076,1077,1087,1088,1089,1092,1098,1110,1119,1126,1127,1177,1182,1184,1186,1187,1189,1190,1191,1200,1201,1203,1205,1209,1215,1217,1224,1225,1226,1228,1230,1231,1232,1233,1237,1239,1240,1242,1245,1246,1247,1252,1253,1255,1263,1264,1265,1268,1270,1275,1276,1277,1279,1280,1281,1282,1283,1284,1285,1302,1309,1312,1313,1314,1315,1316,1318,1319,1320,1330,1333,1334,1335,1340,1341,1346,1349,1351,1357,1358,1359,1360,1362,1365,1374,1380,1381,1384,1385,1386,1389,1390,1392,1393,1394,1397,1404,1408,1409,1410,1411,1414,1417,1418,1421,1422,1431,1432,1437,1445,1451,1454,1459,1460,1461,1464,1465,1466,1469,1470,1476,1480,1483,1485,1488,1489,1490,1491,1492,1494,1496,1499,1502,1506,1508,1514,1516,1517,1519,1521,1522,1527,1530,1535,1536,1537,1538,1540,1541,1543,1545,1546,1548,1550,1551,1562,1563,1572,1574,1575,1576,1580,1583,1585,1586,1589,1590,1591,1593,1603,1609,1611,1617,1619,1622,1624,1627,1628,1629,1635,1639,1643,1644,1658,1659,1661,1662,1663,1664,1665,1666,1667,1669,1671,1680,1682,1686,1691,1695,1696,1698,1700,1715,1722,1740,1741,1742,1743,1745,1749,1752,1753,1755,1763,1764,1788,1789,1791,1792,1794,1797,1799,1801,1804,1806,1807,1808,1811,1828,1831,1833,1834,1835,1845]]]];const Yc=e=>{let[t,r]=e;t=t.map((p,n)=>new Cf(n,...p)),r=r.map(p=>p.map(n=>t[n]));const[i,s,c]=r;return{byName:t,byInterpreter:i,byLanguage:s,byScope:c}};class Tf{constructor(){this.directoryIcons=Yc(Kc[0]),this.fileIcons=Yc(Kc[1])}matchName(t,r=!1){return new Promise((i,s)=>{const[c,p]=r?[it.directoryName,this.directoryIcons.byName]:[it.fileName,this.fileIcons.byName],n=c.get(t);if(n)return i(n);const o=[];for(let h=0,m=p.length;h<m;++h){const b=p[h];b.match.test(t)&&o.push(b)}const l=o.length;if(l){l>1&&o.sort((m,b)=>b.priority-m.priority);const h=o[0];return c.set(t,h),i(h)}i(null)})}matchLanguage(t){return new Promise((r,i)=>{const s=it.language.get(t);if(s)return r(s);const c=this.fileIcons.byLanguage,p=[];for(let o=0,l=c.length;o<l;++o){const h=c[o];h.lang.test(t)&&p.push(h)}const n=p.length;if(n){n>1&&p.sort((l,h)=>h.priority-l.priority);const o=p[0];return it.language.set(t,o),r(o)}r(null)})}matchScope(t){return new Promise((r,i)=>{const s=it.scope.get(t);if(s)return r(s);const c=this.fileIcons.byScope,p=[];for(let o=0,l=c.length;o<l;++o){const h=c[o];h.scope.test(t)&&p.push(h)}const n=p.length;if(n){n>1&&p.sort((l,h)=>h.priority-l.priority);const o=p[0];return it.scope.set(t,o),r(o)}r(null)})}matchInterpreter(t){return new Promise((r,i)=>{const s=it.interpreter.get(t);if(s)return r(s);const c=this.fileIcons.byInterpreter,p=[];for(let o=0,l=c.length;o<l;++o){const h=c[o];h.interpreter.test(t)&&p.push(h)}const n=p.length;if(n){n>1&&p.sort((l,h)=>h.priority-l.priority);const o=p[0];return it.interpreter.set(t,o),r(o)}r(null)})}}const it={directoryName:new Map,fileName:new Map,interpreter:new Map,scope:new Map,language:new Map};var xt=new Tf;const Af=e=>new Promise((t,r)=>{if(e.endsWith("/"))return t(xt.matchName(e.slice(0,-1),!0));const i=[xt.matchName(e,!0),xt.matchName(e),xt.matchInterpreter(e),xt.matchLanguage(e),xt.matchScope(e)];Promise.all(i).then(s=>{const c=s.filter(n=>n!==null),p=c.length;if(p)return p>1&&c.sort((n,o)=>o.priority-n.priority),t(c[0]);t(null)})});class $f{async getClass(t,{color:r=!0,array:i=!1}={}){const s=await Af(t);return s?s.getClass(r?0:null,i):i?["icon","default-icon"]:"icon default-icon"}}var Nf=new $f;const ei=new Map;function vu({name:e,type:t,isExpanded:r,size:i=16}){const[s,c]=N.useState(()=>ei.get(e)||"");if(N.useEffect(()=>{if(t==="directory")return;const p=ei.get(e);if(p){c(p);return}let n=!1;return Nf.getClass(e).then(o=>{n||(ei.set(e,o),c(o))}),()=>{n=!0}},[e,t]),t==="directory"){const p=r?Ri:Sp;return a.jsx(p,{size:i,style:{color:"#dcb67a",flexShrink:0}})}return s?a.jsx("i",{className:s,style:{fontSize:i,width:i,height:i,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1}}):a.jsx("i",{className:"icon default-icon",style:{fontSize:i,width:i,height:i,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center"}})}function Xc(){const{t:e}=le(),{tabs:t,activeTabId:r,setActiveTab:i,closeTab:s,closeOtherTabs:c,closeAllTabs:p}=xr(),[n,o]=N.useState(null),l=N.useRef(null),h=N.useCallback((_,w)=>{_.preventDefault(),o({x:_.clientX,y:_.clientY,tabId:w})},[]),m=N.useCallback(()=>{o(null)},[]),b=N.useCallback((_,w)=>{_.button===1&&(_.preventDefault(),s(w))},[s]);return t.length===0?null:a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"editor-tabs",children:t.map(_=>a.jsxs("div",{className:`editor-tab ${_.id===r?"active":""}`,onClick:()=>i(_.id),onMouseDown:w=>b(w,_.id),onContextMenu:w=>h(w,_.id),title:_.path,children:[a.jsx(vu,{name:_.name,type:"file",size:14}),a.jsx("span",{className:"editor-tab-name",children:_.name}),_.isDirty?a.jsx("span",{className:"dirty-dot"}):a.jsx("button",{className:"close-btn",onClick:w=>{w.stopPropagation(),s(_.id)},children:a.jsx(Le,{size:12})})]},_.id))}),n&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"editor-context-overlay",onClick:m}),a.jsxs("div",{ref:l,className:"editor-context-menu",style:{left:n.x,top:n.y},children:[a.jsx("button",{onClick:()=>{s(n.tabId),m()},children:e("editor.close")}),a.jsx("button",{onClick:()=>{c(n.tabId),m()},children:e("editor.closeOthers")}),a.jsx("button",{onClick:()=>{p(),m()},children:e("editor.closeAll")})]})]})]})}function ku({node:e,depth:t,isExpanded:r,isSelected:i,isMultiSelected:s,isRenaming:c,expandedPaths:p,selectedPath:n,selectedPaths:o,renamingPath:l,onToggleExpand:h,onSelect:m,onOpenFile:b,onConfirmRename:_,onCancelRename:w,onContextMenu:v,onDragStart:u,onDrop:f}){var M;const d=e.type==="directory",g=12+t*12,[y,x]=N.useState(e.name),k=N.useRef(null),[E,S]=N.useState(!1);N.useEffect(()=>{if(c&&k.current){x(e.name),k.current.focus();const F=e.name.lastIndexOf(".");!d&&F>0?k.current.setSelectionRange(0,F):k.current.select()}},[c,e.name,d]);const C=N.useCallback(F=>{c||(m(e.path,{ctrl:F.ctrlKey||F.metaKey,shift:F.shiftKey}),d?h(e.path):!F.ctrlKey&&!F.metaKey&&!F.shiftKey&&b(e.path,e.name))},[c,e.path,d,e.name,m,h,b]),R=N.useCallback(()=>{c||d||b(e.path,e.name)},[c,d,e.path,e.name,b]),$=N.useCallback(F=>{F.stopPropagation(),F.key==="Enter"?(F.preventDefault(),_(e.path,y)):F.key==="Escape"&&(F.preventDefault(),w())},[e.path,y,_,w]),D=N.useCallback(()=>{_(e.path,y)},[e.path,y,_]),A=N.useCallback(F=>{F.preventDefault(),v(F,e.path)},[v,e.path]),P=N.useCallback(F=>{const G=s?[...o]:[e.path];F.dataTransfer.effectAllowed="move",F.dataTransfer.setData("text/plain",JSON.stringify(G)),u(G)},[s,o,e.path,u]),I=N.useCallback(F=>{d&&(F.preventDefault(),F.dataTransfer.dropEffect="move",S(!0))},[d]),U=N.useCallback(()=>{S(!1)},[]),z=N.useCallback(F=>{F.preventDefault(),S(!1),d&&f(e.path)},[d,e.path,f]),W=i||s,T=12,j=12;return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`file-tree-item ${W?"selected":""} ${E?"drag-over":""}`,onClick:C,onDoubleClick:R,onContextMenu:A,draggable:!c,onDragStart:P,onDragOver:I,onDragLeave:U,onDrop:z,"data-path":e.path,title:e.path,children:[Array.from({length:t},(F,G)=>a.jsx("span",{className:"file-tree-indent-guide",style:{left:j+G*T+6}},G)),a.jsx("span",{style:{width:g,flexShrink:0}}),d?e.isLoading?a.jsx(Ce,{size:16,className:"file-tree-chevron animate-spin"}):a.jsx(Qe,{size:16,className:`file-tree-chevron ${r?"expanded":""}`}):a.jsx(vu,{name:e.name,type:e.type,isExpanded:r,size:16}),c?a.jsx("input",{ref:k,className:"file-tree-rename-input",value:y,onChange:F=>x(F.target.value),onKeyDown:$,onBlur:D,onClick:F=>F.stopPropagation()}):a.jsx("span",{className:"file-tree-item-name",children:e.name})]}),d&&r&&((M=e.children)==null?void 0:M.map(F=>a.jsx(ku,{node:F,depth:t+1,isExpanded:p.has(F.path),isSelected:n===F.path,isMultiSelected:o.has(F.path),isRenaming:l===F.path,expandedPaths:p,selectedPath:n,selectedPaths:o,renamingPath:l,onToggleExpand:h,onSelect:m,onOpenFile:b,onConfirmRename:_,onCancelRename:w,onContextMenu:v,onDragStart:u,onDrop:f},F.path)))]})}function Zc({onMenuClick:e}){var Q,te;const{t}=le(),r=Yt(B=>B.info),{rootPath:i,tree:s,treeLoading:c,expandedPaths:p,selectedPath:n,selectedPaths:o,renamingPath:l,setRootPath:h,toggleExpand:m,selectPath:b,openFile:_,refreshTree:w,collapseAll:v,createNewFile:u,createNewFolder:f,startRename:d,confirmRename:g,cancelRename:y,deleteSelected:x,moveToDirectory:k}=xr(),[E,S]=N.useState(!1),[C,R]=N.useState(!1),$=N.useRef(null),[D,A]=N.useState(null),P=N.useRef([]);N.useEffect(()=>{r!=null&&r.cwd&&!i&&h(r.cwd)},[r==null?void 0:r.cwd,i,h]);const I=N.useCallback((B,L)=>{_(B,L)},[_]),U=N.useCallback((B,L)=>{g(B,L)},[g]),z=N.useCallback((B,L)=>{B.preventDefault(),o.has(L)||b(L),A({x:B.clientX,y:B.clientY,path:L})},[o,b]),W=N.useCallback(()=>A(null),[]),T=N.useCallback(()=>{D&&(d(D.path),A(null))},[D,d]),j=N.useCallback(()=>{A(null),x()},[x]),M=N.useCallback(B=>{P.current=B},[]),F=N.useCallback(B=>{P.current.length>0&&(k(P.current,B),P.current=[])},[k]),G=N.useCallback(B=>{var q,ee,J,se;if(l||!s)return;const L=Fl(s,p);if(L.length===0)return;const K=n?L.indexOf(n):-1;switch(B.key){case"ArrowDown":{B.preventDefault();const Z=K<L.length-1?K+1:0;b(L[Z],{shift:B.shiftKey}),(ee=(q=$.current)==null?void 0:q.querySelector(`[data-path="${CSS.escape(L[Z])}"]`))==null||ee.scrollIntoView({block:"nearest"});break}case"ArrowUp":{B.preventDefault();const Z=K>0?K-1:L.length-1;b(L[Z],{shift:B.shiftKey}),(se=(J=$.current)==null?void 0:J.querySelector(`[data-path="${CSS.escape(L[Z])}"]`))==null||se.scrollIntoView({block:"nearest"});break}case"ArrowRight":{B.preventDefault(),n&&!p.has(n)&&m(n);break}case"ArrowLeft":{B.preventDefault(),n&&p.has(n)&&m(n);break}case"Enter":{B.preventDefault(),n&&d(n);break}case"Delete":case"Backspace":{B.preventDefault(),o.size>0&&x();break}case" ":{if(B.preventDefault(),n){const Z=ue=>{if(!ue)return null;if(ue.path===n)return ue;if(ue.children)for(const ie of ue.children){const Pe=Z(ie);if(Pe)return Pe}return null},ne=Z(s);(ne==null?void 0:ne.type)==="directory"?m(n):ne&&_(ne.path,ne.name)}break}}},[s,p,n,o,l,b,m,d,_,x]),V=(s==null?void 0:s.name)||(i==null?void 0:i.split("/").pop())||"WORKSPACE";return a.jsxs("div",{className:"file-tree",ref:$,tabIndex:0,onKeyDown:G,onClick:()=>{var B;return(B=$.current)==null?void 0:B.focus()},children:[a.jsxs("div",{className:"file-tree-title-bar",children:[e&&a.jsx("button",{className:"file-tree-title-menu",onClick:e,title:t("editor.toggleSidebar"),children:a.jsx(xd,{size:16})}),a.jsx("span",{className:"file-tree-title-text",children:t("editor.explorer")})]}),a.jsxs("div",{className:"file-tree-section-header",onClick:()=>S(!E),onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:[E?a.jsx(Qe,{size:12,style:{flexShrink:0}}):a.jsx(ct,{size:12,style:{flexShrink:0}}),a.jsx("span",{className:"file-tree-section-name",children:V.toUpperCase()}),C&&!E&&a.jsxs("div",{className:"file-tree-section-actions",onClick:B=>B.stopPropagation(),children:[a.jsx("button",{className:"file-tree-section-action",onClick:u,title:t("editor.newFile"),children:a.jsx(vp,{size:14})}),a.jsx("button",{className:"file-tree-section-action",onClick:f,title:t("editor.newFolder"),children:a.jsx(xp,{size:14})}),a.jsx("button",{className:"file-tree-section-action",onClick:w,title:t("editor.refresh"),children:a.jsx($t,{size:14})}),a.jsx("button",{className:"file-tree-section-action",onClick:v,title:t("editor.collapseAll"),children:a.jsx(fp,{size:14})})]})]}),!E&&a.jsxs("div",{className:"file-tree-content",children:[c&&!s&&a.jsx("div",{className:"file-tree-loading",children:a.jsx(Ce,{size:16,className:"animate-spin"})}),(Q=s==null?void 0:s.children)==null?void 0:Q.map(B=>a.jsx(ku,{node:B,depth:0,isExpanded:p.has(B.path),isSelected:n===B.path,isMultiSelected:o.has(B.path),isRenaming:l===B.path,expandedPaths:p,selectedPath:n,selectedPaths:o,renamingPath:l,onToggleExpand:m,onSelect:b,onOpenFile:I,onConfirmRename:U,onCancelRename:y,onContextMenu:z,onDragStart:M,onDrop:F},B.path)),((te=s==null?void 0:s.children)==null?void 0:te.length)===0&&a.jsx("div",{className:"file-tree-empty",children:t("editor.emptyFolder")})]}),D&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"editor-context-overlay",onClick:W}),a.jsxs("div",{className:"editor-context-menu",style:{left:D.x,top:D.y},children:[o.size<=1&&a.jsx("button",{onClick:T,children:t("editor.rename")}),a.jsx("button",{onClick:j,children:o.size>1?`${t("editor.delete")} (${o.size})`:t("editor.delete")})]})]})]})}function Su({direction:e,ratio:t,onRatioChange:r,children:i}){const s=N.useRef(null),[c,p]=N.useState(!1),n=N.useCallback(m=>{m.preventDefault(),m.stopPropagation(),p(!0);const b=s.current;if(!b)return;const _=b.getBoundingClientRect(),w=u=>{let f;e==="horizontal"?f=(u.clientX-_.left)/_.width:f=(u.clientY-_.top)/_.height,f=Math.max(.1,Math.min(.9,f)),r(f)},v=()=>{p(!1),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",v),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",w),document.addEventListener("mouseup",v),document.body.style.cursor=e==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none"},[e,r]),o=e==="horizontal",l=`${t*100}%`,h=`${(1-t)*100}%`;return a.jsxs("div",{ref:s,className:"flex h-full w-full",style:{flexDirection:o?"row":"column"},children:[a.jsx("div",{style:{[o?"width":"height"]:l,overflow:"hidden",display:"flex"},children:i[0]}),a.jsx("div",{className:`split-sash ${o?"split-sash-horizontal":"split-sash-vertical"} ${c?"dragging":""}`,onMouseDown:n}),a.jsx("div",{style:{[o?"width":"height"]:h,overflow:"hidden",display:"flex"},children:i[1]})]})}const Rf=1e3;function If({onMenuClick:e}){const{t}=le(),{tabs:r,activeTabId:i,splitRatio:s,setSplitRatio:c,updateTabContent:p,saveTab:n}=xr(),[o,l]=N.useState(()=>window.innerWidth<768),[h,m]=N.useState(!1);N.useEffect(()=>{const g=window.matchMedia("(min-width: 768px)"),y=x=>{l(!x.matches),x.matches&&m(!1)};return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},[]);const b=xr(g=>g.tabs.length);N.useEffect(()=>{o&&i&&m(!0)},[o,i,b]);const _=r.find(g=>g.id===i)||null,w=N.useRef(),v=N.useCallback(g=>{if(i){p(i,g),clearTimeout(w.current);const y=i;w.current=setTimeout(()=>{n(y)},Rf)}},[i,p,n]);N.useEffect(()=>()=>clearTimeout(w.current),[]);const u=N.useCallback(()=>{clearTimeout(w.current),i&&n(i)},[i,n]),f=N.useCallback(()=>{m(!1)},[]),d=_?a.jsx("div",{className:"editor-container",children:a.jsx(wf,{path:_.path,content:_.content,language:_.language,onContentChange:v,onSave:u,minimap:!o})}):a.jsxs("div",{className:"editor-empty",children:[a.jsx(_p,{size:56,strokeWidth:1,style:{opacity:.15}}),a.jsx("span",{style:{fontSize:14},children:t("editor.noFile")})]});return o?a.jsxs("div",{className:"editor-view",children:[a.jsx("div",{className:"editor-sidebar editor-sidebar-mobile",children:a.jsx(Zc,{onMenuClick:e})}),a.jsx("div",{className:`editor-mobile-panel ${h?"open":""}`,children:a.jsxs("div",{className:"editor-main",children:[a.jsxs("div",{className:"editor-mobile-header",children:[a.jsx("button",{className:"editor-mobile-back",onClick:f,children:a.jsx(Ar,{size:18})}),a.jsx("div",{className:"editor-mobile-tabs-wrap",children:a.jsx(Xc,{})})]}),d]})})]}):a.jsx("div",{className:"editor-view",children:a.jsxs(Su,{direction:"horizontal",ratio:s,onRatioChange:c,children:[a.jsx("div",{className:"editor-sidebar",children:a.jsx(Zc,{onMenuClick:e})}),a.jsxs("div",{className:"editor-main",children:[a.jsx(Xc,{}),d]})]})})}function Lf(e,t){const i=Date.now()-e,s=Math.floor(i/6e4),c=Math.floor(i/36e5),p=Math.floor(i/864e5);return t==="zh"?s<1?"刚刚":s<60?`${s} 分钟前`:c<24?`${c} 小时前`:p<30?`${p} 天前`:new Date(e).toLocaleDateString("zh-CN"):s<1?"Just now":s<60?`${s}m ago`:c<24?`${c}h ago`:p<30?`${p}d ago`:new Date(e).toLocaleDateString("en-US")}function Of({isOpen:e,onClose:t,onSwitchSession:r}){const{t:i,resolved:s}=le(),[c,p]=N.useState([]),[n,o]=N.useState(!0),[l,h]=N.useState(null),[m,b]=N.useState(null),[_,w]=N.useState(null),[v,u]=N.useState(""),f=N.useRef(null),[d,g]=N.useState(null),y=N.useCallback(async()=>{o(!0),h(null);try{const $=await fetch("/api/v1/sessions",{headers:ke()});if(!$.ok)throw new Error(`HTTP ${$.status}`);const D=await $.json(),A=D.data??D;p(A.sessions||[])}catch($){h($.message||"Unknown error")}finally{o(!1)}},[]);N.useEffect(()=>{e&&y()},[e,y]);const x=N.useCallback(async $=>{var D;try{const A=await fetch(`/api/v1/sessions/${encodeURIComponent($.id)}`,{method:"DELETE",headers:ke()});if(!A.ok){const P=await A.json().catch(()=>({}));throw new Error(((D=P.error)==null?void 0:D.message)||P.error||`HTTP ${A.status}`)}p(P=>P.filter(I=>I.id!==$.id))}catch(A){console.error("[history] Delete failed:",A)}finally{g(null)}},[]),k=N.useCallback(async($,D)=>{var P;const A=D.trim();if(A)try{const I=await fetch(`/api/v1/sessions/${encodeURIComponent($.id)}/rename`,{method:"POST",headers:ke({"Content-Type":"application/json"}),body:JSON.stringify({name:A})});if(!I.ok){const U=await I.json().catch(()=>({}));throw new Error(((P=U.error)==null?void 0:P.message)||U.error||`HTTP ${I.status}`)}p(U=>U.map(z=>z.id===$.id?{...z,name:A}:z))}catch(I){console.error("[history] Rename failed:",I)}finally{w(null),u("")}},[]),E=N.useCallback(($,D)=>{D.stopPropagation(),w($),u($.name),setTimeout(()=>{var A;return(A=f.current)==null?void 0:A.focus()},50)},[]),S=N.useCallback(($,D)=>{D.stopPropagation(),!$.isCurrent&&g($)},[]),C=N.useCallback(async $=>{if(!($.isCurrent||m)){b($.id);try{await(r==null?void 0:r($.id)),t()}finally{b(null)}}},[m,r,t]),R=()=>n?a.jsx("div",{className:"history-loading",children:a.jsx(Ze,{size:"small",text:i("history.loading")})}):l?a.jsxs("div",{className:"history-error",children:[a.jsx("p",{className:"history-error-text",children:i("history.loadError")}),a.jsx("button",{className:"history-retry-btn",onClick:y,children:i("history.retry")})]}):c.length===0?a.jsxs("div",{className:"history-empty",children:[a.jsx(Sd,{size:48,className:"text-text-tertiary"}),a.jsx("p",{className:"history-empty-title",children:i("history.noData")}),a.jsx("p",{className:"history-empty-hint",children:i("history.noDataHint")})]}):a.jsx("div",{className:"history-list",children:c.map(($,D)=>{const A=vr($.updatedAt),P=D>0?vr(c[D-1].updatedAt):null,I=A!==P;return a.jsxs("div",{children:[I&&a.jsx(Ut,{label:Wd($.updatedAt,s)}),a.jsxs("div",{className:`history-session-item${$.isCurrent?" current":""}${!$.isCurrent&&!m?" clickable":""}`,onClick:()=>!$.isCurrent&&!m&&C($),children:[a.jsxs("div",{className:"history-session-info",children:[a.jsx("p",{className:"history-session-name",children:$.name}),a.jsxs("div",{className:"history-session-meta",children:[$.isCurrent&&a.jsx("span",{className:"history-session-badge",children:i("history.current")}),a.jsx("span",{children:i("history.messages").replace("{count}",String($.messageCount))}),a.jsx("span",{children:Lf($.updatedAt,s)})]})]}),a.jsxs("div",{className:"history-session-actions",children:[m===$.id&&a.jsx("div",{className:"history-session-switching",children:a.jsx("div",{className:"history-session-spinner"})}),m!==$.id&&a.jsxs(a.Fragment,{children:[a.jsx("button",{className:"history-action-btn",title:i("history.rename"),onClick:U=>E($,U),children:a.jsx(Op,{size:14})}),!$.isCurrent&&a.jsx("button",{className:"history-action-btn danger",title:i("history.delete"),onClick:U=>S($,U),children:a.jsx(Zt,{size:14})})]})]})]})]},$.id)})});return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`history-drawer-overlay ${e?"open":""}`,onClick:t}),a.jsxs("div",{className:`history-drawer ${e?"open":""}`,children:[a.jsxs("div",{className:"history-drawer-header",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"history-drawer-title",children:i("history.title")}),a.jsx("p",{className:"history-drawer-subtitle",children:i("history.description")})]}),a.jsx("button",{onClick:t,className:"history-drawer-close",children:a.jsx(Le,{size:16})})]}),a.jsx("div",{className:"history-content",children:R()})]}),_&&a.jsx("div",{className:"history-rename-overlay",onClick:()=>w(null),children:a.jsxs("div",{className:"history-rename-dialog",onClick:$=>$.stopPropagation(),children:[a.jsx("h3",{children:i("history.renameTitle")}),a.jsx("input",{ref:f,className:"history-rename-input",value:v,onChange:$=>u($.target.value),placeholder:i("history.renamePlaceholder"),onKeyDown:$=>{$.key==="Enter"&&v.trim()&&k(_,v),$.key==="Escape"&&w(null)}}),a.jsxs("div",{className:"history-rename-actions",children:[a.jsx("button",{className:"history-rename-cancel",onClick:()=>w(null),children:i("history.renameCancel")}),a.jsx("button",{className:"history-rename-ok",disabled:!v.trim(),onClick:()=>k(_,v),children:i("history.renameOk")})]})]})}),d&&a.jsx("div",{className:"history-delete-overlay",onClick:()=>g(null),children:a.jsxs("div",{className:"history-delete-dialog",onClick:$=>$.stopPropagation(),children:[a.jsx("p",{children:i("history.deleteConfirm")}),a.jsxs("div",{className:"history-delete-actions",children:[a.jsx("button",{className:"history-delete-cancel",onClick:()=>g(null),children:i("history.deleteCancel")}),a.jsx("button",{className:"history-delete-ok",onClick:()=>x(d),children:i("history.deleteOk")})]})]})})]})}const Pl="codebuddy.instances.passwords";function Bl(){try{const e=localStorage.getItem(Pl);return e?JSON.parse(e):{}}catch{return{}}}function Df(e,t){const r=Bl();r[e]=t,localStorage.setItem(Pl,JSON.stringify(r))}function Mf(e){const t=Bl();delete t[e],localStorage.setItem(Pl,JSON.stringify(t))}function jf(e){return Bl()[e]}const Ff=Ue((e,t)=>({instances:[],loading:!1,error:null,showManagerPanel:!1,fetchInstances:async()=>{e({loading:!0,error:null});try{const r=await Fe("/api/v1/instances",{headers:ke()});if(!r.ok)throw new Error(`Failed to fetch instances: ${r.status}`);const i=await r.json();e({instances:i.instances||[],loading:!1})}catch(r){e({error:r.message,loading:!1})}},addInstance:async(r,i,s)=>{e({error:null});try{const c=await Fe("/api/v1/instances",{method:"POST",headers:ke({"Content-Type":"application/json"}),body:JSON.stringify({url:r,password:i,name:s})});if(!c.ok){const o=await c.json().catch(()=>({}));throw new Error(o.error||`Failed to add instance: ${c.status}`)}const p=await c.json();i&&p.id&&Df(p.id,i),await t().fetchInstances()}catch(c){throw e({error:c.message}),c}},removeInstance:async r=>{e({error:null});try{const i=await Fe(`/api/v1/instances/${r}`,{method:"DELETE",headers:ke()});if(!i.ok){const c=await i.json().catch(()=>({}));throw new Error(c.error||`Failed to remove instance: ${i.status}`)}Mf(r),await t().fetchInstances()}catch(i){throw e({error:i.message}),i}},setShowManagerPanel:r=>e({showManagerPanel:r})}));function Pf(){const e=je(i=>i.clearChat),t=tt(i=>i.disconnect);return{switchToInstance:N.useCallback(async i=>{if(i.isCurrent)return;try{await Ie().disconnect()}catch{}if(e(),!i.url){console.error("Instance has no accessible URL");return}const s=jf(i.id),c=new URL(i.url);s&&c.searchParams.set("password",s),window.location.href=c.toString()},[e,t])}}const xu=4,wu="codebuddy_interaction_mode",Eu="codebuddy_terminal_layout",Cu="codebuddy_terminal_panes";let Bf=0;function Uf(){return`pane-${Date.now()}-${++Bf}`}function Ci(e){return{id:e??Uf(),ptySessionId:null,ptyStatus:"disconnected",errorMessage:null}}function At(e){return e.type==="leaf"?1:At(e.children[0])+At(e.children[1])}function Er(e){return e.type==="leaf"?[e.paneId]:[...Er(e.children[0]),...Er(e.children[1])]}function zf(){try{const e=sessionStorage.getItem(wu);if(e==="chat"||e==="terminal")return e}catch{}return"chat"}function Jc(e){try{sessionStorage.setItem(wu,e)}catch{}}function Hf(){try{const e=sessionStorage.getItem(Eu);if(e)return JSON.parse(e)}catch{}return null}function mr(e){try{sessionStorage.setItem(Eu,JSON.stringify(e))}catch{}}function Gf(){try{const e=sessionStorage.getItem(Cu);if(e)return JSON.parse(e)}catch{}return null}function hr(e){try{sessionStorage.setItem(Cu,JSON.stringify(e))}catch{}}function Wf(){const e=Hf(),t=Gf();if(e&&t){const i=Er(e);if(i.every(s=>s in t)){const s={};for(const c of i)s[c]={...t[c],ptyStatus:"disconnected",errorMessage:null};return{panes:s,layout:e,activePaneId:i[0]}}}const r=Ci();return{panes:{[r.id]:r},layout:{type:"leaf",paneId:r.id},activePaneId:r.id}}function Ti(e,t,r,i){return e.type==="leaf"?e.paneId===t?{type:"split",direction:r,children:[{type:"leaf",paneId:t},{type:"leaf",paneId:i}],ratio:.5}:e:{...e,children:[Ti(e.children[0],t,r,i),Ti(e.children[1],t,r,i)]}}function Ai(e,t){if(e.type==="leaf")return e.paneId===t?null:e;const r=Ai(e.children[0],t),i=Ai(e.children[1],t);return r===null?i:i===null?r:{...e,children:[r,i]}}function Tu(e,t,r){if(t.length===0)return e.type==="split"?{...e,ratio:r}:e;if(e.type==="split"){const[i,...s]=t,c=[...e.children];return c[i]=Tu(c[i],s,r),{...e,children:c}}return e}function Qc(e){const t=Mt(),r={"Content-Type":"application/json"};t&&(r.Authorization=`Bearer ${t}`),fetch(`/api/v1/pty/${e}`,{method:"DELETE",headers:r}).catch(()=>{})}const ti=Wf(),ge=Ue((e,t)=>({mode:zf(),mainView:"chat",terminalTitle:null,panes:ti.panes,layout:ti.layout,activePaneId:ti.activePaneId,setMode:r=>{Jc(r),e({mode:r,mainView:r==="terminal"?"terminal":"chat"})},setMainView:r=>{const i=r==="terminal"?"terminal":"chat";i!==t().mode&&Jc(i),e({mainView:r,mode:i})},setTerminalTitle:r=>e({terminalTitle:r}),splitPane:(r,i)=>{const s=t(),c=i??s.activePaneId;if(At(s.layout)>=xu)return;const p=Ci(),n=Ti(s.layout,c,r,p.id),o={...s.panes,[p.id]:p};mr(n),hr(o),e({layout:n,panes:o,activePaneId:p.id})},closePane:r=>{const i=t();if(At(i.layout)<=1)return;const s=Ai(i.layout,r);if(!s)return;const c=i.panes[r];c!=null&&c.ptySessionId&&Qc(c.ptySessionId);const p={...i.panes};delete p[r];const n=Er(s),o=n.includes(i.activePaneId)?i.activePaneId:n[0];mr(s),hr(p),e({layout:s,panes:p,activePaneId:o})},setActivePaneId:r=>e({activePaneId:r}),setRatio:(r,i)=>{const s=Math.max(.1,Math.min(.9,i)),c=Tu(t().layout,r,s);mr(c),e({layout:c})},setPaneSession:(r,i)=>{const s={...t().panes};s[r]&&(s[r]={...s[r],ptySessionId:i},hr(s),e({panes:s}))},setPaneStatus:(r,i)=>{const s={...t().panes};s[r]&&(s[r]={...s[r],ptyStatus:i},e({panes:s}))},setPaneError:(r,i)=>{const s={...t().panes};s[r]&&(s[r]={...s[r],errorMessage:i},e({panes:s}))},reset:()=>{const r=t().panes;for(const p of Object.values(r))p.ptySessionId&&Qc(p.ptySessionId);const i=Ci(),s={type:"leaf",paneId:i.id},c={[i.id]:i};mr(s),hr(c),e({panes:c,layout:s,activePaneId:i.id})}}));function qf(e){if(!e.length)return[];const t={};for(const i of e){const s=i.cwd||"remote";t[s]||(t[s]=[]),t[s].push(i)}const r=Object.entries(t).map(([i,s])=>{const c=i.split("/").filter(Boolean);return{cwd:i,directoryName:c[c.length-1]||i,hasCurrent:s.some(p=>p.isCurrent),instances:s.sort((p,n)=>p.isCurrent!==n.isCurrent?p.isCurrent?-1:1:n.startedAt-p.startedAt),latestStartTime:Math.max(...s.map(p=>p.startedAt))}});return r.sort((i,s)=>i.hasCurrent!==s.hasCurrent?i.hasCurrent?-1:1:s.latestStartTime!==i.latestStartTime?s.latestStartTime-i.latestStartTime:s.instances.length-i.instances.length),r}function Vf(e){const t=Date.now()-e,r=Math.floor(t/6e4),i=Math.floor(t/36e5),s=Math.floor(t/864e5);return s>0?`${s}d ago`:i>0?`${i}h ago`:r>0?`${r}m ago`:"just now"}function Kf(e){const t=e.match(/^\/(?:Users|home)\/[^/]+/);return t?e.replace(t[0],"~"):e}function Yf({instance:e,switching:t,switchingId:r,onSwitch:i,onRemove:s,t:c}){var o;const p=r===e.id,n=e.mode==="tunnel";return a.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 hover:bg-bg-hover transition-colors group",children:[a.jsx("div",{className:"flex-shrink-0",children:n?a.jsx(Ii,{size:15,className:"text-text-tertiary"}):a.jsx(bt,{size:15,className:"text-text-tertiary"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2 text-[13px]",children:[a.jsx("span",{className:"text-text-primary font-medium truncate",children:e.id.slice(0,8)}),a.jsx("span",{className:"px-1.5 py-px text-[10px] rounded font-medium bg-text-primary/[0.06] text-text-tertiary",children:c(n?"workspace.instanceTunnel":"workspace.instanceLocal")}),e.isCurrent&&a.jsx("span",{className:"px-1.5 py-px text-[10px] rounded font-medium bg-accent-green/15 text-accent-green",children:c("workspace.instanceCurrent")})]}),((o=e.meta)==null?void 0:o.currentTopic)&&a.jsx("div",{className:"text-[12px] text-text-secondary mt-0.5 truncate",title:e.meta.currentTopic,children:e.meta.currentTopic}),a.jsx("div",{className:"text-[11px] text-text-tertiary mt-0.5",children:Vf(e.startedAt)})]}),a.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[!e.isCurrent&&a.jsx("button",{onClick:()=>i(e),disabled:t,className:"opacity-0 group-hover:opacity-100 px-3 py-1 text-[12px] font-medium text-text-primary hover:bg-bg-tertiary rounded-md transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:p?a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(Ce,{size:12,className:"animate-spin"}),c("workspace.switchingInstance")]}):c("workspace.switchInstance")}),e.manual&&a.jsx("button",{onClick:()=>s(e.id),className:"opacity-0 group-hover:opacity-100 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:c("instance.remove"),children:a.jsx(Zt,{size:13})})]})]})}function Au({isOpen:e,onClose:t}){const{instances:r,loading:i,error:s,fetchInstances:c,addInstance:p,removeInstance:n}=Ff(),{switchToInstance:o}=Pf(),{t:l}=le(),h=ge(Z=>Z.setMainView),m=e!==void 0,[b,_]=N.useState(!1),[w,v]=N.useState(""),[u,f]=N.useState(""),[d,g]=N.useState(""),[y,x]=N.useState(!1),[k,E]=N.useState(null),[S,C]=N.useState(!1),[R,$]=N.useState(!1),[D,A]=N.useState(!1),[P,I]=N.useState(!1),[U,z]=N.useState(null),[W,T]=N.useState(new Set),[j,M]=N.useState(!1),F=N.useMemo(()=>r.slice().sort((Z,ne)=>Z.isCurrent===ne.isCurrent?0:Z.isCurrent?-1:1),[r]),G=N.useMemo(()=>qf(F),[F]);N.useEffect(()=>{!j&&G.length>0&&(T(new Set(G.map(Z=>Z.cwd))),M(!0))},[G,j]);const V=!i&&F.length===0&&!s;N.useEffect(()=>{(!m||e)&&(C(!1),c())},[e,m,c]);const Q=N.useCallback(()=>{t?t():h("chat")},[t,h]),te=N.useCallback(async()=>{$(!0),A(!1),C(!1);try{await c(),A(!0),setTimeout(()=>A(!1),2e3)}finally{$(!1)}},[c]),B=N.useCallback(async()=>{const Z=u.trim();if(Z){x(!0),E(null);try{await p(Z,d.trim()||void 0,w.trim()||void 0),v(""),f(""),g(""),_(!1)}catch(ne){E(ne.message)}finally{x(!1)}}},[w,u,d,p]),L=N.useCallback(async Z=>{try{await n(Z)}catch(ne){console.error("Remove instance failed:",ne)}},[n]),K=N.useCallback(async Z=>{if(!Z.isCurrent){I(!0),z(Z.id);try{await o(Z)}catch{I(!1),z(null)}}},[o]),q=N.useCallback(Z=>{T(ne=>{const ue=new Set(ne);return ue.has(Z)?ue.delete(Z):ue.add(Z),ue})},[]);if(m&&!e)return null;if(m)return a.jsxs("div",{className:"fixed inset-0 z-50 bg-bg-primary text-text-primary flex flex-col",children:[a.jsxs("div",{className:"flex items-center justify-between px-6 h-14 border-b border-border-muted bg-bg-primary shrink-0",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{onClick:Q,className:"w-8 h-8 flex items-center justify-center rounded-full hover:bg-bg-secondary transition-colors text-text-secondary",children:a.jsx(Ar,{size:18})}),a.jsx("span",{className:"font-semibold text-[15px] tracking-wide",children:l("instance.managerTitle")})]}),a.jsxs("button",{onClick:()=>_(!0),className:"flex items-center gap-2 px-4 py-2 rounded-full bg-accent-brand text-white text-[13px] font-medium hover:bg-accent-brand/90 transition-colors",children:[a.jsx(Xe,{size:14}),l("instance.addInstance")]})]}),a.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:a.jsxs("div",{className:"max-w-3xl mx-auto space-y-4",children:[ee(),J(),se()]})})]});return a.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[a.jsx("div",{className:"flex-none border-b border-border-muted px-6 py-4",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:l("instance.managerTitle")}),a.jsx("p",{className:"text-sm text-text-tertiary mt-1",children:l("instance.subtitle")})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("button",{onClick:te,disabled:R,className:`flex items-center gap-2 px-3 py-2 rounded-lg border transition-all ${D?"border-green-500/50 text-green-500":R?"opacity-50 cursor-not-allowed border-border-muted text-text-secondary":"border-border-muted text-text-secondary hover:text-text-primary hover:border-accent-brand/50 hover:bg-bg-secondary"}`,title:l("instance.refresh"),children:[D?a.jsx(Je,{size:16}):a.jsx($t,{size:16,className:R?"animate-spin":""}),a.jsx("span",{className:"text-sm",children:l(D?"instance.refreshed":"instance.refresh")})]}),a.jsxs("button",{onClick:()=>_(!0),className:"flex items-center gap-2 px-3 py-2 rounded-lg border border-accent-brand/30 bg-accent-brand text-white text-sm font-medium hover:bg-accent-brand/90 transition-colors",children:[a.jsx(Xe,{size:16}),a.jsx("span",{children:l("instance.addInstance")})]})]})]})}),a.jsxs("div",{className:"flex-1 overflow-y-auto px-4 sm:px-6 py-4",children:[ee(),J(),se()]})]});function ee(){return b?a.jsxs("div",{className:"bg-bg-secondary rounded-xl border border-border-muted p-5 space-y-4 mb-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-[14px] font-medium",children:l("instance.addInstance")}),a.jsx("button",{onClick:()=>{_(!1),E(null)},className:"w-6 h-6 flex items-center justify-center rounded-full hover:bg-bg-tertiary transition-colors text-text-secondary",children:a.jsx(Le,{size:14})})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-[12px] text-text-secondary mb-1.5 block",children:l("instance.name")}),a.jsx("input",{type:"text",value:w,onChange:Z=>v(Z.target.value),placeholder:l("instance.namePlaceholder"),className:"w-full bg-bg-primary text-text-primary text-[14px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-accent-brand/20 focus:border-accent-brand/50 transition-all placeholder:text-text-tertiary",onKeyDown:Z=>{Z.key==="Enter"&&u.trim()&&B()}})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[12px] text-text-secondary mb-1.5 block",children:l("instance.url")}),a.jsx("input",{type:"url",value:u,onChange:Z=>f(Z.target.value),placeholder:"https://abc-def-ghi.trycloudflare.com",className:"w-full bg-bg-primary text-text-primary text-[14px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-accent-brand/20 focus:border-accent-brand/50 transition-all placeholder:text-text-tertiary",onKeyDown:Z=>{Z.key==="Enter"&&u.trim()&&B()}})]}),a.jsxs("div",{children:[a.jsxs("label",{className:"text-[12px] text-text-secondary mb-1.5 block",children:[l("instance.password"),a.jsxs("span",{className:"text-text-tertiary ml-1",children:["(",l("instance.optional"),")"]})]}),a.jsx("input",{type:"password",value:d,onChange:Z=>g(Z.target.value),placeholder:l("instance.passwordPlaceholder"),className:"w-full bg-bg-primary text-text-primary text-[14px] border border-border-muted rounded-lg px-3 py-2 outline-none focus:ring-2 focus:ring-accent-brand/20 focus:border-accent-brand/50 transition-all placeholder:text-text-tertiary",onKeyDown:Z=>{Z.key==="Enter"&&u.trim()&&B()}})]}),k&&a.jsx("div",{className:"text-accent-red text-[12px]",children:k}),a.jsxs("div",{className:"flex justify-end gap-2 pt-1",children:[a.jsx("button",{onClick:()=>{_(!1),E(null)},className:"px-4 py-2 rounded-lg text-[13px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:l("instance.cancel")}),a.jsxs("button",{onClick:B,disabled:!u.trim()||y,className:"px-4 py-2 rounded-lg text-[13px] font-medium bg-accent-brand text-white hover:bg-accent-brand/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[y&&a.jsx(Ce,{size:14,className:"animate-spin"}),l("instance.add")]})]})]})]}):null}function J(){return!s||S?null:a.jsxs("div",{className:"bg-accent-red/10 border border-accent-red/30 rounded-xl p-4 text-accent-red text-[13px] flex items-center justify-between mb-4",children:[a.jsx("span",{children:s}),a.jsx("button",{onClick:()=>C(!0),className:"w-5 h-5 flex items-center justify-center rounded-full hover:bg-accent-red/20 transition-colors shrink-0 ml-3",children:a.jsx(Le,{size:12})})]})}function se(){return i&&F.length===0?a.jsx("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:a.jsx("div",{className:"thinking-text text-sm",children:l("instance.loading")})}):s&&!i&&F.length===0&&!S?a.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-text-tertiary text-[48px] mb-4 opacity-30",children:"⚠"}),a.jsx("div",{className:"text-text-secondary text-sm mb-4",children:l("instance.error")}),a.jsx("button",{onClick:te,className:"px-4 py-2 rounded-lg bg-accent-brand text-white text-sm font-medium hover:bg-accent-brand/90 transition-colors",children:l("instance.retry")})]})}):V?a.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:[a.jsx(bt,{size:48,className:"mb-4 opacity-30"}),a.jsx("div",{className:"text-sm font-medium mb-1",children:l("instance.noInstances")}),a.jsx("div",{className:"text-xs",children:l("instance.noInstancesHint")})]}):a.jsx("div",{className:`space-y-3 transition-opacity duration-300 ${R?"opacity-50 pointer-events-none":"opacity-100"}`,children:G.map(Z=>{const ne=W.has(Z.cwd);return a.jsxs("div",{className:`rounded-xl overflow-hidden ${Z.hasCurrent?"bg-text-primary/[0.03]":"bg-bg-secondary/30"}`,children:[a.jsxs("button",{onClick:()=>q(Z.cwd),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-bg-hover/50 transition-colors text-left",children:[a.jsx(Ri,{size:18,className:"text-text-secondary flex-shrink-0"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-[14px] font-medium text-text-primary truncate",children:Z.directoryName}),a.jsx("div",{className:"text-[11px] text-text-tertiary truncate",children:Kf(Z.cwd)})]}),a.jsx("span",{className:"text-[12px] text-text-tertiary flex-shrink-0 mr-1",children:l("workspace.instanceCount").replace("{count}",String(Z.instances.length))}),a.jsx(ct,{size:16,className:`text-text-tertiary flex-shrink-0 transition-transform duration-200 ${ne?"":"-rotate-90"}`})]}),ne&&a.jsx("div",{className:"border-t border-border-muted",children:Z.instances.map(ue=>a.jsx(Yf,{instance:ue,switching:P,switchingId:U,onSwitch:K,onRemove:L,t:l},ue.id))})]},Z.cwd)})})}}function gr(e,t){return`${e}@${t}`}async function qe(e,t){return Fe(e,{method:"POST",headers:{"Content-Type":"application/json",...ke()},body:t?JSON.stringify(t):void 0})}const Xf=Ue((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 qe("/internal/plugin/list");if(!r.ok)throw new Error(`HTTP ${r.status}`);const i=await r.json();e({plugins:Array.isArray(i)?i:[],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 qe("/internal/plugin/marketplace/list");if(!r.ok)throw new Error(`HTTP ${r.status}`);const i=await r.json();e({marketplaces:Array.isArray(i)?i:[],marketplaceLoading:!1})}catch(r){console.warn("[plugin-store] fetchMarketplaces failed:",r),e({marketplaceLoading:!1})}},browseMarketplace:async r=>{e({browsingMarketplace:r,browsingLoading:!0,browsingError:null});try{const i=await qe("/internal/plugin/browse",{marketplace:r});if(!i.ok){const n=await i.json().catch(()=>null);throw new Error((n==null?void 0:n.message)||`HTTP ${i.status}`)}const s=await i.json(),p=(Array.isArray(s)?s:[]).map(n=>({name:n.name,version:n.version,description:n.description,marketplace:n.marketplaceName||r,installed:!!n.status,author:n.author,license:n.license,homepage:n.homepage,repository:n.repository,keywords:n.keywords,category:n.category,features:n.features,source:n.source}));e({availablePlugins:p,browsingLoading:!1})}catch(i){console.warn("[plugin-store] browseMarketplace failed:",i),e({browsingError:i.message,browsingLoading:!1})}},browseAllMarketplaces:async()=>{const{marketplaces:r}=t();if(r.length!==0){e({browsingMarketplace:"__all__",browsingLoading:!0,browsingError:null});try{const i=await Promise.allSettled(r.map(async o=>{const l=await qe("/internal/plugin/browse",{marketplace:o.name});if(!l.ok){const b=await l.json().catch(()=>null);throw new Error((b==null?void 0:b.message)||`HTTP ${l.status}`)}const h=await l.json();return(Array.isArray(h)?h:[]).map(b=>({name:b.name,version:b.version,description:b.description,marketplace:b.marketplaceName||o.name,installed:!!b.status,author:b.author,license:b.license,homepage:b.homepage,repository:b.repository,keywords:b.keywords,category:b.category,features:b.features,source:b.source}))})),s=[];let c=!1;for(const o of i)o.status==="fulfilled"?s.push(...o.value):c=!0;const p=new Set,n=s.filter(o=>{const l=`${o.name}@${o.marketplace}`;return p.has(l)?!1:(p.add(l),!0)});e({availablePlugins:n,browsingLoading:!1,browsingError:c&&n.length===0?"Some marketplaces failed to load":null})}catch(i){console.warn("[plugin-store] browseAllMarketplaces failed:",i),e({browsingError:i.message,browsingLoading:!1})}}},enablePlugin:async(r,i)=>{const s=gr(r,i);e(c=>({operatingPlugins:new Set(c.operatingPlugins).add(s)}));try{const c=await qe("/internal/plugin/enable",{plugin:s});if(!c.ok){const p=await c.json().catch(()=>null);throw new Error((p==null?void 0:p.message)||`HTTP ${c.status}`)}await t().fetchPlugins()}finally{e(c=>{const p=new Set(c.operatingPlugins);return p.delete(s),{operatingPlugins:p}})}},disablePlugin:async(r,i)=>{const s=gr(r,i);e(c=>({operatingPlugins:new Set(c.operatingPlugins).add(s)}));try{const c=await qe("/internal/plugin/disable",{plugin:s});if(!c.ok){const p=await c.json().catch(()=>null);throw new Error((p==null?void 0:p.message)||`HTTP ${c.status}`)}await t().fetchPlugins()}finally{e(c=>{const p=new Set(c.operatingPlugins);return p.delete(s),{operatingPlugins:p}})}},uninstallPlugin:async(r,i)=>{const s=gr(r,i);e(c=>({operatingPlugins:new Set(c.operatingPlugins).add(s)}));try{const c=await qe("/internal/plugin/uninstall",{plugin:s});if(!c.ok){const p=await c.json().catch(()=>null);throw new Error((p==null?void 0:p.message)||`HTTP ${c.status}`)}await t().fetchPlugins()}finally{e(c=>{const p=new Set(c.operatingPlugins);return p.delete(s),{operatingPlugins:p}})}},installPlugin:async(r,i)=>{const s=gr(r,i);e(c=>({operatingPlugins:new Set(c.operatingPlugins).add(s)}));try{const c=await qe("/internal/plugin/install",{plugin:s});if(!c.ok){const n=await c.json().catch(()=>null);throw new Error((n==null?void 0:n.message)||`HTTP ${c.status}`)}await t().fetchPlugins();const p=t();p.browsingMarketplace&&(p.browsingMarketplace==="__all__"?await t().browseAllMarketplaces():await t().browseMarketplace(p.browsingMarketplace))}finally{e(c=>{const p=new Set(c.operatingPlugins);return p.delete(s),{operatingPlugins:p}})}},addMarketplace:async(r,i)=>{const s=await qe("/internal/plugin/marketplace/add",{source:r,name:i});if(!s.ok){const c=await s.json().catch(()=>null);throw new Error((c==null?void 0:c.message)||`HTTP ${s.status}`)}await t().fetchMarketplaces()},removeMarketplace:async r=>{const i=await qe("/internal/plugin/marketplace/remove",{name:r});if(!i.ok){const s=await i.json().catch(()=>null);throw new Error((s==null?void 0:s.message)||`HTTP ${i.status}`)}await t().fetchMarketplaces()}}));function $u(){const{t:e}=le(),{plugins:t,marketplaces:r,loading:i,marketplaceLoading:s,error:c,operatingPlugins:p,availablePlugins:n,browsingLoading:o,browsingError:l,fetchPlugins:h,fetchMarketplaces:m,browseMarketplace:b,browseAllMarketplaces:_,enablePlugin:w,disablePlugin:v,uninstallPlugin:u,installPlugin:f,addMarketplace:d,removeMarketplace:g}=Xf(),[y,x]=N.useState("installed"),[k,E]=N.useState(""),[S,C]=N.useState("all"),[R,$]=N.useState(null),[D,A]=N.useState(!1),[P,I]=N.useState(""),[U,z]=N.useState(""),[W,T]=N.useState(!1),[j,M]=N.useState(null),[F,G]=N.useState(null),[V,Q]=N.useState(null),[te,B]=N.useState(""),[L,K]=N.useState(""),[q,ee]=N.useState(null),J=N.useCallback(Y=>{ee(ae=>ae===Y?null:Y)},[]);N.useEffect(()=>{h(),m()},[h,m]),N.useEffect(()=>{y==="browse"&&!te&&r.length>0&&(B("__all__"),_())},[y,r,te,_]);const se=N.useCallback(async Y=>{$(null);try{Y.status==="enabled"?await v(Y.name,Y.marketplace):await w(Y.name,Y.marketplace)}catch(ae){$(ae.message)}},[w,v]),Z=N.useCallback(async Y=>{$(null),G(null);try{await u(Y.name,Y.marketplace)}catch(ae){$(ae.message)}},[u]),ne=N.useCallback(async Y=>{$(null);try{await f(Y.name,Y.marketplace)}catch(ae){$(ae.message)}},[f]),ue=N.useCallback(async()=>{const Y=P.trim();if(Y){T(!0),M(null);try{await d(Y,U.trim()||void 0),I(""),z(""),A(!1)}catch(ae){M(ae.message)}finally{T(!1)}}},[P,U,d]),ie=N.useCallback(async Y=>{$(null),Q(null);try{if(await g(Y),te===Y&&r.length>1){const ae=r.find(ye=>ye.name!==Y);ae&&(B(ae.name),b(ae.name))}}catch(ae){$(ae.message)}},[g,te,r,b]),Pe=N.useCallback(()=>{h(),m(),y==="browse"&&te&&(te==="__all__"?_():b(te))},[h,m,y,te,b,_]),dt=N.useCallback(Y=>{B(Y),K(""),Y==="__all__"?_():b(Y)},[b,_]),ut=Y=>`${Y.name}@${Y.marketplace}`,rt=N.useMemo(()=>{const Y=new Set(t.map(ae=>ae.marketplace));return Array.from(Y).sort()},[t]),Ge=N.useMemo(()=>{let Y=t;S!=="all"&&(Y=Y.filter(ye=>ye.marketplace===S));const ae=k.trim().toLowerCase();return ae&&(Y=Y.filter(ye=>ye.name.toLowerCase().includes(ae)||ye.description&&ye.description.toLowerCase().includes(ae)||ye.marketplace.toLowerCase().includes(ae))),Y},[t,S,k]),be=N.useMemo(()=>{let Y=n;const ae=L.trim().toLowerCase();return ae&&(Y=Y.filter(ye=>ye.name.toLowerCase().includes(ae)||ye.description&&ye.description.toLowerCase().includes(ae))),Y},[n,L]),Ye=t.filter(Y=>Y.status==="enabled").length;return a.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[a.jsx("div",{className:"flex-none border-b border-border-muted px-6 py-4",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs("div",{className:"flex items-center justify-between mb-4",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("plugins.title")}),y==="installed"&&t.length>0&&a.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[t.length," ",e("plugins.totalCount")," · ",Ye," ",e("plugins.enabled")]}),y==="browse"&&te&&!o&&n.length>0&&a.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[n.length," ",e("plugins.totalCount")]}),y==="marketplaces"&&r.length>0&&a.jsxs("p",{className:"text-sm text-text-tertiary mt-0.5",children:[r.length," ",e("plugins.totalCount")]})]}),a.jsx("button",{onClick:Pe,disabled:i||o,className:`flex items-center gap-2 px-3 py-2 rounded-lg border transition-all ${i||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:a.jsx($t,{size:14,className:i||o?"animate-spin":""})})]}),a.jsxs("div",{className:"flex gap-1 border-b border-border-muted",children:[a.jsx("button",{onClick:()=>{x("installed"),$(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")}),a.jsx("button",{onClick:()=>{x("browse"),$(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")}),a.jsx("button",{onClick:()=>{x("marketplaces"),$(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&&a.jsxs("div",{className:"flex items-center gap-2 mt-4",children:[a.jsxs("div",{className:"flex-1 relative",children:[a.jsx(ft,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary pointer-events-none"}),a.jsx("input",{type:"text",value:k,onChange:Y=>E(Y.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"}),k&&a.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:a.jsx(Le,{size:12})})]}),rt.length>1&&a.jsxs("select",{value:S,onChange:Y=>C(Y.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:[a.jsx("option",{value:"all",children:e("plugins.allMarketplaces")}),rt.map(Y=>a.jsx("option",{value:Y,children:Y},Y))]})]}),y==="browse"&&r.length>0&&a.jsxs("div",{className:"flex items-center gap-2 mt-4",children:[a.jsxs("div",{className:"flex-1 relative",children:[a.jsx(ft,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary pointer-events-none"}),a.jsx("input",{type:"text",value:L,onChange:Y=>K(Y.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"}),L&&a.jsx("button",{onClick:()=>K(""),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:a.jsx(Le,{size:12})})]}),a.jsxs("select",{value:te,onChange:Y=>dt(Y.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:[a.jsx("option",{value:"__all__",children:e("plugins.allMarketplaces")}),r.map(Y=>a.jsx("option",{value:Y.name,children:Y.name},Y.name))]})]})]})}),a.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:a.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[R&&a.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:[a.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[a.jsx(Hr,{size:14,className:"shrink-0"}),a.jsxs("span",{className:"truncate",children:[e("plugins.operationFailed"),": ",R]})]}),a.jsx("button",{onClick:()=>$(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:a.jsx(Le,{size:12})})]}),y==="installed"&&a.jsxs(a.Fragment,{children:[i&&t.length===0&&a.jsx("div",{className:"flex flex-col items-center justify-center py-20",children:a.jsx(Ze,{size:"small",text:e("plugins.loading")})}),c&&!i&&t.length===0&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[a.jsx(Hr,{size:40,className:"text-text-tertiary opacity-40 mb-4"}),a.jsx("div",{className:"text-[14px] text-text-secondary font-medium mb-3",children:e("plugins.error")}),a.jsx("button",{onClick:h,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")})]}),!i&&!c&&t.length===0&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[a.jsx(Tt,{size:48,className:"mb-4 opacity-30"}),a.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noPlugins")}),a.jsx("div",{className:"text-[13px]",children:e("plugins.noPluginsHint")})]}),t.length>0&&Ge.length===0&&!i&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-text-tertiary",children:[a.jsx(ft,{size:36,className:"mb-3 opacity-30"}),a.jsx("div",{className:"text-[13px]",children:e("plugins.noSearchResults")})]}),Ge.length>0&&a.jsx("div",{className:"space-y-3",children:Ge.map(Y=>{const ae=ut(Y);return a.jsx(Zf,{plugin:Y,isEnabled:Y.status==="enabled",isOperating:p.has(ae),isExpanded:q===ae,confirmUninstall:F===ae,onToggle:()=>se(Y),onUninstall:()=>Z(Y),onConfirmUninstall:()=>G(ae),onCancelUninstall:()=>G(null),onExpand:()=>J(ae),t:e},ae)})})]}),y==="browse"&&a.jsxs(a.Fragment,{children:[!s&&r.length===0&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[a.jsx(Wt,{size:48,className:"mb-4 opacity-30"}),a.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noMarketplaces")}),a.jsx("div",{className:"text-[13px]",children:e("plugins.noMarketplacesHint")})]}),o&&n.length===0&&te&&a.jsx("div",{className:"flex flex-col items-center justify-center py-20",children:a.jsx(Ze,{size:"small",text:e("plugins.browsingMarketplace")})}),l&&n.length===0&&te&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[a.jsx(Hr,{size:40,className:"text-text-tertiary opacity-40 mb-4"}),a.jsx("div",{className:"text-[14px] text-text-secondary font-medium mb-3",children:e("plugins.error")}),a.jsx("button",{onClick:()=>te&&b(te),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")})]}),te&&n.length===0&&!o&&!l&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[a.jsx(Tt,{size:48,className:"mb-4 opacity-30"}),a.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noAvailablePlugins")}),a.jsx("div",{className:"text-[13px]",children:e("plugins.noAvailablePluginsHint")})]}),n.length>0&&be.length===0&&!o&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-text-tertiary",children:[a.jsx(ft,{size:36,className:"mb-3 opacity-30"}),a.jsx("div",{className:"text-[13px]",children:e("plugins.noSearchResults")})]}),be.length>0&&a.jsx("div",{className:"space-y-3",children:be.map(Y=>{const ae=`${Y.name}@${Y.marketplace}`;return a.jsx(Jf,{plugin:Y,isInstalled:Y.installed,isOperating:p.has(ae),isExpanded:q===ae,onInstall:()=>ne(Y),onExpand:()=>J(ae),t:e},ae)})})]}),y==="marketplaces"&&a.jsxs("div",{className:"space-y-3",children:[!D&&a.jsxs("button",{onClick:()=>A(!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:[a.jsx(Xe,{size:12}),e("plugins.addMarketplace")]}),D&&a.jsxs("div",{className:"bg-bg-secondary rounded-xl border border-border-muted p-4 space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-[13px] font-medium",children:e("plugins.addMarketplace")}),a.jsx("button",{onClick:()=>{A(!1),M(null)},className:"w-6 h-6 flex items-center justify-center rounded-full hover:bg-bg-tertiary transition-colors text-text-secondary",children:a.jsx(Le,{size:12})})]}),a.jsx("input",{type:"text",value:P,onChange:Y=>I(Y.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"}),a.jsx("input",{type:"text",value:U,onChange:Y=>z(Y.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"}),j&&a.jsx("div",{className:"text-accent-red text-[12px]",children:j}),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx("button",{onClick:()=>{A(!1),M(null)},className:"px-3 py-1.5 rounded-lg text-[12px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:e("plugins.cancel")}),a.jsxs("button",{onClick:ue,disabled:!P.trim()||W,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:[W&&a.jsx(Ce,{size:12,className:"animate-spin"}),e("plugins.add")]})]})]}),s&&r.length===0&&a.jsx("div",{className:"flex items-center justify-center py-6",children:a.jsx(Ce,{size:18,className:"animate-spin text-text-tertiary"})}),!s&&r.length===0&&!D&&a.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-text-tertiary",children:[a.jsx(Wt,{size:48,className:"mb-4 opacity-30"}),a.jsx("div",{className:"text-[15px] font-medium mb-1.5 text-text-secondary",children:e("plugins.noMarketplaces")}),a.jsx("div",{className:"text-[13px]",children:e("plugins.noMarketplacesHint")})]}),r.length>0&&a.jsx("div",{className:"bg-bg-secondary rounded-xl border border-border-muted overflow-hidden",children:r.map((Y,ae)=>a.jsxs("div",{className:`flex items-center justify-between px-4 py-3 ${ae>0?"border-t border-border-muted":""}`,children:[a.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[a.jsx(Wt,{size:14,className:"text-text-tertiary shrink-0"}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("div",{className:"text-[13px] font-medium truncate",children:Y.name}),Y.type&&a.jsx("div",{className:"text-[11px] text-text-tertiary",children:Y.type})]})]}),a.jsx("div",{className:"flex items-center gap-2 shrink-0",children:V===Y.name?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>ie(Y.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")}),a.jsx("button",{onClick:()=>Q(null),className:"px-2.5 py-1 rounded-md text-[11px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:e("plugins.cancel")})]}):a.jsx("button",{onClick:()=>Q(Y.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:a.jsx(Zt,{size:13})})})]},Y.name))})]})]})})]})}function Zf({plugin:e,isEnabled:t,isOperating:r,isExpanded:i,confirmUninstall:s,onToggle:c,onUninstall:p,onConfirmUninstall:n,onCancelUninstall:o,onExpand:l,t:h}){return a.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:[a.jsxs("div",{className:"flex items-start gap-4 px-5 py-4 cursor-pointer",onClick:l,children:[a.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:a.jsx(Tt,{size:18,className:t?"text-text-primary":"text-text-tertiary"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[a.jsx("span",{className:"text-[14px] font-semibold text-text-primary truncate",children:e.name}),e.version&&a.jsxs("span",{className:"text-[11px] text-text-tertiary shrink-0 font-mono",children:["v",e.version]}),a.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:h(t?"plugins.enabled":"plugins.disabled")})]}),e.description&&a.jsx("div",{className:`text-[12px] text-text-secondary leading-relaxed mb-1.5 ${i?"":"line-clamp-2"}`,children:e.description}),a.jsxs("div",{className:"flex items-center gap-1 text-[11px] text-text-tertiary",children:[a.jsx(Wt,{size:10,className:"shrink-0"}),a.jsx("span",{children:e.marketplace})]})]}),a.jsx("div",{className:"flex items-center gap-1.5 shrink-0 pt-0.5",onClick:m=>m.stopPropagation(),children:r?a.jsx("div",{className:"w-[72px] flex justify-center",children:a.jsx(Ce,{size:16,className:"animate-spin text-text-tertiary"})}):s?a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("button",{onClick:p,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:h("plugins.uninstall")}),a.jsx("button",{onClick:o,className:"px-2.5 py-1 rounded-md text-[11px] text-text-secondary hover:bg-bg-tertiary transition-colors",children:h("plugins.cancel")})]}):a.jsxs(a.Fragment,{children:[a.jsxs("button",{onClick:c,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:h(t?"plugins.disable":"plugins.enable"),children:[t?a.jsx(Mp,{size:11}):a.jsx(jp,{size:11}),h(t?"plugins.disable":"plugins.enable")]}),a.jsx("button",{onClick:n,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:h("plugins.uninstall"),children:a.jsx(Zt,{size:13})})]})})]}),i&&a.jsx(Nu,{plugin:e,t:h})]})}function Jf({plugin:e,isInstalled:t,isOperating:r,isExpanded:i,onInstall:s,onExpand:c,t:p}){return a.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:[a.jsxs("div",{className:"flex items-start gap-4 px-5 py-4 cursor-pointer",onClick:c,children:[a.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:a.jsx(Tt,{size:18,className:t?"text-text-primary":"text-text-tertiary"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[a.jsx("span",{className:"text-[14px] font-semibold text-text-primary truncate",children:e.name}),e.version&&a.jsxs("span",{className:"text-[11px] text-text-tertiary shrink-0 font-mono",children:["v",e.version]}),t&&a.jsx("span",{className:"text-[10px] px-1.5 py-px rounded font-medium shrink-0 bg-accent-green/15 text-accent-green",children:p("plugins.installedLabel")})]}),e.description&&a.jsx("div",{className:`text-[12px] text-text-secondary leading-relaxed mb-1.5 ${i?"":"line-clamp-2"}`,children:e.description}),a.jsxs("div",{className:"flex items-center gap-1 text-[11px] text-text-tertiary",children:[a.jsx(Wt,{size:10,className:"shrink-0"}),a.jsx("span",{children:e.marketplace})]})]}),a.jsx("div",{className:"flex items-center gap-1.5 shrink-0 pt-0.5",onClick:n=>n.stopPropagation(),children:t?a.jsx("div",{className:"px-2.5 py-1.5 rounded-md text-[11px] font-medium text-text-tertiary bg-bg-tertiary",children:p("plugins.installed")}):r?a.jsx("div",{className:"w-[72px] flex justify-center",children:a.jsx(Ce,{size:16,className:"animate-spin text-text-tertiary"})}):a.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:p("plugins.install"),children:[a.jsx(yp,{size:11}),p("plugins.install")]})})]}),i&&a.jsx(Nu,{plugin:e,t:p})]})}function Nu({plugin:e,t}){const r=e.source,i=typeof r=="object"&&r!==null?r.url:void 0,s=typeof r=="object"&&r!==null?r.source:typeof r=="string"?r:void 0;return a.jsxs("div",{className:"border-t border-border-muted mx-5 px-0 py-3.5 space-y-2.5",children:[e.category&&a.jsx(nt,{label:t("plugins.category"),children:a.jsx("span",{className:"text-[11px] px-2 py-0.5 rounded bg-[#f5a623]/8 text-[#b8860b] font-medium",children:e.category})}),e.author&&a.jsxs(nt,{label:t("plugins.author"),children:[a.jsx("span",{className:"text-[12px] text-text-primary font-medium",children:e.author.name}),e.author.email&&a.jsx("a",{href:`mailto:${e.author.email}`,className:"text-[11px] text-text-tertiary hover:text-text-primary hover:underline ml-1",onClick:c=>c.stopPropagation(),children:e.author.email}),e.author.url&&a.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:c=>c.stopPropagation(),children:[e.author.url,a.jsx(Bt,{size:9})]})]}),e.license&&a.jsx(nt,{label:t("plugins.license"),children:a.jsx("span",{className:"text-[12px] text-text-secondary",children:e.license})}),e.homepage&&a.jsx(nt,{label:t("plugins.homepage"),children:a.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:c=>c.stopPropagation(),children:[e.homepage,a.jsx(Bt,{size:10,className:"shrink-0 text-text-tertiary"})]})}),e.repository&&a.jsx(nt,{label:t("plugins.repository"),children:a.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:c=>c.stopPropagation(),children:[e.repository,a.jsx(Bt,{size:10,className:"shrink-0 text-text-tertiary"})]})}),s&&a.jsx(nt,{label:t("plugins.source"),children:i?a.jsxs("a",{href:i,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:c=>c.stopPropagation(),children:[s,a.jsx(Bt,{size:10,className:"shrink-0 text-text-tertiary"})]}):a.jsx("span",{className:"text-[12px] text-text-secondary font-mono",children:s})}),e.keywords&&e.keywords.length>0&&a.jsx(nt,{label:t("plugins.keywords"),children:a.jsx("div",{className:"flex flex-wrap gap-1",children:e.keywords.map(c=>a.jsx("span",{className:"text-[10px] px-1.5 py-px rounded bg-bg-tertiary text-text-tertiary",children:c},c))})}),e.features&&e.features.length>0&&a.jsx(nt,{label:t("plugins.features"),children:a.jsx("ul",{className:"space-y-0.5",children:e.features.map((c,p)=>a.jsxs("li",{className:"text-[12px] text-text-secondary flex items-start gap-1.5",children:[a.jsx("span",{className:"text-text-tertiary shrink-0",children:"·"}),c]},p))})})]})}function nt({label:e,children:t}){return a.jsxs("div",{className:"flex items-baseline gap-3",children:[a.jsx("span",{className:"text-[11px] text-text-tertiary w-12 shrink-0 text-right",children:e}),a.jsx("div",{className:"flex-1 min-w-0 flex items-baseline flex-wrap gap-1",children:t})]})}function Ru(){const{status:e,sessionId:t,currentModel:r,models:i,modes:s,currentMode:c}=tt(),{info:p,fetch:n}=Yt(),{mode:o,toggle:l}=yt(),{t:h,locale:m,toggleLocale:b}=le(),[_,w]=N.useState(null);N.useEffect(()=>{p||n()},[p,n]);const v=N.useCallback((S,C)=>{navigator.clipboard.writeText(S).then(()=>{w(C),setTimeout(()=>w(null),1500)})},[]),u=async S=>{if(t)try{await Ie().setModel(t,S)}catch(C){console.error("Model change failed:",C)}},f=async S=>{if(t)try{await Ie().setMode(t,S)}catch(C){console.error("Mode change failed:",C)}},d={disconnected:"bg-gray-400",connecting:"bg-accent-yellow animate-pulse",connected:"bg-accent-green",error:"bg-accent-red"}[e],g={connected:"connection.connected",connecting:"connection.connecting",disconnected:"connection.disconnected",error:"connection.error"},y=o==="light"?Wp:o==="dark"?Ip:Gp,x=h(o==="light"?"theme.light":o==="dark"?"theme.dark":"theme.system"),k=m==="system"?Tp:Ii,E=h(m==="zh"?"locale.zh":m==="en"?"locale.en":"locale.system");return a.jsx("div",{className:"settings-view",children:a.jsx("div",{className:"settings-content",children:a.jsxs("div",{className:"settings-sections",children:[a.jsxs("div",{className:"settings-group",children:[a.jsx("h2",{className:"settings-group-title",children:h("sidebar.connectionStatus")}),a.jsxs("div",{className:"settings-card",children:[a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.status")}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:`w-2 h-2 rounded-full ${d}`}),a.jsx("span",{className:"settings-value",children:h(g[e]||"connection.disconnected")})]})]}),a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.sessionId")}),a.jsx("span",{className:"settings-value font-mono text-[12px]",children:t?t.substring(0,12):h("sidebar.notConnected")})]})]})]}),a.jsxs("div",{className:"settings-group",children:[a.jsx("h2",{className:"settings-group-title",children:h("settings.appearance")}),a.jsxs("div",{className:"settings-card",children:[a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.theme")}),a.jsxs("button",{onClick:l,className:"settings-toggle-btn",children:[a.jsx(y,{size:14,className:"text-accent-brand"}),a.jsx("span",{children:x})]})]}),a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.language")}),a.jsxs("button",{onClick:b,className:"settings-toggle-btn",children:[a.jsx(k,{size:14,className:"text-accent-brand"}),a.jsx("span",{children:E})]})]})]})]}),i.length>0&&a.jsxs("div",{className:"settings-group",children:[a.jsx("h2",{className:"settings-group-title",children:h("settings.model")}),a.jsx("div",{className:"settings-card",children:a.jsx("select",{value:r,onChange:S=>u(S.target.value),className:"settings-select",children:i.map(S=>a.jsx("option",{value:S.id,children:S.name||S.id},S.id))})})]}),s.length>0&&a.jsxs("div",{className:"settings-group",children:[a.jsx("h2",{className:"settings-group-title",children:h("settings.mode")}),a.jsx("div",{className:"settings-card",children:a.jsx("select",{value:c,onChange:S=>f(S.target.value),className:"settings-select",children:s.map(S=>a.jsx("option",{value:S.id,title:S.description,children:S.name},S.id))})})]}),p&&a.jsxs("div",{className:"settings-group",children:[a.jsx("h2",{className:"settings-group-title",children:h("settings.systemInfo")}),a.jsxs("div",{className:"settings-card",children:[a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.cwd")}),a.jsxs("button",{onClick:()=>v(p.cwd,"cwd"),className:"settings-copy-btn",title:p.cwd,children:[a.jsx("span",{className:"truncate",children:p.cwd}),_==="cwd"?a.jsx(Je,{size:12,className:"shrink-0 text-accent-green"}):a.jsx(ci,{size:12,className:"shrink-0 text-text-tertiary"})]})]}),a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.os")}),a.jsxs("span",{className:"settings-value",children:[p.os," ",p.arch]})]}),a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.nodeVersion")}),a.jsx("span",{className:"settings-value",children:p.nodeVersion})]}),a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.gatewayMode")}),a.jsx("span",{className:"settings-value capitalize",children:p.gatewayMode})]}),p.tunnelUrl&&a.jsxs("div",{className:"settings-row",children:[a.jsx("span",{className:"settings-label",children:h("sidebar.tunnelUrl")}),a.jsxs("button",{onClick:()=>v(p.tunnelUrl,"tunnel"),className:"settings-copy-btn",title:p.tunnelUrl,children:[a.jsx("span",{className:"truncate",children:p.tunnelUrl.replace(/^https?:\/\//,"")}),_==="tunnel"?a.jsx(Je,{size:12,className:"shrink-0 text-accent-green"}):a.jsx(ci,{size:12,className:"shrink-0 text-text-tertiary"})]})]})]})]})]})})})}const Qf=3e3;function Iu(){const{t:e}=le(),{setMainView:t}=ge(),{setExternalInput:r,sessionId:i}=tt(),[s,c]=N.useState([]),[p,n]=N.useState(!0),[o,l]=N.useState(null),[h,m]=N.useState(!1),[b,_]=N.useState(!1),w=N.useRef(i);w.current=i;const v=N.useRef(null),u=N.useCallback(()=>{v.current&&(clearInterval(v.current),v.current=null)},[]),f=N.useCallback(async()=>{const k=new URLSearchParams,E=w.current;E&&k.append("sessionId",E);const S=k.toString(),C=`/api/v1/tasks/templates${S?"?"+S:""}`,R=await fetch(C,{headers:ke()});if(!R.ok)throw new Error(`HTTP ${R.status}`);const $=await R.json(),D=$.data??$;return c(D.templates||[]),l(D.error||null),D.status},[]),d=N.useCallback(()=>{u(),v.current=setInterval(async()=>{try{const k=await f();k!=="loading"&&(u(),m(!1),k==="done"&&(_(!0),setTimeout(()=>_(!1),2e3)))}catch(k){console.error("[TasksView] Poll error:",k),u(),m(!1),l(k.message||"Failed to load templates")}},Qf)},[f,u]);N.useEffect(()=>{let k=!1;return(async()=>{try{if(!w.current){if(k)return;n(!1);return}const S=await f();if(k)return;S==="loading"&&(m(!0),d())}catch(E){if(k)return;console.error("[TasksView] Initial fetch error:",E),l(E.message||"Failed to load templates")}finally{k||n(!1)}})(),()=>{k=!0,u()}},[f,d,u,i]);const g=N.useCallback(async()=>{m(!0),l(null),_(!1);try{const k=new URLSearchParams,E=w.current;E&&k.append("sessionId",E);const S=k.toString(),C=`/api/v1/tasks/templates/refresh${S?"?"+S:""}`,R=await fetch(C,{method:"POST",headers:ke()});if(!R.ok)throw new Error(`HTTP ${R.status}`);d()}catch(k){console.error("[TasksView] Refresh trigger error:",k),l(k.message||"Failed to trigger refresh"),m(!1)}},[d]),y=N.useCallback(k=>{r(k.command),t("chat")},[r,t]),x=!p&&s.length===0&&!o;return a.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden bg-bg-primary",children:[a.jsx("div",{className:"flex-none border-b border-border-default px-6 py-4",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:e("tasks.title")}),a.jsx("p",{className:"text-sm text-text-tertiary mt-1",children:e("tasks.subtitle")})]}),a.jsxs("button",{onClick:g,disabled:h,className:`flex items-center gap-2 px-3 py-2 rounded-lg border transition-all ${b?"border-green-500/50 text-green-500":h?"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?a.jsx(Je,{size:16}):a.jsx($t,{size:16,className:h?"animate-spin":""}),a.jsx("span",{className:"text-sm",children:e(b?"tasks.refreshed":"tasks.refresh")})]})]})}),a.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:[p&&!h&&a.jsx("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:a.jsx(Ze,{size:"small",text:e("tasks.loading")})}),o&&!p&&a.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-text-tertiary text-[48px] mb-4 opacity-30",children:"⚠"}),a.jsx("div",{className:"text-text-secondary text-sm mb-4",children:e("tasks.error")}),a.jsx("button",{onClick:g,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")})]})}),x&&a.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-text-tertiary",children:[a.jsx(Cp,{size:48,className:"mb-4 opacity-30"}),a.jsx("div",{className:"text-sm font-medium mb-1",children:e("tasks.empty")})]}),s.length>0&&a.jsx("div",{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 max-w-6xl transition-opacity duration-300 ${h?"opacity-50 pointer-events-none":"opacity-100"}`,children:s.map(k=>{const E=eb(k.icon);return a.jsxs("div",{onClick:()=>y(k),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:[a.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:a.jsx(E,{size:20,className:"text-text-tertiary group-hover:text-accent-brand transition-colors"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("h3",{className:"text-sm font-semibold text-text-primary truncate",children:k.title}),a.jsx("p",{className:"text-xs text-text-tertiary mt-0.5 truncate",children:k.description})]})]},k.id)})})]})]})}function eb(e){switch(e){case"Newspaper":return nc;case"MessageSquare":return nc;case"GitBranch":return wp;case"Package":return Lp;case"FileText":return et;case"Zap":return qp;case"Clock":return ec;default:return ec}}var ri={exports:{}},ed;function tb(){return ed||(ed=1,(function(e,t){(function(r,i){e.exports=i()})(self,(()=>(()=>{var r={};return(()=>{var i=r;Object.defineProperty(i,"__esModule",{value:!0}),i.FitAddon=void 0,i.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 c=this._terminal._core;this._terminal.rows===s.rows&&this._terminal.cols===s.cols||(c._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,c=s._renderService.dimensions;if(c.css.cell.width===0||c.css.cell.height===0)return;const p=this._terminal.options.scrollback===0?0:s.viewport.scrollBarWidth,n=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(n.getPropertyValue("height")),l=Math.max(0,parseInt(n.getPropertyValue("width"))),h=window.getComputedStyle(this._terminal.element),m=o-(parseInt(h.getPropertyValue("padding-top"))+parseInt(h.getPropertyValue("padding-bottom"))),b=l-(parseInt(h.getPropertyValue("padding-right"))+parseInt(h.getPropertyValue("padding-left")))-p;return{cols:Math.max(2,Math.floor(b/c.css.cell.width)),rows:Math.max(1,Math.floor(m/c.css.cell.height))}}}})(),r})()))})(ri)),ri.exports}var rb=tb(),ii={exports:{}},td;function ib(){return td||(td=1,(function(e,t){(function(r,i){e.exports=i()})(globalThis,(()=>(()=>{var r={4567:function(p,n,o){var l=this&&this.__decorate||function(d,g,y,x){var k,E=arguments.length,S=E<3?g:x===null?x=Object.getOwnPropertyDescriptor(g,y):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(d,g,y,x);else for(var C=d.length-1;C>=0;C--)(k=d[C])&&(S=(E<3?k(S):E>3?k(g,y,S):k(g,y))||S);return E>3&&S&&Object.defineProperty(g,y,S),S},h=this&&this.__param||function(d,g){return function(y,x){g(y,x,d)}};Object.defineProperty(n,"__esModule",{value:!0}),n.AccessibilityManager=void 0;const m=o(9042),b=o(9924),_=o(844),w=o(4725),v=o(2585),u=o(3656);let f=n.AccessibilityManager=class extends _.Disposable{constructor(d,g,y,x){super(),this._terminal=d,this._coreBrowserService=y,this._renderService=x,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 k=0;k<this._terminal.rows;k++)this._rowElements[k]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[k]);if(this._topBoundaryFocusListener=k=>this._handleBoundaryFocus(k,0),this._bottomBoundaryFocusListener=k=>this._handleBoundaryFocus(k,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((k=>this._handleResize(k.rows)))),this.register(this._terminal.onRender((k=>this._refreshRows(k.start,k.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((k=>this._handleChar(k)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
466
+ `)))),this.register(this._terminal.onA11yTab((k=>this._handleTab(k)))),this.register(this._terminal.onKey((k=>this._handleKey(k.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,u.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,_.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(d){for(let g=0;g<d;g++)this._handleChar(" ")}_handleChar(d){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==d&&(this._charsToAnnounce+=d):this._charsToAnnounce+=d,d===`
467
+ `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=m.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(d){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(d)||this._charsToConsume.push(d)}_refreshRows(d,g){this._liveRegionDebouncer.refresh(d,g,this._terminal.rows)}_renderRows(d,g){const y=this._terminal.buffer,x=y.lines.length.toString();for(let k=d;k<=g;k++){const E=y.lines.get(y.ydisp+k),S=[],C=(E==null?void 0:E.translateToString(!0,void 0,void 0,S))||"",R=(y.ydisp+k+1).toString(),$=this._rowElements[k];$&&(C.length===0?($.innerText=" ",this._rowColumns.set($,[0,1])):($.textContent=C,this._rowColumns.set($,S)),$.setAttribute("aria-posinset",R),$.setAttribute("aria-setsize",x))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(d,g){const y=d.target,x=this._rowElements[g===0?1:this._rowElements.length-2];if(y.getAttribute("aria-posinset")===(g===0?"1":`${this._terminal.buffer.lines.length}`)||d.relatedTarget!==x)return;let k,E;if(g===0?(k=y,E=this._rowElements.pop(),this._rowContainer.removeChild(E)):(k=this._rowElements.shift(),E=y,this._rowContainer.removeChild(k)),k.removeEventListener("focus",this._topBoundaryFocusListener),E.removeEventListener("focus",this._bottomBoundaryFocusListener),g===0){const S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else{const S=this._createAccessibilityTreeNode();this._rowElements.push(S),this._rowContainer.appendChild(S)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(g===0?-1:1),this._rowElements[g===0?1:this._rowElements.length-2].focus(),d.preventDefault(),d.stopImmediatePropagation()}_handleSelectionChange(){var C;if(this._rowElements.length===0)return;const d=document.getSelection();if(!d)return;if(d.isCollapsed)return void(this._rowContainer.contains(d.anchorNode)&&this._terminal.clearSelection());if(!d.anchorNode||!d.focusNode)return void console.error("anchorNode and/or focusNode are null");let g={node:d.anchorNode,offset:d.anchorOffset},y={node:d.focusNode,offset:d.focusOffset};if((g.node.compareDocumentPosition(y.node)&Node.DOCUMENT_POSITION_PRECEDING||g.node===y.node&&g.offset>y.offset)&&([g,y]=[y,g]),g.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(g={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(g.node))return;const x=this._rowElements.slice(-1)[0];if(y.node.compareDocumentPosition(x)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(y={node:x,offset:((C=x.textContent)==null?void 0:C.length)??0}),!this._rowContainer.contains(y.node))return;const k=({node:R,offset:$})=>{const D=R instanceof Text?R.parentNode:R;let A=parseInt(D==null?void 0:D.getAttribute("aria-posinset"),10)-1;if(isNaN(A))return console.warn("row is invalid. Race condition?"),null;const P=this._rowColumns.get(D);if(!P)return console.warn("columns is null. Race condition?"),null;let I=$<P.length?P[$]:P.slice(-1)[0]+1;return I>=this._terminal.cols&&(++A,I=0),{row:A,column:I}},E=k(g),S=k(y);if(E&&S){if(E.row>S.row||E.row===S.row&&E.column>=S.column)throw new Error("invalid range");this._terminal.select(E.column,E.row,(S.row-E.row)*this._terminal.cols-E.column+S.column)}}_handleResize(d){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let g=this._rowContainer.children.length;g<this._terminal.rows;g++)this._rowElements[g]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[g]);for(;this._rowElements.length>d;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const d=this._coreBrowserService.mainDocument.createElement("div");return d.setAttribute("role","listitem"),d.tabIndex=-1,this._refreshRowDimensions(d),d}_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 d=0;d<this._terminal.rows;d++)this._refreshRowDimensions(this._rowElements[d])}}_refreshRowDimensions(d){d.style.height=`${this._renderService.dimensions.css.cell.height}px`}};n.AccessibilityManager=f=l([h(1,v.IInstantiationService),h(2,w.ICoreBrowserService),h(3,w.IRenderService)],f)},3614:(p,n)=>{function o(b){return b.replace(/\r?\n/g,"\r")}function l(b,_){return _?"\x1B[200~"+b+"\x1B[201~":b}function h(b,_,w,v){b=l(b=o(b),w.decPrivateModes.bracketedPasteMode&&v.rawOptions.ignoreBracketedPasteMode!==!0),w.triggerDataEvent(b,!0),_.value=""}function m(b,_,w){const v=w.getBoundingClientRect(),u=b.clientX-v.left-10,f=b.clientY-v.top-10;_.style.width="20px",_.style.height="20px",_.style.left=`${u}px`,_.style.top=`${f}px`,_.style.zIndex="1000",_.focus()}Object.defineProperty(n,"__esModule",{value:!0}),n.rightClickHandler=n.moveTextAreaUnderMouseCursor=n.paste=n.handlePasteEvent=n.copyHandler=n.bracketTextForPaste=n.prepareTextForTerminal=void 0,n.prepareTextForTerminal=o,n.bracketTextForPaste=l,n.copyHandler=function(b,_){b.clipboardData&&b.clipboardData.setData("text/plain",_.selectionText),b.preventDefault()},n.handlePasteEvent=function(b,_,w,v){b.stopPropagation(),b.clipboardData&&h(b.clipboardData.getData("text/plain"),_,w,v)},n.paste=h,n.moveTextAreaUnderMouseCursor=m,n.rightClickHandler=function(b,_,w,v,u){m(b,_,w),u&&v.rightClickSelect(b),_.value=v.selectionText,_.select()}},7239:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ColorContrastCache=void 0;const l=o(1505);n.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(h,m,b){this._css.set(h,m,b)}getCss(h,m){return this._css.get(h,m)}setColor(h,m,b){this._color.set(h,m,b)}getColor(h,m){return this._color.get(h,m)}clear(){this._color.clear(),this._css.clear()}}},3656:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.addDisposableDomListener=void 0,n.addDisposableDomListener=function(o,l,h,m){o.addEventListener(l,h,m);let b=!1;return{dispose:()=>{b||(b=!0,o.removeEventListener(l,h,m))}}}},3551:function(p,n,o){var l=this&&this.__decorate||function(f,d,g,y){var x,k=arguments.length,E=k<3?d:y===null?y=Object.getOwnPropertyDescriptor(d,g):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,d,g,y);else for(var S=f.length-1;S>=0;S--)(x=f[S])&&(E=(k<3?x(E):k>3?x(d,g,E):x(d,g))||E);return k>3&&E&&Object.defineProperty(d,g,E),E},h=this&&this.__param||function(f,d){return function(g,y){d(g,y,f)}};Object.defineProperty(n,"__esModule",{value:!0}),n.Linkifier=void 0;const m=o(3656),b=o(8460),_=o(844),w=o(2585),v=o(4725);let u=n.Linkifier=class extends _.Disposable{get currentLink(){return this._currentLink}constructor(f,d,g,y,x){super(),this._element=f,this._mouseService=d,this._renderService=g,this._bufferService=y,this._linkProviderService=x,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,_.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,_.toDisposable)((()=>{var k;this._lastMouseEvent=void 0,(k=this._activeProviderReplies)==null||k.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,m.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,m.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,m.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,m.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(f){this._lastMouseEvent=f;const d=this._positionFromMouseEvent(f,this._element,this._mouseService);if(!d)return;this._isMouseOut=!1;const g=f.composedPath();for(let y=0;y<g.length;y++){const x=g[y];if(x.classList.contains("xterm"))break;if(x.classList.contains("xterm-hover"))return}this._lastBufferCell&&d.x===this._lastBufferCell.x&&d.y===this._lastBufferCell.y||(this._handleHover(d),this._lastBufferCell=d)}_handleHover(f){if(this._activeLine!==f.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(f,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,f)||(this._clearCurrentLink(),this._askForLink(f,!0))}_askForLink(f,d){var y,x;this._activeProviderReplies&&d||((y=this._activeProviderReplies)==null||y.forEach((k=>{k==null||k.forEach((E=>{E.link.dispose&&E.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=f.y);let g=!1;for(const[k,E]of this._linkProviderService.linkProviders.entries())d?(x=this._activeProviderReplies)!=null&&x.get(k)&&(g=this._checkLinkProviderResult(k,f,g)):E.provideLinks(f.y,(S=>{var R,$;if(this._isMouseOut)return;const C=S==null?void 0:S.map((D=>({link:D})));(R=this._activeProviderReplies)==null||R.set(k,C),g=this._checkLinkProviderResult(k,f,g),(($=this._activeProviderReplies)==null?void 0:$.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(f.y,this._activeProviderReplies)}))}_removeIntersectingLinks(f,d){const g=new Set;for(let y=0;y<d.size;y++){const x=d.get(y);if(x)for(let k=0;k<x.length;k++){const E=x[k],S=E.link.range.start.y<f?0:E.link.range.start.x,C=E.link.range.end.y>f?this._bufferService.cols:E.link.range.end.x;for(let R=S;R<=C;R++){if(g.has(R)){x.splice(k--,1);break}g.add(R)}}}}_checkLinkProviderResult(f,d,g){var k;if(!this._activeProviderReplies)return g;const y=this._activeProviderReplies.get(f);let x=!1;for(let E=0;E<f;E++)this._activeProviderReplies.has(E)&&!this._activeProviderReplies.get(E)||(x=!0);if(!x&&y){const E=y.find((S=>this._linkAtPosition(S.link,d)));E&&(g=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!g)for(let E=0;E<this._activeProviderReplies.size;E++){const S=(k=this._activeProviderReplies.get(E))==null?void 0:k.find((C=>this._linkAtPosition(C.link,d)));if(S){g=!0,this._handleNewLink(S);break}}return g}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(f){if(!this._currentLink)return;const d=this._positionFromMouseEvent(f,this._element,this._mouseService);d&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,d)&&this._currentLink.link.activate(f,this._currentLink.link.text)}_clearCurrentLink(f,d){this._currentLink&&this._lastMouseEvent&&(!f||!d||this._currentLink.link.range.start.y>=f&&this._currentLink.link.range.end.y<=d)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))}_handleNewLink(f){if(!this._lastMouseEvent)return;const d=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);d&&this._linkAtPosition(f.link,d)&&(this._currentLink=f,this._currentLink.state={decorations:{underline:f.link.decorations===void 0||f.link.decorations.underline,pointerCursor:f.link.decorations===void 0||f.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,f.link,this._lastMouseEvent),f.link.decorations={},Object.defineProperties(f.link.decorations,{pointerCursor:{get:()=>{var g,y;return(y=(g=this._currentLink)==null?void 0:g.state)==null?void 0:y.decorations.pointerCursor},set:g=>{var y;(y=this._currentLink)!=null&&y.state&&this._currentLink.state.decorations.pointerCursor!==g&&(this._currentLink.state.decorations.pointerCursor=g,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",g))}},underline:{get:()=>{var g,y;return(y=(g=this._currentLink)==null?void 0:g.state)==null?void 0:y.decorations.underline},set:g=>{var y,x,k;(y=this._currentLink)!=null&&y.state&&((k=(x=this._currentLink)==null?void 0:x.state)==null?void 0:k.decorations.underline)!==g&&(this._currentLink.state.decorations.underline=g,this._currentLink.state.isHovered&&this._fireUnderlineEvent(f.link,g))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((g=>{if(!this._currentLink)return;const y=g.start===0?0:g.start+1+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.ydisp+1+g.end;if(this._currentLink.link.range.start.y>=y&&this._currentLink.link.range.end.y<=x&&(this._clearCurrentLink(y,x),this._lastMouseEvent)){const k=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);k&&this._askForLink(k,!1)}}))))}_linkHover(f,d,g){var y;(y=this._currentLink)!=null&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(d,!0),this._currentLink.state.decorations.pointerCursor&&f.classList.add("xterm-cursor-pointer")),d.hover&&d.hover(g,d.text)}_fireUnderlineEvent(f,d){const g=f.range,y=this._bufferService.buffer.ydisp,x=this._createLinkUnderlineEvent(g.start.x-1,g.start.y-y-1,g.end.x,g.end.y-y-1,void 0);(d?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(x)}_linkLeave(f,d,g){var y;(y=this._currentLink)!=null&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(d,!1),this._currentLink.state.decorations.pointerCursor&&f.classList.remove("xterm-cursor-pointer")),d.leave&&d.leave(g,d.text)}_linkAtPosition(f,d){const g=f.range.start.y*this._bufferService.cols+f.range.start.x,y=f.range.end.y*this._bufferService.cols+f.range.end.x,x=d.y*this._bufferService.cols+d.x;return g<=x&&x<=y}_positionFromMouseEvent(f,d,g){const y=g.getCoords(f,d,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(f,d,g,y,x){return{x1:f,y1:d,x2:g,y2:y,cols:this._bufferService.cols,fg:x}}};n.Linkifier=u=l([h(1,v.IMouseService),h(2,v.IRenderService),h(3,w.IBufferService),h(4,v.ILinkProviderService)],u)},9042:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.tooMuchOutput=n.promptLabel=void 0,n.promptLabel="Terminal input",n.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(p,n,o){var l=this&&this.__decorate||function(v,u,f,d){var g,y=arguments.length,x=y<3?u:d===null?d=Object.getOwnPropertyDescriptor(u,f):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(v,u,f,d);else for(var k=v.length-1;k>=0;k--)(g=v[k])&&(x=(y<3?g(x):y>3?g(u,f,x):g(u,f))||x);return y>3&&x&&Object.defineProperty(u,f,x),x},h=this&&this.__param||function(v,u){return function(f,d){u(f,d,v)}};Object.defineProperty(n,"__esModule",{value:!0}),n.OscLinkProvider=void 0;const m=o(511),b=o(2585);let _=n.OscLinkProvider=class{constructor(v,u,f){this._bufferService=v,this._optionsService=u,this._oscLinkService=f}provideLinks(v,u){var C;const f=this._bufferService.buffer.lines.get(v-1);if(!f)return void u(void 0);const d=[],g=this._optionsService.rawOptions.linkHandler,y=new m.CellData,x=f.getTrimmedLength();let k=-1,E=-1,S=!1;for(let R=0;R<x;R++)if(E!==-1||f.hasContent(R)){if(f.loadCell(R,y),y.hasExtendedAttrs()&&y.extended.urlId){if(E===-1){E=R,k=y.extended.urlId;continue}S=y.extended.urlId!==k}else E!==-1&&(S=!0);if(S||E!==-1&&R===x-1){const $=(C=this._oscLinkService.getLinkData(k))==null?void 0:C.uri;if($){const D={start:{x:E+1,y:v},end:{x:R+(S||R!==x-1?0:1),y:v}};let A=!1;if(!(g!=null&&g.allowNonHttpProtocols))try{const P=new URL($);["http:","https:"].includes(P.protocol)||(A=!0)}catch{A=!0}A||d.push({text:$,range:D,activate:(P,I)=>g?g.activate(P,I,D):w(0,I),hover:(P,I)=>{var U;return(U=g==null?void 0:g.hover)==null?void 0:U.call(g,P,I,D)},leave:(P,I)=>{var U;return(U=g==null?void 0:g.leave)==null?void 0:U.call(g,P,I,D)}})}S=!1,y.hasExtendedAttrs()&&y.extended.urlId?(E=R,k=y.extended.urlId):(E=-1,k=-1)}}u(d)}};function w(v,u){if(confirm(`Do you want to navigate to ${u}?
468
+
469
+ WARNING: This link could potentially be dangerous`)){const f=window.open();if(f){try{f.opener=null}catch{}f.location.href=u}else console.warn("Opening link blocked as opener could not be cleared")}}n.OscLinkProvider=_=l([h(0,b.IBufferService),h(1,b.IOptionsService),h(2,b.IOscLinkService)],_)},6193:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.RenderDebouncer=void 0,n.RenderDebouncer=class{constructor(o,l){this._renderCallback=o,this._coreBrowserService=l,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,l,h){this._rowCount=h,o=o!==void 0?o:0,l=l!==void 0?l: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,l):l,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),l=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,l),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const o of this._refreshCallbacks)o(0);this._refreshCallbacks=[]}}},3236:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Terminal=void 0;const l=o(3614),h=o(3656),m=o(3551),b=o(9042),_=o(3730),w=o(1680),v=o(3107),u=o(5744),f=o(2950),d=o(1296),g=o(428),y=o(4269),x=o(5114),k=o(8934),E=o(3230),S=o(9312),C=o(4725),R=o(6731),$=o(8055),D=o(8969),A=o(8460),P=o(844),I=o(6114),U=o(8437),z=o(2584),W=o(7399),T=o(5941),j=o(9074),M=o(2585),F=o(5435),G=o(4567),V=o(779);class Q extends D.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(B={}){super(B),this.browser=I,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new P.MutableDisposable),this._onCursorMove=this.register(new A.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new A.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new A.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new A.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new A.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new A.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new A.EventEmitter),this._onBlur=this.register(new A.EventEmitter),this._onA11yCharEmitter=this.register(new A.EventEmitter),this._onA11yTabEmitter=this.register(new A.EventEmitter),this._onWillOpen=this.register(new A.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(j.DecorationService),this._instantiationService.setService(M.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(V.LinkProviderService),this._instantiationService.setService(C.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(_.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((L,K)=>this.refresh(L,K)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((L=>this._reportWindowsOptions(L)))),this.register(this._inputHandler.onColor((L=>this._handleColorEvent(L)))),this.register((0,A.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,A.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,A.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,A.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((L=>this._afterResize(L.cols,L.rows)))),this.register((0,P.toDisposable)((()=>{var L,K;this._customKeyEventHandler=void 0,(K=(L=this.element)==null?void 0:L.parentNode)==null||K.removeChild(this.element)})))}_handleColorEvent(B){if(this._themeService)for(const L of B){let K,q="";switch(L.index){case 256:K="foreground",q="10";break;case 257:K="background",q="11";break;case 258:K="cursor",q="12";break;default:K="ansi",q="4;"+L.index}switch(L.type){case 0:const ee=$.color.toColorRGB(K==="ansi"?this._themeService.colors.ansi[L.index]:this._themeService.colors[K]);this.coreService.triggerDataEvent(`${z.C0.ESC}]${q};${(0,T.toRgbString)(ee)}${z.C1_ESCAPED.ST}`);break;case 1:if(K==="ansi")this._themeService.modifyColors((J=>J.ansi[L.index]=$.channels.toColor(...L.color)));else{const J=K;this._themeService.modifyColors((se=>se[J]=$.channels.toColor(...L.color)))}break;case 2:this._themeService.restoreColor(L.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(B){B?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(G.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(B){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(z.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var B;return(B=this.textarea)==null?void 0:B.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(z.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 B=this.buffer.ybase+this.buffer.y,L=this.buffer.lines.get(B);if(!L)return;const K=Math.min(this.buffer.x,this.cols-1),q=this._renderService.dimensions.css.cell.height,ee=L.getWidth(K),J=this._renderService.dimensions.css.cell.width*ee,se=this.buffer.y*this._renderService.dimensions.css.cell.height,Z=K*this._renderService.dimensions.css.cell.width;this.textarea.style.left=Z+"px",this.textarea.style.top=se+"px",this.textarea.style.width=J+"px",this.textarea.style.height=q+"px",this.textarea.style.lineHeight=q+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,h.addDisposableDomListener)(this.element,"copy",(L=>{this.hasSelection()&&(0,l.copyHandler)(L,this._selectionService)})));const B=L=>(0,l.handlePasteEvent)(L,this.textarea,this.coreService,this.optionsService);this.register((0,h.addDisposableDomListener)(this.textarea,"paste",B)),this.register((0,h.addDisposableDomListener)(this.element,"paste",B)),I.isFirefox?this.register((0,h.addDisposableDomListener)(this.element,"mousedown",(L=>{L.button===2&&(0,l.rightClickHandler)(L,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,h.addDisposableDomListener)(this.element,"contextmenu",(L=>{(0,l.rightClickHandler)(L,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),I.isLinux&&this.register((0,h.addDisposableDomListener)(this.element,"auxclick",(L=>{L.button===1&&(0,l.moveTextAreaUnderMouseCursor)(L,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,h.addDisposableDomListener)(this.textarea,"keyup",(B=>this._keyUp(B)),!0)),this.register((0,h.addDisposableDomListener)(this.textarea,"keydown",(B=>this._keyDown(B)),!0)),this.register((0,h.addDisposableDomListener)(this.textarea,"keypress",(B=>this._keyPress(B)),!0)),this.register((0,h.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,h.addDisposableDomListener)(this.textarea,"compositionupdate",(B=>this._compositionHelper.compositionupdate(B)))),this.register((0,h.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,h.addDisposableDomListener)(this.textarea,"input",(B=>this._inputEvent(B)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(B){var K;if(!B)throw new Error("Terminal requires a parent element.");if(B.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((K=this.element)==null?void 0:K.ownerDocument.defaultView)&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=B.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"),B.appendChild(this.element);const L=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),L.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,h.addDisposableDomListener)(this.screenElement,"mousemove",(q=>this.updateCursorStyle(q)))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),L.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",b.promptLabel),I.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(x.CoreBrowserService,this.textarea,B.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(C.ICoreBrowserService,this._coreBrowserService),this.register((0,h.addDisposableDomListener)(this.textarea,"focus",(q=>this._handleTextAreaFocus(q)))),this.register((0,h.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(g.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(C.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(R.ThemeService),this._instantiationService.setService(C.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(y.CharacterJoinerService),this._instantiationService.setService(C.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(E.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(C.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((q=>this._onRender.fire(q)))),this.onResize((q=>this._renderService.resize(q.cols,q.rows))),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(f.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(k.MouseService),this._instantiationService.setService(C.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(m.Linkifier,this.screenElement)),this.element.appendChild(L);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(w.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((q=>this.scrollLines(q.amount,q.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(S.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(C.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((q=>this.scrollLines(q.amount,q.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((q=>this._renderService.handleSelectionChanged(q.start,q.end,q.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((q=>{this.textarea.value=q,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((q=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,h.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(v.BufferDecorationRenderer,this.screenElement)),this.register((0,h.addDisposableDomListener)(this.element,"mousedown",(q=>this._selectionService.handleMouseDown(q)))),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(G.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(q=>this._handleScreenReaderModeOptionChange(q)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(u.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(q=>{!this._overviewRulerRenderer&&q&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(u.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(d.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){const B=this,L=this.element;function K(J){const se=B._mouseService.getMouseReportCoords(J,B.screenElement);if(!se)return!1;let Z,ne;switch(J.overrideType||J.type){case"mousemove":ne=32,J.buttons===void 0?(Z=3,J.button!==void 0&&(Z=J.button<3?J.button:3)):Z=1&J.buttons?0:4&J.buttons?1:2&J.buttons?2:3;break;case"mouseup":ne=0,Z=J.button<3?J.button:3;break;case"mousedown":ne=1,Z=J.button<3?J.button:3;break;case"wheel":if(B._customWheelEventHandler&&B._customWheelEventHandler(J)===!1||B.viewport.getLinesScrolled(J)===0)return!1;ne=J.deltaY<0?0:1,Z=4;break;default:return!1}return!(ne===void 0||Z===void 0||Z>4)&&B.coreMouseService.triggerMouseEvent({col:se.col,row:se.row,x:se.x,y:se.y,button:Z,action:ne,ctrl:J.ctrlKey,alt:J.altKey,shift:J.shiftKey})}const q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ee={mouseup:J=>(K(J),J.buttons||(this._document.removeEventListener("mouseup",q.mouseup),q.mousedrag&&this._document.removeEventListener("mousemove",q.mousedrag)),this.cancel(J)),wheel:J=>(K(J),this.cancel(J,!0)),mousedrag:J=>{J.buttons&&K(J)},mousemove:J=>{J.buttons||K(J)}};this.register(this.coreMouseService.onProtocolChange((J=>{J?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(J)),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&J?q.mousemove||(L.addEventListener("mousemove",ee.mousemove),q.mousemove=ee.mousemove):(L.removeEventListener("mousemove",q.mousemove),q.mousemove=null),16&J?q.wheel||(L.addEventListener("wheel",ee.wheel,{passive:!1}),q.wheel=ee.wheel):(L.removeEventListener("wheel",q.wheel),q.wheel=null),2&J?q.mouseup||(q.mouseup=ee.mouseup):(this._document.removeEventListener("mouseup",q.mouseup),q.mouseup=null),4&J?q.mousedrag||(q.mousedrag=ee.mousedrag):(this._document.removeEventListener("mousemove",q.mousedrag),q.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,h.addDisposableDomListener)(L,"mousedown",(J=>{if(J.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(J))return K(J),q.mouseup&&this._document.addEventListener("mouseup",q.mouseup),q.mousedrag&&this._document.addEventListener("mousemove",q.mousedrag),this.cancel(J)}))),this.register((0,h.addDisposableDomListener)(L,"wheel",(J=>{if(!q.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(J)===!1)return!1;if(!this.buffer.hasScrollback){const se=this.viewport.getLinesScrolled(J);if(se===0)return;const Z=z.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(J.deltaY<0?"A":"B");let ne="";for(let ue=0;ue<Math.abs(se);ue++)ne+=Z;return this.coreService.triggerDataEvent(ne,!0),this.cancel(J,!0)}return this.viewport.handleWheel(J)?this.cancel(J):void 0}}),{passive:!1})),this.register((0,h.addDisposableDomListener)(L,"touchstart",(J=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(J),this.cancel(J)}),{passive:!0})),this.register((0,h.addDisposableDomListener)(L,"touchmove",(J=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(J)?void 0:this.cancel(J)}),{passive:!1}))}refresh(B,L){var K;(K=this._renderService)==null||K.refreshRows(B,L)}updateCursorStyle(B){var L;(L=this._selectionService)!=null&&L.shouldColumnSelect(B)?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(B,L,K=0){var q;K===1?(super.scrollLines(B,L,K),this.refresh(0,this.rows-1)):(q=this.viewport)==null||q.scrollLines(B)}paste(B){(0,l.paste)(B,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(B){this._customKeyEventHandler=B}attachCustomWheelEventHandler(B){this._customWheelEventHandler=B}registerLinkProvider(B){return this._linkProviderService.registerLinkProvider(B)}registerCharacterJoiner(B){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const L=this._characterJoinerService.register(B);return this.refresh(0,this.rows-1),L}deregisterCharacterJoiner(B){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(B)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(B){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+B)}registerDecoration(B){return this._decorationService.registerDecoration(B)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(B,L,K){this._selectionService.setSelection(B,L,K)}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 B;(B=this._selectionService)==null||B.clearSelection()}selectAll(){var B;(B=this._selectionService)==null||B.selectAll()}selectLines(B,L){var K;(K=this._selectionService)==null||K.selectLines(B,L)}_keyDown(B){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1)return!1;const L=this.browser.isMac&&this.options.macOptionIsMeta&&B.altKey;if(!L&&!this._compositionHelper.keydown(B))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;L||B.key!=="Dead"&&B.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const K=(0,W.evaluateKeyboardEvent)(B,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(B),K.type===3||K.type===2){const q=this.rows-1;return this.scrollLines(K.type===2?-q:q),this.cancel(B,!0)}return K.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,B)||(K.cancel&&this.cancel(B,!0),!K.key||!!(B.key&&!B.ctrlKey&&!B.altKey&&!B.metaKey&&B.key.length===1&&B.key.charCodeAt(0)>=65&&B.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(K.key!==z.C0.ETX&&K.key!==z.C0.CR||(this.textarea.value=""),this._onKey.fire({key:K.key,domEvent:B}),this._showCursor(),this.coreService.triggerDataEvent(K.key,!0),!this.optionsService.rawOptions.screenReaderMode||B.altKey||B.ctrlKey?this.cancel(B,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(B,L){const K=B.isMac&&!this.options.macOptionIsMeta&&L.altKey&&!L.ctrlKey&&!L.metaKey||B.isWindows&&L.altKey&&L.ctrlKey&&!L.metaKey||B.isWindows&&L.getModifierState("AltGraph");return L.type==="keypress"?K:K&&(!L.keyCode||L.keyCode>47)}_keyUp(B){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1||((function(L){return L.keyCode===16||L.keyCode===17||L.keyCode===18})(B)||this.focus(),this.updateCursorStyle(B),this._keyPressHandled=!1)}_keyPress(B){let L;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1)return!1;if(this.cancel(B),B.charCode)L=B.charCode;else if(B.which===null||B.which===void 0)L=B.keyCode;else{if(B.which===0||B.charCode===0)return!1;L=B.which}return!(!L||(B.altKey||B.ctrlKey||B.metaKey)&&!this._isThirdLevelShift(this.browser,B)||(L=String.fromCharCode(L),this._onKey.fire({key:L,domEvent:B}),this._showCursor(),this.coreService.triggerDataEvent(L,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(B){if(B.data&&B.inputType==="insertText"&&(!B.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const L=B.data;return this.coreService.triggerDataEvent(L,!0),this.cancel(B),!0}return!1}resize(B,L){B!==this.cols||L!==this.rows?super.resize(B,L):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(B,L){var K,q;(K=this._charSizeService)==null||K.measure(),(q=this.viewport)==null||q.syncScrollArea(!0)}clear(){var B;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 L=1;L<this.rows;L++)this.buffer.lines.push(this.buffer.getBlankLine(U.DEFAULT_ATTR_DATA));this._onScroll.fire({position:this.buffer.ydisp,source:0}),(B=this.viewport)==null||B.reset(),this.refresh(0,this.rows-1)}}reset(){var L,K;this.options.rows=this.rows,this.options.cols=this.cols;const B=this._customKeyEventHandler;this._setup(),super.reset(),(L=this._selectionService)==null||L.reset(),this._decorationService.reset(),(K=this.viewport)==null||K.reset(),this._customKeyEventHandler=B,this.refresh(0,this.rows-1)}clearTextureAtlas(){var B;(B=this._renderService)==null||B.clearTextureAtlas()}_reportFocus(){var B;(B=this.element)!=null&&B.classList.contains("focus")?this.coreService.triggerDataEvent(z.C0.ESC+"[I"):this.coreService.triggerDataEvent(z.C0.ESC+"[O")}_reportWindowsOptions(B){if(this._renderService)switch(B){case F.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const L=this._renderService.dimensions.css.canvas.width.toFixed(0),K=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${z.C0.ESC}[4;${K};${L}t`);break;case F.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:const q=this._renderService.dimensions.css.cell.width.toFixed(0),ee=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${z.C0.ESC}[6;${ee};${q}t`)}}cancel(B,L){if(this.options.cancelEvents||L)return B.preventDefault(),B.stopPropagation(),!1}}n.Terminal=Q},9924:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.TimeBasedDebouncer=void 0,n.TimeBasedDebouncer=class{constructor(o,l=1e3){this._renderCallback=o,this._debounceThresholdMS=l,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(o,l,h){this._rowCount=h,o=o!==void 0?o:0,l=l!==void 0?l: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,l):l;const m=Date.now();if(m-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=m,this._innerRefresh();else if(!this._additionalRefreshRequested){const b=m-this._lastRefreshMs,_=this._debounceThresholdMS-b;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),_)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const o=Math.max(this._rowStart,0),l=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,l)}}},1680:function(p,n,o){var l=this&&this.__decorate||function(f,d,g,y){var x,k=arguments.length,E=k<3?d:y===null?y=Object.getOwnPropertyDescriptor(d,g):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,d,g,y);else for(var S=f.length-1;S>=0;S--)(x=f[S])&&(E=(k<3?x(E):k>3?x(d,g,E):x(d,g))||E);return k>3&&E&&Object.defineProperty(d,g,E),E},h=this&&this.__param||function(f,d){return function(g,y){d(g,y,f)}};Object.defineProperty(n,"__esModule",{value:!0}),n.Viewport=void 0;const m=o(3656),b=o(4725),_=o(8460),w=o(844),v=o(2585);let u=n.Viewport=class extends w.Disposable{constructor(f,d,g,y,x,k,E,S){super(),this._viewportElement=f,this._scrollArea=d,this._bufferService=g,this._optionsService=y,this._charSizeService=x,this._renderService=k,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 _.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,m.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((C=>this._activeBuffer=C.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((C=>this._renderDimensions=C))),this._handleThemeChange(S.colors),this.register(S.onChangeColors((C=>this._handleThemeChange(C)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(f){this._viewportElement.style.backgroundColor=f.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(f){if(f)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 d=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==d&&(this._lastRecordedBufferHeight=d,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const f=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==f&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=f),this._refreshAnimationFrame=null}syncScrollArea(f=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(f);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(f)}_handleScroll(f){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 d=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:d,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const f=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(f*(this._smoothScrollState.target-this._smoothScrollState.origin)),f<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(f,d){const g=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(d<0&&this._viewportElement.scrollTop!==0||d>0&&g<this._lastRecordedBufferHeight)||(f.cancelable&&f.preventDefault(),!1)}handleWheel(f){const d=this._getPixelsScrolled(f);return d!==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+d:this._smoothScrollState.target+=d,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=d,this._bubbleScroll(f,d))}scrollLines(f){if(f!==0)if(this._optionsService.rawOptions.smoothScrollDuration){const d=f*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+d,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:f,suppressScrollEvent:!1})}_getPixelsScrolled(f){if(f.deltaY===0||f.shiftKey)return 0;let d=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_LINE?d*=this._currentRowHeight:f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(d*=this._currentRowHeight*this._bufferService.rows),d}getBufferElements(f,d){var S;let g,y="";const x=[],k=d??this._bufferService.buffer.lines.length,E=this._bufferService.buffer.lines;for(let C=f;C<k;C++){const R=E.get(C);if(!R)continue;const $=(S=E.get(C+1))==null?void 0:S.isWrapped;if(y+=R.translateToString(!$),!$||C===E.length-1){const D=document.createElement("div");D.textContent=y,x.push(D),y.length>0&&(g=D),y=""}}return{bufferElements:x,cursorElement:g}}getLinesScrolled(f){if(f.deltaY===0||f.shiftKey)return 0;let d=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(d/=this._currentRowHeight+0,this._wheelPartialScroll+=d,d=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(d*=this._bufferService.rows),d}_applyScrollModifier(f,d){const g=this._optionsService.rawOptions.fastScrollModifier;return g==="alt"&&d.altKey||g==="ctrl"&&d.ctrlKey||g==="shift"&&d.shiftKey?f*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:f*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(f){this._lastTouchY=f.touches[0].pageY}handleTouchMove(f){const d=this._lastTouchY-f.touches[0].pageY;return this._lastTouchY=f.touches[0].pageY,d!==0&&(this._viewportElement.scrollTop+=d,this._bubbleScroll(f,d))}};n.Viewport=u=l([h(2,v.IBufferService),h(3,v.IOptionsService),h(4,b.ICharSizeService),h(5,b.IRenderService),h(6,b.ICoreBrowserService),h(7,b.IThemeService)],u)},3107:function(p,n,o){var l=this&&this.__decorate||function(v,u,f,d){var g,y=arguments.length,x=y<3?u:d===null?d=Object.getOwnPropertyDescriptor(u,f):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(v,u,f,d);else for(var k=v.length-1;k>=0;k--)(g=v[k])&&(x=(y<3?g(x):y>3?g(u,f,x):g(u,f))||x);return y>3&&x&&Object.defineProperty(u,f,x),x},h=this&&this.__param||function(v,u){return function(f,d){u(f,d,v)}};Object.defineProperty(n,"__esModule",{value:!0}),n.BufferDecorationRenderer=void 0;const m=o(4725),b=o(844),_=o(2585);let w=n.BufferDecorationRenderer=class extends b.Disposable{constructor(v,u,f,d,g){super(),this._screenElement=v,this._bufferService=u,this._coreBrowserService=f,this._decorationService=d,this._renderService=g,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 v of this._decorationService.decorations)this._renderDecoration(v);this._dimensionsChanged=!1}_renderDecoration(v){this._refreshStyle(v),this._dimensionsChanged&&this._refreshXPosition(v)}_createElement(v){var d;const u=this._coreBrowserService.mainDocument.createElement("div");u.classList.add("xterm-decoration"),u.classList.toggle("xterm-decoration-top-layer",((d=v==null?void 0:v.options)==null?void 0:d.layer)==="top"),u.style.width=`${Math.round((v.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,u.style.height=(v.options.height||1)*this._renderService.dimensions.css.cell.height+"px",u.style.top=(v.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",u.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const f=v.options.x??0;return f&&f>this._bufferService.cols&&(u.style.display="none"),this._refreshXPosition(v,u),u}_refreshStyle(v){const u=v.marker.line-this._bufferService.buffers.active.ydisp;if(u<0||u>=this._bufferService.rows)v.element&&(v.element.style.display="none",v.onRenderEmitter.fire(v.element));else{let f=this._decorationElements.get(v);f||(f=this._createElement(v),v.element=f,this._decorationElements.set(v,f),this._container.appendChild(f),v.onDispose((()=>{this._decorationElements.delete(v),f.remove()}))),f.style.top=u*this._renderService.dimensions.css.cell.height+"px",f.style.display=this._altBufferIsActive?"none":"block",v.onRenderEmitter.fire(f)}}_refreshXPosition(v,u=v.element){if(!u)return;const f=v.options.x??0;(v.options.anchor||"left")==="right"?u.style.right=f?f*this._renderService.dimensions.css.cell.width+"px":"":u.style.left=f?f*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(v){var u;(u=this._decorationElements.get(v))==null||u.remove(),this._decorationElements.delete(v),v.dispose()}};n.BufferDecorationRenderer=w=l([h(1,_.IBufferService),h(2,m.ICoreBrowserService),h(3,_.IDecorationService),h(4,m.IRenderService)],w)},5871:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ColorZoneStore=void 0,n.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 l of this._zones)if(l.color===o.options.overviewRulerOptions.color&&l.position===o.options.overviewRulerOptions.position){if(this._lineIntersectsZone(l,o.marker.line))return;if(this._lineAdjacentToZone(l,o.marker.line,o.options.overviewRulerOptions.position))return void this._addLineToZone(l,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,l){return l>=o.startBufferLine&&l<=o.endBufferLine}_lineAdjacentToZone(o,l,h){return l>=o.startBufferLine-this._linePadding[h||"full"]&&l<=o.endBufferLine+this._linePadding[h||"full"]}_addLineToZone(o,l){o.startBufferLine=Math.min(o.startBufferLine,l),o.endBufferLine=Math.max(o.endBufferLine,l)}}},5744:function(p,n,o){var l=this&&this.__decorate||function(g,y,x,k){var E,S=arguments.length,C=S<3?y:k===null?k=Object.getOwnPropertyDescriptor(y,x):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(g,y,x,k);else for(var R=g.length-1;R>=0;R--)(E=g[R])&&(C=(S<3?E(C):S>3?E(y,x,C):E(y,x))||C);return S>3&&C&&Object.defineProperty(y,x,C),C},h=this&&this.__param||function(g,y){return function(x,k){y(x,k,g)}};Object.defineProperty(n,"__esModule",{value:!0}),n.OverviewRulerRenderer=void 0;const m=o(5871),b=o(4725),_=o(844),w=o(2585),v={full:0,left:0,center:0,right:0},u={full:0,left:0,center:0,right:0},f={full:0,left:0,center:0,right:0};let d=n.OverviewRulerRenderer=class extends _.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(g,y,x,k,E,S,C){var $;super(),this._viewportElement=g,this._screenElement=y,this._bufferService=x,this._decorationService=k,this._renderService=E,this._optionsService=S,this._coreBrowserService=C,this._colorZoneStore=new m.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(),($=this._viewportElement.parentElement)==null||$.insertBefore(this._canvas,this._viewportElement);const R=this._canvas.getContext("2d");if(!R)throw new Error("Ctx cannot be null");this._ctx=R,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,_.toDisposable)((()=>{var D;(D=this._canvas)==null||D.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 g=Math.floor(this._canvas.width/3),y=Math.ceil(this._canvas.width/3);u.full=this._canvas.width,u.left=g,u.center=y,u.right=g,this._refreshDrawHeightConstants(),f.full=0,f.left=0,f.center=u.left,f.right=u.left+u.center}_refreshDrawHeightConstants(){v.full=Math.round(2*this._coreBrowserService.dpr);const g=this._canvas.height/this._bufferService.buffer.lines.length,y=Math.round(Math.max(Math.min(g,12),6)*this._coreBrowserService.dpr);v.left=y,v.center=y,v.right=y}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.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 g=this._colorZoneStore.zones;for(const y of g)y.position!=="full"&&this._renderColorZone(y);for(const y of g)y.position==="full"&&this._renderColorZone(y);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(g){this._ctx.fillStyle=g.color,this._ctx.fillRect(f[g.position||"full"],Math.round((this._canvas.height-1)*(g.startBufferLine/this._bufferService.buffers.active.lines.length)-v[g.position||"full"]/2),u[g.position||"full"],Math.round((this._canvas.height-1)*((g.endBufferLine-g.startBufferLine)/this._bufferService.buffers.active.lines.length)+v[g.position||"full"]))}_queueRefresh(g,y){this._shouldUpdateDimensions=g||this._shouldUpdateDimensions,this._shouldUpdateAnchor=y||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};n.OverviewRulerRenderer=d=l([h(2,w.IBufferService),h(3,w.IDecorationService),h(4,b.IRenderService),h(5,w.IOptionsService),h(6,b.ICoreBrowserService)],d)},2950:function(p,n,o){var l=this&&this.__decorate||function(v,u,f,d){var g,y=arguments.length,x=y<3?u:d===null?d=Object.getOwnPropertyDescriptor(u,f):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(v,u,f,d);else for(var k=v.length-1;k>=0;k--)(g=v[k])&&(x=(y<3?g(x):y>3?g(u,f,x):g(u,f))||x);return y>3&&x&&Object.defineProperty(u,f,x),x},h=this&&this.__param||function(v,u){return function(f,d){u(f,d,v)}};Object.defineProperty(n,"__esModule",{value:!0}),n.CompositionHelper=void 0;const m=o(4725),b=o(2585),_=o(2584);let w=n.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(v,u,f,d,g,y){this._textarea=v,this._compositionView=u,this._bufferService=f,this._optionsService=d,this._coreService=g,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(v){this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(v){if(this._isComposing||this._isSendingComposition){if(v.keyCode===229||v.keyCode===16||v.keyCode===17||v.keyCode===18)return!1;this._finalizeComposition(!1)}return v.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(v){if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){const u={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let f;this._isSendingComposition=!1,u.start+=this._dataAlreadySent.length,f=this._isComposing?this._textarea.value.substring(u.start,u.end):this._textarea.value.substring(u.start),f.length>0&&this._coreService.triggerDataEvent(f,!0)}}),0)}else{this._isSendingComposition=!1;const u=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(u,!0)}}_handleAnyTextareaChanges(){const v=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const u=this._textarea.value,f=u.replace(v,"");this._dataAlreadySent=f,u.length>v.length?this._coreService.triggerDataEvent(f,!0):u.length<v.length?this._coreService.triggerDataEvent(`${_.C0.DEL}`,!0):u.length===v.length&&u!==v&&this._coreService.triggerDataEvent(u,!0)}}),0)}updateCompositionElements(v){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const u=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),f=this._renderService.dimensions.css.cell.height,d=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,g=u*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=g+"px",this._compositionView.style.top=d+"px",this._compositionView.style.height=f+"px",this._compositionView.style.lineHeight=f+"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=g+"px",this._textarea.style.top=d+"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"}v||setTimeout((()=>this.updateCompositionElements(!0)),0)}}};n.CompositionHelper=w=l([h(2,b.IBufferService),h(3,b.IOptionsService),h(4,b.ICoreService),h(5,m.IRenderService)],w)},9806:(p,n)=>{function o(l,h,m){const b=m.getBoundingClientRect(),_=l.getComputedStyle(m),w=parseInt(_.getPropertyValue("padding-left")),v=parseInt(_.getPropertyValue("padding-top"));return[h.clientX-b.left-w,h.clientY-b.top-v]}Object.defineProperty(n,"__esModule",{value:!0}),n.getCoords=n.getCoordsRelativeToElement=void 0,n.getCoordsRelativeToElement=o,n.getCoords=function(l,h,m,b,_,w,v,u,f){if(!w)return;const d=o(l,h,m);return d?(d[0]=Math.ceil((d[0]+(f?v/2:0))/v),d[1]=Math.ceil(d[1]/u),d[0]=Math.min(Math.max(d[0],1),b+(f?1:0)),d[1]=Math.min(Math.max(d[1],1),_),d):void 0}},9504:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.moveToCellSequence=void 0;const l=o(2584);function h(u,f,d,g){const y=u-m(u,d),x=f-m(f,d),k=Math.abs(y-x)-(function(E,S,C){let R=0;const $=E-m(E,C),D=S-m(S,C);for(let A=0;A<Math.abs($-D);A++){const P=b(E,S)==="A"?-1:1,I=C.buffer.lines.get($+P*A);I!=null&&I.isWrapped&&R++}return R})(u,f,d);return v(k,w(b(u,f),g))}function m(u,f){let d=0,g=f.buffer.lines.get(u),y=g==null?void 0:g.isWrapped;for(;y&&u>=0&&u<f.rows;)d++,g=f.buffer.lines.get(--u),y=g==null?void 0:g.isWrapped;return d}function b(u,f){return u>f?"A":"B"}function _(u,f,d,g,y,x){let k=u,E=f,S="";for(;k!==d||E!==g;)k+=y?1:-1,y&&k>x.cols-1?(S+=x.buffer.translateBufferLineToString(E,!1,u,k),k=0,u=0,E++):!y&&k<0&&(S+=x.buffer.translateBufferLineToString(E,!1,0,u+1),k=x.cols-1,u=k,E--);return S+x.buffer.translateBufferLineToString(E,!1,u,k)}function w(u,f){const d=f?"O":"[";return l.C0.ESC+d+u}function v(u,f){u=Math.floor(u);let d="";for(let g=0;g<u;g++)d+=f;return d}n.moveToCellSequence=function(u,f,d,g){const y=d.buffer.x,x=d.buffer.y;if(!d.buffer.hasScrollback)return(function(S,C,R,$,D,A){return h(C,$,D,A).length===0?"":v(_(S,C,S,C-m(C,D),!1,D).length,w("D",A))})(y,x,0,f,d,g)+h(x,f,d,g)+(function(S,C,R,$,D,A){let P;P=h(C,$,D,A).length>0?$-m($,D):C;const I=$,U=(function(z,W,T,j,M,F){let G;return G=h(T,j,M,F).length>0?j-m(j,M):W,z<T&&G<=j||z>=T&&G<j?"C":"D"})(S,C,R,$,D,A);return v(_(S,P,R,I,U==="C",D).length,w(U,A))})(y,x,u,f,d,g);let k;if(x===f)return k=y>u?"D":"C",v(Math.abs(y-u),w(k,g));k=x>f?"D":"C";const E=Math.abs(x-f);return v((function(S,C){return C.cols-S})(x>f?u:y,d)+(E-1)*d.cols+1+((x>f?y:u)-1),w(k,g))}},1296:function(p,n,o){var l=this&&this.__decorate||function(A,P,I,U){var z,W=arguments.length,T=W<3?P:U===null?U=Object.getOwnPropertyDescriptor(P,I):U;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(A,P,I,U);else for(var j=A.length-1;j>=0;j--)(z=A[j])&&(T=(W<3?z(T):W>3?z(P,I,T):z(P,I))||T);return W>3&&T&&Object.defineProperty(P,I,T),T},h=this&&this.__param||function(A,P){return function(I,U){P(I,U,A)}};Object.defineProperty(n,"__esModule",{value:!0}),n.DomRenderer=void 0;const m=o(3787),b=o(2550),_=o(2223),w=o(6171),v=o(6052),u=o(4725),f=o(8055),d=o(8460),g=o(844),y=o(2585),x="xterm-dom-renderer-owner-",k="xterm-rows",E="xterm-fg-",S="xterm-bg-",C="xterm-focus",R="xterm-selection";let $=1,D=n.DomRenderer=class extends g.Disposable{constructor(A,P,I,U,z,W,T,j,M,F,G,V,Q){super(),this._terminal=A,this._document=P,this._element=I,this._screenElement=U,this._viewportElement=z,this._helperContainer=W,this._linkifier2=T,this._charSizeService=M,this._optionsService=F,this._bufferService=G,this._coreBrowserService=V,this._themeService=Q,this._terminalClass=$++,this._rowElements=[],this._selectionRenderModel=(0,v.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new d.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(k),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(R),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,w.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((te=>this._injectCss(te)))),this._injectCss(this._themeService.colors),this._rowFactory=j.createInstance(m.DomRendererRowFactory,document),this._element.classList.add(x+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((te=>this._handleLinkHover(te)))),this.register(this._linkifier2.onHideLinkUnderline((te=>this._handleLinkLeave(te)))),this.register((0,g.toDisposable)((()=>{this._element.classList.remove(x+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 A=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*A,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*A),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/A),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/A),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 I of this._rowElements)I.style.width=`${this.dimensions.css.canvas.width}px`,I.style.height=`${this.dimensions.css.cell.height}px`,I.style.lineHeight=`${this.dimensions.css.cell.height}px`,I.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const P=`${this._terminalSelector} .${k} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=P,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(A){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let P=`${this._terminalSelector} .${k} { color: ${A.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;P+=`${this._terminalSelector} .${k} .xterm-dim { color: ${f.color.multiplyOpacity(A.foreground,.5).css};}`,P+=`${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 I=`blink_underline_${this._terminalClass}`,U=`blink_bar_${this._terminalClass}`,z=`blink_block_${this._terminalClass}`;P+=`@keyframes ${I} { 50% { border-bottom-style: hidden; }}`,P+=`@keyframes ${U} { 50% { box-shadow: none; }}`,P+=`@keyframes ${z} { 0% { background-color: ${A.cursor.css}; color: ${A.cursorAccent.css}; } 50% { background-color: inherit; color: ${A.cursor.css}; }}`,P+=`${this._terminalSelector} .${k}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${I} 1s step-end infinite;}${this._terminalSelector} .${k}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${U} 1s step-end infinite;}${this._terminalSelector} .${k}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${z} 1s step-end infinite;}${this._terminalSelector} .${k} .xterm-cursor.xterm-cursor-block { background-color: ${A.cursor.css}; color: ${A.cursorAccent.css};}${this._terminalSelector} .${k} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${A.cursor.css} !important; color: ${A.cursorAccent.css} !important;}${this._terminalSelector} .${k} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${A.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${k} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${A.cursor.css} inset;}${this._terminalSelector} .${k} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${A.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,P+=`${this._terminalSelector} .${R} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${R} div { position: absolute; background-color: ${A.selectionBackgroundOpaque.css};}${this._terminalSelector} .${R} div { position: absolute; background-color: ${A.selectionInactiveBackgroundOpaque.css};}`;for(const[W,T]of A.ansi.entries())P+=`${this._terminalSelector} .${E}${W} { color: ${T.css}; }${this._terminalSelector} .${E}${W}.xterm-dim { color: ${f.color.multiplyOpacity(T,.5).css}; }${this._terminalSelector} .${S}${W} { background-color: ${T.css}; }`;P+=`${this._terminalSelector} .${E}${_.INVERTED_DEFAULT_COLOR} { color: ${f.color.opaque(A.background).css}; }${this._terminalSelector} .${E}${_.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${f.color.multiplyOpacity(f.color.opaque(A.background),.5).css}; }${this._terminalSelector} .${S}${_.INVERTED_DEFAULT_COLOR} { background-color: ${A.foreground.css}; }`,this._themeStyleElement.textContent=P}_setDefaultSpacing(){const A=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${A}px`,this._rowFactory.defaultSpacing=A}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(A,P){for(let I=this._rowElements.length;I<=P;I++){const U=this._document.createElement("div");this._rowContainer.appendChild(U),this._rowElements.push(U)}for(;this._rowElements.length>P;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(A,P){this._refreshRowElements(A,P),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(C),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(C),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(A,P,I){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(A,P,I),this.renderRows(0,this._bufferService.rows-1),!A||!P)return;this._selectionRenderModel.update(this._terminal,A,P,I);const U=this._selectionRenderModel.viewportStartRow,z=this._selectionRenderModel.viewportEndRow,W=this._selectionRenderModel.viewportCappedStartRow,T=this._selectionRenderModel.viewportCappedEndRow;if(W>=this._bufferService.rows||T<0)return;const j=this._document.createDocumentFragment();if(I){const M=A[0]>P[0];j.appendChild(this._createSelectionElement(W,M?P[0]:A[0],M?A[0]:P[0],T-W+1))}else{const M=U===W?A[0]:0,F=W===z?P[0]:this._bufferService.cols;j.appendChild(this._createSelectionElement(W,M,F));const G=T-W-1;if(j.appendChild(this._createSelectionElement(W+1,0,this._bufferService.cols,G)),W!==T){const V=z===T?P[0]:this._bufferService.cols;j.appendChild(this._createSelectionElement(T,0,V))}}this._selectionContainer.appendChild(j)}_createSelectionElement(A,P,I,U=1){const z=this._document.createElement("div"),W=P*this.dimensions.css.cell.width;let T=this.dimensions.css.cell.width*(I-P);return W+T>this.dimensions.css.canvas.width&&(T=this.dimensions.css.canvas.width-W),z.style.height=U*this.dimensions.css.cell.height+"px",z.style.top=A*this.dimensions.css.cell.height+"px",z.style.left=`${W}px`,z.style.width=`${T}px`,z}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 A of this._rowElements)A.replaceChildren()}renderRows(A,P){const I=this._bufferService.buffer,U=I.ybase+I.y,z=Math.min(I.x,this._bufferService.cols-1),W=this._optionsService.rawOptions.cursorBlink,T=this._optionsService.rawOptions.cursorStyle,j=this._optionsService.rawOptions.cursorInactiveStyle;for(let M=A;M<=P;M++){const F=M+I.ydisp,G=this._rowElements[M],V=I.lines.get(F);if(!G||!V)break;G.replaceChildren(...this._rowFactory.createRow(V,F,F===U,T,j,z,W,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${x}${this._terminalClass}`}_handleLinkHover(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!0)}_handleLinkLeave(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!1)}_setCellUnderline(A,P,I,U,z,W){I<0&&(A=0),U<0&&(P=0);const T=this._bufferService.rows-1;I=Math.max(Math.min(I,T),0),U=Math.max(Math.min(U,T),0),z=Math.min(z,this._bufferService.cols);const j=this._bufferService.buffer,M=j.ybase+j.y,F=Math.min(j.x,z-1),G=this._optionsService.rawOptions.cursorBlink,V=this._optionsService.rawOptions.cursorStyle,Q=this._optionsService.rawOptions.cursorInactiveStyle;for(let te=I;te<=U;++te){const B=te+j.ydisp,L=this._rowElements[te],K=j.lines.get(B);if(!L||!K)break;L.replaceChildren(...this._rowFactory.createRow(K,B,B===M,V,Q,F,G,this.dimensions.css.cell.width,this._widthCache,W?te===I?A:0:-1,W?(te===U?P:z)-1:-1))}}};n.DomRenderer=D=l([h(7,y.IInstantiationService),h(8,u.ICharSizeService),h(9,y.IOptionsService),h(10,y.IBufferService),h(11,u.ICoreBrowserService),h(12,u.IThemeService)],D)},3787:function(p,n,o){var l=this&&this.__decorate||function(k,E,S,C){var R,$=arguments.length,D=$<3?E:C===null?C=Object.getOwnPropertyDescriptor(E,S):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(k,E,S,C);else for(var A=k.length-1;A>=0;A--)(R=k[A])&&(D=($<3?R(D):$>3?R(E,S,D):R(E,S))||D);return $>3&&D&&Object.defineProperty(E,S,D),D},h=this&&this.__param||function(k,E){return function(S,C){E(S,C,k)}};Object.defineProperty(n,"__esModule",{value:!0}),n.DomRendererRowFactory=void 0;const m=o(2223),b=o(643),_=o(511),w=o(2585),v=o(8055),u=o(4725),f=o(4269),d=o(6171),g=o(3734);let y=n.DomRendererRowFactory=class{constructor(k,E,S,C,R,$,D){this._document=k,this._characterJoinerService=E,this._optionsService=S,this._coreBrowserService=C,this._coreService=R,this._decorationService=$,this._themeService=D,this._workCell=new _.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(k,E,S){this._selectionStart=k,this._selectionEnd=E,this._columnSelectMode=S}createRow(k,E,S,C,R,$,D,A,P,I,U){const z=[],W=this._characterJoinerService.getJoinedCharacters(E),T=this._themeService.colors;let j,M=k.getNoBgTrimmedLength();S&&M<$+1&&(M=$+1);let F=0,G="",V=0,Q=0,te=0,B=!1,L=0,K=!1,q=0;const ee=[],J=I!==-1&&U!==-1;for(let se=0;se<M;se++){k.loadCell(se,this._workCell);let Z=this._workCell.getWidth();if(Z===0)continue;let ne=!1,ue=se,ie=this._workCell;if(W.length>0&&se===W[0][0]){ne=!0;const pe=W.shift();ie=new f.JoinedCellData(this._workCell,k.translateToString(!0,pe[0],pe[1]),pe[1]-pe[0]),ue=pe[1]-1,Z=ie.getWidth()}const Pe=this._isCellInSelection(se,E),dt=S&&se===$,ut=J&&se>=I&&se<=U;let rt=!1;this._decorationService.forEachDecorationAtCell(se,E,void 0,(pe=>{rt=!0}));let Ge=ie.getChars()||b.WHITESPACE_CELL_CHAR;if(Ge===" "&&(ie.isUnderline()||ie.isOverline())&&(Ge=" "),q=Z*A-P.get(Ge,ie.isBold(),ie.isItalic()),j){if(F&&(Pe&&K||!Pe&&!K&&ie.bg===V)&&(Pe&&K&&T.selectionForeground||ie.fg===Q)&&ie.extended.ext===te&&ut===B&&q===L&&!dt&&!ne&&!rt){ie.isInvisible()?G+=b.WHITESPACE_CELL_CHAR:G+=Ge,F++;continue}F&&(j.textContent=G),j=this._document.createElement("span"),F=0,G=""}else j=this._document.createElement("span");if(V=ie.bg,Q=ie.fg,te=ie.extended.ext,B=ut,L=q,K=Pe,ne&&$>=se&&$<=ue&&($=se),!this._coreService.isCursorHidden&&dt&&this._coreService.isCursorInitialized){if(ee.push("xterm-cursor"),this._coreBrowserService.isFocused)D&&ee.push("xterm-cursor-blink"),ee.push(C==="bar"?"xterm-cursor-bar":C==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(R)switch(R){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(ie.isBold()&&ee.push("xterm-bold"),ie.isItalic()&&ee.push("xterm-italic"),ie.isDim()&&ee.push("xterm-dim"),G=ie.isInvisible()?b.WHITESPACE_CELL_CHAR:ie.getChars()||b.WHITESPACE_CELL_CHAR,ie.isUnderline()&&(ee.push(`xterm-underline-${ie.extended.underlineStyle}`),G===" "&&(G=" "),!ie.isUnderlineColorDefault()))if(ie.isUnderlineColorRGB())j.style.textDecorationColor=`rgb(${g.AttributeData.toColorRGB(ie.getUnderlineColor()).join(",")})`;else{let pe=ie.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&ie.isBold()&&pe<8&&(pe+=8),j.style.textDecorationColor=T.ansi[pe].css}ie.isOverline()&&(ee.push("xterm-overline"),G===" "&&(G=" ")),ie.isStrikethrough()&&ee.push("xterm-strikethrough"),ut&&(j.style.textDecoration="underline");let be=ie.getFgColor(),Ye=ie.getFgColorMode(),Y=ie.getBgColor(),ae=ie.getBgColorMode();const ye=!!ie.isInverse();if(ye){const pe=be;be=Y,Y=pe;const jt=Ye;Ye=ae,ae=jt}let we,ze,Oe,Be=!1;switch(this._decorationService.forEachDecorationAtCell(se,E,void 0,(pe=>{pe.options.layer!=="top"&&Be||(pe.backgroundColorRGB&&(ae=50331648,Y=pe.backgroundColorRGB.rgba>>8&16777215,we=pe.backgroundColorRGB),pe.foregroundColorRGB&&(Ye=50331648,be=pe.foregroundColorRGB.rgba>>8&16777215,ze=pe.foregroundColorRGB),Be=pe.options.layer==="top")})),!Be&&Pe&&(we=this._coreBrowserService.isFocused?T.selectionBackgroundOpaque:T.selectionInactiveBackgroundOpaque,Y=we.rgba>>8&16777215,ae=50331648,Be=!0,T.selectionForeground&&(Ye=50331648,be=T.selectionForeground.rgba>>8&16777215,ze=T.selectionForeground)),Be&&ee.push("xterm-decoration-top"),ae){case 16777216:case 33554432:Oe=T.ansi[Y],ee.push(`xterm-bg-${Y}`);break;case 50331648:Oe=v.channels.toColor(Y>>16,Y>>8&255,255&Y),this._addStyle(j,`background-color:#${x((Y>>>0).toString(16),"0",6)}`);break;default:ye?(Oe=T.foreground,ee.push(`xterm-bg-${m.INVERTED_DEFAULT_COLOR}`)):Oe=T.background}switch(we||ie.isDim()&&(we=v.color.multiplyOpacity(Oe,.5)),Ye){case 16777216:case 33554432:ie.isBold()&&be<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(be+=8),this._applyMinimumContrast(j,Oe,T.ansi[be],ie,we,void 0)||ee.push(`xterm-fg-${be}`);break;case 50331648:const pe=v.channels.toColor(be>>16&255,be>>8&255,255&be);this._applyMinimumContrast(j,Oe,pe,ie,we,ze)||this._addStyle(j,`color:#${x(be.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(j,Oe,T.foreground,ie,we,ze)||ye&&ee.push(`xterm-fg-${m.INVERTED_DEFAULT_COLOR}`)}ee.length&&(j.className=ee.join(" "),ee.length=0),dt||ne||rt?j.textContent=G:F++,q!==this.defaultSpacing&&(j.style.letterSpacing=`${q}px`),z.push(j),se=ue}return j&&F&&(j.textContent=G),z}_applyMinimumContrast(k,E,S,C,R,$){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,d.treatGlyphAsBackgroundColor)(C.getCode()))return!1;const D=this._getContrastCache(C);let A;if(R||$||(A=D.getColor(E.rgba,S.rgba)),A===void 0){const P=this._optionsService.rawOptions.minimumContrastRatio/(C.isDim()?2:1);A=v.color.ensureContrastRatio(R||E,$||S,P),D.setColor((R||E).rgba,($||S).rgba,A??null)}return!!A&&(this._addStyle(k,`color:${A.css}`),!0)}_getContrastCache(k){return k.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(k,E){k.setAttribute("style",`${k.getAttribute("style")||""}${E};`)}_isCellInSelection(k,E){const S=this._selectionStart,C=this._selectionEnd;return!(!S||!C)&&(this._columnSelectMode?S[0]<=C[0]?k>=S[0]&&E>=S[1]&&k<C[0]&&E<=C[1]:k<S[0]&&E>=S[1]&&k>=C[0]&&E<=C[1]:E>S[1]&&E<C[1]||S[1]===C[1]&&E===S[1]&&k>=S[0]&&k<C[0]||S[1]<C[1]&&E===C[1]&&k<C[0]||S[1]<C[1]&&E===S[1]&&k>=S[0])}};function x(k,E,S){for(;k.length<S;)k=E+k;return k}n.DomRendererRowFactory=y=l([h(1,u.ICharacterJoinerService),h(2,w.IOptionsService),h(3,u.ICoreBrowserService),h(4,w.ICoreService),h(5,w.IDecorationService),h(6,u.IThemeService)],y)},2550:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.WidthCache=void 0,n.WidthCache=class{constructor(o,l){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 h=o.createElement("span");h.classList.add("xterm-char-measure-element");const m=o.createElement("span");m.classList.add("xterm-char-measure-element"),m.style.fontWeight="bold";const b=o.createElement("span");b.classList.add("xterm-char-measure-element"),b.style.fontStyle="italic";const _=o.createElement("span");_.classList.add("xterm-char-measure-element"),_.style.fontWeight="bold",_.style.fontStyle="italic",this._measureElements=[h,m,b,_],this._container.appendChild(h),this._container.appendChild(m),this._container.appendChild(b),this._container.appendChild(_),l.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,l,h,m){o===this._font&&l===this._fontSize&&h===this._weight&&m===this._weightBold||(this._font=o,this._fontSize=l,this._weight=h,this._weightBold=m,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${h}`,this._measureElements[1].style.fontWeight=`${m}`,this._measureElements[2].style.fontWeight=`${h}`,this._measureElements[3].style.fontWeight=`${m}`,this.clear())}get(o,l,h){let m=0;if(!l&&!h&&o.length===1&&(m=o.charCodeAt(0))<256){if(this._flat[m]!==-9999)return this._flat[m];const w=this._measure(o,0);return w>0&&(this._flat[m]=w),w}let b=o;l&&(b+="B"),h&&(b+="I");let _=this._holey.get(b);if(_===void 0){let w=0;l&&(w|=1),h&&(w|=2),_=this._measure(o,w),_>0&&this._holey.set(b,_)}return _}_measure(o,l){const h=this._measureElements[l];return h.textContent=o.repeat(32),h.offsetWidth/32}}},2223:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.TEXT_BASELINE=n.DIM_OPACITY=n.INVERTED_DEFAULT_COLOR=void 0;const l=o(6114);n.INVERTED_DEFAULT_COLOR=257,n.DIM_OPACITY=.5,n.TEXT_BASELINE=l.isFirefox||l.isLegacyEdge?"bottom":"ideographic"},6171:(p,n)=>{function o(h){return 57508<=h&&h<=57558}function l(h){return h>=128512&&h<=128591||h>=127744&&h<=128511||h>=128640&&h<=128767||h>=9728&&h<=9983||h>=9984&&h<=10175||h>=65024&&h<=65039||h>=129280&&h<=129535||h>=127462&&h<=127487}Object.defineProperty(n,"__esModule",{value:!0}),n.computeNextVariantOffset=n.createRenderDimensions=n.treatGlyphAsBackgroundColor=n.allowRescaling=n.isEmoji=n.isRestrictedPowerlineGlyph=n.isPowerlineGlyph=n.throwIfFalsy=void 0,n.throwIfFalsy=function(h){if(!h)throw new Error("value must not be falsy");return h},n.isPowerlineGlyph=o,n.isRestrictedPowerlineGlyph=function(h){return 57520<=h&&h<=57527},n.isEmoji=l,n.allowRescaling=function(h,m,b,_){return m===1&&b>Math.ceil(1.5*_)&&h!==void 0&&h>255&&!l(h)&&!o(h)&&!(function(w){return 57344<=w&&w<=63743})(h)},n.treatGlyphAsBackgroundColor=function(h){return o(h)||(function(m){return 9472<=m&&m<=9631})(h)},n.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}}}},n.computeNextVariantOffset=function(h,m,b=0){return(h-(2*Math.round(m)-b))%(2*Math.round(m))}},6052:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.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(h,m,b,_=!1){if(this.selectionStart=m,this.selectionEnd=b,!m||!b||m[0]===b[0]&&m[1]===b[1])return void this.clear();const w=h.buffers.active.ydisp,v=m[1]-w,u=b[1]-w,f=Math.max(v,0),d=Math.min(u,h.rows-1);f>=h.rows||d<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=_,this.viewportStartRow=v,this.viewportEndRow=u,this.viewportCappedStartRow=f,this.viewportCappedEndRow=d,this.startCol=m[0],this.endCol=b[0])}isCellSelected(h,m,b){return!!this.hasSelection&&(b-=h.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?m>=this.startCol&&b>=this.viewportCappedStartRow&&m<this.endCol&&b<=this.viewportCappedEndRow:m<this.startCol&&b>=this.viewportCappedStartRow&&m>=this.endCol&&b<=this.viewportCappedEndRow:b>this.viewportStartRow&&b<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&b===this.viewportStartRow&&m>=this.startCol&&m<this.endCol||this.viewportStartRow<this.viewportEndRow&&b===this.viewportEndRow&&m<this.endCol||this.viewportStartRow<this.viewportEndRow&&b===this.viewportStartRow&&m>=this.startCol)}}n.createSelectionRenderModel=function(){return new o}},456:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.SelectionModel=void 0,n.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,l=this.selectionEnd;return!(!o||!l)&&(o[1]>l[1]||o[1]===l[1]&&o[0]>l[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(p,n,o){var l=this&&this.__decorate||function(d,g,y,x){var k,E=arguments.length,S=E<3?g:x===null?x=Object.getOwnPropertyDescriptor(g,y):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(d,g,y,x);else for(var C=d.length-1;C>=0;C--)(k=d[C])&&(S=(E<3?k(S):E>3?k(g,y,S):k(g,y))||S);return E>3&&S&&Object.defineProperty(g,y,S),S},h=this&&this.__param||function(d,g){return function(y,x){g(y,x,d)}};Object.defineProperty(n,"__esModule",{value:!0}),n.CharSizeService=void 0;const m=o(2585),b=o(8460),_=o(844);let w=n.CharSizeService=class extends _.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(d,g,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 f(this._optionsService))}catch{this._measureStrategy=this.register(new u(d,g,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const d=this._measureStrategy.measure();d.width===this.width&&d.height===this.height||(this.width=d.width,this.height=d.height,this._onCharSizeChange.fire())}};n.CharSizeService=w=l([h(2,m.IOptionsService)],w);class v extends _.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(g,y){g!==void 0&&g>0&&y!==void 0&&y>0&&(this._result.width=g,this._result.height=y)}}class u extends v{constructor(g,y,x){super(),this._document=g,this._parentElement=y,this._optionsService=x,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 f extends v{constructor(g){super(),this._optionsService=g,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 g=this._ctx.measureText("W");return this._validateAndSet(g.width,g.fontBoundingBoxAscent+g.fontBoundingBoxDescent),this._result}}},4269:function(p,n,o){var l=this&&this.__decorate||function(f,d,g,y){var x,k=arguments.length,E=k<3?d:y===null?y=Object.getOwnPropertyDescriptor(d,g):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,d,g,y);else for(var S=f.length-1;S>=0;S--)(x=f[S])&&(E=(k<3?x(E):k>3?x(d,g,E):x(d,g))||E);return k>3&&E&&Object.defineProperty(d,g,E),E},h=this&&this.__param||function(f,d){return function(g,y){d(g,y,f)}};Object.defineProperty(n,"__esModule",{value:!0}),n.CharacterJoinerService=n.JoinedCellData=void 0;const m=o(3734),b=o(643),_=o(511),w=o(2585);class v extends m.AttributeData{constructor(d,g,y){super(),this.content=0,this.combinedData="",this.fg=d.fg,this.bg=d.bg,this.combinedData=g,this._width=y}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(d){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}n.JoinedCellData=v;let u=n.CharacterJoinerService=class Lu{constructor(d){this._bufferService=d,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new _.CellData}register(d){const g={id:this._nextCharacterJoinerId++,handler:d};return this._characterJoiners.push(g),g.id}deregister(d){for(let g=0;g<this._characterJoiners.length;g++)if(this._characterJoiners[g].id===d)return this._characterJoiners.splice(g,1),!0;return!1}getJoinedCharacters(d){if(this._characterJoiners.length===0)return[];const g=this._bufferService.buffer.lines.get(d);if(!g||g.length===0)return[];const y=[],x=g.translateToString(!0);let k=0,E=0,S=0,C=g.getFg(0),R=g.getBg(0);for(let $=0;$<g.getTrimmedLength();$++)if(g.loadCell($,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==C||this._workCell.bg!==R){if($-k>1){const D=this._getJoinedRanges(x,S,E,g,k);for(let A=0;A<D.length;A++)y.push(D[A])}k=$,S=E,C=this._workCell.fg,R=this._workCell.bg}E+=this._workCell.getChars().length||b.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-k>1){const $=this._getJoinedRanges(x,S,E,g,k);for(let D=0;D<$.length;D++)y.push($[D])}return y}_getJoinedRanges(d,g,y,x,k){const E=d.substring(g,y);let S=[];try{S=this._characterJoiners[0].handler(E)}catch(C){console.error(C)}for(let C=1;C<this._characterJoiners.length;C++)try{const R=this._characterJoiners[C].handler(E);for(let $=0;$<R.length;$++)Lu._mergeRanges(S,R[$])}catch(R){console.error(R)}return this._stringRangesToCellRanges(S,x,k),S}_stringRangesToCellRanges(d,g,y){let x=0,k=!1,E=0,S=d[x];if(S){for(let C=y;C<this._bufferService.cols;C++){const R=g.getWidth(C),$=g.getString(C).length||b.WHITESPACE_CELL_CHAR.length;if(R!==0){if(!k&&S[0]<=E&&(S[0]=C,k=!0),S[1]<=E){if(S[1]=C,S=d[++x],!S)break;S[0]<=E?(S[0]=C,k=!0):k=!1}E+=$}}S&&(S[1]=this._bufferService.cols)}}static _mergeRanges(d,g){let y=!1;for(let x=0;x<d.length;x++){const k=d[x];if(y){if(g[1]<=k[0])return d[x-1][1]=g[1],d;if(g[1]<=k[1])return d[x-1][1]=Math.max(g[1],k[1]),d.splice(x,1),d;d.splice(x,1),x--}else{if(g[1]<=k[0])return d.splice(x,0,g),d;if(g[1]<=k[1])return k[0]=Math.min(g[0],k[0]),d;g[0]<k[1]&&(k[0]=Math.min(g[0],k[0]),y=!0)}}return y?d[d.length-1][1]=g[1]:d.push(g),d}};n.CharacterJoinerService=u=l([h(0,w.IBufferService)],u)},5114:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.CoreBrowserService=void 0;const l=o(844),h=o(8460),m=o(3656);class b extends l.Disposable{constructor(v,u,f){super(),this._textarea=v,this._window=u,this.mainDocument=f,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new _(this._window),this._onDprChange=this.register(new h.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new h.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((d=>this._screenDprMonitor.setWindow(d)))),this.register((0,h.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(v){this._window!==v&&(this._window=v,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}}n.CoreBrowserService=b;class _ extends l.Disposable{constructor(v){super(),this._parentWindow=v,this._windowResizeListener=this.register(new l.MutableDisposable),this._onDprChange=this.register(new h.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,l.toDisposable)((()=>this.clearListener())))}setWindow(v){this._parentWindow=v,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,m.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)==null||v.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:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.LinkProviderService=void 0;const l=o(844);class h extends l.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,l.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(b){return this.linkProviders.push(b),{dispose:()=>{const _=this.linkProviders.indexOf(b);_!==-1&&this.linkProviders.splice(_,1)}}}}n.LinkProviderService=h},8934:function(p,n,o){var l=this&&this.__decorate||function(w,v,u,f){var d,g=arguments.length,y=g<3?v:f===null?f=Object.getOwnPropertyDescriptor(v,u):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(w,v,u,f);else for(var x=w.length-1;x>=0;x--)(d=w[x])&&(y=(g<3?d(y):g>3?d(v,u,y):d(v,u))||y);return g>3&&y&&Object.defineProperty(v,u,y),y},h=this&&this.__param||function(w,v){return function(u,f){v(u,f,w)}};Object.defineProperty(n,"__esModule",{value:!0}),n.MouseService=void 0;const m=o(4725),b=o(9806);let _=n.MouseService=class{constructor(w,v){this._renderService=w,this._charSizeService=v}getCoords(w,v,u,f,d){return(0,b.getCoords)(window,w,v,u,f,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,d)}getMouseReportCoords(w,v){const u=(0,b.getCoordsRelativeToElement)(window,w,v);if(this._charSizeService.hasValidSize)return u[0]=Math.min(Math.max(u[0],0),this._renderService.dimensions.css.canvas.width-1),u[1]=Math.min(Math.max(u[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(u[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(u[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(u[0]),y:Math.floor(u[1])}}};n.MouseService=_=l([h(0,m.IRenderService),h(1,m.ICharSizeService)],_)},3230:function(p,n,o){var l=this&&this.__decorate||function(d,g,y,x){var k,E=arguments.length,S=E<3?g:x===null?x=Object.getOwnPropertyDescriptor(g,y):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(d,g,y,x);else for(var C=d.length-1;C>=0;C--)(k=d[C])&&(S=(E<3?k(S):E>3?k(g,y,S):k(g,y))||S);return E>3&&S&&Object.defineProperty(g,y,S),S},h=this&&this.__param||function(d,g){return function(y,x){g(y,x,d)}};Object.defineProperty(n,"__esModule",{value:!0}),n.RenderService=void 0;const m=o(6193),b=o(4725),_=o(8460),w=o(844),v=o(7226),u=o(2585);let f=n.RenderService=class extends w.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(d,g,y,x,k,E,S,C){super(),this._rowCount=d,this._charSizeService=x,this._renderer=this.register(new w.MutableDisposable),this._pausedResizeTask=new v.DebouncedIdleTask,this._observerDisposable=this.register(new w.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 _.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new _.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new _.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new _.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new m.RenderDebouncer(((R,$)=>this._renderRows(R,$)),S),this.register(this._renderDebouncer),this.register(S.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(E.onResize((()=>this._fullRefresh()))),this.register(E.buffers.onBufferActivate((()=>{var R;return(R=this._renderer.value)==null?void 0:R.clear()}))),this.register(y.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(k.onDecorationRegistered((()=>this._fullRefresh()))),this.register(k.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(C.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(S.window,g),this.register(S.onWindowChange((R=>this._registerIntersectionObserver(R,g))))}_registerIntersectionObserver(d,g){if("IntersectionObserver"in d){const y=new d.IntersectionObserver((x=>this._handleIntersectionChange(x[x.length-1])),{threshold:0});y.observe(g),this._observerDisposable.value=(0,w.toDisposable)((()=>y.disconnect()))}}_handleIntersectionChange(d){this._isPaused=d.isIntersecting===void 0?d.intersectionRatio===0:!d.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(d,g,y=!1){this._isPaused?this._needsFullRefresh=!0:(y||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(d,g,this._rowCount))}_renderRows(d,g){this._renderer.value&&(d=Math.min(d,this._rowCount-1),g=Math.min(g,this._rowCount-1),this._renderer.value.renderRows(d,g),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:d,end:g}),this._onRender.fire({start:d,end:g}),this._isNextRenderRedrawOnly=!0)}resize(d,g){this._rowCount=g,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(d){this._renderer.value=d,this._renderer.value&&(this._renderer.value.onRequestRedraw((g=>this.refreshRows(g.start,g.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(d){return this._renderDebouncer.addRefreshCallback(d)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var d,g;this._renderer.value&&((g=(d=this._renderer.value).clearTextureAtlas)==null||g.call(d),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(d,g){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>{var y;return(y=this._renderer.value)==null?void 0:y.handleResize(d,g)})):this._renderer.value.handleResize(d,g),this._fullRefresh())}handleCharSizeChanged(){var d;(d=this._renderer.value)==null||d.handleCharSizeChanged()}handleBlur(){var d;(d=this._renderer.value)==null||d.handleBlur()}handleFocus(){var d;(d=this._renderer.value)==null||d.handleFocus()}handleSelectionChanged(d,g,y){var x;this._selectionState.start=d,this._selectionState.end=g,this._selectionState.columnSelectMode=y,(x=this._renderer.value)==null||x.handleSelectionChanged(d,g,y)}handleCursorMove(){var d;(d=this._renderer.value)==null||d.handleCursorMove()}clear(){var d;(d=this._renderer.value)==null||d.clear()}};n.RenderService=f=l([h(2,u.IOptionsService),h(3,b.ICharSizeService),h(4,u.IDecorationService),h(5,u.IBufferService),h(6,b.ICoreBrowserService),h(7,b.IThemeService)],f)},9312:function(p,n,o){var l=this&&this.__decorate||function(S,C,R,$){var D,A=arguments.length,P=A<3?C:$===null?$=Object.getOwnPropertyDescriptor(C,R):$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(S,C,R,$);else for(var I=S.length-1;I>=0;I--)(D=S[I])&&(P=(A<3?D(P):A>3?D(C,R,P):D(C,R))||P);return A>3&&P&&Object.defineProperty(C,R,P),P},h=this&&this.__param||function(S,C){return function(R,$){C(R,$,S)}};Object.defineProperty(n,"__esModule",{value:!0}),n.SelectionService=void 0;const m=o(9806),b=o(9504),_=o(456),w=o(4725),v=o(8460),u=o(844),f=o(6114),d=o(4841),g=o(511),y=o(2585),x=" ",k=new RegExp(x,"g");let E=n.SelectionService=class extends u.Disposable{constructor(S,C,R,$,D,A,P,I,U){super(),this._element=S,this._screenElement=C,this._linkifier=R,this._bufferService=$,this._coreService=D,this._mouseService=A,this._optionsService=P,this._renderService=I,this._coreBrowserService=U,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new g.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new v.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new v.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new v.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new v.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=z=>this._handleMouseMove(z),this._mouseUpListener=z=>this._handleMouseUp(z),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((z=>this._handleTrim(z))),this.register(this._bufferService.buffers.onBufferActivate((z=>this._handleBufferActivate(z)))),this.enable(),this._model=new _.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,u.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 S=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!(!S||!C||S[0]===C[0]&&S[1]===C[1])}get selectionText(){const S=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;if(!S||!C)return"";const R=this._bufferService.buffer,$=[];if(this._activeSelectionMode===3){if(S[0]===C[0])return"";const D=S[0]<C[0]?S[0]:C[0],A=S[0]<C[0]?C[0]:S[0];for(let P=S[1];P<=C[1];P++){const I=R.translateBufferLineToString(P,!0,D,A);$.push(I)}}else{const D=S[1]===C[1]?C[0]:void 0;$.push(R.translateBufferLineToString(S[1],!0,S[0],D));for(let A=S[1]+1;A<=C[1]-1;A++){const P=R.lines.get(A),I=R.translateBufferLineToString(A,!0);P!=null&&P.isWrapped?$[$.length-1]+=I:$.push(I)}if(S[1]!==C[1]){const A=R.lines.get(C[1]),P=R.translateBufferLineToString(C[1],!0,0,C[0]);A&&A.isWrapped?$[$.length-1]+=P:$.push(P)}}return $.map((D=>D.replace(k," "))).join(f.isWindows?`\r
470
+ `:`
471
+ `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(S){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),f.isLinux&&S&&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(S){const C=this._getMouseBufferCoords(S),R=this._model.finalSelectionStart,$=this._model.finalSelectionEnd;return!!(R&&$&&C)&&this._areCoordsInSelection(C,R,$)}isCellInSelection(S,C){const R=this._model.finalSelectionStart,$=this._model.finalSelectionEnd;return!(!R||!$)&&this._areCoordsInSelection([S,C],R,$)}_areCoordsInSelection(S,C,R){return S[1]>C[1]&&S[1]<R[1]||C[1]===R[1]&&S[1]===C[1]&&S[0]>=C[0]&&S[0]<R[0]||C[1]<R[1]&&S[1]===R[1]&&S[0]<R[0]||C[1]<R[1]&&S[1]===C[1]&&S[0]>=C[0]}_selectWordAtCursor(S,C){var D,A;const R=(A=(D=this._linkifier.currentLink)==null?void 0:D.link)==null?void 0:A.range;if(R)return this._model.selectionStart=[R.start.x-1,R.start.y-1],this._model.selectionStartLength=(0,d.getRangeLength)(R,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const $=this._getMouseBufferCoords(S);return!!$&&(this._selectWordAt($,C),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(S,C){this._model.clearSelection(),S=Math.max(S,0),C=Math.min(C,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,S],this._model.selectionEnd=[this._bufferService.cols,C],this.refresh(),this._onSelectionChange.fire()}_handleTrim(S){this._model.handleTrim(S)&&this.refresh()}_getMouseBufferCoords(S){const C=this._mouseService.getCoords(S,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(C)return C[0]--,C[1]--,C[1]+=this._bufferService.buffer.ydisp,C}_getMouseEventScrollAmount(S){let C=(0,m.getCoordsRelativeToElement)(this._coreBrowserService.window,S,this._screenElement)[1];const R=this._renderService.dimensions.css.canvas.height;return C>=0&&C<=R?0:(C>R&&(C-=R),C=Math.min(Math.max(C,-50),50),C/=50,C/Math.abs(C)+Math.round(14*C))}shouldForceSelection(S){return f.isMac?S.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:S.shiftKey}handleMouseDown(S){if(this._mouseDownTimeStamp=S.timeStamp,(S.button!==2||!this.hasSelection)&&S.button===0){if(!this._enabled){if(!this.shouldForceSelection(S))return;S.stopPropagation()}S.preventDefault(),this._dragScrollAmount=0,this._enabled&&S.shiftKey?this._handleIncrementalClick(S):S.detail===1?this._handleSingleClick(S):S.detail===2?this._handleDoubleClick(S):S.detail===3&&this._handleTripleClick(S),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(S){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(S))}_handleSingleClick(S){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(S)?3:0,this._model.selectionStart=this._getMouseBufferCoords(S),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const C=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);C&&C.length!==this._model.selectionStart[0]&&C.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(S){this._selectWordAtCursor(S,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(S){const C=this._getMouseBufferCoords(S);C&&(this._activeSelectionMode=2,this._selectLineAt(C[1]))}shouldColumnSelect(S){return S.altKey&&!(f.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(S){if(S.stopImmediatePropagation(),!this._model.selectionStart)return;const C=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(S),!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(S),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const R=this._bufferService.buffer;if(this._model.selectionEnd[1]<R.lines.length){const $=R.lines.get(this._model.selectionEnd[1]);$&&$.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}C&&C[0]===this._model.selectionEnd[0]&&C[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 S=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(S.ydisp+this._bufferService.rows,S.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=S.ydisp),this.refresh()}}_handleMouseUp(S){const C=S.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&C<500&&S.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const R=this._mouseService.getCoords(S,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(R&&R[0]!==void 0&&R[1]!==void 0){const $=(0,b.moveToCellSequence)(R[0]-1,R[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent($,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const S=this._model.finalSelectionStart,C=this._model.finalSelectionEnd,R=!(!S||!C||S[0]===C[0]&&S[1]===C[1]);R?S&&C&&(this._oldSelectionStart&&this._oldSelectionEnd&&S[0]===this._oldSelectionStart[0]&&S[1]===this._oldSelectionStart[1]&&C[0]===this._oldSelectionEnd[0]&&C[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(S,C,R)):this._oldHasSelection&&this._fireOnSelectionChange(S,C,R)}_fireOnSelectionChange(S,C,R){this._oldSelectionStart=S,this._oldSelectionEnd=C,this._oldHasSelection=R,this._onSelectionChange.fire()}_handleBufferActivate(S){this.clearSelection(),this._trimListener.dispose(),this._trimListener=S.activeBuffer.lines.onTrim((C=>this._handleTrim(C)))}_convertViewportColToCharacterIndex(S,C){let R=C;for(let $=0;C>=$;$++){const D=S.loadCell($,this._workCell).getChars().length;this._workCell.getWidth()===0?R--:D>1&&C!==$&&(R+=D-1)}return R}setSelection(S,C,R){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[S,C],this._model.selectionStartLength=R,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(S){this._isClickInSelection(S)||(this._selectWordAtCursor(S,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(S,C,R=!0,$=!0){if(S[0]>=this._bufferService.cols)return;const D=this._bufferService.buffer,A=D.lines.get(S[1]);if(!A)return;const P=D.translateBufferLineToString(S[1],!1);let I=this._convertViewportColToCharacterIndex(A,S[0]),U=I;const z=S[0]-I;let W=0,T=0,j=0,M=0;if(P.charAt(I)===" "){for(;I>0&&P.charAt(I-1)===" ";)I--;for(;U<P.length&&P.charAt(U+1)===" ";)U++}else{let V=S[0],Q=S[0];A.getWidth(V)===0&&(W++,V--),A.getWidth(Q)===2&&(T++,Q++);const te=A.getString(Q).length;for(te>1&&(M+=te-1,U+=te-1);V>0&&I>0&&!this._isCharWordSeparator(A.loadCell(V-1,this._workCell));){A.loadCell(V-1,this._workCell);const B=this._workCell.getChars().length;this._workCell.getWidth()===0?(W++,V--):B>1&&(j+=B-1,I-=B-1),I--,V--}for(;Q<A.length&&U+1<P.length&&!this._isCharWordSeparator(A.loadCell(Q+1,this._workCell));){A.loadCell(Q+1,this._workCell);const B=this._workCell.getChars().length;this._workCell.getWidth()===2?(T++,Q++):B>1&&(M+=B-1,U+=B-1),U++,Q++}}U++;let F=I+z-W+j,G=Math.min(this._bufferService.cols,U-I+W+T-j-M);if(C||P.slice(I,U).trim()!==""){if(R&&F===0&&A.getCodePoint(0)!==32){const V=D.lines.get(S[1]-1);if(V&&A.isWrapped&&V.getCodePoint(this._bufferService.cols-1)!==32){const Q=this._getWordAt([this._bufferService.cols-1,S[1]-1],!1,!0,!1);if(Q){const te=this._bufferService.cols-Q.start;F-=te,G+=te}}}if($&&F+G===this._bufferService.cols&&A.getCodePoint(this._bufferService.cols-1)!==32){const V=D.lines.get(S[1]+1);if(V!=null&&V.isWrapped&&V.getCodePoint(0)!==32){const Q=this._getWordAt([0,S[1]+1],!1,!1,!0);Q&&(G+=Q.length)}}return{start:F,length:G}}}_selectWordAt(S,C){const R=this._getWordAt(S,C);if(R){for(;R.start<0;)R.start+=this._bufferService.cols,S[1]--;this._model.selectionStart=[R.start,S[1]],this._model.selectionStartLength=R.length}}_selectToWordAt(S){const C=this._getWordAt(S,!0);if(C){let R=S[1];for(;C.start<0;)C.start+=this._bufferService.cols,R--;if(!this._model.areSelectionValuesReversed())for(;C.start+C.length>this._bufferService.cols;)C.length-=this._bufferService.cols,R++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?C.start:C.start+C.length,R]}}_isCharWordSeparator(S){return S.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(S.getChars())>=0}_selectLineAt(S){const C=this._bufferService.buffer.getWrappedRangeForLine(S),R={start:{x:0,y:C.first},end:{x:this._bufferService.cols-1,y:C.last}};this._model.selectionStart=[0,C.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,d.getRangeLength)(R,this._bufferService.cols)}};n.SelectionService=E=l([h(3,y.IBufferService),h(4,y.ICoreService),h(5,w.IMouseService),h(6,y.IOptionsService),h(7,w.IRenderService),h(8,w.ICoreBrowserService)],E)},4725:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ILinkProviderService=n.IThemeService=n.ICharacterJoinerService=n.ISelectionService=n.IRenderService=n.IMouseService=n.ICoreBrowserService=n.ICharSizeService=void 0;const l=o(8343);n.ICharSizeService=(0,l.createDecorator)("CharSizeService"),n.ICoreBrowserService=(0,l.createDecorator)("CoreBrowserService"),n.IMouseService=(0,l.createDecorator)("MouseService"),n.IRenderService=(0,l.createDecorator)("RenderService"),n.ISelectionService=(0,l.createDecorator)("SelectionService"),n.ICharacterJoinerService=(0,l.createDecorator)("CharacterJoinerService"),n.IThemeService=(0,l.createDecorator)("ThemeService"),n.ILinkProviderService=(0,l.createDecorator)("LinkProviderService")},6731:function(p,n,o){var l=this&&this.__decorate||function(E,S,C,R){var $,D=arguments.length,A=D<3?S:R===null?R=Object.getOwnPropertyDescriptor(S,C):R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(E,S,C,R);else for(var P=E.length-1;P>=0;P--)($=E[P])&&(A=(D<3?$(A):D>3?$(S,C,A):$(S,C))||A);return D>3&&A&&Object.defineProperty(S,C,A),A},h=this&&this.__param||function(E,S){return function(C,R){S(C,R,E)}};Object.defineProperty(n,"__esModule",{value:!0}),n.ThemeService=n.DEFAULT_ANSI_COLORS=void 0;const m=o(7239),b=o(8055),_=o(8460),w=o(844),v=o(2585),u=b.css.toColor("#ffffff"),f=b.css.toColor("#000000"),d=b.css.toColor("#ffffff"),g=b.css.toColor("#000000"),y={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};n.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")],S=[0,95,135,175,215,255];for(let C=0;C<216;C++){const R=S[C/36%6|0],$=S[C/6%6|0],D=S[C%6];E.push({css:b.channels.toCss(R,$,D),rgba:b.channels.toRgba(R,$,D)})}for(let C=0;C<24;C++){const R=8+10*C;E.push({css:b.channels.toCss(R,R,R),rgba:b.channels.toRgba(R,R,R)})}return E})());let x=n.ThemeService=class extends w.Disposable{get colors(){return this._colors}constructor(E){super(),this._optionsService=E,this._contrastCache=new m.ColorContrastCache,this._halfContrastCache=new m.ColorContrastCache,this._onChangeColors=this.register(new _.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:u,background:f,cursor:d,cursorAccent:g,selectionForeground:void 0,selectionBackgroundTransparent:y,selectionBackgroundOpaque:b.color.blend(f,y),selectionInactiveBackgroundTransparent:y,selectionInactiveBackgroundOpaque:b.color.blend(f,y),ansi:n.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 S=this._colors;if(S.foreground=k(E.foreground,u),S.background=k(E.background,f),S.cursor=k(E.cursor,d),S.cursorAccent=k(E.cursorAccent,g),S.selectionBackgroundTransparent=k(E.selectionBackground,y),S.selectionBackgroundOpaque=b.color.blend(S.background,S.selectionBackgroundTransparent),S.selectionInactiveBackgroundTransparent=k(E.selectionInactiveBackground,S.selectionBackgroundTransparent),S.selectionInactiveBackgroundOpaque=b.color.blend(S.background,S.selectionInactiveBackgroundTransparent),S.selectionForeground=E.selectionForeground?k(E.selectionForeground,b.NULL_COLOR):void 0,S.selectionForeground===b.NULL_COLOR&&(S.selectionForeground=void 0),b.color.isOpaque(S.selectionBackgroundTransparent)&&(S.selectionBackgroundTransparent=b.color.opacity(S.selectionBackgroundTransparent,.3)),b.color.isOpaque(S.selectionInactiveBackgroundTransparent)&&(S.selectionInactiveBackgroundTransparent=b.color.opacity(S.selectionInactiveBackgroundTransparent,.3)),S.ansi=n.DEFAULT_ANSI_COLORS.slice(),S.ansi[0]=k(E.black,n.DEFAULT_ANSI_COLORS[0]),S.ansi[1]=k(E.red,n.DEFAULT_ANSI_COLORS[1]),S.ansi[2]=k(E.green,n.DEFAULT_ANSI_COLORS[2]),S.ansi[3]=k(E.yellow,n.DEFAULT_ANSI_COLORS[3]),S.ansi[4]=k(E.blue,n.DEFAULT_ANSI_COLORS[4]),S.ansi[5]=k(E.magenta,n.DEFAULT_ANSI_COLORS[5]),S.ansi[6]=k(E.cyan,n.DEFAULT_ANSI_COLORS[6]),S.ansi[7]=k(E.white,n.DEFAULT_ANSI_COLORS[7]),S.ansi[8]=k(E.brightBlack,n.DEFAULT_ANSI_COLORS[8]),S.ansi[9]=k(E.brightRed,n.DEFAULT_ANSI_COLORS[9]),S.ansi[10]=k(E.brightGreen,n.DEFAULT_ANSI_COLORS[10]),S.ansi[11]=k(E.brightYellow,n.DEFAULT_ANSI_COLORS[11]),S.ansi[12]=k(E.brightBlue,n.DEFAULT_ANSI_COLORS[12]),S.ansi[13]=k(E.brightMagenta,n.DEFAULT_ANSI_COLORS[13]),S.ansi[14]=k(E.brightCyan,n.DEFAULT_ANSI_COLORS[14]),S.ansi[15]=k(E.brightWhite,n.DEFAULT_ANSI_COLORS[15]),E.extendedAnsi){const C=Math.min(S.ansi.length-16,E.extendedAnsi.length);for(let R=0;R<C;R++)S.ansi[R+16]=k(E.extendedAnsi[R],n.DEFAULT_ANSI_COLORS[R+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 S=0;S<this._restoreColors.ansi.length;++S)this._colors.ansi[S]=this._restoreColors.ansi[S]}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 k(E,S){if(E!==void 0)try{return b.css.toColor(E)}catch{}return S}n.ThemeService=x=l([h(0,v.IOptionsService)],x)},6349:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.CircularList=void 0;const l=o(8460),h=o(844);class m extends h.Disposable{constructor(_){super(),this._maxLength=_,this.onDeleteEmitter=this.register(new l.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new l.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new l.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(_){if(this._maxLength===_)return;const w=new Array(_);for(let v=0;v<Math.min(_,this.length);v++)w[v]=this._array[this._getCyclicIndex(v)];this._array=w,this._maxLength=_,this._startIndex=0}get length(){return this._length}set length(_){if(_>this._length)for(let w=this._length;w<_;w++)this._array[w]=void 0;this._length=_}get(_){return this._array[this._getCyclicIndex(_)]}set(_,w){this._array[this._getCyclicIndex(_)]=w}push(_){this._array[this._getCyclicIndex(this._length)]=_,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(_,w,...v){if(w){for(let u=_;u<this._length-w;u++)this._array[this._getCyclicIndex(u)]=this._array[this._getCyclicIndex(u+w)];this._length-=w,this.onDeleteEmitter.fire({index:_,amount:w})}for(let u=this._length-1;u>=_;u--)this._array[this._getCyclicIndex(u+v.length)]=this._array[this._getCyclicIndex(u)];for(let u=0;u<v.length;u++)this._array[this._getCyclicIndex(_+u)]=v[u];if(v.length&&this.onInsertEmitter.fire({index:_,amount:v.length}),this._length+v.length>this._maxLength){const u=this._length+v.length-this._maxLength;this._startIndex+=u,this._length=this._maxLength,this.onTrimEmitter.fire(u)}else this._length+=v.length}trimStart(_){_>this._length&&(_=this._length),this._startIndex+=_,this._length-=_,this.onTrimEmitter.fire(_)}shiftElements(_,w,v){if(!(w<=0)){if(_<0||_>=this._length)throw new Error("start argument out of range");if(_+v<0)throw new Error("Cannot shift elements in list beyond index 0");if(v>0){for(let f=w-1;f>=0;f--)this.set(_+f+v,this.get(_+f));const u=_+w+v-this._length;if(u>0)for(this._length+=u;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let u=0;u<w;u++)this.set(_+u+v,this.get(_+u))}}_getCyclicIndex(_){return(this._startIndex+_)%this._maxLength}}n.CircularList=m},1439:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.clone=void 0,n.clone=function o(l,h=5){if(typeof l!="object")return l;const m=Array.isArray(l)?[]:{};for(const b in l)m[b]=h<=1?l[b]:l[b]&&o(l[b],h-1);return m}},8055:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.contrastRatio=n.toPaddedHex=n.rgba=n.rgb=n.css=n.color=n.channels=n.NULL_COLOR=void 0;let o=0,l=0,h=0,m=0;var b,_,w,v,u;function f(g){const y=g.toString(16);return y.length<2?"0"+y:y}function d(g,y){return g<y?(y+.05)/(g+.05):(g+.05)/(y+.05)}n.NULL_COLOR={css:"#00000000",rgba:0},(function(g){g.toCss=function(y,x,k,E){return E!==void 0?`#${f(y)}${f(x)}${f(k)}${f(E)}`:`#${f(y)}${f(x)}${f(k)}`},g.toRgba=function(y,x,k,E=255){return(y<<24|x<<16|k<<8|E)>>>0},g.toColor=function(y,x,k,E){return{css:g.toCss(y,x,k,E),rgba:g.toRgba(y,x,k,E)}}})(b||(n.channels=b={})),(function(g){function y(x,k){return m=Math.round(255*k),[o,l,h]=u.toChannels(x.rgba),{css:b.toCss(o,l,h,m),rgba:b.toRgba(o,l,h,m)}}g.blend=function(x,k){if(m=(255&k.rgba)/255,m===1)return{css:k.css,rgba:k.rgba};const E=k.rgba>>24&255,S=k.rgba>>16&255,C=k.rgba>>8&255,R=x.rgba>>24&255,$=x.rgba>>16&255,D=x.rgba>>8&255;return o=R+Math.round((E-R)*m),l=$+Math.round((S-$)*m),h=D+Math.round((C-D)*m),{css:b.toCss(o,l,h),rgba:b.toRgba(o,l,h)}},g.isOpaque=function(x){return(255&x.rgba)==255},g.ensureContrastRatio=function(x,k,E){const S=u.ensureContrastRatio(x.rgba,k.rgba,E);if(S)return b.toColor(S>>24&255,S>>16&255,S>>8&255)},g.opaque=function(x){const k=(255|x.rgba)>>>0;return[o,l,h]=u.toChannels(k),{css:b.toCss(o,l,h),rgba:k}},g.opacity=y,g.multiplyOpacity=function(x,k){return m=255&x.rgba,y(x,m*k/255)},g.toColorRGB=function(x){return[x.rgba>>24&255,x.rgba>>16&255,x.rgba>>8&255]}})(_||(n.color=_={})),(function(g){let y,x;try{const k=document.createElement("canvas");k.width=1,k.height=1;const E=k.getContext("2d",{willReadFrequently:!0});E&&(y=E,y.globalCompositeOperation="copy",x=y.createLinearGradient(0,0,1,1))}catch{}g.toColor=function(k){if(k.match(/#[\da-f]{3,8}/i))switch(k.length){case 4:return o=parseInt(k.slice(1,2).repeat(2),16),l=parseInt(k.slice(2,3).repeat(2),16),h=parseInt(k.slice(3,4).repeat(2),16),b.toColor(o,l,h);case 5:return o=parseInt(k.slice(1,2).repeat(2),16),l=parseInt(k.slice(2,3).repeat(2),16),h=parseInt(k.slice(3,4).repeat(2),16),m=parseInt(k.slice(4,5).repeat(2),16),b.toColor(o,l,h,m);case 7:return{css:k,rgba:(parseInt(k.slice(1),16)<<8|255)>>>0};case 9:return{css:k,rgba:parseInt(k.slice(1),16)>>>0}}const E=k.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]),l=parseInt(E[2]),h=parseInt(E[3]),m=Math.round(255*(E[5]===void 0?1:parseFloat(E[5]))),b.toColor(o,l,h,m);if(!y||!x)throw new Error("css.toColor: Unsupported css format");if(y.fillStyle=x,y.fillStyle=k,typeof y.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(y.fillRect(0,0,1,1),[o,l,h,m]=y.getImageData(0,0,1,1).data,m!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:b.toRgba(o,l,h,m),css:k}}})(w||(n.css=w={})),(function(g){function y(x,k,E){const S=x/255,C=k/255,R=E/255;return .2126*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))+.7152*(C<=.03928?C/12.92:Math.pow((C+.055)/1.055,2.4))+.0722*(R<=.03928?R/12.92:Math.pow((R+.055)/1.055,2.4))}g.relativeLuminance=function(x){return y(x>>16&255,x>>8&255,255&x)},g.relativeLuminance2=y})(v||(n.rgb=v={})),(function(g){function y(k,E,S){const C=k>>24&255,R=k>>16&255,$=k>>8&255;let D=E>>24&255,A=E>>16&255,P=E>>8&255,I=d(v.relativeLuminance2(D,A,P),v.relativeLuminance2(C,R,$));for(;I<S&&(D>0||A>0||P>0);)D-=Math.max(0,Math.ceil(.1*D)),A-=Math.max(0,Math.ceil(.1*A)),P-=Math.max(0,Math.ceil(.1*P)),I=d(v.relativeLuminance2(D,A,P),v.relativeLuminance2(C,R,$));return(D<<24|A<<16|P<<8|255)>>>0}function x(k,E,S){const C=k>>24&255,R=k>>16&255,$=k>>8&255;let D=E>>24&255,A=E>>16&255,P=E>>8&255,I=d(v.relativeLuminance2(D,A,P),v.relativeLuminance2(C,R,$));for(;I<S&&(D<255||A<255||P<255);)D=Math.min(255,D+Math.ceil(.1*(255-D))),A=Math.min(255,A+Math.ceil(.1*(255-A))),P=Math.min(255,P+Math.ceil(.1*(255-P))),I=d(v.relativeLuminance2(D,A,P),v.relativeLuminance2(C,R,$));return(D<<24|A<<16|P<<8|255)>>>0}g.blend=function(k,E){if(m=(255&E)/255,m===1)return E;const S=E>>24&255,C=E>>16&255,R=E>>8&255,$=k>>24&255,D=k>>16&255,A=k>>8&255;return o=$+Math.round((S-$)*m),l=D+Math.round((C-D)*m),h=A+Math.round((R-A)*m),b.toRgba(o,l,h)},g.ensureContrastRatio=function(k,E,S){const C=v.relativeLuminance(k>>8),R=v.relativeLuminance(E>>8);if(d(C,R)<S){if(R<C){const A=y(k,E,S),P=d(C,v.relativeLuminance(A>>8));if(P<S){const I=x(k,E,S);return P>d(C,v.relativeLuminance(I>>8))?A:I}return A}const $=x(k,E,S),D=d(C,v.relativeLuminance($>>8));if(D<S){const A=y(k,E,S);return D>d(C,v.relativeLuminance(A>>8))?$:A}return $}},g.reduceLuminance=y,g.increaseLuminance=x,g.toChannels=function(k){return[k>>24&255,k>>16&255,k>>8&255,255&k]}})(u||(n.rgba=u={})),n.toPaddedHex=f,n.contrastRatio=d},8969:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.CoreTerminal=void 0;const l=o(844),h=o(2585),m=o(4348),b=o(7866),_=o(744),w=o(7302),v=o(6975),u=o(8460),f=o(1753),d=o(1480),g=o(7994),y=o(9282),x=o(5435),k=o(5981),E=o(2660);let S=!1;class C extends l.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new u.EventEmitter),this._onScroll.event(($=>{var D;(D=this._onScrollApi)==null||D.fire($.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($){for(const D in $)this.optionsService.options[D]=$[D]}constructor($){super(),this._windowsWrappingHeuristics=this.register(new l.MutableDisposable),this._onBinary=this.register(new u.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new u.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new u.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new u.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new u.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new u.EventEmitter),this._instantiationService=new m.InstantiationService,this.optionsService=this.register(new w.OptionsService($)),this._instantiationService.setService(h.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(_.BufferService)),this._instantiationService.setService(h.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(b.LogService)),this._instantiationService.setService(h.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(v.CoreService)),this._instantiationService.setService(h.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(f.CoreMouseService)),this._instantiationService.setService(h.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(d.UnicodeService)),this._instantiationService.setService(h.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(g.CharsetService),this._instantiationService.setService(h.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(E.OscLinkService),this._instantiationService.setService(h.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new x.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,u.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,u.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,u.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,u.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((D=>{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((D=>{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 k.WriteBuffer(((D,A)=>this._inputHandler.parse(D,A)))),this.register((0,u.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write($,D){this._writeBuffer.write($,D)}writeSync($,D){this._logService.logLevel<=h.LogLevelEnum.WARN&&!S&&(this._logService.warn("writeSync is unreliable and will be removed soon."),S=!0),this._writeBuffer.writeSync($,D)}input($,D=!0){this.coreService.triggerDataEvent($,D)}resize($,D){isNaN($)||isNaN(D)||($=Math.max($,_.MINIMUM_COLS),D=Math.max(D,_.MINIMUM_ROWS),this._bufferService.resize($,D))}scroll($,D=!1){this._bufferService.scroll($,D)}scrollLines($,D,A){this._bufferService.scrollLines($,D,A)}scrollPages($){this.scrollLines($*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine($){const D=$-this._bufferService.buffer.ydisp;D!==0&&this.scrollLines(D)}registerEscHandler($,D){return this._inputHandler.registerEscHandler($,D)}registerDcsHandler($,D){return this._inputHandler.registerDcsHandler($,D)}registerCsiHandler($,D){return this._inputHandler.registerCsiHandler($,D)}registerOscHandler($,D){return this._inputHandler.registerOscHandler($,D)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let $=!1;const D=this.optionsService.rawOptions.windowsPty;D&&D.buildNumber!==void 0&&D.buildNumber!==void 0?$=D.backend==="conpty"&&D.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&($=!0),$?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const $=[];$.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),$.push(this.registerCsiHandler({final:"H"},(()=>((0,y.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,l.toDisposable)((()=>{for(const D of $)D.dispose()}))}}}n.CoreTerminal=C},8460:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.runAndSubscribe=n.forwardEvent=n.EventEmitter=void 0,n.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 l=0;l<this._listeners.length;l++)if(this._listeners[l]===o)return void this._listeners.splice(l,1)}}})),this._event}fire(o,l){const h=[];for(let m=0;m<this._listeners.length;m++)h.push(this._listeners[m]);for(let m=0;m<h.length;m++)h[m].call(void 0,o,l)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},n.forwardEvent=function(o,l){return o((h=>l.fire(h)))},n.runAndSubscribe=function(o,l){return l(void 0),o((h=>l(h)))}},5435:function(p,n,o){var l=this&&this.__decorate||function(W,T,j,M){var F,G=arguments.length,V=G<3?T:M===null?M=Object.getOwnPropertyDescriptor(T,j):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")V=Reflect.decorate(W,T,j,M);else for(var Q=W.length-1;Q>=0;Q--)(F=W[Q])&&(V=(G<3?F(V):G>3?F(T,j,V):F(T,j))||V);return G>3&&V&&Object.defineProperty(T,j,V),V},h=this&&this.__param||function(W,T){return function(j,M){T(j,M,W)}};Object.defineProperty(n,"__esModule",{value:!0}),n.InputHandler=n.WindowsOptionsReportType=void 0;const m=o(2584),b=o(7116),_=o(2015),w=o(844),v=o(482),u=o(8437),f=o(8460),d=o(643),g=o(511),y=o(3734),x=o(2585),k=o(1480),E=o(6242),S=o(6351),C=o(5941),R={"(":0,")":1,"*":2,"+":3,"-":1,".":2},$=131072;function D(W,T){if(W>24)return T.setWinLines||!1;switch(W){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 A;(function(W){W[W.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",W[W.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(A||(n.WindowsOptionsReportType=A={}));let P=0;class I extends w.Disposable{getAttrData(){return this._curAttrData}constructor(T,j,M,F,G,V,Q,te,B=new _.EscapeSequenceParser){super(),this._bufferService=T,this._charsetService=j,this._coreService=M,this._logService=F,this._optionsService=G,this._oscLinkService=V,this._coreMouseService=Q,this._unicodeService=te,this._parser=B,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new v.StringToUtf32,this._utf8Decoder=new v.Utf8ToUtf32,this._workCell=new g.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=u.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new f.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new f.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new f.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new f.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new f.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new f.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new f.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new f.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new f.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new f.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new f.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new f.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new f.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 U(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((L=>this._activeBuffer=L.activeBuffer))),this._parser.setCsiHandlerFallback(((L,K)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(L),params:K.toArray()})})),this._parser.setEscHandlerFallback((L=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(L)})})),this._parser.setExecuteHandlerFallback((L=>{this._logService.debug("Unknown EXECUTE code: ",{code:L})})),this._parser.setOscHandlerFallback(((L,K,q)=>{this._logService.debug("Unknown OSC code: ",{identifier:L,action:K,data:q})})),this._parser.setDcsHandlerFallback(((L,K,q)=>{K==="HOOK"&&(q=q.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(L),action:K,payload:q})})),this._parser.setPrintHandler(((L,K,q)=>this.print(L,K,q))),this._parser.registerCsiHandler({final:"@"},(L=>this.insertChars(L))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(L=>this.scrollLeft(L))),this._parser.registerCsiHandler({final:"A"},(L=>this.cursorUp(L))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(L=>this.scrollRight(L))),this._parser.registerCsiHandler({final:"B"},(L=>this.cursorDown(L))),this._parser.registerCsiHandler({final:"C"},(L=>this.cursorForward(L))),this._parser.registerCsiHandler({final:"D"},(L=>this.cursorBackward(L))),this._parser.registerCsiHandler({final:"E"},(L=>this.cursorNextLine(L))),this._parser.registerCsiHandler({final:"F"},(L=>this.cursorPrecedingLine(L))),this._parser.registerCsiHandler({final:"G"},(L=>this.cursorCharAbsolute(L))),this._parser.registerCsiHandler({final:"H"},(L=>this.cursorPosition(L))),this._parser.registerCsiHandler({final:"I"},(L=>this.cursorForwardTab(L))),this._parser.registerCsiHandler({final:"J"},(L=>this.eraseInDisplay(L,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(L=>this.eraseInDisplay(L,!0))),this._parser.registerCsiHandler({final:"K"},(L=>this.eraseInLine(L,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(L=>this.eraseInLine(L,!0))),this._parser.registerCsiHandler({final:"L"},(L=>this.insertLines(L))),this._parser.registerCsiHandler({final:"M"},(L=>this.deleteLines(L))),this._parser.registerCsiHandler({final:"P"},(L=>this.deleteChars(L))),this._parser.registerCsiHandler({final:"S"},(L=>this.scrollUp(L))),this._parser.registerCsiHandler({final:"T"},(L=>this.scrollDown(L))),this._parser.registerCsiHandler({final:"X"},(L=>this.eraseChars(L))),this._parser.registerCsiHandler({final:"Z"},(L=>this.cursorBackwardTab(L))),this._parser.registerCsiHandler({final:"`"},(L=>this.charPosAbsolute(L))),this._parser.registerCsiHandler({final:"a"},(L=>this.hPositionRelative(L))),this._parser.registerCsiHandler({final:"b"},(L=>this.repeatPrecedingCharacter(L))),this._parser.registerCsiHandler({final:"c"},(L=>this.sendDeviceAttributesPrimary(L))),this._parser.registerCsiHandler({prefix:">",final:"c"},(L=>this.sendDeviceAttributesSecondary(L))),this._parser.registerCsiHandler({final:"d"},(L=>this.linePosAbsolute(L))),this._parser.registerCsiHandler({final:"e"},(L=>this.vPositionRelative(L))),this._parser.registerCsiHandler({final:"f"},(L=>this.hVPosition(L))),this._parser.registerCsiHandler({final:"g"},(L=>this.tabClear(L))),this._parser.registerCsiHandler({final:"h"},(L=>this.setMode(L))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(L=>this.setModePrivate(L))),this._parser.registerCsiHandler({final:"l"},(L=>this.resetMode(L))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(L=>this.resetModePrivate(L))),this._parser.registerCsiHandler({final:"m"},(L=>this.charAttributes(L))),this._parser.registerCsiHandler({final:"n"},(L=>this.deviceStatus(L))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(L=>this.deviceStatusPrivate(L))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(L=>this.softReset(L))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(L=>this.setCursorStyle(L))),this._parser.registerCsiHandler({final:"r"},(L=>this.setScrollRegion(L))),this._parser.registerCsiHandler({final:"s"},(L=>this.saveCursor(L))),this._parser.registerCsiHandler({final:"t"},(L=>this.windowOptions(L))),this._parser.registerCsiHandler({final:"u"},(L=>this.restoreCursor(L))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(L=>this.insertColumns(L))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(L=>this.deleteColumns(L))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(L=>this.selectProtected(L))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(L=>this.requestMode(L,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(L=>this.requestMode(L,!1))),this._parser.setExecuteHandler(m.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(m.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(m.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(m.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(m.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(m.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(m.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(m.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(m.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(m.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(m.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(m.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new E.OscHandler((L=>(this.setTitle(L),this.setIconName(L),!0)))),this._parser.registerOscHandler(1,new E.OscHandler((L=>this.setIconName(L)))),this._parser.registerOscHandler(2,new E.OscHandler((L=>this.setTitle(L)))),this._parser.registerOscHandler(4,new E.OscHandler((L=>this.setOrReportIndexedColor(L)))),this._parser.registerOscHandler(8,new E.OscHandler((L=>this.setHyperlink(L)))),this._parser.registerOscHandler(10,new E.OscHandler((L=>this.setOrReportFgColor(L)))),this._parser.registerOscHandler(11,new E.OscHandler((L=>this.setOrReportBgColor(L)))),this._parser.registerOscHandler(12,new E.OscHandler((L=>this.setOrReportCursorColor(L)))),this._parser.registerOscHandler(104,new E.OscHandler((L=>this.restoreIndexedColor(L)))),this._parser.registerOscHandler(110,new E.OscHandler((L=>this.restoreFgColor(L)))),this._parser.registerOscHandler(111,new E.OscHandler((L=>this.restoreBgColor(L)))),this._parser.registerOscHandler(112,new E.OscHandler((L=>this.restoreCursorColor(L)))),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 L in b.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:L},(()=>this.selectCharset("("+L))),this._parser.registerEscHandler({intermediates:")",final:L},(()=>this.selectCharset(")"+L))),this._parser.registerEscHandler({intermediates:"*",final:L},(()=>this.selectCharset("*"+L))),this._parser.registerEscHandler({intermediates:"+",final:L},(()=>this.selectCharset("+"+L))),this._parser.registerEscHandler({intermediates:"-",final:L},(()=>this.selectCharset("-"+L))),this._parser.registerEscHandler({intermediates:".",final:L},(()=>this.selectCharset("."+L))),this._parser.registerEscHandler({intermediates:"/",final:L},(()=>this.selectCharset("/"+L)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((L=>(this._logService.error("Parsing error: ",L),L))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new S.DcsHandler(((L,K)=>this.requestStatusString(L,K))))}_preserveStack(T,j,M,F){this._parseStack.paused=!0,this._parseStack.cursorStartX=T,this._parseStack.cursorStartY=j,this._parseStack.decodedLength=M,this._parseStack.position=F}_logSlowResolvingAsync(T){this._logService.logLevel<=x.LogLevelEnum.WARN&&Promise.race([T,new Promise(((j,M)=>setTimeout((()=>M("#SLOW_TIMEOUT")),5e3)))]).catch((j=>{if(j!=="#SLOW_TIMEOUT")throw j;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(T,j){let M,F=this._activeBuffer.x,G=this._activeBuffer.y,V=0;const Q=this._parseStack.paused;if(Q){if(M=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,j))return this._logSlowResolvingAsync(M),M;F=this._parseStack.cursorStartX,G=this._parseStack.cursorStartY,this._parseStack.paused=!1,T.length>$&&(V=this._parseStack.position+$)}if(this._logService.logLevel<=x.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof T=="string"?` "${T}"`:` "${Array.prototype.map.call(T,(L=>String.fromCharCode(L))).join("")}"`),typeof T=="string"?T.split("").map((L=>L.charCodeAt(0))):T),this._parseBuffer.length<T.length&&this._parseBuffer.length<$&&(this._parseBuffer=new Uint32Array(Math.min(T.length,$))),Q||this._dirtyRowTracker.clearRange(),T.length>$)for(let L=V;L<T.length;L+=$){const K=L+$<T.length?L+$:T.length,q=typeof T=="string"?this._stringDecoder.decode(T.substring(L,K),this._parseBuffer):this._utf8Decoder.decode(T.subarray(L,K),this._parseBuffer);if(M=this._parser.parse(this._parseBuffer,q))return this._preserveStack(F,G,q,L),this._logSlowResolvingAsync(M),M}else if(!Q){const L=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer);if(M=this._parser.parse(this._parseBuffer,L))return this._preserveStack(F,G,L,0),this._logSlowResolvingAsync(M),M}this._activeBuffer.x===F&&this._activeBuffer.y===G||this._onCursorMove.fire();const te=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),B=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);B<this._bufferService.rows&&this._onRequestRefreshRows.fire(Math.min(B,this._bufferService.rows-1),Math.min(te,this._bufferService.rows-1))}print(T,j,M){let F,G;const V=this._charsetService.charset,Q=this._optionsService.rawOptions.screenReaderMode,te=this._bufferService.cols,B=this._coreService.decPrivateModes.wraparound,L=this._coreService.modes.insertMode,K=this._curAttrData;let q=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&M-j>0&&q.getWidth(this._activeBuffer.x-1)===2&&q.setCellFromCodepoint(this._activeBuffer.x-1,0,1,K);let ee=this._parser.precedingJoinState;for(let J=j;J<M;++J){if(F=T[J],F<127&&V){const ue=V[String.fromCharCode(F)];ue&&(F=ue.charCodeAt(0))}const se=this._unicodeService.charProperties(F,ee);G=k.UnicodeService.extractWidth(se);const Z=k.UnicodeService.extractShouldJoin(se),ne=Z?k.UnicodeService.extractWidth(ee):0;if(ee=se,Q&&this._onA11yChar.fire((0,v.stringFromCodePoint)(F)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+G-ne>te){if(B){const ue=q;let ie=this._activeBuffer.x-ne;for(this._activeBuffer.x=ne,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),q=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),ne>0&&q instanceof u.BufferLine&&q.copyCellsFrom(ue,ie,0,ne,!1);ie<te;)ue.setCellFromCodepoint(ie++,0,1,K)}else if(this._activeBuffer.x=te-1,G===2)continue}if(Z&&this._activeBuffer.x){const ue=q.getWidth(this._activeBuffer.x-1)?1:2;q.addCodepointToCell(this._activeBuffer.x-ue,F,G);for(let ie=G-ne;--ie>=0;)q.setCellFromCodepoint(this._activeBuffer.x++,0,0,K)}else if(L&&(q.insertCells(this._activeBuffer.x,G-ne,this._activeBuffer.getNullCell(K)),q.getWidth(te-1)===2&&q.setCellFromCodepoint(te-1,d.NULL_CELL_CODE,d.NULL_CELL_WIDTH,K)),q.setCellFromCodepoint(this._activeBuffer.x++,F,G,K),G>0)for(;--G;)q.setCellFromCodepoint(this._activeBuffer.x++,0,0,K)}this._parser.precedingJoinState=ee,this._activeBuffer.x<te&&M-j>0&&q.getWidth(this._activeBuffer.x)===0&&!q.hasContent(this._activeBuffer.x)&&q.setCellFromCodepoint(this._activeBuffer.x,0,1,K),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(T,j){return T.final!=="t"||T.prefix||T.intermediates?this._parser.registerCsiHandler(T,j):this._parser.registerCsiHandler(T,(M=>!D(M.params[0],this._optionsService.rawOptions.windowOptions)||j(M)))}registerDcsHandler(T,j){return this._parser.registerDcsHandler(T,new S.DcsHandler(j))}registerEscHandler(T,j){return this._parser.registerEscHandler(T,j)}registerOscHandler(T,j){return this._parser.registerOscHandler(T,new E.OscHandler(j))}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 j=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);j.hasWidth(this._activeBuffer.x)&&!j.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,j){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=T,this._activeBuffer.y=this._activeBuffer.scrollTop+j):(this._activeBuffer.x=T,this._activeBuffer.y=j),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(T,j){this._restrictCursor(),this._setCursor(this._activeBuffer.x+T,this._activeBuffer.y+j)}cursorUp(T){const j=this._activeBuffer.y-this._activeBuffer.scrollTop;return j>=0?this._moveCursor(0,-Math.min(j,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1)),!0}cursorDown(T){const j=this._activeBuffer.scrollBottom-this._activeBuffer.y;return j>=0?this._moveCursor(0,Math.min(j,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 j=T.params[0];return j===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:j===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(T){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let j=T.params[0]||1;for(;j--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(T){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let j=T.params[0]||1;for(;j--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(T){const j=T.params[0];return j===1&&(this._curAttrData.bg|=536870912),j!==2&&j!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(T,j,M,F=!1,G=!1){const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+T);V.replaceCells(j,M,this._activeBuffer.getNullCell(this._eraseAttrData()),G),F&&(V.isWrapped=!1)}_resetBufferLine(T,j=!1){const M=this._activeBuffer.lines.get(this._activeBuffer.ybase+T);M&&(M.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),j),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+T),M.isWrapped=!1)}eraseInDisplay(T,j=!1){let M;switch(this._restrictCursor(this._bufferService.cols),T.params[0]){case 0:for(M=this._activeBuffer.y,this._dirtyRowTracker.markDirty(M),this._eraseInBufferLine(M++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,j);M<this._bufferService.rows;M++)this._resetBufferLine(M,j);this._dirtyRowTracker.markDirty(M);break;case 1:for(M=this._activeBuffer.y,this._dirtyRowTracker.markDirty(M),this._eraseInBufferLine(M,0,this._activeBuffer.x+1,!0,j),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(M+1).isWrapped=!1);M--;)this._resetBufferLine(M,j);this._dirtyRowTracker.markDirty(0);break;case 2:for(M=this._bufferService.rows,this._dirtyRowTracker.markDirty(M-1);M--;)this._resetBufferLine(M,j);this._dirtyRowTracker.markDirty(0);break;case 3:const F=this._activeBuffer.lines.length-this._bufferService.rows;F>0&&(this._activeBuffer.lines.trimStart(F),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-F,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-F,0),this._onScroll.fire(0))}return!0}eraseInLine(T,j=!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,j);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,j);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,j)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(T){this._restrictCursor();let j=T.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const M=this._activeBuffer.ybase+this._activeBuffer.y,F=this._bufferService.rows-1-this._activeBuffer.scrollBottom,G=this._bufferService.rows-1+this._activeBuffer.ybase-F+1;for(;j--;)this._activeBuffer.lines.splice(G-1,1),this._activeBuffer.lines.splice(M,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 j=T.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const M=this._activeBuffer.ybase+this._activeBuffer.y;let F;for(F=this._bufferService.rows-1-this._activeBuffer.scrollBottom,F=this._bufferService.rows-1+this._activeBuffer.ybase-F;j--;)this._activeBuffer.lines.splice(M,1),this._activeBuffer.lines.splice(F,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 j=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return j&&(j.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 j=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return j&&(j.deleteCells(this._activeBuffer.x,T.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(T){let j=T.params[0]||1;for(;j--;)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 j=T.params[0]||1;for(;j--;)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(u.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 j=T.params[0]||1;for(let M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){const F=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);F.deleteCells(0,j,this._activeBuffer.getNullCell(this._eraseAttrData())),F.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 j=T.params[0]||1;for(let M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){const F=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);F.insertCells(0,j,this._activeBuffer.getNullCell(this._eraseAttrData())),F.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 j=T.params[0]||1;for(let M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){const F=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);F.insertCells(this._activeBuffer.x,j,this._activeBuffer.getNullCell(this._eraseAttrData())),F.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 j=T.params[0]||1;for(let M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){const F=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);F.deleteCells(this._activeBuffer.x,j,this._activeBuffer.getNullCell(this._eraseAttrData())),F.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(T){this._restrictCursor();const j=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return j&&(j.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 j=this._parser.precedingJoinState;if(!j)return!0;const M=T.params[0]||1,F=k.UnicodeService.extractWidth(j),G=this._activeBuffer.x-F,V=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(G),Q=new Uint32Array(V.length*M);let te=0;for(let L=0;L<V.length;){const K=V.codePointAt(L)||0;Q[te++]=K,L+=K>65535?2:1}let B=te;for(let L=1;L<M;++L)Q.copyWithin(B,0,te),B+=te;return this.print(Q,0,B),!0}sendDeviceAttributesPrimary(T){return T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(m.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(m.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(T){return T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(m.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(m.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(m.C0.ESC+"[>83;40003;0c")),!0}_is(T){return(this._optionsService.rawOptions.termName+"").indexOf(T)===0}setMode(T){for(let j=0;j<T.length;j++)switch(T.params[j]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(T){for(let j=0;j<T.length;j++)switch(T.params[j]){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 j=0;j<T.length;j++)switch(T.params[j]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(T){for(let j=0;j<T.length;j++)switch(T.params[j]){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[j]===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,j){const M=this._coreService.decPrivateModes,{activeProtocol:F,activeEncoding:G}=this._coreMouseService,V=this._coreService,{buffers:Q,cols:te}=this._bufferService,{active:B,alt:L}=Q,K=this._optionsService.rawOptions,q=Z=>Z?1:2,ee=T.params[0];return J=ee,se=j?ee===2?4:ee===4?q(V.modes.insertMode):ee===12?3:ee===20?q(K.convertEol):0:ee===1?q(M.applicationCursorKeys):ee===3?K.windowOptions.setWinLines?te===80?2:te===132?1:0:0:ee===6?q(M.origin):ee===7?q(M.wraparound):ee===8?3:ee===9?q(F==="X10"):ee===12?q(K.cursorBlink):ee===25?q(!V.isCursorHidden):ee===45?q(M.reverseWraparound):ee===66?q(M.applicationKeypad):ee===67?4:ee===1e3?q(F==="VT200"):ee===1002?q(F==="DRAG"):ee===1003?q(F==="ANY"):ee===1004?q(M.sendFocus):ee===1005?4:ee===1006?q(G==="SGR"):ee===1015?4:ee===1016?q(G==="SGR_PIXELS"):ee===1048?1:ee===47||ee===1047||ee===1049?q(B===L):ee===2004?q(M.bracketedPasteMode):0,V.triggerDataEvent(`${m.C0.ESC}[${j?"":"?"}${J};${se}$y`),!0;var J,se}_updateAttrColor(T,j,M,F,G){return j===2?(T|=50331648,T&=-16777216,T|=y.AttributeData.fromColorRGB([M,F,G])):j===5&&(T&=-50331904,T|=33554432|255&M),T}_extractColor(T,j,M){const F=[0,0,-1,0,0,0];let G=0,V=0;do{if(F[V+G]=T.params[j+V],T.hasSubParams(j+V)){const Q=T.getSubParams(j+V);let te=0;do F[1]===5&&(G=1),F[V+te+1+G]=Q[te];while(++te<Q.length&&te+V+1+G<F.length);break}if(F[1]===5&&V+G>=2||F[1]===2&&V+G>=5)break;F[1]&&(G=1)}while(++V+j<T.length&&V+G<F.length);for(let Q=2;Q<F.length;++Q)F[Q]===-1&&(F[Q]=0);switch(F[0]){case 38:M.fg=this._updateAttrColor(M.fg,F[1],F[3],F[4],F[5]);break;case 48:M.bg=this._updateAttrColor(M.bg,F[1],F[3],F[4],F[5]);break;case 58:M.extended=M.extended.clone(),M.extended.underlineColor=this._updateAttrColor(M.extended.underlineColor,F[1],F[3],F[4],F[5])}return V}_processUnderline(T,j){j.extended=j.extended.clone(),(!~T||T>5)&&(T=1),j.extended.underlineStyle=T,j.fg|=268435456,T===0&&(j.fg&=-268435457),j.updateExtended()}_processSGR0(T){T.fg=u.DEFAULT_ATTR_DATA.fg,T.bg=u.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 j=T.length;let M;const F=this._curAttrData;for(let G=0;G<j;G++)M=T.params[G],M>=30&&M<=37?(F.fg&=-50331904,F.fg|=16777216|M-30):M>=40&&M<=47?(F.bg&=-50331904,F.bg|=16777216|M-40):M>=90&&M<=97?(F.fg&=-50331904,F.fg|=16777224|M-90):M>=100&&M<=107?(F.bg&=-50331904,F.bg|=16777224|M-100):M===0?this._processSGR0(F):M===1?F.fg|=134217728:M===3?F.bg|=67108864:M===4?(F.fg|=268435456,this._processUnderline(T.hasSubParams(G)?T.getSubParams(G)[0]:1,F)):M===5?F.fg|=536870912:M===7?F.fg|=67108864:M===8?F.fg|=1073741824:M===9?F.fg|=2147483648:M===2?F.bg|=134217728:M===21?this._processUnderline(2,F):M===22?(F.fg&=-134217729,F.bg&=-134217729):M===23?F.bg&=-67108865:M===24?(F.fg&=-268435457,this._processUnderline(0,F)):M===25?F.fg&=-536870913:M===27?F.fg&=-67108865:M===28?F.fg&=-1073741825:M===29?F.fg&=2147483647:M===39?(F.fg&=-67108864,F.fg|=16777215&u.DEFAULT_ATTR_DATA.fg):M===49?(F.bg&=-67108864,F.bg|=16777215&u.DEFAULT_ATTR_DATA.bg):M===38||M===48||M===58?G+=this._extractColor(T,G,F):M===53?F.bg|=1073741824:M===55?F.bg&=-1073741825:M===59?(F.extended=F.extended.clone(),F.extended.underlineColor=-1,F.updateExtended()):M===100?(F.fg&=-67108864,F.fg|=16777215&u.DEFAULT_ATTR_DATA.fg,F.bg&=-67108864,F.bg|=16777215&u.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",M);return!0}deviceStatus(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(`${m.C0.ESC}[0n`);break;case 6:const j=this._activeBuffer.y+1,M=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${m.C0.ESC}[${j};${M}R`)}return!0}deviceStatusPrivate(T){if(T.params[0]===6){const j=this._activeBuffer.y+1,M=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${m.C0.ESC}[?${j};${M}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=u.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 j=T.params[0]||1;switch(j){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 M=j%2==1;return this._optionsService.options.cursorBlink=M,!0}setScrollRegion(T){const j=T.params[0]||1;let M;return(T.length<2||(M=T.params[1])>this._bufferService.rows||M===0)&&(M=this._bufferService.rows),M>j&&(this._activeBuffer.scrollTop=j-1,this._activeBuffer.scrollBottom=M-1,this._setCursor(0,0)),!0}windowOptions(T){if(!D(T.params[0],this._optionsService.rawOptions.windowOptions))return!0;const j=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:j!==2&&this._onRequestWindowsOptionsReport.fire(A.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(A.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${m.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:j!==0&&j!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),j!==0&&j!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:j!==0&&j!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),j!==0&&j!==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 j=[],M=T.split(";");for(;M.length>1;){const F=M.shift(),G=M.shift();if(/^\d+$/.exec(F)){const V=parseInt(F);if(z(V))if(G==="?")j.push({type:0,index:V});else{const Q=(0,C.parseColor)(G);Q&&j.push({type:1,index:V,color:Q})}}}return j.length&&this._onColor.fire(j),!0}setHyperlink(T){const j=T.split(";");return!(j.length<2)&&(j[1]?this._createHyperlink(j[0],j[1]):!j[0]&&this._finishHyperlink())}_createHyperlink(T,j){this._getCurrentLinkId()&&this._finishHyperlink();const M=T.split(":");let F;const G=M.findIndex((V=>V.startsWith("id=")));return G!==-1&&(F=M[G].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:F,uri:j}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(T,j){const M=T.split(";");for(let F=0;F<M.length&&!(j>=this._specialColors.length);++F,++j)if(M[F]==="?")this._onColor.fire([{type:0,index:this._specialColors[j]}]);else{const G=(0,C.parseColor)(M[F]);G&&this._onColor.fire([{type:1,index:this._specialColors[j],color:G}])}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 j=[],M=T.split(";");for(let F=0;F<M.length;++F)if(/^\d+$/.exec(M[F])){const G=parseInt(M[F]);z(G)&&j.push({type:2,index:G})}return j.length&&this._onColor.fire(j),!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(R[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=u.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=u.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 g.CellData;T.content=4194373,T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg,this._setCursor(0,0);for(let j=0;j<this._bufferService.rows;++j){const M=this._activeBuffer.ybase+this._activeBuffer.y+j,F=this._activeBuffer.lines.get(M);F&&(F.fill(T),F.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(T,j){const M=this._bufferService.buffer,F=this._optionsService.rawOptions;return(G=>(this._coreService.triggerDataEvent(`${m.C0.ESC}${G}${m.C0.ESC}\\`),!0))(T==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:T==='"p'?'P1$r61;1"p':T==="r"?`P1$r${M.scrollTop+1};${M.scrollBottom+1}r`:T==="m"?"P1$r0m":T===" q"?`P1$r${{block:2,underline:4,bar:6}[F.cursorStyle]-(F.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(T,j){this._dirtyRowTracker.markRangeDirty(T,j)}}n.InputHandler=I;let U=class{constructor(W){this._bufferService=W,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(W){W<this.start?this.start=W:W>this.end&&(this.end=W)}markRangeDirty(W,T){W>T&&(P=W,W=T,T=P),W<this.start&&(this.start=W),T>this.end&&(this.end=T)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function z(W){return 0<=W&&W<256}U=l([h(0,x.IBufferService)],U)},844:(p,n)=>{function o(l){for(const h of l)h.dispose();l.length=0}Object.defineProperty(n,"__esModule",{value:!0}),n.getDisposeArrayDisposable=n.disposeArray=n.toDisposable=n.MutableDisposable=n.Disposable=void 0,n.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const l of this._disposables)l.dispose();this._disposables.length=0}register(l){return this._disposables.push(l),l}unregister(l){const h=this._disposables.indexOf(l);h!==-1&&this._disposables.splice(h,1)}},n.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(l){var h;this._isDisposed||l===this._value||((h=this._value)==null||h.dispose(),this._value=l)}clear(){this.value=void 0}dispose(){var l;this._isDisposed=!0,(l=this._value)==null||l.dispose(),this._value=void 0}},n.toDisposable=function(l){return{dispose:l}},n.disposeArray=o,n.getDisposeArrayDisposable=function(l){return{dispose:()=>o(l)}}},1505:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.FourKeyMap=n.TwoKeyMap=void 0;class o{constructor(){this._data={}}set(h,m,b){this._data[h]||(this._data[h]={}),this._data[h][m]=b}get(h,m){return this._data[h]?this._data[h][m]:void 0}clear(){this._data={}}}n.TwoKeyMap=o,n.FourKeyMap=class{constructor(){this._data=new o}set(l,h,m,b,_){this._data.get(l,h)||this._data.set(l,h,new o),this._data.get(l,h).set(m,b,_)}get(l,h,m,b){var _;return(_=this._data.get(l,h))==null?void 0:_.get(m,b)}clear(){this._data.clear()}}},6114:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.isChromeOS=n.isLinux=n.isWindows=n.isIphone=n.isIpad=n.isMac=n.getSafariVersion=n.isSafari=n.isLegacyEdge=n.isFirefox=n.isNode=void 0,n.isNode=typeof process<"u"&&"title"in process;const o=n.isNode?"node":navigator.userAgent,l=n.isNode?"node":navigator.platform;n.isFirefox=o.includes("Firefox"),n.isLegacyEdge=o.includes("Edge"),n.isSafari=/^((?!chrome|android).)*safari/i.test(o),n.getSafariVersion=function(){if(!n.isSafari)return 0;const h=o.match(/Version\/(\d+)/);return h===null||h.length<2?0:parseInt(h[1])},n.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(l),n.isIpad=l==="iPad",n.isIphone=l==="iPhone",n.isWindows=["Windows","Win16","Win32","WinCE"].includes(l),n.isLinux=l.indexOf("Linux")>=0,n.isChromeOS=/\bCrOS\b/.test(o)},6106:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.SortedList=void 0;let o=0;n.SortedList=class{constructor(l){this._getKey=l,this._array=[]}clear(){this._array.length=0}insert(l){this._array.length!==0?(o=this._search(this._getKey(l)),this._array.splice(o,0,l)):this._array.push(l)}delete(l){if(this._array.length===0)return!1;const h=this._getKey(l);if(h===void 0||(o=this._search(h),o===-1)||this._getKey(this._array[o])!==h)return!1;do if(this._array[o]===l)return this._array.splice(o,1),!0;while(++o<this._array.length&&this._getKey(this._array[o])===h);return!1}*getKeyIterator(l){if(this._array.length!==0&&(o=this._search(l),!(o<0||o>=this._array.length)&&this._getKey(this._array[o])===l))do yield this._array[o];while(++o<this._array.length&&this._getKey(this._array[o])===l)}forEachByKey(l,h){if(this._array.length!==0&&(o=this._search(l),!(o<0||o>=this._array.length)&&this._getKey(this._array[o])===l))do h(this._array[o]);while(++o<this._array.length&&this._getKey(this._array[o])===l)}values(){return[...this._array].values()}_search(l){let h=0,m=this._array.length-1;for(;m>=h;){let b=h+m>>1;const _=this._getKey(this._array[b]);if(_>l)m=b-1;else{if(!(_<l)){for(;b>0&&this._getKey(this._array[b-1])===l;)b--;return b}h=b+1}}return h}}},7226:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.DebouncedIdleTask=n.IdleTaskQueue=n.PriorityTaskQueue=void 0;const l=o(6114);class h{constructor(){this._tasks=[],this._i=0}enqueue(_){this._tasks.push(_),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(_){this._idleCallback=void 0;let w=0,v=0,u=_.timeRemaining(),f=0;for(;this._i<this._tasks.length;){if(w=Date.now(),this._tasks[this._i]()||this._i++,w=Math.max(1,Date.now()-w),v=Math.max(w,v),f=_.timeRemaining(),1.5*v>f)return u-w<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(u-w))}ms`),void this._start();u=f}this.clear()}}class m extends h{_requestCallback(_){return setTimeout((()=>_(this._createDeadline(16))))}_cancelCallback(_){clearTimeout(_)}_createDeadline(_){const w=Date.now()+_;return{timeRemaining:()=>Math.max(0,w-Date.now())}}}n.PriorityTaskQueue=m,n.IdleTaskQueue=!l.isNode&&"requestIdleCallback"in window?class extends h{_requestCallback(b){return requestIdleCallback(b)}_cancelCallback(b){cancelIdleCallback(b)}}:m,n.DebouncedIdleTask=class{constructor(){this._queue=new n.IdleTaskQueue}set(b){this._queue.clear(),this._queue.enqueue(b)}flush(){this._queue.flush()}}},9282:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.updateWindowsModeWrappedState=void 0;const l=o(643);n.updateWindowsModeWrappedState=function(h){const m=h.buffer.lines.get(h.buffer.ybase+h.buffer.y-1),b=m==null?void 0:m.get(h.cols-1),_=h.buffer.lines.get(h.buffer.ybase+h.buffer.y);_&&b&&(_.isWrapped=b[l.CHAR_DATA_CODE_INDEX]!==l.NULL_CELL_CODE&&b[l.CHAR_DATA_CODE_INDEX]!==l.WHITESPACE_CELL_CODE)}},3734:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ExtendedAttrs=n.AttributeData=void 0;class o{constructor(){this.fg=0,this.bg=0,this.extended=new l}static toColorRGB(m){return[m>>>16&255,m>>>8&255,255&m]}static fromColorRGB(m){return(255&m[0])<<16|(255&m[1])<<8|255&m[2]}clone(){const m=new o;return m.fg=this.fg,m.bg=this.bg,m.extended=this.extended.clone(),m}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}}n.AttributeData=o;class l{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(m){this._ext=m}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(m){this._ext&=-469762049,this._ext|=m<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(m){this._ext&=-67108864,this._ext|=67108863&m}get urlId(){return this._urlId}set urlId(m){this._urlId=m}get underlineVariantOffset(){const m=(3758096384&this._ext)>>29;return m<0?4294967288^m:m}set underlineVariantOffset(m){this._ext&=536870911,this._ext|=m<<29&3758096384}constructor(m=0,b=0){this._ext=0,this._urlId=0,this._ext=m,this._urlId=b}clone(){return new l(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}n.ExtendedAttrs=l},9092:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Buffer=n.MAX_BUFFER_SIZE=void 0;const l=o(6349),h=o(7226),m=o(3734),b=o(8437),_=o(4634),w=o(511),v=o(643),u=o(4863),f=o(7116);n.MAX_BUFFER_SIZE=4294967295,n.Buffer=class{constructor(d,g,y){this._hasScrollback=d,this._optionsService=g,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=f.DEFAULT_CHARSET,this.markers=[],this._nullCell=w.CellData.fromCharData([0,v.NULL_CELL_CHAR,v.NULL_CELL_WIDTH,v.NULL_CELL_CODE]),this._whitespaceCell=w.CellData.fromCharData([0,v.WHITESPACE_CELL_CHAR,v.WHITESPACE_CELL_WIDTH,v.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new h.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(d){return d?(this._nullCell.fg=d.fg,this._nullCell.bg=d.bg,this._nullCell.extended=d.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new m.ExtendedAttrs),this._nullCell}getWhitespaceCell(d){return d?(this._whitespaceCell.fg=d.fg,this._whitespaceCell.bg=d.bg,this._whitespaceCell.extended=d.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new m.ExtendedAttrs),this._whitespaceCell}getBlankLine(d,g){return new b.BufferLine(this._bufferService.cols,this.getNullCell(d),g)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const d=this.ybase+this.y-this.ydisp;return d>=0&&d<this._rows}_getCorrectBufferLength(d){if(!this._hasScrollback)return d;const g=d+this._optionsService.rawOptions.scrollback;return g>n.MAX_BUFFER_SIZE?n.MAX_BUFFER_SIZE:g}fillViewportRows(d){if(this.lines.length===0){d===void 0&&(d=b.DEFAULT_ATTR_DATA);let g=this._rows;for(;g--;)this.lines.push(this.getBlankLine(d))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(d,g){const y=this.getNullCell(b.DEFAULT_ATTR_DATA);let x=0;const k=this._getCorrectBufferLength(g);if(k>this.lines.maxLength&&(this.lines.maxLength=k),this.lines.length>0){if(this._cols<d)for(let S=0;S<this.lines.length;S++)x+=+this.lines.get(S).resize(d,y);let E=0;if(this._rows<g)for(let S=this._rows;S<g;S++)this.lines.length<g+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(d,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(d,y)));else for(let S=this._rows;S>g;S--)this.lines.length>g+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(k<this.lines.maxLength){const S=this.lines.length-k;S>0&&(this.lines.trimStart(S),this.ybase=Math.max(this.ybase-S,0),this.ydisp=Math.max(this.ydisp-S,0),this.savedY=Math.max(this.savedY-S,0)),this.lines.maxLength=k}this.x=Math.min(this.x,d-1),this.y=Math.min(this.y,g-1),E&&(this.y+=E),this.savedX=Math.min(this.savedX,d-1),this.scrollTop=0}if(this.scrollBottom=g-1,this._isReflowEnabled&&(this._reflow(d,g),this._cols>d))for(let E=0;E<this.lines.length;E++)x+=+this.lines.get(E).resize(d,y);this._cols=d,this._rows=g,this._memoryCleanupQueue.clear(),x>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let d=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,d=!1);let g=0;for(;this._memoryCleanupPosition<this.lines.length;)if(g+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),g>100)return!0;return d}get _isReflowEnabled(){const d=this._optionsService.rawOptions.windowsPty;return d&&d.buildNumber?this._hasScrollback&&d.backend==="conpty"&&d.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(d,g){this._cols!==d&&(d>this._cols?this._reflowLarger(d,g):this._reflowSmaller(d,g))}_reflowLarger(d,g){const y=(0,_.reflowLargerGetLinesToRemove)(this.lines,this._cols,d,this.ybase+this.y,this.getNullCell(b.DEFAULT_ATTR_DATA));if(y.length>0){const x=(0,_.reflowLargerCreateNewLayout)(this.lines,y);(0,_.reflowLargerApplyNewLayout)(this.lines,x.layout),this._reflowLargerAdjustViewport(d,g,x.countRemoved)}}_reflowLargerAdjustViewport(d,g,y){const x=this.getNullCell(b.DEFAULT_ATTR_DATA);let k=y;for(;k-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<g&&this.lines.push(new b.BufferLine(d,x))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-y,0)}_reflowSmaller(d,g){const y=this.getNullCell(b.DEFAULT_ATTR_DATA),x=[];let k=0;for(let E=this.lines.length-1;E>=0;E--){let S=this.lines.get(E);if(!S||!S.isWrapped&&S.getTrimmedLength()<=d)continue;const C=[S];for(;S.isWrapped&&E>0;)S=this.lines.get(--E),C.unshift(S);const R=this.ybase+this.y;if(R>=E&&R<E+C.length)continue;const $=C[C.length-1].getTrimmedLength(),D=(0,_.reflowSmallerGetNewLineLengths)(C,this._cols,d),A=D.length-C.length;let P;P=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+A):Math.max(0,this.lines.length-this.lines.maxLength+A);const I=[];for(let M=0;M<A;M++){const F=this.getBlankLine(b.DEFAULT_ATTR_DATA,!0);I.push(F)}I.length>0&&(x.push({start:E+C.length+k,newLines:I}),k+=I.length),C.push(...I);let U=D.length-1,z=D[U];z===0&&(U--,z=D[U]);let W=C.length-A-1,T=$;for(;W>=0;){const M=Math.min(T,z);if(C[U]===void 0)break;if(C[U].copyCellsFrom(C[W],T-M,z-M,M,!0),z-=M,z===0&&(U--,z=D[U]),T-=M,T===0){W--;const F=Math.max(W,0);T=(0,_.getWrappedLineTrimmedLength)(C,F,this._cols)}}for(let M=0;M<C.length;M++)D[M]<d&&C[M].setCell(D[M],y);let j=A-P;for(;j-- >0;)this.ybase===0?this.y<g-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+k)-g&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+A,this.ybase+g-1)}if(x.length>0){const E=[],S=[];for(let U=0;U<this.lines.length;U++)S.push(this.lines.get(U));const C=this.lines.length;let R=C-1,$=0,D=x[$];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+k);let A=0;for(let U=Math.min(this.lines.maxLength-1,C+k-1);U>=0;U--)if(D&&D.start>R+A){for(let z=D.newLines.length-1;z>=0;z--)this.lines.set(U--,D.newLines[z]);U++,E.push({index:R+1,amount:D.newLines.length}),A+=D.newLines.length,D=x[++$]}else this.lines.set(U,S[R--]);let P=0;for(let U=E.length-1;U>=0;U--)E[U].index+=P,this.lines.onInsertEmitter.fire(E[U]),P+=E[U].amount;const I=Math.max(0,C+k-this.lines.maxLength);I>0&&this.lines.onTrimEmitter.fire(I)}}translateBufferLineToString(d,g,y=0,x){const k=this.lines.get(d);return k?k.translateToString(g,y,x):""}getWrappedRangeForLine(d){let g=d,y=d;for(;g>0&&this.lines.get(g).isWrapped;)g--;for(;y+1<this.lines.length&&this.lines.get(y+1).isWrapped;)y++;return{first:g,last:y}}setupTabStops(d){for(d!=null?this.tabs[d]||(d=this.prevStop(d)):(this.tabs={},d=0);d<this._cols;d+=this._optionsService.rawOptions.tabStopWidth)this.tabs[d]=!0}prevStop(d){for(d==null&&(d=this.x);!this.tabs[--d]&&d>0;);return d>=this._cols?this._cols-1:d<0?0:d}nextStop(d){for(d==null&&(d=this.x);!this.tabs[++d]&&d<this._cols;);return d>=this._cols?this._cols-1:d<0?0:d}clearMarkers(d){this._isClearing=!0;for(let g=0;g<this.markers.length;g++)this.markers[g].line===d&&(this.markers[g].dispose(),this.markers.splice(g--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let d=0;d<this.markers.length;d++)this.markers[d].dispose(),this.markers.splice(d--,1);this._isClearing=!1}addMarker(d){const g=new u.Marker(d);return this.markers.push(g),g.register(this.lines.onTrim((y=>{g.line-=y,g.line<0&&g.dispose()}))),g.register(this.lines.onInsert((y=>{g.line>=y.index&&(g.line+=y.amount)}))),g.register(this.lines.onDelete((y=>{g.line>=y.index&&g.line<y.index+y.amount&&g.dispose(),g.line>y.index&&(g.line-=y.amount)}))),g.register(g.onDispose((()=>this._removeMarker(g)))),g}_removeMarker(d){this._isClearing||this.markers.splice(this.markers.indexOf(d),1)}}},8437:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.BufferLine=n.DEFAULT_ATTR_DATA=void 0;const l=o(3734),h=o(511),m=o(643),b=o(482);n.DEFAULT_ATTR_DATA=Object.freeze(new l.AttributeData);let _=0;class w{constructor(u,f,d=!1){this.isWrapped=d,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*u);const g=f||h.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]);for(let y=0;y<u;++y)this.setCell(y,g);this.length=u}get(u){const f=this._data[3*u+0],d=2097151&f;return[this._data[3*u+1],2097152&f?this._combined[u]:d?(0,b.stringFromCodePoint)(d):"",f>>22,2097152&f?this._combined[u].charCodeAt(this._combined[u].length-1):d]}set(u,f){this._data[3*u+1]=f[m.CHAR_DATA_ATTR_INDEX],f[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[u]=f[1],this._data[3*u+0]=2097152|u|f[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*u+0]=f[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|f[m.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(u){return this._data[3*u+0]>>22}hasWidth(u){return 12582912&this._data[3*u+0]}getFg(u){return this._data[3*u+1]}getBg(u){return this._data[3*u+2]}hasContent(u){return 4194303&this._data[3*u+0]}getCodePoint(u){const f=this._data[3*u+0];return 2097152&f?this._combined[u].charCodeAt(this._combined[u].length-1):2097151&f}isCombined(u){return 2097152&this._data[3*u+0]}getString(u){const f=this._data[3*u+0];return 2097152&f?this._combined[u]:2097151&f?(0,b.stringFromCodePoint)(2097151&f):""}isProtected(u){return 536870912&this._data[3*u+2]}loadCell(u,f){return _=3*u,f.content=this._data[_+0],f.fg=this._data[_+1],f.bg=this._data[_+2],2097152&f.content&&(f.combinedData=this._combined[u]),268435456&f.bg&&(f.extended=this._extendedAttrs[u]),f}setCell(u,f){2097152&f.content&&(this._combined[u]=f.combinedData),268435456&f.bg&&(this._extendedAttrs[u]=f.extended),this._data[3*u+0]=f.content,this._data[3*u+1]=f.fg,this._data[3*u+2]=f.bg}setCellFromCodepoint(u,f,d,g){268435456&g.bg&&(this._extendedAttrs[u]=g.extended),this._data[3*u+0]=f|d<<22,this._data[3*u+1]=g.fg,this._data[3*u+2]=g.bg}addCodepointToCell(u,f,d){let g=this._data[3*u+0];2097152&g?this._combined[u]+=(0,b.stringFromCodePoint)(f):2097151&g?(this._combined[u]=(0,b.stringFromCodePoint)(2097151&g)+(0,b.stringFromCodePoint)(f),g&=-2097152,g|=2097152):g=f|4194304,d&&(g&=-12582913,g|=d<<22),this._data[3*u+0]=g}insertCells(u,f,d){if((u%=this.length)&&this.getWidth(u-1)===2&&this.setCellFromCodepoint(u-1,0,1,d),f<this.length-u){const g=new h.CellData;for(let y=this.length-u-f-1;y>=0;--y)this.setCell(u+f+y,this.loadCell(u+y,g));for(let y=0;y<f;++y)this.setCell(u+y,d)}else for(let g=u;g<this.length;++g)this.setCell(g,d);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,d)}deleteCells(u,f,d){if(u%=this.length,f<this.length-u){const g=new h.CellData;for(let y=0;y<this.length-u-f;++y)this.setCell(u+y,this.loadCell(u+f+y,g));for(let y=this.length-f;y<this.length;++y)this.setCell(y,d)}else for(let g=u;g<this.length;++g)this.setCell(g,d);u&&this.getWidth(u-1)===2&&this.setCellFromCodepoint(u-1,0,1,d),this.getWidth(u)!==0||this.hasContent(u)||this.setCellFromCodepoint(u,0,1,d)}replaceCells(u,f,d,g=!1){if(g)for(u&&this.getWidth(u-1)===2&&!this.isProtected(u-1)&&this.setCellFromCodepoint(u-1,0,1,d),f<this.length&&this.getWidth(f-1)===2&&!this.isProtected(f)&&this.setCellFromCodepoint(f,0,1,d);u<f&&u<this.length;)this.isProtected(u)||this.setCell(u,d),u++;else for(u&&this.getWidth(u-1)===2&&this.setCellFromCodepoint(u-1,0,1,d),f<this.length&&this.getWidth(f-1)===2&&this.setCellFromCodepoint(f,0,1,d);u<f&&u<this.length;)this.setCell(u++,d)}resize(u,f){if(u===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const d=3*u;if(u>this.length){if(this._data.buffer.byteLength>=4*d)this._data=new Uint32Array(this._data.buffer,0,d);else{const g=new Uint32Array(d);g.set(this._data),this._data=g}for(let g=this.length;g<u;++g)this.setCell(g,f)}else{this._data=this._data.subarray(0,d);const g=Object.keys(this._combined);for(let x=0;x<g.length;x++){const k=parseInt(g[x],10);k>=u&&delete this._combined[k]}const y=Object.keys(this._extendedAttrs);for(let x=0;x<y.length;x++){const k=parseInt(y[x],10);k>=u&&delete this._extendedAttrs[k]}}return this.length=u,4*d*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const u=new Uint32Array(this._data.length);return u.set(this._data),this._data=u,1}return 0}fill(u,f=!1){if(f)for(let d=0;d<this.length;++d)this.isProtected(d)||this.setCell(d,u);else{this._combined={},this._extendedAttrs={};for(let d=0;d<this.length;++d)this.setCell(d,u)}}copyFrom(u){this.length!==u.length?this._data=new Uint32Array(u._data):this._data.set(u._data),this.length=u.length,this._combined={};for(const f in u._combined)this._combined[f]=u._combined[f];this._extendedAttrs={};for(const f in u._extendedAttrs)this._extendedAttrs[f]=u._extendedAttrs[f];this.isWrapped=u.isWrapped}clone(){const u=new w(0);u._data=new Uint32Array(this._data),u.length=this.length;for(const f in this._combined)u._combined[f]=this._combined[f];for(const f in this._extendedAttrs)u._extendedAttrs[f]=this._extendedAttrs[f];return u.isWrapped=this.isWrapped,u}getTrimmedLength(){for(let u=this.length-1;u>=0;--u)if(4194303&this._data[3*u+0])return u+(this._data[3*u+0]>>22);return 0}getNoBgTrimmedLength(){for(let u=this.length-1;u>=0;--u)if(4194303&this._data[3*u+0]||50331648&this._data[3*u+2])return u+(this._data[3*u+0]>>22);return 0}copyCellsFrom(u,f,d,g,y){const x=u._data;if(y)for(let E=g-1;E>=0;E--){for(let S=0;S<3;S++)this._data[3*(d+E)+S]=x[3*(f+E)+S];268435456&x[3*(f+E)+2]&&(this._extendedAttrs[d+E]=u._extendedAttrs[f+E])}else for(let E=0;E<g;E++){for(let S=0;S<3;S++)this._data[3*(d+E)+S]=x[3*(f+E)+S];268435456&x[3*(f+E)+2]&&(this._extendedAttrs[d+E]=u._extendedAttrs[f+E])}const k=Object.keys(u._combined);for(let E=0;E<k.length;E++){const S=parseInt(k[E],10);S>=f&&(this._combined[S-f+d]=u._combined[S])}}translateToString(u,f,d,g){f=f??0,d=d??this.length,u&&(d=Math.min(d,this.getTrimmedLength())),g&&(g.length=0);let y="";for(;f<d;){const x=this._data[3*f+0],k=2097151&x,E=2097152&x?this._combined[f]:k?(0,b.stringFromCodePoint)(k):m.WHITESPACE_CELL_CHAR;if(y+=E,g)for(let S=0;S<E.length;++S)g.push(f);f+=x>>22||1}return g&&g.push(f),y}}n.BufferLine=w},4841:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.getRangeLength=void 0,n.getRangeLength=function(o,l){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 l*(o.end.y-o.start.y)+(o.end.x-o.start.x+1)}},4634:(p,n)=>{function o(l,h,m){if(h===l.length-1)return l[h].getTrimmedLength();const b=!l[h].hasContent(m-1)&&l[h].getWidth(m-1)===1,_=l[h+1].getWidth(0)===2;return b&&_?m-1:m}Object.defineProperty(n,"__esModule",{value:!0}),n.getWrappedLineTrimmedLength=n.reflowSmallerGetNewLineLengths=n.reflowLargerApplyNewLayout=n.reflowLargerCreateNewLayout=n.reflowLargerGetLinesToRemove=void 0,n.reflowLargerGetLinesToRemove=function(l,h,m,b,_){const w=[];for(let v=0;v<l.length-1;v++){let u=v,f=l.get(++u);if(!f.isWrapped)continue;const d=[l.get(v)];for(;u<l.length&&f.isWrapped;)d.push(f),f=l.get(++u);if(b>=v&&b<u){v+=d.length-1;continue}let g=0,y=o(d,g,h),x=1,k=0;for(;x<d.length;){const S=o(d,x,h),C=S-k,R=m-y,$=Math.min(C,R);d[g].copyCellsFrom(d[x],k,y,$,!1),y+=$,y===m&&(g++,y=0),k+=$,k===S&&(x++,k=0),y===0&&g!==0&&d[g-1].getWidth(m-1)===2&&(d[g].copyCellsFrom(d[g-1],m-1,y++,1,!1),d[g-1].setCell(m-1,_))}d[g].replaceCells(y,m,_);let E=0;for(let S=d.length-1;S>0&&(S>g||d[S].getTrimmedLength()===0);S--)E++;E>0&&(w.push(v+d.length-E),w.push(E)),v+=d.length-1}return w},n.reflowLargerCreateNewLayout=function(l,h){const m=[];let b=0,_=h[b],w=0;for(let v=0;v<l.length;v++)if(_===v){const u=h[++b];l.onDeleteEmitter.fire({index:v-w,amount:u}),v+=u-1,w+=u,_=h[++b]}else m.push(v);return{layout:m,countRemoved:w}},n.reflowLargerApplyNewLayout=function(l,h){const m=[];for(let b=0;b<h.length;b++)m.push(l.get(h[b]));for(let b=0;b<m.length;b++)l.set(b,m[b]);l.length=h.length},n.reflowSmallerGetNewLineLengths=function(l,h,m){const b=[],_=l.map(((f,d)=>o(l,d,h))).reduce(((f,d)=>f+d));let w=0,v=0,u=0;for(;u<_;){if(_-u<m){b.push(_-u);break}w+=m;const f=o(l,v,h);w>f&&(w-=f,v++);const d=l[v].getWidth(w-1)===2;d&&w--;const g=d?m-1:m;b.push(g),u+=g}return b},n.getWrappedLineTrimmedLength=o},5295:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.BufferSet=void 0;const l=o(8460),h=o(844),m=o(9092);class b extends h.Disposable{constructor(w,v){super(),this._optionsService=w,this._bufferService=v,this._onBufferActivate=this.register(new l.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 m.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new m.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(w){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(w),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(w,v){this._normal.resize(w,v),this._alt.resize(w,v),this.setupTabStops(w)}setupTabStops(w){this._normal.setupTabStops(w),this._alt.setupTabStops(w)}}n.BufferSet=b},511:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.CellData=void 0;const l=o(482),h=o(643),m=o(3734);class b extends m.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new m.ExtendedAttrs,this.combinedData=""}static fromCharData(w){const v=new b;return v.setFromCharData(w),v}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,l.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(w){this.fg=w[h.CHAR_DATA_ATTR_INDEX],this.bg=0;let v=!1;if(w[h.CHAR_DATA_CHAR_INDEX].length>2)v=!0;else if(w[h.CHAR_DATA_CHAR_INDEX].length===2){const u=w[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=u&&u<=56319){const f=w[h.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=f&&f<=57343?this.content=1024*(u-55296)+f-56320+65536|w[h.CHAR_DATA_WIDTH_INDEX]<<22:v=!0}else v=!0}else this.content=w[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|w[h.CHAR_DATA_WIDTH_INDEX]<<22;v&&(this.combinedData=w[h.CHAR_DATA_CHAR_INDEX],this.content=2097152|w[h.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}n.CellData=b},643:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.WHITESPACE_CELL_CODE=n.WHITESPACE_CELL_WIDTH=n.WHITESPACE_CELL_CHAR=n.NULL_CELL_CODE=n.NULL_CELL_WIDTH=n.NULL_CELL_CHAR=n.CHAR_DATA_CODE_INDEX=n.CHAR_DATA_WIDTH_INDEX=n.CHAR_DATA_CHAR_INDEX=n.CHAR_DATA_ATTR_INDEX=n.DEFAULT_EXT=n.DEFAULT_ATTR=n.DEFAULT_COLOR=void 0,n.DEFAULT_COLOR=0,n.DEFAULT_ATTR=256|n.DEFAULT_COLOR<<9,n.DEFAULT_EXT=0,n.CHAR_DATA_ATTR_INDEX=0,n.CHAR_DATA_CHAR_INDEX=1,n.CHAR_DATA_WIDTH_INDEX=2,n.CHAR_DATA_CODE_INDEX=3,n.NULL_CELL_CHAR="",n.NULL_CELL_WIDTH=1,n.NULL_CELL_CODE=0,n.WHITESPACE_CELL_CHAR=" ",n.WHITESPACE_CELL_WIDTH=1,n.WHITESPACE_CELL_CODE=32},4863:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Marker=void 0;const l=o(8460),h=o(844);class m{get id(){return this._id}constructor(_){this.line=_,this.isDisposed=!1,this._disposables=[],this._id=m._nextId++,this._onDispose=this.register(new l.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,h.disposeArray)(this._disposables),this._disposables.length=0)}register(_){return this._disposables.push(_),_}}n.Marker=m,m._nextId=1},7116:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.DEFAULT_CHARSET=n.CHARSETS=void 0,n.CHARSETS={},n.DEFAULT_CHARSET=n.CHARSETS.B,n.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:"≥","{":"π","|":"≠","}":"£","~":"·"},n.CHARSETS.A={"#":"£"},n.CHARSETS.B=void 0,n.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},n.CHARSETS.C=n.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},n.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},n.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},n.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},n.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},n.CHARSETS.E=n.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},n.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},n.CHARSETS.H=n.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},n.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(p,n)=>{var o,l,h;Object.defineProperty(n,"__esModule",{value:!0}),n.C1_ESCAPED=n.C1=n.C0=void 0,(function(m){m.NUL="\0",m.SOH="",m.STX="",m.ETX="",m.EOT="",m.ENQ="",m.ACK="",m.BEL="\x07",m.BS="\b",m.HT=" ",m.LF=`
472
+ `,m.VT="\v",m.FF="\f",m.CR="\r",m.SO="",m.SI="",m.DLE="",m.DC1="",m.DC2="",m.DC3="",m.DC4="",m.NAK="",m.SYN="",m.ETB="",m.CAN="",m.EM="",m.SUB="",m.ESC="\x1B",m.FS="",m.GS="",m.RS="",m.US="",m.SP=" ",m.DEL=""})(o||(n.C0=o={})),(function(m){m.PAD="€",m.HOP="",m.BPH="‚",m.NBH="ƒ",m.IND="„",m.NEL="…",m.SSA="†",m.ESA="‡",m.HTS="ˆ",m.HTJ="‰",m.VTS="Š",m.PLD="‹",m.PLU="Œ",m.RI="",m.SS2="Ž",m.SS3="",m.DCS="",m.PU1="‘",m.PU2="’",m.STS="“",m.CCH="”",m.MW="•",m.SPA="–",m.EPA="—",m.SOS="˜",m.SGCI="™",m.SCI="š",m.CSI="›",m.ST="œ",m.OSC="",m.PM="ž",m.APC="Ÿ"})(l||(n.C1=l={})),(function(m){m.ST=`${o.ESC}\\`})(h||(n.C1_ESCAPED=h={}))},7399:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.evaluateKeyboardEvent=void 0;const l=o(2584),h={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:["'",'"']};n.evaluateKeyboardEvent=function(m,b,_,w){const v={type:0,cancel:!1,key:void 0},u=(m.shiftKey?1:0)|(m.altKey?2:0)|(m.ctrlKey?4:0)|(m.metaKey?8:0);switch(m.keyCode){case 0:m.key==="UIKeyInputUpArrow"?v.key=b?l.C0.ESC+"OA":l.C0.ESC+"[A":m.key==="UIKeyInputLeftArrow"?v.key=b?l.C0.ESC+"OD":l.C0.ESC+"[D":m.key==="UIKeyInputRightArrow"?v.key=b?l.C0.ESC+"OC":l.C0.ESC+"[C":m.key==="UIKeyInputDownArrow"&&(v.key=b?l.C0.ESC+"OB":l.C0.ESC+"[B");break;case 8:v.key=m.ctrlKey?"\b":l.C0.DEL,m.altKey&&(v.key=l.C0.ESC+v.key);break;case 9:if(m.shiftKey){v.key=l.C0.ESC+"[Z";break}v.key=l.C0.HT,v.cancel=!0;break;case 13:v.key=m.altKey?l.C0.ESC+l.C0.CR:l.C0.CR,v.cancel=!0;break;case 27:v.key=l.C0.ESC,m.altKey&&(v.key=l.C0.ESC+l.C0.ESC),v.cancel=!0;break;case 37:if(m.metaKey)break;u?(v.key=l.C0.ESC+"[1;"+(u+1)+"D",v.key===l.C0.ESC+"[1;3D"&&(v.key=l.C0.ESC+(_?"b":"[1;5D"))):v.key=b?l.C0.ESC+"OD":l.C0.ESC+"[D";break;case 39:if(m.metaKey)break;u?(v.key=l.C0.ESC+"[1;"+(u+1)+"C",v.key===l.C0.ESC+"[1;3C"&&(v.key=l.C0.ESC+(_?"f":"[1;5C"))):v.key=b?l.C0.ESC+"OC":l.C0.ESC+"[C";break;case 38:if(m.metaKey)break;u?(v.key=l.C0.ESC+"[1;"+(u+1)+"A",_||v.key!==l.C0.ESC+"[1;3A"||(v.key=l.C0.ESC+"[1;5A")):v.key=b?l.C0.ESC+"OA":l.C0.ESC+"[A";break;case 40:if(m.metaKey)break;u?(v.key=l.C0.ESC+"[1;"+(u+1)+"B",_||v.key!==l.C0.ESC+"[1;3B"||(v.key=l.C0.ESC+"[1;5B")):v.key=b?l.C0.ESC+"OB":l.C0.ESC+"[B";break;case 45:m.shiftKey||m.ctrlKey||(v.key=l.C0.ESC+"[2~");break;case 46:v.key=u?l.C0.ESC+"[3;"+(u+1)+"~":l.C0.ESC+"[3~";break;case 36:v.key=u?l.C0.ESC+"[1;"+(u+1)+"H":b?l.C0.ESC+"OH":l.C0.ESC+"[H";break;case 35:v.key=u?l.C0.ESC+"[1;"+(u+1)+"F":b?l.C0.ESC+"OF":l.C0.ESC+"[F";break;case 33:m.shiftKey?v.type=2:m.ctrlKey?v.key=l.C0.ESC+"[5;"+(u+1)+"~":v.key=l.C0.ESC+"[5~";break;case 34:m.shiftKey?v.type=3:m.ctrlKey?v.key=l.C0.ESC+"[6;"+(u+1)+"~":v.key=l.C0.ESC+"[6~";break;case 112:v.key=u?l.C0.ESC+"[1;"+(u+1)+"P":l.C0.ESC+"OP";break;case 113:v.key=u?l.C0.ESC+"[1;"+(u+1)+"Q":l.C0.ESC+"OQ";break;case 114:v.key=u?l.C0.ESC+"[1;"+(u+1)+"R":l.C0.ESC+"OR";break;case 115:v.key=u?l.C0.ESC+"[1;"+(u+1)+"S":l.C0.ESC+"OS";break;case 116:v.key=u?l.C0.ESC+"[15;"+(u+1)+"~":l.C0.ESC+"[15~";break;case 117:v.key=u?l.C0.ESC+"[17;"+(u+1)+"~":l.C0.ESC+"[17~";break;case 118:v.key=u?l.C0.ESC+"[18;"+(u+1)+"~":l.C0.ESC+"[18~";break;case 119:v.key=u?l.C0.ESC+"[19;"+(u+1)+"~":l.C0.ESC+"[19~";break;case 120:v.key=u?l.C0.ESC+"[20;"+(u+1)+"~":l.C0.ESC+"[20~";break;case 121:v.key=u?l.C0.ESC+"[21;"+(u+1)+"~":l.C0.ESC+"[21~";break;case 122:v.key=u?l.C0.ESC+"[23;"+(u+1)+"~":l.C0.ESC+"[23~";break;case 123:v.key=u?l.C0.ESC+"[24;"+(u+1)+"~":l.C0.ESC+"[24~";break;default:if(!m.ctrlKey||m.shiftKey||m.altKey||m.metaKey)if(_&&!w||!m.altKey||m.metaKey)!_||m.altKey||m.ctrlKey||m.shiftKey||!m.metaKey?m.key&&!m.ctrlKey&&!m.altKey&&!m.metaKey&&m.keyCode>=48&&m.key.length===1?v.key=m.key:m.key&&m.ctrlKey&&(m.key==="_"&&(v.key=l.C0.US),m.key==="@"&&(v.key=l.C0.NUL)):m.keyCode===65&&(v.type=1);else{const f=h[m.keyCode],d=f==null?void 0:f[m.shiftKey?1:0];if(d)v.key=l.C0.ESC+d;else if(m.keyCode>=65&&m.keyCode<=90){const g=m.ctrlKey?m.keyCode-64:m.keyCode+32;let y=String.fromCharCode(g);m.shiftKey&&(y=y.toUpperCase()),v.key=l.C0.ESC+y}else if(m.keyCode===32)v.key=l.C0.ESC+(m.ctrlKey?l.C0.NUL:" ");else if(m.key==="Dead"&&m.code.startsWith("Key")){let g=m.code.slice(3,4);m.shiftKey||(g=g.toLowerCase()),v.key=l.C0.ESC+g,v.cancel=!0}}else m.keyCode>=65&&m.keyCode<=90?v.key=String.fromCharCode(m.keyCode-64):m.keyCode===32?v.key=l.C0.NUL:m.keyCode>=51&&m.keyCode<=55?v.key=String.fromCharCode(m.keyCode-51+27):m.keyCode===56?v.key=l.C0.DEL:m.keyCode===219?v.key=l.C0.ESC:m.keyCode===220?v.key=l.C0.FS:m.keyCode===221&&(v.key=l.C0.GS)}return v}},482:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Utf8ToUtf32=n.StringToUtf32=n.utf32ToString=n.stringFromCodePoint=void 0,n.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},n.utf32ToString=function(o,l=0,h=o.length){let m="";for(let b=l;b<h;++b){let _=o[b];_>65535?(_-=65536,m+=String.fromCharCode(55296+(_>>10))+String.fromCharCode(_%1024+56320)):m+=String.fromCharCode(_)}return m},n.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(o,l){const h=o.length;if(!h)return 0;let m=0,b=0;if(this._interim){const _=o.charCodeAt(b++);56320<=_&&_<=57343?l[m++]=1024*(this._interim-55296)+_-56320+65536:(l[m++]=this._interim,l[m++]=_),this._interim=0}for(let _=b;_<h;++_){const w=o.charCodeAt(_);if(55296<=w&&w<=56319){if(++_>=h)return this._interim=w,m;const v=o.charCodeAt(_);56320<=v&&v<=57343?l[m++]=1024*(w-55296)+v-56320+65536:(l[m++]=w,l[m++]=v)}else w!==65279&&(l[m++]=w)}return m}},n.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(o,l){const h=o.length;if(!h)return 0;let m,b,_,w,v=0,u=0,f=0;if(this.interim[0]){let y=!1,x=this.interim[0];x&=(224&x)==192?31:(240&x)==224?15:7;let k,E=0;for(;(k=63&this.interim[++E])&&E<4;)x<<=6,x|=k;const S=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,C=S-E;for(;f<C;){if(f>=h)return 0;if(k=o[f++],(192&k)!=128){f--,y=!0;break}this.interim[E++]=k,x<<=6,x|=63&k}y||(S===2?x<128?f--:l[v++]=x:S===3?x<2048||x>=55296&&x<=57343||x===65279||(l[v++]=x):x<65536||x>1114111||(l[v++]=x)),this.interim.fill(0)}const d=h-4;let g=f;for(;g<h;){for(;!(!(g<d)||128&(m=o[g])||128&(b=o[g+1])||128&(_=o[g+2])||128&(w=o[g+3]));)l[v++]=m,l[v++]=b,l[v++]=_,l[v++]=w,g+=4;if(m=o[g++],m<128)l[v++]=m;else if((224&m)==192){if(g>=h)return this.interim[0]=m,v;if(b=o[g++],(192&b)!=128){g--;continue}if(u=(31&m)<<6|63&b,u<128){g--;continue}l[v++]=u}else if((240&m)==224){if(g>=h)return this.interim[0]=m,v;if(b=o[g++],(192&b)!=128){g--;continue}if(g>=h)return this.interim[0]=m,this.interim[1]=b,v;if(_=o[g++],(192&_)!=128){g--;continue}if(u=(15&m)<<12|(63&b)<<6|63&_,u<2048||u>=55296&&u<=57343||u===65279)continue;l[v++]=u}else if((248&m)==240){if(g>=h)return this.interim[0]=m,v;if(b=o[g++],(192&b)!=128){g--;continue}if(g>=h)return this.interim[0]=m,this.interim[1]=b,v;if(_=o[g++],(192&_)!=128){g--;continue}if(g>=h)return this.interim[0]=m,this.interim[1]=b,this.interim[2]=_,v;if(w=o[g++],(192&w)!=128){g--;continue}if(u=(7&m)<<18|(63&b)<<12|(63&_)<<6|63&w,u<65536||u>1114111)continue;l[v++]=u}}return v}}},225:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.UnicodeV6=void 0;const l=o(1480),h=[[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]],m=[[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;n.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 _=0;_<h.length;++_)b.fill(0,h[_][0],h[_][1]+1)}}wcwidth(_){return _<32?0:_<127?1:_<65536?b[_]:(function(w,v){let u,f=0,d=v.length-1;if(w<v[0][0]||w>v[d][1])return!1;for(;d>=f;)if(u=f+d>>1,w>v[u][1])f=u+1;else{if(!(w<v[u][0]))return!0;d=u-1}return!1})(_,m)?0:_>=131072&&_<=196605||_>=196608&&_<=262141?2:1}charProperties(_,w){let v=this.wcwidth(_),u=v===0&&w!==0;if(u){const f=l.UnicodeService.extractWidth(w);f===0?u=!1:f>v&&(v=f)}return l.UnicodeService.createPropertyValue(0,v,u)}}},5981:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.WriteBuffer=void 0;const l=o(8460),h=o(844);class m extends h.Disposable{constructor(_){super(),this._action=_,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(_,w){if(w!==void 0&&this._syncCalls>w)return void(this._syncCalls=0);if(this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let v;for(this._isSyncWriting=!0;v=this._writeBuffer.shift();){this._action(v);const u=this._callbacks.shift();u&&u()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(_,w){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+=_.length,this._writeBuffer.push(_),this._callbacks.push(w),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(w)}_innerWrite(_=0,w=!0){const v=_||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const u=this._writeBuffer[this._bufferOffset],f=this._action(u,w);if(f){const g=y=>Date.now()-v>=12?setTimeout((()=>this._innerWrite(0,y))):this._innerWrite(v,y);return void f.catch((y=>(queueMicrotask((()=>{throw y})),Promise.resolve(!1)))).then(g)}const d=this._callbacks[this._bufferOffset];if(d&&d(),this._bufferOffset++,this._pendingData-=u.length,Date.now()-v>=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()}}n.WriteBuffer=m},5941:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.toRgbString=n.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})$/,l=/^[\da-f]+$/;function h(m,b){const _=m.toString(16),w=_.length<2?"0"+_:_;switch(b){case 4:return _[0];case 8:return w;case 12:return(w+w).slice(0,3);default:return w+w}}n.parseColor=function(m){if(!m)return;let b=m.toLowerCase();if(b.indexOf("rgb:")===0){b=b.slice(4);const _=o.exec(b);if(_){const w=_[1]?15:_[4]?255:_[7]?4095:65535;return[Math.round(parseInt(_[1]||_[4]||_[7]||_[10],16)/w*255),Math.round(parseInt(_[2]||_[5]||_[8]||_[11],16)/w*255),Math.round(parseInt(_[3]||_[6]||_[9]||_[12],16)/w*255)]}}else if(b.indexOf("#")===0&&(b=b.slice(1),l.exec(b)&&[3,6,9,12].includes(b.length))){const _=b.length/3,w=[0,0,0];for(let v=0;v<3;++v){const u=parseInt(b.slice(_*v,_*v+_),16);w[v]=_===1?u<<4:_===2?u:_===3?u>>4:u>>8}return w}},n.toRgbString=function(m,b=16){const[_,w,v]=m;return`rgb:${h(_,b)}/${h(w,b)}/${h(v,b)}`}},5770:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.PAYLOAD_LIMIT=void 0,n.PAYLOAD_LIMIT=1e7},6351:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.DcsHandler=n.DcsParser=void 0;const l=o(482),h=o(8742),m=o(5770),b=[];n.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(w,v){this._handlers[w]===void 0&&(this._handlers[w]=[]);const u=this._handlers[w];return u.push(v),{dispose:()=>{const f=u.indexOf(v);f!==-1&&u.splice(f,1)}}}clearHandler(w){this._handlers[w]&&delete this._handlers[w]}setHandlerFallback(w){this._handlerFb=w}reset(){if(this._active.length)for(let w=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;w>=0;--w)this._active[w].unhook(!1);this._stack.paused=!1,this._active=b,this._ident=0}hook(w,v){if(this.reset(),this._ident=w,this._active=this._handlers[w]||b,this._active.length)for(let u=this._active.length-1;u>=0;u--)this._active[u].hook(v);else this._handlerFb(this._ident,"HOOK",v)}put(w,v,u){if(this._active.length)for(let f=this._active.length-1;f>=0;f--)this._active[f].put(w,v,u);else this._handlerFb(this._ident,"PUT",(0,l.utf32ToString)(w,v,u))}unhook(w,v=!0){if(this._active.length){let u=!1,f=this._active.length-1,d=!1;if(this._stack.paused&&(f=this._stack.loopPosition-1,u=v,d=this._stack.fallThrough,this._stack.paused=!1),!d&&u===!1){for(;f>=0&&(u=this._active[f].unhook(w),u!==!0);f--)if(u instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!1,u;f--}for(;f>=0;f--)if(u=this._active[f].unhook(!1),u instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!0,u}else this._handlerFb(this._ident,"UNHOOK",w);this._active=b,this._ident=0}};const _=new h.Params;_.addParam(0),n.DcsHandler=class{constructor(w){this._handler=w,this._data="",this._params=_,this._hitLimit=!1}hook(w){this._params=w.length>1||w.params[0]?w.clone():_,this._data="",this._hitLimit=!1}put(w,v,u){this._hitLimit||(this._data+=(0,l.utf32ToString)(w,v,u),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(w){let v=!1;if(this._hitLimit)v=!1;else if(w&&(v=this._handler(this._data,this._params),v instanceof Promise))return v.then((u=>(this._params=_,this._data="",this._hitLimit=!1,u)));return this._params=_,this._data="",this._hitLimit=!1,v}}},2015:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.EscapeSequenceParser=n.VT500_TRANSITION_TABLE=n.TransitionTable=void 0;const l=o(844),h=o(8742),m=o(6242),b=o(6351);class _{constructor(f){this.table=new Uint8Array(f)}setDefault(f,d){this.table.fill(f<<4|d)}add(f,d,g,y){this.table[d<<8|f]=g<<4|y}addMany(f,d,g,y){for(let x=0;x<f.length;x++)this.table[d<<8|f[x]]=g<<4|y}}n.TransitionTable=_;const w=160;n.VT500_TRANSITION_TABLE=(function(){const u=new _(4095),f=Array.apply(null,Array(256)).map(((E,S)=>S)),d=(E,S)=>f.slice(E,S),g=d(32,127),y=d(0,24);y.push(25),y.push.apply(y,d(28,32));const x=d(0,14);let k;for(k in u.setDefault(1,0),u.addMany(g,0,2,0),x)u.addMany([24,26,153,154],k,3,0),u.addMany(d(128,144),k,3,0),u.addMany(d(144,152),k,3,0),u.add(156,k,0,0),u.add(27,k,11,1),u.add(157,k,4,8),u.addMany([152,158,159],k,0,7),u.add(155,k,11,3),u.add(144,k,11,9);return u.addMany(y,0,3,0),u.addMany(y,1,3,1),u.add(127,1,0,1),u.addMany(y,8,0,8),u.addMany(y,3,3,3),u.add(127,3,0,3),u.addMany(y,4,3,4),u.add(127,4,0,4),u.addMany(y,6,3,6),u.addMany(y,5,3,5),u.add(127,5,0,5),u.addMany(y,2,3,2),u.add(127,2,0,2),u.add(93,1,4,8),u.addMany(g,8,5,8),u.add(127,8,5,8),u.addMany([156,27,24,26,7],8,6,0),u.addMany(d(28,32),8,0,8),u.addMany([88,94,95],1,0,7),u.addMany(g,7,0,7),u.addMany(y,7,0,7),u.add(156,7,0,0),u.add(127,7,0,7),u.add(91,1,11,3),u.addMany(d(64,127),3,7,0),u.addMany(d(48,60),3,8,4),u.addMany([60,61,62,63],3,9,4),u.addMany(d(48,60),4,8,4),u.addMany(d(64,127),4,7,0),u.addMany([60,61,62,63],4,0,6),u.addMany(d(32,64),6,0,6),u.add(127,6,0,6),u.addMany(d(64,127),6,0,0),u.addMany(d(32,48),3,9,5),u.addMany(d(32,48),5,9,5),u.addMany(d(48,64),5,0,6),u.addMany(d(64,127),5,7,0),u.addMany(d(32,48),4,9,5),u.addMany(d(32,48),1,9,2),u.addMany(d(32,48),2,9,2),u.addMany(d(48,127),2,10,0),u.addMany(d(48,80),1,10,0),u.addMany(d(81,88),1,10,0),u.addMany([89,90,92],1,10,0),u.addMany(d(96,127),1,10,0),u.add(80,1,11,9),u.addMany(y,9,0,9),u.add(127,9,0,9),u.addMany(d(28,32),9,0,9),u.addMany(d(32,48),9,9,12),u.addMany(d(48,60),9,8,10),u.addMany([60,61,62,63],9,9,10),u.addMany(y,11,0,11),u.addMany(d(32,128),11,0,11),u.addMany(d(28,32),11,0,11),u.addMany(y,10,0,10),u.add(127,10,0,10),u.addMany(d(28,32),10,0,10),u.addMany(d(48,60),10,8,10),u.addMany([60,61,62,63],10,0,11),u.addMany(d(32,48),10,9,12),u.addMany(y,12,0,12),u.add(127,12,0,12),u.addMany(d(28,32),12,0,12),u.addMany(d(32,48),12,9,12),u.addMany(d(48,64),12,0,11),u.addMany(d(64,127),12,12,13),u.addMany(d(64,127),10,12,13),u.addMany(d(64,127),9,12,13),u.addMany(y,13,13,13),u.addMany(g,13,13,13),u.add(127,13,0,13),u.addMany([27,156,24,26],13,14,0),u.add(w,0,2,0),u.add(w,8,5,8),u.add(w,6,0,6),u.add(w,11,0,11),u.add(w,13,13,13),u})();class v extends l.Disposable{constructor(f=n.VT500_TRANSITION_TABLE){super(),this._transitions=f,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new h.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(d,g,y)=>{},this._executeHandlerFb=d=>{},this._csiHandlerFb=(d,g)=>{},this._escHandlerFb=d=>{},this._errorHandlerFb=d=>d,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,l.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new m.OscParser),this._dcsParser=this.register(new b.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(f,d=[64,126]){let g=0;if(f.prefix){if(f.prefix.length>1)throw new Error("only one byte as prefix supported");if(g=f.prefix.charCodeAt(0),g&&60>g||g>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(f.intermediates){if(f.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let x=0;x<f.intermediates.length;++x){const k=f.intermediates.charCodeAt(x);if(32>k||k>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");g<<=8,g|=k}}if(f.final.length!==1)throw new Error("final must be a single byte");const y=f.final.charCodeAt(0);if(d[0]>y||y>d[1])throw new Error(`final must be in range ${d[0]} .. ${d[1]}`);return g<<=8,g|=y,g}identToString(f){const d=[];for(;f;)d.push(String.fromCharCode(255&f)),f>>=8;return d.reverse().join("")}setPrintHandler(f){this._printHandler=f}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(f,d){const g=this._identifier(f,[48,126]);this._escHandlers[g]===void 0&&(this._escHandlers[g]=[]);const y=this._escHandlers[g];return y.push(d),{dispose:()=>{const x=y.indexOf(d);x!==-1&&y.splice(x,1)}}}clearEscHandler(f){this._escHandlers[this._identifier(f,[48,126])]&&delete this._escHandlers[this._identifier(f,[48,126])]}setEscHandlerFallback(f){this._escHandlerFb=f}setExecuteHandler(f,d){this._executeHandlers[f.charCodeAt(0)]=d}clearExecuteHandler(f){this._executeHandlers[f.charCodeAt(0)]&&delete this._executeHandlers[f.charCodeAt(0)]}setExecuteHandlerFallback(f){this._executeHandlerFb=f}registerCsiHandler(f,d){const g=this._identifier(f);this._csiHandlers[g]===void 0&&(this._csiHandlers[g]=[]);const y=this._csiHandlers[g];return y.push(d),{dispose:()=>{const x=y.indexOf(d);x!==-1&&y.splice(x,1)}}}clearCsiHandler(f){this._csiHandlers[this._identifier(f)]&&delete this._csiHandlers[this._identifier(f)]}setCsiHandlerFallback(f){this._csiHandlerFb=f}registerDcsHandler(f,d){return this._dcsParser.registerHandler(this._identifier(f),d)}clearDcsHandler(f){this._dcsParser.clearHandler(this._identifier(f))}setDcsHandlerFallback(f){this._dcsParser.setHandlerFallback(f)}registerOscHandler(f,d){return this._oscParser.registerHandler(f,d)}clearOscHandler(f){this._oscParser.clearHandler(f)}setOscHandlerFallback(f){this._oscParser.setHandlerFallback(f)}setErrorHandler(f){this._errorHandler=f}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(f,d,g,y,x){this._parseStack.state=f,this._parseStack.handlers=d,this._parseStack.handlerPos=g,this._parseStack.transition=y,this._parseStack.chunkPos=x}parse(f,d,g){let y,x=0,k=0,E=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,E=this._parseStack.chunkPos+1;else{if(g===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const S=this._parseStack.handlers;let C=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(g===!1&&C>-1){for(;C>=0&&(y=S[C](this._params),y!==!0);C--)if(y instanceof Promise)return this._parseStack.handlerPos=C,y}this._parseStack.handlers=[];break;case 4:if(g===!1&&C>-1){for(;C>=0&&(y=S[C](),y!==!0);C--)if(y instanceof Promise)return this._parseStack.handlerPos=C,y}this._parseStack.handlers=[];break;case 6:if(x=f[this._parseStack.chunkPos],y=this._dcsParser.unhook(x!==24&&x!==26,g),y)return y;x===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(x=f[this._parseStack.chunkPos],y=this._oscParser.end(x!==24&&x!==26,g),y)return y;x===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 S=E;S<d;++S){switch(x=f[S],k=this._transitions.table[this.currentState<<8|(x<160?x:w)],k>>4){case 2:for(let A=S+1;;++A){if(A>=d||(x=f[A])<32||x>126&&x<w){this._printHandler(f,S,A),S=A-1;break}if(++A>=d||(x=f[A])<32||x>126&&x<w){this._printHandler(f,S,A),S=A-1;break}if(++A>=d||(x=f[A])<32||x>126&&x<w){this._printHandler(f,S,A),S=A-1;break}if(++A>=d||(x=f[A])<32||x>126&&x<w){this._printHandler(f,S,A),S=A-1;break}}break;case 3:this._executeHandlers[x]?this._executeHandlers[x]():this._executeHandlerFb(x),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:S,code:x,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const C=this._csiHandlers[this._collect<<8|x];let R=C?C.length-1:-1;for(;R>=0&&(y=C[R](this._params),y!==!0);R--)if(y instanceof Promise)return this._preserveStack(3,C,R,k,S),y;R<0&&this._csiHandlerFb(this._collect<<8|x,this._params),this.precedingJoinState=0;break;case 8:do switch(x){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(x-48)}while(++S<d&&(x=f[S])>47&&x<60);S--;break;case 9:this._collect<<=8,this._collect|=x;break;case 10:const $=this._escHandlers[this._collect<<8|x];let D=$?$.length-1:-1;for(;D>=0&&(y=$[D](),y!==!0);D--)if(y instanceof Promise)return this._preserveStack(4,$,D,k,S),y;D<0&&this._escHandlerFb(this._collect<<8|x),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|x,this._params);break;case 13:for(let A=S+1;;++A)if(A>=d||(x=f[A])===24||x===26||x===27||x>127&&x<w){this._dcsParser.put(f,S,A),S=A-1;break}break;case 14:if(y=this._dcsParser.unhook(x!==24&&x!==26),y)return this._preserveStack(6,[],0,k,S),y;x===27&&(k|=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 A=S+1;;A++)if(A>=d||(x=f[A])<32||x>127&&x<w){this._oscParser.put(f,S,A),S=A-1;break}break;case 6:if(y=this._oscParser.end(x!==24&&x!==26),y)return this._preserveStack(5,[],0,k,S),y;x===27&&(k|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&k}}}n.EscapeSequenceParser=v},6242:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.OscHandler=n.OscParser=void 0;const l=o(5770),h=o(482),m=[];n.OscParser=class{constructor(){this._state=0,this._active=m,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(b,_){this._handlers[b]===void 0&&(this._handlers[b]=[]);const w=this._handlers[b];return w.push(_),{dispose:()=>{const v=w.indexOf(_);v!==-1&&w.splice(v,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=m}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=m,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||m,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,_,w){if(this._active.length)for(let v=this._active.length-1;v>=0;v--)this._active[v].put(b,_,w);else this._handlerFb(this._id,"PUT",(0,h.utf32ToString)(b,_,w))}start(){this.reset(),this._state=1}put(b,_,w){if(this._state!==3){if(this._state===1)for(;_<w;){const v=b[_++];if(v===59){this._state=2,this._start();break}if(v<48||57<v)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+v-48}this._state===2&&w-_>0&&this._put(b,_,w)}}end(b,_=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let w=!1,v=this._active.length-1,u=!1;if(this._stack.paused&&(v=this._stack.loopPosition-1,w=_,u=this._stack.fallThrough,this._stack.paused=!1),!u&&w===!1){for(;v>=0&&(w=this._active[v].end(b),w!==!0);v--)if(w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!1,w;v--}for(;v>=0;v--)if(w=this._active[v].end(!1),w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!0,w}else this._handlerFb(this._id,"END",b);this._active=m,this._id=-1,this._state=0}}},n.OscHandler=class{constructor(b){this._handler=b,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(b,_,w){this._hitLimit||(this._data+=(0,h.utf32ToString)(b,_,w),this._data.length>l.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(b){let _=!1;if(this._hitLimit)_=!1;else if(b&&(_=this._handler(this._data),_ instanceof Promise))return _.then((w=>(this._data="",this._hitLimit=!1,w)));return this._data="",this._hitLimit=!1,_}}},8742:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.Params=void 0;const o=2147483647;class l{static fromArray(m){const b=new l;if(!m.length)return b;for(let _=Array.isArray(m[0])?1:0;_<m.length;++_){const w=m[_];if(Array.isArray(w))for(let v=0;v<w.length;++v)b.addSubParam(w[v]);else b.addParam(w)}return b}constructor(m=32,b=32){if(this.maxLength=m,this.maxSubParamsLength=b,b>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(m),this.length=0,this._subParams=new Int32Array(b),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(m),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const m=new l(this.maxLength,this.maxSubParamsLength);return m.params.set(this.params),m.length=this.length,m._subParams.set(this._subParams),m._subParamsLength=this._subParamsLength,m._subParamsIdx.set(this._subParamsIdx),m._rejectDigits=this._rejectDigits,m._rejectSubDigits=this._rejectSubDigits,m._digitIsSub=this._digitIsSub,m}toArray(){const m=[];for(let b=0;b<this.length;++b){m.push(this.params[b]);const _=this._subParamsIdx[b]>>8,w=255&this._subParamsIdx[b];w-_>0&&m.push(Array.prototype.slice.call(this._subParams,_,w))}return m}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(m){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=m>o?o:m}}addSubParam(m){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=m>o?o:m,this._subParamsIdx[this.length-1]++}}hasSubParams(m){return(255&this._subParamsIdx[m])-(this._subParamsIdx[m]>>8)>0}getSubParams(m){const b=this._subParamsIdx[m]>>8,_=255&this._subParamsIdx[m];return _-b>0?this._subParams.subarray(b,_):null}getSubParamsAll(){const m={};for(let b=0;b<this.length;++b){const _=this._subParamsIdx[b]>>8,w=255&this._subParamsIdx[b];w-_>0&&(m[b]=this._subParams.slice(_,w))}return m}addDigit(m){let b;if(this._rejectDigits||!(b=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const _=this._digitIsSub?this._subParams:this.params,w=_[b-1];_[b-1]=~w?Math.min(10*w+m,o):m}}n.Params=l},5741:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.AddonManager=void 0,n.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()}loadAddon(o,l){const h={instance:l,dispose:l.dispose,isDisposed:!1};this._addons.push(h),l.dispose=()=>this._wrappedAddonDispose(h),l.activate(o)}_wrappedAddonDispose(o){if(o.isDisposed)return;let l=-1;for(let h=0;h<this._addons.length;h++)if(this._addons[h]===o){l=h;break}if(l===-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(l,1)}}},8771:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.BufferApiView=void 0;const l=o(3785),h=o(511);n.BufferApiView=class{constructor(m,b){this._buffer=m,this.type=b}init(m){return this._buffer=m,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(m){const b=this._buffer.lines.get(m);if(b)return new l.BufferLineApiView(b)}getNullCell(){return new h.CellData}}},3785:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.BufferLineApiView=void 0;const l=o(511);n.BufferLineApiView=class{constructor(h){this._line=h}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(h,m){if(!(h<0||h>=this._line.length))return m?(this._line.loadCell(h,m),m):this._line.loadCell(h,new l.CellData)}translateToString(h,m,b){return this._line.translateToString(h,m,b)}}},8285:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.BufferNamespaceApi=void 0;const l=o(8771),h=o(8460),m=o(844);class b extends m.Disposable{constructor(w){super(),this._core=w,this._onBufferChange=this.register(new h.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new l.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new l.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)}}n.BufferNamespaceApi=b},7975:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.ParserApi=void 0,n.ParserApi=class{constructor(o){this._core=o}registerCsiHandler(o,l){return this._core.registerCsiHandler(o,(h=>l(h.toArray())))}addCsiHandler(o,l){return this.registerCsiHandler(o,l)}registerDcsHandler(o,l){return this._core.registerDcsHandler(o,((h,m)=>l(h,m.toArray())))}addDcsHandler(o,l){return this.registerDcsHandler(o,l)}registerEscHandler(o,l){return this._core.registerEscHandler(o,l)}addEscHandler(o,l){return this.registerEscHandler(o,l)}registerOscHandler(o,l){return this._core.registerOscHandler(o,l)}addOscHandler(o,l){return this.registerOscHandler(o,l)}}},7090:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.UnicodeApi=void 0,n.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(p,n,o){var l=this&&this.__decorate||function(u,f,d,g){var y,x=arguments.length,k=x<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(u,f,d,g);else for(var E=u.length-1;E>=0;E--)(y=u[E])&&(k=(x<3?y(k):x>3?y(f,d,k):y(f,d))||k);return x>3&&k&&Object.defineProperty(f,d,k),k},h=this&&this.__param||function(u,f){return function(d,g){f(d,g,u)}};Object.defineProperty(n,"__esModule",{value:!0}),n.BufferService=n.MINIMUM_ROWS=n.MINIMUM_COLS=void 0;const m=o(8460),b=o(844),_=o(5295),w=o(2585);n.MINIMUM_COLS=2,n.MINIMUM_ROWS=1;let v=n.BufferService=class extends b.Disposable{get buffer(){return this.buffers.active}constructor(u){super(),this.isUserScrolling=!1,this._onResize=this.register(new m.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new m.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(u.rawOptions.cols||0,n.MINIMUM_COLS),this.rows=Math.max(u.rawOptions.rows||0,n.MINIMUM_ROWS),this.buffers=this.register(new _.BufferSet(u,this))}resize(u,f){this.cols=u,this.rows=f,this.buffers.resize(u,f),this._onResize.fire({cols:u,rows:f})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(u,f=!1){const d=this.buffer;let g;g=this._cachedBlankLine,g&&g.length===this.cols&&g.getFg(0)===u.fg&&g.getBg(0)===u.bg||(g=d.getBlankLine(u,f),this._cachedBlankLine=g),g.isWrapped=f;const y=d.ybase+d.scrollTop,x=d.ybase+d.scrollBottom;if(d.scrollTop===0){const k=d.lines.isFull;x===d.lines.length-1?k?d.lines.recycle().copyFrom(g):d.lines.push(g.clone()):d.lines.splice(x+1,0,g.clone()),k?this.isUserScrolling&&(d.ydisp=Math.max(d.ydisp-1,0)):(d.ybase++,this.isUserScrolling||d.ydisp++)}else{const k=x-y+1;d.lines.shiftElements(y+1,k-1,-1),d.lines.set(x,g.clone())}this.isUserScrolling||(d.ydisp=d.ybase),this._onScroll.fire(d.ydisp)}scrollLines(u,f,d){const g=this.buffer;if(u<0){if(g.ydisp===0)return;this.isUserScrolling=!0}else u+g.ydisp>=g.ybase&&(this.isUserScrolling=!1);const y=g.ydisp;g.ydisp=Math.max(Math.min(g.ydisp+u,g.ybase),0),y!==g.ydisp&&(f||this._onScroll.fire(g.ydisp))}};n.BufferService=v=l([h(0,w.IOptionsService)],v)},7994:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.CharsetService=void 0,n.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,l){this._charsets[o]=l,this.glevel===o&&(this.charset=l)}}},1753:function(p,n,o){var l=this&&this.__decorate||function(g,y,x,k){var E,S=arguments.length,C=S<3?y:k===null?k=Object.getOwnPropertyDescriptor(y,x):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(g,y,x,k);else for(var R=g.length-1;R>=0;R--)(E=g[R])&&(C=(S<3?E(C):S>3?E(y,x,C):E(y,x))||C);return S>3&&C&&Object.defineProperty(y,x,C),C},h=this&&this.__param||function(g,y){return function(x,k){y(x,k,g)}};Object.defineProperty(n,"__esModule",{value:!0}),n.CoreMouseService=void 0;const m=o(2585),b=o(8460),_=o(844),w={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:g=>g.button!==4&&g.action===1&&(g.ctrl=!1,g.alt=!1,g.shift=!1,!0)},VT200:{events:19,restrict:g=>g.action!==32},DRAG:{events:23,restrict:g=>g.action!==32||g.button!==3},ANY:{events:31,restrict:g=>!0}};function v(g,y){let x=(g.ctrl?16:0)|(g.shift?4:0)|(g.alt?8:0);return g.button===4?(x|=64,x|=g.action):(x|=3&g.button,4&g.button&&(x|=64),8&g.button&&(x|=128),g.action===32?x|=32:g.action!==0||y||(x|=3)),x}const u=String.fromCharCode,f={DEFAULT:g=>{const y=[v(g,!1)+32,g.col+32,g.row+32];return y[0]>255||y[1]>255||y[2]>255?"":`\x1B[M${u(y[0])}${u(y[1])}${u(y[2])}`},SGR:g=>{const y=g.action===0&&g.button!==4?"m":"M";return`\x1B[<${v(g,!0)};${g.col};${g.row}${y}`},SGR_PIXELS:g=>{const y=g.action===0&&g.button!==4?"m":"M";return`\x1B[<${v(g,!0)};${g.x};${g.y}${y}`}};let d=n.CoreMouseService=class extends _.Disposable{constructor(g,y){super(),this._bufferService=g,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 x of Object.keys(w))this.addProtocol(x,w[x]);for(const x of Object.keys(f))this.addEncoding(x,f[x]);this.reset()}addProtocol(g,y){this._protocols[g]=y}addEncoding(g,y){this._encodings[g]=y}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(g){if(!this._protocols[g])throw new Error(`unknown protocol "${g}"`);this._activeProtocol=g,this._onProtocolChange.fire(this._protocols[g].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(g){if(!this._encodings[g])throw new Error(`unknown encoding "${g}"`);this._activeEncoding=g}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(g){if(g.col<0||g.col>=this._bufferService.cols||g.row<0||g.row>=this._bufferService.rows||g.button===4&&g.action===32||g.button===3&&g.action!==32||g.button!==4&&(g.action===2||g.action===3)||(g.col++,g.row++,g.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,g,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(g))return!1;const y=this._encodings[this._activeEncoding](g);return y&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(y):this._coreService.triggerDataEvent(y,!0)),this._lastEvent=g,!0}explainEvents(g){return{down:!!(1&g),up:!!(2&g),drag:!!(4&g),move:!!(8&g),wheel:!!(16&g)}}_equalEvents(g,y,x){if(x){if(g.x!==y.x||g.y!==y.y)return!1}else if(g.col!==y.col||g.row!==y.row)return!1;return g.button===y.button&&g.action===y.action&&g.ctrl===y.ctrl&&g.alt===y.alt&&g.shift===y.shift}};n.CoreMouseService=d=l([h(0,m.IBufferService),h(1,m.ICoreService)],d)},6975:function(p,n,o){var l=this&&this.__decorate||function(d,g,y,x){var k,E=arguments.length,S=E<3?g:x===null?x=Object.getOwnPropertyDescriptor(g,y):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(d,g,y,x);else for(var C=d.length-1;C>=0;C--)(k=d[C])&&(S=(E<3?k(S):E>3?k(g,y,S):k(g,y))||S);return E>3&&S&&Object.defineProperty(g,y,S),S},h=this&&this.__param||function(d,g){return function(y,x){g(y,x,d)}};Object.defineProperty(n,"__esModule",{value:!0}),n.CoreService=void 0;const m=o(1439),b=o(8460),_=o(844),w=o(2585),v=Object.freeze({insertMode:!1}),u=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let f=n.CoreService=class extends _.Disposable{constructor(d,g,y){super(),this._bufferService=d,this._logService=g,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,m.clone)(v),this.decPrivateModes=(0,m.clone)(u)}reset(){this.modes=(0,m.clone)(v),this.decPrivateModes=(0,m.clone)(u)}triggerDataEvent(d,g=!1){if(this._optionsService.rawOptions.disableStdin)return;const y=this._bufferService.buffer;g&&this._optionsService.rawOptions.scrollOnUserInput&&y.ybase!==y.ydisp&&this._onRequestScrollToBottom.fire(),g&&this._onUserInput.fire(),this._logService.debug(`sending data "${d}"`,(()=>d.split("").map((x=>x.charCodeAt(0))))),this._onData.fire(d)}triggerBinaryEvent(d){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${d}"`,(()=>d.split("").map((g=>g.charCodeAt(0))))),this._onBinary.fire(d))}};n.CoreService=f=l([h(0,w.IBufferService),h(1,w.ILogService),h(2,w.IOptionsService)],f)},9074:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.DecorationService=void 0;const l=o(8055),h=o(8460),m=o(844),b=o(6106);let _=0,w=0;class v extends m.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new b.SortedList((d=>d==null?void 0:d.marker.line)),this._onDecorationRegistered=this.register(new h.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new h.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,m.toDisposable)((()=>this.reset())))}registerDecoration(d){if(d.marker.isDisposed)return;const g=new u(d);if(g){const y=g.marker.onDispose((()=>g.dispose()));g.onDispose((()=>{g&&(this._decorations.delete(g)&&this._onDecorationRemoved.fire(g),y.dispose())})),this._decorations.insert(g),this._onDecorationRegistered.fire(g)}return g}reset(){for(const d of this._decorations.values())d.dispose();this._decorations.clear()}*getDecorationsAtCell(d,g,y){let x=0,k=0;for(const E of this._decorations.getKeyIterator(g))x=E.options.x??0,k=x+(E.options.width??1),d>=x&&d<k&&(!y||(E.options.layer??"bottom")===y)&&(yield E)}forEachDecorationAtCell(d,g,y,x){this._decorations.forEachByKey(g,(k=>{_=k.options.x??0,w=_+(k.options.width??1),d>=_&&d<w&&(!y||(k.options.layer??"bottom")===y)&&x(k)}))}}n.DecorationService=v;class u extends m.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=l.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=l.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(d){super(),this.options=d,this.onRenderEmitter=this.register(new h.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new h.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=d.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.InstantiationService=n.ServiceCollection=void 0;const l=o(2585),h=o(8343);class m{constructor(..._){this._entries=new Map;for(const[w,v]of _)this.set(w,v)}set(_,w){const v=this._entries.get(_);return this._entries.set(_,w),v}forEach(_){for(const[w,v]of this._entries.entries())_(w,v)}has(_){return this._entries.has(_)}get(_){return this._entries.get(_)}}n.ServiceCollection=m,n.InstantiationService=class{constructor(){this._services=new m,this._services.set(l.IInstantiationService,this)}setService(b,_){this._services.set(b,_)}getService(b){return this._services.get(b)}createInstance(b,..._){const w=(0,h.getServiceDependencies)(b).sort(((f,d)=>f.index-d.index)),v=[];for(const f of w){const d=this._services.get(f.id);if(!d)throw new Error(`[createInstance] ${b.name} depends on UNKNOWN service ${f.id}.`);v.push(d)}const u=w.length>0?w[0].index:_.length;if(_.length!==u)throw new Error(`[createInstance] First service dependency of ${b.name} at position ${u+1} conflicts with ${_.length} static arguments`);return new b(..._,...v)}}},7866:function(p,n,o){var l=this&&this.__decorate||function(u,f,d,g){var y,x=arguments.length,k=x<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(u,f,d,g);else for(var E=u.length-1;E>=0;E--)(y=u[E])&&(k=(x<3?y(k):x>3?y(f,d,k):y(f,d))||k);return x>3&&k&&Object.defineProperty(f,d,k),k},h=this&&this.__param||function(u,f){return function(d,g){f(d,g,u)}};Object.defineProperty(n,"__esModule",{value:!0}),n.traceCall=n.setTraceLogger=n.LogService=void 0;const m=o(844),b=o(2585),_={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 w,v=n.LogService=class extends m.Disposable{get logLevel(){return this._logLevel}constructor(u){super(),this._optionsService=u,this._logLevel=b.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),w=this}_updateLogLevel(){this._logLevel=_[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(u){for(let f=0;f<u.length;f++)typeof u[f]=="function"&&(u[f]=u[f]())}_log(u,f,d){this._evalLazyOptionalParams(d),u.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+f,...d)}trace(u,...f){var d;this._logLevel<=b.LogLevelEnum.TRACE&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.trace.bind(this._optionsService.options.logger))??console.log,u,f)}debug(u,...f){var d;this._logLevel<=b.LogLevelEnum.DEBUG&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.debug.bind(this._optionsService.options.logger))??console.log,u,f)}info(u,...f){var d;this._logLevel<=b.LogLevelEnum.INFO&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.info.bind(this._optionsService.options.logger))??console.info,u,f)}warn(u,...f){var d;this._logLevel<=b.LogLevelEnum.WARN&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.warn.bind(this._optionsService.options.logger))??console.warn,u,f)}error(u,...f){var d;this._logLevel<=b.LogLevelEnum.ERROR&&this._log(((d=this._optionsService.options.logger)==null?void 0:d.error.bind(this._optionsService.options.logger))??console.error,u,f)}};n.LogService=v=l([h(0,b.IOptionsService)],v),n.setTraceLogger=function(u){w=u},n.traceCall=function(u,f,d){if(typeof d.value!="function")throw new Error("not supported");const g=d.value;d.value=function(...y){if(w.logLevel!==b.LogLevelEnum.TRACE)return g.apply(this,y);w.trace(`GlyphRenderer#${g.name}(${y.map((k=>JSON.stringify(k))).join(", ")})`);const x=g.apply(this,y);return w.trace(`GlyphRenderer#${g.name} return`,x),x}}},7302:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.OptionsService=n.DEFAULT_OPTIONS=void 0;const l=o(8460),h=o(844),m=o(6114);n.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:m.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 _ extends h.Disposable{constructor(v){super(),this._onOptionChange=this.register(new l.EventEmitter),this.onOptionChange=this._onOptionChange.event;const u={...n.DEFAULT_OPTIONS};for(const f in v)if(f in u)try{const d=v[f];u[f]=this._sanitizeAndValidateOption(f,d)}catch(d){console.error(d)}this.rawOptions=u,this.options={...u},this._setupOptions(),this.register((0,h.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(v,u){return this.onOptionChange((f=>{f===v&&u(this.rawOptions[v])}))}onMultipleOptionChange(v,u){return this.onOptionChange((f=>{v.indexOf(f)!==-1&&u()}))}_setupOptions(){const v=f=>{if(!(f in n.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);return this.rawOptions[f]},u=(f,d)=>{if(!(f in n.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);d=this._sanitizeAndValidateOption(f,d),this.rawOptions[f]!==d&&(this.rawOptions[f]=d,this._onOptionChange.fire(f))};for(const f in this.rawOptions){const d={get:v.bind(this,f),set:u.bind(this,f)};Object.defineProperty(this.options,f,d)}}_sanitizeAndValidateOption(v,u){switch(v){case"cursorStyle":if(u||(u=n.DEFAULT_OPTIONS[v]),!(function(f){return f==="block"||f==="underline"||f==="bar"})(u))throw new Error(`"${u}" is not a valid value for ${v}`);break;case"wordSeparator":u||(u=n.DEFAULT_OPTIONS[v]);break;case"fontWeight":case"fontWeightBold":if(typeof u=="number"&&1<=u&&u<=1e3)break;u=b.includes(u)?u:n.DEFAULT_OPTIONS[v];break;case"cursorWidth":u=Math.floor(u);case"lineHeight":case"tabStopWidth":if(u<1)throw new Error(`${v} cannot be less than 1, value: ${u}`);break;case"minimumContrastRatio":u=Math.max(1,Math.min(21,Math.round(10*u)/10));break;case"scrollback":if((u=Math.min(u,4294967295))<0)throw new Error(`${v} cannot be less than 0, value: ${u}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(u<=0)throw new Error(`${v} cannot be less than or equal to 0, value: ${u}`);break;case"rows":case"cols":if(!u&&u!==0)throw new Error(`${v} must be numeric, value: ${u}`);break;case"windowsPty":u=u??{}}return u}}n.OptionsService=_},2660:function(p,n,o){var l=this&&this.__decorate||function(_,w,v,u){var f,d=arguments.length,g=d<3?w:u===null?u=Object.getOwnPropertyDescriptor(w,v):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(_,w,v,u);else for(var y=_.length-1;y>=0;y--)(f=_[y])&&(g=(d<3?f(g):d>3?f(w,v,g):f(w,v))||g);return d>3&&g&&Object.defineProperty(w,v,g),g},h=this&&this.__param||function(_,w){return function(v,u){w(v,u,_)}};Object.defineProperty(n,"__esModule",{value:!0}),n.OscLinkService=void 0;const m=o(2585);let b=n.OscLinkService=class{constructor(_){this._bufferService=_,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(_){const w=this._bufferService.buffer;if(_.id===void 0){const y=w.addMarker(w.ybase+w.y),x={data:_,id:this._nextId++,lines:[y]};return y.onDispose((()=>this._removeMarkerFromLink(x,y))),this._dataByLinkId.set(x.id,x),x.id}const v=_,u=this._getEntryIdKey(v),f=this._entriesWithId.get(u);if(f)return this.addLineToLink(f.id,w.ybase+w.y),f.id;const d=w.addMarker(w.ybase+w.y),g={id:this._nextId++,key:this._getEntryIdKey(v),data:v,lines:[d]};return d.onDispose((()=>this._removeMarkerFromLink(g,d))),this._entriesWithId.set(g.key,g),this._dataByLinkId.set(g.id,g),g.id}addLineToLink(_,w){const v=this._dataByLinkId.get(_);if(v&&v.lines.every((u=>u.line!==w))){const u=this._bufferService.buffer.addMarker(w);v.lines.push(u),u.onDispose((()=>this._removeMarkerFromLink(v,u)))}}getLinkData(_){var w;return(w=this._dataByLinkId.get(_))==null?void 0:w.data}_getEntryIdKey(_){return`${_.id};;${_.uri}`}_removeMarkerFromLink(_,w){const v=_.lines.indexOf(w);v!==-1&&(_.lines.splice(v,1),_.lines.length===0&&(_.data.id!==void 0&&this._entriesWithId.delete(_.key),this._dataByLinkId.delete(_.id)))}};n.OscLinkService=b=l([h(0,m.IBufferService)],b)},8343:(p,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.createDecorator=n.getServiceDependencies=n.serviceRegistry=void 0;const o="di$target",l="di$dependencies";n.serviceRegistry=new Map,n.getServiceDependencies=function(h){return h[l]||[]},n.createDecorator=function(h){if(n.serviceRegistry.has(h))return n.serviceRegistry.get(h);const m=function(b,_,w){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(v,u,f){u[o]===u?u[l].push({id:v,index:f}):(u[l]=[{id:v,index:f}],u[o]=u)})(m,b,w)};return m.toString=()=>h,n.serviceRegistry.set(h,m),m}},2585:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.IDecorationService=n.IUnicodeService=n.IOscLinkService=n.IOptionsService=n.ILogService=n.LogLevelEnum=n.IInstantiationService=n.ICharsetService=n.ICoreService=n.ICoreMouseService=n.IBufferService=void 0;const l=o(8343);var h;n.IBufferService=(0,l.createDecorator)("BufferService"),n.ICoreMouseService=(0,l.createDecorator)("CoreMouseService"),n.ICoreService=(0,l.createDecorator)("CoreService"),n.ICharsetService=(0,l.createDecorator)("CharsetService"),n.IInstantiationService=(0,l.createDecorator)("InstantiationService"),(function(m){m[m.TRACE=0]="TRACE",m[m.DEBUG=1]="DEBUG",m[m.INFO=2]="INFO",m[m.WARN=3]="WARN",m[m.ERROR=4]="ERROR",m[m.OFF=5]="OFF"})(h||(n.LogLevelEnum=h={})),n.ILogService=(0,l.createDecorator)("LogService"),n.IOptionsService=(0,l.createDecorator)("OptionsService"),n.IOscLinkService=(0,l.createDecorator)("OscLinkService"),n.IUnicodeService=(0,l.createDecorator)("UnicodeService"),n.IDecorationService=(0,l.createDecorator)("DecorationService")},1480:(p,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.UnicodeService=void 0;const l=o(8460),h=o(225);class m{static extractShouldJoin(_){return(1&_)!=0}static extractWidth(_){return _>>1&3}static extractCharKind(_){return _>>3}static createPropertyValue(_,w,v=!1){return(16777215&_)<<3|(3&w)<<1|(v?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new l.EventEmitter,this.onChange=this._onChange.event;const _=new h.UnicodeV6;this.register(_),this._active=_.version,this._activeProvider=_}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(_){if(!this._providers[_])throw new Error(`unknown Unicode version "${_}"`);this._active=_,this._activeProvider=this._providers[_],this._onChange.fire(_)}register(_){this._providers[_.version]=_}wcwidth(_){return this._activeProvider.wcwidth(_)}getStringCellWidth(_){let w=0,v=0;const u=_.length;for(let f=0;f<u;++f){let d=_.charCodeAt(f);if(55296<=d&&d<=56319){if(++f>=u)return w+this.wcwidth(d);const x=_.charCodeAt(f);56320<=x&&x<=57343?d=1024*(d-55296)+x-56320+65536:w+=this.wcwidth(x)}const g=this.charProperties(d,v);let y=m.extractWidth(g);m.extractShouldJoin(g)&&(y-=m.extractWidth(v)),w+=y,v=g}return w}charProperties(_,w){return this._activeProvider.charProperties(_,w)}}n.UnicodeService=m}},i={};function s(p){var n=i[p];if(n!==void 0)return n.exports;var o=i[p]={exports:{}};return r[p].call(o.exports,o,o.exports,s),o.exports}var c={};return(()=>{var p=c;Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;const n=s(9042),o=s(3236),l=s(844),h=s(5741),m=s(8285),b=s(7975),_=s(7090),w=["cols","rows"];class v extends l.Disposable{constructor(f){super(),this._core=this.register(new o.Terminal(f)),this._addonManager=this.register(new h.AddonManager),this._publicOptions={...this._core.options};const d=y=>this._core.options[y],g=(y,x)=>{this._checkReadonlyOptions(y),this._core.options[y]=x};for(const y in this._core.options){const x={get:d.bind(this,y),set:g.bind(this,y)};Object.defineProperty(this._publicOptions,y,x)}}_checkReadonlyOptions(f){if(w.includes(f))throw new Error(`Option "${f}" 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 _.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 m.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const f=this._core.coreService.decPrivateModes;let d="none";switch(this._core.coreMouseService.activeProtocol){case"X10":d="x10";break;case"VT200":d="vt200";break;case"DRAG":d="drag";break;case"ANY":d="any"}return{applicationCursorKeysMode:f.applicationCursorKeys,applicationKeypadMode:f.applicationKeypad,bracketedPasteMode:f.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:d,originMode:f.origin,reverseWraparoundMode:f.reverseWraparound,sendFocusMode:f.sendFocus,wraparoundMode:f.wraparound}}get options(){return this._publicOptions}set options(f){for(const d in f)this._publicOptions[d]=f[d]}blur(){this._core.blur()}focus(){this._core.focus()}input(f,d=!0){this._core.input(f,d)}resize(f,d){this._verifyIntegers(f,d),this._core.resize(f,d)}open(f){this._core.open(f)}attachCustomKeyEventHandler(f){this._core.attachCustomKeyEventHandler(f)}attachCustomWheelEventHandler(f){this._core.attachCustomWheelEventHandler(f)}registerLinkProvider(f){return this._core.registerLinkProvider(f)}registerCharacterJoiner(f){return this._checkProposedApi(),this._core.registerCharacterJoiner(f)}deregisterCharacterJoiner(f){this._checkProposedApi(),this._core.deregisterCharacterJoiner(f)}registerMarker(f=0){return this._verifyIntegers(f),this._core.registerMarker(f)}registerDecoration(f){return this._checkProposedApi(),this._verifyPositiveIntegers(f.x??0,f.width??0,f.height??0),this._core.registerDecoration(f)}hasSelection(){return this._core.hasSelection()}select(f,d,g){this._verifyIntegers(f,d,g),this._core.select(f,d,g)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(f,d){this._verifyIntegers(f,d),this._core.selectLines(f,d)}dispose(){super.dispose()}scrollLines(f){this._verifyIntegers(f),this._core.scrollLines(f)}scrollPages(f){this._verifyIntegers(f),this._core.scrollPages(f)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(f){this._verifyIntegers(f),this._core.scrollToLine(f)}clear(){this._core.clear()}write(f,d){this._core.write(f,d)}writeln(f,d){this._core.write(f),this._core.write(`\r
473
+ `,d)}paste(f){this._core.paste(f)}refresh(f,d){this._verifyIntegers(f,d),this._core.refresh(f,d)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(f){this._addonManager.loadAddon(this,f)}static get strings(){return n}_verifyIntegers(...f){for(const d of f)if(d===1/0||isNaN(d)||d%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...f){for(const d of f)if(d&&(d===1/0||isNaN(d)||d%1!=0||d<0))throw new Error("This API only accepts positive integers")}}p.Terminal=v})(),c})()))})(ii)),ii.exports}var nb=ib();const ni={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"},ai={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"},ab=2e3;function ar(){const e=Mt(),t={"Content-Type":"application/json"};return e&&(t.Authorization=`Bearer ${e}`),t}function sb(e){const t=Mt(),r=t?`?password=${encodeURIComponent(t)}`:"";return`/api/v1/pty/${e}/output${r}`}async function ob(e,t){try{await fetch(`/api/v1/pty/${e}/input/send`,{method:"POST",headers:ar(),body:JSON.stringify({data:t})})}catch{}}async function rd(e,t,r){try{await fetch(`/api/v1/pty/${e}/resize`,{method:"POST",headers:ar(),body:JSON.stringify({cols:t,rows:r})})}catch{}}async function id(e){try{return(await fetch(`/api/v1/pty/${e}`,{headers:ar()})).ok}catch{return!1}}async function nd(e,t){const r=await fetch("/api/v1/pty",{method:"POST",headers:ar(),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 i=await r.json();return i.data??i}async function lb(){try{const e=await fetch("/api/v1/pty",{headers:ar()});if(!e.ok)return[];const t=await e.json();return(t.data??t).sessions||[]}catch{return[]}}function cb(e){const t=ge.getState().panes,r=new Set;for(const[i,s]of Object.entries(t))i!==e&&s.ptySessionId&&r.add(s.ptySessionId);return r}function db(e,t){const r=[];let i="",s="",c=t;for(;c<e.length;){const p=e.indexOf(`
474
+ `,c);if(p===-1)break;const n=e.substring(c,p);c=p+1,n===""?(s&&r.push({event:i||"message",data:s}),i="",s=""):n.startsWith("event: ")?i=n.substring(7):n.startsWith("data: ")&&(s=n.substring(6))}return{events:r,newIndex:c}}function ub({paneId:e}){const{t}=le(),{resolved:r}=yt(),i=ge(I=>I.panes[e]),s=ge(I=>I.activePaneId),c=ge(I=>I.layout),p=ge(I=>I.mainView),n=ge(I=>I.setActivePaneId),o=ge(I=>I.closePane),l=ge(I=>I.setPaneSession),h=ge(I=>I.setPaneStatus),m=ge(I=>I.setPaneError),b=ge(I=>I.setTerminalTitle),_=s===e,w=At(c),v=N.useRef(null),u=N.useRef(null),f=N.useRef(null),d=N.useRef(null),g=N.useRef(!0),y=N.useRef(!1),x=N.useRef(!1),k=N.useRef(null),E=N.useRef(null),S=N.useCallback(()=>{const I=d.current;I&&(I.abort(),d.current=null)},[]),C=N.useCallback((I,U)=>{S(),h(e,"connecting"),E.current=U;const z=new XMLHttpRequest;d.current=z;let W=0;z.open("GET",sb(U));const T=Mt();T&&z.setRequestHeader("Authorization",`Bearer ${T}`),z.onreadystatechange=()=>{if(z.readyState===XMLHttpRequest.HEADERS_RECEIVED)if(z.status===200){if(!g.current)return;h(e,"connected"),m(e,null);const G=f.current;if(G)try{G.fit(),rd(U,I.cols,I.rows)}catch{}I.focus()}else{if(!g.current)return;h(e,"error"),m(e,`HTTP ${z.status}`)}},z.onprogress=()=>{if(!g.current)return;const{events:G,newIndex:V}=db(z.responseText,W);W=V;let Q="";for(const te of G)try{const B=JSON.parse(te.data);switch(te.event){case"output":Q+=B.data;break;case"exit":Q&&(I.write(Q),Q=""),l(e,null),h(e,"disconnected"),x.current=!1,E.current=null,I.write(`\r
475
+ ${t("terminal.processExited")}\r
476
+ `);break;case"keepalive":break}}catch{}Q&&I.write(Q)},z.onerror=()=>{g.current&&(h(e,"error"),m(e,t("terminal.connectionLost")))},z.onloadend=()=>{var V;if(!g.current)return;((V=ge.getState().panes[e])==null?void 0:V.ptyStatus)==="connected"&&(h(e,"error"),m(e,t("terminal.connectionLost")))},z.send();const j=I.onData(G=>{E.current&&ob(E.current,G)}),M=I.onResize(({cols:G,rows:V})=>{E.current&&rd(E.current,G,V)});x.current=!0;const F=()=>{j.dispose(),M.dispose(),S(),E.current=null};return k.current=F,F},[S,e,l,h,m]),R=N.useCallback(()=>{const I=v.current;if(!I||y.current)return;const U=r==="dark"?ai:ni;for(;I.firstChild;)I.removeChild(I.firstChild);const z=new nb.Terminal({cursorBlink:!0,fontSize:14,fontFamily:'Menlo, Monaco, "Courier New", monospace',theme:U,allowProposedApi:!0,scrollback:1e4}),W=new rb.FitAddon;z.loadAddon(W),z.open(I);const T=I.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")),u.current=z,f.current=W,y.current=!0;const j=z.onTitleChange(V=>{g.current&&b(V||null)});let M=null;const F=()=>{M&&clearTimeout(M),M=setTimeout(()=>{if(g.current)try{W.fit()}catch{}},50)},G=new ResizeObserver(F);return G.observe(I),window.addEventListener("resize",F),()=>{j.dispose(),G.disconnect(),window.removeEventListener("resize",F),M&&clearTimeout(M)}},[]),$=N.useCallback(async()=>{var G;const I=u.current,U=f.current;if(!I||!U||!g.current||x.current)return;try{U.fit()}catch{}const z=I.cols||80,W=I.rows||24,T=(G=ge.getState().panes[e])==null?void 0:G.ptySessionId;if(T&&await id(T)&&g.current){C(I,T);return}if(!g.current)return;const j=cb(e),F=(await lb()).find(V=>!V.hasClient&&!j.has(V.id));if(F&&g.current){l(e,F.id),C(I,F.id);return}if(g.current){h(e,"connecting");try{const{sessionId:V}=await nd(z,W);if(!g.current)return;l(e,V),C(I,V)}catch(V){if(!g.current)return;h(e,"error"),m(e,V.message||t("terminal.createSessionFailed"))}}},[C,e,l,h,m]),D=N.useRef(null);N.useEffect(()=>{g.current=!0;const I=v.current;if(!I)return;const U=()=>{if(!g.current)return;const{clientWidth:W,clientHeight:T}=I;if(!(W===0||T===0)&&(y.current||(D.current=R()||null),u.current&&f.current)){try{f.current.fit()}catch{}x.current||$()}};if(I.clientWidth>0&&I.clientHeight>0){const W=requestAnimationFrame(U);return()=>cancelAnimationFrame(W)}const z=new ResizeObserver(W=>{for(const T of W){const{width:j,height:M}=T.contentRect;if(j>0&&M>0){z.disconnect(),U();break}}});return z.observe(I),()=>z.disconnect()},[R,$]),N.useEffect(()=>()=>{var I,U,z;g.current=!1,(I=k.current)==null||I.call(k),(U=D.current)==null||U.call(D),(z=u.current)==null||z.dispose(),u.current=null,f.current=null,y.current=!1,x.current=!1},[]),N.useEffect(()=>{const I=u.current;if(I){const U=r==="dark"?ai:ni;I.options.theme=U;try{I.refresh(0,I.rows-1)}catch{}}},[r,p]);const A=N.useCallback(async()=>{var U,z;if(S(),x.current=!1,h(e,"connecting"),m(e,null),await new Promise(W=>setTimeout(W,ab)),!g.current)return;const I=u.current;if(I)try{I.clear();try{(U=f.current)==null||U.fit()}catch{}const W=I.cols||80,T=I.rows||24,j=(z=ge.getState().panes[e])==null?void 0:z.ptySessionId;if(j&&await id(j)&&g.current){C(I,j);return}if(!g.current)return;const{sessionId:M}=await nd(W,T);if(!g.current)return;l(e,M),C(I,M)}catch(W){if(!g.current)return;h(e,"error"),m(e,W.message||t("terminal.reconnectFailed"))}},[S,C,e,l,h,m]),P=N.useCallback(()=>{var I;_||n(e),(I=u.current)==null||I.focus()},[_,e,n]);return i?a.jsxs("div",{className:`terminal-pane flex flex-col h-full w-full ${_&&w>1?"active":""}`,style:{backgroundColor:r==="dark"?ai.background:ni.background},onClick:P,children:[w>1&&a.jsx("div",{className:"terminal-pane-toolbar",children:a.jsx("button",{onClick:I=>{I.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:a.jsx(Le,{size:14})})}),a.jsx("div",{ref:v,className:"flex-1 w-full",style:{overflow:"hidden",padding:"4px"}}),i.ptyStatus==="connecting"&&a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-bg-primary/80 z-10",children:a.jsx(Ze,{size:"small",text:t("terminal.connecting")})}),i.ptyStatus==="error"&&a.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:[a.jsxs("div",{className:"flex items-center gap-2 text-accent-red text-xs",children:[a.jsx(pp,{size:14}),a.jsx("span",{children:i.errorMessage||t("terminal.error")})]}),a.jsxs("button",{onClick:A,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:[a.jsx($t,{size:12}),a.jsx("span",{children:t("terminal.reconnect")})]})]})]}):a.jsx("div",{})}function $i({node:e,path:t}){const r=ge(s=>s.setRatio),i=N.useCallback(s=>{r(t,s)},[r,t]);return e.type==="leaf"?a.jsx(ub,{paneId:e.paneId}):a.jsxs(Su,{direction:e.direction,ratio:e.ratio,onRatioChange:i,children:[a.jsx($i,{node:e.children[0],path:[...t,0]}),a.jsx($i,{node:e.children[1],path:[...t,1]})]})}function Ou(){const e=ge(t=>t.layout);return a.jsx("div",{className:"flex-1 w-full h-full overflow-hidden",children:a.jsx($i,{node:e,path:[]})})}function pb({isOpen:e,onClose:t,onImageSelect:r,onFileSelect:i,onNewChat:s,onHistory:c,mainView:p}){const{t:n}=le(),o=N.useRef(null),[l,h]=N.useState(null),[m,b]=N.useState(0),_=N.useCallback(()=>{r(),t()},[r,t]),w=N.useCallback(()=>{i(),t()},[i,t]),v=[{type:"attachment",icon:a.jsx(yd,{size:22}),label:n("input.menu.image"),action:_},{type:"attachment",icon:a.jsx(et,{size:22}),label:n("input.menu.file"),action:w},{type:"action",icon:a.jsx(Xe,{size:20}),label:n("chat.newChat"),action:s},{type:"action",icon:a.jsx(bd,{size:20}),label:n("sidebar.chatHistory"),action:c},{type:"nav",view:"instances",icon:a.jsx(bt,{size:20}),label:n("sidebar.instances")},{type:"nav",view:"tasks",icon:a.jsx(_d,{size:20}),label:n("sidebar.nav.tasks")},{type:"nav",view:"terminal",icon:a.jsx(Ed,{size:20}),label:n("sidebar.terminalMode")},{type:"nav",view:"plugins",icon:a.jsx(Tt,{size:20}),label:n("sidebar.nav.plugins")},{type:"nav",view:"settings",icon:a.jsx(wd,{size:20}),label:n("sidebar.preferences")}].filter(x=>!(x.type==="action"&&!x.action)),u=8,f=Math.ceil(v.length/u),d=[];for(let x=0;x<f;x++)d.push(v.slice(x*u,(x+1)*u));N.useEffect(()=>{const x=o.current;if(!x)return;const k=()=>{const E=x.clientWidth;if(E>0){const S=Math.round(x.scrollLeft/E);b(S)}};return x.addEventListener("scroll",k,{passive:!0}),()=>x.removeEventListener("scroll",k)},[]);const g=N.useCallback(x=>{const k=o.current;k&&k.scrollTo({left:x*k.clientWidth,behavior:"smooth"})},[]),y=N.useCallback(()=>{h(null)},[]);return e?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"bottom-sheet-inline",children:[a.jsx("div",{ref:o,className:"bottom-sheet-scroll",children:d.map((x,k)=>a.jsx("div",{className:"bottom-sheet-page",children:a.jsx("div",{className:"bottom-sheet-grid",children:x.map((E,S)=>a.jsxs("button",{className:E.type==="nav"&&p===E.view?"active":"",onClick:()=>{var C;E.type==="attachment"||E.type==="action"?(C=E.action)==null||C.call(E):E.type==="nav"&&E.view&&h(E.view)},children:[E.icon,a.jsx("span",{children:E.label})]},S))})},k))}),f>1&&a.jsx("div",{className:"bottom-sheet-pagination",children:Array.from({length:f}).map((x,k)=>a.jsx("button",{className:`pagination-dot ${k===m?"active":""}`,onClick:()=>g(k)},k))})]}),l&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"floating-panel-overlay",onClick:y}),a.jsxs("div",{className:"floating-panel-container",children:[a.jsx("div",{className:"floating-panel-header",children:a.jsx("button",{onClick:y,className:"floating-panel-close-btn",title:"Close",children:a.jsx(Le,{size:24})})}),a.jsxs("div",{className:"floating-panel-content",children:[l==="instances"&&a.jsx(Au,{}),l==="tasks"&&a.jsx(Iu,{}),l==="terminal"&&a.jsx(Ou,{}),l==="plugins"&&a.jsx($u,{}),l==="settings"&&a.jsx(Ru,{})]})]})]})]}):null}const mb=5,Du=10*1024*1024,Gt=["image/jpeg","image/png","image/gif","image/webp"];let hb=0;function gb(e){return!Gt.includes(e.type)||e.size>Du?Promise.resolve(null):new Promise(t=>{const r=new FileReader;r.onload=()=>{const i=r.result,s=i.split(",")[1]||"";t({id:`img-${++hb}`,dataUrl:i,data:s,mimeType:e.type})},r.onerror=()=>t(null),r.readAsDataURL(e)})}const fb=10,bb=1*1024*1024,yb=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 _b=0;function Mu(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(yb.has(s))return!0}const i=t.split("/").pop()||t;return!!["makefile","dockerfile","cmakelists.txt","gemfile","rakefile","procfile"].includes(i)}function vb(e){return!Mu(e)||e.size>bb?Promise.resolve(null):new Promise(t=>{const r=new FileReader;r.onload=()=>{const i=r.result;t({id:`file-${++_b}`,name:e.name,size:e.size,text:i,mimeType:e.type||"text/plain"})},r.onerror=()=>t(null),r.readAsText(e)})}function kb(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Sb({onNavigate:e,onNewChat:t,onHistory:r,mainView:i,showBottomSheet:s=!1,setShowBottomSheet:c}){const p=N.useCallback(H=>{c&&c(typeof H=="function"?H(s):H)},[c,s]),[n,o]=N.useState(""),[l,h]=N.useState([]),[m,b]=N.useState([]),[_,w]=N.useState(0),[v,u]=N.useState(!1),[f,d]=N.useState(null),[g,y]=N.useState(0),[x,k]=N.useState([]),[E,S]=N.useState(0),[C,R]=N.useState(null),$=N.useRef(null),D=N.useRef(null),A=N.useRef(null),P=N.useRef(null),I=N.useRef(null),U=N.useRef(null),z=N.useRef(0),W=N.useRef(!1),{sessionId:T,commands:j,thinkingEnabled:M,setThinkingEnabled:F,promptSuggestion:G,setPromptSuggestion:V,externalInput:Q,setExternalInput:te}=tt(),{isAgentRunning:B,hasPendingInterruption:L,timeline:K,addUserMessage:q,addQueuedUserMessage:ee,setSessionEnd:J,resolveInterruption:se}=je(),{t:Z}=le();N.useEffect(()=>{Q!==null&&(o(Q),te(null),V(null),requestAnimationFrame(()=>{var H;(H=$.current)==null||H.focus()}))},[Q,te,V]);const ne=N.useCallback(async H=>{const X=Array.from(H).filter(de=>Gt.includes(de.type)&&de.size<=Du);if(X.length===0)return;w(de=>de+X.length);const he=(await Promise.all(X.map(gb))).filter(de=>de!==null);w(de=>Math.max(0,de-X.length)),he.length>0&&h(de=>{const Ee=mb-de.length;return[...de,...he.slice(0,Ee)]})},[]),ue=N.useCallback(H=>{h(X=>X.filter(oe=>oe.id!==H))},[]),ie=N.useCallback(async H=>{const X=Array.from(H),he=(await Promise.all(X.map(vb))).filter(de=>de!==null);he.length!==0&&b(de=>{const Ee=fb-de.length;return[...de,...he.slice(0,Ee)]})},[]),Pe=N.useCallback(H=>{b(X=>X.filter(oe=>oe.id!==H))},[]),dt=N.useCallback(H=>{var X;H.preventDefault(),H.stopPropagation(),z.current++,(X=H.dataTransfer)!=null&&X.types.includes("Files")&&u(!0)},[]),ut=N.useCallback(H=>{H.preventDefault(),H.stopPropagation(),z.current--,z.current===0&&u(!1)},[]),rt=N.useCallback(H=>{H.preventDefault(),H.stopPropagation()},[]),Ge=N.useCallback(H=>{var X;if(H.preventDefault(),H.stopPropagation(),z.current=0,u(!1),(X=H.dataTransfer)!=null&&X.files){const oe=Array.from(H.dataTransfer.files),he=oe.filter(Ee=>Gt.includes(Ee.type)),de=oe.filter(Ee=>!Gt.includes(Ee.type)&&Mu(Ee));he.length>0&&ne(he),de.length>0&&ie(de)}},[ne,ie]),be=N.useCallback(H=>{var oe;const X=(oe=H.clipboardData)==null?void 0:oe.files;X&&X.length>0&&Array.from(X).some(de=>Gt.includes(de.type))&&(H.preventDefault(),ne(X))},[ne]),Ye=N.useCallback(()=>{var H;(H=D.current)==null||H.click()},[]),Y=N.useCallback(()=>{var H;(H=A.current)==null||H.click()},[]),ae=N.useCallback(H=>{H.target.files&&ne(H.target.files),H.target.value=""},[ne]),ye=N.useCallback(H=>{H.target.files&&ie(H.target.files),H.target.value=""},[ie]),we=N.useMemo(()=>{const H=n.trimStart();if(!H.startsWith("/")||H.includes(" "))return[];const X=H.substring(1).toLowerCase();return j.filter(oe=>oe.name.toLowerCase().includes(X)||oe.description.toLowerCase().includes(X)).slice(0,8)},[n,j]),ze=we.length>0;N.useEffect(()=>{y(0)},[we.length]),N.useEffect(()=>{if(ze&&P.current){const H=P.current.children[g];H==null||H.scrollIntoView({block:"nearest"})}},[g,ze]);const Oe=N.useMemo(()=>{if(C===null)return null;const H=n.substring(C+1),X=H.search(/\s/),oe=X===-1?H:H.substring(0,X);return X===0?null:oe},[n,C]),Be=Oe!==null&&x.length>0,pe=N.useRef(null);N.useEffect(()=>{if(Oe===null){k([]);return}return pe.current&&clearTimeout(pe.current),pe.current=setTimeout(async()=>{try{const H=new URLSearchParams;Oe&&H.set("query",Oe),H.set("limit","15");const X=await fetch(`/api/v1/fs/search?${H.toString()}`);if(X.ok){const oe=await X.json();k(oe.items||[]),S(0)}else k([])}catch{k([])}},150),()=>{pe.current&&clearTimeout(pe.current)}},[Oe]),N.useEffect(()=>{if(Be&&I.current){const H=I.current.children[E];H==null||H.scrollIntoView({block:"nearest"})}},[E,Be]);const jt=N.useRef(!1),Pr=N.useCallback(H=>{if(C===null)return;const X=n.substring(0,C),oe=n.substring(C+1),he=oe.search(/\s/),de=he===-1?"":oe.substring(he),We=de.length===0||!/^\s/.test(de)?" ":"",mt=`${X}@${H.path}${We}${de}`,Ft=X.length+1+H.path.length+We.length;o(mt),k([]),R(null),jt.current=!0,requestAnimationFrame(()=>{const vt=$.current;vt&&(vt.focus(),vt.setSelectionRange(Ft,Ft))})},[n,C]);N.useEffect(()=>{var X;!(window.innerWidth<=768)&&!B&&((X=$.current)==null||X.focus())},[B]),N.useEffect(()=>{const H=$.current;if(H){H.style.height="auto";const X=window.innerHeight*.2,oe=Math.min(H.scrollHeight,X);H.style.height=`${oe}px`,H.style.overflowY=H.scrollHeight>X?"auto":"hidden"}},[n]);const Br=N.useCallback(H=>{var X;o(`/${H.name} `),(X=$.current)==null||X.focus()},[]),pt=N.useCallback(async H=>{var zl;const X=(H??n).trim(),oe=l.length>0,he=m.length>0;if(!X&&!(oe||he)||!T||L)return;o(""),V(null);const Ee=[...l],We=[...m];h([]),b([]);const mt=Ee.length>0?Ee.map(fe=>({data:fe.data,mimeType:fe.mimeType})):void 0,Ft=We.length>0?We.map(fe=>({name:fe.name,text:fe.text,mimeType:fe.mimeType})):void 0,vt=We.length>0?We.map(fe=>({name:fe.name,size:fe.size,mimeType:fe.mimeType})):void 0;if((zl=$.current)==null||zl.blur(),B)ee(X,mt,vt),Ie().prompt(T,X,mt,Ft).catch(fe=>{console.error("Queued prompt failed:",fe)});else{q(X,mt,vt);try{const fe=await Ie().prompt(T,X,mt,Ft);J(fe.stopReason,fe.errorMessage)}catch(fe){console.error("Prompt failed:",fe),J("error",fe instanceof Error?fe.message:Z("input.promptFailed"))}}},[n,l,m,T,B,L,q,ee,J,V,Z]),ju=N.useCallback(async()=>{if(T)try{const H=Ie(),X=K.filter(oe=>oe.type==="interruption"&&!oe.resolved);for(const oe of X)if(oe.type==="interruption")try{await H.approveInterruption(T,oe.id,"deny"),se(oe.id,"deny")}catch{}await H.cancel(T)}catch(H){console.error("Cancel failed:",H)}},[T,K,se]),Fu=N.useCallback(()=>{W.current=!0},[]),Pu=N.useCallback(()=>{W.current=!1},[]),Bu=N.useCallback(H=>{H.preventDefault(),d({x:H.clientX,y:H.clientY})},[]),Uu=N.useCallback(()=>{const H=$.current;if(!H)return;const X=H.selectionStart??n.length,oe=H.selectionEnd??X,he=n.slice(0,X)+`
477
+ `+n.slice(oe);o(he),d(null),requestAnimationFrame(()=>{H.selectionStart=H.selectionEnd=X+1,H.focus()})},[n]),zu=N.useCallback(()=>{d(null),pt()},[pt]);N.useEffect(()=>{if(!f)return;const H=()=>d(null),X=()=>d(null);return document.addEventListener("mousedown",H),document.addEventListener("scroll",X,!0),()=>{document.removeEventListener("mousedown",H),document.removeEventListener("scroll",X,!0)}},[f]);const Hu=N.useCallback(H=>{if(ze){if(H.key==="ArrowUp"){H.preventDefault(),y(X=>X>0?X-1:we.length-1);return}if(H.key==="ArrowDown"){H.preventDefault(),y(X=>X<we.length-1?X+1:0);return}if(H.key==="Tab"||H.key==="Enter"&&!H.shiftKey&&!W.current&&!H.nativeEvent.isComposing){H.preventDefault(),Br(we[g]);return}if(H.key==="Escape"){H.preventDefault(),o("");return}}if(Be){if(H.key==="ArrowUp"){H.preventDefault(),S(X=>X>0?X-1:x.length-1);return}if(H.key==="ArrowDown"){H.preventDefault(),S(X=>X<x.length-1?X+1:0);return}if(H.key==="Tab"||H.key==="Enter"&&!H.shiftKey&&!W.current&&!H.nativeEvent.isComposing){H.preventDefault(),Pr(x[E]);return}if(H.key==="Escape"){H.preventDefault(),R(null),k([]);return}}if(H.key==="Tab"&&!ze&&!Be&&G&&!n){H.preventDefault(),o(G),V(null);return}if(H.key==="Enter"&&!H.shiftKey&&!W.current&&!H.nativeEvent.isComposing){if(H.preventDefault(),!n&&G&&!B&&!L){pt(G);return}pt()}},[pt,ze,we,g,Br,Be,x,E,Pr,G,n,V,B,L]),Gu=N.useCallback(async()=>{if(!T)return;const H=!M;F(H);try{await Ie().setConfigOption(T,"thought_level",H?"enabled":"disabled")}catch(X){F(!H),console.error("Toggle thinking failed:",X)}},[T,M,F]),Ul=!L&&(n.trim().length>0||l.length>0||m.length>0||!!G&&!n&&!B),Wu=l.length>0||m.length>0||_>0;return a.jsx("div",{className:"px-0 pb-0 pt-0 md:px-4 md:pb-6 md:pt-2",children:a.jsxs("div",{className:"max-w-3xl mx-auto",children:[e&&i!==void 0&&a.jsx(pb,{isOpen:s,onClose:()=>p(!1),onImageSelect:Ye,onFileSelect:Y,onNewChat:t,onHistory:r,mainView:i,onNavigate:e}),a.jsxs("div",{className:`relative bg-bg-secondary rounded-none md:rounded-2xl shadow-sm transition-all focus-within:shadow-md border-t md:border ${v?"border-accent-brand border-dashed bg-accent-brand/5":"border-border-default"}`,onDragEnter:dt,onDragLeave:ut,onDragOver:rt,onDrop:Ge,children:[v&&a.jsx("div",{className:"absolute inset-0 z-20 rounded-2xl flex items-center justify-center bg-accent-brand/5 pointer-events-none",children:a.jsx("span",{className:"text-accent-brand text-[14px] font-medium",children:Z("input.dropHint")})}),ze&&a.jsx("div",{ref:P,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",children:we.map((H,X)=>a.jsxs("button",{className:`w-full text-left px-4 py-2.5 flex items-baseline gap-3 transition-colors ${X===g?"bg-bg-primary text-text-primary":"text-text-primary hover:bg-bg-primary"}`,onMouseEnter:()=>y(X),onMouseDown:oe=>{oe.preventDefault(),Br(H)},children:[a.jsxs("span",{className:"font-mono text-[13px] font-medium shrink-0",children:["/",H.name]}),H.type==="skill"&&a.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"}),a.jsx("span",{className:"text-text-tertiary text-[12px] truncate",children:H.description})]},H.name))}),Be&&a.jsx("div",{ref:I,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",children:x.map((H,X)=>a.jsxs("button",{className:`w-full text-left px-4 py-2.5 flex items-center gap-3 transition-colors ${X===E?"bg-bg-primary text-text-primary":"text-text-primary hover:bg-bg-primary"}`,onMouseEnter:()=>S(X),onMouseDown:oe=>{oe.preventDefault(),Pr(H)},children:[H.type==="directory"?a.jsx(Ri,{size:14,className:"shrink-0 text-accent-brand"}):a.jsx(et,{size:14,className:"shrink-0 text-text-tertiary"}),a.jsx("span",{className:"font-mono text-[13px] truncate",children:H.name}),a.jsx("span",{className:"text-text-tertiary text-[11px] truncate ml-auto",children:H.path})]},H.path))}),Wu&&a.jsxs("div",{className:"px-4 pt-3 pb-1 flex flex-wrap gap-2",children:[l.map(H=>a.jsxs("div",{className:"relative group",children:[a.jsx("img",{src:H.dataUrl,alt:"",className:"w-16 h-16 rounded-lg object-cover border border-border-default"}),a.jsx("button",{onClick:()=>ue(H.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:a.jsx(Le,{size:12})})]},H.id)),Array.from({length:_}).map((H,X)=>a.jsx("div",{className:"w-16 h-16 rounded-lg border border-border-default skeleton-shimmer"},`skeleton-${X}`)),m.map(H=>a.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:[a.jsx(et,{size:16,className:"shrink-0 text-text-tertiary"}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:"text-[12px] text-text-primary truncate",title:H.name,children:H.name}),a.jsx("div",{className:"text-[11px] text-text-tertiary",children:kb(H.size)})]}),a.jsx("button",{onClick:()=>Pe(H.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:a.jsx(Le,{size:12})})]},H.id))]}),a.jsxs("div",{className:"relative",children:[a.jsx("textarea",{ref:$,value:n,onChange:H=>{const X=H.target.value,oe=H.target.selectionStart??X.length;if(o(X),jt.current){jt.current=!1;return}let he=null;for(let de=oe-1;de>=0;de--){const Ee=X[de];if(Ee==="@"){const We=de>0?X[de-1]:" ";(We===" "||We===`
478
+ `||de===0)&&(X.substring(de+1,oe).includes(" ")||(he=de));break}if(Ee===" "||Ee===`
479
+ `)break}he!==null?C!==he&&(R(he),S(0)):C!==null&&(R(null),k([]))},onCompositionStart:Fu,onCompositionEnd:Pu,onKeyDown:Hu,onPaste:be,onContextMenu:Bu,onFocus:()=>p(!1),placeholder:L?Z("input.placeholderPending"):B?Z("input.placeholderRunning"):G?"":Z("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(" ")}),G&&!n&&!B&&!L&&a.jsx("div",{className:"absolute inset-0 flex items-start px-5 pt-4 pb-2 pointer-events-none overflow-hidden",children:a.jsx("span",{className:"text-[15px] leading-relaxed text-text-tertiary truncate max-w-full",children:G})})]}),f&&a.jsxs("div",{ref:U,className:"fixed z-50 bg-bg-secondary rounded-xl border border-border-default shadow-lg overflow-hidden min-w-[120px]",style:{left:f.x,top:f.y},onMouseDown:H=>H.stopPropagation(),children:[a.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:H=>{H.preventDefault(),H.stopPropagation(),Uu()},children:[a.jsx(rc,{size:14,className:"text-text-tertiary"}),Z("input.contextMenu.newline")]}),Ul&&a.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:H=>{H.preventDefault(),H.stopPropagation(),zu()},children:[a.jsx(Ql,{size:14,className:"text-text-tertiary"}),Z("input.contextMenu.send")]})]}),a.jsx("input",{ref:D,type:"file",accept:"image/jpeg,image/png,image/gif,image/webp",multiple:!0,className:"hidden",onChange:ae}),a.jsx("input",{ref:A,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:ye}),a.jsxs("div",{className:"flex items-center justify-between px-3 py-2",onClick:H=>{var X;H.target===H.currentTarget&&((X=$.current)==null||X.focus())},children:[a.jsx("div",{className:"flex items-center",children:a.jsxs("button",{onClick:Gu,className:`flex items-center gap-1 px-2.5 py-1 rounded-full border transition-colors ${M?"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:[a.jsx("span",{className:"w-3.5 h-3.5 flex items-center justify-center text-[10px] font-semibold",children:"∞"}),a.jsx("span",{className:"text-[12px] font-medium",children:Z("input.deepThinking")})]})}),a.jsxs("div",{className:"flex items-center gap-1",children:[!B&&a.jsx("button",{onClick:()=>p(H=>!H),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:Z("input.addFile"),children:a.jsx(Xe,{size:18})}),a.jsx("button",{onClick:()=>{const H=$.current;if(!H)return;const X=H.selectionStart??n.length,oe=H.selectionEnd??X,he=n.slice(0,X)+`
480
+ `+n.slice(oe);o(he),requestAnimationFrame(()=>{H.selectionStart=H.selectionEnd=X+1,H.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:Z("input.newline"),children:a.jsx(rc,{size:15})}),B&&a.jsx("button",{onClick:ju,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:Z("input.stop"),children:a.jsx(Hp,{size:14,fill:"currentColor",strokeWidth:0})}),Ul&&a.jsx("button",{onClick:()=>{!n&&G&&!B?pt(G):pt()},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:Z("input.send"),children:a.jsx(Ql,{size:18,strokeWidth:2.5})})]})]})]})]})})}function xb({children:e}){return a.jsx("code",{className:"bg-bg-tertiary px-1.5 py-0.5 rounded text-xs text-accent-brand",children:e})}function ad(e){const t=[];let r=e,i=0;for(;r.length>0;){const s=r.indexOf("<code>");if(s===-1){t.push(a.jsx("span",{children:r},i));break}s>0&&(t.push(a.jsx("span",{children:r.substring(0,s)},i)),i++);const c=r.indexOf("</code>",s);if(c===-1){t.push(a.jsx("span",{children:r},i));break}const p=r.substring(s+6,c);t.push(a.jsx(xb,{children:p},i)),i++,r=r.substring(c+7)}return a.jsx(a.Fragment,{children:t})}function wb(){const{error:e,isSubmitting:t,login:r,clearError:i}=su(),{t:s}=le(),[c,p]=N.useState(""),n=N.useCallback(async l=>{l.preventDefault(),c.trim()&&await r(c)},[c,r]),o=e?s(e)!==e?s(e):e:null;return a.jsxs("div",{className:"login-page",children:[a.jsxs("div",{className:"login-orb login-orb-right",children:[a.jsx("div",{className:"login-orb-layer login-orb-layer-1"}),a.jsx("div",{className:"login-orb-layer login-orb-layer-2"})]}),a.jsx("div",{className:"login-ellipse login-ellipse-outer"}),a.jsx("div",{className:"login-ellipse login-ellipse-outer2"}),a.jsx("div",{className:"login-ellipse login-ellipse-inner"}),a.jsxs("div",{className:"login-orb login-orb-left",children:[a.jsx("div",{className:"login-orb-layer login-orb-layer-1"}),a.jsx("div",{className:"login-orb-layer login-orb-layer-2"})]}),a.jsx("div",{className:"login-ellipse login-ellipse-left"}),a.jsx("div",{className:"login-ellipse login-ellipse-left2"}),a.jsxs("div",{className:"login-content",children:[a.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[a.jsx("div",{className:"login-logo",children:a.jsx("img",{src:dd,alt:"CodeBuddy"})}),a.jsx("h1",{className:"login-title",children:s("login.slogan")}),a.jsx("p",{className:"login-tagline",children:s("login.tagline")})]}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px"},children:[o&&a.jsx("div",{className:"login-error",style:{marginBottom:"8px"},children:o}),a.jsxs("form",{onSubmit:n,style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},children:[a.jsx("input",{type:"password",name:"password",value:c,onChange:l=>{p(l.target.value),e&&i()},placeholder:s("login.placeholder"),autoFocus:!0,autoComplete:"current-password",disabled:t,className:"login-input"}),a.jsx("button",{type:"submit",disabled:t||!c.trim(),className:"login-btn",children:t?a.jsx("span",{className:"thinking-text",children:s("login.submit")}):s("login.submit")})]}),a.jsxs("div",{className:"login-hints",children:[a.jsx("p",{children:s("login.hint.password")}),a.jsx("p",{children:s("login.hint.urlAuth").includes("<code>")?ad(s("login.hint.urlAuth")):s("login.hint.urlAuth")}),a.jsx("p",{children:s("login.hint.disable").includes("<code>")?ad(s("login.hint.disable")):s("login.hint.disable")})]})]})]}),a.jsxs("div",{className:"login-footer",children:[a.jsx("a",{href:"#privacy",children:s("login.privacy")}),a.jsx("a",{href:"#terms",children:s("login.terms")})]})]})}function Eb({onNavigate:e}){const{t}=le(),[r,i]=N.useState(Sr);if(N.useEffect(()=>{const s=()=>i(Sr());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 a.jsx(Tb,{onBack:()=>Oc("remote-control"),t,existingInstanceId:s})}return r==="add-wecom"?a.jsx(Ab,{onBack:()=>Oc("remote-control"),t}):a.jsx(Cb,{onNavigate:e,t})}function Cb({onNavigate:e,t}){const[r,i]=N.useState([]),[s,c]=N.useState(!0),[p,n]=N.useState(null),[o,l]=N.useState(null),h=N.useCallback(async()=>{try{const k=await Fe("/api/v1/channels");if(k.ok){const E=await k.json();i((E.clients||[]).filter(S=>!S.hidden&&!S.instanceId.startsWith("_pending")))}}catch{}finally{c(!1)}},[]);N.useEffect(()=>{h();const k=setInterval(h,5e3);return()=>clearInterval(k)},[h]);const m=N.useCallback(async(k,E,S)=>{const C=`${E}:${S}:${k}`;l(C),n(null);try{const R=k==="delete"?"DELETE":"POST",$=k==="delete"?`/api/v1/channels/${E}/${S}`:`/api/v1/channels/${E}/${S}/${k}`,D=await Fe($,{method:R});if(!D.ok){const P=await D.json().catch(()=>({}));throw new Error(P.error||`Failed: ${D.status}`)}const A=await D.json().catch(()=>({}));if(k==="unbind"&&E==="wechat"&&A.needsQrScan){Pt("remote-control",`rebind-wechat/${S}`);return}await h()}catch(R){n((R==null?void 0:R.message)||"Action failed")}finally{l(null)}},[h]),b=k=>k==="connected"?"text-green-500":k==="connecting"?"text-yellow-500":k==="error"?"text-red-500":"text-text-tertiary",_=k=>t(k==="connected"?"remoteControl.connected":k==="connecting"?"remoteControl.connecting":"remoteControl.disconnected"),w=k=>k==="wechat"?a.jsx(kd,{size:18,className:"text-green-500"}):k==="wecom"?a.jsx(di,{size:18,className:"text-accent-brand"}):a.jsx(ic,{size:18,className:"text-text-tertiary"}),v=k=>k==="wechat"?t("channel.wechat")+t("remoteControl.bot"):k==="wecom"?t("channel.wecom")+t("remoteControl.bot"):k,u=k=>`${v(k.clientType)} #${k.instanceId.slice(0,4)}`,f=r.filter(k=>k.clientType==="wechat"),d=r.filter(k=>k.clientType==="wecom"),g=r.filter(k=>k.clientType!=="wechat"&&k.clientType!=="wecom"),y=k=>{const E=`${k.clientType}:${k.instanceId}`,S=k.status==="connected",C=o==null?void 0:o.startsWith(E);return a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-bg-secondary hover:bg-bg-hover transition-colors cursor-pointer",onClick:()=>{C||m(S?"stop":"start",k.clientType,k.instanceId)},children:[w(k.clientType),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-sm font-medium text-text-primary truncate",children:u(k)}),a.jsx("span",{className:`text-xs ${b(k.status)}`,children:_(k.status)})]}),a.jsxs("div",{className:"flex items-center gap-1",onClick:R=>R.stopPropagation(),children:[a.jsx("button",{className:`p-1.5 rounded-md text-text-tertiary transition-colors ${S?"hover:text-orange-500":"hover:text-green-500"} hover:bg-bg-hover`,title:t(S?"remoteControl.disconnect":"remoteControl.connect"),disabled:!!C,onClick:()=>m(S?"stop":"start",k.clientType,k.instanceId),children:S?a.jsx(ic,{size:14}):a.jsx(Ap,{size:14})}),S&&a.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:!!C,onClick:()=>m("unbind",k.clientType,k.instanceId),children:a.jsx($t,{size:14})}),a.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:!!C,onClick:()=>m("delete",k.clientType,k.instanceId),children:a.jsx(Zt,{size:14})})]})]},E)},x=(k,E,S,C)=>a.jsxs("div",{children:[a.jsx("h2",{className:"text-sm font-medium text-text-secondary mb-2",children:k}),E.length===0?a.jsx("div",{className:"py-4 text-center text-xs text-text-tertiary",children:t("remoteControl.noChannels")}):a.jsx("div",{className:"space-y-2",children:E.map(y)}),S&&a.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:S,children:[a.jsx(Xe,{size:12}),C||t("remoteControl.add")]})]});return a.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[a.jsxs("div",{className:"px-6 py-5 border-b border-border-primary",children:[a.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.title")}),a.jsx("p",{className:"text-sm text-text-tertiary mt-1",children:t("remoteControl.subtitle")})]}),a.jsxs("div",{className:"px-6 py-4 flex-1 space-y-6",children:[p&&a.jsx("div",{className:"p-3 rounded-lg bg-red-500/10 text-red-500 text-sm",children:p}),s?a.jsx("div",{className:"text-sm text-text-tertiary py-4",children:t("remoteControl.connecting")}):r.length===0?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"py-8 text-center",children:[a.jsx(di,{size:32,className:"mx-auto mb-3 text-text-tertiary opacity-50"}),a.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.noChannels")}),a.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:t("remoteControl.noChannelsHint")})]}),a.jsxs("div",{className:"flex gap-3",children:[a.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:()=>Pt("remote-control","add-wechat"),children:[a.jsx(Xe,{size:14}),t("remoteControl.addWeChat")]}),a.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:()=>Pt("remote-control","add-wecom"),children:[a.jsx(Xe,{size:14}),t("remoteControl.addWeCom")]})]})]}):a.jsxs(a.Fragment,{children:[x(t("channel.wechat")+t("remoteControl.bot"),f,()=>Pt("remote-control","add-wechat"),t("remoteControl.addWeChat")),x(t("channel.wecom")+t("remoteControl.bot"),d,()=>Pt("remote-control","add-wecom"),t("remoteControl.addWeCom")),g.length>0&&x(t("remoteControl.plugin"),g)]}),a.jsx("hr",{className:"border-border-primary"}),a.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:[a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"text-sm font-medium text-text-primary",children:t("remoteControl.installMore")}),a.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:t("remoteControl.installMoreHint")})]}),a.jsx(hd,{size:16,className:"text-text-tertiary"})]})]})]})}function Tb({onBack:e,t,existingInstanceId:r}){const[i,s]=N.useState(null),[c,p]=N.useState(t("remoteControl.fetchingQr")),[n,o]=N.useState(r??null),[l,h]=N.useState(null),[m,b]=N.useState(!1);return N.useEffect(()=>{let _=!1;return(async()=>{try{let w=r;if(!w){const v=await Fe("/api/v1/channels/wechat",{method:"POST"});if(!v.ok)throw new Error((await v.json().catch(()=>({}))).error||"Failed");const u=await v.json();if(_)return;w=u.instanceId,o(w)}for(let v=0;v<180&&!_;v++){await new Promise(u=>setTimeout(u,1e3));try{const u=await fetch(`/api/v1/channels/wechat/${w}/qr`);if(!u.ok)continue;const f=await u.json();if(_)return;if(f.qrUrl&&s(f.qrUrl),f.message&&p(f.message),f.type==="confirmed"){b(!0),p(t("remoteControl.connected")),setTimeout(()=>{_||e()},1500);return}if(f.type==="error"){h(f.message);return}}catch{}}!_&&!m&&h("Timeout")}catch(w){_||h((w==null?void 0:w.message)||"Failed")}})(),()=>{_=!0}},[r]),a.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[a.jsxs("div",{className:"px-6 py-5 border-b border-border-primary flex items-center gap-3",children:[a.jsx("button",{onClick:e,className:"p-1 rounded-md hover:bg-bg-hover transition-colors",children:a.jsx(Ar,{size:18})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.addWeChat")}),a.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.scanQr")})]})]}),a.jsx("div",{className:"flex-1 flex flex-col items-center justify-center px-6 py-8",children:l?a.jsxs("div",{className:"text-center space-y-4",children:[a.jsx("p",{className:"text-red-500",children:l}),a.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")})]}):i?a.jsxs("div",{className:"text-center space-y-4",children:[a.jsx("div",{className:"inline-block p-4 bg-white rounded-xl",children:a.jsx("img",{src:`https://api.qrserver.com/v1/create-qr-code/?size=240x240&data=${encodeURIComponent(i)}`,alt:"QR Code",className:"w-60 h-60"})}),a.jsx("p",{className:"text-sm text-text-secondary",children:c})]}):a.jsxs("div",{className:"text-center space-y-3",children:[a.jsx("div",{className:"w-8 h-8 mx-auto border-2 border-accent-brand border-t-transparent rounded-full animate-spin"}),a.jsx("p",{className:"text-sm text-text-tertiary",children:c})]})})]})}function Ab({onBack:e,t}){const[r,i]=N.useState(""),[s,c]=N.useState(""),[p,n]=N.useState("botId"),[o,l]=N.useState(!1),[h,m]=N.useState(null),b=N.useCallback(async()=>{if(!(!r.trim()||!s.trim())){l(!0),m(null);try{const _=await Fe("/api/v1/channels/wecom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({botId:r.trim(),secret:s.trim()})});if(!_.ok){const w=await _.json().catch(()=>({}));throw new Error(w.error||"Failed")}e()}catch(_){m((_==null?void 0:_.message)||"Failed")}finally{l(!1)}}},[r,s,e]);return a.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[a.jsxs("div",{className:"px-6 py-5 border-b border-border-primary flex items-center gap-3",children:[a.jsx("button",{onClick:e,className:"p-1 rounded-md hover:bg-bg-hover transition-colors",children:a.jsx(Ar,{size:18})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-semibold text-text-primary",children:t("remoteControl.addWeCom")}),a.jsx("p",{className:"text-sm text-text-tertiary",children:t("remoteControl.wecomBotIdHint")})]})]}),a.jsxs("div",{className:"px-6 py-8 max-w-md mx-auto w-full space-y-6",children:[h&&a.jsx("div",{className:"p-3 rounded-lg bg-red-500/10 text-red-500 text-sm",children:h}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium text-text-primary",children:"Bot ID"}),a.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:_=>i(_.target.value),autoFocus:!0,disabled:p==="secret",onKeyDown:_=>{_.key==="Enter"&&r.trim()&&n("secret")}})]}),p==="secret"&&a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium text-text-primary",children:"Secret"}),a.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:_=>c(_.target.value),autoFocus:!0,onKeyDown:_=>{_.key==="Enter"&&s.trim()&&b()}}),a.jsx("p",{className:"text-xs text-text-tertiary",children:t("remoteControl.wecomSecretHint")})]}),a.jsxs("div",{className:"flex gap-3 pt-2",children:[p==="botId"?a.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:()=>n("secret"),children:t("remoteControl.next")}):a.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")}),a.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 $b="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",Nb="/assets/logo-iZVLr450.svg";function Rb({isOpen:e,onClose:t,mainView:r,onNavigate:i}){const{t:s}=le(),{userInfo:c}=od(),p=Yt(m=>m.info),n=Yt(m=>m.fetch);N.useEffect(()=>{p||n()},[n,p]);const o=(c==null?void 0:c.userName)||(p==null?void 0:p.userName)||s("sidebar.user"),l=(p==null?void 0:p.version)||"",h=l&&l!=="dev"&&l!=="0.0.0"?`v${l}`:"";return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`sidebar-overlay ${e?"":"sidebar-overlay-hidden"}`,onClick:t}),a.jsxs("aside",{className:`sidebar ${e?"":"sidebar-closed"}`,children:[a.jsxs("div",{className:"sidebar-header",children:[a.jsx("img",{src:Nb,alt:"CodeBuddy",className:"sidebar-logo"}),a.jsx("span",{className:"sidebar-brand",children:"CodeBuddy"}),a.jsx("div",{className:"flex-1"}),a.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:a.jsx(Le,{size:16})})]}),a.jsxs("nav",{className:"sidebar-nav",children:[a.jsxs("button",{className:`sidebar-nav-item ${r==="chat"?"active":""}`,onClick:()=>i("chat"),children:[a.jsx(Sd,{size:16}),a.jsx("span",{children:s("sidebar.chatMode")})]}),a.jsxs("button",{className:`sidebar-nav-item ${r==="instances"?"active":""}`,onClick:()=>i("instances"),children:[a.jsx(bt,{size:16}),a.jsx("span",{children:s("sidebar.instances")})]}),a.jsxs("button",{className:`sidebar-nav-item ${r==="remote-control"?"active":""}`,onClick:()=>i("remote-control"),children:[a.jsx(di,{size:16}),a.jsx("span",{children:s("sidebar.remoteControl")})]})]}),a.jsx("div",{className:"sidebar-content",children:a.jsxs("div",{className:"px-3 py-1",children:[a.jsxs("button",{className:`sidebar-nav-item ${r==="tasks"?"active":""}`,onClick:()=>i("tasks"),children:[a.jsx(_d,{size:16}),a.jsx("span",{children:s("sidebar.nav.tasks")})]}),a.jsxs("button",{className:`sidebar-nav-item ${r==="terminal"?"active":""}`,onClick:()=>i("terminal"),children:[a.jsx(Ed,{size:16}),a.jsx("span",{children:s("sidebar.terminalMode")})]}),a.jsxs("button",{className:`sidebar-nav-item ${r==="editor"?"active":""}`,onClick:()=>i("editor"),children:[a.jsx(kp,{size:16}),a.jsx("span",{children:s("sidebar.editor")})]}),a.jsxs("button",{className:`sidebar-nav-item ${r==="plugins"?"active":""}`,onClick:()=>i("plugins"),children:[a.jsx(Tt,{size:16}),a.jsx("span",{children:s("sidebar.nav.plugins")})]}),a.jsxs("button",{className:`sidebar-nav-item ${r==="settings"?"active":""}`,onClick:()=>i("settings"),children:[a.jsx(wd,{size:16}),a.jsx("span",{children:s("sidebar.preferences")})]}),a.jsxs("button",{className:`sidebar-nav-item ${r==="docs"?"active":""}`,onClick:()=>i("docs"),children:[a.jsx(up,{size:16}),a.jsx("span",{children:s("sidebar.docs")})]})]})}),a.jsx("div",{className:"sidebar-footer",children:a.jsxs("div",{className:"sidebar-user",children:[a.jsx("img",{src:$b,alt:"User",className:"sidebar-user-avatar"}),a.jsxs("div",{className:"sidebar-user-info",children:[a.jsx("div",{className:"sidebar-user-name",children:o}),a.jsx("div",{className:"sidebar-user-status",children:h})]})]})})]})]})}function Ib({onMenuClick:e,onNewChat:t,onSplitTerminal:r,onHistory:i,hasHistory:s,rightActions:c}){const{t:p}=le(),{topic:n}=tt(),{mainView:o,layout:l,terminalTitle:h}=ge(),[m,b]=N.useState(!1),_=N.useRef(null),w=o==="terminal",u=At(l)<xu;N.useEffect(()=>{if(!m)return;const y=x=>{_.current&&!_.current.contains(x.target)&&b(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[m]);const f=N.useCallback(y=>{b(!1),r==null||r(y)},[r]),d=()=>{switch(o){case"chat":return n||p("chat.newChat");case"terminal":return h||p("terminal.title");case"instances":return p("instance.managerTitle");case"settings":return p("settings.title");case"tasks":return p("tasks.title");case"plugins":return p("sidebar.nav.plugins");default:return""}},g=()=>c||(w?a.jsxs("div",{ref:_,className:"relative",children:[a.jsx("button",{onClick:()=>u&&b(!m),className:`text-text-secondary transition-colors flex items-center justify-center w-8 h-8 rounded-full ${u?"hover:text-text-primary hover:bg-bg-secondary":"opacity-40 cursor-not-allowed"}`,title:u?void 0:p("terminal.maxPanes"),children:a.jsx(tc,{size:20})}),m&&a.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:[a.jsxs("button",{onClick:()=>f("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:[a.jsx(tc,{size:16,className:"text-text-secondary"}),a.jsx("span",{children:p("terminal.splitHorizontal")})]}),a.jsxs("button",{onClick:()=>f("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:[a.jsx(Fp,{size:16,className:"text-text-secondary"}),a.jsx("span",{children:p("terminal.splitVertical")})]})]})]}):o==="chat"?a.jsxs("div",{className:"flex items-center gap-1",children:[a.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:a.jsx(Xe,{size:20})}),s&&a.jsx("button",{onClick:i,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:p("sidebar.chatHistory"),children:a.jsx(bd,{size:18})})]}):null);return a.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:[a.jsx("div",{className:"flex items-center gap-4",children:a.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:a.jsx(xd,{size:20})})}),a.jsx("div",{className:"flex-1 flex justify-center items-center min-w-0 px-2",children:a.jsx("span",{className:"font-medium text-text-primary text-[15px] tracking-wide truncate max-w-full",children:d()})}),a.jsx("div",{className:"flex items-center",children:g()})]})}function Lb(e){var r;const t=new Map;for(const i of e){if(i.type!=="tool_call")continue;const s=i;if(!((r=s.subagent)!=null&&r.memberName))continue;const c=s.subagent.memberName,p=t.get(c),n=s.subagentTimeline||[],o=n.filter(h=>h.type==="tool_call_ref").length;let l;if(s.status==="running"&&s.children&&s.children.length>0)for(let h=n.length-1;h>=0;h--){const m=n[h];if(m.type==="tool_call_ref"){l=m.toolCallId;break}}p?(s.status==="running"&&(p.status="running",p.currentTool=l),p.toolCount=Math.max(p.toolCount,o),s.subagent.description&&(p.description=s.subagent.description)):t.set(c,{name:c,description:s.subagent.description||"",status:s.status,currentTool:l,toolCount:o})}return Array.from(t.values())}function Ob(){const{t:e}=le(),t=je(n=>n.timeline),r=je(n=>n.childToolCalls),i=N.useMemo(()=>Lb(t),[t]);if(!i.some(n=>n.status==="running")||i.length===0)return null;const c=i.filter(n=>n.status==="running").length,p=i.filter(n=>n.status!=="running").length;return a.jsxs("div",{className:"flex-none border-t border-border-muted/40 bg-bg-secondary/30",children:[a.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5",children:[a.jsx(Td,{size:13,className:"text-accent-purple"}),a.jsx("span",{className:"text-[12px] font-medium text-text-secondary",children:e("team.title")}),a.jsxs("span",{className:"text-[11px] text-text-tertiary",children:[e("team.activeCount").replace("{count}",String(c)),p>0?` · ${e("team.doneCount").replace("{count}",String(p))}`:""]})]}),a.jsx("div",{className:"flex flex-wrap gap-x-3 gap-y-1 px-4 pb-2",children:i.map(n=>a.jsx(Db,{member:n,childToolCalls:r},n.name))})]})}function Db({member:e,childToolCalls:t}){const r=e.status==="running",i=e.status==="failed";let s;if(e.currentTool){const c=t.get(e.currentTool);c&&(s=c.name||c.toolName)}return a.jsxs("div",{className:`inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[12px] transition-colors ${r?"bg-accent-purple/10 text-accent-purple":i?"bg-accent-red/10 text-accent-red":"bg-bg-secondary/50 text-text-tertiary"}`,children:[a.jsx("div",{className:`w-3.5 h-3.5 rounded-full flex items-center justify-center flex-shrink-0 ${r?"bg-accent-purple/20":"bg-transparent"}`,children:a.jsx(bt,{size:10})}),a.jsxs("span",{className:"font-medium",children:["@",e.name]}),s&&r&&a.jsx("span",{className:"text-[11px] opacity-70 truncate max-w-[120px]",children:s}),r&&a.jsx(Ce,{size:10,className:"animate-spin flex-shrink-0"}),i&&a.jsx(li,{size:10,className:"flex-shrink-0"}),!r&&!i&&a.jsx(Je,{size:10,className:"flex-shrink-0"})]})}function Mb(e,t){const r=[];for(const i of e)i.type==="tool_call"&&r.push(i);for(const i of t.values())r.push(i);return r}function jb(e){const t={};for(const r of e){const i=r.input||{},s=r.toolName;if(s==="TaskCreate"){const c=r.result,p=typeof c=="string"?c:c&&typeof c=="object"?String(c.text??c.output??""):"",n=!p&&Array.isArray(r.content)?r.content.reduce((h,m)=>{var _;const b=((_=m==null?void 0:m.content)==null?void 0:_.text)??(m==null?void 0:m.text)??(typeof m=="string"?m:"");return h||String(b)},""):"",o=(p||n).match(/Task #(\d+)/),l=o?o[1]:`t-${Object.keys(t).length+1}`;t[l]={id:l,subject:i.subject?String(i.subject):"",status:"pending",owner:i.owner?String(i.owner):void 0,activeForm:i.activeForm?String(i.activeForm):void 0}}else if(s==="TaskUpdate"){const c=i.taskId?String(i.taskId):void 0;if(c&&t[c]){const p=t[c];i.status&&i.status!=="deleted"&&(p.status=String(i.status)),i.subject&&(p.subject=String(i.subject)),i.owner!==void 0&&(p.owner=i.owner?String(i.owner):void 0),i.activeForm&&(p.activeForm=String(i.activeForm)),i.status==="deleted"&&delete t[c]}}}return Object.values(t)}function Fb(e){let t=0;for(const r of e)(r.toolName==="TaskCreate"||r.toolName==="TaskUpdate")&&t++;return t}function Pb({status:e}){switch(e){case"completed":return a.jsx(gd,{size:14,className:"text-accent-green flex-shrink-0"});case"in_progress":return a.jsx(Ce,{size:14,className:"text-accent-brand flex-shrink-0 animate-spin"});default:return a.jsx(hp,{size:14,className:"text-text-tertiary flex-shrink-0"})}}function Bb(){const e=je(y=>y.timeline),t=je(y=>y.childToolCalls),r=je(y=>y.isAgentRunning),{t:i}=le(),[s,c]=N.useState(!0),p=N.useRef(0),[n,o]=N.useState(!1),l=N.useRef(r),h=N.useMemo(()=>Mb(e,t),[e,t]),m=N.useMemo(()=>jb(h),[h]),b=N.useMemo(()=>Fb(h),[h]);N.useEffect(()=>{!l.current&&r&&(p.current=b,o(!0)),l.current=r},[r,b]),N.useEffect(()=>{n&&b>p.current&&o(!1)},[n,b]);const _=N.useCallback(()=>c(y=>!y),[]),w=N.useCallback(y=>{y.stopPropagation(),p.current=b,o(!0)},[b]);if(m.length===0||m.length>0&&m.every(y=>y.status==="completed")&&!r||n)return null;const u=m.filter(y=>y.status==="completed").length,f=m.length,d=m.find(y=>y.status==="in_progress"),g=d?d.activeForm||d.subject:`${u}/${f} ${i("todo.title")}`;return a.jsx("div",{className:"flex-none px-4 sm:px-6 pb-1",children:a.jsx("div",{className:"max-w-3xl mx-auto",children:a.jsxs("div",{className:"rounded-lg border border-border-muted/60 bg-bg-secondary/50 shadow-sm overflow-hidden backdrop-blur-sm",children:[a.jsxs("button",{onClick:_,className:"flex items-center gap-2 w-full px-3 py-1.5 hover:bg-bg-hover/30 transition-colors cursor-pointer",children:[a.jsx(vd,{size:13,className:"text-text-tertiary flex-shrink-0"}),a.jsx("span",{className:"text-xs font-medium text-text-primary",children:i("todo.title")}),a.jsxs("span",{className:"text-[11px] text-text-tertiary tabular-nums",children:[u,"/",f]}),!s&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"text-border-muted/60 select-none",children:"|"}),d&&r&&a.jsx(Ce,{size:10,className:"text-accent-brand animate-spin flex-shrink-0"}),a.jsx("span",{className:"text-xs text-text-secondary truncate flex-1 text-left",children:g})]}),a.jsx("span",{className:"flex-1"}),!r&&a.jsx("span",{role:"button",tabIndex:0,onClick:w,onKeyDown:y=>{y.key==="Enter"&&w(y)},className:"text-text-tertiary hover:text-text-primary p-0.5 rounded transition-colors flex-shrink-0",children:a.jsx(Le,{size:12})}),s?a.jsx(ct,{size:12,className:"text-text-tertiary flex-shrink-0"}):a.jsx(Qe,{size:12,className:"text-text-tertiary flex-shrink-0"})]}),s&&a.jsx("div",{className:"border-t border-border-muted/40 px-3 py-1.5 space-y-0.5 max-h-52 overflow-y-auto",children:m.map((y,x)=>a.jsxs("div",{className:`flex items-center gap-2 py-0.5 text-xs ${y.status==="in_progress"?"text-text-primary":y.status==="completed"?"text-text-tertiary":"text-text-secondary"}`,children:[a.jsx(Pb,{status:y.status}),a.jsxs("span",{className:`truncate ${y.status==="completed"?"line-through":""}`,children:[x+1,". ",y.status==="in_progress"?y.activeForm||y.subject||i("todo.untitled"):y.subject||i("todo.untitled")]})]},y.id))})]})})})}function Ub(){const{viewState:e,checkAuth:t}=su(),{status:r,sessionId:i,topic:s,setPromptSuggestion:c,setTopic:p}=tt(),{connect:n}=sp(),{clearChat:o}=je(),{t:l,resolved:h}=le(),[m,b]=N.useState(()=>{try{const I=sessionStorage.getItem("codebuddy_sidebar_open");return I!==null?window.innerWidth>=768?I==="true":!1:window.innerWidth>=768}catch{return window.innerWidth>=768}}),_=N.useRef(m),[w,v]=N.useState(!1),[u,f]=N.useState(!1),{splitPane:d,mainView:g,setMainView:y}=ge(),x=N.useCallback(I=>{b(U=>{const z=typeof I=="function"?I(U):I;_.current=z;try{sessionStorage.setItem("codebuddy_sidebar_open",String(z))}catch{}return z})},[]);N.useEffect(()=>{const I=window.matchMedia("(min-width: 768px)"),U=z=>{z.matches?b(_.current):b(!1)};return I.addEventListener("change",U),()=>I.removeEventListener("change",U)},[]);const[k,E]=N.useState(!1),S=N.useRef();N.useEffect(()=>r!=="connected"?void 0:((()=>{fetch("/api/v1/sessions",{headers:ke()}).then(U=>U.ok?U.json():null).then(U=>{U!=null&&U.sessions&&E(U.sessions.length>1)}).catch(()=>{})})(),()=>{S.current&&clearTimeout(S.current)}),[r,i]);const C=N.useCallback(I=>{d(I)},[d]),R=N.useCallback(async()=>{if(i){try{await Ie().prompt(i,"/clear")}catch(I){console.error("New chat (/clear) failed:",I)}o(),p(null),c(null),y("chat"),window.location.hash="/chat"}},[i,o,p,c,y]),$=N.useCallback(async I=>{if(i){try{await Ie().prompt(i,`/resume ${I}`)}catch(U){console.error("Switch session failed:",U)}y("chat"),window.location.hash="/chat"}},[i,y]),D=N.useCallback(I=>{y(I),window.location.hash=`/${I}`,window.innerWidth<768&&b(!1)},[y]);if(N.useEffect(()=>{const I=new URLSearchParams(window.location.search),U=I.get("password"),z=I.get("token");if(U||z){au(U||z),I.delete("password"),I.delete("token");const W=I.toString()?`${window.location.pathname}?${I.toString()}`:window.location.pathname;window.history.replaceState({},"",W)}t()},[t]),N.useEffect(()=>{if(e==="authenticated"){const I=ou();y(I),(!window.location.hash||window.location.hash==="#")&&(window.location.hash=`/${I}`)}},[e,y]),N.useEffect(()=>Zh(U=>{y(U)}),[y]),N.useEffect(()=>{if(e==="authenticated"){const I=Mt()||void 0;n({token:I,continue:!0})}},[e,n]),N.useEffect(()=>{document.documentElement.lang=h,document.title=s?`${s} - CodeBuddy Code`:l("page.title")},[h,l,s]),e==="loading")return a.jsx("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:a.jsx("div",{className:"flex-1 flex items-center justify-center",children:a.jsx(Ze,{size:"large",text:l("app.connecting")})})});if(e==="login")return a.jsx(wb,{});const A=()=>{if(r==="connecting")return a.jsx("div",{className:"flex-1 flex items-center justify-center",children:a.jsx(Ze,{size:"large",text:l("app.connecting")})});if(r!=="connected"&&g!=="settings"&&g!=="docs")return a.jsx("div",{className:"flex-1 flex items-center justify-center",children:a.jsxs("div",{className:"text-center",children:[a.jsx("div",{className:"text-text-secondary mb-4 font-medium",children:l("app.connectFailed")}),a.jsx("button",{onClick:()=>n(),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:l("app.retry")})]})});switch(g){case"chat":return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex-1 overflow-hidden w-full relative",children:a.jsx(Mh,{onClickCloseBottomSheet:()=>f(!1)})}),a.jsx(Ob,{}),a.jsx(Bb,{}),a.jsx("div",{className:"flex-none bg-bg-primary",children:a.jsx(Sb,{onNavigate:D,onNewChat:R,onHistory:()=>v(!0),mainView:g,showBottomSheet:u,setShowBottomSheet:f})})]});case"tasks":return a.jsx(Iu,{});case"plugins":return a.jsx($u,{});case"terminal":return null;case"instances":return a.jsx(Au,{});case"remote-control":return a.jsx(Eb,{onNavigate:D});case"editor":return a.jsx(If,{onMenuClick:()=>x(I=>!I)});case"settings":return a.jsx(Ru,{});case"docs":return a.jsx(Dc,{});default:return null}};return g==="docs"&&window.location.hash.includes("standalone")?a.jsx("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:a.jsx(Dc,{})}):a.jsxs("div",{className:"flex h-screen h-[100dvh] bg-bg-primary text-text-primary transition-colors duration-200 font-sans overflow-hidden",children:[a.jsx(Rb,{isOpen:m,onClose:()=>x(!1),mainView:g,onNavigate:D}),a.jsxs("div",{className:"flex-1 flex flex-col min-w-0 relative transition-all duration-300 h-full",children:[g!=="editor"&&a.jsx(Ib,{onMenuClick:()=>x(I=>!I),onNewChat:R,onSplitTerminal:C,onHistory:()=>v(!0),hasHistory:k}),a.jsxs("div",{className:"flex-1 flex flex-col w-full overflow-hidden relative",children:[a.jsx("div",{className:"flex-1 flex flex-col w-full",style:{display:g==="terminal"?"flex":"none"},children:a.jsx(Ou,{})}),g!=="terminal"&&A()]}),a.jsx(Of,{isOpen:w,onClose:()=>v(!1),onSwitchSession:$})]})]})}rp.createRoot(document.getElementById("root")).render(a.jsx(N.StrictMode,{children:a.jsx(Ub,{})}));