circuschief 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/server/src/api/commands.js +50 -55
- package/packages/server/src/api/projects-helpers.js +13 -4
- package/packages/server/src/api/projects.js +33 -18
- package/packages/server/src/cli.js +82 -0
- package/packages/server/src/db/AgentCallLogRepository.js +30 -31
- package/packages/server/src/db/ConversationRepository.js +27 -16
- package/packages/server/src/db/ProjectRepository.js +21 -31
- package/packages/server/src/db/QuickResponseRepository.js +14 -19
- package/packages/server/src/db/migrations/sessionsMigrations.js +61 -61
- package/packages/server/src/index.js +42 -29
- package/packages/server/src/services/commandRunner.js +52 -99
- package/packages/server/src/services/kanbanTriggers.js +83 -56
- package/packages/server/src/services/schedulerService.js +68 -44
- package/packages/server/src/services/sessionExecution.js +102 -61
- package/packages/server/src/services/sessionManager.js +63 -37
- package/packages/server/src/services/summaryService.js +56 -53
- package/packages/server/src/services/templateTriggerService.js +58 -31
- package/packages/server/src/ws/WebSocketManager.js +5 -0
- package/packages/web/dist/assets/ActiveSessionsView-Bd8FWObJ.js +1 -0
- package/packages/web/dist/assets/ActiveSessionsView-DfYXc6dz.css +1 -0
- package/packages/web/dist/assets/{AgentLogsView-c42v_j_5.js → AgentLogsView-C4FTXUH8.js} +1 -1
- package/packages/web/dist/assets/{ArchiveConfirmModal-DBuOmtXu.js → ArchiveConfirmModal-MpqhAjWZ.js} +1 -1
- package/packages/web/dist/assets/{CommandButtonDetailView-CkKJ3Htz.js → CommandButtonDetailView-_tOjEGjk.js} +1 -1
- package/packages/web/dist/assets/{EffortLevelSelector-BHJHSqul.js → EffortLevelSelector-B4z3zfJ6.js} +1 -1
- package/packages/web/dist/assets/{GeneralSettingsView-CdxfteZ2.js → GeneralSettingsView-BZ4x6T_N.js} +1 -1
- package/packages/web/dist/assets/{InterpolationHelp-DabnHhE4.js → InterpolationHelp-CIlrD5JA.js} +1 -1
- package/packages/web/dist/assets/MarkdownEditor-DBvC-1OX.js +2 -0
- package/packages/web/dist/assets/{ModelSelector-BWIU4ud7.js → ModelSelector-BTmHxqCs.js} +1 -1
- package/packages/web/dist/assets/{NewSessionView-BIZl8QlH.js → NewSessionView-Cdgt6wnk.js} +2 -2
- package/packages/web/dist/assets/{PathChooser-nhat_Pz4.js → PathChooser-CPEkT0uu.js} +1 -1
- package/packages/web/dist/assets/{ProjectEditView-DD-2_VrW.js → ProjectEditView-D59hr-v2.js} +1 -1
- package/packages/web/dist/assets/{ProjectListView-BOWbfoXQ.js → ProjectListView-gG4AR1i9.js} +1 -1
- package/packages/web/dist/assets/{ProjectNewView-DC4uvSn2.js → ProjectNewView-BPjn1O4f.js} +1 -1
- package/packages/web/dist/assets/ProvidersView-C04jD9NZ.js +1 -0
- package/packages/web/dist/assets/{QuickResponseSettings-Bk9mq96x.js → QuickResponseSettings-DaEXIp3-.js} +1 -1
- package/packages/web/dist/assets/{QuickResponsesPanel-BRvcnkQr.js → QuickResponsesPanel-CIdblIbt.js} +1 -1
- package/packages/web/dist/assets/{ResizableTextarea-CwGM4P3c.js → ResizableTextarea-DJekfIXO.js} +1 -1
- package/packages/web/dist/assets/{SessionCard-BGDVHU9u.js → SessionCard-CAdetaVH.js} +1 -1
- package/packages/web/dist/assets/{SessionCard-D20G3bX8.css → SessionCard-CcqIjL8q.css} +1 -1
- package/packages/web/dist/assets/{SessionDetailView-CHYrx2Ab.js → SessionDetailView-BOdnH-cW.js} +17 -17
- package/packages/web/dist/assets/{SessionDetailView-7bWgC7Es.css → SessionDetailView-mnGRMaLY.css} +1 -1
- package/packages/web/dist/assets/{SessionFormOptions-8qvL25ca.js → SessionFormOptions-Dy57kl-x.js} +1 -1
- package/packages/web/dist/assets/{SessionListView-BAIBtJF7.css → SessionListView-78k6TTz6.css} +1 -1
- package/packages/web/dist/assets/SessionListView-DUMUXfp4.js +1 -0
- package/packages/web/dist/assets/{SessionLogStream-B-w3n4c3.js → SessionLogStream-DHPxkaaK.js} +1 -1
- package/packages/web/dist/assets/{SettingsView-Dd0ZJ4Nv.js → SettingsView-BzrkWbH3.js} +1 -1
- package/packages/web/dist/assets/{SlashCommandWizard-CzyLjsdJ.js → SlashCommandWizard-BAC_oF5i.js} +1 -1
- package/packages/web/dist/assets/{SummarySettingsView-DTbh7uAF.js → SummarySettingsView-J8BQBEe9.js} +1 -1
- package/packages/web/dist/assets/{TemplateDetailView-BOnhkdtH.js → TemplateDetailView-2ilWbANb.js} +1 -1
- package/packages/web/dist/assets/{commandButtons-CY87n64i.js → commandButtons-aIO6hqZn.js} +1 -1
- package/packages/web/dist/assets/{index-DcA6pqXV.js → index-B6W39ctH.js} +1 -1
- package/packages/web/dist/assets/{index-NzLFVaCi.js → index-BGmIjKYB.js} +1 -1
- package/packages/web/dist/assets/{index-CO4EBOFw.js → index-BwChYYnJ.js} +1 -1
- package/packages/web/dist/assets/{index-BshkV3r5.js → index-CDRRIqmL.js} +1 -1
- package/packages/web/dist/assets/{index-Dx0sYW7H.js → index-CSA0abwg.js} +1 -1
- package/packages/web/dist/assets/{index-Ce6sL47U.js → index-CWTVEGZv.js} +1 -1
- package/packages/web/dist/assets/{index-i1o916sk.js → index-CjJX0Eli.js} +1 -1
- package/packages/web/dist/assets/{index-BRUlEEHm.js → index-CpNgrGiE.js} +1 -1
- package/packages/web/dist/assets/{index-gMpnPf1V.js → index-DCxYGijD.js} +1 -1
- package/packages/web/dist/assets/{index-jGjvGBfk.js → index-DF6g7nEj.js} +1 -1
- package/packages/web/dist/assets/{index-aCw-iXPX.js → index-DMl4xPIQ.js} +1 -1
- package/packages/web/dist/assets/{index--OtPwBbF.js → index-DMsWg7Ax.js} +3 -3
- package/packages/web/dist/assets/{index-CjHb9rXv.js → index-DePUHO3n.js} +1 -1
- package/packages/web/dist/assets/{index-C6m-WfqP.js → index-DvfYqZgb.js} +1 -1
- package/packages/web/dist/assets/{index-DkLkDgig.js → index-DxUd3T5E.js} +23 -23
- package/packages/web/dist/assets/{index-BXUcbV4K.js → index-GLkcnEcc.js} +1 -1
- package/packages/web/dist/assets/{index-DPwwgloE.js → index-ZDCxncSd.js} +1 -1
- package/packages/web/dist/assets/{index-DxboI9i-.js → index-f24-2-RT.js} +1 -1
- package/packages/web/dist/assets/{index-Bi4bQ_UB.js → index-uZfsnHcN.js} +1 -1
- package/packages/web/dist/assets/{projects-C2Y29PSJ.js → projects-DGF_kWVA.js} +1 -1
- package/packages/web/dist/assets/{providers-CeJXuo0Q.js → providers-Cm7emO-N.js} +1 -1
- package/packages/web/dist/assets/sessions-CH7PeypH.js +1 -0
- package/packages/web/dist/assets/{settings-BplIxCbi.js → settings-C7sXXJ-n.js} +1 -1
- package/packages/web/dist/index.html +1 -1
- package/packages/web/dist/assets/ActiveSessionsView-BryJ-V3f.js +0 -1
- package/packages/web/dist/assets/ActiveSessionsView-ofSvx-K1.css +0 -1
- package/packages/web/dist/assets/MarkdownEditor-k4zBLGqU.js +0 -2
- package/packages/web/dist/assets/ProvidersView-DT5afh1V.js +0 -1
- package/packages/web/dist/assets/SessionListView-927Yq6Il.js +0 -1
- package/packages/web/dist/assets/sessions-CMby7ij3.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
var T0=Object.defineProperty;var Cc=i=>{throw TypeError(i)};var C0=(i,e,t)=>e in i?T0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var ve=(i,e,t)=>C0(i,typeof e!="symbol"?e+"":e,t),Ol=(i,e,t)=>e.has(i)||Cc("Cannot "+t);var S=(i,e,t)=>(Ol(i,e,"read from private field"),t?t.call(i):e.get(i)),pe=(i,e,t)=>e.has(i)?Cc("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ne=(i,e,t,n)=>(Ol(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t),K=(i,e,t)=>(Ol(i,e,"access private method"),t);var xs=(i,e,t,n)=>({set _(r){ne(i,e,r,t)},get _(){return S(i,e,n)}});import{a4 as ie,a0 as P,d as w,m as le,o as Ee,N as $i,a5 as qr,y as zt,l as he,F as ds,x as ke,a6 as qi,X as Me,a7 as A0,a8 as qn,I as Dt,$ as ua,V as _0,a9 as E0,P as L,aa as L0}from"./index-DkLkDgig.js";import{M as R0}from"./SessionDetailView-CHYrx2Ab.js";const M0=i=>{const e=typeof i;return e!=="function"&&e!=="object"||i===null},Z0=i=>{const e=i.flags===""?void 0:i.flags;return new RegExp(i.source,e)},kr=(i,e=new WeakMap)=>{if(i===null||M0(i))return i;if(e.has(i))return e.get(i);if(i instanceof RegExp)return Z0(i);if(i instanceof Date)return new Date(i.getTime());if(i instanceof Function)return i;if(i instanceof Map){const n=new Map;return e.set(i,n),i.forEach((r,s)=>{n.set(s,kr(r,e))}),n}if(i instanceof Set){const n=new Set;e.set(i,n);for(const r of i)n.add(kr(r,e));return n}if(Array.isArray(i)){const n=[];return e.set(i,n),i.forEach(r=>{n.push(kr(r,e))}),n}const t={};e.set(i,t);for(const n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=kr(i[n],e));return t},Df=(i,e=200)=>{let t=0;return(...n)=>new Promise(r=>{t&&(clearTimeout(t),r("cancel")),t=window.setTimeout(()=>{i.apply(void 0,n),t=0,r("done")},e)})},X0=(i,e={_blank:!0,nofollow:!0})=>{const t=document.createElement("a");t.href=i,e._blank&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),t.click()},vh=()=>{let i=-1;return(e,t,n,r=100)=>{const s=()=>{n&&(typeof r=="number"?setTimeout(n,r):n())};i!==-1&&(cancelAnimationFrame(i),s());let o=e.scrollTop;const l=()=>{i=-1;const a=t-o;o=o+a/5,Math.abs(a)<1?(e.scrollTo(0,t),s()):(e.scrollTo(0,o),i=requestAnimationFrame(l))};i=requestAnimationFrame(l)}},I0=(i,e=200)=>{let t=0,n=null;const r=s=>{t===0&&(t=s),s-t>=e?(i.apply(void 0,n),n=null,t=0):window.requestAnimationFrame(r)};return(...s)=>{n===null&&window.requestAnimationFrame(r),n=s}},z0=i=>{const e=t=>{const{scrollHeight:n,scrollWidth:r,offsetHeight:s,offsetWidth:o,scrollLeft:l,scrollTop:a}=i,h=t.x,c=t.y,u=f=>{const p=a+c-f.y,m=l+h-f.x,O=n-s,g=r-o,b={};m>=0&&m<=g&&(b.left=m),p>=0&&p<=O&&(b.top=p),i.scroll(b)};document.addEventListener("mousemove",u);const d=()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d)};return i.addEventListener("mousedown",e),()=>{i.removeEventListener("mousedown",e)}},da=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,mo=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),Uo=(i,e,t={})=>{if(Array.isArray(i)&&Array.isArray(e))return fa(i,e,t);const{excludeKeys:n}=t;for(const r in e){const s=e[r],o=i[r];n&&n(r)?i[r]=s:Array.isArray(s)&&Array.isArray(o)?i[r]=fa(o,s,t):mo(s)&&mo(o)?i[r]=Uo(o,s,t):i[r]=s}return i},fa=(i,e,t)=>{const n=i.slice();return e.forEach((r,s)=>{const o=n[s];Array.isArray(r)&&Array.isArray(o)?n[s]=fa(o,r,t):mo(r)&&mo(o)?n[s]=Uo(o,r,t):n[s]=r}),n},v="md-editor",V0="MdEditor",Pe="https://unpkg.com",D0=`${Pe}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Ac={main:`${Pe}/prettier@3.8.1/standalone.js`,markdown:`${Pe}/prettier@3.8.1/plugins/markdown.js`},B0={css:`${Pe}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${Pe}/cropperjs@1.6.2/dist/cropper.min.js`},q0=`${Pe}/screenfull@5.2.0/dist/screenfull.js`,j0=`${Pe}/mermaid@11.12.3/dist/mermaid.min.js`,W0={js:`${Pe}/katex@0.16.33/dist/katex.min.js`,css:`${Pe}/katex@0.16.33/dist/katex.min.css`},pa={a11y:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Y0=`${Pe}/echarts@6.0.0/dist/echarts.min.js`,N0={highlight:{js:{integrity:"sha384-RH2xi4eIQ/gjtbs9fUXM68sLSi99C7ZWBRX1vDrVv6GQXRibxXLbwO2NGZB74MbU",crossOrigin:"anonymous"},css:{a11y:{light:{integrity:"sha384-qdZDAN3jffvh670RHw1wxLekabidEFaNRninYgIzBvMbL6WlHdXeHS/Bt+vx33lN",crossOrigin:"anonymous"},dark:{integrity:"sha384-2QAAjX8pqaM5azX68KWI2wExF6Q13kY4kEiQFY4b/1zPe6rpgmTByNpDEllH3sb+",crossOrigin:"anonymous"}},atom:{light:{integrity:"sha384-w6Ujm1VWa9HYFqGc89oAPn/DWDi2gUamjNrq9DRvEYm2X3ClItg9Y9xs1ViVo5b5",crossOrigin:"anonymous"},dark:{integrity:"sha384-oaMLBGEzBOJx3UHwac0cVndtX5fxGQIfnAeFZ35RTgqPcYlbprH9o9PUV/F8Le07",crossOrigin:"anonymous"}},github:{light:{integrity:"sha384-eFTL69TLRZTkNfYZOLM+G04821K1qZao/4QLJbet1pP4tcF+fdXq/9CdqAbWRl/L",crossOrigin:"anonymous"},dark:{integrity:"sha384-wH75j6z1lH97ZOpMOInqhgKzFkAInZPPSPlZpYKYTOqsaizPvhQZmAtLcPKXpLyH",crossOrigin:"anonymous"}},gradient:{light:{integrity:"sha384-yErHBR8aEZPxRl3XmR8dGSRAclMlnSRRw8sXQLcmPWzWUvb56BzQmBw3EWHl7QGI",crossOrigin:"anonymous"},dark:{integrity:"sha384-lUCvtSOdvDbp5hLWKgwz/taFu1HxlpqES2OVP5UG2JMTfnU481gXcBhGF9lAGoSr",crossOrigin:"anonymous"}},kimbie:{light:{integrity:"sha384-tloeSLUPczAvoZ48TUz+OxRie0oYLCRwlkadUXovGzzJEIbNQB2TkfUuvJ6SW5Mi",crossOrigin:"anonymous"},dark:{integrity:"sha384-o5F1vUaMNOmou1sQrsWiFo4/QUGSV0svqNZW+EesmKxWC8MpFJcveBhAyfvTHbGb",crossOrigin:"anonymous"}},paraiso:{light:{integrity:"sha384-5j6QHU2Hwg1ehtlIQNDebhETDB8bga3/88hzBFsMRaGmgQHCftqIN7GZNDNw0vTL",crossOrigin:"anonymous"},dark:{integrity:"sha384-I5vnnMQu0LWDQnHpT61xyoMwKarAB8jpZkB2ioFOlmzUFnIFaV4QbUwlBBOMKhTH",crossOrigin:"anonymous"}},qtcreator:{light:{integrity:"sha384-iEBgHrwi8Hv4dSZBz+MOGvS05rF7I7fGKM2fASQyE9jn2Istg9Qd5dSoK18WyRTB",crossOrigin:"anonymous"},dark:{integrity:"sha384-D6LXJGWNR4QV7gnpuP3ccbvOYoR02td3cU0y7lESABPg/tzCSC4m+y+M2TtrmpHc",crossOrigin:"anonymous"}},stackoverflow:{light:{integrity:"sha384-FMwt7cTGo4aLxZnno5k0xTj0W4gmi48Kwept+y/oQmE6cFk36Kr+QJZOKNOQwORe",crossOrigin:"anonymous"},dark:{integrity:"sha384-iL+x+BroCyHm/p2c6sMA9umXhdCWp2cKe4QUjPeMzHgwXAk+ZxHyIGP3NZTZensU",crossOrigin:"anonymous"}}}},prettier:{standaloneJs:{integrity:"sha384-Q+dEbdxfNurK4ryC0T77wU8G3EYhxdAierqqKOppGHnJ4e/85wVnMXDNWbaYYghP",crossOrigin:"anonymous"},parserMarkdownJs:{integrity:"sha384-UGdkYlLyq47VQhe9mHyNzuPhBTL9GA9YO5Vb0sXf2fnMYGuSMGAbZ8upsQj1+u4O",crossOrigin:"anonymous"}},cropper:{js:{integrity:"sha384-jrOgQzBlDeUNdmQn3rUt/PZD+pdcRBdWd/HWRqRo+n2OR2QtGyjSaJC0GiCeH+ir",crossOrigin:"anonymous"},css:{integrity:"sha384-6LFfkTKLRlzFtgx8xsWyBdKGpcMMQTkv+dB7rAbugeJAu1Ym2q1Aji1cjHBG12Xh",crossOrigin:"anonymous"}},screenfull:{js:{integrity:"sha384-Qfbv8upMDu/ikv42M0Jnym2hahbDQ77Nm8PGU0G+iA6UIwt1+scE6P1qKXA0anWU",crossOrigin:"anonymous"}},mermaid:{js:{integrity:"sha384-jFhLSLFn4m565eRAS0CDMWubMqOtfZWWbE8kqgGdU+VHbJ3B2G/4X8u+0BM8MtdU",crossOrigin:"anonymous"}},katex:{js:{integrity:"sha384-YPHNAPyrxGS8BNnA7Q4ommqra8WQPEjooVSLzFgwgs8OXJBvadbyvx4QpfiFurGr",crossOrigin:"anonymous"},css:{integrity:"sha384-fgYS3VC1089n2J3rVcEbXDHlnDLQ9B2Y1hvpQ720q1NvxCduQqT4JoGc4u2QCnzE",crossOrigin:"anonymous"}},echarts:{js:{integrity:"sha384-F07Cpw5v8spSU0H113F33m2NQQ/o6GqPTnTjf45ssG4Q6q58ZwhxBiQtIaqvnSpR",crossOrigin:"anonymous"}}},yh=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","previewOnly","htmlPreview","catalog","github"],kh=["markdownTotal","=","scrollSwitch"],Oo={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},ze={editorExtensions:{highlight:{js:D0,css:pa},prettier:{standaloneJs:Ac.main,parserMarkdownJs:Ac.markdown},cropper:{...B0},screenfull:{js:q0},mermaid:{js:j0,enableZoom:!0},katex:{...W0},echarts:{js:Y0}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:i=>i,markdownItConfig:()=>{},markdownItPlugins:i=>i,mermaidConfig:i=>i,katexConfig:i=>i,echartsConfig:i=>i},G0=i=>Uo(ze,i,{excludeKeys(e){return/[iI]{1}nstance/.test(e)}}),ws=.1,at=({instance:i,ctx:e,props:t={}},n="default")=>{const r=(i==null?void 0:i.$slots[n])||(e==null?void 0:e.slots[n]);return(r?r(i):"")||t[n]},F0={overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"},disabled:{type:Boolean,default:void 0}},rr=ie({name:`${v}-dropdown`,props:F0,setup(i,e){const t=`${v}-dropdown-hidden`,n=zt({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),r=he(),s=he(),o=()=>{var k,$;if(i.disabled)return!1;n.triggerHover=!0;const c=r.value,u=s.value;if(!c||!u)return;const d=c.getBoundingClientRect(),f=c.offsetTop,p=c.offsetLeft,m=d.height,O=d.width,g=c.getRootNode(),b=((k=g.querySelector(i.relative))==null?void 0:k.scrollLeft)||0,Q=(($=g.querySelector(i.relative))==null?void 0:$.clientWidth)||0;let x=p-u.offsetWidth/2+O/2-b;x+u.offsetWidth>b+Q&&(x=b+Q-u.offsetWidth),x<0&&(x=0),n.overlayStyle={...n.overlayStyle,insetBlockStart:f+m+"px",insetInlineStart:x+"px"},i.onChange(!0)},l=()=>{if(i.disabled)return!1;n.overlayHover=!0};le(()=>i.visible,c=>{c?n.overlayClass=n.overlayClass.filter(u=>u!==t):n.overlayClass.push(t)});let a=-1;const h=c=>{r.value===c.target?n.triggerHover=!1:n.overlayHover=!1,clearTimeout(a),a=window.setTimeout(()=>{!n.overlayHover&&!n.triggerHover&&i.onChange(!1)},10)};return Ee(()=>{r.value.addEventListener("mouseenter",o),r.value.addEventListener("mouseleave",h),s.value.addEventListener("mouseenter",l),s.value.addEventListener("mouseleave",h)}),$i(()=>{r.value.removeEventListener("mouseenter",o),r.value.removeEventListener("mouseleave",h),s.value.removeEventListener("mouseenter",l),s.value.removeEventListener("mouseleave",h)}),()=>{const c=at({ctx:e}),u=at({props:i,ctx:e},"overlay"),d=qr(c instanceof Array?c[0]:c,{ref:r,key:"cloned-dropdown-trigger"}),f=w("div",{class:[`${v}-dropdown`,n.overlayClass],style:n.overlayStyle,ref:s},[w("div",{class:`${v}-dropdown-overlay`},[u instanceof Array?u[0]:u])]);return[d,f]}}}),U0={title:{type:String,default:""},visible:{type:Boolean,default:void 0},trigger:{type:[String,Object],default:void 0},onChange:{type:Function,default:void 0},overlay:{type:[String,Object],default:void 0},insert:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},previewTheme:{type:String,default:void 0},codeTheme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},showToolbarName:{type:Boolean,default:void 0}},Tr=ie({name:"DropdownToolbar",props:U0,emits:["onChange"],setup(i,e){const t=P("editorId"),n=r=>{var s;(s=i.onChange)==null||s.call(i,r),e.emit("onChange",r)};return()=>{const r=at({props:i,ctx:e},"trigger"),s=at({props:i,ctx:e},"overlay"),o=at({props:i,ctx:e});return w(rr,{relative:`#${t}-toolbar-wrapper`,visible:i.visible,onChange:n,overlay:s,disabled:i.disabled},{default:()=>[w("button",{class:[`${v}-toolbar-item`,i.disabled&&`${v}-disabled`],title:i.title||"",disabled:i.disabled,type:"button"},[o||r])]})}}});Tr.install=i=>(i.component(Tr.name,Tr),i);const Ho="onSave",Sh="changeCatalogVisible",Bf="changeFullscreen",_c="pageFullscreenChanged",Ec="fullscreenChanged",Lc="previewChanged",Rc="previewOnlyChanged",Mc="htmlPreviewChanged",Zc="catalogVisibleChanged",Ks="buildFinished",Oi="errorCatcher",re="replace",Ko="uploadImage",qf="ctrlZ",jf="ctrlShiftZ",Cr="catalogChanged",Wf="pushCatalog",xh="rerender",Yf="eventListener",Nf="taskStateChanged",Gf="sendEditorView",go="getEditorView";class H0{constructor(){ve(this,"pools",{})}remove(e,t,n){const r=this.pools[e]&&this.pools[e][t];r&&(this.pools[e][t]=r.filter(s=>s!==n))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...n){this.pools[e]||(this.pools[e]={});const r=this.pools[e][t];r&&r.forEach(s=>{try{s(...n)}catch(o){console.error(`${t} monitor event exception!`,o)}})}}const X=new H0,K0=(i,e="image.png")=>{const t=i.split(","),n=t[0].match(/:(.*?);/);if(n){const r=n[1],s=atob(t[1]);let o=s.length;const l=new Uint8Array(o);for(;o--;)l[o]=s.charCodeAt(o);return new File([l],e,{type:r})}return null},J0=(i,e)=>{if(!i)return i;const t=e.split(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CWTVEGZv.js","assets/index-DxUd3T5E.js","assets/index-gmCCsCQ1.css","assets/SessionDetailView-BOdnH-cW.js","assets/sessions-CH7PeypH.js","assets/ApiClient-Dbs1H78V.js","assets/settings-C7sXXJ-n.js","assets/projects-DGF_kWVA.js","assets/EffortLevelSelector-B4z3zfJ6.js","assets/EffortLevelSelector-BQaQmU2d.css","assets/SessionLogStream-DHPxkaaK.js","assets/commandButtons-aIO6hqZn.js","assets/SessionLogStream-zPUTiGbe.css","assets/ArchiveConfirmModal-MpqhAjWZ.js","assets/ModelSelector-BTmHxqCs.js","assets/providers-Cm7emO-N.js","assets/ModelSelector-DPPD-92R.css","assets/SlashCommandWizard-BAC_oF5i.js","assets/SlashCommandWizard-BB30cSvo.css","assets/ArchiveConfirmModal-CQZeuYBz.css","assets/QuickResponseSettings-DaEXIp3-.js","assets/QuickResponseSettings-B8188A1D.css","assets/QuickResponsesPanel-CIdblIbt.js","assets/QuickResponsesPanel-DIBQFj0W.css","assets/ResizableTextarea-DJekfIXO.js","assets/ResizableTextarea-B5nAA0RV.css","assets/SessionDetailView-mnGRMaLY.css","assets/index-f24-2-RT.js","assets/index-DF6g7nEj.js","assets/index-DCxYGijD.js","assets/index-CjJX0Eli.js","assets/index-DePUHO3n.js","assets/index-CpNgrGiE.js","assets/index-CDRRIqmL.js","assets/index-BwChYYnJ.js","assets/index-GLkcnEcc.js","assets/index-CSA0abwg.js","assets/index-DMl4xPIQ.js","assets/index-BGmIjKYB.js","assets/index-DvfYqZgb.js","assets/index-uZfsnHcN.js","assets/dockerfile-BKs6k2Af.js","assets/simple-mode-GW_nhZxv.js","assets/factor-kuTfRLto.js","assets/nsis-LdVXkNf5.js","assets/pug-DukmZTjD.js","assets/javascript-qCveANmP.js","assets/index-B6W39ctH.js","assets/index-ZDCxncSd.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var T0=Object.defineProperty;var Cc=i=>{throw TypeError(i)};var C0=(i,e,t)=>e in i?T0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var ve=(i,e,t)=>C0(i,typeof e!="symbol"?e+"":e,t),Ol=(i,e,t)=>e.has(i)||Cc("Cannot "+t);var S=(i,e,t)=>(Ol(i,e,"read from private field"),t?t.call(i):e.get(i)),pe=(i,e,t)=>e.has(i)?Cc("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ne=(i,e,t,n)=>(Ol(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t),K=(i,e,t)=>(Ol(i,e,"access private method"),t);var xs=(i,e,t,n)=>({set _(r){ne(i,e,r,t)},get _(){return S(i,e,n)}});import{a4 as ie,a0 as P,d as w,m as le,o as Ee,N as $i,a5 as qr,y as zt,l as he,F as ds,x as ke,a6 as qi,X as Me,a7 as A0,a8 as qn,I as Dt,$ as ua,V as _0,a9 as E0,P as L,aa as L0}from"./index-DxUd3T5E.js";import{M as R0}from"./SessionDetailView-BOdnH-cW.js";const M0=i=>{const e=typeof i;return e!=="function"&&e!=="object"||i===null},Z0=i=>{const e=i.flags===""?void 0:i.flags;return new RegExp(i.source,e)},kr=(i,e=new WeakMap)=>{if(i===null||M0(i))return i;if(e.has(i))return e.get(i);if(i instanceof RegExp)return Z0(i);if(i instanceof Date)return new Date(i.getTime());if(i instanceof Function)return i;if(i instanceof Map){const n=new Map;return e.set(i,n),i.forEach((r,s)=>{n.set(s,kr(r,e))}),n}if(i instanceof Set){const n=new Set;e.set(i,n);for(const r of i)n.add(kr(r,e));return n}if(Array.isArray(i)){const n=[];return e.set(i,n),i.forEach(r=>{n.push(kr(r,e))}),n}const t={};e.set(i,t);for(const n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=kr(i[n],e));return t},Df=(i,e=200)=>{let t=0;return(...n)=>new Promise(r=>{t&&(clearTimeout(t),r("cancel")),t=window.setTimeout(()=>{i.apply(void 0,n),t=0,r("done")},e)})},X0=(i,e={_blank:!0,nofollow:!0})=>{const t=document.createElement("a");t.href=i,e._blank&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),t.click()},vh=()=>{let i=-1;return(e,t,n,r=100)=>{const s=()=>{n&&(typeof r=="number"?setTimeout(n,r):n())};i!==-1&&(cancelAnimationFrame(i),s());let o=e.scrollTop;const l=()=>{i=-1;const a=t-o;o=o+a/5,Math.abs(a)<1?(e.scrollTo(0,t),s()):(e.scrollTo(0,o),i=requestAnimationFrame(l))};i=requestAnimationFrame(l)}},I0=(i,e=200)=>{let t=0,n=null;const r=s=>{t===0&&(t=s),s-t>=e?(i.apply(void 0,n),n=null,t=0):window.requestAnimationFrame(r)};return(...s)=>{n===null&&window.requestAnimationFrame(r),n=s}},z0=i=>{const e=t=>{const{scrollHeight:n,scrollWidth:r,offsetHeight:s,offsetWidth:o,scrollLeft:l,scrollTop:a}=i,h=t.x,c=t.y,u=f=>{const p=a+c-f.y,m=l+h-f.x,O=n-s,g=r-o,b={};m>=0&&m<=g&&(b.left=m),p>=0&&p<=O&&(b.top=p),i.scroll(b)};document.addEventListener("mousemove",u);const d=()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d)};return i.addEventListener("mousedown",e),()=>{i.removeEventListener("mousedown",e)}},da=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,mo=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),Uo=(i,e,t={})=>{if(Array.isArray(i)&&Array.isArray(e))return fa(i,e,t);const{excludeKeys:n}=t;for(const r in e){const s=e[r],o=i[r];n&&n(r)?i[r]=s:Array.isArray(s)&&Array.isArray(o)?i[r]=fa(o,s,t):mo(s)&&mo(o)?i[r]=Uo(o,s,t):i[r]=s}return i},fa=(i,e,t)=>{const n=i.slice();return e.forEach((r,s)=>{const o=n[s];Array.isArray(r)&&Array.isArray(o)?n[s]=fa(o,r,t):mo(r)&&mo(o)?n[s]=Uo(o,r,t):n[s]=r}),n},v="md-editor",V0="MdEditor",Pe="https://unpkg.com",D0=`${Pe}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Ac={main:`${Pe}/prettier@3.8.1/standalone.js`,markdown:`${Pe}/prettier@3.8.1/plugins/markdown.js`},B0={css:`${Pe}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${Pe}/cropperjs@1.6.2/dist/cropper.min.js`},q0=`${Pe}/screenfull@5.2.0/dist/screenfull.js`,j0=`${Pe}/mermaid@11.12.3/dist/mermaid.min.js`,W0={js:`${Pe}/katex@0.16.33/dist/katex.min.js`,css:`${Pe}/katex@0.16.33/dist/katex.min.css`},pa={a11y:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${Pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Y0=`${Pe}/echarts@6.0.0/dist/echarts.min.js`,N0={highlight:{js:{integrity:"sha384-RH2xi4eIQ/gjtbs9fUXM68sLSi99C7ZWBRX1vDrVv6GQXRibxXLbwO2NGZB74MbU",crossOrigin:"anonymous"},css:{a11y:{light:{integrity:"sha384-qdZDAN3jffvh670RHw1wxLekabidEFaNRninYgIzBvMbL6WlHdXeHS/Bt+vx33lN",crossOrigin:"anonymous"},dark:{integrity:"sha384-2QAAjX8pqaM5azX68KWI2wExF6Q13kY4kEiQFY4b/1zPe6rpgmTByNpDEllH3sb+",crossOrigin:"anonymous"}},atom:{light:{integrity:"sha384-w6Ujm1VWa9HYFqGc89oAPn/DWDi2gUamjNrq9DRvEYm2X3ClItg9Y9xs1ViVo5b5",crossOrigin:"anonymous"},dark:{integrity:"sha384-oaMLBGEzBOJx3UHwac0cVndtX5fxGQIfnAeFZ35RTgqPcYlbprH9o9PUV/F8Le07",crossOrigin:"anonymous"}},github:{light:{integrity:"sha384-eFTL69TLRZTkNfYZOLM+G04821K1qZao/4QLJbet1pP4tcF+fdXq/9CdqAbWRl/L",crossOrigin:"anonymous"},dark:{integrity:"sha384-wH75j6z1lH97ZOpMOInqhgKzFkAInZPPSPlZpYKYTOqsaizPvhQZmAtLcPKXpLyH",crossOrigin:"anonymous"}},gradient:{light:{integrity:"sha384-yErHBR8aEZPxRl3XmR8dGSRAclMlnSRRw8sXQLcmPWzWUvb56BzQmBw3EWHl7QGI",crossOrigin:"anonymous"},dark:{integrity:"sha384-lUCvtSOdvDbp5hLWKgwz/taFu1HxlpqES2OVP5UG2JMTfnU481gXcBhGF9lAGoSr",crossOrigin:"anonymous"}},kimbie:{light:{integrity:"sha384-tloeSLUPczAvoZ48TUz+OxRie0oYLCRwlkadUXovGzzJEIbNQB2TkfUuvJ6SW5Mi",crossOrigin:"anonymous"},dark:{integrity:"sha384-o5F1vUaMNOmou1sQrsWiFo4/QUGSV0svqNZW+EesmKxWC8MpFJcveBhAyfvTHbGb",crossOrigin:"anonymous"}},paraiso:{light:{integrity:"sha384-5j6QHU2Hwg1ehtlIQNDebhETDB8bga3/88hzBFsMRaGmgQHCftqIN7GZNDNw0vTL",crossOrigin:"anonymous"},dark:{integrity:"sha384-I5vnnMQu0LWDQnHpT61xyoMwKarAB8jpZkB2ioFOlmzUFnIFaV4QbUwlBBOMKhTH",crossOrigin:"anonymous"}},qtcreator:{light:{integrity:"sha384-iEBgHrwi8Hv4dSZBz+MOGvS05rF7I7fGKM2fASQyE9jn2Istg9Qd5dSoK18WyRTB",crossOrigin:"anonymous"},dark:{integrity:"sha384-D6LXJGWNR4QV7gnpuP3ccbvOYoR02td3cU0y7lESABPg/tzCSC4m+y+M2TtrmpHc",crossOrigin:"anonymous"}},stackoverflow:{light:{integrity:"sha384-FMwt7cTGo4aLxZnno5k0xTj0W4gmi48Kwept+y/oQmE6cFk36Kr+QJZOKNOQwORe",crossOrigin:"anonymous"},dark:{integrity:"sha384-iL+x+BroCyHm/p2c6sMA9umXhdCWp2cKe4QUjPeMzHgwXAk+ZxHyIGP3NZTZensU",crossOrigin:"anonymous"}}}},prettier:{standaloneJs:{integrity:"sha384-Q+dEbdxfNurK4ryC0T77wU8G3EYhxdAierqqKOppGHnJ4e/85wVnMXDNWbaYYghP",crossOrigin:"anonymous"},parserMarkdownJs:{integrity:"sha384-UGdkYlLyq47VQhe9mHyNzuPhBTL9GA9YO5Vb0sXf2fnMYGuSMGAbZ8upsQj1+u4O",crossOrigin:"anonymous"}},cropper:{js:{integrity:"sha384-jrOgQzBlDeUNdmQn3rUt/PZD+pdcRBdWd/HWRqRo+n2OR2QtGyjSaJC0GiCeH+ir",crossOrigin:"anonymous"},css:{integrity:"sha384-6LFfkTKLRlzFtgx8xsWyBdKGpcMMQTkv+dB7rAbugeJAu1Ym2q1Aji1cjHBG12Xh",crossOrigin:"anonymous"}},screenfull:{js:{integrity:"sha384-Qfbv8upMDu/ikv42M0Jnym2hahbDQ77Nm8PGU0G+iA6UIwt1+scE6P1qKXA0anWU",crossOrigin:"anonymous"}},mermaid:{js:{integrity:"sha384-jFhLSLFn4m565eRAS0CDMWubMqOtfZWWbE8kqgGdU+VHbJ3B2G/4X8u+0BM8MtdU",crossOrigin:"anonymous"}},katex:{js:{integrity:"sha384-YPHNAPyrxGS8BNnA7Q4ommqra8WQPEjooVSLzFgwgs8OXJBvadbyvx4QpfiFurGr",crossOrigin:"anonymous"},css:{integrity:"sha384-fgYS3VC1089n2J3rVcEbXDHlnDLQ9B2Y1hvpQ720q1NvxCduQqT4JoGc4u2QCnzE",crossOrigin:"anonymous"}},echarts:{js:{integrity:"sha384-F07Cpw5v8spSU0H113F33m2NQQ/o6GqPTnTjf45ssG4Q6q58ZwhxBiQtIaqvnSpR",crossOrigin:"anonymous"}}},yh=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","previewOnly","htmlPreview","catalog","github"],kh=["markdownTotal","=","scrollSwitch"],Oo={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},ze={editorExtensions:{highlight:{js:D0,css:pa},prettier:{standaloneJs:Ac.main,parserMarkdownJs:Ac.markdown},cropper:{...B0},screenfull:{js:q0},mermaid:{js:j0,enableZoom:!0},katex:{...W0},echarts:{js:Y0}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:i=>i,markdownItConfig:()=>{},markdownItPlugins:i=>i,mermaidConfig:i=>i,katexConfig:i=>i,echartsConfig:i=>i},G0=i=>Uo(ze,i,{excludeKeys(e){return/[iI]{1}nstance/.test(e)}}),ws=.1,at=({instance:i,ctx:e,props:t={}},n="default")=>{const r=(i==null?void 0:i.$slots[n])||(e==null?void 0:e.slots[n]);return(r?r(i):"")||t[n]},F0={overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"},disabled:{type:Boolean,default:void 0}},rr=ie({name:`${v}-dropdown`,props:F0,setup(i,e){const t=`${v}-dropdown-hidden`,n=zt({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),r=he(),s=he(),o=()=>{var k,$;if(i.disabled)return!1;n.triggerHover=!0;const c=r.value,u=s.value;if(!c||!u)return;const d=c.getBoundingClientRect(),f=c.offsetTop,p=c.offsetLeft,m=d.height,O=d.width,g=c.getRootNode(),b=((k=g.querySelector(i.relative))==null?void 0:k.scrollLeft)||0,Q=(($=g.querySelector(i.relative))==null?void 0:$.clientWidth)||0;let x=p-u.offsetWidth/2+O/2-b;x+u.offsetWidth>b+Q&&(x=b+Q-u.offsetWidth),x<0&&(x=0),n.overlayStyle={...n.overlayStyle,insetBlockStart:f+m+"px",insetInlineStart:x+"px"},i.onChange(!0)},l=()=>{if(i.disabled)return!1;n.overlayHover=!0};le(()=>i.visible,c=>{c?n.overlayClass=n.overlayClass.filter(u=>u!==t):n.overlayClass.push(t)});let a=-1;const h=c=>{r.value===c.target?n.triggerHover=!1:n.overlayHover=!1,clearTimeout(a),a=window.setTimeout(()=>{!n.overlayHover&&!n.triggerHover&&i.onChange(!1)},10)};return Ee(()=>{r.value.addEventListener("mouseenter",o),r.value.addEventListener("mouseleave",h),s.value.addEventListener("mouseenter",l),s.value.addEventListener("mouseleave",h)}),$i(()=>{r.value.removeEventListener("mouseenter",o),r.value.removeEventListener("mouseleave",h),s.value.removeEventListener("mouseenter",l),s.value.removeEventListener("mouseleave",h)}),()=>{const c=at({ctx:e}),u=at({props:i,ctx:e},"overlay"),d=qr(c instanceof Array?c[0]:c,{ref:r,key:"cloned-dropdown-trigger"}),f=w("div",{class:[`${v}-dropdown`,n.overlayClass],style:n.overlayStyle,ref:s},[w("div",{class:`${v}-dropdown-overlay`},[u instanceof Array?u[0]:u])]);return[d,f]}}}),U0={title:{type:String,default:""},visible:{type:Boolean,default:void 0},trigger:{type:[String,Object],default:void 0},onChange:{type:Function,default:void 0},overlay:{type:[String,Object],default:void 0},insert:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},previewTheme:{type:String,default:void 0},codeTheme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},showToolbarName:{type:Boolean,default:void 0}},Tr=ie({name:"DropdownToolbar",props:U0,emits:["onChange"],setup(i,e){const t=P("editorId"),n=r=>{var s;(s=i.onChange)==null||s.call(i,r),e.emit("onChange",r)};return()=>{const r=at({props:i,ctx:e},"trigger"),s=at({props:i,ctx:e},"overlay"),o=at({props:i,ctx:e});return w(rr,{relative:`#${t}-toolbar-wrapper`,visible:i.visible,onChange:n,overlay:s,disabled:i.disabled},{default:()=>[w("button",{class:[`${v}-toolbar-item`,i.disabled&&`${v}-disabled`],title:i.title||"",disabled:i.disabled,type:"button"},[o||r])]})}}});Tr.install=i=>(i.component(Tr.name,Tr),i);const Ho="onSave",Sh="changeCatalogVisible",Bf="changeFullscreen",_c="pageFullscreenChanged",Ec="fullscreenChanged",Lc="previewChanged",Rc="previewOnlyChanged",Mc="htmlPreviewChanged",Zc="catalogVisibleChanged",Ks="buildFinished",Oi="errorCatcher",re="replace",Ko="uploadImage",qf="ctrlZ",jf="ctrlShiftZ",Cr="catalogChanged",Wf="pushCatalog",xh="rerender",Yf="eventListener",Nf="taskStateChanged",Gf="sendEditorView",go="getEditorView";class H0{constructor(){ve(this,"pools",{})}remove(e,t,n){const r=this.pools[e]&&this.pools[e][t];r&&(this.pools[e][t]=r.filter(s=>s!==n))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...n){this.pools[e]||(this.pools[e]={});const r=this.pools[e][t];r&&r.forEach(s=>{try{s(...n)}catch(o){console.error(`${t} monitor event exception!`,o)}})}}const X=new H0,K0=(i,e="image.png")=>{const t=i.split(","),n=t[0].match(/:(.*?);/);if(n){const r=n[1],s=atob(t[1]);let o=s.length;const l=new Uint8Array(o);for(;o--;)l[o]=s.charCodeAt(o);return new File([l],e,{type:r})}return null},J0=(i,e)=>{if(!i)return i;const t=e.split(`
|
|
3
3
|
`),n=['<span rn-wrapper aria-hidden="true">'];return t.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="${v}-code-block">${i}</span>${n.join("")}`},eb=(i,e)=>{if(!i||!e)return 0;const t=i==null?void 0:i.getBoundingClientRect();if(e===document.documentElement)return t.top-e.clientTop;const n=e==null?void 0:e.getBoundingClientRect();return t.top-n.top},Xc=(()=>{let i=0;return()=>++i})(),tb=`.${v}-preview > [data-line]`,en=(i,e)=>+getComputedStyle(i).getPropertyValue(e).replace("px",""),ib=(i,e)=>{const t=Df(()=>{i.removeEventListener("scroll",n),i.addEventListener("scroll",n),e.removeEventListener("scroll",n),e.addEventListener("scroll",n)},50),n=r=>{const s=i.clientHeight,o=e.clientHeight,l=i.scrollHeight,a=e.scrollHeight,h=(l-s)/(a-o);r.target===i?(e.removeEventListener("scroll",n),e.scrollTo({top:i.scrollTop/h}),t()):(i.removeEventListener("scroll",n),i.scrollTo({top:e.scrollTop*h}),t())};return[()=>{t().finally(()=>{i.dispatchEvent(new Event("scroll"))})},()=>{i.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}]},nb=(i,e,t)=>{const{view:n}=t,r=vh(),s=g=>n.lineBlockAt(n.state.doc.line(g+1).from).top,o=g=>n.lineBlockAt(n.state.doc.line(g+1).from).bottom;let l=[],a=[],h=[];const c=()=>{l=[],a=Array.from(e.querySelectorAll(tb)),h=a.map(k=>Number(k.dataset.line));const g=[...h],{lines:b}=n.state.doc;let Q=g.shift()||0,x=g.shift()||b;for(let k=0;k<b;k++)k===x&&(Q=k,x=g.shift()||b),l.push({start:Q,end:x-1})},u=(g,b)=>{let Q=1;for(let x=a.length-1;x-1>=0;x--){const k=a[x],$=a[x-1];if(k.offsetTop+k.offsetHeight>b&&$.offsetTop<b){Q=Number($.dataset.line);break}}for(let x=l.length-1;x>=0;x--){const k=o(l[x].end),$=s(l[x].start);if(k>g&&$<=g){Q=Q<l[x].start?Q:l[x].start;break}}return Q};let d=0,f=0;const p=()=>{var V,E,H;if(f!==0)return!1;d++;const{scrollDOM:g,contentHeight:b}=n;let Q=en(e,"padding-block-start");const x=n.lineBlockAtHeight(g.scrollTop),{number:k}=n.state.doc.lineAt(x.from),$=l[k-1];if(!$)return!1;let C=1;const T=e.querySelector(`[data-line="${$.start}"]`)||((V=e.firstElementChild)==null?void 0:V.firstElementChild),A=e.querySelector(`[data-line="${$.end+1}"]`)||((E=e.lastElementChild)==null?void 0:E.lastElementChild),M=g.scrollHeight-g.clientHeight,B=e.scrollHeight-e.clientHeight;let R=s($.start),D=o($.end),q=T.offsetTop,G=A.offsetTop-q;R===0&&(q=0,T===A?(Q=0,D=b-g.offsetHeight,G=B):G=A.offsetTop),C=(g.scrollTop-R)/(D-R);const I=A==((H=e.lastElementChild)==null?void 0:H.lastElementChild)?A.offsetTop+A.clientHeight:A.offsetTop;if(D>=M||I>B){const se=u(M,B);R=s(se),C=(g.scrollTop-R)/(M-R);const ee=e.querySelector(`[data-line="${se}"]`);R>0&&ee&&(q=ee.offsetTop),G=B-q+en(e,"padding-block-start")}const W=q-Q+G*C;r(e,W,()=>{d--})},m=()=>{var I,W,V,E,H,se;if(d!==0)return;f++;const{scrollDOM:g}=n,b=e.scrollTop,Q=e.scrollHeight,x=g.scrollHeight-g.clientHeight,k=e.scrollHeight-e.clientHeight;let $=(I=e.firstElementChild)==null?void 0:I.firstElementChild,C=(W=e.firstElementChild)==null?void 0:W.lastElementChild;if(h.length>0){let ee=Math.ceil(h[h.length-1]*(b/Q)),oe=h.findLastIndex(ue=>ue<=ee);oe=oe===-1?0:oe,ee=h[oe];for(let ue=oe;ue>=0&&ue<h.length;)if(a[ue].offsetTop>b){if(ue-1>=0){ue--;continue}ee=-1,oe=ue;break}else{if(ue+1<h.length&&a[ue+1].offsetTop<b){ue++;continue}ee=h[ue],oe=ue;break}switch(oe){case-1:{$=(V=e.firstElementChild)==null?void 0:V.firstElementChild,C=a[oe];break}case h.length-1:{$=a[oe],C=(E=e.firstElementChild)==null?void 0:E.lastElementChild;break}default:$=a[oe],C=a[oe+1===a.length?oe:oe+1]}}let T=$===((H=e.firstElementChild)==null?void 0:H.firstElementChild)?0:$.offsetTop-en($,"margin-block-start"),A=C.offsetTop,M=0;const{start:B,end:R}=l[Number($.dataset.line||0)];let D=s(B);const q=s(R+1===n.state.doc.lines?R:R+1);let G=0;if(q>x||C.offsetTop+C.offsetHeight>k){const ee=u(x,k),oe=e.querySelector(`[data-line="${ee}"]`);T=oe?oe.offsetTop-en(oe,"margin-block-start"):T,D=s(ee),M=(b-T)/(k-T),G=x-D}else $===((se=e.firstElementChild)==null?void 0:se.firstElementChild)?($===C&&(A=C.offsetTop+C.offsetHeight+en(C,"margin-block-end")),G=q,M=Math.max(b/A,0)):(M=Math.max((b-T)/(A-T),0),G=q-D);r(i,D+G*M,()=>{f--})},O=g=>{var k;const{scrollDOM:b,contentHeight:Q}=n,x=b.clientHeight;if(Q<=x||e.firstElementChild.clientHeight<=e.clientHeight||n.state.doc.lines<=((k=l[l.length-1])==null?void 0:k.end))return!1;g.target===i?p():m()};return[()=>{c(),i.addEventListener("scroll",O),e.addEventListener("scroll",O),i.dispatchEvent(new Event("scroll"))},()=>{i.removeEventListener("scroll",O),e.removeEventListener("scroll",O)}]},rb={tocItem:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:()=>{}},onActive:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},scrollElementOffsetTop:{type:Number,default:0}},Ff=ie({props:rb,setup(i){const e=P("scrollElementRef"),t=P("roorNodeRef"),n=he();le(()=>i.tocItem.active,s=>{s&&i.onActive(i.tocItem,n.value)}),Ee(()=>{i.tocItem.active&&i.onActive(i.tocItem,n.value)});const r=s=>{if(s.stopPropagation(),i.onClick(s,i.tocItem),s.defaultPrevented)return;const o=i.mdHeadingId({text:i.tocItem.text,level:i.tocItem.level,index:i.tocItem.index,currentToken:i.tocItem.currentToken,nextToken:i.tocItem.nextToken}),l=t.value.getElementById(o),a=e.value;if(l&&a){let h=l.offsetParent,c=l.offsetTop;if(a.contains(h))for(;h&&a!=h;)c+=h==null?void 0:h.offsetTop,h=h==null?void 0:h.offsetParent;const u=l.previousElementSibling;let d=0;u||(d=en(l,"margin-block-start")),a==null||a.scrollTo({top:c-i.scrollElementOffsetTop-d,behavior:"smooth"})}};return()=>w("div",{ref:n,class:[`${v}-catalog-link`,i.tocItem.active&&`${v}-catalog-active`],onClick:r},[w("span",{title:i.tocItem.text},[i.tocItem.text]),i.tocItem.children&&i.tocItem.children.length>0&&w("div",{class:`${v}-catalog-wrapper`},[i.tocItem.children.map(s=>w(Ff,{mdHeadingId:i.mdHeadingId,key:`${i.tocItem.text}-link-${s.level}-${s.text}`,tocItem:s,onActive:i.onActive,onClick:i.onClick,scrollElementOffsetTop:i.scrollElementOffsetTop},null))])])}}),sb={editorId:{type:String,default:void 0},class:{type:String,default:""},mdHeadingId:{type:Function,default:({text:i})=>i},scrollElement:{type:[String,Object],default:void 0},theme:{type:String,default:"light"},offsetTop:{type:Number,default:20},scrollElementOffsetTop:{type:Number,default:0},onClick:{type:Function,default:void 0},onActive:{type:Function,default:void 0},isScrollElementInShadow:{type:Boolean,default:!1},syncWith:{type:String,default:"preview"},catalogMaxDepth:{type:Number,default:void 0}},Pn=ie({name:"MdCatalog",props:sb,emits:["onClick","onActive"],setup(i,e){const t=i.editorId,n=`#${t}-preview-wrapper`,r=zt({list:[],show:!1,scrollElement:i.scrollElement||n}),s=qi(),o=he(),l=he(),a=he(),h=he(),c=qi(),u=he({});Me("scrollElementRef",l),Me("roorNodeRef",h);const d=ke(()=>{const x=[];return r.list.forEach((k,$)=>{if(i.catalogMaxDepth&&k.level>i.catalogMaxDepth)return;const{text:C,level:T,line:A}=k,M={level:T,text:C,line:A,index:$+1,active:s.value===k};if(x.length===0)x.push(M);else{let B=x[x.length-1];if(M.level>B.level)for(let R=B.level+1;R<=6;R++){const{children:D}=B;if(!D){B.children=[M];break}if(B=D[D.length-1],M.level<=B.level){D.push(M);break}}else x.push(M)}}),x}),f=()=>{var k;if(r.scrollElement instanceof HTMLElement)return r.scrollElement;let x=document;return(r.scrollElement===n||i.isScrollElementInShadow)&&(x=(k=o.value)==null?void 0:k.getRootNode()),x.querySelector(r.scrollElement)},p=x=>{if(x.length===0)return s.value=void 0,r.list=[],!1;const{activeHead:k,activeIndex:$}=x.reduce((A,M,B)=>{var D;let R=0;if(i.syncWith==="preview"){const q=(D=h.value)==null?void 0:D.getElementById(i.mdHeadingId({text:M.text,level:M.level,index:B+1,currentToken:M.currentToken,nextToken:M.nextToken}));q instanceof HTMLElement&&(R=eb(q,l.value))}else{const q=c.value;if(q){const G=q.lineBlockAt(q.state.doc.line(M.line+1).from).top,I=q.scrollDOM.scrollTop;R=G-I}}return R<i.offsetTop&&R>A.minTop?{activeHead:M,activeIndex:B,minTop:R}:A},{activeHead:x[0],activeIndex:0,minTop:Number.MIN_SAFE_INTEGER});let C=k;const{catalogMaxDepth:T}=i;if(T&&C.level>T){for(let A=$;A>=0;A--){const M=x[A];if(M.level<=T){C=M;break}}if(C.level>T){const A=x.find(M=>M.level<=T);A&&(C=A)}}s.value=C,r.list=x},m=(x,k)=>{var $;u.value.top=k.offsetTop+en(k,"padding-block-start")+"px",($=i.onActive)==null||$.call(i,x,k),e.emit("onActive",x,k)},O=()=>{p(r.list)},g=x=>{var k,$,C;if((k=a.value)==null||k.removeEventListener("scroll",O),i.syncWith==="editor")a.value=($=c.value)==null?void 0:$.scrollDOM;else{const T=f();l.value=T,a.value=T===document.documentElement?document:T}p(x),(C=a.value)==null||C.addEventListener("scroll",O)},b=x=>{c.value=x};le([()=>i.syncWith,c,()=>i.catalogMaxDepth],()=>{g(r.list)}),Ee(()=>{h.value=o.value.getRootNode(),X.on(t,{name:Cr,callback:g}),X.on(t,{name:go,callback:b}),X.emit(t,Wf),X.emit(t,Gf)}),$i(()=>{var x;X.remove(t,Cr,g),X.remove(t,go,b),(x=a.value)==null||x.removeEventListener("scroll",O)});const Q=(x,k)=>{var $;($=i.onClick)==null||$.call(i,x,k),e.emit("onClick",x,k)};return()=>w("div",{class:[`${v}-catalog`,i.theme==="dark"&&`${v}-catalog-dark`,i.class||""],ref:o},[d.value.length>0&&w(ds,null,[w("div",{class:`${v}-catalog-indicator`,style:u.value},null),w("div",{class:`${v}-catalog-container`},[d.value.map(x=>w(Ff,{mdHeadingId:i.mdHeadingId,tocItem:x,key:`link-${x.level}-${x.text}`,onActive:m,onClick:Q,scrollElementOffsetTop:i.scrollElementOffsetTop},null))])])])}});Pn.install=i=>(i.component(Pn.name,Pn),i);async function Uf(i){if(typeof i=="string"){if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(i);{const e=document.createElement("textarea");let t=!1;if(e.value=i,e.style.position="fixed",e.style.opacity=0,e.style.zIndex="-10000",e.style.top="-10000",document.body.appendChild(e),e.select(),t=document.execCommand("copy"),document.body.removeChild(e),t)return;throw new Error('Failed to copy content via "execCommand"!')}}}const ob={copy:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy ${v}-icon"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,"collapse-tips":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-chevron-left ${v}-icon"><circle cx="12" cy="12" r="10"/><path d="m14 16-4-4 4-4"/></svg>`,pin:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin ${v}-icon"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`,"pin-off":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin-off ${v}-icon"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check ${v}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},Kt=(i,e)=>typeof e[i]=="string"?e[i]:ob[i],Ic=(i,e)=>{const t=n=>{const r=i.parentElement||document.body,s=r.offsetWidth,o=r.offsetHeight,{clientWidth:l,clientHeight:a}=document.documentElement,h=n.offsetX,c=n.offsetY,u=f=>{let p=f.x+document.body.scrollLeft-document.body.clientLeft-h,m=f.y+document.body.scrollTop-document.body.clientTop-c;p=p<1?1:p<l-s-1?p:l-s-1,m=m<1?1:m<a-o-1?m:a-o-1,e?e(p,m):(r.style.left=`${p}px`,r.style.top=`${m}px`)};document.addEventListener("mousemove",u);const d=()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d)};return i.addEventListener("mousedown",t),()=>{i.removeEventListener("mousedown",t)}},Tt=(i,e,t="")=>{var r;const n=document.getElementById(e.id);if(n)t!==""&&(Reflect.get(window,t)?(r=e.onload)==null||r.call(n,new Event("load")):e.onload&&n.addEventListener("load",e.onload));else{const s={...e};s.onload=null;const o=ab(i,s);e.onload&&o.addEventListener("load",e.onload),document.head.appendChild(o)}},lb=(i,e)=>{var t;(t=document.getElementById(e.id))==null||t.remove(),Tt(i,e)},ab=(i,e)=>{const t=document.createElement(i);return Object.keys(e).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),t},hb=(i,e)=>{const t=new Map;return i==null||i.forEach(n=>{let r=n.querySelector(`.${v}-mermaid-action`);r?r.querySelector(`.${v}-mermaid-copy`)||r.insertAdjacentHTML("beforeend",`<span class="${v}-mermaid-copy">${Kt("copy",e.customIcon)}</span>`):(n.insertAdjacentHTML("beforeend",`<div class="${v}-mermaid-action"><span class="${v}-mermaid-copy">${Kt("copy",e.customIcon)}</span></div>`),r=n.querySelector(`.${v}-mermaid-action`));const s=r.querySelector(`.${v}-mermaid-copy`);let o=-1;const l=()=>{clearTimeout(o),Uf(n.dataset.content||"").then(()=>{s.innerHTML=Kt("check",e.customIcon)}).catch(()=>{s.innerHTML=Kt("copy",e.customIcon)}).finally(()=>{o=window.setTimeout(()=>{s.innerHTML=Kt("copy",e.customIcon)},1500)})};s.addEventListener("click",l),t.set(n,{removeClick:()=>{s.removeEventListener("click",l)}})}),()=>{t.forEach(({removeClick:n})=>{n==null||n()}),t.clear()}},cb=(()=>{const i=e=>{if(!e)return()=>{};const t=e.firstChild;let n=1,r=0,s=0,o=!1,l,a,h,c=1;const u=()=>{t.style.transform=`translate(${r}px, ${s}px) scale(${n})`},d=x=>{x.touches.length===1?(o=!0,l=x.touches[0].clientX-r,a=x.touches[0].clientY-s):x.touches.length===2&&(h=Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY),c=n)},f=x=>{if(x.preventDefault(),o&&x.touches.length===1)r=x.touches[0].clientX-l,s=x.touches[0].clientY-a,u();else if(x.touches.length===2){const k=Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY)/h,$=n;n=c*(1+(k-1));const C=(x.touches[0].clientX+x.touches[1].clientX)/2,T=(x.touches[0].clientY+x.touches[1].clientY)/2,A=t.getBoundingClientRect(),M=(C-A.left)/$,B=(T-A.top)/$;r-=M*(n-$),s-=B*(n-$),u()}},p=()=>{o=!1},m=x=>{x.preventDefault();const k=.02,$=n;x.deltaY<0?n+=k:n=Math.max(.1,n-k);const C=t.getBoundingClientRect(),T=x.clientX-C.left,A=x.clientY-C.top;r-=T/$*(n-$),s-=A/$*(n-$),u()},O=x=>{o=!0,l=x.clientX-r,a=x.clientY-s},g=x=>{o&&(r=x.clientX-l,s=x.clientY-a,u())},b=()=>{o=!1},Q=()=>{o=!1};return e.addEventListener("touchstart",d,{passive:!1}),e.addEventListener("touchmove",f,{passive:!1}),e.addEventListener("touchend",p),e.addEventListener("wheel",m,{passive:!1}),e.addEventListener("mousedown",O),e.addEventListener("mousemove",g),e.addEventListener("mouseup",b),e.addEventListener("mouseleave",Q),()=>{e.removeEventListener("touchstart",d),e.removeEventListener("touchmove",f),e.removeEventListener("touchend",p),e.removeEventListener("wheel",m),e.removeEventListener("mousedown",O),e.removeEventListener("mousemove",g),e.removeEventListener("mouseup",b),e.removeEventListener("mouseleave",Q)}};return(e,t)=>{const n=new Map;return e==null||e.forEach(r=>{let s=r.querySelector(`.${v}-mermaid-action`);s?s.querySelector(`.${v}-mermaid-zoom`)||s.insertAdjacentHTML("beforeend",`<span class="${v}-mermaid-zoom">${Kt("pin-off",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${v}-mermaid-action"><span class="${v}-mermaid-zoom">${Kt("pin-off",t.customIcon)}</span></div>`),s=r.querySelector(`.${v}-mermaid-action`));const o=s.querySelector(`.${v}-mermaid-zoom`),l=()=>{const a=n.get(r);if(a!=null&&a.removeEvent)a.removeEvent(),r.removeAttribute("data-grab"),n.set(r,{removeClick:a.removeClick}),o.innerHTML=Kt("pin-off",t.customIcon);else{const h=i(r);r.setAttribute("data-grab",""),n.set(r,{removeEvent:h,removeClick:a==null?void 0:a.removeClick}),o.innerHTML=Kt("pin",t.customIcon)}};o.addEventListener("click",l),n.set(r,{removeClick:()=>o.removeEventListener("click",l)})}),()=>{n.forEach(({removeEvent:r,removeClick:s})=>{r==null||r(),s==null||s()}),n.clear()}}})(),zc=new Set([!0,!1,"alt","title"]);function Hf(i,e){return(Array.isArray(i)?i:[]).filter(([t])=>t!==e)}function Kf(i,e){i&&i.attrs&&(i.attrs=Hf(i.attrs,e))}function ub(i,e){if(!zc.has(i))throw new TypeError(`figcaption must be one of: ${[...zc]}.`);if(i==="alt")return e.content;const t=e.attrs.find(([n])=>n==="title");return Array.isArray(t)&&t[1]?(Kf(e,"title"),t[1]):void 0}function db(i,e){e=e||{},i.core.ruler.before("linkify","image_figures",function(t){let n=1;for(let r=1,s=t.tokens.length;r<s-1;++r){const o=t.tokens[r];if(o.type!=="inline"||!o.children||o.children.length!==1&&o.children.length!==3||o.children.length===1&&o.children[0].type!=="image")continue;if(o.children.length===3){const[h,c,u]=o.children;if(h.type!=="link_open"||c.type!=="image"||u.type!=="link_close")continue}if(r!==0&&t.tokens[r-1].type!=="paragraph_open"||r!==s-1&&t.tokens[r+1].type!=="paragraph_close")continue;const l=t.tokens[r-1];let a;if(l.type="figure_open",l.tag="figure",t.tokens[r+1].type="figure_close",t.tokens[r+1].tag="figure",e.dataType&&t.tokens[r-1].attrPush(["data-type","image"]),e.link&&o.children.length===1){[a]=o.children;const h=new t.Token("link_open","a",1);h.attrPush(["href",a.attrGet("src")]),o.children.unshift(h),o.children.push(new t.Token("link_close","a",-1))}if(a=o.children.length===1?o.children[0]:o.children[1],e.figcaption){const h=ub(e.figcaption,a);if(h){const[c]=i.parseInline(h,t.env);o.children.push(new t.Token("figcaption_open","figcaption",1)),o.children.push(...c.children),o.children.push(new t.Token("figcaption_close","figcaption",-1)),a.attrs&&(a.attrs=Hf(a.attrs,"title"))}}if(e.copyAttrs&&a.attrs){const h=e.copyAttrs===!0?"":e.copyAttrs;l.attrs=a.attrs.filter(([c])=>c.match(h)).map(c=>Array.from(c))}if(e.tabindex&&(t.tokens[r-1].attrPush(["tabindex",n]),n++),e.lazy&&(a.attrs.some(([h])=>h==="loading")||a.attrs.push(["loading","lazy"])),e.async&&(a.attrs.some(([h])=>h==="decoding")||a.attrs.push(["decoding","async"])),e.classes&&typeof e.classes=="string"){let h=!1;for(let c=0,u=a.attrs.length;c<u&&!h;c++){const d=a.attrs[c];d[0]==="class"&&(d[1]=`${d[1]} ${e.classes}`,h=!0)}h||a.attrs.push(["class",e.classes])}if(e.removeSrc){const h=a.attrs.find(([c])=>c==="src");a.attrs.push(["data-src",h[1]]),Kf(a,"src")}}})}const fb=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function pb(i,e){const t=i.posMax,n=i.pos;if(i.src.charCodeAt(n)!==126||e||n+2>=t)return!1;i.pos=n+1;let r=!1;for(;i.pos<t;){if(i.src.charCodeAt(i.pos)===126){r=!0;break}i.md.inline.skipToken(i)}if(!r||n+1===i.pos)return i.pos=n,!1;const s=i.src.slice(n+1,i.pos);if(s.match(/(^|[^\\])(\\\\)*\s/))return i.pos=n,!1;i.posMax=i.pos,i.pos=n+1;const o=i.push("sub_open","sub",1);o.markup="~";const l=i.push("text","",0);l.content=s.replace(fb,"$1");const a=i.push("sub_close","sub",-1);return a.markup="~",i.pos=i.posMax+1,i.posMax=t,!0}function mb(i){i.inline.ruler.after("emphasis","sub",pb)}const Ob=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function gb(i,e){const t=i.posMax,n=i.pos;if(i.src.charCodeAt(n)!==94||e||n+2>=t)return!1;i.pos=n+1;let r=!1;for(;i.pos<t;){if(i.src.charCodeAt(i.pos)===94){r=!0;break}i.md.inline.skipToken(i)}if(!r||n+1===i.pos)return i.pos=n,!1;const s=i.src.slice(n+1,i.pos);if(s.match(/(^|[^\\])(\\\\)*\s/))return i.pos=n,!1;i.posMax=i.pos,i.pos=n+1;const o=i.push("sup_open","sup",1);o.markup="^";const l=i.push("text","",0);l.content=s.replace(Ob,"$1");const a=i.push("sup_close","sup",-1);return a.markup="^",i.pos=i.posMax+1,i.posMax=t,!0}function bb(i){i.inline.ruler.after("emphasis","sup",gb)}var vb=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Jf=new Set,ma=typeof process=="object"&&process?process:{},ep=(i,e,t,n)=>{typeof ma.emitWarning=="function"?ma.emitWarning(i,e,t,n):console.error(`[${t}] ${e}: ${i}`)},bo=globalThis.AbortController,Vc=globalThis.AbortSignal,If;if(typeof bo>"u"){Vc=class{constructor(){ve(this,"onabort");ve(this,"_onabort",[]);ve(this,"reason");ve(this,"aborted",!1)}addEventListener(t,n){this._onabort.push(n)}},bo=class{constructor(){ve(this,"signal",new Vc);e()}abort(t){var n,r;if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(let s of this.signal._onabort)s(t);(r=(n=this.signal).onabort)==null||r.call(n,t)}}};let i=((If=ma.env)==null?void 0:If.LRU_CACHE_IGNORE_AC_WARNING)!=="1",e=()=>{i&&(i=!1,ep("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var yb=i=>!Jf.has(i),_i=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),tp=i=>_i(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?Js:null:null,Js=class extends Array{constructor(e){super(e),this.fill(0)}},pi,Xn,kb=(pi=class{constructor(e,t){ve(this,"heap");ve(this,"length");if(!S(pi,Xn))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}static create(e){let t=tp(e);if(!t)return[];ne(pi,Xn,!0);let n=new pi(e,t);return ne(pi,Xn,!1),n}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Xn=new WeakMap,pe(pi,Xn,!1),pi),zf,Vf,Rt,yt,jt,ln,Wt,In,zn,Yt,qe,Nt,Ve,Ae,ce,nt,kt,Je,We,Gt,Ye,Ft,Ut,St,xt,Ht,zi,rt,Vn,N,Oa,an,yi,cs,wt,ip,hn,Dn,us,Ei,Li,ga,eo,to,Ce,ba,Sr,Ri,va,Bn,Sb=(Bn=class{constructor(e){pe(this,N);pe(this,Rt);pe(this,yt);pe(this,jt);pe(this,ln);pe(this,Wt);pe(this,In);pe(this,zn);pe(this,Yt);ve(this,"ttl");ve(this,"ttlResolution");ve(this,"ttlAutopurge");ve(this,"updateAgeOnGet");ve(this,"updateAgeOnHas");ve(this,"allowStale");ve(this,"noDisposeOnSet");ve(this,"noUpdateTTL");ve(this,"maxEntrySize");ve(this,"sizeCalculation");ve(this,"noDeleteOnFetchRejection");ve(this,"noDeleteOnStaleGet");ve(this,"allowStaleOnFetchAbort");ve(this,"allowStaleOnFetchRejection");ve(this,"ignoreFetchAbort");pe(this,qe);pe(this,Nt);pe(this,Ve);pe(this,Ae);pe(this,ce);pe(this,nt);pe(this,kt);pe(this,Je);pe(this,We);pe(this,Gt);pe(this,Ye);pe(this,Ft);pe(this,Ut);pe(this,St);pe(this,xt);pe(this,Ht);pe(this,zi);pe(this,rt);pe(this,Vn);pe(this,an,()=>{});pe(this,yi,()=>{});pe(this,cs,()=>{});pe(this,wt,()=>!1);pe(this,hn,e=>{});pe(this,Dn,(e,t,n)=>{});pe(this,us,(e,t,n,r)=>{if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});ve(this,zf,"LRUCache");let{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:l,allowStale:a,dispose:h,onInsert:c,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:f,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:O,fetchMethod:g,memoMethod:b,noDeleteOnFetchRejection:Q,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:$,ignoreFetchAbort:C,perf:T}=e;if(T!==void 0&&typeof(T==null?void 0:T.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ne(this,Yt,T??vb),t!==0&&!_i(t))throw new TypeError("max option must be a nonnegative integer");let A=t?tp(t):Array;if(!A)throw new Error("invalid max value: "+t);if(ne(this,Rt,t),ne(this,yt,p),this.maxEntrySize=m||S(this,yt),this.sizeCalculation=O,this.sizeCalculation){if(!S(this,yt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(ne(this,zn,b),g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(ne(this,In,g),ne(this,zi,!!g),ne(this,Ve,new Map),ne(this,Ae,new Array(t).fill(void 0)),ne(this,ce,new Array(t).fill(void 0)),ne(this,nt,new A(t)),ne(this,kt,new A(t)),ne(this,Je,0),ne(this,We,0),ne(this,Gt,kb.create(t)),ne(this,qe,0),ne(this,Nt,0),typeof h=="function"&&ne(this,jt,h),typeof c=="function"&&ne(this,ln,c),typeof u=="function"?(ne(this,Wt,u),ne(this,Ye,[])):(ne(this,Wt,void 0),ne(this,Ye,void 0)),ne(this,Ht,!!S(this,jt)),ne(this,Vn,!!S(this,ln)),ne(this,rt,!!S(this,Wt)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!Q,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!$,this.ignoreFetchAbort=!!C,this.maxEntrySize!==0){if(S(this,yt)!==0&&!_i(S(this,yt)))throw new TypeError("maxSize must be a positive integer if specified");if(!_i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");K(this,N,ip).call(this)}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!l,this.ttlResolution=_i(r)||r===0?r:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!_i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");K(this,N,Oa).call(this)}if(S(this,Rt)===0&&this.ttl===0&&S(this,yt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!S(this,Rt)&&!S(this,yt)){let M="LRU_CACHE_UNBOUNDED";yb(M)&&(Jf.add(M),ep("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",M,Bn))}}get perf(){return S(this,Yt)}static unsafeExposeInternals(e){return{starts:S(e,Ut),ttls:S(e,St),autopurgeTimers:S(e,xt),sizes:S(e,Ft),keyMap:S(e,Ve),keyList:S(e,Ae),valList:S(e,ce),next:S(e,nt),prev:S(e,kt),get head(){return S(e,Je)},get tail(){return S(e,We)},free:S(e,Gt),isBackgroundFetch:t=>{var n;return K(n=e,N,Ce).call(n,t)},backgroundFetch:(t,n,r,s)=>{var o;return K(o=e,N,to).call(o,t,n,r,s)},moveToTail:t=>{var n;return K(n=e,N,Sr).call(n,t)},indexes:t=>{var n;return K(n=e,N,Ei).call(n,t)},rindexes:t=>{var n;return K(n=e,N,Li).call(n,t)},isStale:t=>{var n;return S(n=e,wt).call(n,t)}}}get max(){return S(this,Rt)}get maxSize(){return S(this,yt)}get calculatedSize(){return S(this,Nt)}get size(){return S(this,qe)}get fetchMethod(){return S(this,In)}get memoMethod(){return S(this,zn)}get dispose(){return S(this,jt)}get onInsert(){return S(this,ln)}get disposeAfter(){return S(this,Wt)}getRemainingTTL(e){return S(this,Ve).has(e)?1/0:0}*entries(){for(let e of K(this,N,Ei).call(this))S(this,ce)[e]!==void 0&&S(this,Ae)[e]!==void 0&&!K(this,N,Ce).call(this,S(this,ce)[e])&&(yield[S(this,Ae)[e],S(this,ce)[e]])}*rentries(){for(let e of K(this,N,Li).call(this))S(this,ce)[e]!==void 0&&S(this,Ae)[e]!==void 0&&!K(this,N,Ce).call(this,S(this,ce)[e])&&(yield[S(this,Ae)[e],S(this,ce)[e]])}*keys(){for(let e of K(this,N,Ei).call(this)){let t=S(this,Ae)[e];t!==void 0&&!K(this,N,Ce).call(this,S(this,ce)[e])&&(yield t)}}*rkeys(){for(let e of K(this,N,Li).call(this)){let t=S(this,Ae)[e];t!==void 0&&!K(this,N,Ce).call(this,S(this,ce)[e])&&(yield t)}}*values(){for(let e of K(this,N,Ei).call(this))S(this,ce)[e]!==void 0&&!K(this,N,Ce).call(this,S(this,ce)[e])&&(yield S(this,ce)[e])}*rvalues(){for(let e of K(this,N,Li).call(this))S(this,ce)[e]!==void 0&&!K(this,N,Ce).call(this,S(this,ce)[e])&&(yield S(this,ce)[e])}[(Vf=Symbol.iterator,zf=Symbol.toStringTag,Vf)](){return this.entries()}find(e,t={}){for(let n of K(this,N,Ei).call(this)){let r=S(this,ce)[n],s=K(this,N,Ce).call(this,r)?r.__staleWhileFetching:r;if(s!==void 0&&e(s,S(this,Ae)[n],this))return this.get(S(this,Ae)[n],t)}}forEach(e,t=this){for(let n of K(this,N,Ei).call(this)){let r=S(this,ce)[n],s=K(this,N,Ce).call(this,r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,S(this,Ae)[n],this)}}rforEach(e,t=this){for(let n of K(this,N,Li).call(this)){let r=S(this,ce)[n],s=K(this,N,Ce).call(this,r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,S(this,Ae)[n],this)}}purgeStale(){let e=!1;for(let t of K(this,N,Li).call(this,{allowStale:!0}))S(this,wt).call(this,t)&&(K(this,N,Ri).call(this,S(this,Ae)[t],"expire"),e=!0);return e}info(e){let t=S(this,Ve).get(e);if(t===void 0)return;let n=S(this,ce)[t],r=K(this,N,Ce).call(this,n)?n.__staleWhileFetching:n;if(r===void 0)return;let s={value:r};if(S(this,St)&&S(this,Ut)){let o=S(this,St)[t],l=S(this,Ut)[t];if(o&&l){let a=o-(S(this,Yt).now()-l);s.ttl=a,s.start=Date.now()}}return S(this,Ft)&&(s.size=S(this,Ft)[t]),s}dump(){let e=[];for(let t of K(this,N,Ei).call(this,{allowStale:!0})){let n=S(this,Ae)[t],r=S(this,ce)[t],s=K(this,N,Ce).call(this,r)?r.__staleWhileFetching:r;if(s===void 0||n===void 0)continue;let o={value:s};if(S(this,St)&&S(this,Ut)){o.ttl=S(this,St)[t];let l=S(this,Yt).now()-S(this,Ut)[t];o.start=Math.floor(Date.now()-l)}S(this,Ft)&&(o.size=S(this,Ft)[t]),e.unshift([n,o])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let r=Date.now()-n.start;n.start=S(this,Yt).now()-r}this.set(t,n.value,n)}}set(e,t,n={}){var d,f,p,m,O,g,b;if(t===void 0)return this.delete(e),this;let{ttl:r=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:a}=n,{noUpdateTTL:h=this.noUpdateTTL}=n,c=S(this,us).call(this,e,t,n.size||0,l);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),K(this,N,Ri).call(this,e,"set"),this;let u=S(this,qe)===0?void 0:S(this,Ve).get(e);if(u===void 0)u=S(this,qe)===0?S(this,We):S(this,Gt).length!==0?S(this,Gt).pop():S(this,qe)===S(this,Rt)?K(this,N,eo).call(this,!1):S(this,qe),S(this,Ae)[u]=e,S(this,ce)[u]=t,S(this,Ve).set(e,u),S(this,nt)[S(this,We)]=u,S(this,kt)[u]=S(this,We),ne(this,We,u),xs(this,qe)._++,S(this,Dn).call(this,u,c,a),a&&(a.set="add"),h=!1,S(this,Vn)&&((d=S(this,ln))==null||d.call(this,t,e,"add"));else{K(this,N,Sr).call(this,u);let Q=S(this,ce)[u];if(t!==Q){if(S(this,zi)&&K(this,N,Ce).call(this,Q)){Q.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:x}=Q;x!==void 0&&!o&&(S(this,Ht)&&((f=S(this,jt))==null||f.call(this,x,e,"set")),S(this,rt)&&((p=S(this,Ye))==null||p.push([x,e,"set"])))}else o||(S(this,Ht)&&((m=S(this,jt))==null||m.call(this,Q,e,"set")),S(this,rt)&&((O=S(this,Ye))==null||O.push([Q,e,"set"])));if(S(this,hn).call(this,u),S(this,Dn).call(this,u,c,a),S(this,ce)[u]=t,a){a.set="replace";let x=Q&&K(this,N,Ce).call(this,Q)?Q.__staleWhileFetching:Q;x!==void 0&&(a.oldValue=x)}}else a&&(a.set="update");S(this,Vn)&&((g=this.onInsert)==null||g.call(this,t,e,t===Q?"update":"replace"))}if(r!==0&&!S(this,St)&&K(this,N,Oa).call(this),S(this,St)&&(h||S(this,cs).call(this,u,r,s),a&&S(this,yi).call(this,a,u)),!o&&S(this,rt)&&S(this,Ye)){let Q=S(this,Ye),x;for(;x=Q==null?void 0:Q.shift();)(b=S(this,Wt))==null||b.call(this,...x)}return this}pop(){var e;try{for(;S(this,qe);){let t=S(this,ce)[S(this,Je)];if(K(this,N,eo).call(this,!0),K(this,N,Ce).call(this,t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(S(this,rt)&&S(this,Ye)){let t=S(this,Ye),n;for(;n=t==null?void 0:t.shift();)(e=S(this,Wt))==null||e.call(this,...n)}}}has(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,s=S(this,Ve).get(e);if(s!==void 0){let o=S(this,ce)[s];if(K(this,N,Ce).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(S(this,wt).call(this,s))r&&(r.has="stale",S(this,yi).call(this,r,s));else return n&&S(this,an).call(this,s),r&&(r.has="hit",S(this,yi).call(this,r,s)),!0}else r&&(r.has="miss");return!1}peek(e,t={}){let{allowStale:n=this.allowStale}=t,r=S(this,Ve).get(e);if(r===void 0||!n&&S(this,wt).call(this,r))return;let s=S(this,ce)[r];return K(this,N,Ce).call(this,s)?s.__staleWhileFetching:s}async fetch(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:a=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:O=!1,status:g,signal:b}=t;if(!S(this,zi))return g&&(g.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:g});let Q={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:l,size:a,sizeCalculation:h,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:p,ignoreFetchAbort:f,status:g,signal:b},x=S(this,Ve).get(e);if(x===void 0){g&&(g.fetch="miss");let k=K(this,N,to).call(this,e,x,Q,m);return k.__returned=k}else{let k=S(this,ce)[x];if(K(this,N,Ce).call(this,k)){let A=n&&k.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",A&&(g.returnedStale=!0)),A?k.__staleWhileFetching:k.__returned=k}let $=S(this,wt).call(this,x);if(!O&&!$)return g&&(g.fetch="hit"),K(this,N,Sr).call(this,x),r&&S(this,an).call(this,x),g&&S(this,yi).call(this,g,x),k;let C=K(this,N,to).call(this,e,x,Q,m),T=C.__staleWhileFetching!==void 0&&n;return g&&(g.fetch=$?"stale":"refresh",T&&$&&(g.returnedStale=!0)),T?C.__staleWhileFetching:C.__returned=C}}async forceFetch(e,t={}){let n=await this.fetch(e,t);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,t={}){let n=S(this,zn);if(!n)throw new Error("no memoMethod provided to constructor");let{context:r,forceRefresh:s,...o}=t,l=this.get(e,o);if(!s&&l!==void 0)return l;let a=n(e,l,{options:o,context:r});return this.set(e,a,o),a}get(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=t,l=S(this,Ve).get(e);if(l!==void 0){let a=S(this,ce)[l],h=K(this,N,Ce).call(this,a);return o&&S(this,yi).call(this,o,l),S(this,wt).call(this,l)?(o&&(o.get="stale"),h?(o&&n&&a.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?a.__staleWhileFetching:void 0):(s||K(this,N,Ri).call(this,e,"expire"),o&&n&&(o.returnedStale=!0),n?a:void 0)):(o&&(o.get="hit"),h?a.__staleWhileFetching:(K(this,N,Sr).call(this,l),r&&S(this,an).call(this,l),a))}else o&&(o.get="miss")}delete(e){return K(this,N,Ri).call(this,e,"delete")}clear(){return K(this,N,va).call(this,"delete")}},Rt=new WeakMap,yt=new WeakMap,jt=new WeakMap,ln=new WeakMap,Wt=new WeakMap,In=new WeakMap,zn=new WeakMap,Yt=new WeakMap,qe=new WeakMap,Nt=new WeakMap,Ve=new WeakMap,Ae=new WeakMap,ce=new WeakMap,nt=new WeakMap,kt=new WeakMap,Je=new WeakMap,We=new WeakMap,Gt=new WeakMap,Ye=new WeakMap,Ft=new WeakMap,Ut=new WeakMap,St=new WeakMap,xt=new WeakMap,Ht=new WeakMap,zi=new WeakMap,rt=new WeakMap,Vn=new WeakMap,N=new WeakSet,Oa=function(){let e=new Js(S(this,Rt)),t=new Js(S(this,Rt));ne(this,St,e),ne(this,Ut,t);let n=this.ttlAutopurge?new Array(S(this,Rt)):void 0;ne(this,xt,n),ne(this,cs,(l,a,h=S(this,Yt).now())=>{t[l]=a!==0?h:0,e[l]=a,r(l,a)}),ne(this,an,l=>{t[l]=e[l]!==0?S(this,Yt).now():0,r(l,e[l])});let r=this.ttlAutopurge?(l,a)=>{if(n!=null&&n[l]&&(clearTimeout(n[l]),n[l]=void 0),a&&a!==0&&n){let h=setTimeout(()=>{S(this,wt).call(this,l)&&K(this,N,Ri).call(this,S(this,Ae)[l],"expire")},a+1);h.unref&&h.unref(),n[l]=h}}:()=>{};ne(this,yi,(l,a)=>{if(e[a]){let h=e[a],c=t[a];if(!h||!c)return;l.ttl=h,l.start=c,l.now=s||o();let u=l.now-c;l.remainingTTL=h-u}});let s=0,o=()=>{let l=S(this,Yt).now();if(this.ttlResolution>0){s=l;let a=setTimeout(()=>s=0,this.ttlResolution);a.unref&&a.unref()}return l};this.getRemainingTTL=l=>{let a=S(this,Ve).get(l);if(a===void 0)return 0;let h=e[a],c=t[a];if(!h||!c)return 1/0;let u=(s||o())-c;return h-u},ne(this,wt,l=>{let a=t[l],h=e[l];return!!h&&!!a&&(s||o())-a>h})},an=new WeakMap,yi=new WeakMap,cs=new WeakMap,wt=new WeakMap,ip=function(){let e=new Js(S(this,Rt));ne(this,Nt,0),ne(this,Ft,e),ne(this,hn,t=>{ne(this,Nt,S(this,Nt)-e[t]),e[t]=0}),ne(this,us,(t,n,r,s)=>{if(K(this,N,Ce).call(this,n))return 0;if(!_i(r))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(n,t),!_i(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r}),ne(this,Dn,(t,n,r)=>{if(e[t]=n,S(this,yt)){let s=S(this,yt)-e[t];for(;S(this,Nt)>s;)K(this,N,eo).call(this,!0)}ne(this,Nt,S(this,Nt)+e[t]),r&&(r.entrySize=n,r.totalCalculatedSize=S(this,Nt))})},hn=new WeakMap,Dn=new WeakMap,us=new WeakMap,Ei=function*({allowStale:e=this.allowStale}={}){if(S(this,qe))for(let t=S(this,We);!(!K(this,N,ga).call(this,t)||((e||!S(this,wt).call(this,t))&&(yield t),t===S(this,Je)));)t=S(this,kt)[t]},Li=function*({allowStale:e=this.allowStale}={}){if(S(this,qe))for(let t=S(this,Je);!(!K(this,N,ga).call(this,t)||((e||!S(this,wt).call(this,t))&&(yield t),t===S(this,We)));)t=S(this,nt)[t]},ga=function(e){return e!==void 0&&S(this,Ve).get(S(this,Ae)[e])===e},eo=function(e){var s,o,l;let t=S(this,Je),n=S(this,Ae)[t],r=S(this,ce)[t];return S(this,zi)&&K(this,N,Ce).call(this,r)?r.__abortController.abort(new Error("evicted")):(S(this,Ht)||S(this,rt))&&(S(this,Ht)&&((s=S(this,jt))==null||s.call(this,r,n,"evict")),S(this,rt)&&((o=S(this,Ye))==null||o.push([r,n,"evict"]))),S(this,hn).call(this,t),(l=S(this,xt))!=null&&l[t]&&(clearTimeout(S(this,xt)[t]),S(this,xt)[t]=void 0),e&&(S(this,Ae)[t]=void 0,S(this,ce)[t]=void 0,S(this,Gt).push(t)),S(this,qe)===1?(ne(this,Je,ne(this,We,0)),S(this,Gt).length=0):ne(this,Je,S(this,nt)[t]),S(this,Ve).delete(n),xs(this,qe)._--,t},to=function(e,t,n,r){let s=t===void 0?void 0:S(this,ce)[t];if(K(this,N,Ce).call(this,s))return s;let o=new bo,{signal:l}=n;l==null||l.addEventListener("abort",()=>o.abort(l.reason),{signal:o.signal});let a={signal:o.signal,options:n,context:r},h=(m,O=!1)=>{let{aborted:g}=o.signal,b=n.ignoreFetchAbort&&m!==void 0,Q=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&m!==void 0);if(n.status&&(g&&!O?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,b&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),g&&!b&&!O)return u(o.signal.reason,Q);let x=f,k=S(this,ce)[t];return(k===f||b&&O&&k===void 0)&&(m===void 0?x.__staleWhileFetching!==void 0?S(this,ce)[t]=x.__staleWhileFetching:K(this,N,Ri).call(this,e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,m,a.options))),m},c=m=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=m),u(m,!1)),u=(m,O)=>{let{aborted:g}=o.signal,b=g&&n.allowStaleOnFetchAbort,Q=b||n.allowStaleOnFetchRejection,x=Q||n.noDeleteOnFetchRejection,k=f;if(S(this,ce)[t]===f&&(!x||!O&&k.__staleWhileFetching===void 0?K(this,N,Ri).call(this,e,"fetch"):b||(S(this,ce)[t]=k.__staleWhileFetching)),Q)return n.status&&k.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw m},d=(m,O)=>{var b;let g=(b=S(this,In))==null?void 0:b.call(this,e,s,a);g&&g instanceof Promise&&g.then(Q=>m(Q===void 0?void 0:Q),O),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(void 0),n.allowStaleOnFetchAbort&&(m=Q=>h(Q,!0)))})};n.status&&(n.status.fetchDispatched=!0);let f=new Promise(d).then(h,c),p=Object.assign(f,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,p,{...a.options,status:void 0}),t=S(this,Ve).get(e)):S(this,ce)[t]=p,p},Ce=function(e){if(!S(this,zi))return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof bo},ba=function(e,t){S(this,kt)[t]=e,S(this,nt)[e]=t},Sr=function(e){e!==S(this,We)&&(e===S(this,Je)?ne(this,Je,S(this,nt)[e]):K(this,N,ba).call(this,S(this,kt)[e],S(this,nt)[e]),K(this,N,ba).call(this,S(this,We),e),ne(this,We,e))},Ri=function(e,t){var r,s,o,l,a,h;let n=!1;if(S(this,qe)!==0){let c=S(this,Ve).get(e);if(c!==void 0)if((r=S(this,xt))!=null&&r[c]&&(clearTimeout((s=S(this,xt))==null?void 0:s[c]),S(this,xt)[c]=void 0),n=!0,S(this,qe)===1)K(this,N,va).call(this,t);else{S(this,hn).call(this,c);let u=S(this,ce)[c];if(K(this,N,Ce).call(this,u)?u.__abortController.abort(new Error("deleted")):(S(this,Ht)||S(this,rt))&&(S(this,Ht)&&((o=S(this,jt))==null||o.call(this,u,e,t)),S(this,rt)&&((l=S(this,Ye))==null||l.push([u,e,t]))),S(this,Ve).delete(e),S(this,Ae)[c]=void 0,S(this,ce)[c]=void 0,c===S(this,We))ne(this,We,S(this,kt)[c]);else if(c===S(this,Je))ne(this,Je,S(this,nt)[c]);else{let d=S(this,kt)[c];S(this,nt)[d]=S(this,nt)[c];let f=S(this,nt)[c];S(this,kt)[f]=S(this,kt)[c]}xs(this,qe)._--,S(this,Gt).push(c)}}if(S(this,rt)&&((a=S(this,Ye))!=null&&a.length)){let c=S(this,Ye),u;for(;u=c==null?void 0:c.shift();)(h=S(this,Wt))==null||h.call(this,...u)}return n},va=function(e){var t,n,r,s;for(let o of K(this,N,Li).call(this,{allowStale:!0})){let l=S(this,ce)[o];if(K(this,N,Ce).call(this,l))l.__abortController.abort(new Error("deleted"));else{let a=S(this,Ae)[o];S(this,Ht)&&((t=S(this,jt))==null||t.call(this,l,a,e)),S(this,rt)&&((n=S(this,Ye))==null||n.push([l,a,e]))}}if(S(this,Ve).clear(),S(this,ce).fill(void 0),S(this,Ae).fill(void 0),S(this,St)&&S(this,Ut)){S(this,St).fill(0),S(this,Ut).fill(0);for(let o of S(this,xt)??[])o!==void 0&&clearTimeout(o);(r=S(this,xt))==null||r.fill(void 0)}if(S(this,Ft)&&S(this,Ft).fill(0),ne(this,Je,0),ne(this,We,0),S(this,Gt).length=0,ne(this,Nt,0),ne(this,qe,0),S(this,rt)&&S(this,Ye)){let o=S(this,Ye),l;for(;l=o==null?void 0:o.shift();)(s=S(this,Wt))==null||s.call(this,...l)}},Bn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var Ki=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},Qs=function(e){return e.tagName==="IMG"},xb=function(e){return NodeList.prototype.isPrototypeOf(e)},io=function(e){return e&&e.nodeType===1},Dc=function(e){var t=e.currentSrc||e.src;return t.substr(-4).toLowerCase()===".svg"},Bc=function(e){try{return Array.isArray(e)?e.filter(Qs):xb(e)?[].slice.call(e).filter(Qs):io(e)?[e].filter(Qs):typeof e=="string"?[].slice.call(document.querySelectorAll(e)).filter(Qs):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
4
4
|
Expects a CSS selector, a Node element, a NodeList or an array.
|
|
5
5
|
See: https://github.com/francoischalifour/medium-zoom`)}},wb=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},Qb=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,s=t.width,o=t.height,l=e.cloneNode(),a=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,h=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return l.removeAttribute("id"),l.style.position="absolute",l.style.top=n+a+"px",l.style.left=r+h+"px",l.style.width=s+"px",l.style.height=o+"px",l.style.transform="",l},vn=function(e,t){var n=Ki({bubbles:!1,cancelable:!1,detail:void 0},t);if(typeof window.CustomEvent=="function")return new CustomEvent(e,n);var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r},$b=function i(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=window.Promise||function(R){function D(){}R(D,D)},r=function(R){var D=R.target;if(D===A){p();return}Q.indexOf(D)!==-1&&m({target:D})},s=function(){if(!(k||!T.original)){var R=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs($-R)>C.scrollOffset&&setTimeout(p,150)}},o=function(R){var D=R.key||R.keyCode;(D==="Escape"||D==="Esc"||D===27)&&p()},l=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R;if(R.background&&(A.style.background=R.background),R.container&&R.container instanceof Object&&(D.container=Ki({},C.container,R.container)),R.template){var q=io(R.template)?R.template:document.querySelector(R.template);D.template=q}return C=Ki({},C,D),Q.forEach(function(G){G.dispatchEvent(vn("medium-zoom:update",{detail:{zoom:M}}))}),M},a=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return i(Ki({},C,R))},h=function(){for(var R=arguments.length,D=Array(R),q=0;q<R;q++)D[q]=arguments[q];var G=D.reduce(function(I,W){return[].concat(I,Bc(W))},[]);return G.filter(function(I){return Q.indexOf(I)===-1}).forEach(function(I){Q.push(I),I.classList.add("medium-zoom-image")}),x.forEach(function(I){var W=I.type,V=I.listener,E=I.options;G.forEach(function(H){H.addEventListener(W,V,E)})}),M},c=function(){for(var R=arguments.length,D=Array(R),q=0;q<R;q++)D[q]=arguments[q];T.zoomed&&p();var G=D.length>0?D.reduce(function(I,W){return[].concat(I,Bc(W))},[]):Q;return G.forEach(function(I){I.classList.remove("medium-zoom-image"),I.dispatchEvent(vn("medium-zoom:detach",{detail:{zoom:M}}))}),Q=Q.filter(function(I){return G.indexOf(I)===-1}),M},u=function(R,D){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Q.forEach(function(G){G.addEventListener("medium-zoom:"+R,D,q)}),x.push({type:"medium-zoom:"+R,listener:D,options:q}),M},d=function(R,D){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Q.forEach(function(G){G.removeEventListener("medium-zoom:"+R,D,q)}),x=x.filter(function(G){return!(G.type==="medium-zoom:"+R&&G.listener.toString()===D.toString())}),M},f=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R.target,q=function(){var I={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},W=void 0,V=void 0;if(C.container)if(C.container instanceof Object)I=Ki({},I,C.container),W=I.width-I.left-I.right-C.margin*2,V=I.height-I.top-I.bottom-C.margin*2;else{var E=io(C.container)?C.container:document.querySelector(C.container),H=E.getBoundingClientRect(),se=H.width,ee=H.height,oe=H.left,ue=H.top;I=Ki({},I,{width:se,height:ee,left:oe,top:ue})}W=W||I.width-C.margin*2,V=V||I.height-C.margin*2;var $e=T.zoomedHd||T.original,Re=Dc($e)?W:$e.naturalWidth||W,Lt=Dc($e)?V:$e.naturalHeight||V,gi=$e.getBoundingClientRect(),Ss=gi.top,x0=gi.left,fl=gi.width,pl=gi.height,w0=Math.min(Math.max(fl,Re),W)/fl,Q0=Math.min(Math.max(pl,Lt),V)/pl,ml=Math.min(w0,Q0),$0=(-x0+(W-fl)/2+C.margin+I.left)/ml,P0=(-Ss+(V-pl)/2+C.margin+I.top)/ml,Tc="scale("+ml+") translate3d("+$0+"px, "+P0+"px, 0)";T.zoomed.style.transform=Tc,T.zoomedHd&&(T.zoomedHd.style.transform=Tc)};return new n(function(G){if(D&&Q.indexOf(D)===-1){G(M);return}var I=function se(){k=!1,T.zoomed.removeEventListener("transitionend",se),T.original.dispatchEvent(vn("medium-zoom:opened",{detail:{zoom:M}})),G(M)};if(T.zoomed){G(M);return}if(D)T.original=D;else if(Q.length>0){var W=Q;T.original=W[0]}else{G(M);return}if(T.original.dispatchEvent(vn("medium-zoom:open",{detail:{zoom:M}})),$=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,T.zoomed=Qb(T.original),document.body.appendChild(A),C.template){var V=io(C.template)?C.template:document.querySelector(C.template);T.template=document.createElement("div"),T.template.appendChild(V.content.cloneNode(!0)),document.body.appendChild(T.template)}if(T.original.parentElement&&T.original.parentElement.tagName==="PICTURE"&&T.original.currentSrc&&(T.zoomed.src=T.original.currentSrc),document.body.appendChild(T.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),T.original.classList.add("medium-zoom-image--hidden"),T.zoomed.classList.add("medium-zoom-image--opened"),T.zoomed.addEventListener("click",p),T.zoomed.addEventListener("transitionend",I),T.original.getAttribute("data-zoom-src")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("srcset"),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.removeAttribute("loading"),T.zoomedHd.src=T.zoomed.getAttribute("data-zoom-src"),T.zoomedHd.onerror=function(){clearInterval(E),console.warn("Unable to reach the zoom image target "+T.zoomedHd.src),T.zoomedHd=null,q()};var E=setInterval(function(){T.zoomedHd.complete&&(clearInterval(E),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",p),document.body.appendChild(T.zoomedHd),q())},10)}else if(T.original.hasAttribute("srcset")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.removeAttribute("loading");var H=T.zoomedHd.addEventListener("load",function(){T.zoomedHd.removeEventListener("load",H),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",p),document.body.appendChild(T.zoomedHd),q()})}else q()})},p=function(){return new n(function(R){if(k||!T.original){R(M);return}var D=function q(){T.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(T.zoomed),T.zoomedHd&&document.body.removeChild(T.zoomedHd),document.body.removeChild(A),T.zoomed.classList.remove("medium-zoom-image--opened"),T.template&&document.body.removeChild(T.template),k=!1,T.zoomed.removeEventListener("transitionend",q),T.original.dispatchEvent(vn("medium-zoom:closed",{detail:{zoom:M}})),T.original=null,T.zoomed=null,T.zoomedHd=null,T.template=null,R(M)};k=!0,document.body.classList.remove("medium-zoom--opened"),T.zoomed.style.transform="",T.zoomedHd&&(T.zoomedHd.style.transform=""),T.template&&(T.template.style.transition="opacity 150ms",T.template.style.opacity=0),T.original.dispatchEvent(vn("medium-zoom:close",{detail:{zoom:M}})),T.zoomed.addEventListener("transitionend",D)})},m=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R.target;return T.original?p():f({target:D})},O=function(){return C},g=function(){return Q},b=function(){return T.original},Q=[],x=[],k=!1,$=0,C=t,T={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(e)==="[object Object]"?C=e:(e||typeof e=="string")&&h(e),C=Ki({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},C);var A=wb(C.background);document.addEventListener("click",r),document.addEventListener("keyup",o),document.addEventListener("scroll",s),window.addEventListener("resize",p);var M={open:f,close:p,toggle:m,update:l,clone:a,attach:h,detach:c,on:u,off:d,getOptions:O,getImages:g,getZoomedImage:b};return M};function Pb(i,e){e===void 0&&(e={});var t=e.insertAt;if(!(typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i))}}var Tb=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Pb(Tb);const lt={hljs:`${v}-hljs`,hlcss:`${v}-hlCss`,prettier:`${v}-prettier`,prettierMD:`${v}-prettierMD`,cropperjs:`${v}-cropper`,croppercss:`${v}-cropperCss`,screenfull:`${v}-screenfull`,mermaidM:`${v}-mermaid-m`,mermaid:`${v}-mermaid`,katexjs:`${v}-katex`,katexcss:`${v}-katexCss`,echarts:`${v}-echarts`},Cb=(i,e,t)=>{const{editorId:n}=t,r=zt({buildFinished:!1,html:""});le(()=>i.modelValue,()=>{r.buildFinished=!1}),Ee(()=>{X.on(n,{name:Ks,callback(s){r.buildFinished=!0,r.html=s}}),X.on(n,{name:Ho,callback(){const s=new Promise(o=>{if(r.buildFinished)o(r.html);else{const l=a=>{o(a),X.remove(n,Ks,l)};X.on(n,{name:Ks,callback:l})}});i.onSave?i.onSave(i.modelValue,s):e.emit("onSave",i.modelValue,s)}})})},np=(i,{editorId:e,rootRef:t,setting:n})=>{const r=ze.editorExtensions.highlight,s=ze.editorExtensionsAttrs.highlight;Me("editorId",e),Me("rootRef",t),Me("theme",ke(()=>i.theme)),Me("language",ke(()=>i.language)),Me("highlight",ke(()=>{const{js:l}=r,a={...pa,...r.css},{js:h,css:c={}}=s||{},u=i.codeStyleReverse&&i.codeStyleReverseList.includes(i.previewTheme)?"dark":i.theme,d=a[i.codeTheme]?a[i.codeTheme][u]:pa.atom[u],f=a[i.codeTheme]&&c[i.codeTheme]?c[i.codeTheme][u]:c.atom?c.atom[u]:{};return{js:{src:l,...h},css:{href:d,...f}}})),Me("showCodeRowNumber",i.showCodeRowNumber);const o=ke(()=>{const l={...Oo,...ze.editorConfig.languageUserDefined};return Uo(kr(Oo["en-US"]),l[i.language]||{})});return Me("usedLanguageText",o),Me("previewTheme",ke(()=>i.previewTheme)),Me("customIcon",ke(()=>i.customIcon)),Me("setting",ke(()=>n?{...n}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:e}},Ab=(i,e)=>(Me("tabWidth",i.tabWidth),Me("disabled",ke(()=>i.disabled)),Me("showToolbarName",ke(()=>i.showToolbarName)),Me("noUploadImg",i.noUploadImg),Me("tableShape",ke(()=>i.tableShape)),Me("noPrettier",i.noPrettier),Me("codeTheme",ke(()=>i.codeTheme)),Me("updateSetting",e.updateSetting),Me("catalogVisible",ke(()=>e.catalogVisible.value)),Me("defToolbars",e.defToolbars),Me("floatingToolbars",ke(()=>i.floatingToolbars)),np(i,e)),_b=i=>{const{noPrettier:e,noUploadImg:t}=i,{editorExtensions:n,editorExtensionsAttrs:r}=ze,s=e||n.prettier.prettierInstance,o=e||n.prettier.parserMarkdownInstance,l=t||n.cropper.instance;Ee(()=>{if(!l){const{js:a={},css:h={}}=r.cropper||{};Tt("link",{...h,rel:"stylesheet",href:n.cropper.css,id:lt.croppercss}),Tt("script",{...a,src:n.cropper.js,id:lt.cropperjs})}if(!s){const{standaloneJs:a={}}=r.prettier||{};Tt("script",{...a,src:n.prettier.standaloneJs,id:lt.prettier})}if(!o){const{parserMarkdownJs:a={}}=r.prettier||{};Tt("script",{...a,src:n.prettier.parserMarkdownJs,id:lt.prettierMD})}})},Eb=(i,e,t)=>{const{editorId:n}=t;Ee(()=>{X.on(n,{name:Oi,callback:r=>{var s;(s=i.onError)==null||s.call(i,r),e.emit("onError",r)}})})},Lb=(i,e,t)=>{const{editorId:n}=t,r=zt({pageFullscreen:i.pageFullscreen,fullscreen:!1,preview:i.preview,htmlPreview:i.preview?!1:i.htmlPreview,previewOnly:!1}),s=zt({...r}),o=(h,c)=>{const u=c===void 0?!r[h]:c;switch(h){case"preview":{r.htmlPreview=!1,r.previewOnly=!1;break}case"htmlPreview":{r.preview=!1,r.previewOnly=!1;break}case"previewOnly":{u?!r.preview&&!r.htmlPreview&&(r.preview=!0):(s.preview||(r.preview=!1),s.htmlPreview||(r.htmlPreview=!1));break}}s[h]=u,r[h]=u};let l="";const a=()=>{r.pageFullscreen||r.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=l};return le(()=>[r.pageFullscreen,r.fullscreen],a),Ee(()=>{X.on(n,{name:Ko,callback(h,c){const u=d=>{X.emit(n,re,"image",{desc:"",urls:d}),c==null||c()};i.onUploadImg?i.onUploadImg(h,u):e.emit("onUploadImg",h,u)}}),l=document.body.style.overflow,a()}),[r,o]},Rb=(i,e)=>{const{editorId:t}=e,n=he(!1);return Ee(()=>{X.on(t,{name:Sh,callback:r=>{r===void 0?n.value=!n.value:n.value=r}})}),n},Mb=(i,e,t)=>{const{editorId:n,catalogVisible:r,setting:s,updateSetting:o,codeRef:l}=t;le(()=>s.pageFullscreen,h=>{X.emit(n,_c,h)}),le(()=>s.fullscreen,h=>{X.emit(n,Ec,h)}),le(()=>s.preview,h=>{X.emit(n,Lc,h)}),le(()=>s.previewOnly,h=>{X.emit(n,Rc,h)}),le(()=>s.htmlPreview,h=>{X.emit(n,Mc,h)}),le(r,h=>{X.emit(n,Zc,h)});const a={on(h,c){switch(h){case"pageFullscreen":{X.on(n,{name:_c,callback(u){c(u)}});break}case"fullscreen":{X.on(n,{name:Ec,callback(u){c(u)}});break}case"preview":{X.on(n,{name:Lc,callback(u){c(u)}});break}case"previewOnly":{X.on(n,{name:Rc,callback(u){c(u)}});break}case"htmlPreview":{X.on(n,{name:Mc,callback(u){c(u)}});break}case"catalog":{X.on(n,{name:Zc,callback(u){c(u)}});break}}},togglePageFullscreen(h){o("pageFullscreen",h)},toggleFullscreen(h){X.emit(n,Bf,h)},togglePreview(h){o("preview",h)},togglePreviewOnly(h){o("previewOnly",h)},toggleHtmlPreview(h){o("htmlPreview",h)},toggleCatalog(h){X.emit(n,Sh,h)},triggerSave(){X.emit(n,Ho)},insert(h){X.emit(n,re,"universal",{generate:h})},focus(h){var c;(c=l.value)==null||c.focus(h)},rerender(){X.emit(n,xh)},getSelectedText(){var h;return(h=l.value)==null?void 0:h.getSelectedText()},resetHistory(){var h;(h=l.value)==null||h.resetHistory()},domEventHandlers(h){X.emit(n,Yf,h)},execCommand(h){X.emit(n,re,h)},getEditorView(){var h;return(h=l.value)==null?void 0:h.getEditorView()}};e.expose(a)},rp=i=>{const e=A0();return i.id||i.editorId||`${v}-${e}`},Zb=(i,e,t)=>{const n=P("editorId"),r=P("rootRef"),s=P("usedLanguageText"),o=P("setting"),l=()=>{r.value.querySelectorAll(`#${n} .${v}-preview .${v}-code`).forEach(c=>{let u=-1;const d=c.querySelector(`.${v}-copy-button:not([data-processed])`);d&&(d.onclick=f=>{f.preventDefault(),clearTimeout(u);const p=(c.querySelector("input:checked + pre code")||c.querySelector("pre code")).textContent,{text:m,successTips:O,failTips:g}=s.value.copyCode;let b=O;Uf(i.formatCopiedText(p||"")).catch(()=>{b=g}).finally(()=>{d.dataset.isIcon?d.dataset.tips=b:d.innerHTML=b,u=window.setTimeout(()=>{d.dataset.isIcon?d.dataset.tips=m:d.innerHTML=m},1500)})},d.setAttribute("data-processed","true"))})},a=()=>{Dt(l)},h=c=>{c&&Dt(l)};le([e,t],a),le(()=>o.value.preview,h),le(()=>o.value.htmlPreview,h),Ee(l)},Xb=i=>{const e=P("editorId"),t=P("theme"),n=P("rootRef"),{editorExtensions:r,editorExtensionsAttrs:s}=ze;let o=r.echarts.instance;const l=qi(-1),a=()=>{!i.noEcharts&&o&&(l.value=l.value+1)};le(()=>t.value,()=>{a()}),Ee(()=>{var m;if(i.noEcharts||o)return;const p=r.echarts.js;Tt("script",{...(m=s.echarts)==null?void 0:m.js,src:p,id:lt.echarts,onload(){o=window.echarts,a()}},"echarts")});let h=[],c=[],u=[];const d=(p=!1)=>{if(!h.length){p&&(c.forEach(b=>{var Q;(Q=b.dispose)==null||Q.call(b)}),u.forEach(b=>{var Q;(Q=b.disconnect)==null||Q.call(b)}),c=[],u=[]);return}const m=[],O=[],g=[];h.forEach((b,Q)=>{var $,C;const x=c[Q],k=u[Q];if(p||!b||!b.isConnected||n!=null&&n.value&&!n.value.contains(b)){($=x==null?void 0:x.dispose)==null||$.call(x),(C=k==null?void 0:k.disconnect)==null||C.call(k);return}m.push(b),x&&O.push(x),k&&g.push(k)}),h=m,c=O,u=g},f=()=>{d(),!i.noEcharts&&o&&Array.from(n.value.querySelectorAll(`#${e} div.${v}-echarts:not([data-processed])`)).forEach(p=>{if(p.dataset.closed==="false")return!1;try{const m=new Function(`return ${p.innerText}`)(),O=o.init(p,t.value);O.setOption(m),p.setAttribute("data-processed",""),h.push(p),c.push(O);const g=new ResizeObserver(()=>{O.resize()});g.observe(p),u.push(g)}catch(m){X.emit(e,Oi,{name:"echarts",message:m==null?void 0:m.message,error:m})}})};return $i(()=>{d(!0)}),{reRenderEcharts:l,replaceEcharts:f}},Ib=i=>{const e=P("highlight"),t=qi(ze.editorExtensions.highlight.instance);return Ee(()=>{i.noHighlight||t.value||(Tt("link",{...e.value.css,rel:"stylesheet",id:lt.hlcss}),Tt("script",{...e.value.js,id:lt.hljs,onload(){t.value=window.hljs}},"hljs"))}),le(()=>e.value.css,()=>{i.noHighlight||ze.editorExtensions.highlight.instance||lb("link",{...e.value.css,rel:"stylesheet",id:lt.hlcss})}),t},zb=i=>{const e=qi(ze.editorExtensions.katex.instance);return Ee(()=>{var r,s;if(i.noKatex||e.value)return;const{editorExtensions:t,editorExtensionsAttrs:n}=ze;Tt("script",{...(r=n.katex)==null?void 0:r.js,src:t.katex.js,id:lt.katexjs,onload(){e.value=window.katex}},"katex"),Tt("link",{...(s=n.katex)==null?void 0:s.css,rel:"stylesheet",href:t.katex.css,id:lt.katexcss})}),e},no=new Sb({max:1e3,ttl:6e5}),Vb=i=>{const e=P("editorId"),t=P("theme"),n=P("rootRef"),{editorExtensions:r,editorExtensionsAttrs:s,mermaidConfig:o}=ze;let l=r.mermaid.instance;const a=qi(-1),h=()=>{if(!i.noMermaid&&l){const c=t.value==="dark"?{startOnLoad:!1,theme:"dark"}:{startOnLoad:!1,theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#ffffff",primaryTextColor:"#1f2329",primaryBorderColor:"#b7c0cc",secondaryColor:"#f7f8fa",tertiaryColor:"#f7f8fa",lineColor:"#596273",edgeLabelBackground:"#ffffff",clusterBkg:"#ffffff",clusterBorder:"#b7c0cc"}};l.initialize(o(c)),a.value=a.value+1}};return le(()=>t.value,()=>{no.clear(),h()}),Ee(()=>{var u,d;if(i.noMermaid||l)return;const c=r.mermaid.js;/\.mjs/.test(c)?(Tt("link",{...(u=s.mermaid)==null?void 0:u.js,rel:"modulepreload",href:c,id:lt.mermaidM}),import(c).then(f=>{l=f.default,h()}).catch(f=>{X.emit(e,Oi,{name:"mermaid",message:`Failed to load mermaid module: ${f.message}`,error:f})})):Tt("script",{...(d=s.mermaid)==null?void 0:d.js,src:c,id:lt.mermaid,onload(){l=window.mermaid,h()}},"mermaid")}),{reRenderRef:a,replaceMermaid:async()=>{if(!i.noMermaid&&l){const c=n.value.querySelectorAll(`div.${v}-mermaid`),u=document.createElement("div"),d=document.body.offsetWidth>1366?document.body.offsetWidth:1366,f=document.body.offsetHeight>768?document.body.offsetHeight:768;u.style.width=d+"px",u.style.height=f+"px",u.style.position="fixed",u.style.zIndex="-10000",u.style.top="-10000";let p=c.length;p>0&&document.body.appendChild(u),await Promise.allSettled(Array.from(c).map(m=>(async O=>{var Q;if(O.dataset.closed==="false")return!1;const g=O.innerText;let b=no.get(g);if(!b){const x=da();let k={svg:""};try{k=await l.render(x,g,u),b=await i.sanitizeMermaid(k.svg);const $=document.createElement("p");$.className=`${v}-mermaid`,$.setAttribute("data-processed",""),$.setAttribute("data-content",g),$.innerHTML=b,(Q=$.children[0])==null||Q.removeAttribute("height"),no.set(g,$.innerHTML),O.dataset.line!==void 0&&($.dataset.line=O.dataset.line),O.replaceWith($)}catch($){X.emit(e,Oi,{name:"mermaid",message:$.message,error:$})}--p===0&&u.remove()}})(m)))}}}},Db=(i,e)=>{e=e||{};const t=3,n=e.marker||"!",r=n.charCodeAt(0),s=n.length;let o="",l="";const a=(c,u,d,f,p)=>{const m=c[u];return m.type==="admonition_open"?c[u].attrPush(["class",`${v}-admonition ${v}-admonition-${m.info}`]):m.type==="admonition_title_open"&&c[u].attrPush(["class",`${v}-admonition-title`]),p.renderToken(c,u,d)},h=c=>{const u=c.trim().split(" ",2);l="",o=u[0],u.length>1&&(l=c.substring(o.length+2))};i.block.ruler.before("code","admonition",(c,u,d,f)=>{let p,m,O,g=!1,b=c.bMarks[u]+c.tShift[u],Q=c.eMarks[u];if(r!==c.src.charCodeAt(b))return!1;for(p=b+1;p<=Q&&n[(p-b)%s]===c.src[p];p++);const x=Math.floor((p-b)/s);if(x!==t)return!1;p-=(p-b)%s;const k=c.src.slice(b,p),$=c.src.slice(p,Q);if(h($),f)return!0;for(m=u;m++,!(m>=d||(b=c.bMarks[m]+c.tShift[m],Q=c.eMarks[m],b<Q&&c.sCount[m]<c.blkIndent));)if(r===c.src.charCodeAt(b)&&!(c.sCount[m]-c.blkIndent>=4)){for(p=b+1;p<=Q&&n[(p-b)%s]===c.src[p];p++);if(!(Math.floor((p-b)/s)<x)&&(p-=(p-b)%s,p=c.skipSpaces(p),!(p<Q))){g=!0;break}}const C=c.parentType,T=c.lineMax;return c.parentType="root",c.lineMax=m,O=c.push("admonition_open","div",1),O.markup=k,O.block=!0,O.info=o,O.map=[u,m],l&&(O=c.push("admonition_title_open","p",1),O.markup=k+" "+o,O.map=[u,m],O=c.push("inline","",0),O.content=l,O.map=[u,c.line-1],O.children=[],O=c.push("admonition_title_close","p",-1),O.markup=k+" "+o),c.md.block.tokenize(c,u+1,m),O=c.push("admonition_close","div",-1),O.markup=c.src.slice(b,p),O.block=!0,c.parentType=C,c.lineMax=T,c.line=m+(g?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),i.renderer.rules.admonition_open=a,i.renderer.rules.admonition_title_open=a,i.renderer.rules.admonition_title_close=a,i.renderer.rules.admonition_close=a},ya=(i,e)=>{const t=i.attrs?i.attrs.slice():[];return e.forEach(n=>{const r=i.attrIndex(n[0]);r<0?t.push(n):(t[r]=t[r].slice(),t[r][1]+=` ${n[1]}`)}),t},Bb=(i,e)=>{const t=i.renderer.rules.fence,n=i.utils.unescapeAll,r=/\[(\w*)(?::([\w ]*))?\]/,s=/::(open|close)/,o=u=>u.info?n(u.info).trim():"",l=u=>{const d=o(u),[f=null,p=""]=(r.exec(d)||[]).slice(1);return[f,p]},a=u=>{const d=o(u);return d?d.split(/(\s+)/g)[0]:""},h=u=>{const d=u.info.match(s)||[],f=d[1]==="open"||d[1]!=="close"&&e.codeFoldable&&u.content.trim().split(`
|
|
@@ -274,7 +274,7 @@ See: https://github.com/francoischalifour/medium-zoom`)}},wb=function(e){var t=d
|
|
|
274
274
|
constructor(\${params}) {
|
|
275
275
|
\${}
|
|
276
276
|
}
|
|
277
|
-
}`,{label:"class",detail:"definition",type:"keyword"}),ut('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ut('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Pg=pc.concat([ut("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ut("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ut("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ef=new Zm,Tg=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function vr(i){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,i),!0}}const H$=["FunctionDeclaration"],K$={FunctionDeclaration:vr("function"),ClassDeclaration:vr("class"),ClassExpression:()=>!0,EnumDeclaration:vr("constant"),TypeAliasDeclaration:vr("type"),NamespaceDeclaration:vr("namespace"),VariableDefinition(i,e){i.matchContext(H$)||e(i,"variable")},TypeDefinition(i,e){e(i,"type")},__proto__:null};function Cg(i,e){let t=ef.get(e);if(t)return t;let n=[],r=!0;function s(o,l){let a=i.sliceString(o.from,o.to);n.push({label:a,type:l})}return e.cursor(Se.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let l=K$[o.name];if(l&&l(o,s)||Tg.has(o.name))return!1}else if(o.to-o.from>8192){for(let l of Cg(i,o.node))n.push(l);return!1}}),ef.set(e,n),n}const qo=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,mc=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Ag(i){let e=Ze(i.state).resolveInner(i.pos,-1);if(mc.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&qo.test(i.state.sliceDoc(e.from,e.to));if(!t&&!i.explicit)return null;let n=[];for(let r=e;r;r=r.parent)Tg.has(r.name)&&(n=n.concat(Cg(i.state.doc,r)));return{options:n,from:t?e.from:i.pos,validFor:qo}}function Nl(i,e,t){var n;let r=[];for(;;){let s=e.firstChild,o;if((s==null?void 0:s.name)=="VariableName")return r.push(i(s)),{path:r.reverse(),name:t};if((s==null?void 0:s.name)=="MemberExpression"&&((n=o=s.lastChild)===null||n===void 0?void 0:n.name)=="PropertyName")r.push(i(o)),e=s;else return null}}function _g(i){let e=n=>i.state.doc.sliceString(n.from,n.to),t=Ze(i.state).resolveInner(i.pos,-1);return t.name=="PropertyName"?Nl(e,t.parent,e(t)):(t.name=="."||t.name=="?.")&&t.parent.name=="MemberExpression"?Nl(e,t.parent,""):mc.indexOf(t.name)>-1?null:t.name=="VariableName"||t.to-t.from<20&&qo.test(e(t))?{path:[],name:e(t)}:t.name=="MemberExpression"?Nl(e,t,""):i.explicit?{path:[],name:""}:null}function J$(i,e){let t=i,n=[],r=new Set;for(let s=0;;s++){for(let l of(Object.getOwnPropertyNames||Object.keys)(i)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(l)||r.has(l))continue;r.add(l);let a;try{a=t[l]}catch{continue}n.push({label:l,type:typeof a=="function"?/^[A-Z]/.test(l)?"class":e?"function":"method":e?"variable":"property",boost:-s})}let o=Object.getPrototypeOf(i);if(!o)return n;i=o}}function eP(i){let e=new Map;return t=>{let n=_g(t);if(!n)return null;let r=i;for(let o of n.path)if(r=r[o],!r)return null;let s=e.get(r);return s||e.set(r,s=J$(r,!n.path.length)),{from:t.pos-n.name.length,options:s,validFor:qo}}}const Vt=Un.define({name:"javascript",parser:U$.configure({props:[ar.add({IfStatement:ho({except:/^\s*({|else\b)/}),TryStatement:ho({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:hS,SwitchBody:i=>{let e=i.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return i.baseIndent+(t?0:n?1:2)*i.unit},Block:aS({closing:"}"}),ArrowFunction:i=>i.baseIndent+i.unit,"TemplateString BlockComment":()=>null,"Statement Property":ho({except:/^\s*{/}),JSXElement(i){let e=/^\s*<\//.test(i.textAfter);return i.lineIndent(i.node.from)+(e?0:i.unit)},JSXEscape(i){let e=/\s*\}/.test(i.textAfter);return i.lineIndent(i.node.from)+(e?0:i.unit)},"JSXOpenTag JSXSelfClosingTag"(i){return i.column(i.node.from)+i.unit}}),gs.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":jm,BlockComment(i){return{from:i.from+2,to:i.to-2}},JSXElement(i){let e=i.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let t=i.lastChild;return{from:e.to,to:t.type.isError?i.to:t.from}},"JSXSelfClosingTag JSXOpenTag"(i){var e;let t=(e=i.firstChild)===null||e===void 0?void 0:e.nextSibling,n=i.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?i.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Eg={test:i=>/^JSX/.test(i.name),facet:ol({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Oc=Vt.configure({dialect:"ts"},"typescript"),gc=Vt.configure({dialect:"jsx",props:[qh.add(i=>i.isTop?[Eg]:void 0)]}),bc=Vt.configure({dialect:"jsx ts",props:[qh.add(i=>i.isTop?[Eg]:void 0)]},"typescript");let Lg=i=>({label:i,type:"keyword"});const Rg="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Lg),tP=Rg.concat(["declare","implements","private","protected","public"].map(Lg));function Mg(i={}){let e=i.jsx?i.typescript?bc:gc:i.typescript?Oc:Vt,t=i.typescript?Pg.concat(tP):pc.concat(Rg);return new Jn(e,[Vt.data.of({autocomplete:Xx(mc,EO(t))}),Vt.data.of({autocomplete:Ag}),i.jsx?Zg:[]])}function iP(i){for(;;){if(i.name=="JSXOpenTag"||i.name=="JSXSelfClosingTag"||i.name=="JSXFragmentTag")return i;if(i.name=="JSXEscape"||!i.parent)return null;i=i.parent}}function tf(i,e,t=i.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return i.sliceString(n.from,Math.min(n.to,t));return""}const nP=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Zg=U.inputHandler.of((i,e,t,n,r)=>{if((nP?i.composing:i.compositionStarted)||i.state.readOnly||e!=t||n!=">"&&n!="/"||!Vt.isActiveAt(i.state,e,-1))return!1;let s=r(),{state:o}=s,l=o.changeByRange(a=>{var h;let{head:c}=a,u=Ze(o).resolveInner(c-1,-1),d;if(u.name=="JSXStartTag"&&(u=u.parent),!(o.doc.sliceString(c-1,c)!=n||u.name=="JSXAttributeValue"&&u.to>c)){if(n==">"&&u.name=="JSXFragmentTag")return{range:a,changes:{from:c,insert:"</>"}};if(n=="/"&&u.name=="JSXStartCloseTag"){let f=u.parent,p=f.parent;if(p&&f.from==c-2&&((d=tf(o.doc,p.firstChild,c))||((h=p.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let m=`${d}>`;return{range:Z.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(n==">"){let f=iP(u);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(d=tf(o.doc,f,c)))return{range:a,changes:{from:c,insert:`</${d}>`}}}}return{range:a}});return l.changes.empty?!1:(i.dispatch([s,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function rP(i,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},i.getRules().forEach((t,n)=>{var r;!((r=t.meta.docs)===null||r===void 0)&&r.recommended&&(e.rules[n]=2)})),t=>{let{state:n}=t,r=[];for(let{from:s,to:o}of Vt.findRegions(n)){let l=n.doc.lineAt(s),a={line:l.number-1,col:s-l.from,pos:s};for(let h of i.verify(n.sliceDoc(s,o),e))r.push(sP(h,n.doc,a))}return r}}function nf(i,e,t,n){return t.line(i+n.line).from+e+(i==1?n.col-1:-1)}function sP(i,e,t){let n=nf(i.line,i.column,e,t),r={from:n,to:i.endLine!=null&&i.endColumn!=1?nf(i.endLine,i.endColumn,e,t):n,message:i.message,source:i.ruleId?"eslint:"+i.ruleId:"eslint",severity:i.severity==1?"warning":"error"};if(i.fix){let{range:s,text:o}=i.fix,l=s[0]+t.pos-n,a=s[1]+t.pos-n;r.actions=[{name:"fix",apply(h,c){h.dispatch({changes:{from:c+l,to:c+a,insert:o},scrollIntoView:!0})}}]}return r}const Ns=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:Zg,completionPath:_g,esLint:rP,javascript:Mg,javascriptLanguage:Vt,jsxLanguage:gc,localCompletionSource:Ag,scopeCompletionSource:eP,snippets:pc,tsxLanguage:bc,typescriptLanguage:Oc,typescriptSnippets:Pg},Symbol.toStringTag,{value:"Module"})),yr=["_blank","_self","_top","_parent"],Gl=["ascii","utf-8","utf-16","latin1","latin1"],Fl=["get","post","put","delete"],Ul=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],bt=["true","false"],J={},oP={a:{attrs:{href:null,ping:null,type:null,media:null,target:yr,hreflang:null}},abbr:J,address:J,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:J,aside:J,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:J,base:{attrs:{href:null,target:yr}},bdi:J,bdo:J,blockquote:{attrs:{cite:null}},body:J,br:J,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Ul,formmethod:Fl,formnovalidate:["novalidate"],formtarget:yr,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:J,center:J,cite:J,code:J,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:J,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:J,div:J,dl:J,dt:J,em:J,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:J,figure:J,footer:J,form:{attrs:{action:null,name:null,"accept-charset":Gl,autocomplete:["on","off"],enctype:Ul,method:Fl,novalidate:["novalidate"],target:yr}},h1:J,h2:J,h3:J,h4:J,h5:J,h6:J,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:J,hgroup:J,hr:J,html:{attrs:{manifest:null}},i:J,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Ul,formmethod:Fl,formnovalidate:["novalidate"],formtarget:yr,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:J,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:J,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:J,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Gl,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:J,noscript:J,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:J,param:{attrs:{name:null,value:null}},pre:J,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:J,rt:J,ruby:J,samp:J,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Gl}},section:J,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:J,source:{attrs:{src:null,type:null,media:null}},span:J,strong:J,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:J,summary:J,sup:J,table:J,tbody:J,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:J,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:J,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:J,time:{attrs:{datetime:null}},title:J,tr:J,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:J,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:J},Xg={accesskey:null,class:null,contenteditable:bt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:bt,autocorrect:bt,autocapitalize:bt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":bt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":bt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":bt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":bt,"aria-hidden":bt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":bt,"aria-multiselectable":bt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":bt,"aria-relevant":null,"aria-required":bt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Ig="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(i=>"on"+i);for(let i of Ig)Xg[i]=null;class os{constructor(e,t){this.tags={...oP,...e},this.globalAttrs={...Xg,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}os.default=new os;function ir(i,e,t=i.length){if(!e)return"";let n=e.firstChild,r=n&&n.getChild("TagName");return r?i.sliceString(r.from,Math.min(r.to,t)):""}function nr(i,e=!1){for(;i;i=i.parent)if(i.name=="Element")if(e)e=!1;else return i;return null}function zg(i,e,t){let n=t.tags[ir(i,nr(e))];return(n==null?void 0:n.children)||t.allTags}function vc(i,e){let t=[];for(let n=nr(e);n&&!n.type.isTop;n=nr(n.parent)){let r=ir(i,n);if(r&&n.lastChild.name=="CloseTag")break;r&&t.indexOf(r)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&t.push(r)}return t}const Vg=/^[:\-\.\w\u00b7-\uffff]*$/;function rf(i,e,t,n,r){let s=/\s*>/.test(i.sliceDoc(r,r+5))?"":">",o=nr(t,t.name=="StartTag"||t.name=="TagName");return{from:n,to:r,options:zg(i.doc,o,e).map(l=>({label:l,type:"type"})).concat(vc(i.doc,t).map((l,a)=>({label:"/"+l,apply:"/"+l+s,type:"type",boost:99-a}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function sf(i,e,t,n){let r=/\s*>/.test(i.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:vc(i.doc,e).map((s,o)=>({label:s,apply:s+r,type:"type",boost:99-o})),validFor:Vg}}function lP(i,e,t,n){let r=[],s=0;for(let o of zg(i.doc,t,e))r.push({label:"<"+o,type:"type"});for(let o of vc(i.doc,t))r.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function aP(i,e,t,n,r){let s=nr(t),o=s?e.tags[ir(i.doc,s)]:null,l=o&&o.attrs?Object.keys(o.attrs):[],a=o&&o.globalAttrs===!1?l:l.length?l.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:r,options:a.map(h=>({label:h,type:"property"})),validFor:Vg}}function hP(i,e,t,n,r){var s;let o=(s=t.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),l=[],a;if(o){let h=i.sliceDoc(o.from,o.to),c=e.globalAttrs[h];if(!c){let u=nr(t),d=u?e.tags[ir(i.doc,u)]:null;c=(d==null?void 0:d.attrs)&&d.attrs[h]}if(c){let u=i.sliceDoc(n,r).toLowerCase(),d='"',f='"';/^['"]/.test(u)?(a=u[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",f=i.sliceDoc(r,r+1)==u[0]?"":u[0],u=u.slice(1),n++):a=/^[^\s<>='"]*$/;for(let p of c)l.push({label:p,apply:d+p+f,type:"constant"})}}return{from:n,to:r,options:l,validFor:a}}function Dg(i,e){let{state:t,pos:n}=e,r=Ze(t).resolveInner(n,-1),s=r.resolve(n);for(let o=n,l;s==r&&(l=r.childBefore(o));){let a=l.lastChild;if(!a||!a.type.isError||a.from<a.to)break;s=r=l,o=a.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?sf(t,r,r.from,n):rf(t,i,r,r.from,n):r.name=="StartTag"||r.name=="IncompleteTag"?rf(t,i,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?sf(t,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?aP(t,i,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?hP(t,i,r,r.name=="Is"?n:r.from,n):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?lP(t,i,r,n):null}function Bg(i){return Dg(os.default,i)}function qg(i){let{extraTags:e,extraGlobalAttributes:t}=i,n=t||e?new os(e,t):os.default;return r=>Dg(n,r)}const cP=Vt.parser.configure({top:"SingleExpression"}),jg=[{tag:"script",attrs:i=>i.type=="text/typescript"||i.lang=="ts",parser:Oc.parser},{tag:"script",attrs:i=>i.type=="text/babel"||i.type=="text/jsx",parser:gc.parser},{tag:"script",attrs:i=>i.type=="text/typescript-jsx",parser:bc.parser},{tag:"script",attrs(i){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(i.type)},parser:cP},{tag:"script",attrs(i){return!i.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(i.type)},parser:Vt.parser},{tag:"style",attrs(i){return(!i.lang||i.lang=="css")&&(!i.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(i.type))},parser:ss.parser}],Wg=[{name:"style",parser:ss.parser.configure({top:"Styles"})}].concat(Ig.map(i=>({name:i,parser:Vt.parser}))),Yg=Un.define({name:"html",parser:zQ.configure({props:[ar.add({Element(i){let e=/^(\s*)(<\/)?/.exec(i.textAfter);return i.node.to<=i.pos+e[0].length?i.continue():i.lineIndent(i.node.from)+(e[2]?0:i.unit)},"OpenTag CloseTag SelfClosingTag"(i){return i.column(i.node.from)+i.unit},Document(i){if(i.pos+/\s*/.exec(i.textAfter)[0].length<i.node.to)return i.continue();let e=null,t;for(let n=i.node;;){let r=n.lastChild;if(!r||r.name!="Element"||r.to!=n.to)break;e=n=r}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?i.lineIndent(e.from)+i.unit:null}}),gs.add({Element(i){let e=i.firstChild,t=i.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:i.to}}}),Ym.add({"OpenTag CloseTag":i=>i.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Dr=Yg.configure({wrap:gg(jg,Wg)});function Ng(i={}){let e="",t;i.matchClosingTags===!1&&(e="noMatch"),i.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(i.nestedLanguages&&i.nestedLanguages.length||i.nestedAttributes&&i.nestedAttributes.length)&&(t=gg((i.nestedLanguages||[]).concat(jg),(i.nestedAttributes||[]).concat(Wg)));let n=t?Yg.configure({wrap:t,dialect:e}):e?Dr.configure({dialect:e}):Dr;return new Jn(n,[Dr.data.of({autocomplete:qg(i)}),i.autoCloseTags!==!1?Gg:[],Mg().support,Qg().support])}const of=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Gg=U.inputHandler.of((i,e,t,n,r)=>{if(i.composing||i.state.readOnly||e!=t||n!=">"&&n!="/"||!Dr.isActiveAt(i.state,e,-1))return!1;let s=r(),{state:o}=s,l=o.changeByRange(a=>{var h,c,u;let d=o.doc.sliceString(a.from-1,a.to)==n,{head:f}=a,p=Ze(o).resolveInner(f,-1),m;if(d&&n==">"&&p.name=="EndTag"){let O=p.parent;if(((c=(h=O.parent)===null||h===void 0?void 0:h.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(m=ir(o.doc,O.parent,f))&&!of.has(m)){let g=f+(o.doc.sliceString(f,f+1)===">"?1:0),b=`</${m}>`;return{range:a,changes:{from:f,to:g,insert:b}}}}else if(d&&n=="/"&&p.name=="IncompleteCloseTag"){let O=p.parent;if(p.from==f-2&&((u=O.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(m=ir(o.doc,O,f))&&!of.has(m)){let g=f+(o.doc.sliceString(f,f+1)===">"?1:0),b=`${m}>`;return{range:Z.cursor(f+b.length,-1),changes:{from:f,to:g,insert:b}}}}return{range:a}});return l.changes.empty?!1:(i.dispatch([s,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),uP=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:Gg,html:Ng,htmlCompletionSource:Bg,htmlCompletionSourceWith:qg,htmlLanguage:Dr},Symbol.toStringTag,{value:"Module"})),Fg=ol({commentTokens:{block:{open:"<!--",close:"-->"}}}),Ug=new ae,Hg=Lw.configure({props:[gs.add(i=>!i.is("Block")||i.is("Document")||mh(i)!=null||dP(i)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),Ug.add(mh),ar.add({Document:()=>null}),Di.add({Document:Fg})]});function mh(i){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(i.name);return e?+e[1]:void 0}function dP(i){return i.name=="OrderedList"||i.name=="BulletList"}function fP(i,e){let t=i;for(;;){let n=t.nextSibling,r;if(!n||(r=mh(n.type))!=null&&r<=e)break;t=n}return t.to}const pP=cS.of((i,e,t)=>{for(let n=Ze(i).resolveInner(t,-1);n&&!(n.from<e);n=n.parent){let r=n.type.prop(Ug);if(r==null)continue;let s=fP(n,r);if(s>t)return{from:t,to:s}}return null});function yc(i){return new At(Fg,i,[],"markdown")}const Kg=yc(Hg),mP=Hg.configure([jw,Yw,Ww,Nw,{props:[gs.add({Table:(i,e)=>({from:e.doc.lineAt(i.from).to,to:i.to})})]}]),ls=yc(mP);function OP(i,e){return t=>{if(t&&i){let n=null;if(t=/\S*/.exec(t)[0],typeof i=="function"?n=i(t):n=_.matchLanguageName(i,t,!0),n instanceof _)return n.support?n.support.language.parser:On.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}class Hl{constructor(e,t,n,r,s,o,l){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=l}blank(e,t=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;n.length<e;)n+=" ";return n}else{for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(t?this.spaceAfter:"")}}marker(e,t){let n=this.node.name=="OrderedList"?String(+e0(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function Jg(i,e){let t=[],n=[];for(let r=i;r;r=r.parent){if(r.name=="FencedCode")return n;(r.name=="ListItem"||r.name=="Blockquote")&&t.push(r)}for(let r=t.length-1;r>=0;r--){let s=t[r],o,l=e.lineAt(s.from),a=s.from-l.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(l.text.slice(a))))n.push(new Hl(s,a,a+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(l.text.slice(a)))){let h=o[3],c=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),c-=4),n.push(new Hl(s.parent,a,a+c,o[1],h,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(a)))){let h=o[4],c=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),c-=4);let u=o[2];o[3]&&(u+=o[3].replace(/[xX]/," ")),n.push(new Hl(s.parent,a,a+c,o[1],h,u,s))}}return n}function e0(i,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(i.from,i.from+10))}function Kl(i,e,t,n=0){for(let r=-1,s=i;;){if(s.name=="ListItem"){let l=e0(s,e),a=+l[2];if(r>=0){if(a!=r+1)return;t.push({from:s.from+l[1].length,to:s.from+l[0].length,insert:String(r+2+n)})}r=a}let o=s.nextSibling;if(!o)break;s=o}}function kc(i,e){let t=/^[ \t]*/.exec(i)[0].length;if(!t||e.facet(lr)!=" ")return i;let n=wi(i,4,t),r="";for(let s=n;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+i.slice(t)}const t0=(i={})=>({state:e,dispatch:t})=>{let n=Ze(e),{doc:r}=e,s=null,o=e.changeByRange(l=>{if(!l.empty||!ls.isActiveAt(e,l.from,-1)&&!ls.isActiveAt(e,l.from,1))return s={range:l};let a=l.from,h=r.lineAt(a),c=Jg(n.resolveInner(a,-1),r);for(;c.length&&c[c.length-1].from>a-h.from;)c.pop();if(!c.length)return s={range:l};let u=c[c.length-1];if(u.to-u.spaceAfter.length>a-h.from)return s={range:l};let d=a>=u.to-u.spaceAfter.length&&!/\S/.test(h.text.slice(u.to));if(u.item&&d){let g=u.node.firstChild,b=u.node.getChild("ListItem","ListItem");if(g.to>=a||b&&b.to<a||h.from>0&&!/[^\s>]/.test(r.lineAt(h.from-1).text)||i.nonTightLists===!1){let Q=c.length>1?c[c.length-2]:null,x,k="";Q&&Q.item?(x=h.from+Q.from,k=Q.marker(r,1)):x=h.from+(Q?Q.to:0);let $=[{from:x,to:a,insert:k}];return u.node.name=="OrderedList"&&Kl(u.item,r,$,-2),Q&&Q.node.name=="OrderedList"&&Kl(Q.item,r,$),{range:Z.cursor(x+k.length),changes:$}}else{let Q=af(c,e,h);return{range:Z.cursor(a+Q.length+1),changes:{from:h.from,insert:Q+e.lineBreak}}}}if(u.node.name=="Blockquote"&&d&&h.from){let g=r.lineAt(h.from-1),b=/>\s*$/.exec(g.text);if(b&&b.index==u.from){let Q=e.changes([{from:g.from+b.index,to:g.to},{from:h.from+u.from,to:h.to}]);return{range:l.map(Q),changes:Q}}}let f=[];u.node.name=="OrderedList"&&Kl(u.item,r,f);let p=u.item&&u.item.from<h.from,m="";if(!p||/^[\s\d.)\-+*>]*/.exec(h.text)[0].length>=u.to)for(let g=0,b=c.length-1;g<=b;g++)m+=g==b&&!p?c[g].marker(r,1):c[g].blank(g<b?wi(h.text,4,c[g+1].from)-m.length:null);let O=a;for(;O>h.from&&/\s/.test(h.text.charAt(O-h.from-1));)O--;return m=kc(m,e),gP(u.node,e.doc)&&(m=af(c,e,h)+e.lineBreak+m),f.push({from:O,to:a,insert:e.lineBreak+m}),{range:Z.cursor(O+m.length+1),changes:f}});return s?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},i0=t0();function lf(i){return i.name=="QuoteMark"||i.name=="ListMark"}function gP(i,e){if(i.name!="OrderedList"&&i.name!="BulletList")return!1;let t=i.firstChild,n=i.getChild("ListItem","ListItem");if(!n)return!1;let r=e.lineAt(t.to),s=e.lineAt(n.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<s.number}function af(i,e,t){let n="";for(let r=0,s=i.length-2;r<=s;r++)n+=i[r].blank(r<s?wi(t.text,4,i[r+1].from)-n.length:null,r<s);return kc(n,e)}function bP(i,e){let t=i.resolveInner(e,-1),n=e;lf(t)&&(n=t.from,t=t.parent);for(let r;r=t.childBefore(n);)if(lf(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")t=r.lastChild,n=t.to;else break;return t}const n0=({state:i,dispatch:e})=>{let t=Ze(i),n=null,r=i.changeByRange(s=>{let o=s.from,{doc:l}=i;if(s.empty&&ls.isActiveAt(i,s.from)){let a=l.lineAt(o),h=Jg(bP(t,o),l);if(h.length){let c=h[h.length-1],u=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-a.from>u&&!/\S/.test(a.text.slice(u,o-a.from)))return{range:Z.cursor(a.from+u),changes:{from:a.from+u,to:o}};if(o-a.from==u&&(!c.item||a.from<=c.item.from||!/\S/.test(a.text.slice(0,c.to)))){let d=a.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(a.text.slice(c.from,c.to))){let f=c.blank(wi(a.text,4,c.to)-wi(a.text,4,c.from));return d==a.from&&(f=kc(f,i)),{range:Z.cursor(d+f.length),changes:{from:d,to:a.from+c.to,insert:f}}}if(d<o)return{range:Z.cursor(d),changes:{from:d,to:o}}}}}return n={range:s}});return n?!1:(e(i.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},r0=[{key:"Enter",run:i0},{key:"Backspace",run:n0}],s0=Ng({matchClosingTags:!1});function o0(i={}){let{codeLanguages:e,defaultCodeLanguage:t,addKeymap:n=!0,base:{parser:r}=Kg,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:l=s0}=i;if(!(r instanceof dl))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=i.extensions?[i.extensions]:[],h=[l.support,pP],c;o&&h.push(l0),t instanceof Jn?(h.push(t.support),c=t.language):t&&(c=t);let u=e||c?OP(e,c):void 0;a.push(Mw({codeParser:u,htmlParser:l.language.parser})),n&&h.push(Pi.high(Os.of(r0)));let d=yc(r.configure(a));return s&&h.push(d.data.of({autocomplete:vP})),new Jn(d,h)}function vP(i){let{state:e,pos:t}=i,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(t-25,t));if(!n)return null;let r=Ze(e).resolveInner(t,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:t-n[0].length,to:t,options:yP(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let Jl=null;function yP(){if(Jl)return Jl;let i=Bg(new Kh(Oe.create({extensions:s0}),0,!0));return Jl=i?i.options:[]}const kP=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,l0=U.domEventHandlers({paste:(i,e)=>{var t;let{main:n}=e.state.selection;if(n.empty)return!1;let r=(t=i.clipboardData)===null||t===void 0?void 0:t.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!ls.isActiveAt(e.state,n.from,1)))return!1;let s=Ze(e.state),o=!1;return s.iterate({from:n.from,to:n.to,enter:l=>{(l.from>n.from||kP.test(l.name))&&(o=!0)},leave:l=>{l.to<n.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:n.from,insert:"["},{from:n.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),SP=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:Kg,deleteMarkupBackward:n0,insertNewlineContinueMarkup:i0,insertNewlineContinueMarkupCommand:t0,markdown:o0,markdownKeymap:r0,markdownLanguage:ls,pasteURLAsLink:l0},Symbol.toStringTag,{value:"Module"}));function z(i){return new Jn(Wh.define(i))}function Ai(i){return L(()=>import("./index-Ce6sL47U.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(e=>e.sql({dialect:e[i]}))}const xP=[_.of({name:"C",extensions:["c","h","ino"],load(){return L(()=>import("./index-DxboI9i-.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.cpp())}}),_.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return L(()=>import("./index-DxboI9i-.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.cpp())}}),_.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return Ai("Cassandra")}}),_.of({name:"CSS",extensions:["css"],load(){return L(()=>Promise.resolve().then(()=>v$),void 0).then(i=>i.css())}}),_.of({name:"Go",extensions:["go"],load(){return L(()=>import("./index-jGjvGBfk.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.go())}}),_.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return L(()=>Promise.resolve().then(()=>uP),void 0).then(i=>i.html())}}),_.of({name:"Java",extensions:["java"],load(){return L(()=>import("./index-gMpnPf1V.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.java())}}),_.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return L(()=>Promise.resolve().then(()=>Ns),void 0).then(i=>i.javascript())}}),_.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return L(()=>import("./index-i1o916sk.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.jinja())}}),_.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return L(()=>import("./index-CjHb9rXv.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.json())}}),_.of({name:"JSX",extensions:["jsx"],load(){return L(()=>Promise.resolve().then(()=>Ns),void 0).then(i=>i.javascript({jsx:!0}))}}),_.of({name:"LESS",extensions:["less"],load(){return L(()=>import("./index-BRUlEEHm.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.less())}}),_.of({name:"Liquid",extensions:["liquid"],load(){return L(()=>import("./index-BshkV3r5.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.liquid())}}),_.of({name:"MariaDB SQL",load(){return Ai("MariaSQL")}}),_.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return L(()=>Promise.resolve().then(()=>SP),void 0).then(i=>i.markdown())}}),_.of({name:"MS SQL",load(){return Ai("MSSQL")}}),_.of({name:"MySQL",load(){return Ai("MySQL")}}),_.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return L(()=>import("./index-CO4EBOFw.js"),__vite__mapDeps([34,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.php())}}),_.of({name:"PLSQL",extensions:["pls"],load(){return Ai("PLSQL")}}),_.of({name:"PostgreSQL",load(){return Ai("PostgreSQL")}}),_.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return L(()=>import("./index-BXUcbV4K.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.python())}}),_.of({name:"Rust",extensions:["rs"],load(){return L(()=>import("./index-Dx0sYW7H.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.rust())}}),_.of({name:"Sass",extensions:["sass"],load(){return L(()=>import("./index-aCw-iXPX.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.sass({indented:!0}))}}),_.of({name:"SCSS",extensions:["scss"],load(){return L(()=>import("./index-aCw-iXPX.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.sass())}}),_.of({name:"SQL",extensions:["sql"],load(){return Ai("StandardSQL")}}),_.of({name:"SQLite",load(){return Ai("SQLite")}}),_.of({name:"TSX",extensions:["tsx"],load(){return L(()=>Promise.resolve().then(()=>Ns),void 0).then(i=>i.javascript({jsx:!0,typescript:!0}))}}),_.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return L(()=>Promise.resolve().then(()=>Ns),void 0).then(i=>i.javascript({typescript:!0}))}}),_.of({name:"WebAssembly",extensions:["wat","wast"],load(){return L(()=>import("./index-NzLFVaCi.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.wast())}}),_.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return L(()=>import("./index-C6m-WfqP.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.xml())}}),_.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return L(()=>import("./index-Bi4bQ_UB.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.yaml())}}),_.of({name:"APL",extensions:["dyalog","apl"],load(){return L(()=>import("./apl-B4CMkyY2.js"),[]).then(i=>z(i.apl))}}),_.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return L(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(i=>z(i.asciiArmor))}}),_.of({name:"ASN.1",extensions:["asn","asn1"],load(){return L(()=>import("./asn1-EdZsLKOL.js"),[]).then(i=>z(i.asn1({})))}}),_.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return L(()=>import("./asterisk-B-8jnY81.js"),[]).then(i=>z(i.asterisk))}}),_.of({name:"Brainfuck",extensions:["b","bf"],load(){return L(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(i=>z(i.brainfuck))}}),_.of({name:"Cobol",extensions:["cob","cpy"],load(){return L(()=>import("./cobol-CWcv1MsR.js"),[]).then(i=>z(i.cobol))}}),_.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.csharp))}}),_.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return L(()=>import("./clojure-BMjYHr_A.js"),[]).then(i=>z(i.clojure))}}),_.of({name:"ClojureScript",extensions:["cljs"],load(){return L(()=>import("./clojure-BMjYHr_A.js"),[]).then(i=>z(i.clojure))}}),_.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return L(()=>import("./css-BnMrqG3P.js"),[]).then(i=>z(i.gss))}}),_.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return L(()=>import("./cmake-BQqOBYOt.js"),[]).then(i=>z(i.cmake))}}),_.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return L(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(i=>z(i.coffeeScript))}}),_.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return L(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(i=>z(i.commonLisp))}}),_.of({name:"Cypher",extensions:["cyp","cypher"],load(){return L(()=>import("./cypher-C_CwsFkJ.js"),[]).then(i=>z(i.cypher))}}),_.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return L(()=>import("./python-BuPzkPfP.js"),[]).then(i=>z(i.cython))}}),_.of({name:"Crystal",extensions:["cr"],load(){return L(()=>import("./crystal-SjHAIU92.js"),[]).then(i=>z(i.crystal))}}),_.of({name:"D",extensions:["d"],load(){return L(()=>import("./d-pRatUO7H.js"),[]).then(i=>z(i.d))}}),_.of({name:"Dart",extensions:["dart"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.dart))}}),_.of({name:"diff",extensions:["diff","patch"],load(){return L(()=>import("./diff-DbItnlRl.js"),[]).then(i=>z(i.diff))}}),_.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return L(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([41,42])).then(i=>z(i.dockerFile))}}),_.of({name:"DTD",extensions:["dtd"],load(){return L(()=>import("./dtd-DF_7sFjM.js"),[]).then(i=>z(i.dtd))}}),_.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return L(()=>import("./dylan-DwRh75JA.js"),[]).then(i=>z(i.dylan))}}),_.of({name:"EBNF",load(){return L(()=>import("./ebnf-CDyGwa7X.js"),[]).then(i=>z(i.ebnf))}}),_.of({name:"ECL",extensions:["ecl"],load(){return L(()=>import("./ecl-Cabwm37j.js"),[]).then(i=>z(i.ecl))}}),_.of({name:"edn",extensions:["edn"],load(){return L(()=>import("./clojure-BMjYHr_A.js"),[]).then(i=>z(i.clojure))}}),_.of({name:"Eiffel",extensions:["e"],load(){return L(()=>import("./eiffel-CnydiIhH.js"),[]).then(i=>z(i.eiffel))}}),_.of({name:"Elm",extensions:["elm"],load(){return L(()=>import("./elm-vLlmbW-K.js"),[]).then(i=>z(i.elm))}}),_.of({name:"Erlang",extensions:["erl"],load(){return L(()=>import("./erlang-BNw1qcRV.js"),[]).then(i=>z(i.erlang))}}),_.of({name:"Esper",load(){return L(()=>import("./sql-D0XecflT.js"),[]).then(i=>z(i.esper))}}),_.of({name:"Factor",extensions:["factor"],load(){return L(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([43,42])).then(i=>z(i.factor))}}),_.of({name:"FCL",load(){return L(()=>import("./fcl-Kvtd6kyn.js"),[]).then(i=>z(i.fcl))}}),_.of({name:"Forth",extensions:["forth","fth","4th"],load(){return L(()=>import("./forth-Ffai-XNe.js"),[]).then(i=>z(i.forth))}}),_.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return L(()=>import("./fortran-DYz_wnZ1.js"),[]).then(i=>z(i.fortran))}}),_.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return L(()=>import("./mllike-CXdrOF99.js"),[]).then(i=>z(i.fSharp))}}),_.of({name:"Gas",extensions:["s"],load(){return L(()=>import("./gas-Bneqetm1.js"),[]).then(i=>z(i.gas))}}),_.of({name:"Gherkin",extensions:["feature"],load(){return L(()=>import("./gherkin-heZmZLOM.js"),[]).then(i=>z(i.gherkin))}}),_.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return L(()=>import("./groovy-D9Dt4D0W.js"),[]).then(i=>z(i.groovy))}}),_.of({name:"Haskell",extensions:["hs"],load(){return L(()=>import("./haskell-BWDZoCOh.js"),[]).then(i=>z(i.haskell))}}),_.of({name:"Haxe",extensions:["hx"],load(){return L(()=>import("./haxe-H-WmDvRZ.js"),[]).then(i=>z(i.haxe))}}),_.of({name:"HXML",extensions:["hxml"],load(){return L(()=>import("./haxe-H-WmDvRZ.js"),[]).then(i=>z(i.hxml))}}),_.of({name:"HTTP",load(){return L(()=>import("./http-DBlCnlav.js"),[]).then(i=>z(i.http))}}),_.of({name:"IDL",extensions:["pro"],load(){return L(()=>import("./idl-BEugSyMb.js"),[]).then(i=>z(i.idl))}}),_.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return L(()=>import("./javascript-qCveANmP.js"),[]).then(i=>z(i.jsonld))}}),_.of({name:"Julia",extensions:["jl"],load(){return L(()=>import("./julia-DuME0IfC.js"),[]).then(i=>z(i.julia))}}),_.of({name:"Kotlin",extensions:["kt","kts"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.kotlin))}}),_.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return L(()=>import("./livescript-BwQOo05w.js"),[]).then(i=>z(i.liveScript))}}),_.of({name:"Lua",extensions:["lua"],load(){return L(()=>import("./lua-BgMRiT3U.js"),[]).then(i=>z(i.lua))}}),_.of({name:"mIRC",extensions:["mrc"],load(){return L(()=>import("./mirc-CjQqDB4T.js"),[]).then(i=>z(i.mirc))}}),_.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return L(()=>import("./mathematica-DTrFuWx2.js"),[]).then(i=>z(i.mathematica))}}),_.of({name:"Modelica",extensions:["mo"],load(){return L(()=>import("./modelica-Dc1JOy9r.js"),[]).then(i=>z(i.modelica))}}),_.of({name:"MUMPS",extensions:["mps"],load(){return L(()=>import("./mumps-BT43cFF4.js"),[]).then(i=>z(i.mumps))}}),_.of({name:"Mbox",extensions:["mbox"],load(){return L(()=>import("./mbox-CNhZ1qSd.js"),[]).then(i=>z(i.mbox))}}),_.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return L(()=>import("./nginx-DdIZxoE0.js"),[]).then(i=>z(i.nginx))}}),_.of({name:"NSIS",extensions:["nsh","nsi"],load(){return L(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([44,42])).then(i=>z(i.nsis))}}),_.of({name:"NTriples",extensions:["nt","nq"],load(){return L(()=>import("./ntriples-BfvgReVJ.js"),[]).then(i=>z(i.ntriples))}}),_.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.objectiveC))}}),_.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.objectiveCpp))}}),_.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return L(()=>import("./mllike-CXdrOF99.js"),[]).then(i=>z(i.oCaml))}}),_.of({name:"Octave",extensions:["m"],load(){return L(()=>import("./octave-Ck1zUtKM.js"),[]).then(i=>z(i.octave))}}),_.of({name:"Oz",extensions:["oz"],load(){return L(()=>import("./oz-BzwKVEFT.js"),[]).then(i=>z(i.oz))}}),_.of({name:"Pascal",extensions:["p","pas"],load(){return L(()=>import("./pascal--L3eBynH.js"),[]).then(i=>z(i.pascal))}}),_.of({name:"Perl",extensions:["pl","pm"],load(){return L(()=>import("./perl-CdXCOZ3F.js"),[]).then(i=>z(i.perl))}}),_.of({name:"Pig",extensions:["pig"],load(){return L(()=>import("./pig-CevX1Tat.js"),[]).then(i=>z(i.pig))}}),_.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return L(()=>import("./powershell-CFHJl5sT.js"),[]).then(i=>z(i.powerShell))}}),_.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return L(()=>import("./properties-C78fOPTZ.js"),[]).then(i=>z(i.properties))}}),_.of({name:"ProtoBuf",extensions:["proto"],load(){return L(()=>import("./protobuf-ChK-085T.js"),[]).then(i=>z(i.protobuf))}}),_.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return L(()=>import("./pug-DukmZTjD.js"),__vite__mapDeps([45,46])).then(i=>z(i.pug))}}),_.of({name:"Puppet",extensions:["pp"],load(){return L(()=>import("./puppet-DMA9R1ak.js"),[]).then(i=>z(i.puppet))}}),_.of({name:"Q",extensions:["q"],load(){return L(()=>import("./q-pXgVlZs6.js"),[]).then(i=>z(i.q))}}),_.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return L(()=>import("./r-DUYO_cvP.js"),[]).then(i=>z(i.r))}}),_.of({name:"RPM Changes",load(){return L(()=>import("./rpm-CTu-6PCP.js"),[]).then(i=>z(i.rpmChanges))}}),_.of({name:"RPM Spec",extensions:["spec"],load(){return L(()=>import("./rpm-CTu-6PCP.js"),[]).then(i=>z(i.rpmSpec))}}),_.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return L(()=>import("./ruby-B2Rjki9n.js"),[]).then(i=>z(i.ruby))}}),_.of({name:"SAS",extensions:["sas"],load(){return L(()=>import("./sas-B4kiWyti.js"),[]).then(i=>z(i.sas))}}),_.of({name:"Scala",extensions:["scala"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.scala))}}),_.of({name:"Scheme",extensions:["scm","ss"],load(){return L(()=>import("./scheme-C41bIUwD.js"),[]).then(i=>z(i.scheme))}}),_.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return L(()=>import("./shell-CjFT_Tl9.js"),[]).then(i=>z(i.shell))}}),_.of({name:"Sieve",extensions:["siv","sieve"],load(){return L(()=>import("./sieve-C3Gn_uJK.js"),[]).then(i=>z(i.sieve))}}),_.of({name:"Smalltalk",extensions:["st"],load(){return L(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(i=>z(i.smalltalk))}}),_.of({name:"Solr",load(){return L(()=>import("./solr-DehyRSwq.js"),[]).then(i=>z(i.solr))}}),_.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return L(()=>import("./mllike-CXdrOF99.js"),[]).then(i=>z(i.sml))}}),_.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return L(()=>import("./sparql-DkYu6x3z.js"),[]).then(i=>z(i.sparql))}}),_.of({name:"Spreadsheet",alias:["excel","formula"],load(){return L(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(i=>z(i.spreadsheet))}}),_.of({name:"Squirrel",extensions:["nut"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.squirrel))}}),_.of({name:"Stylus",extensions:["styl"],load(){return L(()=>import("./stylus-B533Al4x.js"),[]).then(i=>z(i.stylus))}}),_.of({name:"Swift",extensions:["swift"],load(){return L(()=>import("./swift-BzpIVaGY.js"),[]).then(i=>z(i.swift))}}),_.of({name:"sTeX",load(){return L(()=>import("./stex-C3f8Ysf7.js"),[]).then(i=>z(i.stex))}}),_.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return L(()=>import("./stex-C3f8Ysf7.js"),[]).then(i=>z(i.stex))}}),_.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return L(()=>import("./verilog-C6RDOZhf.js"),[]).then(i=>z(i.verilog))}}),_.of({name:"Tcl",extensions:["tcl"],load(){return L(()=>import("./tcl-DVfN8rqt.js"),[]).then(i=>z(i.tcl))}}),_.of({name:"Textile",extensions:["textile"],load(){return L(()=>import("./textile-CnDTJFAw.js"),[]).then(i=>z(i.textile))}}),_.of({name:"TiddlyWiki",load(){return L(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(i=>z(i.tiddlyWiki))}}),_.of({name:"Tiki wiki",load(){return L(()=>import("./tiki-DGYXhP31.js"),[]).then(i=>z(i.tiki))}}),_.of({name:"TOML",extensions:["toml"],load(){return L(()=>import("./toml-Bm5Em-hy.js"),[]).then(i=>z(i.toml))}}),_.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return L(()=>import("./troff-wAsdV37c.js"),[]).then(i=>z(i.troff))}}),_.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return L(()=>import("./ttcn-CfJYG6tj.js"),[]).then(i=>z(i.ttcn))}}),_.of({name:"TTCN_CFG",extensions:["cfg"],load(){return L(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(i=>z(i.ttcnCfg))}}),_.of({name:"Turtle",extensions:["ttl"],load(){return L(()=>import("./turtle-B1tBg_DP.js"),[]).then(i=>z(i.turtle))}}),_.of({name:"Web IDL",extensions:["webidl"],load(){return L(()=>import("./webidl-ZXfAyPTL.js"),[]).then(i=>z(i.webIDL))}}),_.of({name:"VB.NET",extensions:["vb"],load(){return L(()=>import("./vb-CmGdzxic.js"),[]).then(i=>z(i.vb))}}),_.of({name:"VBScript",extensions:["vbs"],load(){return L(()=>import("./vbscript-BuJXcnF6.js"),[]).then(i=>z(i.vbScript))}}),_.of({name:"Velocity",extensions:["vtl"],load(){return L(()=>import("./velocity-D8B20fx6.js"),[]).then(i=>z(i.velocity))}}),_.of({name:"Verilog",extensions:["v"],load(){return L(()=>import("./verilog-C6RDOZhf.js"),[]).then(i=>z(i.verilog))}}),_.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return L(()=>import("./vhdl-lSbBsy5d.js"),[]).then(i=>z(i.vhdl))}}),_.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return L(()=>import("./xquery-CQfU5ijd.js"),[]).then(i=>z(i.xQuery))}}),_.of({name:"Yacas",extensions:["ys"],load(){return L(()=>import("./yacas-BJ4BC0dw.js"),[]).then(i=>z(i.yacas))}}),_.of({name:"Z80",extensions:["z80"],load(){return L(()=>import("./z80-Hz9HOZM7.js"),[]).then(i=>z(i.z80))}}),_.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return L(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(i=>z(i.mscgen))}}),_.of({name:"Xù",extensions:["xu"],load(){return L(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(i=>z(i.xu))}}),_.of({name:"MsGenny",extensions:["msgenny"],load(){return L(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(i=>z(i.msgenny))}}),_.of({name:"Vue",extensions:["vue"],load(){return L(()=>import("./index-DcA6pqXV.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.vue())}}),_.of({name:"Angular Template",load(){return L(()=>import("./index-DPwwgloE.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.angular())}})],hf=typeof String.prototype.normalize=="function"?i=>i.normalize("NFKD"):i=>i;class as{constructor(e,t,n=0,r=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=s?l=>s(hf(l)):hf,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Mi(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=mp(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=tn(e);let r=this.normalize(t);if(r.length)for(let s=0,o=n;;s++){let l=r.charCodeAt(s),a=this.match(l,o,this.bufferPos+this.bufferStart);if(s==r.length-1){if(a)return this.value=a,this;break}o==n&&s<t.length&&t.charCodeAt(s)==l&&o++}}}match(e,t,n){let r=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],l=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?r={from:this.matches[s+1],to:n}:(this.matches[s]++,l=!0)),l||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol<"u"&&(as.prototype[Symbol.iterator]=function(){return this});const a0={from:-1,to:-1,match:/.*/.exec("")},Sc="gm"+(/x/.unicode==null?"":"u");class h0{constructor(e,t,n,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=a0,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new c0(e,t,n,r,s);this.re=new RegExp(t,Sc+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=jo(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=jo(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const ea=new WeakMap;class Zn{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=ea.get(e);if(!r||r.from>=n||r.to<=t){let l=new Zn(t,e.sliceString(t,n));return ea.set(e,l),l}if(r.from==t&&r.to==n)return r;let{text:s,from:o}=r;return o>t&&(s=e.sliceString(t,o)+s,o=t),r.to<n&&(s+=e.sliceString(r.to,n)),ea.set(e,new Zn(o,s)),new Zn(t,s.slice(t-o,n-o))}}class c0{constructor(e,t,n,r,s){this.text=e,this.to=s,this.done=!1,this.value=a0,this.matchPos=jo(e,r),this.re=new RegExp(t,Sc+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=Zn.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=jo(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Zn.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(h0.prototype[Symbol.iterator]=c0.prototype[Symbol.iterator]=function(){return this});function wP(i){try{return new RegExp(i,Sc),!0}catch{return!1}}function jo(i,e){if(e>=i.length)return e;let t=i.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}const QP=i=>{let{state:e}=i,t=String(e.doc.lineAt(i.state.selection.main.head).number),{close:n,result:r}=Ak(i,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:t},focus:!0,submitLabel:e.phrase("go")});return r.then(s=>{let o=s&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(s.elements.line.value);if(!o){i.dispatch({effects:n});return}let l=e.doc.lineAt(e.selection.main.head),[,a,h,c,u]=o,d=c?+c.slice(1):0,f=h?+h:l.number;if(h&&u){let O=f/100;a&&(O=O*(a=="-"?-1:1)+l.number/e.doc.lines),f=Math.round(e.doc.lines*O)}else h&&a&&(f=f*(a=="-"?-1:1)+l.number);let p=e.doc.line(Math.max(1,Math.min(e.doc.lines,f))),m=Z.cursor(p.from+Math.max(0,Math.min(d,p.length)));i.dispatch({effects:[n,U.scrollIntoView(m.from,{y:"center"})],selection:m})}),!0},$P=({state:i,dispatch:e})=>{let{selection:t}=i,n=Z.create(t.ranges.map(r=>i.wordAt(r.head)||Z.cursor(r.head)),t.mainIndex);return n.eq(t)?!1:(e(i.update({selection:n})),!0)};function PP(i,e){let{main:t,ranges:n}=i.selection,r=i.wordAt(t.head),s=r&&r.from==t.from&&r.to==t.to;for(let o=!1,l=new as(i.doc,e,n[n.length-1].to);;)if(l.next(),l.done){if(o)return null;l=new as(i.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(a=>a.from==l.value.from))continue;if(s){let a=i.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}const TP=({state:i,dispatch:e})=>{let{ranges:t}=i.selection;if(t.some(s=>s.from===s.to))return $P({state:i,dispatch:e});let n=i.sliceDoc(t[0].from,t[0].to);if(i.selection.ranges.some(s=>i.sliceDoc(s.from,s.to)!=n))return!1;let r=PP(i,n);return r?(e(i.update({selection:i.selection.addRange(Z.range(r.from,r.to),!1),effects:U.scrollIntoView(r.to)})),!0):!1},ur=te.define({combine(i){return Jo(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new BP(e),scrollToMatch:e=>U.scrollIntoView(e)})}});class u0{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||wP(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
|
|
277
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),ut('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ut('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Pg=pc.concat([ut("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ut("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ut("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ef=new Zm,Tg=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function vr(i){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,i),!0}}const H$=["FunctionDeclaration"],K$={FunctionDeclaration:vr("function"),ClassDeclaration:vr("class"),ClassExpression:()=>!0,EnumDeclaration:vr("constant"),TypeAliasDeclaration:vr("type"),NamespaceDeclaration:vr("namespace"),VariableDefinition(i,e){i.matchContext(H$)||e(i,"variable")},TypeDefinition(i,e){e(i,"type")},__proto__:null};function Cg(i,e){let t=ef.get(e);if(t)return t;let n=[],r=!0;function s(o,l){let a=i.sliceString(o.from,o.to);n.push({label:a,type:l})}return e.cursor(Se.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let l=K$[o.name];if(l&&l(o,s)||Tg.has(o.name))return!1}else if(o.to-o.from>8192){for(let l of Cg(i,o.node))n.push(l);return!1}}),ef.set(e,n),n}const qo=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,mc=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Ag(i){let e=Ze(i.state).resolveInner(i.pos,-1);if(mc.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&qo.test(i.state.sliceDoc(e.from,e.to));if(!t&&!i.explicit)return null;let n=[];for(let r=e;r;r=r.parent)Tg.has(r.name)&&(n=n.concat(Cg(i.state.doc,r)));return{options:n,from:t?e.from:i.pos,validFor:qo}}function Nl(i,e,t){var n;let r=[];for(;;){let s=e.firstChild,o;if((s==null?void 0:s.name)=="VariableName")return r.push(i(s)),{path:r.reverse(),name:t};if((s==null?void 0:s.name)=="MemberExpression"&&((n=o=s.lastChild)===null||n===void 0?void 0:n.name)=="PropertyName")r.push(i(o)),e=s;else return null}}function _g(i){let e=n=>i.state.doc.sliceString(n.from,n.to),t=Ze(i.state).resolveInner(i.pos,-1);return t.name=="PropertyName"?Nl(e,t.parent,e(t)):(t.name=="."||t.name=="?.")&&t.parent.name=="MemberExpression"?Nl(e,t.parent,""):mc.indexOf(t.name)>-1?null:t.name=="VariableName"||t.to-t.from<20&&qo.test(e(t))?{path:[],name:e(t)}:t.name=="MemberExpression"?Nl(e,t,""):i.explicit?{path:[],name:""}:null}function J$(i,e){let t=i,n=[],r=new Set;for(let s=0;;s++){for(let l of(Object.getOwnPropertyNames||Object.keys)(i)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(l)||r.has(l))continue;r.add(l);let a;try{a=t[l]}catch{continue}n.push({label:l,type:typeof a=="function"?/^[A-Z]/.test(l)?"class":e?"function":"method":e?"variable":"property",boost:-s})}let o=Object.getPrototypeOf(i);if(!o)return n;i=o}}function eP(i){let e=new Map;return t=>{let n=_g(t);if(!n)return null;let r=i;for(let o of n.path)if(r=r[o],!r)return null;let s=e.get(r);return s||e.set(r,s=J$(r,!n.path.length)),{from:t.pos-n.name.length,options:s,validFor:qo}}}const Vt=Un.define({name:"javascript",parser:U$.configure({props:[ar.add({IfStatement:ho({except:/^\s*({|else\b)/}),TryStatement:ho({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:hS,SwitchBody:i=>{let e=i.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return i.baseIndent+(t?0:n?1:2)*i.unit},Block:aS({closing:"}"}),ArrowFunction:i=>i.baseIndent+i.unit,"TemplateString BlockComment":()=>null,"Statement Property":ho({except:/^\s*{/}),JSXElement(i){let e=/^\s*<\//.test(i.textAfter);return i.lineIndent(i.node.from)+(e?0:i.unit)},JSXEscape(i){let e=/\s*\}/.test(i.textAfter);return i.lineIndent(i.node.from)+(e?0:i.unit)},"JSXOpenTag JSXSelfClosingTag"(i){return i.column(i.node.from)+i.unit}}),gs.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":jm,BlockComment(i){return{from:i.from+2,to:i.to-2}},JSXElement(i){let e=i.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let t=i.lastChild;return{from:e.to,to:t.type.isError?i.to:t.from}},"JSXSelfClosingTag JSXOpenTag"(i){var e;let t=(e=i.firstChild)===null||e===void 0?void 0:e.nextSibling,n=i.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?i.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Eg={test:i=>/^JSX/.test(i.name),facet:ol({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Oc=Vt.configure({dialect:"ts"},"typescript"),gc=Vt.configure({dialect:"jsx",props:[qh.add(i=>i.isTop?[Eg]:void 0)]}),bc=Vt.configure({dialect:"jsx ts",props:[qh.add(i=>i.isTop?[Eg]:void 0)]},"typescript");let Lg=i=>({label:i,type:"keyword"});const Rg="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Lg),tP=Rg.concat(["declare","implements","private","protected","public"].map(Lg));function Mg(i={}){let e=i.jsx?i.typescript?bc:gc:i.typescript?Oc:Vt,t=i.typescript?Pg.concat(tP):pc.concat(Rg);return new Jn(e,[Vt.data.of({autocomplete:Xx(mc,EO(t))}),Vt.data.of({autocomplete:Ag}),i.jsx?Zg:[]])}function iP(i){for(;;){if(i.name=="JSXOpenTag"||i.name=="JSXSelfClosingTag"||i.name=="JSXFragmentTag")return i;if(i.name=="JSXEscape"||!i.parent)return null;i=i.parent}}function tf(i,e,t=i.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return i.sliceString(n.from,Math.min(n.to,t));return""}const nP=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Zg=U.inputHandler.of((i,e,t,n,r)=>{if((nP?i.composing:i.compositionStarted)||i.state.readOnly||e!=t||n!=">"&&n!="/"||!Vt.isActiveAt(i.state,e,-1))return!1;let s=r(),{state:o}=s,l=o.changeByRange(a=>{var h;let{head:c}=a,u=Ze(o).resolveInner(c-1,-1),d;if(u.name=="JSXStartTag"&&(u=u.parent),!(o.doc.sliceString(c-1,c)!=n||u.name=="JSXAttributeValue"&&u.to>c)){if(n==">"&&u.name=="JSXFragmentTag")return{range:a,changes:{from:c,insert:"</>"}};if(n=="/"&&u.name=="JSXStartCloseTag"){let f=u.parent,p=f.parent;if(p&&f.from==c-2&&((d=tf(o.doc,p.firstChild,c))||((h=p.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let m=`${d}>`;return{range:Z.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(n==">"){let f=iP(u);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(d=tf(o.doc,f,c)))return{range:a,changes:{from:c,insert:`</${d}>`}}}}return{range:a}});return l.changes.empty?!1:(i.dispatch([s,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function rP(i,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},i.getRules().forEach((t,n)=>{var r;!((r=t.meta.docs)===null||r===void 0)&&r.recommended&&(e.rules[n]=2)})),t=>{let{state:n}=t,r=[];for(let{from:s,to:o}of Vt.findRegions(n)){let l=n.doc.lineAt(s),a={line:l.number-1,col:s-l.from,pos:s};for(let h of i.verify(n.sliceDoc(s,o),e))r.push(sP(h,n.doc,a))}return r}}function nf(i,e,t,n){return t.line(i+n.line).from+e+(i==1?n.col-1:-1)}function sP(i,e,t){let n=nf(i.line,i.column,e,t),r={from:n,to:i.endLine!=null&&i.endColumn!=1?nf(i.endLine,i.endColumn,e,t):n,message:i.message,source:i.ruleId?"eslint:"+i.ruleId:"eslint",severity:i.severity==1?"warning":"error"};if(i.fix){let{range:s,text:o}=i.fix,l=s[0]+t.pos-n,a=s[1]+t.pos-n;r.actions=[{name:"fix",apply(h,c){h.dispatch({changes:{from:c+l,to:c+a,insert:o},scrollIntoView:!0})}}]}return r}const Ns=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:Zg,completionPath:_g,esLint:rP,javascript:Mg,javascriptLanguage:Vt,jsxLanguage:gc,localCompletionSource:Ag,scopeCompletionSource:eP,snippets:pc,tsxLanguage:bc,typescriptLanguage:Oc,typescriptSnippets:Pg},Symbol.toStringTag,{value:"Module"})),yr=["_blank","_self","_top","_parent"],Gl=["ascii","utf-8","utf-16","latin1","latin1"],Fl=["get","post","put","delete"],Ul=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],bt=["true","false"],J={},oP={a:{attrs:{href:null,ping:null,type:null,media:null,target:yr,hreflang:null}},abbr:J,address:J,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:J,aside:J,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:J,base:{attrs:{href:null,target:yr}},bdi:J,bdo:J,blockquote:{attrs:{cite:null}},body:J,br:J,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Ul,formmethod:Fl,formnovalidate:["novalidate"],formtarget:yr,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:J,center:J,cite:J,code:J,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:J,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:J,div:J,dl:J,dt:J,em:J,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:J,figure:J,footer:J,form:{attrs:{action:null,name:null,"accept-charset":Gl,autocomplete:["on","off"],enctype:Ul,method:Fl,novalidate:["novalidate"],target:yr}},h1:J,h2:J,h3:J,h4:J,h5:J,h6:J,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:J,hgroup:J,hr:J,html:{attrs:{manifest:null}},i:J,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Ul,formmethod:Fl,formnovalidate:["novalidate"],formtarget:yr,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:J,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:J,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:J,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Gl,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:J,noscript:J,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:J,param:{attrs:{name:null,value:null}},pre:J,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:J,rt:J,ruby:J,samp:J,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Gl}},section:J,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:J,source:{attrs:{src:null,type:null,media:null}},span:J,strong:J,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:J,summary:J,sup:J,table:J,tbody:J,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:J,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:J,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:J,time:{attrs:{datetime:null}},title:J,tr:J,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:J,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:J},Xg={accesskey:null,class:null,contenteditable:bt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:bt,autocorrect:bt,autocapitalize:bt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":bt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":bt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":bt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":bt,"aria-hidden":bt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":bt,"aria-multiselectable":bt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":bt,"aria-relevant":null,"aria-required":bt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Ig="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(i=>"on"+i);for(let i of Ig)Xg[i]=null;class os{constructor(e,t){this.tags={...oP,...e},this.globalAttrs={...Xg,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}os.default=new os;function ir(i,e,t=i.length){if(!e)return"";let n=e.firstChild,r=n&&n.getChild("TagName");return r?i.sliceString(r.from,Math.min(r.to,t)):""}function nr(i,e=!1){for(;i;i=i.parent)if(i.name=="Element")if(e)e=!1;else return i;return null}function zg(i,e,t){let n=t.tags[ir(i,nr(e))];return(n==null?void 0:n.children)||t.allTags}function vc(i,e){let t=[];for(let n=nr(e);n&&!n.type.isTop;n=nr(n.parent)){let r=ir(i,n);if(r&&n.lastChild.name=="CloseTag")break;r&&t.indexOf(r)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&t.push(r)}return t}const Vg=/^[:\-\.\w\u00b7-\uffff]*$/;function rf(i,e,t,n,r){let s=/\s*>/.test(i.sliceDoc(r,r+5))?"":">",o=nr(t,t.name=="StartTag"||t.name=="TagName");return{from:n,to:r,options:zg(i.doc,o,e).map(l=>({label:l,type:"type"})).concat(vc(i.doc,t).map((l,a)=>({label:"/"+l,apply:"/"+l+s,type:"type",boost:99-a}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function sf(i,e,t,n){let r=/\s*>/.test(i.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:vc(i.doc,e).map((s,o)=>({label:s,apply:s+r,type:"type",boost:99-o})),validFor:Vg}}function lP(i,e,t,n){let r=[],s=0;for(let o of zg(i.doc,t,e))r.push({label:"<"+o,type:"type"});for(let o of vc(i.doc,t))r.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function aP(i,e,t,n,r){let s=nr(t),o=s?e.tags[ir(i.doc,s)]:null,l=o&&o.attrs?Object.keys(o.attrs):[],a=o&&o.globalAttrs===!1?l:l.length?l.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:r,options:a.map(h=>({label:h,type:"property"})),validFor:Vg}}function hP(i,e,t,n,r){var s;let o=(s=t.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),l=[],a;if(o){let h=i.sliceDoc(o.from,o.to),c=e.globalAttrs[h];if(!c){let u=nr(t),d=u?e.tags[ir(i.doc,u)]:null;c=(d==null?void 0:d.attrs)&&d.attrs[h]}if(c){let u=i.sliceDoc(n,r).toLowerCase(),d='"',f='"';/^['"]/.test(u)?(a=u[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",f=i.sliceDoc(r,r+1)==u[0]?"":u[0],u=u.slice(1),n++):a=/^[^\s<>='"]*$/;for(let p of c)l.push({label:p,apply:d+p+f,type:"constant"})}}return{from:n,to:r,options:l,validFor:a}}function Dg(i,e){let{state:t,pos:n}=e,r=Ze(t).resolveInner(n,-1),s=r.resolve(n);for(let o=n,l;s==r&&(l=r.childBefore(o));){let a=l.lastChild;if(!a||!a.type.isError||a.from<a.to)break;s=r=l,o=a.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?sf(t,r,r.from,n):rf(t,i,r,r.from,n):r.name=="StartTag"||r.name=="IncompleteTag"?rf(t,i,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?sf(t,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?aP(t,i,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?hP(t,i,r,r.name=="Is"?n:r.from,n):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?lP(t,i,r,n):null}function Bg(i){return Dg(os.default,i)}function qg(i){let{extraTags:e,extraGlobalAttributes:t}=i,n=t||e?new os(e,t):os.default;return r=>Dg(n,r)}const cP=Vt.parser.configure({top:"SingleExpression"}),jg=[{tag:"script",attrs:i=>i.type=="text/typescript"||i.lang=="ts",parser:Oc.parser},{tag:"script",attrs:i=>i.type=="text/babel"||i.type=="text/jsx",parser:gc.parser},{tag:"script",attrs:i=>i.type=="text/typescript-jsx",parser:bc.parser},{tag:"script",attrs(i){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(i.type)},parser:cP},{tag:"script",attrs(i){return!i.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(i.type)},parser:Vt.parser},{tag:"style",attrs(i){return(!i.lang||i.lang=="css")&&(!i.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(i.type))},parser:ss.parser}],Wg=[{name:"style",parser:ss.parser.configure({top:"Styles"})}].concat(Ig.map(i=>({name:i,parser:Vt.parser}))),Yg=Un.define({name:"html",parser:zQ.configure({props:[ar.add({Element(i){let e=/^(\s*)(<\/)?/.exec(i.textAfter);return i.node.to<=i.pos+e[0].length?i.continue():i.lineIndent(i.node.from)+(e[2]?0:i.unit)},"OpenTag CloseTag SelfClosingTag"(i){return i.column(i.node.from)+i.unit},Document(i){if(i.pos+/\s*/.exec(i.textAfter)[0].length<i.node.to)return i.continue();let e=null,t;for(let n=i.node;;){let r=n.lastChild;if(!r||r.name!="Element"||r.to!=n.to)break;e=n=r}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?i.lineIndent(e.from)+i.unit:null}}),gs.add({Element(i){let e=i.firstChild,t=i.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:i.to}}}),Ym.add({"OpenTag CloseTag":i=>i.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Dr=Yg.configure({wrap:gg(jg,Wg)});function Ng(i={}){let e="",t;i.matchClosingTags===!1&&(e="noMatch"),i.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(i.nestedLanguages&&i.nestedLanguages.length||i.nestedAttributes&&i.nestedAttributes.length)&&(t=gg((i.nestedLanguages||[]).concat(jg),(i.nestedAttributes||[]).concat(Wg)));let n=t?Yg.configure({wrap:t,dialect:e}):e?Dr.configure({dialect:e}):Dr;return new Jn(n,[Dr.data.of({autocomplete:qg(i)}),i.autoCloseTags!==!1?Gg:[],Mg().support,Qg().support])}const of=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Gg=U.inputHandler.of((i,e,t,n,r)=>{if(i.composing||i.state.readOnly||e!=t||n!=">"&&n!="/"||!Dr.isActiveAt(i.state,e,-1))return!1;let s=r(),{state:o}=s,l=o.changeByRange(a=>{var h,c,u;let d=o.doc.sliceString(a.from-1,a.to)==n,{head:f}=a,p=Ze(o).resolveInner(f,-1),m;if(d&&n==">"&&p.name=="EndTag"){let O=p.parent;if(((c=(h=O.parent)===null||h===void 0?void 0:h.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(m=ir(o.doc,O.parent,f))&&!of.has(m)){let g=f+(o.doc.sliceString(f,f+1)===">"?1:0),b=`</${m}>`;return{range:a,changes:{from:f,to:g,insert:b}}}}else if(d&&n=="/"&&p.name=="IncompleteCloseTag"){let O=p.parent;if(p.from==f-2&&((u=O.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(m=ir(o.doc,O,f))&&!of.has(m)){let g=f+(o.doc.sliceString(f,f+1)===">"?1:0),b=`${m}>`;return{range:Z.cursor(f+b.length,-1),changes:{from:f,to:g,insert:b}}}}return{range:a}});return l.changes.empty?!1:(i.dispatch([s,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),uP=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:Gg,html:Ng,htmlCompletionSource:Bg,htmlCompletionSourceWith:qg,htmlLanguage:Dr},Symbol.toStringTag,{value:"Module"})),Fg=ol({commentTokens:{block:{open:"<!--",close:"-->"}}}),Ug=new ae,Hg=Lw.configure({props:[gs.add(i=>!i.is("Block")||i.is("Document")||mh(i)!=null||dP(i)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),Ug.add(mh),ar.add({Document:()=>null}),Di.add({Document:Fg})]});function mh(i){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(i.name);return e?+e[1]:void 0}function dP(i){return i.name=="OrderedList"||i.name=="BulletList"}function fP(i,e){let t=i;for(;;){let n=t.nextSibling,r;if(!n||(r=mh(n.type))!=null&&r<=e)break;t=n}return t.to}const pP=cS.of((i,e,t)=>{for(let n=Ze(i).resolveInner(t,-1);n&&!(n.from<e);n=n.parent){let r=n.type.prop(Ug);if(r==null)continue;let s=fP(n,r);if(s>t)return{from:t,to:s}}return null});function yc(i){return new At(Fg,i,[],"markdown")}const Kg=yc(Hg),mP=Hg.configure([jw,Yw,Ww,Nw,{props:[gs.add({Table:(i,e)=>({from:e.doc.lineAt(i.from).to,to:i.to})})]}]),ls=yc(mP);function OP(i,e){return t=>{if(t&&i){let n=null;if(t=/\S*/.exec(t)[0],typeof i=="function"?n=i(t):n=_.matchLanguageName(i,t,!0),n instanceof _)return n.support?n.support.language.parser:On.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}class Hl{constructor(e,t,n,r,s,o,l){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=l}blank(e,t=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;n.length<e;)n+=" ";return n}else{for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(t?this.spaceAfter:"")}}marker(e,t){let n=this.node.name=="OrderedList"?String(+e0(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function Jg(i,e){let t=[],n=[];for(let r=i;r;r=r.parent){if(r.name=="FencedCode")return n;(r.name=="ListItem"||r.name=="Blockquote")&&t.push(r)}for(let r=t.length-1;r>=0;r--){let s=t[r],o,l=e.lineAt(s.from),a=s.from-l.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(l.text.slice(a))))n.push(new Hl(s,a,a+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(l.text.slice(a)))){let h=o[3],c=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),c-=4),n.push(new Hl(s.parent,a,a+c,o[1],h,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(a)))){let h=o[4],c=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),c-=4);let u=o[2];o[3]&&(u+=o[3].replace(/[xX]/," ")),n.push(new Hl(s.parent,a,a+c,o[1],h,u,s))}}return n}function e0(i,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(i.from,i.from+10))}function Kl(i,e,t,n=0){for(let r=-1,s=i;;){if(s.name=="ListItem"){let l=e0(s,e),a=+l[2];if(r>=0){if(a!=r+1)return;t.push({from:s.from+l[1].length,to:s.from+l[0].length,insert:String(r+2+n)})}r=a}let o=s.nextSibling;if(!o)break;s=o}}function kc(i,e){let t=/^[ \t]*/.exec(i)[0].length;if(!t||e.facet(lr)!=" ")return i;let n=wi(i,4,t),r="";for(let s=n;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+i.slice(t)}const t0=(i={})=>({state:e,dispatch:t})=>{let n=Ze(e),{doc:r}=e,s=null,o=e.changeByRange(l=>{if(!l.empty||!ls.isActiveAt(e,l.from,-1)&&!ls.isActiveAt(e,l.from,1))return s={range:l};let a=l.from,h=r.lineAt(a),c=Jg(n.resolveInner(a,-1),r);for(;c.length&&c[c.length-1].from>a-h.from;)c.pop();if(!c.length)return s={range:l};let u=c[c.length-1];if(u.to-u.spaceAfter.length>a-h.from)return s={range:l};let d=a>=u.to-u.spaceAfter.length&&!/\S/.test(h.text.slice(u.to));if(u.item&&d){let g=u.node.firstChild,b=u.node.getChild("ListItem","ListItem");if(g.to>=a||b&&b.to<a||h.from>0&&!/[^\s>]/.test(r.lineAt(h.from-1).text)||i.nonTightLists===!1){let Q=c.length>1?c[c.length-2]:null,x,k="";Q&&Q.item?(x=h.from+Q.from,k=Q.marker(r,1)):x=h.from+(Q?Q.to:0);let $=[{from:x,to:a,insert:k}];return u.node.name=="OrderedList"&&Kl(u.item,r,$,-2),Q&&Q.node.name=="OrderedList"&&Kl(Q.item,r,$),{range:Z.cursor(x+k.length),changes:$}}else{let Q=af(c,e,h);return{range:Z.cursor(a+Q.length+1),changes:{from:h.from,insert:Q+e.lineBreak}}}}if(u.node.name=="Blockquote"&&d&&h.from){let g=r.lineAt(h.from-1),b=/>\s*$/.exec(g.text);if(b&&b.index==u.from){let Q=e.changes([{from:g.from+b.index,to:g.to},{from:h.from+u.from,to:h.to}]);return{range:l.map(Q),changes:Q}}}let f=[];u.node.name=="OrderedList"&&Kl(u.item,r,f);let p=u.item&&u.item.from<h.from,m="";if(!p||/^[\s\d.)\-+*>]*/.exec(h.text)[0].length>=u.to)for(let g=0,b=c.length-1;g<=b;g++)m+=g==b&&!p?c[g].marker(r,1):c[g].blank(g<b?wi(h.text,4,c[g+1].from)-m.length:null);let O=a;for(;O>h.from&&/\s/.test(h.text.charAt(O-h.from-1));)O--;return m=kc(m,e),gP(u.node,e.doc)&&(m=af(c,e,h)+e.lineBreak+m),f.push({from:O,to:a,insert:e.lineBreak+m}),{range:Z.cursor(O+m.length+1),changes:f}});return s?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},i0=t0();function lf(i){return i.name=="QuoteMark"||i.name=="ListMark"}function gP(i,e){if(i.name!="OrderedList"&&i.name!="BulletList")return!1;let t=i.firstChild,n=i.getChild("ListItem","ListItem");if(!n)return!1;let r=e.lineAt(t.to),s=e.lineAt(n.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<s.number}function af(i,e,t){let n="";for(let r=0,s=i.length-2;r<=s;r++)n+=i[r].blank(r<s?wi(t.text,4,i[r+1].from)-n.length:null,r<s);return kc(n,e)}function bP(i,e){let t=i.resolveInner(e,-1),n=e;lf(t)&&(n=t.from,t=t.parent);for(let r;r=t.childBefore(n);)if(lf(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")t=r.lastChild,n=t.to;else break;return t}const n0=({state:i,dispatch:e})=>{let t=Ze(i),n=null,r=i.changeByRange(s=>{let o=s.from,{doc:l}=i;if(s.empty&&ls.isActiveAt(i,s.from)){let a=l.lineAt(o),h=Jg(bP(t,o),l);if(h.length){let c=h[h.length-1],u=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-a.from>u&&!/\S/.test(a.text.slice(u,o-a.from)))return{range:Z.cursor(a.from+u),changes:{from:a.from+u,to:o}};if(o-a.from==u&&(!c.item||a.from<=c.item.from||!/\S/.test(a.text.slice(0,c.to)))){let d=a.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(a.text.slice(c.from,c.to))){let f=c.blank(wi(a.text,4,c.to)-wi(a.text,4,c.from));return d==a.from&&(f=kc(f,i)),{range:Z.cursor(d+f.length),changes:{from:d,to:a.from+c.to,insert:f}}}if(d<o)return{range:Z.cursor(d),changes:{from:d,to:o}}}}}return n={range:s}});return n?!1:(e(i.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},r0=[{key:"Enter",run:i0},{key:"Backspace",run:n0}],s0=Ng({matchClosingTags:!1});function o0(i={}){let{codeLanguages:e,defaultCodeLanguage:t,addKeymap:n=!0,base:{parser:r}=Kg,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:l=s0}=i;if(!(r instanceof dl))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=i.extensions?[i.extensions]:[],h=[l.support,pP],c;o&&h.push(l0),t instanceof Jn?(h.push(t.support),c=t.language):t&&(c=t);let u=e||c?OP(e,c):void 0;a.push(Mw({codeParser:u,htmlParser:l.language.parser})),n&&h.push(Pi.high(Os.of(r0)));let d=yc(r.configure(a));return s&&h.push(d.data.of({autocomplete:vP})),new Jn(d,h)}function vP(i){let{state:e,pos:t}=i,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(t-25,t));if(!n)return null;let r=Ze(e).resolveInner(t,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:t-n[0].length,to:t,options:yP(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let Jl=null;function yP(){if(Jl)return Jl;let i=Bg(new Kh(Oe.create({extensions:s0}),0,!0));return Jl=i?i.options:[]}const kP=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,l0=U.domEventHandlers({paste:(i,e)=>{var t;let{main:n}=e.state.selection;if(n.empty)return!1;let r=(t=i.clipboardData)===null||t===void 0?void 0:t.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!ls.isActiveAt(e.state,n.from,1)))return!1;let s=Ze(e.state),o=!1;return s.iterate({from:n.from,to:n.to,enter:l=>{(l.from>n.from||kP.test(l.name))&&(o=!0)},leave:l=>{l.to<n.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:n.from,insert:"["},{from:n.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),SP=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:Kg,deleteMarkupBackward:n0,insertNewlineContinueMarkup:i0,insertNewlineContinueMarkupCommand:t0,markdown:o0,markdownKeymap:r0,markdownLanguage:ls,pasteURLAsLink:l0},Symbol.toStringTag,{value:"Module"}));function z(i){return new Jn(Wh.define(i))}function Ai(i){return L(()=>import("./index-CWTVEGZv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(e=>e.sql({dialect:e[i]}))}const xP=[_.of({name:"C",extensions:["c","h","ino"],load(){return L(()=>import("./index-f24-2-RT.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.cpp())}}),_.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return L(()=>import("./index-f24-2-RT.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.cpp())}}),_.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return Ai("Cassandra")}}),_.of({name:"CSS",extensions:["css"],load(){return L(()=>Promise.resolve().then(()=>v$),void 0).then(i=>i.css())}}),_.of({name:"Go",extensions:["go"],load(){return L(()=>import("./index-DF6g7nEj.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.go())}}),_.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return L(()=>Promise.resolve().then(()=>uP),void 0).then(i=>i.html())}}),_.of({name:"Java",extensions:["java"],load(){return L(()=>import("./index-DCxYGijD.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.java())}}),_.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return L(()=>Promise.resolve().then(()=>Ns),void 0).then(i=>i.javascript())}}),_.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return L(()=>import("./index-CjJX0Eli.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.jinja())}}),_.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return L(()=>import("./index-DePUHO3n.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.json())}}),_.of({name:"JSX",extensions:["jsx"],load(){return L(()=>Promise.resolve().then(()=>Ns),void 0).then(i=>i.javascript({jsx:!0}))}}),_.of({name:"LESS",extensions:["less"],load(){return L(()=>import("./index-CpNgrGiE.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.less())}}),_.of({name:"Liquid",extensions:["liquid"],load(){return L(()=>import("./index-CDRRIqmL.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.liquid())}}),_.of({name:"MariaDB SQL",load(){return Ai("MariaSQL")}}),_.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return L(()=>Promise.resolve().then(()=>SP),void 0).then(i=>i.markdown())}}),_.of({name:"MS SQL",load(){return Ai("MSSQL")}}),_.of({name:"MySQL",load(){return Ai("MySQL")}}),_.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return L(()=>import("./index-BwChYYnJ.js"),__vite__mapDeps([34,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.php())}}),_.of({name:"PLSQL",extensions:["pls"],load(){return Ai("PLSQL")}}),_.of({name:"PostgreSQL",load(){return Ai("PostgreSQL")}}),_.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return L(()=>import("./index-GLkcnEcc.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.python())}}),_.of({name:"Rust",extensions:["rs"],load(){return L(()=>import("./index-CSA0abwg.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.rust())}}),_.of({name:"Sass",extensions:["sass"],load(){return L(()=>import("./index-DMl4xPIQ.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.sass({indented:!0}))}}),_.of({name:"SCSS",extensions:["scss"],load(){return L(()=>import("./index-DMl4xPIQ.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.sass())}}),_.of({name:"SQL",extensions:["sql"],load(){return Ai("StandardSQL")}}),_.of({name:"SQLite",load(){return Ai("SQLite")}}),_.of({name:"TSX",extensions:["tsx"],load(){return L(()=>Promise.resolve().then(()=>Ns),void 0).then(i=>i.javascript({jsx:!0,typescript:!0}))}}),_.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return L(()=>Promise.resolve().then(()=>Ns),void 0).then(i=>i.javascript({typescript:!0}))}}),_.of({name:"WebAssembly",extensions:["wat","wast"],load(){return L(()=>import("./index-BGmIjKYB.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.wast())}}),_.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return L(()=>import("./index-DvfYqZgb.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.xml())}}),_.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return L(()=>import("./index-uZfsnHcN.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.yaml())}}),_.of({name:"APL",extensions:["dyalog","apl"],load(){return L(()=>import("./apl-B4CMkyY2.js"),[]).then(i=>z(i.apl))}}),_.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return L(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(i=>z(i.asciiArmor))}}),_.of({name:"ASN.1",extensions:["asn","asn1"],load(){return L(()=>import("./asn1-EdZsLKOL.js"),[]).then(i=>z(i.asn1({})))}}),_.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return L(()=>import("./asterisk-B-8jnY81.js"),[]).then(i=>z(i.asterisk))}}),_.of({name:"Brainfuck",extensions:["b","bf"],load(){return L(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(i=>z(i.brainfuck))}}),_.of({name:"Cobol",extensions:["cob","cpy"],load(){return L(()=>import("./cobol-CWcv1MsR.js"),[]).then(i=>z(i.cobol))}}),_.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.csharp))}}),_.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return L(()=>import("./clojure-BMjYHr_A.js"),[]).then(i=>z(i.clojure))}}),_.of({name:"ClojureScript",extensions:["cljs"],load(){return L(()=>import("./clojure-BMjYHr_A.js"),[]).then(i=>z(i.clojure))}}),_.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return L(()=>import("./css-BnMrqG3P.js"),[]).then(i=>z(i.gss))}}),_.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return L(()=>import("./cmake-BQqOBYOt.js"),[]).then(i=>z(i.cmake))}}),_.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return L(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(i=>z(i.coffeeScript))}}),_.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return L(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(i=>z(i.commonLisp))}}),_.of({name:"Cypher",extensions:["cyp","cypher"],load(){return L(()=>import("./cypher-C_CwsFkJ.js"),[]).then(i=>z(i.cypher))}}),_.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return L(()=>import("./python-BuPzkPfP.js"),[]).then(i=>z(i.cython))}}),_.of({name:"Crystal",extensions:["cr"],load(){return L(()=>import("./crystal-SjHAIU92.js"),[]).then(i=>z(i.crystal))}}),_.of({name:"D",extensions:["d"],load(){return L(()=>import("./d-pRatUO7H.js"),[]).then(i=>z(i.d))}}),_.of({name:"Dart",extensions:["dart"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.dart))}}),_.of({name:"diff",extensions:["diff","patch"],load(){return L(()=>import("./diff-DbItnlRl.js"),[]).then(i=>z(i.diff))}}),_.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return L(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([41,42])).then(i=>z(i.dockerFile))}}),_.of({name:"DTD",extensions:["dtd"],load(){return L(()=>import("./dtd-DF_7sFjM.js"),[]).then(i=>z(i.dtd))}}),_.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return L(()=>import("./dylan-DwRh75JA.js"),[]).then(i=>z(i.dylan))}}),_.of({name:"EBNF",load(){return L(()=>import("./ebnf-CDyGwa7X.js"),[]).then(i=>z(i.ebnf))}}),_.of({name:"ECL",extensions:["ecl"],load(){return L(()=>import("./ecl-Cabwm37j.js"),[]).then(i=>z(i.ecl))}}),_.of({name:"edn",extensions:["edn"],load(){return L(()=>import("./clojure-BMjYHr_A.js"),[]).then(i=>z(i.clojure))}}),_.of({name:"Eiffel",extensions:["e"],load(){return L(()=>import("./eiffel-CnydiIhH.js"),[]).then(i=>z(i.eiffel))}}),_.of({name:"Elm",extensions:["elm"],load(){return L(()=>import("./elm-vLlmbW-K.js"),[]).then(i=>z(i.elm))}}),_.of({name:"Erlang",extensions:["erl"],load(){return L(()=>import("./erlang-BNw1qcRV.js"),[]).then(i=>z(i.erlang))}}),_.of({name:"Esper",load(){return L(()=>import("./sql-D0XecflT.js"),[]).then(i=>z(i.esper))}}),_.of({name:"Factor",extensions:["factor"],load(){return L(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([43,42])).then(i=>z(i.factor))}}),_.of({name:"FCL",load(){return L(()=>import("./fcl-Kvtd6kyn.js"),[]).then(i=>z(i.fcl))}}),_.of({name:"Forth",extensions:["forth","fth","4th"],load(){return L(()=>import("./forth-Ffai-XNe.js"),[]).then(i=>z(i.forth))}}),_.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return L(()=>import("./fortran-DYz_wnZ1.js"),[]).then(i=>z(i.fortran))}}),_.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return L(()=>import("./mllike-CXdrOF99.js"),[]).then(i=>z(i.fSharp))}}),_.of({name:"Gas",extensions:["s"],load(){return L(()=>import("./gas-Bneqetm1.js"),[]).then(i=>z(i.gas))}}),_.of({name:"Gherkin",extensions:["feature"],load(){return L(()=>import("./gherkin-heZmZLOM.js"),[]).then(i=>z(i.gherkin))}}),_.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return L(()=>import("./groovy-D9Dt4D0W.js"),[]).then(i=>z(i.groovy))}}),_.of({name:"Haskell",extensions:["hs"],load(){return L(()=>import("./haskell-BWDZoCOh.js"),[]).then(i=>z(i.haskell))}}),_.of({name:"Haxe",extensions:["hx"],load(){return L(()=>import("./haxe-H-WmDvRZ.js"),[]).then(i=>z(i.haxe))}}),_.of({name:"HXML",extensions:["hxml"],load(){return L(()=>import("./haxe-H-WmDvRZ.js"),[]).then(i=>z(i.hxml))}}),_.of({name:"HTTP",load(){return L(()=>import("./http-DBlCnlav.js"),[]).then(i=>z(i.http))}}),_.of({name:"IDL",extensions:["pro"],load(){return L(()=>import("./idl-BEugSyMb.js"),[]).then(i=>z(i.idl))}}),_.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return L(()=>import("./javascript-qCveANmP.js"),[]).then(i=>z(i.jsonld))}}),_.of({name:"Julia",extensions:["jl"],load(){return L(()=>import("./julia-DuME0IfC.js"),[]).then(i=>z(i.julia))}}),_.of({name:"Kotlin",extensions:["kt","kts"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.kotlin))}}),_.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return L(()=>import("./livescript-BwQOo05w.js"),[]).then(i=>z(i.liveScript))}}),_.of({name:"Lua",extensions:["lua"],load(){return L(()=>import("./lua-BgMRiT3U.js"),[]).then(i=>z(i.lua))}}),_.of({name:"mIRC",extensions:["mrc"],load(){return L(()=>import("./mirc-CjQqDB4T.js"),[]).then(i=>z(i.mirc))}}),_.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return L(()=>import("./mathematica-DTrFuWx2.js"),[]).then(i=>z(i.mathematica))}}),_.of({name:"Modelica",extensions:["mo"],load(){return L(()=>import("./modelica-Dc1JOy9r.js"),[]).then(i=>z(i.modelica))}}),_.of({name:"MUMPS",extensions:["mps"],load(){return L(()=>import("./mumps-BT43cFF4.js"),[]).then(i=>z(i.mumps))}}),_.of({name:"Mbox",extensions:["mbox"],load(){return L(()=>import("./mbox-CNhZ1qSd.js"),[]).then(i=>z(i.mbox))}}),_.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return L(()=>import("./nginx-DdIZxoE0.js"),[]).then(i=>z(i.nginx))}}),_.of({name:"NSIS",extensions:["nsh","nsi"],load(){return L(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([44,42])).then(i=>z(i.nsis))}}),_.of({name:"NTriples",extensions:["nt","nq"],load(){return L(()=>import("./ntriples-BfvgReVJ.js"),[]).then(i=>z(i.ntriples))}}),_.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.objectiveC))}}),_.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.objectiveCpp))}}),_.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return L(()=>import("./mllike-CXdrOF99.js"),[]).then(i=>z(i.oCaml))}}),_.of({name:"Octave",extensions:["m"],load(){return L(()=>import("./octave-Ck1zUtKM.js"),[]).then(i=>z(i.octave))}}),_.of({name:"Oz",extensions:["oz"],load(){return L(()=>import("./oz-BzwKVEFT.js"),[]).then(i=>z(i.oz))}}),_.of({name:"Pascal",extensions:["p","pas"],load(){return L(()=>import("./pascal--L3eBynH.js"),[]).then(i=>z(i.pascal))}}),_.of({name:"Perl",extensions:["pl","pm"],load(){return L(()=>import("./perl-CdXCOZ3F.js"),[]).then(i=>z(i.perl))}}),_.of({name:"Pig",extensions:["pig"],load(){return L(()=>import("./pig-CevX1Tat.js"),[]).then(i=>z(i.pig))}}),_.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return L(()=>import("./powershell-CFHJl5sT.js"),[]).then(i=>z(i.powerShell))}}),_.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return L(()=>import("./properties-C78fOPTZ.js"),[]).then(i=>z(i.properties))}}),_.of({name:"ProtoBuf",extensions:["proto"],load(){return L(()=>import("./protobuf-ChK-085T.js"),[]).then(i=>z(i.protobuf))}}),_.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return L(()=>import("./pug-DukmZTjD.js"),__vite__mapDeps([45,46])).then(i=>z(i.pug))}}),_.of({name:"Puppet",extensions:["pp"],load(){return L(()=>import("./puppet-DMA9R1ak.js"),[]).then(i=>z(i.puppet))}}),_.of({name:"Q",extensions:["q"],load(){return L(()=>import("./q-pXgVlZs6.js"),[]).then(i=>z(i.q))}}),_.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return L(()=>import("./r-DUYO_cvP.js"),[]).then(i=>z(i.r))}}),_.of({name:"RPM Changes",load(){return L(()=>import("./rpm-CTu-6PCP.js"),[]).then(i=>z(i.rpmChanges))}}),_.of({name:"RPM Spec",extensions:["spec"],load(){return L(()=>import("./rpm-CTu-6PCP.js"),[]).then(i=>z(i.rpmSpec))}}),_.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return L(()=>import("./ruby-B2Rjki9n.js"),[]).then(i=>z(i.ruby))}}),_.of({name:"SAS",extensions:["sas"],load(){return L(()=>import("./sas-B4kiWyti.js"),[]).then(i=>z(i.sas))}}),_.of({name:"Scala",extensions:["scala"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.scala))}}),_.of({name:"Scheme",extensions:["scm","ss"],load(){return L(()=>import("./scheme-C41bIUwD.js"),[]).then(i=>z(i.scheme))}}),_.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return L(()=>import("./shell-CjFT_Tl9.js"),[]).then(i=>z(i.shell))}}),_.of({name:"Sieve",extensions:["siv","sieve"],load(){return L(()=>import("./sieve-C3Gn_uJK.js"),[]).then(i=>z(i.sieve))}}),_.of({name:"Smalltalk",extensions:["st"],load(){return L(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(i=>z(i.smalltalk))}}),_.of({name:"Solr",load(){return L(()=>import("./solr-DehyRSwq.js"),[]).then(i=>z(i.solr))}}),_.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return L(()=>import("./mllike-CXdrOF99.js"),[]).then(i=>z(i.sml))}}),_.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return L(()=>import("./sparql-DkYu6x3z.js"),[]).then(i=>z(i.sparql))}}),_.of({name:"Spreadsheet",alias:["excel","formula"],load(){return L(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(i=>z(i.spreadsheet))}}),_.of({name:"Squirrel",extensions:["nut"],load(){return L(()=>import("./clike-B9uivgTg.js"),[]).then(i=>z(i.squirrel))}}),_.of({name:"Stylus",extensions:["styl"],load(){return L(()=>import("./stylus-B533Al4x.js"),[]).then(i=>z(i.stylus))}}),_.of({name:"Swift",extensions:["swift"],load(){return L(()=>import("./swift-BzpIVaGY.js"),[]).then(i=>z(i.swift))}}),_.of({name:"sTeX",load(){return L(()=>import("./stex-C3f8Ysf7.js"),[]).then(i=>z(i.stex))}}),_.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return L(()=>import("./stex-C3f8Ysf7.js"),[]).then(i=>z(i.stex))}}),_.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return L(()=>import("./verilog-C6RDOZhf.js"),[]).then(i=>z(i.verilog))}}),_.of({name:"Tcl",extensions:["tcl"],load(){return L(()=>import("./tcl-DVfN8rqt.js"),[]).then(i=>z(i.tcl))}}),_.of({name:"Textile",extensions:["textile"],load(){return L(()=>import("./textile-CnDTJFAw.js"),[]).then(i=>z(i.textile))}}),_.of({name:"TiddlyWiki",load(){return L(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(i=>z(i.tiddlyWiki))}}),_.of({name:"Tiki wiki",load(){return L(()=>import("./tiki-DGYXhP31.js"),[]).then(i=>z(i.tiki))}}),_.of({name:"TOML",extensions:["toml"],load(){return L(()=>import("./toml-Bm5Em-hy.js"),[]).then(i=>z(i.toml))}}),_.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return L(()=>import("./troff-wAsdV37c.js"),[]).then(i=>z(i.troff))}}),_.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return L(()=>import("./ttcn-CfJYG6tj.js"),[]).then(i=>z(i.ttcn))}}),_.of({name:"TTCN_CFG",extensions:["cfg"],load(){return L(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(i=>z(i.ttcnCfg))}}),_.of({name:"Turtle",extensions:["ttl"],load(){return L(()=>import("./turtle-B1tBg_DP.js"),[]).then(i=>z(i.turtle))}}),_.of({name:"Web IDL",extensions:["webidl"],load(){return L(()=>import("./webidl-ZXfAyPTL.js"),[]).then(i=>z(i.webIDL))}}),_.of({name:"VB.NET",extensions:["vb"],load(){return L(()=>import("./vb-CmGdzxic.js"),[]).then(i=>z(i.vb))}}),_.of({name:"VBScript",extensions:["vbs"],load(){return L(()=>import("./vbscript-BuJXcnF6.js"),[]).then(i=>z(i.vbScript))}}),_.of({name:"Velocity",extensions:["vtl"],load(){return L(()=>import("./velocity-D8B20fx6.js"),[]).then(i=>z(i.velocity))}}),_.of({name:"Verilog",extensions:["v"],load(){return L(()=>import("./verilog-C6RDOZhf.js"),[]).then(i=>z(i.verilog))}}),_.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return L(()=>import("./vhdl-lSbBsy5d.js"),[]).then(i=>z(i.vhdl))}}),_.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return L(()=>import("./xquery-CQfU5ijd.js"),[]).then(i=>z(i.xQuery))}}),_.of({name:"Yacas",extensions:["ys"],load(){return L(()=>import("./yacas-BJ4BC0dw.js"),[]).then(i=>z(i.yacas))}}),_.of({name:"Z80",extensions:["z80"],load(){return L(()=>import("./z80-Hz9HOZM7.js"),[]).then(i=>z(i.z80))}}),_.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return L(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(i=>z(i.mscgen))}}),_.of({name:"Xù",extensions:["xu"],load(){return L(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(i=>z(i.xu))}}),_.of({name:"MsGenny",extensions:["msgenny"],load(){return L(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(i=>z(i.msgenny))}}),_.of({name:"Vue",extensions:["vue"],load(){return L(()=>import("./index-B6W39ctH.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.vue())}}),_.of({name:"Angular Template",load(){return L(()=>import("./index-ZDCxncSd.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])).then(i=>i.angular())}})],hf=typeof String.prototype.normalize=="function"?i=>i.normalize("NFKD"):i=>i;class as{constructor(e,t,n=0,r=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=s?l=>s(hf(l)):hf,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Mi(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=mp(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=tn(e);let r=this.normalize(t);if(r.length)for(let s=0,o=n;;s++){let l=r.charCodeAt(s),a=this.match(l,o,this.bufferPos+this.bufferStart);if(s==r.length-1){if(a)return this.value=a,this;break}o==n&&s<t.length&&t.charCodeAt(s)==l&&o++}}}match(e,t,n){let r=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],l=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?r={from:this.matches[s+1],to:n}:(this.matches[s]++,l=!0)),l||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol<"u"&&(as.prototype[Symbol.iterator]=function(){return this});const a0={from:-1,to:-1,match:/.*/.exec("")},Sc="gm"+(/x/.unicode==null?"":"u");class h0{constructor(e,t,n,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=a0,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new c0(e,t,n,r,s);this.re=new RegExp(t,Sc+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=jo(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=jo(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const ea=new WeakMap;class Zn{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=ea.get(e);if(!r||r.from>=n||r.to<=t){let l=new Zn(t,e.sliceString(t,n));return ea.set(e,l),l}if(r.from==t&&r.to==n)return r;let{text:s,from:o}=r;return o>t&&(s=e.sliceString(t,o)+s,o=t),r.to<n&&(s+=e.sliceString(r.to,n)),ea.set(e,new Zn(o,s)),new Zn(t,s.slice(t-o,n-o))}}class c0{constructor(e,t,n,r,s){this.text=e,this.to=s,this.done=!1,this.value=a0,this.matchPos=jo(e,r),this.re=new RegExp(t,Sc+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=Zn.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=jo(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Zn.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(h0.prototype[Symbol.iterator]=c0.prototype[Symbol.iterator]=function(){return this});function wP(i){try{return new RegExp(i,Sc),!0}catch{return!1}}function jo(i,e){if(e>=i.length)return e;let t=i.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}const QP=i=>{let{state:e}=i,t=String(e.doc.lineAt(i.state.selection.main.head).number),{close:n,result:r}=Ak(i,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:t},focus:!0,submitLabel:e.phrase("go")});return r.then(s=>{let o=s&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(s.elements.line.value);if(!o){i.dispatch({effects:n});return}let l=e.doc.lineAt(e.selection.main.head),[,a,h,c,u]=o,d=c?+c.slice(1):0,f=h?+h:l.number;if(h&&u){let O=f/100;a&&(O=O*(a=="-"?-1:1)+l.number/e.doc.lines),f=Math.round(e.doc.lines*O)}else h&&a&&(f=f*(a=="-"?-1:1)+l.number);let p=e.doc.line(Math.max(1,Math.min(e.doc.lines,f))),m=Z.cursor(p.from+Math.max(0,Math.min(d,p.length)));i.dispatch({effects:[n,U.scrollIntoView(m.from,{y:"center"})],selection:m})}),!0},$P=({state:i,dispatch:e})=>{let{selection:t}=i,n=Z.create(t.ranges.map(r=>i.wordAt(r.head)||Z.cursor(r.head)),t.mainIndex);return n.eq(t)?!1:(e(i.update({selection:n})),!0)};function PP(i,e){let{main:t,ranges:n}=i.selection,r=i.wordAt(t.head),s=r&&r.from==t.from&&r.to==t.to;for(let o=!1,l=new as(i.doc,e,n[n.length-1].to);;)if(l.next(),l.done){if(o)return null;l=new as(i.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(a=>a.from==l.value.from))continue;if(s){let a=i.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}const TP=({state:i,dispatch:e})=>{let{ranges:t}=i.selection;if(t.some(s=>s.from===s.to))return $P({state:i,dispatch:e});let n=i.sliceDoc(t[0].from,t[0].to);if(i.selection.ranges.some(s=>i.sliceDoc(s.from,s.to)!=n))return!1;let r=PP(i,n);return r?(e(i.update({selection:i.selection.addRange(Z.range(r.from,r.to),!1),effects:U.scrollIntoView(r.to)})),!0):!1},ur=te.define({combine(i){return Jo(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new BP(e),scrollToMatch:e=>U.scrollIntoView(e)})}});class u0{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||wP(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
|
|
278
278
|
`:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new RP(this):new _P(this)}getCursor(e,t=0,n){let r=e.doc?e:Oe.create({doc:e});return n==null&&(n=r.doc.length),this.regexp?xn(this,r,t,n):Sn(this,r,t,n)}}class d0{constructor(e){this.spec=e}}function CP(i,e,t){return(n,r,s,o)=>{if(t&&!t(n,r,s,o))return!1;let l=n>=o&&r<=o+s.length?s.slice(n-o,r-o):e.doc.sliceString(n,r);return i(l,e,n,r)}}function Sn(i,e,t,n){let r;return i.wholeWord&&(r=AP(e.doc,e.charCategorizer(e.selection.main.head))),i.test&&(r=CP(i.test,e,r)),new as(e.doc,i.unquoted,t,n,i.caseSensitive?void 0:s=>s.toLowerCase(),r)}function AP(i,e){return(t,n,r,s)=>((s>t||s+r.length<n)&&(s=Math.max(0,t-2),r=i.sliceString(s,Math.min(i.length,n+2))),(e(Wo(r,t-s))!=Ke.Word||e(Yo(r,t-s))!=Ke.Word)&&(e(Yo(r,n-s))!=Ke.Word||e(Wo(r,n-s))!=Ke.Word))}class _P extends d0{constructor(e){super(e)}nextMatch(e,t,n){let r=Sn(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let s=Math.min(e.doc.length,t+this.spec.unquoted.length);r=Sn(this.spec,e,0,s).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let s=Math.max(t,r-1e4-this.spec.unquoted.length),o=Sn(this.spec,e,s,r),l=null;for(;!o.nextOverlapping().done;)l=o.value;if(l)return l;if(s==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=Sn(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let s=Sn(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function EP(i,e,t){return(n,r,s)=>(!t||t(n,r,s))&&i(s[0],e,n,r)}function xn(i,e,t,n){let r;return i.wholeWord&&(r=LP(e.charCategorizer(e.selection.main.head))),i.test&&(r=EP(i.test,e,r)),new h0(e.doc,i.search,{ignoreCase:!i.caseSensitive,test:r},t,n)}function Wo(i,e){return i.slice(Fe(i,e,!1),e)}function Yo(i,e){return i.slice(e,Fe(i,e))}function LP(i){return(e,t,n)=>!n[0].length||(i(Wo(n.input,n.index))!=Ke.Word||i(Yo(n.input,n.index))!=Ke.Word)&&(i(Yo(n.input,n.index+n[0].length))!=Ke.Word||i(Wo(n.input,n.index+n[0].length))!=Ke.Word)}class RP extends d0{nextMatch(e,t,n){let r=xn(this.spec,e,n,e.doc.length).next();return r.done&&(r=xn(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let s=Math.max(t,n-r*1e4),o=xn(this.spec,e,s,n),l=null;for(;!o.next().done;)l=o.value;if(l&&(s==t||l.from>s+10))return l;if(s==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let r=n.length;r>0;r--){let s=+n.slice(0,r);if(s>0&&s<e.match.length)return e.match[s]+n.slice(r)}return t})}matchAll(e,t){let n=xn(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let s=xn(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const hs=de.define(),xc=de.define(),Bi=Ot.define({create(i){return new ta(Oh(i).create(),null)},update(i,e){for(let t of e.effects)t.is(hs)?i=new ta(t.value.create(),i.panel):t.is(xc)&&(i=new ta(i.query,t.value?wc:null));return i},provide:i=>Co.from(i,e=>e.panel)});class ta{constructor(e,t){this.query=e,this.panel=t}}const MP=xe.mark({class:"cm-searchMatch"}),ZP=xe.mark({class:"cm-searchMatch cm-searchMatch-selected"}),XP=_t.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(Bi))}update(i){let e=i.state.field(Bi);(e!=i.startState.field(Bi)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:i,panel:e}){if(!e||!i.spec.valid)return xe.none;let{view:t}=this,n=new dn;for(let r=0,s=t.visibleRanges,o=s.length;r<o;r++){let{from:l,to:a}=s[r];for(;r<o-1&&a>s[r+1].from-2*250;)a=s[++r].to;i.highlight(t.state,l,a,(h,c)=>{let u=t.state.selection.ranges.some(d=>d.from==h&&d.to==c);n.add(h,c,u?ZP:MP)})}return n.finish()}},{decorations:i=>i.decorations});function ks(i){return e=>{let t=e.state.field(Bi,!1);return t&&t.query.spec.valid?i(e,t):m0(e)}}const No=ks((i,{query:e})=>{let{to:t}=i.state.selection.main,n=e.nextMatch(i.state,t,t);if(!n)return!1;let r=Z.single(n.from,n.to),s=i.state.facet(ur);return i.dispatch({selection:r,effects:[Qc(i,n),s.scrollToMatch(r.main,i)],userEvent:"select.search"}),p0(i),!0}),Go=ks((i,{query:e})=>{let{state:t}=i,{from:n}=t.selection.main,r=e.prevMatch(t,n,n);if(!r)return!1;let s=Z.single(r.from,r.to),o=i.state.facet(ur);return i.dispatch({selection:s,effects:[Qc(i,r),o.scrollToMatch(s.main,i)],userEvent:"select.search"}),p0(i),!0}),IP=ks((i,{query:e})=>{let t=e.matchAll(i.state,1e3);return!t||!t.length?!1:(i.dispatch({selection:Z.create(t.map(n=>Z.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),zP=({state:i,dispatch:e})=>{let t=i.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:r}=t.main,s=[],o=0;for(let l=new as(i.doc,i.sliceDoc(n,r));!l.next().done;){if(s.length>1e3)return!1;l.value.from==n&&(o=s.length),s.push(Z.range(l.value.from,l.value.to))}return e(i.update({selection:Z.create(s,o),userEvent:"select.search.matches"})),!0},cf=ks((i,{query:e})=>{let{state:t}=i,{from:n,to:r}=t.selection.main;if(t.readOnly)return!1;let s=e.nextMatch(t,n,n);if(!s)return!1;let o=s,l=[],a,h,c=[];o.from==n&&o.to==r&&(h=t.toText(e.getReplacement(o)),l.push({from:o.from,to:o.to,insert:h}),o=e.nextMatch(t,o.from,o.to),c.push(U.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+".")));let u=i.state.changes(l);return o&&(a=Z.single(o.from,o.to).map(u),c.push(Qc(i,o)),c.push(t.facet(ur).scrollToMatch(a.main,i))),i.dispatch({changes:u,selection:a,effects:c,userEvent:"input.replace"}),!0}),VP=ks((i,{query:e})=>{if(i.state.readOnly)return!1;let t=e.matchAll(i.state,1e9).map(r=>{let{from:s,to:o}=r;return{from:s,to:o,insert:e.getReplacement(r)}});if(!t.length)return!1;let n=i.state.phrase("replaced $ matches",t.length)+".";return i.dispatch({changes:t,effects:U.announce.of(n),userEvent:"input.replace.all"}),!0});function wc(i){return i.state.facet(ur).createPanel(i)}function Oh(i,e){var t,n,r,s,o;let l=i.selection.main,a=l.empty||l.to>l.from+100?"":i.sliceDoc(l.from,l.to);if(e&&!a)return e;let h=i.facet(ur);return new u0({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:h.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:h.caseSensitive,literal:(r=e==null?void 0:e.literal)!==null&&r!==void 0?r:h.literal,regexp:(s=e==null?void 0:e.regexp)!==null&&s!==void 0?s:h.regexp,wholeWord:(o=e==null?void 0:e.wholeWord)!==null&&o!==void 0?o:h.wholeWord})}function f0(i){let e=Tm(i,wc);return e&&e.dom.querySelector("[main-field]")}function p0(i){let e=f0(i);e&&e==i.root.activeElement&&e.select()}const m0=i=>{let e=i.state.field(Bi,!1);if(e&&e.panel){let t=f0(i);if(t&&t!=i.root.activeElement){let n=Oh(i.state,e.query.spec);n.valid&&i.dispatch({effects:hs.of(n)}),t.focus(),t.select()}}else i.dispatch({effects:[xc.of(!0),e?hs.of(Oh(i.state,e.query.spec)):de.appendConfig.of(jP)]});return!0},O0=i=>{let e=i.state.field(Bi,!1);if(!e||!e.panel)return!1;let t=Tm(i,wc);return t&&t.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:xc.of(!1)}),!0},DP=[{key:"Mod-f",run:m0,scope:"editor search-panel"},{key:"F3",run:No,shift:Go,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:No,shift:Go,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:O0,scope:"editor search-panel"},{key:"Mod-Shift-l",run:zP},{key:"Mod-Alt-g",run:QP},{key:"Mod-d",run:TP,preventDefault:!0}];class BP{constructor(e){this.view=e;let t=this.query=e.state.field(Bi).query.spec;this.commit=this.commit.bind(this),this.searchField=Ne("input",{value:t.search,placeholder:vt(e,"Find"),"aria-label":vt(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ne("input",{value:t.replace,placeholder:vt(e,"Replace"),"aria-label":vt(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ne("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Ne("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Ne("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(r,s,o){return Ne("button",{class:"cm-button",name:r,onclick:s,type:"button"},o)}this.dom=Ne("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>No(e),[vt(e,"next")]),n("prev",()=>Go(e),[vt(e,"previous")]),n("select",()=>IP(e),[vt(e,"all")]),Ne("label",null,[this.caseField,vt(e,"match case")]),Ne("label",null,[this.reField,vt(e,"regexp")]),Ne("label",null,[this.wordField,vt(e,"by word")]),...e.state.readOnly?[]:[Ne("br"),this.replaceField,n("replace",()=>cf(e),[vt(e,"replace")]),n("replaceAll",()=>VP(e),[vt(e,"replace all")])],Ne("button",{name:"close",onclick:()=>O0(e),"aria-label":vt(e,"close"),type:"button"},["×"])])}commit(){let e=new u0({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:hs.of(e)}))}keydown(e){pk(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Go:No)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),cf(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(hs)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ur).top}}function vt(i,e){return i.state.phrase(e)}const Gs=30,Fs=/[\s\.,:;?!]/;function Qc(i,{from:e,to:t}){let n=i.state.doc.lineAt(e),r=i.state.doc.lineAt(t).to,s=Math.max(n.from,e-Gs),o=Math.min(r,t+Gs),l=i.state.sliceDoc(s,o);if(s!=n.from){for(let a=0;a<Gs;a++)if(!Fs.test(l[a+1])&&Fs.test(l[a])){l=l.slice(a);break}}if(o!=r){for(let a=l.length-1;a>l.length-Gs;a--)if(!Fs.test(l[a-1])&&Fs.test(l[a])){l=l.slice(0,a);break}}return U.announce.of(`${i.state.phrase("current match")}. ${l} ${i.state.phrase("on line")} ${n.number}.`)}const qP=U.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),jP=[Bi,Pi.low(XP),qP],WP=(i,e,t)=>{const n=P("editorId"),r=P("setting");let s=()=>{},o=()=>{};const l=()=>{var d;s();const a=(d=t.value)==null?void 0:d.view.contentDOM.getRootNode(),h=a==null?void 0:a.querySelector(`#${n} .cm-scroller`),c=a==null?void 0:a.querySelector(`[id="${n}-preview-wrapper"]`),u=a==null?void 0:a.querySelector(`[id="${n}-html-wrapper"]`);(c||u)&&([o,s]=(c?nb:ib)(h,c||u,t.value),i.scrollAuto&&o())};le([e,r],()=>{Dt(l)}),le(()=>i.scrollAuto,a=>{a?o():s()}),le(()=>r.value.previewOnly,a=>{a?s():o()}),Ee(l)},ia=async(i,e,t)=>{if(/^h[1-6]$/.test(i))return YP(i,e);if(i==="prettier")return await NP(e,t);switch(i){case"bold":case"underline":case"italic":case"strikeThrough":case"sub":case"sup":case"codeRow":case"katexInline":case"katexBlock":return FP(i,e);case"quote":case"orderedList":case"unorderedList":case"task":return HP(i,e);case"code":return KP(t,e);case"table":return tT(t);case"link":{const n=e.getSelectedText(),{desc:r=n,url:s=""}=t,o=`[${r}](${s})`;return{text:o,options:{select:s==="",deviationStart:o.length-s.length-1,deviationEnd:-1}}}case"image":return eT(t,e);case"flow":case"sequence":case"gantt":case"class":case"state":case"pie":case"relationship":case"journey":return JP(i);case"universal":return iT(e.getSelectedText(),t);default:return{text:"",options:{}}}},YP=(i,e)=>{const t=i.slice(1),n="#".repeat(Number(t)),[r,s,o]=$c(e,{wholeLine:!0});return{text:`${n} ${r}`,options:{deviationStart:n.length+1,replaceStart:s,replaceEnd:o}}},NP=async(i,e)=>{var r,s,o;const t=window.prettier||((r=ze.editorExtensions.prettier)==null?void 0:r.prettierInstance),n=[((s=window.prettierPlugins)==null?void 0:s.markdown)||((o=ze.editorExtensions.prettier)==null?void 0:o.parserMarkdownInstance)];return!t||!n[0]?(X.emit(e.editorId,Oi,{name:"prettier",message:"prettier is undefined"}),{text:i.getValue(),options:{select:!1,replaceAll:!0}}):{text:await t.format(i.getValue(),{parser:"markdown",plugins:n}),options:{select:!1,replaceAll:!0}}},GP={bold:["**","**",2,-2],underline:["<u>","</u>",3,-4],italic:["*","*",1,-1],strikeThrough:["~~","~~",2,-2],sub:["~","~",1,-1],sup:["^","^",1,-1],codeRow:["`","`",1,-1],katexInline:["$","$",1,-1],katexBlock:[`
|
|
279
279
|
$$
|
|
280
280
|
`,`
|