@kern0x1b/penstock-cli 26.10.0 → 26.10.2
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/THIRD-PARTY-NOTICES.md +1647 -0
- package/dist/grammars/tree-sitter-c-sharp.wasm +0 -0
- package/dist/grammars/tree-sitter-go.wasm +0 -0
- package/dist/grammars/tree-sitter-groovy.wasm +0 -0
- package/dist/grammars/tree-sitter-java.wasm +0 -0
- package/dist/grammars/tree-sitter-javascript.wasm +0 -0
- package/dist/grammars/tree-sitter-kotlin.wasm +0 -0
- package/dist/grammars/tree-sitter-python.wasm +0 -0
- package/dist/grammars/tree-sitter-scala.wasm +0 -0
- package/dist/grammars/tree-sitter-typescript.wasm +0 -0
- package/dist/grammars/web-tree-sitter.wasm +0 -0
- package/dist/penstock.js +1077 -419
- package/dist/syntax-worker.js +5 -0
- package/dist/web/assets/AgentSettings-Iy9ZaTGR.js +1 -0
- package/dist/web/assets/AgentsDialog-Dt09_TEw.js +1 -0
- package/dist/web/assets/BpmnCanvas-CCRBnGIV.js +1905 -0
- package/dist/web/assets/BpmnDocument-D2lXXcnN.js +24 -0
- package/dist/web/assets/ConflictDialog-CaBNoJST.js +1 -0
- package/dist/web/assets/DiffDocument-BjLzoDLL.js +1 -0
- package/dist/web/assets/DmnDocument-BSGTyR3r.js +41 -0
- package/dist/web/assets/DmnDocument-DdjhA8he.css +1 -0
- package/dist/web/assets/FormDocument-BdCKvI-7.js +32 -0
- package/dist/web/assets/FormDocument-URLcKn84.css +1 -0
- package/dist/web/assets/FormStepView-BEDXMPef.js +1 -0
- package/dist/web/assets/GraphAwareLayoutService-CZCVRb9X.js +21 -0
- package/dist/web/assets/NewFileDialog-D9nTKDOT.js +34 -0
- package/dist/web/assets/QuickOpen-D3AkwBdF.js +1 -0
- package/dist/web/assets/ScriptPane-4TG-1RyI.js +2 -0
- package/dist/web/assets/ScriptRunDialog-C2n9cLcf.js +1 -0
- package/dist/web/assets/SettingsDialog-BUft2ulJ.js +1 -0
- package/dist/web/assets/ShortcutsDialog-Naoea994.js +1 -0
- package/dist/web/assets/SourceDocument-PMA1dm6T.js +1 -0
- package/dist/web/assets/TextDocument-D4fl42FV.js +1 -0
- package/dist/web/assets/UnreadableFileLayer-DuWtY1bx.js +1 -0
- package/dist/web/assets/UploadDialog-CEnwtJ3T.js +1 -0
- package/dist/web/assets/Viewer-CZiVl0t6.js +4 -0
- package/dist/web/assets/apply-DwO6xN9h.js +1 -0
- package/dist/web/assets/array-move-Bc4mVEdq.js +1 -0
- package/dist/web/assets/bpmn-0HrGCizt.svg +228 -0
- package/dist/web/assets/bpmn-Cyvp-fAH.eot +0 -0
- package/dist/web/assets/bpmnTheme-iB2hl29R.js +1687 -0
- package/dist/web/assets/bridgeInstance-CJkr34d9.js +600 -0
- package/dist/web/assets/clike-DaHM3zHz.js +1 -0
- package/dist/web/assets/colors-dark-C7vOziWz.css +1 -0
- package/dist/web/assets/colors-dracula-CXhMcc1Z.css +1 -0
- package/dist/web/assets/colors-light-CyT40N4M.css +1 -0
- package/dist/web/assets/commands-BMjdyegc.js +1 -0
- package/dist/web/assets/de-BDwOyJ4E.js +1 -0
- package/dist/web/assets/dialog-wo7dFa5A.js +1 -0
- package/dist/web/assets/diff-BmEImmS0.js +1 -0
- package/dist/web/assets/dist--PmHUHDp.js +1 -0
- package/dist/web/assets/dist-B163CX7G.js +57 -0
- package/dist/web/assets/dist-BBuLDp9u.js +2 -0
- package/dist/web/assets/dist-B_V0lTcO.js +1 -0
- package/dist/web/assets/dist-BaEGn3tp.js +6 -0
- package/dist/web/assets/dist-BqwyxNP3.js +1 -0
- package/dist/web/assets/dist-CAxViutc.js +5 -0
- package/dist/web/assets/dist-CBRIhX1e.js +1 -0
- package/dist/web/assets/dist-CHluRwHI.js +2 -0
- package/dist/web/assets/dist-COW2iVt-.js +1 -0
- package/dist/web/assets/dist-CRJyslwo.js +1 -0
- package/dist/web/assets/dist-CnDXCEJ_.js +23 -0
- package/dist/web/assets/dist-CsBP6QjA.js +13 -0
- package/dist/web/assets/dist-CxyFqsL2.js +6 -0
- package/dist/web/assets/dist-D6gjpLLN.js +1 -0
- package/dist/web/assets/dist-DUkRqvKl.js +1 -0
- package/dist/web/assets/dist-DgvQWhKm.js +6 -0
- package/dist/web/assets/dist-DvFyMwGd.js +1 -0
- package/dist/web/assets/dist-Gx7P7Pk_.js +1 -0
- package/dist/web/assets/dist-Km3QNqlU.js +2 -0
- package/dist/web/assets/dist-TNwbKIWT.js +1 -0
- package/dist/web/assets/dist-sl8LIbwu.js +1 -0
- package/dist/web/assets/dmn-2EwrEScy.eot +0 -0
- package/dist/web/assets/dmn-eH1_eUsy.svg +90 -0
- package/dist/web/assets/dockLayout-CxOMo-Nl.js +1 -0
- package/dist/web/assets/documentBridge-uW6vNrY3.js +240 -0
- package/dist/web/assets/documents-BwU2MdUd.js +1 -0
- package/dist/web/assets/duplicate-rWDlHiZr.js +342 -0
- package/dist/web/assets/ed25519-DTYhEcYX.js +1 -0
- package/dist/web/assets/engine-BPUfS3r2.js +1 -0
- package/dist/web/assets/engines-C3gTrVWJ.js +5 -0
- package/dist/web/assets/es-B4wrlqk9.js +1 -0
- package/dist/web/assets/files-Chpd_QD0.js +1 -0
- package/dist/web/assets/formChecks-DXIRZuhX.js +1 -0
- package/dist/web/assets/fr-BqtYruiB.js +1 -0
- package/dist/web/assets/frontend-By89859W.js +1 -0
- package/dist/web/assets/go-C1TRUqzB.js +1 -0
- package/dist/web/assets/groovy-DASguM_i.js +1 -0
- package/dist/web/assets/html2canvas-BNKOpkjM.js +5 -0
- package/dist/web/assets/httpHost-_QDw41Ka.js +1 -0
- package/dist/web/assets/index.es-CVOua_f9.js +4 -0
- package/dist/web/assets/index.es-DHW5-gbr.js +78 -0
- package/dist/web/assets/index.esm-CTLpq4ik.js +3 -0
- package/dist/web/assets/intelligence-BnJILPl7.js +3 -0
- package/dist/web/assets/ja-B6eG6Wld.js +1 -0
- package/dist/web/assets/jspdf.es.min-Yw43YJzU.js +79 -0
- package/dist/web/assets/ko-Le3hTKqP.js +1 -0
- package/dist/web/assets/lib-D6xZQFAF.js +1 -0
- package/dist/web/assets/libavoid-BRQRZjmQ.wasm +0 -0
- package/dist/web/assets/libavoid.wasm +0 -0
- package/dist/web/assets/platform-PXoldsjF.js +2 -0
- package/dist/web/assets/preferences-C7SSy7Wf.js +1 -0
- package/dist/web/assets/preload-helper-VRuDKI9K.js +1 -0
- package/dist/web/assets/properties-C3HzGRE2.js +1 -0
- package/dist/web/assets/pt-BR-aDlgSu84.js +1 -0
- package/dist/web/assets/purify.es-DBLk-NVl.js +3 -0
- package/dist/web/assets/python-CvnBFxgv.js +1 -0
- package/dist/web/assets/resource/ArchitectsDaughter-OFL.txt +93 -0
- package/dist/web/assets/resource/ArchitectsDaughter-Regular.ttf +0 -0
- package/dist/web/assets/resource/JetBrainsMono-Italic.woff2 +0 -0
- package/dist/web/assets/resource/JetBrainsMono-Medium.woff2 +0 -0
- package/dist/web/assets/resource/JetBrainsMono-OFL.txt +52 -0
- package/dist/web/assets/resource/JetBrainsMono-Regular.woff2 +0 -0
- package/dist/web/assets/resource/JetBrainsMono-SemiBold.woff2 +0 -0
- package/dist/web/assets/rolldown-runtime-B8BYMn-z.js +1 -0
- package/dist/web/assets/ru-DJl9EFpu.js +1 -0
- package/dist/web/assets/run-Dd_PjDF8.js +1 -0
- package/dist/web/assets/samples-DfOV2cQu.js +1 -0
- package/dist/web/assets/shortcut-DONH578b.js +1 -0
- package/dist/web/assets/source-frame-q4WXS_Md.js +2 -0
- package/dist/web/assets/stackblur-es-Djj-lnDR.js +2 -0
- package/dist/web/assets/syntax-DBcQvmbn.js +6 -0
- package/dist/web/assets/testCaseRuns-6x2pl8U_.js +1 -0
- package/dist/web/assets/translator-CTBxdhz9.js +1 -0
- package/dist/web/assets/typing-CXvbBSPr.js +1 -0
- package/dist/web/assets/ui-B2q39Bca.js +1 -0
- package/dist/web/assets/useTrace-BbcYW5PF.js +1 -0
- package/dist/web/assets/vendor-NJP34MHU.js +1 -0
- package/dist/web/assets/web-BTVzb1W6.css +1 -0
- package/dist/web/assets/web-D7xTiPek.js +148 -0
- package/dist/web/assets/zh-CaEk-YOk.js +1 -0
- package/dist/web/icon.svg +9 -0
- package/dist/web/index.html +64 -0
- package/dist/web/manifest.webmanifest +14 -0
- package/package.json +13 -8
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-B8BYMn-z.js";import{m as t,p as n,v as r}from"./dist-CRJyslwo.js";import{a as i,i as a,s as o}from"./dist-CHluRwHI.js";import{a as s,n as c,r as l,t as u}from"./dist-TNwbKIWT.js";import{N as d,_ as f,d as p,m,o as ee,r as te,w as h,y as g}from"./dist-CsBP6QjA.js";import{p as _,s as v}from"./dist-DvFyMwGd.js";s(),t(),a();var y=124,b=125,x=126,S=127,C=131,ne=4,re=134,ie=7,ae=8,oe=9,se=10,ce=140,w=21,le=141,ue=25,de=142,fe=29,pe=39,me=43,he=145,ge=146,T=147,E=148,D=49,O=70,k=154,A=71,j=73,M=155,N=75,P=156,F=79,I=161,L=82,_e=83,ve=84,ye=168,R=92,be=93,xe=170,Se=100,Ce=172,we=101,Te=103,Ee=104,z=typeof process<`u`&&/\bfparse(:dbg)?\b/.test({}.LOG),B=typeof process<`u`&&/\bfparse:dbg\b/.test({}.LOG),V=typeof process<`u`&&/\bcontext\b/.test({}.LOG),H=[9,11,12,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],De=chars(`
|
|
2
|
+
\r`),U=42,Oe=chars(`'./-+*^`);function chars(e){return Array.from(e).map(e=>e.charCodeAt(0))}function isStartChar(e){return e===63||e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=55296&&e<=56319||e>=56320&&e<=57343}function isAdditional(e){return Oe.includes(e)}function isPartChar(e){return e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256}function isSpace(e){return H.includes(e)}function indent(e,t){return t.concat(e.split(/\n/g).join(`
|
|
3
|
+
`+t))}function parseAdditionalSymbol(e,t=0){let n=e.peek(t);return n===U&&e.peek(t+1)===U?{offset:2,token:`**`}:isAdditional(n)?{offset:1,token:String.fromCharCode(n)}:null}function parseIdentifier(e,t=0,n=!1){for(let r=!1,i=[],a=0;;a++){let o=e.peek(t+a);if(isStartChar(o)||(r||n)&&isPartChar(o))r||=!0,i.push(o);else return i.length?{token:String.fromCharCode(...i),offset:a}:null}}function parseSpaces(e,t){for(let n=!1,r=0;;r++)if(isSpace(e.peek(t+r)))n||=!0;else return n?{token:` `,offset:r}:null}function parseName(e,t){let{keys:n,prefixes:r}=t.contextCache(),i=t.tokens;for(let t=0,a=[],o=null;;){let s=i.length+a.length>0,c=a.length>0,l=parseIdentifier(e,t,s)||s&&parseAdditionalSymbol(e,t)||c&&parseSpaces(e,t);if(!l)return o;let{token:u,offset:d}=l;if(t+=d,u===` `)continue;a=[...a,u];let f=[...i,...a].join(` `);if(n.has(f)){let e=a[0];o={token:e,offset:e.length,term:x}}if(!r.has(f)){if(G.some(e=>e===f)){let e=a[0];o={token:e,offset:e.length,term:b}}if(!G.some(e=>e.startsWith(f)))return o}}}var ke={[b]:`identifier`,[x]:`nameIdentifier`},Ae=new c((e,t)=>{B&&console.log(`%s: T <identifier | nameIdentifier>`,e.pos);let n=parseName(e,t.context),r=t.context.tokens,i=n||parseIdentifier(e,0,r.length>0);i&&(e.advance(i.offset),e.acceptToken(n?n.term:b),z&&console.log(`%s: MATCH <%s> <%s>`,e.pos,n?ke[n.term]:`identifier`,i.token))},{contextual:!0}),je=new c((e,t)=>{B&&console.log(`%s: T <propertyIdentifier>`,e.pos);let n=t.context.tokens,r=parseIdentifier(e,0,n.length>0);r&&(e.advance(r.offset),e.acceptToken(y),z&&console.log(`%s: MATCH <propertyIdentifier> <%s>`,e.pos,r.token))}),Me=new c((e,t)=>{B&&console.log(`%s: T <insertSemi>`,e.pos);let n,r=!1;for(n=0;;n++){let t=e.peek(n);if(!H.includes(t)){De.includes(t)&&(r=!0);break}}if(r){let t=parseIdentifier(e,n+1);if(parseSpaces(e,n+1)||t&&/^(then|else|return|satisfies)$/.test(t.token))return;z&&console.log(`%s: MATCH <insertSemi>`,e.pos),e.acceptToken(S)}}),Ne={[P]:`FunctionInvocation`,[M]:`FilterExpression`,[k]:`PathExpression`},Pe={[Ce]:`Context`,[xe]:`FunctionDefinition`,[re]:`ForExpression`,[ye]:`List`,[le]:`IfExpression`,[de]:`QuantifiedExpression`},Fe={[Se]:`Context`,[be]:`FunctionDefinition`,[ne]:`ForExpression`,[R]:`List`,[w]:`IfExpression`,[ue]:`QuantifiedExpression`,[O]:`PathExpression`,[N]:`FunctionInvocation`,[j]:`FilterExpression`,[me]:`ArithmeticExpression`},W=class ValueProducer{constructor(e){this.fn=e}get(e){return this.fn(e)}static of(e){return new ValueProducer(e)}},G=Object.keys({"date and time":1,date:1,time:1,duration:1});function getPrefixes(e){let t=[];for(let n=1;n<=e.length;n++)t.push(e.substring(0,n));return t}function cacheKey(e,t){let n=normalizeContextKey(e),r=getPrefixes(n);t.keys.add(n);for(let e of r)t.prefixes.add(e);return t.originalMap.set(n,e),t}function computeContextCache(e){let t=createContextCache();for(let n of e.getKeys())cacheKey(n,t);return t}function createContextCache(e){return{keys:new Set(e?.keys),prefixes:new Set(e?.prefixes),originalMap:new Map(e?.originalMap)}}var VariableContext=class{constructor(e={}){this.value=e}getKeys(){return Object.keys(this.value)}get(e){let t=this.value[e],n=this.constructor;return n.isAtomic(t)?t:n.of(t)}set(e,t){let n=this.constructor;return new n({...this.value,[e]:t})}merge(e){let t=this.constructor;return new t(t.__merge(this.value,e))}static isAtomic(e){return e==null||e instanceof this||e instanceof W||typeof e!=`object`}static of(...e){let t=e.reduce((e,t)=>this.__merge(e,t),{});return new this(t)}static __unwrap(e){return e?e instanceof this?e.value:this.isAtomic(e)?{}:e:{}}static __merge(e,t){let r=Object.assign({},this.__unwrap(e));for(let[e,i]of Object.entries(this.__unwrap(t)))r[e]=i instanceof W?i:n(r,e)?this.__merge(r[e],i):i;return r}},Ie=class Variables{constructor({name:e=`Expressions`,tokens:t=[],children:n=[],parent:r=null,context:i,value:a,raw:o,__cache:s}){this.name=e,this.tokens=t,this.children=n,this.parent=r,this.context=i,this.value=a,this.raw=o,this.__cache=s}get root(){let e=this;for(;e.parent;)e=e.parent;return e}get cache(){let e=this.root;return e.__cache||=new WeakMap,e.__cache}enterScope(e){let t=this.of({name:e,parent:this});return V&&console.log(`[%s] enter`,t.path,t.context),t}exitScope(e){return this.parent?(V&&console.log(`[%s] exit %o
|
|
4
|
+
%s`,this.path,this.context,indent(e,` `)),this.parent.pushChild(this)):(V&&console.log(`[%s] NO exit %o
|
|
5
|
+
%s`,this.path,this.context,indent(e,` `)),this)}token(e){return V&&console.log(`[%s] token <%s> + <%s>`,this.path,this.tokens.join(` `),e),this.assign({tokens:[...this.tokens,e]})}literal(e){return V&&console.log(`[%s] literal %o`,this.path,e),this.pushChild(this.of({name:`Literal`,value:e}))}computedValue(){for(let e=this;;e=last(e.children)){if(!e)return null;if(!r(e.value))return e.value}}contextCache(){let e=this.cache.get(this.context);return e||(e=computeContextCache(this.context),this.cache.set(this.context,e)),e}get path(){return this.parent?.path?.concat(` > `,this.name)||this.name}get(e){let t=e&&normalizeContextKey(e),n=this.contextCache().originalMap.get(t);if(n===void 0)return;let r=this.context.get(n);return r instanceof W?r.get(this):r}resolveName(e){let t=this.tokens.join(` `),n=this.assign({tokens:[]}),r=this.of({name:e,parent:n,value:this.get(t),raw:t});return V&&console.log(`[%s] resolve %s <%s=%s>`,e,r.path,t,r.value),n.pushChild(r)}pushChild(e){if(!e)return this;let t=this.assign({children:[...this.children,e]});return e.parent=t,t}pushChildren(e){let t=this;for(let n of e)t=t.pushChild(n);return t}declareName(){if(this.tokens.length===0)throw Error(`no tokens to declare name`);let e=this.tokens.join(` `);return V&&console.log(`[%s] declareName <%s>`,this.path,e),this.assign({tokens:[]}).pushChild(this.of({name:`Name`,value:e}))}define(e,t){if(typeof e!=`string`)return V&&console.log(`[%s] no define <%s=%s>`,this.path,e,t),this;V&&console.log(`[%s] define <%s=%s>`,this.path,e,t);let n=this.context,r=n.set(e,t),i=cacheKey(e,createContextCache(this.cache.get(n)||computeContextCache(n)));return this.cache.set(r,i),this.assign({context:r})}assign(e={}){return Variables.of({...this,...e})}of(e={}){let t={context:this.context,parent:this.parent};return Variables.of({...t,...e})}static of(e){let{name:t,tokens:n=[],children:r=[],parent:i=null,context:a,value:o,raw:s,__cache:c}=e;if(!a)throw Error(`must provide <context>`);return new Variables({name:t,tokens:[...n],children:[...r],context:a,parent:i,value:o,raw:s,__cache:c})}};function normalizeContextKey(e){return e.replace(/\s*([./\-'+]|\*\*?)\s*/g,` $1 `).replace(/\s{2,}/g,` `).trim()}function wrap(e,t,n){let r=e.children.filter(e=>e.name!==t),i=e.children.filter(e=>e.name===t),a=r[0],o=r[Math.max(1,r.length-1)],s=a?.computedValue(),c=o?.computedValue()??null;return e.assign({children:i}).enterScope(t).pushChildren(r).exitScope(n).define(s,c)}function trackVariables(e={},t=VariableContext){let n=Ie.of({context:t.of(e)});return new u({start:n,reduce(e,n,r,i){if(n===w){let[n,r]=e.children.slice(-2);e=e.assign({value:t.of(n?.computedValue(),r?.computedValue())})}if(n===R&&(e=e.assign({value:t.of(...e.children.map(e=>e?.computedValue()))})),n===j){let[t,n]=e.children.slice(-2);e=e.assign({value:t?.computedValue()})}if(n===N){let[n,...r]=e.children;e=n?.raw===`get value`?getContextValue(e,r):e.assign({value:n?.computedValue()||t.of(void 0)})}let a=Pe[n];if(a)return e.enterScope(a);let o=Ne[n];if(o){let{children:r,context:i}=e,a=r.slice(0,-1),s=last(r),c=null;return n===k&&(c=t.of(s?.computedValue())),n===M&&(c=t.of(i,s?.computedValue()).set(`item`,s?.computedValue())),e.assign({children:a}).enterScope(o).pushChild(s).assign({context:c||i})}let s=i.read(i.pos,r.pos);if(Fe[n])return e.exitScope(s);if(n===we){let n=e.children.filter(e=>e.name!==`ContextEntry`),r=n[0],i=last(n);return wrap(e,`ContextEntry`,s).assign({value:t.of(e.value).set(r?.computedValue(),i?.computedValue())})}if(n===ie||n===fe)return wrap(e,`InExpression`,s);if(n===ce)return e.define(`partial`,W.of(e=>last(e.children)?.computedValue()));if(n===F){let t=last(e.children).computedValue();return e.define(t,1)}if(n===he||n===ge||n===T){let t=e.children.slice(0,-1),n=last(e.children);return e.assign({children:t}).enterScope(`ArithmeticExpression`).pushChild(n)}if(n===E)return e.enterScope(`ArithmeticExpression`);if(n===oe||n===se||n===Ee)return e.token(s);if(n===_e)return e.literal(s.replace(/^"|"$/g,``).replace(/\\(["\\])/g,`$1`));if(n===ve)return e.literal(s===`true`);if(n===L)return e.literal(parseFloat(s));if(n===I)return e.literal(null);if(n===D)return e.resolveName(`VariableName`);if(n===A)return e.resolveName(`PathName`);if(n===ae||n===Te)return e.declareName();if((n===C||n===pe)&&e.tokens.length>0)throw Error(`uncleared name`);if(n===C){let t=e;for(;t.parent;)t=t.exitScope(s);return t}return e}})}var Le=trackVariables({});function getContextValue(e,t){if(!t.length||(t[0].name===`Name`&&(t=extractNamedArgs(t,[`m`,`key`])),t.length!==2))return e.assign({value:null});let[n,r]=t,i=r?.computedValue(),a=n?.computedValue();return!a||typeof a!=`object`||typeof i!=`string`?e.assign({value:null}):e.assign({value:[normalizeContextKey(i),i].reduce((e,t)=>a.get(t)||e,null)})}function extractNamedArgs(e,t){let n={};for(let t=0;t<e.length;t+=2){let[r,i]=e.slice(t,t+2);n[r.value]=i}return t.map(e=>n[e])}function last(e){return e[e.length-1]}var K=i({StringLiteral:o.string,NumericLiteral:o.number,BooleanLiteral:o.bool,"AtLiteral!":o.special(o.string),CompareOp:o.compareOperator,ArithOp:o.arithmeticOperator,"for if then else some every return":o.controlKeyword,"in instance of and or satisfies between as":o.operatorKeyword,function:o.definitionKeyword,"Type/...":o.typeName,"Wildcard!":o.modifier,null:o.null,LineComment:o.lineComment,BlockComment:o.blockComment,"VariableName!":o.variableName,'"?"':o.self,"DateTimeConstructor! SpecialFunctionName!":o.standard(o.function(o.variableName)),"FunctionInvocation/VariableName!":o.function(o.variableName),"Name!":o.definition(o.variableName),"Key/Name! ContextEntryType/Name!":o.definition(o.propertyName),"PathExpression/PathName!":o.propertyName,"FormalParameter/ParameterName!":o.function(o.definition(o.variableName)),"( )":o.paren,"[ ]":o.squareBracket,"{ }":o.brace,".":o.derefOperator,", ;":o.separator,"..":o.punctuation}),Re={__proto__:null,for:10,in:34,return:40,if:44,then:46,else:48,some:52,every:54,satisfies:60,or:64,and:68,between:76,instance:90,of:93,days:105,time:107,duration:109,years:111,months:113,date:115,list:121,context:127,function:134,null:162,true:332,false:332,"?":176,external:192,not:217},ze=l.deserialize({version:14,states:"CvO`QYOOO`QYOOO$yQYOOOOQU'#Ce'#CeO%TQYO'#C`O&^QYO'#FTOOQQ'#Ff'#FfO&hQYO'#FfO`QYO'#DXOOQU'#Eq'#EqO(_Q^O'#D_OOQU'#D`'#D`OOQU'#D_'#D_OOQO'#Fn'#FnO*[QWO'#DyOOQQ'#EQ'#EQOOQQ'#ER'#EROOQQ'#ES'#ESO*aOWO'#EVO*[QWO'#ETOOQQ'#ET'#ETOOQQ'#Ft'#FtOOQQ'#Fr'#FrOOQQ'#Fz'#FzOOQQ'#EX'#EXO`QYO'#EZOOQQ'#FV'#FVO*iQ^O'#FVO,`QYO'#E[O,gQWO'#E]OOQP'#GO'#GOO,lQXO'#EdOOQQ'#F{'#F{OOQQ'#FU'#FUQOQWOOOOQQ'#FW'#FWOOQQ'#F_'#F_O`QYO'#CqOOQQ'#F`'#F`O%TQYO'#CuO,zQYO'#DzOOQQ'#Fs'#FsO-PQYO'#EUOOQO'#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#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yR#SwV!SQ#^#s!V!aT!Q!t!v#P#W#X#h#o#p#q#r#w$k$o$r%R%S%Z%^%a%d%n%v%z&]!X!bT!Q!t!v#P#W#X#h#i#o#p#q#r#w$k$o$r%R%S%Z%^%a%d%n%v%z&]!Z!cT!Q!t!v#P#W#X#h#i#j#o#p#q#r#w$k$o$r%R%S%Z%^%a%d%n%v%z&]!kWOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yR&U%lT&Y%m&s!_!eT!Q!n!t!v#P#W#X#h#i#j#k#o#p#q#r#w$k$o$r%R%S%Z%^%a%d%n%v%z&]!_!gT!Q!n!t!v#P#W#X#h#i#j#k#o#p#q#r#w$k$o$r%R%S%Z%^%a%d%n%v%z&]!k^OPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yQ!q^R!scR#{!pQ!wlR#|!p!kfOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%y!klOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%y!kmOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yR$V!x!koOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yR#Oo",nodeNames:`⚠ LineComment BlockComment Expression ForExpression for InExpressions InExpression Name Identifier Identifier . ArithOp ArithOp ArithOp ArithOp ArithOp in IterationContext .. return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression InstanceOfExpression instance of Type QualifiedName VariableName BacktickIdentifier SpecialType days time duration years months date > ListType list < ContextType context ContextEntryTypes ContextEntryType FunctionType function ArgumentTypes ArgumentType PathExpression PathName ] FilterExpression [ FunctionInvocation SpecialFunctionName NamedParameters NamedParameter ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral DateTimeConstructor AtLiteral ? SimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition FormalParameters FormalParameter external FunctionBody } { Context ContextEntry Key Name Identifier Expressions UnaryTests Wildcard not`,maxTerm:174,context:Le,nodeProps:[[`group`,-17,4,21,25,31,33,35,43,44,70,73,75,88,89,91,92,93,100,`Expr`,49,`Expr Expr`,-5,81,82,83,84,85,`Expr Literal`],[`closedBy`,40,`)`,74,`]`,99,`}`],[`openedBy`,42,`(`,72,`[`,98,`{`]],propSources:[K],skippedNodes:[0,1,2],repeatNodeCount:14,tokenData:".v~RvXY#iYZ$^Z[#i]^$^pq#iqr$crs$nwx(Wxy(]yz(bz{(g{|(t|}(y}!O)O!O!P)]!P!Q*g!Q![,b![!],y!]!^-O!^!_-T!_!`$i!`!a-d!b!c-n!}#O-s#P#Q-x#Q#R(o#S#T-}#o#p.l#q#r.q$f$g#i#BY#BZ#i$IS$I_#i$I|$I}$^$I}$JO$^$JT$JU#i$KV$KW#i&FU&FV#i?HT?HU#i~#nY#u~XY#iZ[#ipq#i$f$g#i#BY#BZ#i$IS$I_#i$JT$JU#i$KV$KW#i&FU&FV#i?HT?HU#i~$cO#v~~$fP!_!`$i~$nOt~~$qXOY$nYZ%^Zr$nrs&zs#O$n#O#P'R#P;'S$n;'S;=`(Q<%lO$n~%aVOr%^rs%vs#O%^#O#P%{#P;'S%^;'S;=`&t<%lO%^~%{O$j~~&ORO;'S%^;'S;=`&X;=`O%^~&[WOr%^rs%vs#O%^#O#P%{#P;'S%^;'S;=`&t;=`<%l%^<%lO%^~&wP;=`<%l%^~'RO$j~$k~~'URO;'S$n;'S;=`'_;=`O$n~'bYOY$nYZ%^Zr$nrs&zs#O$n#O#P'R#P;'S$n;'S;=`(Q;=`<%l$n<%lO$n~(TP;=`<%l$n~(]O#}~~(bOx~~(gOz~~(lP_~z{(o~(tO`~~(yO]~~)OO$P~R)TP[P!`!a)WQ)]O$_Q~)bQZ~!O!P)h!Q![)m~)mOc~~)rR$i~!Q![)m!g!h){#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dP$i~!Q![*_~*lQ^~z{*r!P!Q+y~*uTOz*rz{+U{;'S*r;'S;=`+s<%lO*r~+XVOz*rz{+U{!P*r!P!Q+n!Q;'S*r;'S;=`+s<%lO*r~+sOQ~~+vP;=`<%l*r~,OSP~OY+yZ;'S+y;'S;=`,[<%lO+y~,_P;=`<%l+y~,gS$i~!O!P,s!Q![,b!g!h){#X#Y){~,vP!Q![)m~-OO$]~~-TO$t~R-[P!_QuP!_!`-_P-dOuPR-kP![QuP!_!`-_~-sO$m~~-xO!l~~-}O!j~~.QTO#S-}#S#T.a#T;'S-};'S;=`.f<%lO-}~.fO$Z~~.iP;=`<%l-}~.qO#V~~.vO#U~",tokenizers:[je,Ae,Me,0,1],topRules:{Expression:[0,3],Expressions:[1,105],UnaryTests:[2,106]},dialects:{camunda:2657},dynamicPrecedences:{33:-1,70:1,75:-1,77:-1},specialized:[{term:125,get:e=>Re[e]||-1}],tokenPrec:2660}),Be=e({contextualKeyword:()=>contextualKeyword,doCompleteExpression:()=>X,dontCompleteExpression:()=>Y,expressionLanguage:()=>$,feel:()=>feel,feelLanguage:()=>Z,ifExpression:()=>ifExpression,ifInside:()=>ifInside,ifNode:()=>ifNode,keywordCompletions:()=>J,matchChildren:()=>matchChildren,matchLeft:()=>matchLeft,matchRight:()=>matchRight,snippetCompletion:()=>snippetCompletion,snippets:()=>q,unaryTestsLanguage:()=>Q}),q=[_("function(${params}) ${body}",{label:`function`,detail:`definition`,type:`keyword`}),_("for ${var} in ${collection} return ${value}",{label:`for`,detail:`expression`,type:`keyword`}),_("every ${var} in ${collection} satisfies ${condition}",{label:`every`,detail:`quantified expression`,type:`keyword`}),_("some ${var} in ${collection} satisfies ${condition}",{label:`some`,detail:`quantified expression`,type:`keyword`}),_("if ${condition} then ${value} else ${other value}",{label:`if`,detail:`block`,type:`keyword`}),_("{ ${key}: ${value} }",{label:`context`,detail:`block`,type:`keyword`}),_(`null`,{label:`null`,detail:`literal`,type:`keyword`}),_(`true`,{label:`true`,detail:`literal`,type:`keyword`}),_(`false`,{label:`false`,detail:`literal`,type:`keyword`})];function contextualKeyword(e){let{context:t,after:n,before:r,keyword:i}=e;return ifInside({nodes:t,before:r,after:n,keyword:i},v([{label:i,type:`keyword`,boost:10}]))}var J=[contextualKeyword({context:`InExpression`,keyword:`in`}),contextualKeyword({context:`IfExpression`,keyword:`then`,after:`if`,before:`else`}),contextualKeyword({context:`IfExpression`,keyword:`else`,after:`then`}),contextualKeyword({context:`QuantifiedExpression`,keyword:`satisfies`}),contextualKeyword({context:`ForExpression`,after:`InExpressions`,keyword:`return`})],Y=[`Name`,`StringLiteral`,`LineComment`,`BlockComment`,`PathExpression`,`Context`,`Key`,`ParameterName`],X=[`Expr`,`ContextEntry`];function ifNode(e,{include:t,exclude:n}){let r=[...n,...t];return t=>{let{state:i,pos:a}=t,o=matchUp(d(i).resolveInner(a,-1),r);if(o){let[e,t]=o;if(n.includes(t))return null}return e(t)}}function ifExpression(e){return ifNode(e,{include:X,exclude:Y})}function snippetCompletion(e){return ifExpression(v(e))}function matchLeft(e,t,n){return matchChildren(e,t,n,-1)}function matchRight(e,t,n){return matchChildren(e,t,n,1)}function matchChildren(e,t,n,r){let i=e[r>0?`childAfter`:`childBefore`](t);for(;i;){if(n.includes(i.name))return i;if(i.type.isError&&i.firstChild&&n.includes(i.firstChild.name))return i.firstChild;i=i[r>0?`nextSibling`:`prevSibling`]}return null}function matchUp(e,t){for(Array.isArray(t)||(t=[t]);e;e=e.parent){let n=e.type,r=t.find(e=>e&&n.is(e));if(r)return[e,r];if(n.isTop)break}return null}function ifInside(e,t){let{nodes:n,before:r,after:i,keyword:a}=e;return e=>{let{state:o,pos:s}=e,c=matchUp(d(o).resolveInner(s,-1),n);if(!c)return null;let[l]=c;return matchLeft(l,s,[a,r])||matchRight(l,s,[a,i])||i&&!matchLeft(l,s,[i])?null:t(e)}}var Z=te.define({parser:ze.configure({props:[h.add({Context:m({closing:`}`}),"List FilterExpression":m({closing:`]`}),"ParenthesizedExpression FunctionInvocation":p({except:/^\s*\)/}),"ForExpression QuantifiedExpression IfExpression":p({except:/^\s*(then|else|return|satisfies)\b/}),FunctionDefinition:p({except:/^\s*(\(|\))/})}),g.add({Context:f,List:f,ParenthesizedExpression:f,FunctionDefinition(e){let t=e.getChild(`)`);return t?{from:t.to,to:e.to}:null}})]}),languageData:{indentOnInput:/^\s*(\)|\}|\]|then|else|return|satisfies)$/,commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}}}}),Q=Z.configure({top:`UnaryTests`},`FEEL unary tests`),$=Z.configure({top:`Expression`},`FEEL expression`);function feel(e={}){let t=e.dialect===`unaryTests`?Q:$,n=e.parserDialect,r=trackVariables(e.context),i=t.configure({contextTracker:r,dialect:n}),a=e.completions||[snippetCompletion(q),J].flat();return new ee(i,[...a.map(e=>i.data.of({autocomplete:e}))])}export{q as a,snippetCompletion as i,feel as n,J as r,Be as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./rolldown-runtime-B8BYMn-z.js";import{_ as e,a as t,i as n,l as r,p as i,s as a,u as o}from"./dist-CHluRwHI.js";import{a as s,i as c,n as l,r as u}from"./dist-TNwbKIWT.js";import{D as d,I as f,N as p,Q as m,_ as ee,a as h,b as te,d as ne,ht as re,i as ie,k as ae,kt as g,mt as _,o as v,p as oe,r as y,s as se,u as ce,vt as le,w as b,y as x}from"./dist-CsBP6QjA.js";import{t as ue}from"./dist-DvFyMwGd.js";import{a as de,c as fe,i as pe,l as me,n as he,o as ge,r as _e,s as ve,t as S}from"./dist-BaEGn3tp.js";import{a as ye,i as be,n as xe,o as Se,r as C}from"./dist-CnDXCEJ_.js";s(),n();var Ce=148,w=1,we=149,Te=150,T=2,Ee=151,De=3,Oe=4,ke=152,E=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Ae=58,je=40,D=95,Me=91,O=45,Ne=46,Pe=35,Fe=37,Ie=38,Le=92,Re=10,ze=42;function isAlpha(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function isDigit(e){return e>=48&&e<=57}function isHex(e){return isDigit(e)||e>=97&&e<=102||e>=65&&e<=70}var identifierTokens=(e,t,n)=>(r,i)=>{for(let a=!1,o=0,s=0;;s++){let{next:c}=r;if(isAlpha(c)||c==O||c==D||a&&isDigit(c))!a&&(c!=O||s>0)&&(a=!0),o===s&&c==O&&o++,r.advance();else if(c==Le&&r.peek(1)!=Re){if(r.advance(),isHex(r.next)){do r.advance();while(isHex(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();a=!0}else{a&&r.acceptToken(o>=2&&i.canShift(T)?t:c==je?n:e);break}}},Be=new l(identifierTokens(we,T,Te),{contextual:!0}),Ve=new l(identifierTokens(Ee,De,Oe),{contextual:!0}),He=new l(e=>{if(E.includes(e.peek(-1))){let{next:t}=e;(isAlpha(t)||t==D||t==Pe||t==Ne||t==ze||t==Me||t==Ae&&isAlpha(e.peek(1))||t==O||t==Ie)&&e.acceptToken(Ce)}}),Ue=new l(e=>{if(!E.includes(e.peek(-1))){let{next:t}=e;if(t==Fe&&(e.advance(),e.acceptToken(w)),isAlpha(t)){do e.advance();while(isAlpha(e.next)||isDigit(e.next));e.acceptToken(w)}}});function hashColor(e){let t=e.length;return(t==4||t==5||t==7||t==9)&&/^#[a-f\d]+$/i.test(e)?ke:-1}var We=t({"AtKeyword import charset namespace keyframes media supports font-feature-values":a.definitionKeyword,"from to selector scope MatchFlag":a.keyword,NamespaceName:a.namespace,KeyframeName:a.labelName,KeyframeRangeName:a.operatorKeyword,TagName:a.tagName,ClassName:a.className,PseudoClassName:a.constant(a.className),IdName:a.labelName,"FeatureName PropertyName":a.propertyName,AttributeName:a.attributeName,NumberLiteral:a.number,KeywordQuery:a.keyword,UnaryQueryOp:a.operatorKeyword,"CallTag ValueName FontName":a.atom,VariableName:a.variableName,Callee:a.operatorKeyword,Unit:a.unit,"UniversalSelector NestingSelector":a.definitionOperator,"MatchOp CompareOp":a.compareOperator,"ChildOp SiblingOp, LogicOp":a.logicOperator,BinOp:a.arithmeticOperator,Important:a.modifier,Comment:a.blockComment,ColorLiteral:a.color,"ParenthesizedContent StringLiteral":a.string,":":a.punctuation,PseudoOp:a.derefOperator,"; , |":a.separator,"( )":a.paren,"[ ]":a.squareBracket,"{ }":a.brace}),Ge={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:88,url:158,"url-prefix":158,domain:158,regexp:158},Ke={__proto__:null,or:102,and:102,not:112,only:112,layer:212},qe={__proto__:null,selector:118,style:124,layer:208},Je={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},Ye={__proto__:null,to:249},Xe=u.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#CgO%eQ`O'#CgO%jQaO'#FrO&eQdO'#CkO'XQaO'#CcO'cQdO'#CnOOQP'#ES'#ESOOQP'#ER'#ERO'nQdO'#ETO'yQdO'#E[O'yQdO'#E_OOQP'#Fr'#FrO)`QhO'#FQOOQS'#Fq'#FqOOQS'#FT'#FTQYQdOOO)gQdO'#EeO*vQhO'#EkO)gQdO'#EmO*}QdO'#EoO+YQdO'#ErO*[QhO'#ExO+bQdO'#EzO+mQdO'#E}O+rQaO'#CfO+yQ`O'#EbO,OQ`O'#GPO,ZQdO'#GPQOQ`OOP,eO&jO'#CaPOOO)CAa)CAaOOQP'#Ci'#CiOOQP,59R,59RO%`QdO,59ROOQP'#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&wQ'x'OR(b(VQ$[!mQ$^!nQ$`!oV%v$[$^$`Q&Q$iR'X&QQ&v%iS'q&v(WR(W'rQ&n%]R'j&nQ&j%YR'h&jQ!RXR#l!RQ&d${R'c&dQ#]oS%Q#]%RR%R#^Q'z'RR(]'zQ$m!yR&U$mQ&]$rR'_&]Q']&[R(R']Q#XlR$y#XQ$P!cR%f$P_cOPdp!S#[%P^XOPdp!S#[%PQ!_^Q!`_Q#h}Q#i!OQ#j!PQ#k!QQ$u#SQ%Y#oR'g&iR%^#pQ!reQ!{g[$X!m!n!o$[$^$`Q${#Zh%[#p%]%a&m&r&w'O'i'r'x(V(bQ%`#uQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!m!n!o$[$^$`Q!caU!yf!r$gQ#RjQ#x!bS#|!c$PQ$R!dQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#oQqPR#n!SQ!zfQ$f!rR%}$g",nodeNames:`⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery ColorLiteral CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles`,maxTerm:176,nodeProps:[[`isolate`,-2,5,38,``],[`openedBy`,23,`(`,30,`[`,33,`{`],[`closedBy`,24,`)`,31,`]`,34,`}`]],propSources:[We],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu/wuv%Zvw0qwx1Sxy2qyz3Sz{3X{|3r|}8e}!O8v!O!P9e!P!Q9|!Q![:u![!];p!]!^<l!^!_<}!_!`=y!`!a>^!a!b%Z!b!c?_!c!k%Z!k!lAl!l!u%Z!u!vAl!v!}%Z!}#OA}#O#P%Z#P#QB`#Q#R/w#R#]%Z#]#^Bq#^#g%Z#g#hAl#h#o%Z#o#pGU#p#qGg#q#rHO#r#sHa#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`Hx<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!r`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$`~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$`~!r`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z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>Ye[e]||-1}],tokenPrec:2433});e();var k=null;function properties(){if(!k&&typeof document==`object`&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!=`cssText`&&r!=`cssFloat`&&typeof e[r]==`string`&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>`-`+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));k=t.sort().map(e=>({type:`property`,label:e,apply:e+`: `}))}return k||[]}var A=`active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where`.split(`.`).map(e=>({type:`class`,label:e})),j=`above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`).map(e=>({type:`keyword`,label:e})).concat(`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`).map(e=>({type:`constant`,label:e}))),Ze=`a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul`.split(`.`).map(e=>({type:`type`,label:e})),Qe=[`@charset`,`@color-profile`,`@container`,`@counter-style`,`@font-face`,`@font-feature-values`,`@font-palette-values`,`@import`,`@keyframes`,`@layer`,`@media`,`@namespace`,`@page`,`@position-try`,`@property`,`@scope`,`@starting-style`,`@supports`,`@view-transition`].map(e=>({type:`keyword`,label:e})),M=/^(\w[\w-]*|-\w[\w-]*|)$/,$e=/^-(-[\w-]*)?$/;function isVarArg(e,t){if((e.name==`(`||e.type.isError)&&(e=e.parent||e),e.name!=`ArgList`)return!1;let n=e.parent?.firstChild;return n?.name==`Callee`&&t.sliceString(n.from,n.to)==`var`}var N=new i,et=[`Declaration`];function astTop(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function variableNames(e,t,n){if(t.to-t.from>4096){let i=N.get(t);if(i)return i;let a=[],o=new Set,s=t.cursor(r.IncludeAnonymous);if(s.firstChild())do for(let t of variableNames(e,s.node,n))o.has(t.label)||(o.add(t.label),a.push(t));while(s.nextSibling());return N.set(t,a),a}{let r=[],i=new Set;return t.cursor().iterate(t=>{if(n(t)&&t.matchContext(et)&&t.node.nextSibling?.name==`:`){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:`variable`}))}}),r}}var defineCSSCompletionSource=e=>t=>{let{state:n,pos:r}=t,i=p(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)==`-`;if(i.name==`PropertyName`||(a||i.name==`TagName`)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:properties(),validFor:M};if(i.name==`ValueName`)return{from:i.from,options:j,validFor:M};if(i.name==`PseudoClassName`)return{from:i.from,options:A,validFor:M};if(e(i)||(t.explicit||a)&&isVarArg(i,n.doc))return{from:e(i)||a?i.from:r,options:variableNames(n.doc,astTop(i),e),validFor:$e};if(i.name==`TagName`){for(let{parent:e}=i;e;e=e.parent)if(e.name==`Block`)return{from:i.from,options:properties(),validFor:M};return{from:i.from,options:Ze,validFor:M}}if(i.name==`AtKeyword`)return{from:i.from,options:Qe,validFor:M};if(!t.explicit)return null;let o=i.resolve(r),s=o.childBefore(r);return s&&s.name==`:`&&o.name==`PseudoClassSelector`?{from:r,options:A,validFor:M}:s&&s.name==`:`&&o.name==`Declaration`||o.name==`ArgList`?{from:r,options:j,validFor:M}:o.name==`Block`||o.name==`Styles`?{from:r,options:properties(),validFor:M}:null},tt=defineCSSCompletionSource(e=>e.name==`VariableName`),P=y.define({name:`css`,parser:Xe.configure({props:[b.add({Declaration:ne()}),x.add({"Block KeyframeList":ee})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*\}$/,wordChars:`-`}});function css(){return new v(P,P.data.of({autocomplete:tt}))}var F=[`_blank`,`_self`,`_top`,`_parent`],I=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],L=[`get`,`post`,`put`,`delete`],R=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],z=[`true`,`false`],B={},nt={a:{attrs:{href:null,ping:null,type:null,media:null,target:F,hreflang:null}},abbr:B,address:B,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:B,aside:B,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:B,base:{attrs:{href:null,target:F}},bdi:B,bdo:B,blockquote:{attrs:{cite:null}},body:B,br:B,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:R,formmethod:L,formnovalidate:[`novalidate`],formtarget:F,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:B,center:B,cite:B,code:B,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:B,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:B,div:B,dl:B,dt:B,em:B,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:B,figure:B,footer:B,form:{attrs:{action:null,name:null,"accept-charset":I,autocomplete:[`on`,`off`],enctype:R,method:L,novalidate:[`novalidate`],target:F}},h1:B,h2:B,h3:B,h4:B,h5:B,h6:B,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:B,hgroup:B,hr:B,html:{attrs:{manifest:null}},i:B,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:R,formmethod:L,formnovalidate:[`novalidate`],formtarget:F,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:B,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:B,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:B,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:I,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:B,noscript:B,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:B,param:{attrs:{name:null,value:null}},pre:B,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:B,rt:B,ruby:B,samp:B,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:I}},section:B,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:B,source:{attrs:{src:null,type:null,media:null}},span:B,strong:B,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:B,summary:B,sup:B,table:B,tbody:B,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:B,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:B,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:B,time:{attrs:{datetime:null}},title:B,tr:B,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:B,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:B},V={accesskey:null,class:null,contenteditable:z,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:z,autocorrect:z,autocapitalize:z,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":z,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":z,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":z,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":z,"aria-hidden":z,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":z,"aria-multiselectable":z,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":z,"aria-relevant":null,"aria-required":z,"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},H=`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(e=>`on`+e);for(let e of H)V[e]=null;var Schema=class{constructor(e,t){this.tags={...nt,...e},this.globalAttrs={...V,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Schema.default=new Schema;function elementName(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}function findParentElement(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`){if(t)t=!1;else return e}return null}function allowedChildren(e,t,n){return n.tags[elementName(e,findParentElement(t))]?.children||n.allTags}function openTags(e,t){let n=[];for(let r=findParentElement(t);r&&!r.type.isTop;r=findParentElement(r.parent)){let i=elementName(e,r);if(i&&r.lastChild.name==`CloseTag`)break;i&&n.indexOf(i)<0&&(t.name==`EndTag`||t.from>=r.firstChild.to)&&n.push(i)}return n}var U=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=findParentElement(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:allowedChildren(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(openTags(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function completeCloseTag(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:openTags(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:U}}function completeStartTag(e,t,n,r){let i=[],a=0;for(let r of allowedChildren(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of openTags(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function completeAttrName(e,t,n,r,i){let a=findParentElement(n),o=a?t.tags[elementName(e.doc,a)]:null,s=o&&o.attrs?Object.keys(o.attrs):[];return{from:r,to:i,options:(o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:`property`})),validFor:U}}function completeAttrValue(e,t,n,r,i){let a=n.parent?.getChild(`AttributeName`),o=[],s;if(a){let c=e.sliceDoc(a.from,a.to),l=t.globalAttrs[c];if(!l){let r=findParentElement(n),i=r?t.tags[elementName(e.doc,r)]:null;l=i?.attrs&&i.attrs[c]}if(l){let t=e.sliceDoc(r,i).toLowerCase(),n=`"`,a=`"`;/^['"]/.test(t)?(s=t[0]==`"`?/^[^"]*$/:/^[^']*$/,n=``,a=e.sliceDoc(i,i+1)==t[0]?``:t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of l)o.push({label:e,apply:n+e+a,type:`constant`})}}return{from:r,to:i,options:o,validFor:s}}function htmlCompletionFor(e,t){let{state:n,pos:r}=t,i=p(n).resolveInner(r,-1),a=i.resolve(r);for(let e=r,t;a==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;a=i=t,e=n.from}return i.name==`TagName`?i.parent&&/CloseTag$/.test(i.parent.name)?completeCloseTag(n,i,i.from,r):completeTag(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?completeTag(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?completeCloseTag(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?completeAttrName(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?completeAttrValue(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?completeStartTag(n,e,i,r):null}function htmlCompletionSource(e){return htmlCompletionFor(Schema.default,e)}function htmlCompletionSourceWith(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new Schema(t,n):Schema.default;return e=>htmlCompletionFor(r,e)}var rt=C.parser.configure({top:`SingleExpression`}),W=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:Se.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:be.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:ye.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:rt},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:C.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:P.parser}],G=[{name:`style`,parser:P.parser.configure({top:`Styles`})}].concat(H.map(e=>({name:e,parser:C.parser}))),K=y.define({name:`html`,parser:he.configure({props:[b.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||e.name!=`Element`||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&(n.name==`CloseTag`||n.name==`SelfClosingTag`))?e.lineIndent(t.from)+e.unit:null}}),x.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),ce.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),q=K.configure({wrap:S(W,G)});function html(e={}){let t=``,n;e.matchClosingTags===!1&&(t=`noMatch`),e.selfClosingTags===!0&&(t=(t?t+` `:``)+`selfClosing`),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=S((e.nestedLanguages||[]).concat(W),(e.nestedAttributes||[]).concat(G)));let r=n?K.configure({wrap:n,dialect:t}):t?q.configure({dialect:t}):q;return new v(r,[q.data.of({autocomplete:htmlCompletionSourceWith(e)}),e.autoCloseTags===!1?[]:it,xe().support,css().support])}var J=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `));function isClosed(e,t,n){for(;;){if(t.lastChild?.name!=`CloseTag`)return!1;let r=t.parent;if(!r||elementName(e,r)!=n)return!0;t=r}}var it=f.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!q.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let t=o.doc.sliceString(e.from-1,e.to)==r,{head:n}=e,i=p(o).resolveInner(n,-1),a;if(t&&r==`>`&&i.name==`EndTag`){let t=i.parent;if((a=elementName(o.doc,t.parent,n))&&!J.has(a)&&!isClosed(o.doc,t.parent,a))return{range:e,changes:{from:n,to:n+ +(o.doc.sliceString(n,n+1)===`>`),insert:`</${a}>`}}}else if(t&&r==`/`&&i.name==`IncompleteCloseTag`){let e=i.parent;if(i.from==n-2&&e.lastChild?.name!=`CloseTag`&&(a=elementName(o.doc,e,n))&&!J.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:_.cursor(n+t.length,-1),changes:{from:n,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)});e();var Y=oe({commentTokens:{block:{open:`<!--`,close:`-->`}}}),X=new o,at=me.configure({props:[x.add(e=>!e.is(`Block`)||e.is(`Document`)||isHeading(e)!=null||isList(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),X.add(isHeading),b.add({Document:()=>null}),ae.add({Document:Y})]});function isHeading(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function isList(e){return e.name==`OrderedList`||e.name==`BulletList`}function findSectionEnd(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=isHeading(e.type))!=null&&r<=t)break;n=e}return n.to}var ot=te.of((e,t,n)=>{for(let r=p(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(X);if(e==null)continue;let t=findSectionEnd(r,e);if(t>n)return{from:n,to:t}}return null});function mkLang(e){return new ie(Y,e,[],`markdown`)}var st=mkLang(at),Z=mkLang(at.configure([pe,ge,ve,_e,{props:[x.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function getCodeParser(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):h.matchLanguageName(e,n,!0),t instanceof h)return t.support?t.support.language.parser:se.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var Context=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}marker(e,t){let n=this.node.name==`OrderedList`?String(+itemNumber(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function getContext(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new Context(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new Context(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new Context(i.parent,s,s+t,a[1],e,n,i))}}return r}function itemNumber(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function renumberList(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=itemNumber(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function normalizeIndent(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(d)!=` `)return e;let r=g(e,4,n),i=``;for(let e=r;e>0;)e>=4?(i+=` `,e-=4):(i+=` `,e--);return i+e.slice(n)}var insertNewlineContinueMarkupCommand=(e={})=>({state:t,dispatch:n})=>{let r=p(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!Z.isActiveAt(t,n.from,-1)&&!Z.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=getContext(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){if(l.item.from<s.from&&!/^[\s>]*$/.test(s.text.slice(0,l.to)))return a={range:n};let r=l.node.firstChild,u=l.node.getChild(`ListItem`,`ListItem`);if(r.to>=o||u&&u.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&renumberList(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&renumberList(e.item,i,r),{range:_.cursor(t+n.length),changes:r}}{let e=blankLine(c,t,s);return{range:_.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&renumberList(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?g(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=normalizeIndent(p,t),nonTightList(l.node,t.doc)&&(p=blankLine(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:_.cursor(m+p.length+1),changes:d}});return!a&&(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},ct=insertNewlineContinueMarkupCommand();function isMark(e){return e.name==`QuoteMark`||e.name==`ListMark`}function nonTightList(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function blankLine(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?g(n.text,4,e[t+1].from)-r.length:null,t<i);return normalizeIndent(r,t)}function contextNodeForDelete(e,t){let n=e.resolveInner(t,-1),r=t;isMark(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(isMark(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var deleteMarkupBackward=({state:e,dispatch:t})=>{let n=p(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&Z.isActiveAt(e,t.from)){let t=a.lineAt(i),r=getContext(contextNodeForDelete(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:_.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(n.item&&t.from<=n.item.from||/^[\s>]*$/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(g(t.text,4,n.to)-g(t.text,4,n.from));return r==t.from&&(i=normalizeIndent(i,e)),{range:_.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:_.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},lt=[{key:`Enter`,run:ct},{key:`Backspace`,run:deleteMarkupBackward}],Q=html({matchClosingTags:!1});function markdown(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=st,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=Q}=e;if(!(i instanceof de))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,ot],u;o&&l.push(dt),n instanceof v?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?getCodeParser(t,u):void 0;c.push(fe({codeParser:d,htmlParser:s.language.parser})),r&&l.push(le.high(m.of(lt)));let f=mkLang(i.configure(c));return a&&l.push(f.data.of({autocomplete:htmlTagCompletion})),new v(f,l)}function htmlTagCompletion(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=p(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:htmlTagCompletions(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var $=null;function htmlTagCompletions(){if($)return $;let e=htmlCompletionSource(new ue(re.create({extensions:Q}),0,!0));return $=e?e.options:[]}var ut=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,dt=f.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!Z.isActiveAt(t.state,n.from,1)))return!1;let i=p(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||ut.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),!a&&(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}});export{markdown};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-B8BYMn-z.js";function checkSide(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function resolveNode(e,t,n,r){for(;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof f&&e.index<0?null:e.parent;if(!t)return e;e=t}let i=r?0:c.IgnoreOverlays;if(r)for(let r=e,a=r.parent;a;r=a,a=r.parent)r instanceof f&&r.index<0&&a.enter(t,n,i)?.from!=r.from&&(e=a);for(;;){let r=e.enter(t,n,i);if(!r)return e;e=r}}function getChildren(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function matchNodeContext(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}function iterStack(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof f&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new StackIterator(i,n)}function stackIterator(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof f?r:r.context.parent;e;e=e.parent)if(e.index<0){let a=e.parent;(i||=[r]).push(a.resolve(t,n)),e=a}else{let a=MountedTree.get(e.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let o=new f(a.tree,a.overlay[0].from+e.from,-1,e);(i||=[r]).push(resolveNode(o,t,n,!1))}}return i?iterStack(i):r}function hasChild(e){return e.children.some(e=>e instanceof d||!e.type.isAnonymous||hasChild(e))}function buildTree(e){let{buffer:n,nodeSet:r,maxBufferLength:i=t,reused:a=[],minRepeatType:o=r.types.length}=e,s=Array.isArray(n)?new u(n,n.length):n,c=r.types,f=0,p=0;function takeNode(e,t,n,l,u,m){let{id:h,start:g,end:_,size:v}=s,y=p,b=f;if(v<0){if(s.next(),v==-1){let t=a[h];n.push(t),l.push(g-e);return}if(v==-3){f=h;return}if(v==-4){p=h;return}throw RangeError(`Unrecognized record size: ${v}`)}let x=c[h],S,C,w=g-e;if(_-g<=i&&(C=findBufferSize(s.pos-t,u))){let t=new Uint16Array(C.size-C.skip),n=s.pos-C.size,i=t.length;for(;s.pos>n;)i=copyToBuffer(C.start,t,i);S=new d(t,_-C.start,r),w=C.start-e}else{let e=s.pos-v;s.next();let t=[],n=[],r=h>=o?h:-1,a=0,c=_;for(;s.pos>e;)r>=0&&s.id==r&&s.size>=0?(s.end<=c-i&&(makeRepeatLeaf(t,n,g,a,s.end,c,r,y,b),a=t.length,c=s.end),s.next()):m>2500?takeFlatNode(g,e,t,n):takeNode(g,e,t,n,r,m+1);if(r>=0&&a>0&&a<t.length&&makeRepeatLeaf(t,n,g,a,g,c,r,y,b),t.reverse(),n.reverse(),r>-1&&a>0){let e=makeBalanced(x,b);S=balanceRange(x,t,n,0,t.length,0,_-g,e,e)}else S=makeTree(x,t,n,_-g,y-_,b)}n.push(S),l.push(w)}function takeFlatNode(e,t,n,a){let o=[],c=0,l=-1;for(;s.pos>t;){let{id:e,start:t,end:n,size:r}=s;if(r>4)s.next();else if(l>-1&&t<l)break;else l<0&&(l=n-i),o.push(e,t,n),c++,s.next()}if(c){let t=new Uint16Array(c*4),i=o[o.length-2];for(let e=o.length-3,n=0;e>=0;e-=3)t[n++]=o[e],t[n++]=o[e+1]-i,t[n++]=o[e+2]-i,t[n++]=n;n.push(new d(t,o[2]-i,r)),a.push(i-e)}}function makeBalanced(e,t){return(n,r,i)=>{let a=0,o=n.length-1,s,c;if(o>=0&&(s=n[o])instanceof l){if(!o&&s.type==e&&s.length==i)return s;(c=s.prop(NodeProp.lookAhead))&&(a=r[o]+s.length+c)}return makeTree(e,n,r,i,a,t)}}function makeRepeatLeaf(e,t,n,i,a,o,s,c,l){let u=[],d=[];for(;e.length>i;)u.push(e.pop()),d.push(t.pop()+n-a);e.push(makeTree(r.types[s],u,d,o-a,c-o,l)),t.push(a-n)}function makeTree(e,t,n,r,i,a,o){if(a){let e=[NodeProp.contextHash,a];o=o?[e].concat(o):[e]}if(i>25){let e=[NodeProp.lookAhead,i];o=o?[e].concat(o):[e]}return new l(e,t,n,r,o)}function findBufferSize(e,t){let n=s.fork(),r=0,a=0,c=0,l=n.end-i,u={size:0,start:0,skip:0};scan:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=a,u.skip=c,c+=4,r+=4,n.next();continue}let s=n.pos-e;if(e<0||s<i||n.start<l)break;let d=n.id>=o?4:0,f=n.start;for(n.next();n.pos>s;){if(n.size<0){if(n.size==-3||n.size==-4)d+=4;else break scan}else n.id>=o&&(d+=4);n.next()}a=f,r+=e,c+=d}return(t<0||r==e)&&(u.size=r,u.start=a,u.skip=c),u.size>4?u:void 0}function copyToBuffer(e,t,n){let{id:r,start:i,end:a,size:c}=s;if(s.next(),c>=0&&r<o){let o=n;if(c>4){let r=s.pos-(c-4);for(;s.pos>r;)n=copyToBuffer(e,t,n)}t[--n]=o,t[--n]=a-e,t[--n]=i-e,t[--n]=r}else c==-3?f=r:c==-4&&(p=r);return n}let m=[],h=[];for(;s.pos>0;)takeNode(e.start||0,e.bufferStart||0,m,h,-1,0);let g=e.length??(m.length?h[0]+m[0].length:0);return new l(c[e.topID],m.reverse(),h.reverse(),g)}function nodeSize(e,t){if(!e.isAnonymous||t instanceof d||t.type!=e)return 1;let n=m.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof l)){n=1;break}n+=nodeSize(e,r)}m.set(t,n)}return n}function balanceRange(e,t,n,r,i,a,o,s,c){let l=0;for(let n=r;n<i;n++)l+=nodeSize(e,t[n]);let u=Math.ceil(l*1.5/8),d=[],f=[];function divide(t,n,r,i,o){for(let s=r;s<i;){let r=s,l=n[s],p=nodeSize(e,t[s]);for(s++;s<i;s++){let n=nodeSize(e,t[s]);if(p+n>=u)break;p+=n}if(s==r+1){if(p>u){let e=t[r];divide(e.children,e.positions,0,e.children.length,n[r]+o);continue}d.push(t[r])}else{let i=n[s-1]+t[s-1].length-l;d.push(balanceRange(e,t,n,r,s,l,i,null,c))}f.push(l+o-a)}}return divide(t,n,r,i,0),(s||c)(d,f,o)}function parseMixed(e){return(t,n,r,i)=>new MixedParse(t,e,n,r,i)}function checkRanges(e){if(!e.length||e.some(e=>e.from>=e.to))throw RangeError(`Invalid inner parse ranges given: `+JSON.stringify(e))}function checkCover(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function sliceBuf(e,t,n,r,i,a){if(t<n){let o=e.buffer[t+1];r.push(e.slice(t,n,o)),i.push(o-a)}}function materialize(e){let{node:t}=e,n=[],r=t.context.buffer;do n.push(e.index),e.parent();while(!e.tree);let a=e.tree,o=a.children.indexOf(r),s=a.children[o],c=s.buffer,u=[o];function split(e,r,i,a,o,d){let f=n[d],p=[],m=[];sliceBuf(s,e,f,p,m,a);let h=c[f+1],g=c[f+2];u.push(p.length);let _=d?split(f+4,c[f+3],s.set.types[c[f]],h,g-h,d-1):t.toTree();return p.push(_),m.push(h-a),sliceBuf(s,c[f+3],r,p,m,a),new l(i,p,m,o)}a.children[o]=split(0,c.length,i.none,0,s.length,n.length-1);for(let t of u){let n=e.tree.children[t],r=e.tree.positions[t];e.yield(new f(n,r+e.from,t,e._tree))}}function punchRanges(e,t){let n=null,r=t;for(let i=1,a=0;i<e.length;i++){let o=e[i-1].to,s=e[i].from;for(;a<r.length;a++){let e=r[a];if(e.from>=s)break;e.to<=o||(n||(r=n=t.slice()),e.from<o?(n[a]=new Range(e.from,o),e.to>s&&n.splice(a+1,0,new Range(s,e.to))):e.to>s?n[a--]=new Range(s,e.to):n.splice(a--,1))}}return r}function findCoverChanges(e,t,n,r){let i=0,a=0,o=!1,s=!1,c=-1e9,l=[];for(;;){let u=i==e.length?1e9:o?e[i].to:e[i].from,d=a==t.length?1e9:s?t[a].to:t[a].from;if(o!=s){let e=Math.max(c,n),t=Math.min(u,d,r);e<t&&l.push(new Range(e,t))}if(c=Math.min(u,d),c==1e9)break;u==c&&(o?(o=!1,i++):o=!0),d==c&&(s?(s=!1,a++):s=!0)}return l}function enterFragments(e,t){let n=[];for(let{pos:r,mount:i,frag:a}of e){let e=r+(i.overlay?i.overlay[0].from:0),o=e+i.tree.length,s=Math.max(a.from,e),c=Math.min(a.to,o);if(i.overlay){let o=findCoverChanges(t,i.overlay.map(e=>new Range(e.from+r,e.to+r)),s,c);for(let t=0,r=s;;t++){let s=t==o.length,l=s?c:o[t].from;if(l>r&&n.push(new h(r,l,i.tree,-e,a.from>=r||a.openStart,a.to<=l||a.openEnd)),s)break;r=o[t].to}}else n.push(new h(s,c,i.tree,-e,a.from>=e||a.openStart,a.to<=o||a.openEnd))}return n}var t,n,Range,NodeProp,MountedTree,r,i,a,o,s,c,l,u,d,BaseNode,f,BufferContext,p,StackIterator,TreeCursor,m,NodeWeakMap,h,Parser,StringInput,InnerParse,ActiveOverlay,g,MixedParse,StructureCursor,FragmentCursor,_=e((()=>{t=1024,n=0,Range=class{constructor(e,t){this.from=e,this.to=t}},NodeProp=class{constructor(e={}){this.id=n++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error(`This node type doesn't define a deserialize function`)}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError(`Can't add per-node props to node types`);return typeof e!=`function`&&(e=i.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}},NodeProp.closedBy=new NodeProp({deserialize:e=>e.split(` `)}),NodeProp.openedBy=new NodeProp({deserialize:e=>e.split(` `)}),NodeProp.group=new NodeProp({deserialize:e=>e.split(` `)}),NodeProp.isolate=new NodeProp({deserialize:e=>{if(e&&e!=`rtl`&&e!=`ltr`&&e!=`auto`)throw RangeError(`Invalid value for isolate: `+e);return e||`auto`}}),NodeProp.contextHash=new NodeProp({perNode:!0}),NodeProp.lookAhead=new NodeProp({perNode:!0}),NodeProp.mounted=new NodeProp({perNode:!0}),MountedTree=class{constructor(e,t,n,r=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[NodeProp.mounted.id]}},r=Object.create(null),i=class NodeType{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):r,n=+!!e.top|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new NodeType(e.name||``,t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw RangeError(`Can't store a per-node prop on a node type`);t[n[0].id]=n[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e==`string`){if(this.name==e)return!0;let t=this.prop(NodeProp.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(` `))t[r]=e[n];return e=>{for(let n=e.prop(NodeProp.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}},i.none=new i(``,Object.create(null),0,8),a=class NodeSet{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError(`Node type ids should correspond to array positions when creating a node set`)}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);if(e){r||=Object.assign({},n.props);let t=e[1],i=e[0];i.combine&&i.id in r&&(t=i.combine(r[i.id],t)),r[i.id]=t}}t.push(r?new i(n.name,r,n.id,n.flags):n)}return new NodeSet(t)}},o=new WeakMap,s=new WeakMap,(function(e){e[e.ExcludeBuffers=1]=`ExcludeBuffers`,e[e.IncludeAnonymous=2]=`IncludeAnonymous`,e[e.IgnoreMounts=4]=`IgnoreMounts`,e[e.IgnoreOverlays=8]=`IgnoreOverlays`,e[e.EnterBracketed=16]=`EnterBracketed`})(c||={}),l=class Tree{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props[typeof e==`number`?e:e.id]=t}}toString(){let e=MountedTree.get(this);if(e&&!e.overlay)return e.tree.toString();let t=``;for(let e of this.children){let n=e.toString();n&&(t&&(t+=`,`),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?`(`+t+`)`:``):t}cursor(e=0){return new TreeCursor(this.topNode,e)}cursorAt(e,t=0,n=0){let r=o.get(this)||this.topNode,i=new TreeCursor(r);return i.moveTo(e,t),o.set(this,i._tree),i}get topNode(){return new f(this,0,0,null)}resolve(e,t=0){let n=resolveNode(o.get(this)||this.topNode,e,t,!1);return o.set(this,n),n}resolveInner(e,t=0){let n=resolveNode(s.get(this)||this.topNode,e,t,!0);return s.set(this,n),n}resolveStack(e,t=0){return stackIterator(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,a=e.mode||0,o=(a&c.IncludeAnonymous)>0;for(let e=this.cursor(a|c.IncludeAnonymous);;){let a=!1;if(e.from<=i&&e.to>=r&&(!o&&e.type.isAnonymous||t(e)!==!1)){if(e.firstChild())continue;a=!0}for(;a&&n&&(o||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;a=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:balanceRange(i.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new Tree(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new Tree(i.none,e,t,n)))}static build(e){return buildTree(e)}},l.empty=new l(i.none,[],[],0),u=class FlatBufferCursor{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FlatBufferCursor(this.buffer,this.index)}},d=class TreeBuffer{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return i.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(`,`)}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),e+=4,n==e)return i;let a=[];for(;e<n;)a.push(this.childString(e)),e=this.buffer[e+3];return i+`(`+a.join(`,`)+`)`}findChild(e,t,n,r,i){let{buffer:a}=this,o=-1;for(let s=e;s!=t&&!(checkSide(i,r,a[s+1],a[s+2])&&(o=s,n>0));s=a[s+3]);return o}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),a=0;for(let o=e,s=0;o<t;){i[s++]=r[o++],i[s++]=r[o++]-n;let t=i[s++]=r[o++]-n;i[s++]=r[o++]-e,a=Math.max(a,t)}return new TreeBuffer(i,a,this.set)}},BaseNode=class{cursor(e=0){return new TreeCursor(this,e)}getChild(e,t=null,n=null){let r=getChildren(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return getChildren(this,e,t,n)}resolve(e,t=0){return resolveNode(this,e,t,!1)}resolveInner(e,t=0){return resolveNode(this,e,t,!0)}matchContext(e){return matchNodeContext(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}},f=class TreeNode extends BaseNode{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,i=0){for(let a=this;;){for(let{children:o,positions:s}=a._tree,u=t>0?o.length:-1;e!=u;e+=t){let u=o[e],f=s[e]+a.from,m;if(i&c.EnterBracketed&&u instanceof l&&(m=MountedTree.get(u))&&!m.overlay&&m.bracketed&&n>=f&&n<=f+u.length||checkSide(r,n,f,f+u.length)){if(u instanceof d){if(i&c.ExcludeBuffers)continue;let o=u.findChild(0,u.buffer.length,t,n-f,r);if(o>-1)return new p(new BufferContext(a,u,e,f),null,o)}else if(i&c.IncludeAnonymous||!u.type.isAnonymous||hasChild(u)){let o;if(!(i&c.IgnoreMounts)&&(o=MountedTree.get(u))&&!o.overlay)return new TreeNode(o.tree,f,e,a);let s=new TreeNode(u,f,e,a);return i&c.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?u.children.length-1:0,t,n,r,i)}}}if(i&c.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+t:t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let r;if(!(n&c.IgnoreOverlays)&&(r=MountedTree.get(this._tree))&&r.overlay){let i=e-this.from,a=n&c.EnterBracketed&&r.bracketed;for(let{from:e,to:n}of r.overlay)if((t>0||a?e<=i:e<i)&&(t<0||a?n>=i:n>i))return new TreeNode(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}},BufferContext=class{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}},p=class BufferNode extends BaseNode{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new BufferNode(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&c.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new BufferNode(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new BufferNode(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new BufferNode(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let a=n.buffer[this.index+1];e.push(n.slice(r,i,a)),t.push(0)}return new l(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}},StackIterator=class{constructor(e,t){this.heads=e,this.node=t}get next(){return iterStack(this.heads)}},TreeCursor=class{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~c.EnterBracketed,e instanceof f)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return e?e instanceof f?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&c.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&c.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&c.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&c.IncludeAnonymous||e instanceof d||!e.type.isAnonymous||hasChild(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)scan:for(let r=this.index,i=this.stack.length;i>=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;t=a,n=i+1;break scan}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new p(this.buffer,t,this.stack[e]);return this.bufferNode=new p(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return matchNodeContext(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return matchNodeContext(this._tree,e,r);let a=n[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}},m=new WeakMap,NodeWeakMap=class{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof p?this.setBuffer(e.context.buffer,e.index,t):e instanceof f&&this.map.set(e.tree,t)}get(e){return e instanceof p?this.getBuffer(e.context.buffer,e.index):e instanceof f?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},h=class TreeFragment{constructor(e,t,n,r,i=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=!!i|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let r=[new TreeFragment(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,a=e.length?e[0]:null;for(let o=0,s=0,c=0;;o++){let l=o<t.length?t[o]:null,u=l?l.fromA:1e9;if(u-s>=n)for(;a&&a.from<u;){let t=a;if(s>=t.from||u<=t.to||c){let e=Math.max(t.from,s)-c,n=Math.min(t.to,u)-c;t=e>=n?null:new TreeFragment(e,n,t.tree,t.offset+c,o>0,!!l)}if(t&&r.push(t),a.to>u)break;a=i<e.length?e[i++]:null}if(!l)break;s=l.toA,c=l.toA-l.toB}return r}},Parser=class{startParse(e,t,n){return typeof e==`string`&&(e=new StringInput(e)),n=n?n.length?n.map(e=>new Range(e.from,e.to)):[new Range(0,0)]:[new Range(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}},StringInput=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}},InnerParse=class{constructor(e,t,n,r,i,a){this.parser=e,this.parse=t,this.overlay=n,this.bracketed=r,this.target=i,this.from=a}},ActiveOverlay=class{constructor(e,t,n,r,i,a,o,s){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=i,this.bracketed=a,this.target=o,this.prev=s,this.depth=0,this.ranges=[]}},g=new NodeProp({perNode:!0}),MixedParse=class{constructor(e,t,n,r,i){this.nest=t,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),this.stoppedAt!=null)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return this.stoppedAt!=null&&(e=new l(e.type,e.children,e.positions,e.length,e.propValues.concat([[g,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[NodeProp.mounted.id]=new MountedTree(t,e.overlay,e.parser,e.bracketed),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new FragmentCursor(this.fragments),t=null,n=null,r=new TreeCursor(new f(this.baseTree,this.ranges[0].from,0,null),c.IncludeAnonymous|c.IgnoreMounts);scan:for(let i,a;;){let o=!0,s;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)o=!1;else if(e.hasNode(r)){if(t){let e=t.mounts.find(e=>e.frag.from<=r.from&&e.frag.to>=r.to&&e.mount.overlay);if(e)for(let n of e.mount.overlay){let i=n.from+e.pos,a=n.to+e.pos;i>=r.from&&a<=r.to&&!t.ranges.some(e=>e.from<a&&e.to>i)&&t.ranges.push({from:i,to:a})}}o=!1}else if(n&&(a=checkCover(n.ranges,r.from,r.to)))o=a!=2;else if(!r.type.isAnonymous&&(i=this.nest(r,this.input))&&(r.from<r.to||!i.overlay)){r.tree||(materialize(r),t&&t.depth++,n&&n.depth++);let a=e.findMounts(r.from,i.parser);if(typeof i.overlay==`function`)t=new ActiveOverlay(i.parser,i.overlay,a,this.inner.length,r.from,!!i.bracketed,r.tree,t);else{let e=punchRanges(this.ranges,i.overlay||(r.from<r.to?[new Range(r.from,r.to)]:[]));e.length&&checkRanges(e),(e.length||!i.overlay)&&this.inner.push(new InnerParse(i.parser,e.length?i.parser.startParse(this.input,enterFragments(a,e),e):i.parser.startParse(``),i.overlay?i.overlay.map(e=>new Range(e.from-r.from,e.to-r.from)):null,!!i.bracketed,r.tree,e.length?e[0].from:r.from)),i.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):o=!1}}else if(t&&(s=t.predicate(r))&&(s===!0&&(s=new Range(r.from,r.to)),s.from<s.to)){let e=t.ranges.length-1;e>=0&&t.ranges[e].to==s.from?t.ranges[e]={from:t.ranges[e].from,to:s.to}:t.ranges.push(s)}if(o&&r.firstChild())t&&t.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break scan;if(t&&!--t.depth){let e=punchRanges(this.ranges,t.ranges);e.length&&(checkRanges(e),this.inner.splice(t.index,0,new InnerParse(t.parser,t.parser.startParse(this.input,enterFragments(t.mounts,e),e),t.ranges.map(e=>new Range(e.from-t.start,e.to-t.start)),t.bracketed,t.target,e[0].from))),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}},StructureCursor=class{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(c.IncludeAnonymous|c.IgnoreMounts|c.ExcludeBuffers)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)if(!(t.to>=n&&t.enter(n,1,c.IncludeAnonymous|c.IgnoreOverlays|c.ExcludeBuffers))){if(t.to<=n)t.next(!1)||(this.done=!0);else break}}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof l)t=t.children[0];else break}return!1}},FragmentCursor=class{constructor(e){if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let t=this.curFrag=e[0];this.curTo=t.tree.prop(g)??t.to,this.inner=new StructureCursor(t.tree,-t.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=e.tree.prop(g)??e.to,this.inner=new StructureCursor(e.tree,-e.offset)}}findMounts(e,t){let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=e.tree?.prop(NodeProp.mounted);if(r&&r.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let i=this.fragments[t];if(i.from>=e.to)break;i.tree==this.curFrag.tree&&n.push({frag:i,pos:e.from-i.offset,mount:r})}}}return n}}}));function sameArray(e,t){return e.length==t.length&&e.every((e,n)=>e==t[n])}function powerSet(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}function styleTags(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(` `))if(e){let n=[],i=2,a=e;for(let t=0;;){if(a==`...`&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!r)throw RangeError(`Invalid path: `+e);if(n.push(r[0]==`*`?``:r[0][0]==`"`?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&o==`!`){i=0;break}if(o!=`/`)throw RangeError(`Invalid path: `+e);a=e.slice(t)}let o=n.length-1,s=n[o];if(!s)throw RangeError(`Invalid path: `+e);t[s]=new Rule(r,i,o>0?n.slice(0,o):null).sort(t[s])}}return S.add(t)}function tagHighlighter(e,t){let n=Object.create(null);for(let t of e)if(!Array.isArray(t.tag))n[t.tag.id]=t.class;else for(let e of t.tag)n[e.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+` `+r:r;break}}return t},scope:r}}function highlightTags(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+` `+e:e)}return n}function highlightTree(e,t,n,r=0,i=e.length){let a=new HighlightBuilder(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,``,a.highlighters),a.flush(i)}function highlightCode(e,t,n,r,i,a=0,o=e.length){let s=a;function writeTo(t,n){if(!(t<=s)){for(let a=e.slice(s,t),o=0;;){let e=a.indexOf(`
|
|
2
|
+
`,o),t=e<0?a.length:e;if(t>o&&r(a.slice(o,t),n),e<0)break;i(),o=e+1}s=t}}highlightTree(t,n,(e,t,n)=>{writeTo(e,``),writeTo(t,n)},a,o),writeTo(o,``)}function getStyleTags(e){let t=e.type.prop(S);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}var v,y,b,x,S,Rule,HighlightBuilder,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z=e((()=>{_(),v=0,y=class Tag{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=v++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n=typeof e==`string`?e:`?`;if(e instanceof Tag&&(t=e),t?.base)throw Error(`Can not derive from a modified tag`);let r=new Tag(n,[],null,[]);if(r.set.push(r),t)for(let e of t.set)r.set.push(e);return r}static defineModifier(e){let t=new x(e);return e=>e.modified.indexOf(t)>-1?e:x.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}},b=0,x=class Modifier{constructor(e){this.name=e,this.instances=[],this.id=b++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>n.base==e&&sameArray(t,n.modified));if(n)return n;let r=[],i=new y(e.name,r,e,t);for(let e of t)e.instances.push(i);let a=powerSet(t);for(let t of e.set)if(!t.modified.length)for(let e of a)r.push(Modifier.get(t,e));return i}},S=new NodeProp({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth<=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let a=new Rule(i.tags,i.mode,i.context);n?n.next=a:r=a,n=a}return r}}),Rule=class{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}},Rule.empty=new Rule([],2,null),HighlightBuilder=class{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=``}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:a,from:o,to:s}=e;if(o>=n||s<=t)return;a.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(a)));let c=r,l=getStyleTags(e)||Rule.empty,u=highlightTags(i,l.tags);if(u&&(c&&(c+=` `),c+=u,l.mode==1&&(r+=(r?` `:``)+u)),this.startSpan(Math.max(t,o),c),l.opaque)return;let d=e.tree&&e.tree.prop(NodeProp.mounted);if(d&&d.overlay){let a=e.node.enter(d.overlay[0].from+o,1),l=this.highlighters.filter(e=>!e.scope||e.scope(d.tree.type)),u=e.firstChild();for(let f=0,p=o;;f++){let m=f<d.overlay.length?d.overlay[f]:null,h=m?m.from+o:s,g=Math.max(t,p),_=Math.min(n,h);if(g<_&&u)for(;e.from<_&&(this.highlightRange(e,g,_,r,i),this.startSpan(Math.min(_,e.to),c),!(e.to>=h||!e.nextSibling())););if(!m||h>n)break;p=m.to+o,p>t&&(this.highlightRange(a.cursor(),Math.max(t,m.from+o),Math.min(n,p),``,l),this.startSpan(Math.min(n,p),c))}u&&e.parent()}else if(e.firstChild()){d&&(r=``);do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),c)}while(e.nextSibling());e.parent()}}},C=y.define,w=C(),T=C(),E=C(T),D=C(T),O=C(),k=C(O),A=C(O),j=C(),M=C(j),N=C(),P=C(),F=C(),I=C(F),L=C(),R={comment:w,lineComment:C(w),blockComment:C(w),docComment:C(w),name:T,variableName:C(T),typeName:E,tagName:C(E),propertyName:D,attributeName:C(D),className:C(T),labelName:C(T),namespace:C(T),macroName:C(T),literal:O,string:k,docString:C(k),character:C(k),attributeValue:C(k),number:A,integer:C(A),float:C(A),bool:C(O),regexp:C(O),escape:C(O),color:C(O),url:C(O),keyword:N,self:C(N),null:C(N),atom:C(N),unit:C(N),modifier:C(N),operatorKeyword:C(N),controlKeyword:C(N),definitionKeyword:C(N),moduleKeyword:C(N),operator:P,derefOperator:C(P),arithmeticOperator:C(P),logicOperator:C(P),bitwiseOperator:C(P),compareOperator:C(P),updateOperator:C(P),definitionOperator:C(P),typeOperator:C(P),controlOperator:C(P),punctuation:F,separator:C(F),bracket:I,angleBracket:C(I),squareBracket:C(I),paren:C(I),brace:C(I),content:j,heading:M,heading1:C(M),heading2:C(M),heading3:C(M),heading4:C(M),heading5:C(M),heading6:C(M),contentSeparator:C(j),list:C(j),quote:C(j),emphasis:C(j),strong:C(j),link:C(j),monospace:C(j),strikethrough:C(j),inserted:C(),deleted:C(),changed:C(),invalid:C(),meta:L,documentMeta:C(L),annotation:C(L),processingInstruction:C(L),definition:y.defineModifier(`definition`),constant:y.defineModifier(`constant`),function:y.defineModifier(`function`),standard:y.defineModifier(`standard`),local:y.defineModifier(`local`),special:y.defineModifier(`special`)};for(let e in R){let t=R[e];t instanceof y&&(t.name=e)}tagHighlighter([{tag:R.link,class:`tok-link`},{tag:R.heading,class:`tok-heading`},{tag:R.emphasis,class:`tok-emphasis`},{tag:R.strong,class:`tok-strong`},{tag:R.keyword,class:`tok-keyword`},{tag:R.atom,class:`tok-atom`},{tag:R.bool,class:`tok-bool`},{tag:R.url,class:`tok-url`},{tag:R.labelName,class:`tok-labelName`},{tag:R.inserted,class:`tok-inserted`},{tag:R.deleted,class:`tok-deleted`},{tag:R.literal,class:`tok-literal`},{tag:R.string,class:`tok-string`},{tag:R.number,class:`tok-number`},{tag:[R.regexp,R.escape,R.special(R.string)],class:`tok-string2`},{tag:R.variableName,class:`tok-variableName`},{tag:R.local(R.variableName),class:`tok-variableName tok-local`},{tag:R.definition(R.variableName),class:`tok-variableName tok-definition`},{tag:R.special(R.variableName),class:`tok-variableName2`},{tag:R.definition(R.propertyName),class:`tok-propertyName tok-definition`},{tag:R.typeName,class:`tok-typeName`},{tag:R.namespace,class:`tok-namespace`},{tag:R.className,class:`tok-className`},{tag:R.macroName,class:`tok-macroName`},{tag:R.propertyName,class:`tok-propertyName`},{tag:R.operator,class:`tok-operator`},{tag:R.comment,class:`tok-comment`},{tag:R.meta,class:`tok-meta`},{tag:R.invalid,class:`tok-invalid`},{tag:R.punctuation,class:`tok-punctuation`}])}));export{_,styleTags as a,t as c,a as d,i as f,h as g,l as h,z as i,c as l,Parser as m,highlightCode as n,tagHighlighter as o,NodeWeakMap as p,highlightTree as r,R as s,y as t,NodeProp as u,parseMixed as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./rolldown-runtime-B8BYMn-z.js";import{a as e,i as t,s as n}from"./dist-CHluRwHI.js";import{a as r,n as i,r as a,t as o}from"./dist-TNwbKIWT.js";import{I as s,N as c,mt as l,o as u,r as d,u as f,w as p,y as m}from"./dist-CsBP6QjA.js";r(),t();var h=1,g=2,_=3,v=4,y=5,b=36,x=37,S=38,C=11,w=13;function nameChar(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function isSpace(e){return e==9||e==10||e==13||e==32}var T=null,E=null,D=0;function tagNameAfter(e,t){let n=e.pos+t;if(E==e&&D==n)return T;for(;isSpace(e.peek(t));)t++;let r=``;for(;;){let n=e.peek(t);if(!nameChar(n))break;r+=String.fromCharCode(n),t++}return E=e,D=n,T=r||null}function ElementContext(e,t){this.name=e,this.parent=t}var O=new o({start:null,shift(e,t,n,r){return t==h?new ElementContext(tagNameAfter(r,1)||``,e):e},reduce(e,t){return t==C&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==h||i==w?new ElementContext(tagNameAfter(r,1)||``,e):e},strict:!1}),k=new i((e,t)=>{if(e.next==60){if(e.advance(),e.next==47){e.advance();let n=tagNameAfter(e,0);if(!n)return e.acceptToken(y);if(t.context&&n==t.context.name)return e.acceptToken(g);for(let r=t.context;r;r=r.parent)if(r.name==n)return e.acceptToken(_,-2);e.acceptToken(v)}else if(e.next!=33&&e.next!=63)return e.acceptToken(h)}},{contextual:!0});function scanTo(e,t){return new i(n=>{let r=0,i=t.charCodeAt(0);scan:for(;!(n.next<0);n.advance(),r++)if(n.next==i){for(let e=1;e<t.length;e++)if(n.peek(e)!=t.charCodeAt(e))continue scan;break}r&&n.acceptToken(e)})}var A=scanTo(b,`-->`),j=scanTo(x,`?>`),M=scanTo(S,`]]>`),N=e({Text:n.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":n.angleBracket,TagName:n.tagName,"MismatchedCloseTag/TagName":[n.tagName,n.invalid],AttributeName:n.attributeName,AttributeValue:n.attributeValue,Is:n.definitionOperator,"EntityReference CharacterReference":n.character,Comment:n.blockComment,ProcessingInst:n.processingInstruction,DoctypeDecl:n.documentMeta,Cdata:n.special(n.string)}),P=a.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS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bXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:`⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl`,maxTerm:50,context:O,nodeProps:[[`closedBy`,1,`SelfCloseEndTag EndTag`,13,`CloseTag MissingCloseTag`],[`openedBy`,12,`StartTag StartCloseTag`,19,`OpenTag`,20,`StartTag`],[`isolate`,-6,13,18,19,21,22,24,``]],propSources:[N],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=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osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[k,A,j,M,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function tagName(e,t){let n=t&&t.getChild(`TagName`);return n?e.sliceString(n.from,n.to):``}function elementName$1(e,t){let n=t&&t.firstChild;return!n||n.name!=`OpenTag`?``:tagName(e,n)}function attrName(e,t,n){let r=t&&t.getChildren(`Attribute`).find(e=>e.from<=n&&e.to>=n),i=r&&r.getChild(`AttributeName`);return i?e.sliceString(i.from,i.to):``}function findParentElement(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name==`Element`)return t;return null}function findLocation(e,t){let n=c(e).resolveInner(t,-1),r=null;for(let e=n;!r&&e.parent;e=e.parent)(e.name==`OpenTag`||e.name==`CloseTag`||e.name==`SelfClosingTag`||e.name==`MismatchedCloseTag`)&&(r=e);if(r&&(r.to>t||r.lastChild.type.isError)){let e=r.parent;if(n.name==`TagName`)return r.name==`CloseTag`||r.name==`MismatchedCloseTag`?{type:`closeTag`,from:n.from,context:e}:{type:`openTag`,from:n.from,context:findParentElement(e)};if(n.name==`AttributeName`)return{type:`attrName`,from:n.from,context:r};if(n.name==`AttributeValue`)return{type:`attrValue`,from:n.from,context:r};let i=n==r||n.name==`Attribute`?n.childBefore(t):n;return i?.name==`StartTag`?{type:`openTag`,from:t,context:findParentElement(e)}:i?.name==`StartCloseTag`&&i.to<=t?{type:`closeTag`,from:t,context:e}:i?.name==`Is`?{type:`attrValue`,from:t,context:r}:i?{type:`attrName`,from:t,context:r}:null}if(n.name==`StartCloseTag`)return{type:`closeTag`,from:t,context:n.parent};for(;n.parent&&n.to==t&&!n.lastChild?.type.isError;)n=n.parent;return n.name==`Element`||n.name==`Text`||n.name==`Document`?{type:`tag`,from:t,context:n.name==`Element`?n:findParentElement(n)}:null}var Element=class{constructor(e,t,n){this.attrs=t,this.attrValues=n,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:`type`},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:`<`+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:`</`+this.name+`>`,boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+`>`}),this.text=e.textContent?e.textContent.map(e=>({label:e,type:`text`})):[]}},F=/^[:\-\.\w\u00b7-\uffff]*$/;function attrCompletion(e){return Object.assign(Object.assign({type:`property`},e.completion||{}),{label:e.name})}function valueCompletion(e){return typeof e==`string`?{label:`"${e}"`,type:`constant`}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function completeFromSchema(e,t){let n=[],r=[],i=Object.create(null);for(let e of t){let t=attrCompletion(e);n.push(t),e.global&&r.push(t),e.values&&(i[e.name]=e.values.map(valueCompletion))}let a=[],o=[],s=Object.create(null);for(let t of e){let e=r,c=i;t.attributes&&(e=e.concat(t.attributes.map(e=>typeof e==`string`?n.find(t=>t.label==e)||{label:e,type:`property`}:(e.values&&(c==i&&(c=Object.create(c)),c[e.name]=e.values.map(valueCompletion)),attrCompletion(e)))));let l=new Element(t,e,c);s[l.name]=l,a.push(l),t.top&&o.push(l)}o.length||(o=a);for(let t=0;t<a.length;t++){let n=e[t],r=a[t];if(n.children)for(let e of n.children)s[e]&&r.children.push(s[e]);else r.children=a}return e=>{let{doc:t}=e.state,n=findLocation(e.state,e.pos);if(!n||n.type==`tag`&&!e.explicit)return null;let{type:c,from:l,context:u}=n;if(c==`openTag`){let e=o,n=elementName$1(t,u);return n&&(e=s[n]?.children||a),{from:l,options:e.map(e=>e.completion),validFor:F}}if(c==`closeTag`){let n=elementName$1(t,u);return n?{from:l,to:e.pos+ +(t.sliceString(e.pos,e.pos+1)==`>`),options:[s[n]?.closeNameCompletion||{label:n+`>`,type:`type`}],validFor:F}:null}if(c==`attrName`)return{from:l,options:s[tagName(t,u)]?.attrs||r,validFor:F};if(c==`attrValue`){let n=attrName(t,u,l);if(!n)return null;let r=(s[tagName(t,u)]?.attrValues||i)[n];return!r||!r.length?null:{from:l,to:e.pos+ +(t.sliceString(e.pos,e.pos+1)==`"`),options:r,validFor:/^"[^"]*"?$/}}if(c==`tag`){let n=elementName$1(t,u),r=s[n],i=[],c=u&&u.lastChild;n&&(!c||c.name!=`CloseTag`||tagName(t,c)!=n)&&i.push(r?r.closeCompletion:{label:`</`+n+`>`,type:`type`,boost:2});let d=i.concat((r?.children||(u?a:o)).map(e=>e.openCompletion));if(u&&r?.text.length){let t=u.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(d=d.concat(r.text))}return{from:l,options:d,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}var I=d.define({name:`xml`,parser:P.configure({props:[p.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),m.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),f.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/$/}});function xml(e={}){let t=[I.data.of({autocomplete:completeFromSchema(e.elements||[],e.attributes||[])})];return e.autoCloseTags!==!1&&t.push(L),new u(I,t)}function elementName(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}var L=s.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!I.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=o.doc.sliceString(t-1,t)==r,i=c(o).resolveInner(t,-1),a;if(n&&r==`>`&&i.name==`EndTag`){let n=i.parent;if(n.parent?.lastChild?.name!=`CloseTag`&&(a=elementName(o.doc,n.parent,t)))return{range:e,changes:{from:t,to:t+ +(o.doc.sliceString(t,t+1)===`>`),insert:`</${a}>`}}}else if(n&&r==`/`&&i.name==`StartCloseTag`){let e=i.parent;if(i.from==t-2&&e.lastChild?.name!=`CloseTag`&&(a=elementName(o.doc,e,t))){let e=t+ +(o.doc.sliceString(t,t+1)===`>`),n=`${a}>`;return{range:l.cursor(t+n.length,-1),changes:{from:t,to:e,insert:n}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)});export{xml};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-B8BYMn-z.js";var n=t({assign:()=>assign,bind:()=>bind,debounce:()=>debounce,ensureArray:()=>ensureArray,every:()=>every,filter:()=>filter,find:()=>find,findIndex:()=>findIndex,flatten:()=>flatten,forEach:()=>forEach,get:()=>get,groupBy:()=>groupBy,has:()=>has,isArray:()=>isArray,isDefined:()=>isDefined,isFunction:()=>isFunction,isNil:()=>isNil,isNumber:()=>isNumber,isObject:()=>isObject,isString:()=>isString,isUndefined:()=>isUndefined,keys:()=>keys,map:()=>map,matchPattern:()=>matchPattern,merge:()=>merge,omit:()=>omit,pick:()=>pick,reduce:()=>reduce,set:()=>set,size:()=>size,some:()=>some,sortBy:()=>sortBy,throttle:()=>throttle,unionBy:()=>a,uniqueBy:()=>uniqueBy,values:()=>values,without:()=>without});function flatten(e){return Array.prototype.concat.apply([],e)}function isUndefined(e){return e===void 0}function isDefined(e){return e!==void 0}function isNil(e){return e==null}function isArray(e){return r.call(e)===`[object Array]`}function isObject(e){return r.call(e)===`[object Object]`}function isNumber(e){return r.call(e)===`[object Number]`}function isFunction(e){let t=r.call(e);return t===`[object Function]`||t===`[object AsyncFunction]`||t===`[object GeneratorFunction]`||t===`[object AsyncGeneratorFunction]`||t===`[object Proxy]`}function isString(e){return r.call(e)===`[object String]`}function ensureArray(e){if(!isArray(e))throw Error(`must supply array`)}function has(e,t){return!isNil(e)&&i.call(e,t)}function find(e,t){let n=toMatcher(t),r;return forEach(e,function(e,t){if(n(e,t))return r=e,!1}),r}function findIndex(e,t){let n=toMatcher(t),r=isArray(e)?-1:void 0;return forEach(e,function(e,t){if(n(e,t))return r=t,!1}),r}function filter(e,t){let n=toMatcher(t),r=[];return forEach(e,function(e,t){n(e,t)&&r.push(e)}),r}function forEach(e,t){let n,r;if(isUndefined(e))return;let i=isArray(e)?toNum:identity;for(let a in e)if(has(e,a)&&(n=e[a],r=t(n,i(a)),r===!1))return n}function without(e,t){if(isUndefined(e))return[];ensureArray(e);let n=toMatcher(t);return e.filter(function(e,t){return!n(e,t)})}function reduce(e,t,n){return forEach(e,function(e,r){n=t(n,e,r)}),n}function every(e,t){return!!reduce(e,function(e,n,r){return e&&t(n,r)},!0)}function some(e,t){return!!find(e,t)}function map(e,t){let n=[];return forEach(e,function(e,r){n.push(t(e,r))}),n}function keys(e){return e&&Object.keys(e)||[]}function size(e){return keys(e).length}function values(e){return map(e,e=>e)}function groupBy(e,t,n={}){return t=toExtractor(t),forEach(e,function(e){let r=t(e)||`_`,i=n[r];i||=n[r]=[],i.push(e)}),n}function uniqueBy(e,...t){e=toExtractor(e);let n={};return forEach(t,t=>groupBy(t,e,n)),map(n,function(e,t){return e[0]})}function sortBy(e,t){t=toExtractor(t);let n=[];return forEach(e,function(e,r){let i=t(e,r),a={d:i,v:e};for(var o=0;o<n.length;o++){let{d:e}=n[o];if(i<e){n.splice(o,0,a);return}}n.push(a)}),map(n,e=>e.v)}function matchPattern(e){return function(t){return every(e,function(e,n){return t[n]===e})}}function toExtractor(e){return isFunction(e)?e:t=>t[e]}function toMatcher(e){return isFunction(e)?e:t=>t===e}function identity(e){return e}function toNum(e){return Number(e)}function debounce(e,t){let n,r,i,a;function fire(n){let o=Date.now(),s=n?0:a+t-o;if(s>0)return schedule(s);e.apply(i,r),clear()}function schedule(e){n=setTimeout(fire,e)}function clear(){n&&clearTimeout(n),n=a=r=i=void 0}function flush(){n&&fire(!0),clear()}function callback(...e){a=Date.now(),r=e,i=this,n||schedule(t)}return callback.flush=flush,callback.cancel=clear,callback}function throttle(e,t){let n=!1;return function(...r){n||(e(...r),n=!0,setTimeout(()=>{n=!1},t))}}function bind(e,t){return e.bind(t)}function assign(e,...t){return Object.assign(e,...t)}function set(e,t,n){let r=e;return forEach(t,function(e,i){if(typeof e!=`number`&&typeof e!=`string`)throw Error(`illegal key type: `+typeof e+`. Key should be of type number or string.`);if(e===`constructor`)throw Error(`illegal key: constructor`);if(e===`__proto__`)throw Error(`illegal key: __proto__`);let a=t[i+1],o=r[e];isDefined(a)&&isNil(o)&&(o=r[e]=isNaN(+a)?{}:[]),isUndefined(a)?isUndefined(n)?delete r[e]:r[e]=n:r=o}),e}function get(e,t,n){let r=e;return forEach(t,function(e){if(isNil(r))return r=void 0,!1;r=r[e]}),isUndefined(r)?n:r}function pick(e,t){let n={},r=Object(e);return forEach(t,function(t){t in r&&(n[t]=e[t])}),n}function omit(e,t){let n={};return forEach(Object(e),function(e,r){t.indexOf(r)===-1&&(n[r]=e)}),n}function merge(e,...t){return t.length&&forEach(t,function(t){t&&isObject(t)&&forEach(t,function(t,n){if(n===`__proto__`)return;let r=e[n];isObject(t)?(isObject(r)||(r={}),e[n]=merge(r,t)):e[n]=t})}),e}var r,i,a,o=e((()=>{r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=uniqueBy}));export{set as A,keys as C,omit as D,merge as E,a as F,uniqueBy as I,values as L,some as M,sortBy as N,pick as O,throttle as P,without as R,isUndefined as S,matchPattern as T,isFunction as _,every as a,isObject as b,findIndex as c,get as d,groupBy as f,isDefined as g,isArray as h,n as i,size as j,reduce as k,flatten as l,o as m,bind as n,filter as o,has as p,debounce as r,find as s,assign as t,forEach as u,isNil as v,map as w,isString as x,isNumber as y};
|