@datawhale/prosemirror-render 0.0.7 → 0.0.9

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.
Files changed (47) hide show
  1. package/dist/{AttachmentBlock-CTvDbAcS.js → AttachmentBlock-C4Swmd2b.js} +2 -2
  2. package/dist/{AttachmentBlock-P1jG1cGY.cjs → AttachmentBlock-CiL-Qygv.cjs} +1 -1
  3. package/dist/{AttachmentInline-B7Cj5QJ0.js → AttachmentInline-BU5AUs28.js} +2 -2
  4. package/dist/{AttachmentInline-Cr4Zec57.cjs → AttachmentInline-DLTAOygO.cjs} +1 -1
  5. package/dist/{AttachmentMenu-CM2tOV0z.js → AttachmentMenu-DLlR5CXP.js} +1 -1
  6. package/dist/{AttachmentMenu-ChIj7hE3.cjs → AttachmentMenu-DiZhh_3u.cjs} +1 -1
  7. package/dist/{Callout-DazLxdGD.cjs → Callout-D7puQgnx.cjs} +1 -1
  8. package/dist/{Callout-Def3dYjo.js → Callout-DbKFrj5N.js} +1 -1
  9. package/dist/{CellOutput-B26_5ev3.cjs → CellOutput-C1rqdLdu.cjs} +1 -1
  10. package/dist/{CellOutput-Dbg8ZL0H.js → CellOutput-EzCS35bu.js} +1 -1
  11. package/dist/{CodeBlock-D8In7xR8.cjs → CodeBlock-SLlc17jY.cjs} +1 -1
  12. package/dist/{CodeBlock-BsqBkTD3.js → CodeBlock-XUiYN99W.js} +1 -1
  13. package/dist/{FoldBlock-BuwPwAaK.cjs → FoldBlock-D9f0newS.cjs} +1 -1
  14. package/dist/{FoldBlock-B_C9Qoy9.js → FoldBlock-HqRqlt3p.js} +1 -1
  15. package/dist/{Grid-B79na0-H.js → Grid-DJCw7wkB.js} +1 -1
  16. package/dist/{Grid-DvLYfpeG.cjs → Grid-cLwFeDko.cjs} +1 -1
  17. package/dist/{IFrame-ChfURc_t.cjs → IFrame-CQqNUygF.cjs} +1 -1
  18. package/dist/{IFrame-BXfWlAkB.js → IFrame-CreFeGw0.js} +1 -1
  19. package/dist/{Image-RwlDCWBT.js → Image-B4Qy6xlu.js} +1 -1
  20. package/dist/{Image-BAy3DLIi.cjs → Image-DXcI8Q6W.cjs} +1 -1
  21. package/dist/{MathDisplay-fiHorxPn.js → MathDisplay-C1YaBdrr.js} +1 -1
  22. package/dist/{MathDisplay-C0esLx5a.cjs → MathDisplay-gzdi6eYn.cjs} +1 -1
  23. package/dist/{MathInline-gFzVPQ0D.js → MathInline-CHMg8M3j.js} +1 -1
  24. package/dist/{MathInline-CnkNthuZ.cjs → MathInline-Dog67RDU.cjs} +1 -1
  25. package/dist/{McChoices-BDsJqV2C.cjs → McChoices-C3ry5JEW.cjs} +1 -1
  26. package/dist/{McChoices-DDKPec4G.js → McChoices-LBSYtxIG.js} +1 -1
  27. package/dist/{McQuestion-1efXXh4O.js → McQuestion-BAxgspnR.js} +1 -1
  28. package/dist/{McQuestion-CChLZMYt.cjs → McQuestion-DNZ1Cg8x.cjs} +1 -1
  29. package/dist/{McSolution-XXRJWaYt.js → McSolution-B8Ir0TDg.js} +1 -1
  30. package/dist/{McSolution-5feP69N7.cjs → McSolution-Bd70JP5F.cjs} +1 -1
  31. package/dist/{MultipleChoice-DT_c5R8o.js → MultipleChoice-bj3npcmx.js} +4 -4
  32. package/dist/{MultipleChoice-CQ9cbLUg.cjs → MultipleChoice-mDLIyHfi.cjs} +1 -1
  33. package/dist/{Paragraph-nAepKpbl.cjs → Paragraph-Bx8A4csJ.cjs} +1 -1
  34. package/dist/{Paragraph-CWn5tuOy.js → Paragraph-HLV7U0CS.js} +1 -1
  35. package/dist/{SlotNode-DqwL4TkF.cjs → SlotNode-C_X3NC06.cjs} +1 -1
  36. package/dist/{SlotNode-BhXyQCzg.js → SlotNode-CtJD0kba.js} +1 -1
  37. package/dist/{Text-CS6RYM2H.cjs → Text-C_OxsnsP.cjs} +1 -1
  38. package/dist/{Text-Nb_IXPkh.js → Text-DZM1Me1W.js} +1 -1
  39. package/dist/index-B4Ca4BP0.cjs +1 -0
  40. package/dist/{index-CTcnNF6r.js → index-DZ9p1utK.js} +68 -51
  41. package/dist/index.cjs.js +1 -1
  42. package/dist/index.es.js +3 -2
  43. package/dist/types/components/collections/utils.d.ts +3 -1
  44. package/dist/types/components/index.d.ts +1 -1
  45. package/dist/types/index.d.ts +2 -1
  46. package/package.json +2 -2
  47. package/dist/index-kIuhy4WL.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("vue"),Mn=require("./index-kIuhy4WL.cjs"),Ka={},Ja={"enable-background":"new 0 0 32 32",height:"32px",version:"1.1",viewBox:"0 0 32 32",width:"32px","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function Qa(n,e){return T.openBlock(),T.createElementBlock("svg",Ja,[...e[0]||(e[0]=[T.createStaticVNode('<g id="Approved"><g><path d="M16,1C7.729,1,1,7.729,1,16s6.729,15,15,15s15-6.729,15-15S24.271,1,16,1z M16,29C8.832,29,3,23.168,3,16S8.832,3,16,3 s13,5.832,13,13S23.168,29,16,29z"></path><path d="M23.317,10.27l-10.004,9.36l-4.629-4.332c-0.403-0.377-1.035-0.356-1.413,0.047c-0.377,0.403-0.356,1.036,0.047,1.413 l5.313,4.971c0.192,0.18,0.438,0.27,0.683,0.27s0.491-0.09,0.683-0.27l10.688-10c0.403-0.377,0.424-1.01,0.047-1.413 C24.353,9.913,23.719,9.892,23.317,10.27z"></path></g></g><g id="Approved_1_"></g><g id="File_Approve"></g><g id="Folder_Approved"></g><g id="Security_Approved"></g><g id="Certificate_Approved"></g><g id="User_Approved"></g><g id="ID_Card_Approved"></g><g id="Android_Approved"></g><g id="Privacy_Approved"></g><g id="Approved_2_"></g><g id="Message_Approved"></g><g id="Upload_Approved"></g><g id="Download_Approved"></g><g id="Email_Approved"></g><g id="Data_Approved"></g>',16)])])}const er=Mn._export_sfc(Ka,[["render",Qa]]),nr={},tr={height:"48",viewBox:"0 0 48 48",width:"48",xmlns:"http://www.w3.org/2000/svg"};function ar(n,e){return T.openBlock(),T.createElementBlock("svg",tr,[...e[0]||(e[0]=[T.createElementVNode("path",{d:"M0 0h48v48h-48z",fill:"none"},null,-1),T.createElementVNode("path",{d:"M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"},null,-1)])])}const rr=Mn._export_sfc(nr,[["render",ar]]);let oe=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ir(n){return On(n)}function On(n){return Array.isArray(n)?or(n):n instanceof RegExp?n:typeof n=="object"?sr(n):n}function or(n){let e=[];for(let t=0,a=n.length;t<a;t++)e[t]=On(n[t]);return e}function sr(n){let e={};for(let t in n)e[t]=On(n[t]);return e}function Mt(n,...e){return e.forEach(t=>{for(let a in t)n[a]=t[a]}),n}function Ot(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Ot(n.substring(0,n.length-1)):n.substr(~e+1)}var on=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ie=class{static hasCaptures(n){return n===null?!1:(on.lastIndex=0,on.test(n))}static replaceCaptures(n,e,t){return n.replace(on,(a,r,i,o)=>{let s=t[parseInt(r||i,10)];if(s){let c=e.substring(s.start,s.end);for(;c[0]===".";)c=c.substring(1);switch(o){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return a})}};function Bt(n,e){return n<e?-1:n>e?1:0}function jt(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,a=e.length;if(t===a){for(let r=0;r<t;r++){let i=Bt(n[r],e[r]);if(i!==0)return i}return 0}return t-a}function nt(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function Dt(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Ut=class{constructor(n){this.fn=n}cache=new Map;get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},Me=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t}static createFromRawTheme(n,e){return this.createFromParsedTheme(ur(n),e)}static createFromParsedTheme(n,e){return pr(n,e)}_cachedMatchRoot=new Ut(n=>this._root.match(n));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,a=this._cachedMatchRoot.get(e).find(r=>cr(n.parent,r.parentScopes));return a?new zt(a.fontStyle,a.foreground,a.background):null}},sn=class Pe{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const a of t)e=new Pe(e,a);return e}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new Pe(t,e[a]);return t}push(e){return new Pe(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let a=this;for(;a&&a!==e;)t.push(a.scopeName),a=a.parent;return a===e?t.reverse():void 0}};function cr(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let a=e[t],r=!1;if(a===">"){if(t===e.length-1)return!1;a=e[++t],r=!0}for(;n&&!lr(n.scopeName,a);){if(r)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function lr(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var zt=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function ur(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],a=0;for(let r=0,i=e.length;r<i;r++){let o=e[r];if(!o.settings)continue;let s;if(typeof o.scope=="string"){let d=o.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),s=d.split(",")}else Array.isArray(o.scope)?s=o.scope:s=[""];let c=-1;if(typeof o.settings.fontStyle=="string"){c=0;let d=o.settings.fontStyle.split(" ");for(let g=0,p=d.length;g<p;g++)switch(d[g]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let l=null;typeof o.settings.foreground=="string"&&nt(o.settings.foreground)&&(l=o.settings.foreground);let u=null;typeof o.settings.background=="string"&&nt(o.settings.background)&&(u=o.settings.background);for(let d=0,g=s.length;d<g;d++){let m=s[d].trim().split(" "),w=m[m.length-1],_=null;m.length>1&&(_=m.slice(0,m.length-1),_.reverse()),t[a++]=new dr(w,_,r,c,l,u)}}return t}var dr=class{constructor(n,e,t,a,r,i){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=a,this.foreground=r,this.background=i}},J=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(J||{});function pr(n,e){n.sort((c,l)=>{let u=Bt(c.scope,l.scope);return u!==0||(u=jt(c.parentScopes,l.parentScopes),u!==0)?u:c.index-l.index});let t=0,a="#000000",r="#ffffff";for(;n.length>=1&&n[0].scope==="";){let c=n.shift();c.fontStyle!==-1&&(t=c.fontStyle),c.foreground!==null&&(a=c.foreground),c.background!==null&&(r=c.background)}let i=new mr(e),o=new zt(t,i.getId(a),i.getId(r)),s=new hr(new wn(0,null,-1,0,0),[]);for(let c=0,l=n.length;c<l;c++){let u=n[c];s.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new Me(i,o,s)}var mr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},gr=Object.freeze([]),wn=class Wt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,a,r,i){this.scopeDepth=e,this.parentScopes=t||gr,this.fontStyle=a,this.foreground=r,this.background=i}clone(){return new Wt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,r=e.length;a<r;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),a!==0&&(this.foreground=a),r!==0&&(this.background=r)}},hr=class Cn{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let a=0,r=0;for(;e.parentScopes[a]===">"&&a++,t.parentScopes[r]===">"&&r++,!(a>=e.parentScopes.length||r>=t.parentScopes.length);){const i=t.parentScopes[r].length-e.parentScopes[a].length;if(i!==0)return i;a++,r++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let a=e.indexOf("."),r,i;if(a===-1?(r=e,i=""):(r=e.substring(0,a),i=e.substring(a+1)),this._children.hasOwnProperty(r))return this._children[r].match(i)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Cn._cmpBySpecificity),t}insert(e,t,a,r,i,o){if(t===""){this._doInsertHere(e,a,r,i,o);return}let s=t.indexOf("."),c,l;s===-1?(c=t,l=""):(c=t.substring(0,s),l=t.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new Cn(this._mainRule.clone(),wn.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(e+1,l,a,r,i,o)}_doInsertHere(e,t,a,r,i){if(t===null){this._mainRule.acceptOverwrite(e,a,r,i);return}for(let o=0,s=this._rulesWithParentScopes.length;o<s;o++){let c=this._rulesWithParentScopes[o];if(jt(c.parentScopes,t)===0){c.acceptOverwrite(e,a,r,i);return}}a===-1&&(a=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new wn(e,t,a,r,i))}},he=class U{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=U.getLanguageId(e),a=U.getTokenType(e),r=U.getFontStyle(e),i=U.getForeground(e),o=U.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:r,foreground:i,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,a,r,i,o,s){let c=U.getLanguageId(e),l=U.getTokenType(e),u=U.containsBalancedBrackets(e)?1:0,d=U.getFontStyle(e),g=U.getForeground(e),p=U.getBackground(e);return t!==0&&(c=t),a!==8&&(l=a),r!==null&&(u=r?1:0),i!==-1&&(d=i),o!==0&&(g=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|g<<15|p<<24)>>>0}};function Oe(n,e){const t=[],a=fr(n);let r=a.next();for(;r!==null;){let c=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=a.next()}let l=o();if(t.push({matcher:l,priority:c}),r!==",")break;r=a.next()}return t;function i(){if(r==="-"){r=a.next();const c=i();return l=>!!c&&!c(l)}if(r==="("){r=a.next();const c=s();return r===")"&&(r=a.next()),c}if(tt(r)){const c=[];do c.push(r),r=a.next();while(tt(r));return l=>e(c,l)}return null}function o(){const c=[];let l=i();for(;l;)c.push(l),l=i();return u=>c.every(d=>d(u))}function s(){const c=[];let l=o();for(;l&&(c.push(l),r==="|"||r===",");){do r=a.next();while(r==="|"||r===",");l=o()}return u=>c.some(d=>d(u))}}function tt(n){return!!n&&!!n.match(/[\w\.:]+/)}function fr(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const a=t[0];return t=e.exec(n),a}}}function Ht(n){typeof n.dispose=="function"&&n.dispose()}var Ce=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},_r=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},br=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},kr=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ce(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const n=this.Q;this.Q=[];const e=new br;for(const t of n)yr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Ce){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function yr(n,e,t,a){const r=t.lookup(n.scopeName);if(!r){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const i=t.lookup(e);n instanceof Ce?qe({baseGrammar:i,selfGrammar:r},a):xn(n.ruleName,{baseGrammar:i,selfGrammar:r,repository:r.repository},a);const o=t.injections(n.scopeName);if(o)for(const s of o)a.add(new Ce(s))}function xn(n,e,t){if(e.repository&&e.repository[n]){const a=e.repository[n];Be([a],e,t)}}function qe(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&Be(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&Be(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function Be(n,e,t){for(const a of n){if(t.visitedRule.has(a))continue;t.visitedRule.add(a);const r=a.repository?Mt({},e.repository,a.repository):e.repository;Array.isArray(a.patterns)&&Be(a.patterns,{...e,repository:r},t);const i=a.include;if(!i)continue;const o=Zt(i);switch(o.kind){case 0:qe({...e,selfGrammar:e.baseGrammar},t);break;case 1:qe(e,t);break;case 2:xn(o.ruleName,{...e,repository:r},t);break;case 3:case 4:const s=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(s){const c={baseGrammar:e.baseGrammar,selfGrammar:s,repository:r};o.kind===4?xn(o.ruleName,c,t):qe(c,t)}else o.kind===4?t.add(new _r(o.scopeName,o.ruleName)):t.add(new Ce(o.scopeName));break}}}var wr=class{kind=0},Cr=class{kind=1},xr=class{constructor(n){this.ruleName=n}kind=2},vr=class{constructor(n){this.scopeName=n}kind=3},Sr=class{constructor(n,e){this.scopeName=n,this.ruleName=e}kind=4};function Zt(n){if(n==="$base")return new wr;if(n==="$self")return new Cr;const e=n.indexOf("#");if(e===-1)return new vr(n);if(e===0)return new xr(n.substring(1));{const t=n.substring(0,e),a=n.substring(e+1);return new Sr(t,a)}}var Ar=/\\(\d+)/,at=/\\(\d+)/g,$r=-1,Xt=-2;var $e=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(n,e,t,a){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=Ie.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=Ie.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Ot(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:Ie.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ie.replaceCaptures(this._contentName,n,e)}},Er=class extends $e{retokenizeCapturedWithRuleId;constructor(n,e,t,a,r){super(n,e,t,a),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,a){throw new Error("Not supported!")}},Nr=class extends $e{_match;captures;_cachedCompiledPatterns;constructor(n,e,t,a,r){super(n,e,t,null),this._match=new xe(a,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,a){return this._getCachedCompiledPatterns(n).compileAG(n,t,a)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends $e{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,a,r){super(n,e,t,a),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,a){return this._getCachedCompiledPatterns(n).compileAG(n,t,a)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vn=class extends $e{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,a,r,i,o,s,c,l){super(n,e,t,a),this._begin=new xe(r,this.id),this.beginCaptures=i,this._end=new xe(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,a){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,a)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},je=class extends $e{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(n,e,t,a,r,i,o,s,c){super(n,e,t,a),this._begin=new xe(r,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=new xe(o,Xt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,a){return this._getCachedCompiledPatterns(n).compileAG(n,t,a)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,a){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,a)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ve,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Vt=class q{static createCaptureRule(e,t,a,r,i){return e.registerRule(o=>new Er(t,o,a,r,i))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule(r=>{if(e.id=r,e.match)return new Nr(e.$vscodeTextmateLocation,e.id,e.name,e.match,q._compileCaptures(e.captures,t,a));if(typeof e.begin>"u"){e.repository&&(a=Mt({},a,e.repository));let i=e.patterns;return typeof i>"u"&&e.include&&(i=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,q._compilePatterns(i,t,a))}return e.while?new je(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,q._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,q._compileCaptures(e.whileCaptures||e.captures,t,a),q._compilePatterns(e.patterns,t,a)):new vn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,q._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,q._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,q._compilePatterns(e.patterns,t,a))}),e.id}static _compileCaptures(e,t,a){let r=[];if(e){let i=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const s=parseInt(o,10);s>i&&(i=s)}for(let o=0;o<=i;o++)r[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const s=parseInt(o,10);let c=0;e[o].patterns&&(c=q.getCompiledRuleId(e[o],t,a)),r[s]=q.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,c)}}return r}static _compilePatterns(e,t,a){let r=[];if(e)for(let i=0,o=e.length;i<o;i++){const s=e[i];let c=-1;if(s.include){const l=Zt(s.include);switch(l.kind){case 0:case 1:c=q.getCompiledRuleId(a[s.include],t,a);break;case 2:let u=a[l.ruleName];u&&(c=q.getCompiledRuleId(u,t,a));break;case 3:case 4:const d=l.scopeName,g=l.kind===4?l.ruleName:null,p=t.getExternalGrammar(d,a);if(p)if(g){let m=p.repository[g];m&&(c=q.getCompiledRuleId(m,t,p.repository))}else c=q.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else c=q.getCompiledRuleId(s,t,a);if(c!==-1){const l=t.getRule(c);let u=!1;if((l instanceof rt||l instanceof vn||l instanceof je)&&l.hasMissingPatterns&&l.patterns.length===0&&(u=!0),u)continue;r.push(c)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}},xe=class Yt{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const a=e.length;let r=0,i=[],o=!1;for(let s=0;s<a;s++)if(e.charAt(s)==="\\"&&s+1<a){const l=e.charAt(s+1);l==="z"?(i.push(e.substring(r,s)),i.push("$(?!\\n)(?<!\\n)"),r=s+2):(l==="A"||l==="G")&&(o=!0),s++}this.hasAnchor=o,r===0?this.source=e:(i.push(e.substring(r,a)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Ar.test(this.source):this.hasBackReferences=!1}clone(){return new Yt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let a=t.map(r=>e.substring(r.start,r.end));return at.lastIndex=0,this.source.replace(at,(r,i)=>Dt(a[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],a=[],r=[],i,o,s,c;for(i=0,o=this.source.length;i<o;i++)s=this.source.charAt(i),e[i]=s,t[i]=s,a[i]=s,r[i]=s,s==="\\"&&i+1<o&&(c=this.source.charAt(i+1),c==="A"?(e[i+1]="￿",t[i+1]="￿",a[i+1]="A",r[i+1]="A"):c==="G"?(e[i+1]="￿",t[i+1]="G",a[i+1]="￿",r[i+1]="G"):(e[i+1]=c,t[i+1]=c,a[i+1]=c,r[i+1]=c),i++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:a.join(""),A1_G1:r.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ve=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let a=this._items.map(r=>r.resolveAnchors(e,t));return new it(n,a,this._items.map(r=>r.ruleId))}},it=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("vue"),Mn=require("./index-B4Ca4BP0.cjs"),Ka={},Ja={"enable-background":"new 0 0 32 32",height:"32px",version:"1.1",viewBox:"0 0 32 32",width:"32px","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function Qa(n,e){return T.openBlock(),T.createElementBlock("svg",Ja,[...e[0]||(e[0]=[T.createStaticVNode('<g id="Approved"><g><path d="M16,1C7.729,1,1,7.729,1,16s6.729,15,15,15s15-6.729,15-15S24.271,1,16,1z M16,29C8.832,29,3,23.168,3,16S8.832,3,16,3 s13,5.832,13,13S23.168,29,16,29z"></path><path d="M23.317,10.27l-10.004,9.36l-4.629-4.332c-0.403-0.377-1.035-0.356-1.413,0.047c-0.377,0.403-0.356,1.036,0.047,1.413 l5.313,4.971c0.192,0.18,0.438,0.27,0.683,0.27s0.491-0.09,0.683-0.27l10.688-10c0.403-0.377,0.424-1.01,0.047-1.413 C24.353,9.913,23.719,9.892,23.317,10.27z"></path></g></g><g id="Approved_1_"></g><g id="File_Approve"></g><g id="Folder_Approved"></g><g id="Security_Approved"></g><g id="Certificate_Approved"></g><g id="User_Approved"></g><g id="ID_Card_Approved"></g><g id="Android_Approved"></g><g id="Privacy_Approved"></g><g id="Approved_2_"></g><g id="Message_Approved"></g><g id="Upload_Approved"></g><g id="Download_Approved"></g><g id="Email_Approved"></g><g id="Data_Approved"></g>',16)])])}const er=Mn._export_sfc(Ka,[["render",Qa]]),nr={},tr={height:"48",viewBox:"0 0 48 48",width:"48",xmlns:"http://www.w3.org/2000/svg"};function ar(n,e){return T.openBlock(),T.createElementBlock("svg",tr,[...e[0]||(e[0]=[T.createElementVNode("path",{d:"M0 0h48v48h-48z",fill:"none"},null,-1),T.createElementVNode("path",{d:"M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"},null,-1)])])}const rr=Mn._export_sfc(nr,[["render",ar]]);let oe=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ir(n){return On(n)}function On(n){return Array.isArray(n)?or(n):n instanceof RegExp?n:typeof n=="object"?sr(n):n}function or(n){let e=[];for(let t=0,a=n.length;t<a;t++)e[t]=On(n[t]);return e}function sr(n){let e={};for(let t in n)e[t]=On(n[t]);return e}function Mt(n,...e){return e.forEach(t=>{for(let a in t)n[a]=t[a]}),n}function Ot(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Ot(n.substring(0,n.length-1)):n.substr(~e+1)}var on=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ie=class{static hasCaptures(n){return n===null?!1:(on.lastIndex=0,on.test(n))}static replaceCaptures(n,e,t){return n.replace(on,(a,r,i,o)=>{let s=t[parseInt(r||i,10)];if(s){let c=e.substring(s.start,s.end);for(;c[0]===".";)c=c.substring(1);switch(o){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return a})}};function Bt(n,e){return n<e?-1:n>e?1:0}function jt(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,a=e.length;if(t===a){for(let r=0;r<t;r++){let i=Bt(n[r],e[r]);if(i!==0)return i}return 0}return t-a}function nt(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function Dt(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Ut=class{constructor(n){this.fn=n}cache=new Map;get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},Me=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t}static createFromRawTheme(n,e){return this.createFromParsedTheme(ur(n),e)}static createFromParsedTheme(n,e){return pr(n,e)}_cachedMatchRoot=new Ut(n=>this._root.match(n));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,a=this._cachedMatchRoot.get(e).find(r=>cr(n.parent,r.parentScopes));return a?new zt(a.fontStyle,a.foreground,a.background):null}},sn=class Pe{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const a of t)e=new Pe(e,a);return e}static from(...e){let t=null;for(let a=0;a<e.length;a++)t=new Pe(t,e[a]);return t}push(e){return new Pe(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let a=this;for(;a&&a!==e;)t.push(a.scopeName),a=a.parent;return a===e?t.reverse():void 0}};function cr(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let a=e[t],r=!1;if(a===">"){if(t===e.length-1)return!1;a=e[++t],r=!0}for(;n&&!lr(n.scopeName,a);){if(r)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function lr(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var zt=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function ur(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],a=0;for(let r=0,i=e.length;r<i;r++){let o=e[r];if(!o.settings)continue;let s;if(typeof o.scope=="string"){let d=o.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),s=d.split(",")}else Array.isArray(o.scope)?s=o.scope:s=[""];let c=-1;if(typeof o.settings.fontStyle=="string"){c=0;let d=o.settings.fontStyle.split(" ");for(let g=0,p=d.length;g<p;g++)switch(d[g]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let l=null;typeof o.settings.foreground=="string"&&nt(o.settings.foreground)&&(l=o.settings.foreground);let u=null;typeof o.settings.background=="string"&&nt(o.settings.background)&&(u=o.settings.background);for(let d=0,g=s.length;d<g;d++){let m=s[d].trim().split(" "),w=m[m.length-1],_=null;m.length>1&&(_=m.slice(0,m.length-1),_.reverse()),t[a++]=new dr(w,_,r,c,l,u)}}return t}var dr=class{constructor(n,e,t,a,r,i){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=a,this.foreground=r,this.background=i}},J=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(J||{});function pr(n,e){n.sort((c,l)=>{let u=Bt(c.scope,l.scope);return u!==0||(u=jt(c.parentScopes,l.parentScopes),u!==0)?u:c.index-l.index});let t=0,a="#000000",r="#ffffff";for(;n.length>=1&&n[0].scope==="";){let c=n.shift();c.fontStyle!==-1&&(t=c.fontStyle),c.foreground!==null&&(a=c.foreground),c.background!==null&&(r=c.background)}let i=new mr(e),o=new zt(t,i.getId(a),i.getId(r)),s=new hr(new wn(0,null,-1,0,0),[]);for(let c=0,l=n.length;c<l;c++){let u=n[c];s.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new Me(i,o,s)}var mr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},gr=Object.freeze([]),wn=class Wt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,a,r,i){this.scopeDepth=e,this.parentScopes=t||gr,this.fontStyle=a,this.foreground=r,this.background=i}clone(){return new Wt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let a=0,r=e.length;a<r;a++)t[a]=e[a].clone();return t}acceptOverwrite(e,t,a,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),a!==0&&(this.foreground=a),r!==0&&(this.background=r)}},hr=class Cn{constructor(e,t=[],a={}){this._mainRule=e,this._children=a,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let a=0,r=0;for(;e.parentScopes[a]===">"&&a++,t.parentScopes[r]===">"&&r++,!(a>=e.parentScopes.length||r>=t.parentScopes.length);){const i=t.parentScopes[r].length-e.parentScopes[a].length;if(i!==0)return i;a++,r++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let a=e.indexOf("."),r,i;if(a===-1?(r=e,i=""):(r=e.substring(0,a),i=e.substring(a+1)),this._children.hasOwnProperty(r))return this._children[r].match(i)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Cn._cmpBySpecificity),t}insert(e,t,a,r,i,o){if(t===""){this._doInsertHere(e,a,r,i,o);return}let s=t.indexOf("."),c,l;s===-1?(c=t,l=""):(c=t.substring(0,s),l=t.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new Cn(this._mainRule.clone(),wn.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(e+1,l,a,r,i,o)}_doInsertHere(e,t,a,r,i){if(t===null){this._mainRule.acceptOverwrite(e,a,r,i);return}for(let o=0,s=this._rulesWithParentScopes.length;o<s;o++){let c=this._rulesWithParentScopes[o];if(jt(c.parentScopes,t)===0){c.acceptOverwrite(e,a,r,i);return}}a===-1&&(a=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new wn(e,t,a,r,i))}},he=class U{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=U.getLanguageId(e),a=U.getTokenType(e),r=U.getFontStyle(e),i=U.getForeground(e),o=U.getBackground(e);console.log({languageId:t,tokenType:a,fontStyle:r,foreground:i,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,a,r,i,o,s){let c=U.getLanguageId(e),l=U.getTokenType(e),u=U.containsBalancedBrackets(e)?1:0,d=U.getFontStyle(e),g=U.getForeground(e),p=U.getBackground(e);return t!==0&&(c=t),a!==8&&(l=a),r!==null&&(u=r?1:0),i!==-1&&(d=i),o!==0&&(g=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|g<<15|p<<24)>>>0}};function Oe(n,e){const t=[],a=fr(n);let r=a.next();for(;r!==null;){let c=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=a.next()}let l=o();if(t.push({matcher:l,priority:c}),r!==",")break;r=a.next()}return t;function i(){if(r==="-"){r=a.next();const c=i();return l=>!!c&&!c(l)}if(r==="("){r=a.next();const c=s();return r===")"&&(r=a.next()),c}if(tt(r)){const c=[];do c.push(r),r=a.next();while(tt(r));return l=>e(c,l)}return null}function o(){const c=[];let l=i();for(;l;)c.push(l),l=i();return u=>c.every(d=>d(u))}function s(){const c=[];let l=o();for(;l&&(c.push(l),r==="|"||r===",");){do r=a.next();while(r==="|"||r===",");l=o()}return u=>c.some(d=>d(u))}}function tt(n){return!!n&&!!n.match(/[\w\.:]+/)}function fr(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const a=t[0];return t=e.exec(n),a}}}function Ht(n){typeof n.dispose=="function"&&n.dispose()}var Ce=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},_r=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},br=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},kr=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ce(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const n=this.Q;this.Q=[];const e=new br;for(const t of n)yr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Ce){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function yr(n,e,t,a){const r=t.lookup(n.scopeName);if(!r){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const i=t.lookup(e);n instanceof Ce?qe({baseGrammar:i,selfGrammar:r},a):xn(n.ruleName,{baseGrammar:i,selfGrammar:r,repository:r.repository},a);const o=t.injections(n.scopeName);if(o)for(const s of o)a.add(new Ce(s))}function xn(n,e,t){if(e.repository&&e.repository[n]){const a=e.repository[n];Be([a],e,t)}}function qe(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&Be(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&Be(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function Be(n,e,t){for(const a of n){if(t.visitedRule.has(a))continue;t.visitedRule.add(a);const r=a.repository?Mt({},e.repository,a.repository):e.repository;Array.isArray(a.patterns)&&Be(a.patterns,{...e,repository:r},t);const i=a.include;if(!i)continue;const o=Zt(i);switch(o.kind){case 0:qe({...e,selfGrammar:e.baseGrammar},t);break;case 1:qe(e,t);break;case 2:xn(o.ruleName,{...e,repository:r},t);break;case 3:case 4:const s=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(s){const c={baseGrammar:e.baseGrammar,selfGrammar:s,repository:r};o.kind===4?xn(o.ruleName,c,t):qe(c,t)}else o.kind===4?t.add(new _r(o.scopeName,o.ruleName)):t.add(new Ce(o.scopeName));break}}}var wr=class{kind=0},Cr=class{kind=1},xr=class{constructor(n){this.ruleName=n}kind=2},vr=class{constructor(n){this.scopeName=n}kind=3},Sr=class{constructor(n,e){this.scopeName=n,this.ruleName=e}kind=4};function Zt(n){if(n==="$base")return new wr;if(n==="$self")return new Cr;const e=n.indexOf("#");if(e===-1)return new vr(n);if(e===0)return new xr(n.substring(1));{const t=n.substring(0,e),a=n.substring(e+1);return new Sr(t,a)}}var Ar=/\\(\d+)/,at=/\\(\d+)/g,$r=-1,Xt=-2;var $e=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(n,e,t,a){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=Ie.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=Ie.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Ot(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:Ie.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ie.replaceCaptures(this._contentName,n,e)}},Er=class extends $e{retokenizeCapturedWithRuleId;constructor(n,e,t,a,r){super(n,e,t,a),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,a){throw new Error("Not supported!")}},Nr=class extends $e{_match;captures;_cachedCompiledPatterns;constructor(n,e,t,a,r){super(n,e,t,null),this._match=new xe(a,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,a){return this._getCachedCompiledPatterns(n).compileAG(n,t,a)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends $e{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,a,r){super(n,e,t,a),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,a){return this._getCachedCompiledPatterns(n).compileAG(n,t,a)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vn=class extends $e{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,a,r,i,o,s,c,l){super(n,e,t,a),this._begin=new xe(r,this.id),this.beginCaptures=i,this._end=new xe(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,a){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,a)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},je=class extends $e{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(n,e,t,a,r,i,o,s,c){super(n,e,t,a),this._begin=new xe(r,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=new xe(o,Xt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,a){return this._getCachedCompiledPatterns(n).compileAG(n,t,a)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,a){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,a)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ve,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Vt=class q{static createCaptureRule(e,t,a,r,i){return e.registerRule(o=>new Er(t,o,a,r,i))}static getCompiledRuleId(e,t,a){return e.id||t.registerRule(r=>{if(e.id=r,e.match)return new Nr(e.$vscodeTextmateLocation,e.id,e.name,e.match,q._compileCaptures(e.captures,t,a));if(typeof e.begin>"u"){e.repository&&(a=Mt({},a,e.repository));let i=e.patterns;return typeof i>"u"&&e.include&&(i=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,q._compilePatterns(i,t,a))}return e.while?new je(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,q._compileCaptures(e.beginCaptures||e.captures,t,a),e.while,q._compileCaptures(e.whileCaptures||e.captures,t,a),q._compilePatterns(e.patterns,t,a)):new vn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,q._compileCaptures(e.beginCaptures||e.captures,t,a),e.end,q._compileCaptures(e.endCaptures||e.captures,t,a),e.applyEndPatternLast,q._compilePatterns(e.patterns,t,a))}),e.id}static _compileCaptures(e,t,a){let r=[];if(e){let i=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const s=parseInt(o,10);s>i&&(i=s)}for(let o=0;o<=i;o++)r[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const s=parseInt(o,10);let c=0;e[o].patterns&&(c=q.getCompiledRuleId(e[o],t,a)),r[s]=q.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,c)}}return r}static _compilePatterns(e,t,a){let r=[];if(e)for(let i=0,o=e.length;i<o;i++){const s=e[i];let c=-1;if(s.include){const l=Zt(s.include);switch(l.kind){case 0:case 1:c=q.getCompiledRuleId(a[s.include],t,a);break;case 2:let u=a[l.ruleName];u&&(c=q.getCompiledRuleId(u,t,a));break;case 3:case 4:const d=l.scopeName,g=l.kind===4?l.ruleName:null,p=t.getExternalGrammar(d,a);if(p)if(g){let m=p.repository[g];m&&(c=q.getCompiledRuleId(m,t,p.repository))}else c=q.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else c=q.getCompiledRuleId(s,t,a);if(c!==-1){const l=t.getRule(c);let u=!1;if((l instanceof rt||l instanceof vn||l instanceof je)&&l.hasMissingPatterns&&l.patterns.length===0&&(u=!0),u)continue;r.push(c)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}},xe=class Yt{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const a=e.length;let r=0,i=[],o=!1;for(let s=0;s<a;s++)if(e.charAt(s)==="\\"&&s+1<a){const l=e.charAt(s+1);l==="z"?(i.push(e.substring(r,s)),i.push("$(?!\\n)(?<!\\n)"),r=s+2):(l==="A"||l==="G")&&(o=!0),s++}this.hasAnchor=o,r===0?this.source=e:(i.push(e.substring(r,a)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Ar.test(this.source):this.hasBackReferences=!1}clone(){return new Yt(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let a=t.map(r=>e.substring(r.start,r.end));return at.lastIndex=0,this.source.replace(at,(r,i)=>Dt(a[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],a=[],r=[],i,o,s,c;for(i=0,o=this.source.length;i<o;i++)s=this.source.charAt(i),e[i]=s,t[i]=s,a[i]=s,r[i]=s,s==="\\"&&i+1<o&&(c=this.source.charAt(i+1),c==="A"?(e[i+1]="￿",t[i+1]="￿",a[i+1]="A",r[i+1]="A"):c==="G"?(e[i+1]="￿",t[i+1]="G",a[i+1]="￿",r[i+1]="G"):(e[i+1]=c,t[i+1]=c,a[i+1]=c,r[i+1]=c),i++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:a.join(""),A1_G1:r.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ve=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let a=this._items.map(r=>r.resolveAnchors(e,t));return new it(n,a,this._items.map(r=>r.ruleId))}},it=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
2
2
  `)}findNextMatchSync(n,e,t){const a=this.scanner.findNextMatchSync(n,e,t);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},cn=class{constructor(n,e){this.languageId=n,this.tokenType=e}},Ir=class Sn{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new cn(e,8),this._embeddedLanguagesMatcher=new Tr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Sn._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new cn(0,0);_getBasicScopeAttributes=new Ut(e=>{const t=this._scopeToLanguage(e),a=this._toStandardTokenType(e);return new cn(t,a)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Sn.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Tr=class{values;scopesRegExp;constructor(n){if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,a])=>Dt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var ot=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function Kt(n,e,t,a,r,i,o,s){const c=e.content.length;let l=!1,u=-1;if(o){const p=Gr(n,e,t,a,r,i);r=p.stack,a=p.linePos,t=p.isFirstLine,u=p.anchorPosition}const d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new ot(r,!0);g()}return new ot(r,!1);function g(){const p=Rr(n,e,t,a,r,u);if(!p){i.produce(r,c),l=!0;return}const m=p.captureIndices,w=p.matchedRuleId,_=m&&m.length>0?m[0].end>a:!1;if(w===$r){const C=r.getRule(n);i.produce(r,m[0].start),r=r.withContentNameScopesList(r.nameScopesList),ke(n,e,t,r,i,C.endCaptures,m),i.produce(r,m[0].end);const b=r;if(r=r.parent,u=b.getAnchorPos(),!_&&b.getEnterPos()===a){r=b,i.produce(r,c),l=!0;return}}else{const C=n.getRule(w);i.produce(r,m[0].start);const b=r,x=C.getName(e.content,m),F=r.contentNameScopesList.pushAttributed(x,n);if(r=r.push(w,a,u,m[0].end===c,null,F,F),C instanceof vn){const E=C;ke(n,e,t,r,i,E.beginCaptures,m),i.produce(r,m[0].end),u=m[0].end;const H=E.getContentName(e.content,m),B=F.pushAttributed(H,n);if(r=r.withContentNameScopesList(B),E.endHasBackReferences&&(r=r.withEndRule(E.getEndWithResolvedBackReferences(e.content,m))),!_&&b.hasSameRuleAs(r)){r=r.pop(),i.produce(r,c),l=!0;return}}else if(C instanceof je){const E=C;ke(n,e,t,r,i,E.beginCaptures,m),i.produce(r,m[0].end),u=m[0].end;const H=E.getContentName(e.content,m),B=F.pushAttributed(H,n);if(r=r.withContentNameScopesList(B),E.whileHasBackReferences&&(r=r.withEndRule(E.getWhileWithResolvedBackReferences(e.content,m))),!_&&b.hasSameRuleAs(r)){r=r.pop(),i.produce(r,c),l=!0;return}}else if(ke(n,e,t,r,i,C.captures,m),i.produce(r,m[0].end),r=r.pop(),!_){r=r.safePop(),i.produce(r,c),l=!0;return}}m[0].end>a&&(a=m[0].end,t=!1)}}function Gr(n,e,t,a,r,i){let o=r.beginRuleCapturedEOL?0:-1;const s=[];for(let c=r;c;c=c.pop()){const l=c.getRule(n);l instanceof je&&s.push({rule:l,stack:c})}for(let c=s.pop();c;c=s.pop()){const{ruleScanner:l,findOptions:u}=qr(c.rule,n,c.stack.endRule,t,a===o),d=l.findNextMatchSync(e,a,u);if(d){if(d.ruleId!==Xt){r=c.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(c.stack,d.captureIndices[0].start),ke(n,e,t,c.stack,i,c.rule.whileCaptures,d.captureIndices),i.produce(c.stack,d.captureIndices[0].end),o=d.captureIndices[0].end,d.captureIndices[0].end>a&&(a=d.captureIndices[0].end,t=!1))}else{r=c.stack.pop();break}}return{stack:r,linePos:a,anchorPosition:o,isFirstLine:t}}function Rr(n,e,t,a,r,i){const o=Fr(n,e,t,a,r,i),s=n.getInjections();if(s.length===0)return o;const c=Pr(s,n,e,t,a,r,i);if(!c)return o;if(!o)return c;const l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function Fr(n,e,t,a,r,i){const o=r.getRule(n),{ruleScanner:s,findOptions:c}=Jt(o,n,r.endRule,t,a===i),l=s.findNextMatchSync(e,a,c);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function Pr(n,e,t,a,r,i,o){let s=Number.MAX_VALUE,c=null,l,u=0;const d=i.contentNameScopesList.getScopeNames();for(let g=0,p=n.length;g<p;g++){const m=n[g];if(!m.matcher(d))continue;const w=e.getRule(m.ruleId),{ruleScanner:_,findOptions:C}=Jt(w,e,null,a,r===o),b=_.findNextMatchSync(t,r,C);if(!b)continue;const x=b.captureIndices[0].start;if(!(x>=s)&&(s=x,c=b.captureIndices,l=b.ruleId,u=m.priority,s===r))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function Jt(n,e,t,a,r){return{ruleScanner:n.compileAG(e,t,a,r),findOptions:0}}function qr(n,e,t,a,r){return{ruleScanner:n.compileWhileAG(e,t,a,r),findOptions:0}}function ke(n,e,t,a,r,i,o){if(i.length===0)return;const s=e.content,c=Math.min(i.length,o.length),l=[],u=o[0].end;for(let d=0;d<c;d++){const g=i[d];if(g===null)continue;const p=o[d];if(p.length===0)continue;if(p.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=p.start;)r.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?r.produceFromScopes(l[l.length-1].scopes,p.start):r.produce(a,p.start),g.retokenizeCapturedWithRuleId){const w=g.getName(s,o),_=a.contentNameScopesList.pushAttributed(w,n),C=g.getContentName(s,o),b=_.pushAttributed(C,n),x=a.push(g.retokenizeCapturedWithRuleId,p.start,-1,!1,null,_,b),F=n.createOnigString(s.substring(0,p.end));Kt(n,F,t&&p.start===0,p.start,x,r,!1,0),Ht(F);continue}const m=g.getName(s,o);if(m!==null){const _=(l.length>0?l[l.length-1].scopes:a.contentNameScopesList).pushAttributed(m,n);l.push(new Lr(_,p.end))}}for(;l.length>0;)r.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Lr=class{scopes;endPos;constructor(n,e){this.scopes=n,this.endPos=e}};function Mr(n,e,t,a,r,i,o,s){return new Br(n,e,t,a,r,i,o,s)}function st(n,e,t,a,r){const i=Oe(e,De),o=Vt.getCompiledRuleId(t,a,r.repository);for(const s of i)n.push({debugSelector:e,matcher:s.matcher,ruleId:o,grammar:r,priority:s.priority})}function De(n,e){if(e.length<n.length)return!1;let t=0;return n.every(a=>{for(let r=t;r<e.length;r++)if(Or(e[r],a))return t=r+1,!0;return!1})}function Or(n,e){if(!n)return!1;if(n===e)return!0;const t=e.length;return n.length>t&&n.substr(0,t)===e&&n[t]==="."}var Br=class{constructor(n,e,t,a,r,i,o,s){if(this._rootScopeName=n,this.balancedBracketSelectors=i,this._onigLib=s,this._basicScopeAttributesProvider=new Ir(t,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ct(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const c of Object.keys(r)){const l=Oe(c,De);for(const u of l)this._tokenTypeMatchers.push({matcher:u.matcher,type:r[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},e=[],t=this._rootScopeName,a=n.lookup(t);if(a){const r=a.injections;if(r)for(let o in r)st(e,o,r[o],this,a);const i=this._grammarRepository.injections(t);i&&i.forEach(o=>{const s=this.getExternalGrammar(o);if(s){const c=s.injectionSelector;c&&st(e,c,s,this,s)}})}return e.sort((r,i)=>r.priority-i.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=ct(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const a=this._tokenize(n,e,!1,t);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(n,e,t=0){const a=this._tokenize(n,e,!0,t);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(n,e,t,a){this._rootId===-1&&(this._rootId=Vt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!e||e===An.NULL){r=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),d=he.set(0,l.languageId,l.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),g=this.getRule(this._rootId).getName(null,null);let p;g?p=ye.createRootAndLookUpScopeName(g,d,this):p=ye.createRoot("unknown",d),e=new An(null,this._rootId,-1,-1,!1,null,p,p)}else r=!1,e.reset();n=n+`
3
3
  `;const i=this.createOnigString(n),o=i.content.length,s=new Dr(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Kt(this,i,r,0,e,s,!0,a);return Ht(i),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function ct(n,e){return n=ir(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var ye=class Z{constructor(e,t,a){this.parent=e,this.scopePath=t,this.tokenAttributes=a}static fromExtension(e,t){let a=e,r=e?.scopePath??null;for(const i of t)r=sn.push(r,i.scopeNames),a=new Z(a,r,i.encodedTokenAttributes);return a}static createRoot(e,t){return new Z(null,new sn(null,e),t)}static createRootAndLookUpScopeName(e,t,a){const r=a.getMetadataForScope(e),i=new sn(null,e),o=a.themeProvider.themeMatch(i),s=Z.mergeAttributes(t,r,o);return new Z(null,i,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return Z.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,a){let r=-1,i=0,o=0;return a!==null&&(r=a.fontStyle,i=a.foregroundId,o=a.backgroundId),he.set(e,t.languageId,t.tokenType,null,r,i,o)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return Z._pushAttributed(this,e,t);const a=e.split(/ /g);let r=this;for(const i of a)r=Z._pushAttributed(r,i,t);return r}static _pushAttributed(e,t,a){const r=a.getMetadataForScope(t),i=e.scopePath.push(t),o=a.themeProvider.themeMatch(i),s=Z.mergeAttributes(e.tokenAttributes,r,o);return new Z(e,i,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let a=this;for(;a&&a!==e;)t.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===e?t.reverse():void 0}},An=class ae{constructor(e,t,a,r,i,o,s,c){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new ae(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:ae._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ye.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){ae._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,a,r,i,o,s){return new ae(this,e,t,a,r,i,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new ae(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,t){const a=ye.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new ae(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,a,ye.fromExtension(a,t.contentNameScopesList))}},jr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(n,e){this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):Oe(t,De).map(a=>a.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>Oe(t,De).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},Dr=class{constructor(n,e,t,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let a=n?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=n?.getScopeNames()??[];for(const o of this._tokenTypeOverrides)o.matcher(i)&&(a=he.set(a,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(i))}if(r&&(a=he.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=e;return}const t=n?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let a=0,r=this._binaryTokens.length;a<r;a++)t[a]=this._binaryTokens[a];return t}},Ur=class{constructor(n,e){this._onigLib=e,this._theme=n}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const n of this._grammars.values())n.dispose()}setTheme(n){this._theme=n}getColorMap(){return this._theme.getColorMap()}addGrammar(n,e){this._rawGrammars.set(n.scopeName,n),e&&this._injectionGrammars.set(n.scopeName,e)}lookup(n){return this._rawGrammars.get(n)}injections(n){return this._injectionGrammars.get(n)}getDefaults(){return this._theme.getDefaults()}themeMatch(n){return this._theme.match(n)}grammarForScopeName(n,e,t,a,r){if(!this._grammars.has(n)){let i=this._rawGrammars.get(n);if(!i)return null;this._grammars.set(n,Mr(n,i,e,t,a,r,this,this._onigLib))}return this._grammars.get(n)}},zr=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Ur(Me.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Me.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,a){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:a})}loadGrammarWithConfiguration(e,t,a){return this._loadGrammar(e,t,a.embeddedLanguages,a.tokenTypes,new jr(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,a,r,i){const o=new kr(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(s=>this._loadSingleGrammar(s.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,a,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const a=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,a)}}addGrammar(e,t=[],a=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,a,r)}_grammarForScopeName(e,t=0,a=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,a,r,i)}},$n=An.NULL;const Wr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ee{constructor(e,t,a){this.normal=t,this.property=e,a&&(this.space=a)}}Ee.prototype.normal={};Ee.prototype.property={};Ee.prototype.space=void 0;function Qt(n,e){const t={},a={};for(const r of n)Object.assign(t,r.property),Object.assign(a,r.normal);return new Ee(t,a,e)}function En(n){return n.toLowerCase()}class O{constructor(e,t){this.attribute=t,this.property=e}}O.prototype.attribute="";O.prototype.booleanish=!1;O.prototype.boolean=!1;O.prototype.commaOrSpaceSeparated=!1;O.prototype.commaSeparated=!1;O.prototype.defined=!1;O.prototype.mustUseProperty=!1;O.prototype.number=!1;O.prototype.overloadedBoolean=!1;O.prototype.property="";O.prototype.spaceSeparated=!1;O.prototype.space=void 0;let Hr=0;const v=ce(),I=ce(),Nn=ce(),f=ce(),$=ce(),pe=ce(),j=ce();function ce(){return 2**++Hr}const In=Object.freeze(Object.defineProperty({__proto__:null,boolean:v,booleanish:I,commaOrSpaceSeparated:j,commaSeparated:pe,number:f,overloadedBoolean:Nn,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),ln=Object.keys(In);class Bn extends O{constructor(e,t,a,r){let i=-1;if(super(e,t),lt(this,"space",r),typeof a=="number")for(;++i<ln.length;){const o=ln[i];lt(this,ln[i],(a&In[o])===In[o])}}}Bn.prototype.defined=!0;function lt(n,e,t){t&&(n[e]=t)}function fe(n){const e={},t={};for(const[a,r]of Object.entries(n.properties)){const i=new Bn(a,n.transform(n.attributes||{},a),r,n.space);n.mustUseProperty&&n.mustUseProperty.includes(a)&&(i.mustUseProperty=!0),e[a]=i,t[En(a)]=a,t[En(i.attribute)]=a}return new Ee(e,t,n.space)}const ea=fe({properties:{ariaActiveDescendant:null,ariaAtomic:I,ariaAutoComplete:null,ariaBusy:I,ariaChecked:I,ariaColCount:f,ariaColIndex:f,ariaColSpan:f,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:I,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:I,ariaFlowTo:$,ariaGrabbed:I,ariaHasPopup:null,ariaHidden:I,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:f,ariaLive:null,ariaModal:I,ariaMultiLine:I,ariaMultiSelectable:I,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:f,ariaPressed:I,ariaReadOnly:I,ariaRelevant:null,ariaRequired:I,ariaRoleDescription:$,ariaRowCount:f,ariaRowIndex:f,ariaRowSpan:f,ariaSelected:I,ariaSetSize:f,ariaSort:null,ariaValueMax:f,ariaValueMin:f,ariaValueNow:f,ariaValueText:null,role:null},transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function na(n,e){return e in n?n[e]:e}function ta(n,e){return na(n,e.toLowerCase())}const Zr=fe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pe,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:v,allowPaymentRequest:v,allowUserMedia:v,alt:null,as:null,async:v,autoCapitalize:null,autoComplete:$,autoFocus:v,autoPlay:v,blocking:$,capture:null,charSet:null,checked:v,cite:null,className:$,cols:f,colSpan:null,content:null,contentEditable:I,controls:v,controlsList:$,coords:f|pe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:v,defer:v,dir:null,dirName:null,disabled:v,download:Nn,draggable:I,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:v,formTarget:null,headers:$,height:f,hidden:Nn,high:f,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:v,inputMode:null,integrity:null,is:null,isMap:v,itemId:null,itemProp:$,itemRef:$,itemScope:v,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:v,low:f,manifest:null,max:null,maxLength:f,media:null,method:null,min:null,minLength:f,multiple:v,muted:v,name:null,nonce:null,noModule:v,noValidate:v,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:v,optimum:f,pattern:null,ping:$,placeholder:null,playsInline:v,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:v,referrerPolicy:null,rel:$,required:v,reversed:v,rows:f,rowSpan:f,sandbox:$,scope:null,scoped:v,seamless:v,selected:v,shadowRootClonable:v,shadowRootDelegatesFocus:v,shadowRootMode:null,shape:null,size:f,sizes:null,slot:null,span:f,spellCheck:I,src:null,srcDoc:null,srcLang:null,srcSet:null,start:f,step:null,style:null,tabIndex:f,target:null,title:null,translate:null,type:null,typeMustMatch:v,useMap:null,value:I,width:f,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:f,borderColor:null,bottomMargin:f,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:v,declare:v,event:null,face:null,frame:null,frameBorder:null,hSpace:f,leftMargin:f,link:null,longDesc:null,lowSrc:null,marginHeight:f,marginWidth:f,noResize:v,noHref:v,noShade:v,noWrap:v,object:null,profile:null,prompt:null,rev:null,rightMargin:f,rules:null,scheme:null,scrolling:I,standby:null,summary:null,text:null,topMargin:f,valueType:null,version:null,vAlign:null,vLink:null,vSpace:f,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:v,disableRemotePlayback:v,prefix:null,property:null,results:f,security:null,unselectable:null},space:"html",transform:ta}),Xr=fe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:j,accentHeight:f,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:f,amplitude:f,arabicForm:null,ascent:f,attributeName:null,attributeType:null,azimuth:f,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:f,by:null,calcMode:null,capHeight:f,className:$,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:f,diffuseConstant:f,direction:null,display:null,dur:null,divisor:f,dominantBaseline:null,download:v,dx:null,dy:null,edgeMode:null,editable:null,elevation:f,enableBackground:null,end:null,event:null,exponent:f,externalResourcesRequired:null,fill:null,fillOpacity:f,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pe,g2:pe,glyphName:pe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:f,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:f,horizOriginX:f,horizOriginY:f,id:null,ideographic:f,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:f,k:f,k1:f,k2:f,k3:f,k4:f,kernelMatrix:j,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:f,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:f,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:f,overlineThickness:f,paintOrder:null,panose1:null,path:null,pathLength:f,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:f,pointsAtY:f,pointsAtZ:f,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:j,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:j,rev:j,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:j,requiredFeatures:j,requiredFonts:j,requiredFormats:j,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:f,specularExponent:f,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:f,strikethroughThickness:f,string:null,stroke:null,strokeDashArray:j,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:f,strokeOpacity:f,strokeWidth:null,style:null,surfaceScale:f,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:j,tabIndex:f,tableValues:null,target:null,targetX:f,targetY:f,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:j,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:f,underlineThickness:f,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:f,values:null,vAlphabetic:f,vMathematical:f,vectorEffect:null,vHanging:f,vIdeographic:f,version:null,vertAdvY:f,vertOriginX:f,vertOriginY:f,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:f,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:na}),aa=fe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()}}),ra=fe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ta}),ia=fe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()}}),Vr=/[A-Z]/g,ut=/-[a-z]/g,Yr=/^data[-\w.:]+$/i;function Kr(n,e){const t=En(e);let a=e,r=O;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const i=e.slice(5).replace(ut,Qr);a="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=e.slice(4);if(!ut.test(i)){let o=i.replace(Vr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}r=Bn}return new r(a,e)}function Jr(n){return"-"+n.toLowerCase()}function Qr(n){return n.charAt(1).toUpperCase()}const ei=Qt([ea,Zr,aa,ra,ia],"html"),oa=Qt([ea,Xr,aa,ra,ia],"svg"),dt={}.hasOwnProperty;function ni(n,e){const t=e||{};function a(r,...i){let o=a.invalid;const s=a.handlers;if(r&&dt.call(r,n)){const c=String(r[n]);o=dt.call(s,c)?s[c]:a.unknown}if(o)return o.call(this,r,...i)}return a.handlers=t.handlers||{},a.invalid=t.invalid,a.unknown=t.unknown,a}const ti=/["&'<>`]/g,ai=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ri=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ii=/[|\\{}()[\]^$+*?.]/g,pt=new WeakMap;function oi(n,e){if(n=n.replace(e.subset?si(e.subset):ti,a),e.subset||e.escapeOnly)return n;return n.replace(ai,t).replace(ri,a);function t(r,i,o){return e.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),e)}function a(r,i,o){return e.format(r.charCodeAt(0),o.charCodeAt(i+1),e)}}function si(n){let e=pt.get(n);return e||(e=ci(n),pt.set(n,e)),e}function ci(n){const e=[];let t=-1;for(;++t<n.length;)e.push(n[t].replace(ii,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const li=/[\dA-Fa-f]/;function ui(n,e,t){const a="&#x"+n.toString(16).toUpperCase();return t&&e&&!li.test(String.fromCharCode(e))?a:a+";"}const di=/\d/;function pi(n,e,t){const a="&#"+String(n);return t&&e&&!di.test(String.fromCharCode(e))?a:a+";"}const mi=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],un={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},gi=["cent","copy","divide","gt","lt","not","para","times"],sa={}.hasOwnProperty,Tn={};let Te;for(Te in un)sa.call(un,Te)&&(Tn[un[Te]]=Te);const hi=/[^\dA-Za-z]/;function fi(n,e,t,a){const r=String.fromCharCode(n);if(sa.call(Tn,r)){const i=Tn[r],o="&"+i;return t&&mi.includes(i)&&!gi.includes(i)&&(!a||e&&e!==61&&hi.test(String.fromCharCode(e)))?o:o+";"}return""}function _i(n,e,t){let a=ui(n,e,t.omitOptionalSemicolons),r;if((t.useNamedReferences||t.useShortestReferences)&&(r=fi(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!r)&&t.useShortestReferences){const i=pi(n,e,t.omitOptionalSemicolons);i.length<a.length&&(a=i)}return r&&(!t.useShortestReferences||r.length<a.length)?r:a}function me(n,e){return oi(n,Object.assign({format:_i},e))}const bi=/^>|^->|<!--|-->|--!>|<!-$/g,ki=[">"],yi=["<",">"];function wi(n,e,t,a){return a.settings.bogusComments?"<?"+me(n.value,Object.assign({},a.settings.characterReferences,{subset:ki}))+">":"<!--"+n.value.replace(bi,r)+"-->";function r(i){return me(i,Object.assign({},a.settings.characterReferences,{subset:yi}))}}function Ci(n,e,t,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}function mt(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let a=0,r=t.indexOf(e);for(;r!==-1;)a++,r=t.indexOf(e,r+e.length);return a}function xi(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function vi(n){return n.join(" ").trim()}const Si=/[ \t\n\f\r]/g;function jn(n){return typeof n=="object"?n.type==="text"?gt(n.value):!1:gt(n)}function gt(n){return n.replace(Si,"")===""}const R=la(1),ca=la(-1),Ai=[];function la(n){return e;function e(t,a,r){const i=t?t.children:Ai;let o=(a||0)+n,s=i[o];if(!r)for(;s&&jn(s);)o+=n,s=i[o];return s}}const $i={}.hasOwnProperty;function ua(n){return e;function e(t,a,r){return $i.call(n,t.tagName)&&n[t.tagName](t,a,r)}}const Dn=ua({body:Ni,caption:dn,colgroup:dn,dd:Ri,dt:Gi,head:dn,html:Ei,li:Ti,optgroup:Fi,option:Pi,p:Ii,rp:ht,rt:ht,tbody:Li,td:ft,tfoot:Mi,th:ft,thead:qi,tr:Oi});function dn(n,e,t){const a=R(t,e,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&jn(a.value.charAt(0)))}function Ei(n,e,t){const a=R(t,e);return!a||a.type!=="comment"}function Ni(n,e,t){const a=R(t,e);return!a||a.type!=="comment"}function Ii(n,e,t){const a=R(t,e);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Ti(n,e,t){const a=R(t,e);return!a||a.type==="element"&&a.tagName==="li"}function Gi(n,e,t){const a=R(t,e);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function Ri(n,e,t){const a=R(t,e);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function ht(n,e,t){const a=R(t,e);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function Fi(n,e,t){const a=R(t,e);return!a||a.type==="element"&&a.tagName==="optgroup"}function Pi(n,e,t){const a=R(t,e);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function qi(n,e,t){const a=R(t,e);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function Li(n,e,t){const a=R(t,e);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function Mi(n,e,t){return!R(t,e)}function Oi(n,e,t){const a=R(t,e);return!a||a.type==="element"&&a.tagName==="tr"}function ft(n,e,t){const a=R(t,e);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}const Bi=ua({body:Ui,colgroup:zi,head:Di,html:ji,tbody:Wi});function ji(n){const e=R(n,-1);return!e||e.type!=="comment"}function Di(n){const e=new Set;for(const a of n.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(e.has(a.tagName))return!1;e.add(a.tagName)}const t=n.children[0];return!t||t.type==="element"}function Ui(n){const e=R(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&jn(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function zi(n,e,t){const a=ca(t,e),r=R(n,-1,!0);return t&&a&&a.type==="element"&&a.tagName==="colgroup"&&Dn(a,t.children.indexOf(a),t)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function Wi(n,e,t){const a=ca(t,e),r=R(n,-1);return t&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&Dn(a,t.children.indexOf(a),t)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const Ge={name:[[`
4
4
  \f\r &/=>`.split(""),`
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as Bn, openBlock as ke, createStaticVNode as nr, createElementVNode as Me, defineComponent as tr, ref as sn, watch as ar, createBlock as rt } from "vue";
2
- import { _ as jn } from "./index-CTcnNF6r.js";
2
+ import { _ as jn } from "./index-DZ9p1utK.js";
3
3
  const rr = {}, ir = {
4
4
  "enable-background": "new 0 0 32 32",
5
5
  height: "32px",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-kIuhy4WL.cjs"),c=require("./emoji-Bk6FG72F.cjs"),s={},d={class:"icon",viewBox:"0 0 1365 1024",xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11"};function a(t,o){return e.openBlock(),e.createElementBlock("svg",d,[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M121.173333 785.066667l485.717334-580.266667a101.546667 101.546667 0 0 1 151.722666 0L1244.16 785.066667a39.424 39.424 0 0 1 4.778667 44.544 48.298667 48.298667 0 0 1-42.666667 23.722666H159.232a48.298667 48.298667 0 0 1-42.496-23.722666A39.424 39.424 0 0 1 121.173333 785.066667z",fill:"#515151",transform:"rotate(-90, 682.5, 512)"},null,-1)])])}const i=n._export_sfc(s,[["render",a]]),u={},m={class:"icon",viewBox:"0 0 1706 1024",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"};function f(t,o){return e.openBlock(),e.createElementBlock("svg",m,[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M172.373333 0h1361.92a121.856 121.856 0 0 1 86.186667 208.213333l-680.96 680.96a121.856 121.856 0 0 1-172.373333 0L86.186667 208.213333A121.856 121.856 0 0 1 172.373333 0z",fill:"#515151",class:"selected"},null,-1)])])}const k=n._export_sfc(u,[["render",f]]),B={class:"foldBlock-icon"},_={class:"foldBlock-header"},v={class:"foldBlock-content"},g=e.defineComponent({__name:"FoldBlock",props:{node:{}},setup(t){const o=e.ref(t.node.attrs.initFolded);return(p,r)=>(e.openBlock(),e.createElementBlock("div",{class:"foldBlock-wrapper",style:e.normalizeStyle({backgroundColor:t.node.attrs.bgColor,borderColor:t.node.attrs.bdColor})},[e.createElementVNode("div",{class:"collapse-icon",onClick:r[0]||(r[0]=l=>o.value=!o.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value?i:k)))]),e.createElementVNode("div",B,e.toDisplayString(e.unref(c.EMOJI_MAP)[t.node.content[0].attrs.emoji]?e.unref(c.EMOJI_MAP)[t.node.content[0].attrs.emoji]:e.unref(c.EMOJI_MAP).whale),1),e.createElementVNode("div",{class:e.normalizeClass(["foldBlock-inner",o.value?"is-folded":"not-folded"])},[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.content[0].content,l=>(e.openBlock(),e.createBlock(n._sfc_main,{node:l,key:e.useId()},null,8,["node"]))),128))]),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.content[1].content,l=>(e.openBlock(),e.createBlock(n._sfc_main,{node:l,key:e.useId()},null,8,["node"]))),128))])],2)],4))}}),h=n._export_sfc(g,[["__scopeId","data-v-c2512d4e"]]);exports.default=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-B4Ca4BP0.cjs"),c=require("./emoji-Bk6FG72F.cjs"),s={},d={class:"icon",viewBox:"0 0 1365 1024",xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11"};function a(t,o){return e.openBlock(),e.createElementBlock("svg",d,[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M121.173333 785.066667l485.717334-580.266667a101.546667 101.546667 0 0 1 151.722666 0L1244.16 785.066667a39.424 39.424 0 0 1 4.778667 44.544 48.298667 48.298667 0 0 1-42.666667 23.722666H159.232a48.298667 48.298667 0 0 1-42.496-23.722666A39.424 39.424 0 0 1 121.173333 785.066667z",fill:"#515151",transform:"rotate(-90, 682.5, 512)"},null,-1)])])}const i=n._export_sfc(s,[["render",a]]),u={},m={class:"icon",viewBox:"0 0 1706 1024",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"};function f(t,o){return e.openBlock(),e.createElementBlock("svg",m,[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M172.373333 0h1361.92a121.856 121.856 0 0 1 86.186667 208.213333l-680.96 680.96a121.856 121.856 0 0 1-172.373333 0L86.186667 208.213333A121.856 121.856 0 0 1 172.373333 0z",fill:"#515151",class:"selected"},null,-1)])])}const k=n._export_sfc(u,[["render",f]]),B={class:"foldBlock-icon"},_={class:"foldBlock-header"},v={class:"foldBlock-content"},g=e.defineComponent({__name:"FoldBlock",props:{node:{}},setup(t){const o=e.ref(t.node.attrs.initFolded);return(p,r)=>(e.openBlock(),e.createElementBlock("div",{class:"foldBlock-wrapper",style:e.normalizeStyle({backgroundColor:t.node.attrs.bgColor,borderColor:t.node.attrs.bdColor})},[e.createElementVNode("div",{class:"collapse-icon",onClick:r[0]||(r[0]=l=>o.value=!o.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value?i:k)))]),e.createElementVNode("div",B,e.toDisplayString(e.unref(c.EMOJI_MAP)[t.node.content[0].attrs.emoji]?e.unref(c.EMOJI_MAP)[t.node.content[0].attrs.emoji]:e.unref(c.EMOJI_MAP).whale),1),e.createElementVNode("div",{class:e.normalizeClass(["foldBlock-inner",o.value?"is-folded":"not-folded"])},[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.content[0].content,l=>(e.openBlock(),e.createBlock(n._sfc_main,{node:l,key:e.useId()},null,8,["node"]))),128))]),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.content[1].content,l=>(e.openBlock(),e.createBlock(n._sfc_main,{node:l,key:e.useId()},null,8,["node"]))),128))])],2)],4))}}),h=n._export_sfc(g,[["__scopeId","data-v-c2512d4e"]]);exports.default=h;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as l, openBlock as n, createElementVNode as t, defineComponent as _, ref as h, normalizeStyle as k, createBlock as d, resolveDynamicComponent as w, toDisplayString as g, unref as c, normalizeClass as B, Fragment as f, renderList as u, useId as m } from "vue";
2
- import { _ as a, b as v } from "./index-CTcnNF6r.js";
2
+ import { _ as a, b as v } from "./index-DZ9p1utK.js";
3
3
  import { E as r } from "./emoji-CmOToDEU.js";
4
4
  const p = {}, x = {
5
5
  class: "icon",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as m, createElementBlock as e, openBlock as t, Fragment as a, renderList as d, useId as l, normalizeStyle as p, createBlock as _ } from "vue";
2
- import { b as f, _ as h } from "./index-CTcnNF6r.js";
2
+ import { b as f, _ as h } from "./index-DZ9p1utK.js";
3
3
  const k = { class: "dipwap-grid" }, v = /* @__PURE__ */ u({
4
4
  __name: "Grid",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-kIuhy4WL.cjs"),a={class:"dipwap-grid"},s=e.defineComponent({__name:"Grid",props:{node:{}},setup(n){const l=e.computed(()=>{let t=0;for(const o of n.node.content)t+=o.attrs.colWidth;return t});return(t,o)=>(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.content,c=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({flex:c.attrs.colWidth/l.value}),key:e.useId(),class:"dipwap-column"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.content,d=>(e.openBlock(),e.createBlock(r._sfc_main,{node:d,key:e.useId()},null,8,["node"]))),128))],4))),128))]))}}),i=r._export_sfc(s,[["__scopeId","data-v-c3a47d6f"]]);exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-B4Ca4BP0.cjs"),a={class:"dipwap-grid"},s=e.defineComponent({__name:"Grid",props:{node:{}},setup(n){const l=e.computed(()=>{let t=0;for(const o of n.node.content)t+=o.attrs.colWidth;return t});return(t,o)=>(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.content,c=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({flex:c.attrs.colWidth/l.value}),key:e.useId(),class:"dipwap-column"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.content,d=>(e.openBlock(),e.createBlock(r._sfc_main,{node:d,key:e.useId()},null,8,["node"]))),128))],4))),128))]))}}),i=r._export_sfc(s,[["__scopeId","data-v-c3a47d6f"]]);exports.default=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-kIuhy4WL.cjs"),c=["src"],n=e.defineComponent({__name:"IFrame",props:{node:{}},setup(r){return(s,a)=>(e.openBlock(),e.createElementBlock("iframe",{class:"iframe-wrapper",src:r.node.attrs.src},null,8,c))}}),o=t._export_sfc(n,[["__scopeId","data-v-3e85ed1c"]]);exports.default=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B4Ca4BP0.cjs"),c=["src"],n=e.defineComponent({__name:"IFrame",props:{node:{}},setup(r){return(s,a)=>(e.openBlock(),e.createElementBlock("iframe",{class:"iframe-wrapper",src:r.node.attrs.src},null,8,c))}}),o=t._export_sfc(n,[["__scopeId","data-v-3e85ed1c"]]);exports.default=o;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, createElementBlock as o, openBlock as t } from "vue";
2
- import { _ as c } from "./index-CTcnNF6r.js";
2
+ import { _ as c } from "./index-DZ9p1utK.js";
3
3
  const s = ["src"], a = /* @__PURE__ */ r({
4
4
  __name: "IFrame",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, inject as H, ref as s, computed as S, createElementBlock as y, openBlock as f, normalizeStyle as I, createElementVNode as l, createCommentVNode as B, createBlock as V, Teleport as D, createVNode as E, Transition as F, withCtx as T, withDirectives as j, withModifiers as r, normalizeClass as m, toDisplayString as K, unref as O, vShow as $ } from "vue";
2
- import { i as q, _ as A } from "./index-CTcnNF6r.js";
2
+ import { i as q, _ as A } from "./index-DZ9p1utK.js";
3
3
  const G = ["src", "alt"], J = ["value"], L = ["src", "width", "height"], P = { class: "modal-footer" }, Q = { class: "percentage" }, R = /* @__PURE__ */ _({
4
4
  __name: "Image",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./index-kIuhy4WL.cjs"),E=["src","alt"],V=["value"],b=["src","width","height"],z={class:"modal-footer"},M={class:"percentage"},x=e.defineComponent({__name:"Image",props:{node:{}},setup(n){const r=e.inject(f.imageNodesKey,e.ref([])),g=e.computed(()=>{const a=n.node.attrs.width;if(a&&a.endsWith("%")&&!a.startsWith("0")){const l=parseFloat(a.slice(0,-1));return Math.max(Math.min(l,100),10)+"%"}else return"80%"}),s=e.ref(0),i=e.ref(0),u=e.ref(!1),t=e.ref(100),m=e.ref(null),c=e.ref(0),d=e.ref(0),o=e.ref(0);async function v(a){m.value=r.value[a];const l=new Image;l.src=r.value[a].attrs.src,await l.decode(),s.value=l.naturalWidth,i.value=l.height,!(!s.value||!i.value)&&N()}const w=async()=>{o.value=r.value.findIndex(a=>a.attrs.src===n.node.attrs.src),await v(o.value),u.value=!0,document.body.style.overflow="hidden"},y=async()=>{o.value>0&&(o.value-=1,await v(o.value))},p=async()=>{o.value<r.value.length-1&&(o.value+=1,await v(o.value))},N=()=>{const a=window.innerWidth,l=window.innerHeight,h=a*.9/s.value*i.value;h<=l*.9?(c.value=a*.9,d.value=h):(c.value=l*.9/i.value*s.value,d.value=l*.9),t.value=c.value/s.value*100},I=()=>{t.value<=10||(t.value%10!==0?t.value=Math.floor(t.value/10)*10:t.value-=10,c.value=t.value/100*s.value,d.value=t.value/100*i.value)},k=()=>{t.value>=500||(t.value%10!==0?t.value=Math.ceil(t.value/10)*10:t.value+=10,c.value=t.value/100*s.value,d.value=t.value/100*i.value)},C=()=>{u.value=!1,document.body.style.overflow=""};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"image-container",style:e.normalizeStyle({alignItems:n.node.attrs.align})},[e.createElementVNode("div",{class:"image-wrapper",style:e.normalizeStyle({width:g.value})},[e.createElementVNode("img",{src:n.node.attrs.src,alt:n.node.attrs.caption?n.node.attrs.caption:"图片",onClick:w},null,8,E)],4),n.node.attrs.caption?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",class:"image-caption",value:n.node.attrs.caption,disabled:""},null,8,V)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"modal-mask",onClick:C},[l[0]||(l[0]=e.createElementVNode("div",{class:"modal-close"},"×",-1)),e.createElementVNode("img",{class:"modal-body",src:m.value?.attrs.src,width:c.value,height:d.value,alt:"图片"},null,8,b),e.createElementVNode("div",z,[e.createElementVNode("div",{class:e.normalizeClass(["prev-image",{disabled:o.value===0}]),onClick:e.withModifiers(y,["stop"])},"‹",2),e.createElementVNode("div",{class:e.normalizeClass(["zoom-out",{disabled:t.value<=10}]),onClick:e.withModifiers(I,["stop"])},"-",2),e.createElementVNode("div",M,e.toDisplayString(t.value.toFixed(0))+"%",1),e.createElementVNode("div",{class:e.normalizeClass(["zoom-in",{disabled:t.value>=500}]),onClick:e.withModifiers(k,["stop"])},"+",2),e.createElementVNode("div",{class:e.normalizeClass(["next-image",{disabled:o.value===e.unref(r).length-1}]),onClick:e.withModifiers(p,["stop"])}," › ",2)])],512),[[e.vShow,u.value]])]),_:1})]))],4))}}),W=f._export_sfc(x,[["__scopeId","data-v-6f968d5a"]]);exports.default=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./index-B4Ca4BP0.cjs"),E=["src","alt"],V=["value"],b=["src","width","height"],z={class:"modal-footer"},M={class:"percentage"},x=e.defineComponent({__name:"Image",props:{node:{}},setup(n){const r=e.inject(f.imageNodesKey,e.ref([])),g=e.computed(()=>{const a=n.node.attrs.width;if(a&&a.endsWith("%")&&!a.startsWith("0")){const l=parseFloat(a.slice(0,-1));return Math.max(Math.min(l,100),10)+"%"}else return"80%"}),s=e.ref(0),i=e.ref(0),u=e.ref(!1),t=e.ref(100),m=e.ref(null),c=e.ref(0),d=e.ref(0),o=e.ref(0);async function v(a){m.value=r.value[a];const l=new Image;l.src=r.value[a].attrs.src,await l.decode(),s.value=l.naturalWidth,i.value=l.height,!(!s.value||!i.value)&&N()}const w=async()=>{o.value=r.value.findIndex(a=>a.attrs.src===n.node.attrs.src),await v(o.value),u.value=!0,document.body.style.overflow="hidden"},y=async()=>{o.value>0&&(o.value-=1,await v(o.value))},p=async()=>{o.value<r.value.length-1&&(o.value+=1,await v(o.value))},N=()=>{const a=window.innerWidth,l=window.innerHeight,h=a*.9/s.value*i.value;h<=l*.9?(c.value=a*.9,d.value=h):(c.value=l*.9/i.value*s.value,d.value=l*.9),t.value=c.value/s.value*100},I=()=>{t.value<=10||(t.value%10!==0?t.value=Math.floor(t.value/10)*10:t.value-=10,c.value=t.value/100*s.value,d.value=t.value/100*i.value)},k=()=>{t.value>=500||(t.value%10!==0?t.value=Math.ceil(t.value/10)*10:t.value+=10,c.value=t.value/100*s.value,d.value=t.value/100*i.value)},C=()=>{u.value=!1,document.body.style.overflow=""};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"image-container",style:e.normalizeStyle({alignItems:n.node.attrs.align})},[e.createElementVNode("div",{class:"image-wrapper",style:e.normalizeStyle({width:g.value})},[e.createElementVNode("img",{src:n.node.attrs.src,alt:n.node.attrs.caption?n.node.attrs.caption:"图片",onClick:w},null,8,E)],4),n.node.attrs.caption?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",class:"image-caption",value:n.node.attrs.caption,disabled:""},null,8,V)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"modal-mask",onClick:C},[l[0]||(l[0]=e.createElementVNode("div",{class:"modal-close"},"×",-1)),e.createElementVNode("img",{class:"modal-body",src:m.value?.attrs.src,width:c.value,height:d.value,alt:"图片"},null,8,b),e.createElementVNode("div",z,[e.createElementVNode("div",{class:e.normalizeClass(["prev-image",{disabled:o.value===0}]),onClick:e.withModifiers(y,["stop"])},"‹",2),e.createElementVNode("div",{class:e.normalizeClass(["zoom-out",{disabled:t.value<=10}]),onClick:e.withModifiers(I,["stop"])},"-",2),e.createElementVNode("div",M,e.toDisplayString(t.value.toFixed(0))+"%",1),e.createElementVNode("div",{class:e.normalizeClass(["zoom-in",{disabled:t.value>=500}]),onClick:e.withModifiers(k,["stop"])},"+",2),e.createElementVNode("div",{class:e.normalizeClass(["next-image",{disabled:o.value===e.unref(r).length-1}]),onClick:e.withModifiers(p,["stop"])}," › ",2)])],512),[[e.vShow,u.value]])]),_:1})]))],4))}}),W=f._export_sfc(x,[["__scopeId","data-v-6f968d5a"]]);exports.default=W;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, ref as c, withAsyncContext as d, createElementBlock as i, openBlock as _, createElementVNode as l } from "vue";
2
- import { _ as p } from "./index-CTcnNF6r.js";
2
+ import { _ as p } from "./index-DZ9p1utK.js";
3
3
  const m = { class: "math-display" }, h = ["innerHTML"], u = /* @__PURE__ */ s({
4
4
  __name: "MathDisplay",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-kIuhy4WL.cjs"),i={class:"math-display"},d=["innerHTML"],l=e.defineComponent({__name:"MathDisplay",props:{node:{}},async setup(c){let t,r;const o=e.ref("");try{const{default:n}=([t,r]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./katex-CS0ZfoxP.cjs"))),t=await t,r(),t);o.value=n.renderToString(c.node.content[0].text,{displayMode:!0,strict:s=>s==="unicodeTextInMathMode"?"ignore":"warn"})}catch(n){console.error(n)}return(n,s)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",{class:"math-render",innerHTML:o.value},null,8,d)]))}}),_=a._export_sfc(l,[["__scopeId","data-v-1d66d1b3"]]);exports.default=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-B4Ca4BP0.cjs"),i={class:"math-display"},d=["innerHTML"],l=e.defineComponent({__name:"MathDisplay",props:{node:{}},async setup(c){let t,r;const o=e.ref("");try{const{default:n}=([t,r]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./katex-CS0ZfoxP.cjs"))),t=await t,r(),t);o.value=n.renderToString(c.node.content[0].text,{displayMode:!0,strict:s=>s==="unicodeTextInMathMode"?"ignore":"warn"})}catch(n){console.error(n)}return(n,s)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",{class:"math-render",innerHTML:o.value},null,8,d)]))}}),_=a._export_sfc(l,[["__scopeId","data-v-1d66d1b3"]]);exports.default=_;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, ref as c, withAsyncContext as i, createElementBlock as l, openBlock as _, createElementVNode as d } from "vue";
2
- import { _ as p } from "./index-CTcnNF6r.js";
2
+ import { _ as p } from "./index-DZ9p1utK.js";
3
3
  const m = { class: "math-inline" }, f = ["innerHTML"], h = /* @__PURE__ */ s({
4
4
  __name: "MathInline",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-kIuhy4WL.cjs"),i={class:"math-inline"},l=["innerHTML"],d=e.defineComponent({__name:"MathInline",props:{node:{}},async setup(c){let t,o;const r=e.ref("");try{const{default:n}=([t,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./katex-CS0ZfoxP.cjs"))),t=await t,o(),t);r.value=n.renderToString(c.node.content[0].text,{displayMode:!1,strict:s=>s==="unicodeTextInMathMode"?"ignore":"warn"})}catch(n){console.error(n)}return(n,s)=>(e.openBlock(),e.createElementBlock("span",i,[e.createElementVNode("span",{class:"math-render",innerHTML:r.value},null,8,l)]))}}),_=a._export_sfc(d,[["__scopeId","data-v-5812f609"]]);exports.default=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-B4Ca4BP0.cjs"),i={class:"math-inline"},l=["innerHTML"],d=e.defineComponent({__name:"MathInline",props:{node:{}},async setup(c){let t,o;const r=e.ref("");try{const{default:n}=([t,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./katex-CS0ZfoxP.cjs"))),t=await t,o(),t);r.value=n.renderToString(c.node.content[0].text,{displayMode:!1,strict:s=>s==="unicodeTextInMathMode"?"ignore":"warn"})}catch(n){console.error(n)}return(n,s)=>(e.openBlock(),e.createElementBlock("span",i,[e.createElementVNode("span",{class:"math-render",innerHTML:r.value},null,8,l)]))}}),_=a._export_sfc(d,[["__scopeId","data-v-5812f609"]]);exports.default=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-kIuhy4WL.cjs"),d={},a={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function i(C,t){return e.openBlock(),e.createElementBlock("svg",a,[...t[0]||(t[0]=[e.createStaticVNode('<path d="M5.00011 1.5C5.00011 1.26811 4.84067 1.06665 4.61499 1.01337C4.38621 0.959365 4.15942 1.07489 4.05148 1.27908C4.0295 1.32097 4.00531 1.36174 3.98053 1.40201C3.92681 1.4893 3.8447 1.61261 3.73468 1.75015C3.51178 2.02877 3.19011 2.34598 2.7765 2.55278C2.52951 2.67628 2.4294 2.97661 2.5529 3.2236C2.67639 3.47059 2.97673 3.57071 3.22372 3.44721C3.52353 3.29731 3.78202 3.11091 4.00011 2.91823V5.5C4.00011 5.77614 4.22397 6 4.50011 6C4.77625 6 5.00011 5.77614 5.00011 5.5V1.5Z" fill="#212121"></path><path d="M2.64642 7.64651C2.45117 7.84179 2.4512 8.15837 2.64647 8.35362C2.84059 8.5477 3.15457 8.54883 3.35008 8.35703L3.35665 8.35101C3.36458 8.34391 3.37911 8.33132 3.39988 8.315C3.44165 8.28217 3.50709 8.23546 3.59323 8.18805C3.76518 8.09341 4.01033 8.00085 4.31294 8.00001C4.54021 8.00453 4.72387 8.06477 4.83732 8.14879C4.93306 8.21968 5 8.31947 5 8.50009C5 8.70237 4.92979 8.81922 4.78928 8.93631C4.63792 9.06244 4.44136 9.15973 4.17109 9.29351C4.12524 9.3162 4.07662 9.34027 4.0264 9.36539C3.71266 9.52225 3.32368 9.72887 3.02065 10.0622C2.69919 10.4158 2.5 10.8809 2.5 11.5001C2.5 11.7763 2.72386 12.0001 3 12.0001H5.49944C5.77558 12.0001 6 11.7763 6 11.5001C6 11.224 5.77614 11.0001 5.5 11.0001H3.58925C3.63458 10.8934 3.69413 10.808 3.7606 10.7349C3.92632 10.5526 4.16234 10.4154 4.4736 10.2598C4.51206 10.2406 4.55257 10.2207 4.5946 10.2001C4.85655 10.0716 5.17854 9.91363 5.42947 9.70453C5.75771 9.43099 6 9.04783 6 8.50009C6 7.99565 5.77725 7.60048 5.43244 7.34515C5.10604 7.10344 4.69985 7.00638 4.32563 7.00007L4.31722 7C3.80459 6.99998 3.39261 7.15701 3.11107 7.31196C2.97006 7.38957 2.85942 7.46787 2.78191 7.5288C2.74303 7.55936 2.71212 7.58584 2.68951 7.60609C2.67819 7.61622 2.66892 7.62483 2.66173 7.63164L2.65251 7.64051L2.64907 7.64388L2.64765 7.64529L2.64642 7.64651ZM2.66173 7.63164L2.64642 7.64651C2.64642 7.64651 2.7471 7.55676 2.66173 7.63164Z" fill="#212121"></path><path d="M4.25011 15C3.97397 15 3.75011 15.2239 3.75011 15.5C3.75011 15.7761 3.97397 16 4.25011 16C4.5929 16 4.78233 16.0967 4.87775 16.1831C4.97201 16.2685 5.01072 16.3744 5.00671 16.4813C4.99946 16.6747 4.82083 17 4.25011 17C3.8376 17 3.62396 16.8983 3.52746 16.834C3.4769 16.8003 3.44973 16.771 3.43891 16.758L3.43482 16.7529C3.30449 16.5232 3.01552 16.4333 2.7765 16.5528C2.52951 16.6763 2.4294 16.9766 2.5529 17.2236L2.55361 17.225L2.55435 17.2265L2.55594 17.2296L2.55948 17.2364L2.56815 17.2521C2.57465 17.2636 2.58262 17.2769 2.59222 17.2919C2.61141 17.3217 2.63716 17.358 2.67069 17.3982C2.73799 17.479 2.83582 17.5747 2.97276 17.666C3.25126 17.8517 3.66262 18 4.25011 18C5.27939 18 5.97576 17.3253 6.00601 16.5187C6.01979 16.1513 5.88798 15.783 5.60959 15.5C5.88798 15.217 6.01979 14.8487 6.00601 14.4813C5.97576 13.6747 5.27939 13 4.25011 13C3.66262 13 3.25126 13.1483 2.97276 13.334C2.83582 13.4253 2.73799 13.521 2.67069 13.6018C2.63716 13.642 2.61141 13.6783 2.59222 13.7081C2.58262 13.7231 2.57465 13.7364 2.56815 13.7479L2.55948 13.7636L2.55594 13.7704L2.55435 13.7735L2.55361 13.775L2.5529 13.7764C2.4294 14.0234 2.52951 14.3237 2.7765 14.4472C3.01552 14.5667 3.30449 14.4768 3.43482 14.2471L3.43891 14.242C3.44973 14.229 3.4769 14.1997 3.52746 14.166C3.62396 14.1017 3.8376 14 4.25011 14C4.82083 14 4.99946 14.3253 5.00671 14.5187C5.01072 14.6256 4.97201 14.7315 4.87775 14.8169C4.78233 14.9033 4.5929 15 4.25011 15ZM3.43482 14.2471L3.43279 14.2498L3.43339 14.2489C3.43339 14.2489 3.43583 14.245 3.43817 14.2409L3.44223 14.2335L3.44465 14.2289L3.44596 14.2263L3.44698 14.2243C3.44309 14.232 3.43904 14.2396 3.43482 14.2471Z" fill="#212121"></path><path d="M8.49976 4C8.22361 4 7.99976 4.22386 7.99976 4.5C7.99976 4.77614 8.22361 5 8.49976 5H16.4998C16.7759 5 16.9998 4.77614 16.9998 4.5C16.9998 4.22386 16.7759 4 16.4998 4H8.49976Z" fill="#212121"></path><path d="M8.49976 9C8.22361 9 7.99976 9.22386 7.99976 9.5C7.99976 9.77614 8.22361 10 8.49976 10H16.4998C16.7759 10 16.9998 9.77614 16.9998 9.5C16.9998 9.22386 16.7759 9 16.4998 9H8.49976Z" fill="#212121"></path><path d="M7.99976 14.5C7.99976 14.2239 8.22361 14 8.49976 14H16.4998C16.7759 14 16.9998 14.2239 16.9998 14.5C16.9998 14.7761 16.7759 15 16.4998 15H8.49976C8.22361 15 7.99976 14.7761 7.99976 14.5Z" fill="#212121"></path>',6)])])}const r=s._export_sfc(d,[["render",i]]),p={class:"mc-choices-header"},h={class:"choices-header-bar"},u={class:"choice-list"},L=["value","disabled"],m={class:"prefix"},_=e.defineComponent({__name:"McChoices",props:e.mergeModels({node:{},submitted:{type:Boolean}},{selected:{},selectedModifiers:{}}),emits:["update:selected"],setup(C){const t=e.useModel(C,"selected");return(M,o)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",h,[e.createVNode(r,{class:"header-icon"}),o[1]||(o[1]=e.createElementVNode("span",{class:"header-text"},"选项",-1))]),e.createElementVNode("div",u,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.node.content,(c,l)=>(e.openBlock(),e.createElementBlock("label",{class:"choice-item",key:l},[e.withDirectives(e.createElementVNode("input",{type:"radio",value:l,"onUpdate:modelValue":o[0]||(o[0]=n=>t.value=n),disabled:C.submitted},null,8,L),[[e.vModelRadio,t.value]]),e.createElementVNode("span",m,e.toDisplayString(String.fromCharCode(65+l))+".",1),e.createVNode(s._sfc_main,{node:c},null,8,["node"])]))),128))])]))}}),f=s._export_sfc(_,[["__scopeId","data-v-1b935e83"]]);exports.default=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-B4Ca4BP0.cjs"),d={},a={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function i(C,t){return e.openBlock(),e.createElementBlock("svg",a,[...t[0]||(t[0]=[e.createStaticVNode('<path d="M5.00011 1.5C5.00011 1.26811 4.84067 1.06665 4.61499 1.01337C4.38621 0.959365 4.15942 1.07489 4.05148 1.27908C4.0295 1.32097 4.00531 1.36174 3.98053 1.40201C3.92681 1.4893 3.8447 1.61261 3.73468 1.75015C3.51178 2.02877 3.19011 2.34598 2.7765 2.55278C2.52951 2.67628 2.4294 2.97661 2.5529 3.2236C2.67639 3.47059 2.97673 3.57071 3.22372 3.44721C3.52353 3.29731 3.78202 3.11091 4.00011 2.91823V5.5C4.00011 5.77614 4.22397 6 4.50011 6C4.77625 6 5.00011 5.77614 5.00011 5.5V1.5Z" fill="#212121"></path><path d="M2.64642 7.64651C2.45117 7.84179 2.4512 8.15837 2.64647 8.35362C2.84059 8.5477 3.15457 8.54883 3.35008 8.35703L3.35665 8.35101C3.36458 8.34391 3.37911 8.33132 3.39988 8.315C3.44165 8.28217 3.50709 8.23546 3.59323 8.18805C3.76518 8.09341 4.01033 8.00085 4.31294 8.00001C4.54021 8.00453 4.72387 8.06477 4.83732 8.14879C4.93306 8.21968 5 8.31947 5 8.50009C5 8.70237 4.92979 8.81922 4.78928 8.93631C4.63792 9.06244 4.44136 9.15973 4.17109 9.29351C4.12524 9.3162 4.07662 9.34027 4.0264 9.36539C3.71266 9.52225 3.32368 9.72887 3.02065 10.0622C2.69919 10.4158 2.5 10.8809 2.5 11.5001C2.5 11.7763 2.72386 12.0001 3 12.0001H5.49944C5.77558 12.0001 6 11.7763 6 11.5001C6 11.224 5.77614 11.0001 5.5 11.0001H3.58925C3.63458 10.8934 3.69413 10.808 3.7606 10.7349C3.92632 10.5526 4.16234 10.4154 4.4736 10.2598C4.51206 10.2406 4.55257 10.2207 4.5946 10.2001C4.85655 10.0716 5.17854 9.91363 5.42947 9.70453C5.75771 9.43099 6 9.04783 6 8.50009C6 7.99565 5.77725 7.60048 5.43244 7.34515C5.10604 7.10344 4.69985 7.00638 4.32563 7.00007L4.31722 7C3.80459 6.99998 3.39261 7.15701 3.11107 7.31196C2.97006 7.38957 2.85942 7.46787 2.78191 7.5288C2.74303 7.55936 2.71212 7.58584 2.68951 7.60609C2.67819 7.61622 2.66892 7.62483 2.66173 7.63164L2.65251 7.64051L2.64907 7.64388L2.64765 7.64529L2.64642 7.64651ZM2.66173 7.63164L2.64642 7.64651C2.64642 7.64651 2.7471 7.55676 2.66173 7.63164Z" fill="#212121"></path><path d="M4.25011 15C3.97397 15 3.75011 15.2239 3.75011 15.5C3.75011 15.7761 3.97397 16 4.25011 16C4.5929 16 4.78233 16.0967 4.87775 16.1831C4.97201 16.2685 5.01072 16.3744 5.00671 16.4813C4.99946 16.6747 4.82083 17 4.25011 17C3.8376 17 3.62396 16.8983 3.52746 16.834C3.4769 16.8003 3.44973 16.771 3.43891 16.758L3.43482 16.7529C3.30449 16.5232 3.01552 16.4333 2.7765 16.5528C2.52951 16.6763 2.4294 16.9766 2.5529 17.2236L2.55361 17.225L2.55435 17.2265L2.55594 17.2296L2.55948 17.2364L2.56815 17.2521C2.57465 17.2636 2.58262 17.2769 2.59222 17.2919C2.61141 17.3217 2.63716 17.358 2.67069 17.3982C2.73799 17.479 2.83582 17.5747 2.97276 17.666C3.25126 17.8517 3.66262 18 4.25011 18C5.27939 18 5.97576 17.3253 6.00601 16.5187C6.01979 16.1513 5.88798 15.783 5.60959 15.5C5.88798 15.217 6.01979 14.8487 6.00601 14.4813C5.97576 13.6747 5.27939 13 4.25011 13C3.66262 13 3.25126 13.1483 2.97276 13.334C2.83582 13.4253 2.73799 13.521 2.67069 13.6018C2.63716 13.642 2.61141 13.6783 2.59222 13.7081C2.58262 13.7231 2.57465 13.7364 2.56815 13.7479L2.55948 13.7636L2.55594 13.7704L2.55435 13.7735L2.55361 13.775L2.5529 13.7764C2.4294 14.0234 2.52951 14.3237 2.7765 14.4472C3.01552 14.5667 3.30449 14.4768 3.43482 14.2471L3.43891 14.242C3.44973 14.229 3.4769 14.1997 3.52746 14.166C3.62396 14.1017 3.8376 14 4.25011 14C4.82083 14 4.99946 14.3253 5.00671 14.5187C5.01072 14.6256 4.97201 14.7315 4.87775 14.8169C4.78233 14.9033 4.5929 15 4.25011 15ZM3.43482 14.2471L3.43279 14.2498L3.43339 14.2489C3.43339 14.2489 3.43583 14.245 3.43817 14.2409L3.44223 14.2335L3.44465 14.2289L3.44596 14.2263L3.44698 14.2243C3.44309 14.232 3.43904 14.2396 3.43482 14.2471Z" fill="#212121"></path><path d="M8.49976 4C8.22361 4 7.99976 4.22386 7.99976 4.5C7.99976 4.77614 8.22361 5 8.49976 5H16.4998C16.7759 5 16.9998 4.77614 16.9998 4.5C16.9998 4.22386 16.7759 4 16.4998 4H8.49976Z" fill="#212121"></path><path d="M8.49976 9C8.22361 9 7.99976 9.22386 7.99976 9.5C7.99976 9.77614 8.22361 10 8.49976 10H16.4998C16.7759 10 16.9998 9.77614 16.9998 9.5C16.9998 9.22386 16.7759 9 16.4998 9H8.49976Z" fill="#212121"></path><path d="M7.99976 14.5C7.99976 14.2239 8.22361 14 8.49976 14H16.4998C16.7759 14 16.9998 14.2239 16.9998 14.5C16.9998 14.7761 16.7759 15 16.4998 15H8.49976C8.22361 15 7.99976 14.7761 7.99976 14.5Z" fill="#212121"></path>',6)])])}const r=s._export_sfc(d,[["render",i]]),p={class:"mc-choices-header"},h={class:"choices-header-bar"},u={class:"choice-list"},L=["value","disabled"],m={class:"prefix"},_=e.defineComponent({__name:"McChoices",props:e.mergeModels({node:{},submitted:{type:Boolean}},{selected:{},selectedModifiers:{}}),emits:["update:selected"],setup(C){const t=e.useModel(C,"selected");return(M,o)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",h,[e.createVNode(r,{class:"header-icon"}),o[1]||(o[1]=e.createElementVNode("span",{class:"header-text"},"选项",-1))]),e.createElementVNode("div",u,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.node.content,(c,l)=>(e.openBlock(),e.createElementBlock("label",{class:"choice-item",key:l},[e.withDirectives(e.createElementVNode("input",{type:"radio",value:l,"onUpdate:modelValue":o[0]||(o[0]=n=>t.value=n),disabled:C.submitted},null,8,L),[[e.vModelRadio,t.value]]),e.createElementVNode("span",m,e.toDisplayString(String.fromCharCode(65+l))+".",1),e.createVNode(s._sfc_main,{node:c},null,8,["node"])]))),128))])]))}}),f=s._export_sfc(_,[["__scopeId","data-v-1b935e83"]]);exports.default=f;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as l, createStaticVNode as r, defineComponent as h, mergeModels as p, useModel as L, createElementVNode as C, createVNode as d, Fragment as m, renderList as u, withDirectives as _, vModelRadio as f, toDisplayString as M } from "vue";
2
- import { _ as i, b as v } from "./index-CTcnNF6r.js";
2
+ import { _ as i, b as v } from "./index-DZ9p1utK.js";
3
3
  const b = {}, H = {
4
4
  fill: "none",
5
5
  viewBox: "0 0 20 20",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as e, createElementVNode as t, defineComponent as i, createVNode as a, Fragment as _, renderList as l, createBlock as u, useId as m } from "vue";
2
- import { _ as r, b as C } from "./index-CTcnNF6r.js";
2
+ import { _ as r, b as C } from "./index-DZ9p1utK.js";
3
3
  const p = {}, f = {
4
4
  fill: "none",
5
5
  viewBox: "0 0 20 20",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-kIuhy4WL.cjs"),r={},l={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function d(o,t){return e.openBlock(),e.createElementBlock("svg",l,[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M14.4987 3C15.8793 3 16.9985 4.11916 16.9985 5.49972V9.00234C16.6571 9.0179 16.3179 9.0941 15.9986 9.23094V6.99956H3.99989V14.4987C3.99989 15.3271 4.67139 15.9986 5.49972 15.9986H9.47395C9.45833 16.0499 9.44398 16.1017 9.43092 16.1539L9.21979 16.9985H5.49972C4.11916 16.9985 3 15.8793 3 14.4987V5.49972C3 4.11916 4.11916 3 5.49972 3H14.4987ZM14.4987 3.99989H5.49972C4.67139 3.99989 3.99989 4.67139 3.99989 5.49972V5.99967H15.9986V5.49972C15.9986 4.67139 15.3271 3.99989 14.4987 3.99989ZM10.9789 15.3758L15.8078 10.5469C16.538 9.81666 17.722 9.81666 18.4523 10.5469C19.1826 11.2772 19.1826 12.4612 18.4523 13.1915L13.6234 18.0204C13.3419 18.3019 12.9891 18.5016 12.6028 18.5982L11.1051 18.9726C10.4537 19.1355 9.86376 18.5455 10.0266 17.8942L10.401 16.3964C10.4976 16.0101 10.6973 15.6574 10.9789 15.3758Z",fill:"#212121"},null,-1)])])}const i=n._export_sfc(r,[["render",d]]),a={class:"mc-question-header"},u={class:"question-header"},_={class:"question-content"},m=e.defineComponent({__name:"McQuestion",props:{node:{}},setup(o){return(t,s)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",u,[e.createVNode(i,{class:"icon"}),s[0]||(s[0]=e.createElementVNode("span",{class:"header-text"},"题目",-1))]),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.content,c=>(e.openBlock(),e.createBlock(n._sfc_main,{node:c,key:e.useId()},null,8,["node"]))),128))])]))}}),p=n._export_sfc(m,[["__scopeId","data-v-d7042536"]]);exports.default=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-B4Ca4BP0.cjs"),r={},l={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function d(o,t){return e.openBlock(),e.createElementBlock("svg",l,[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M14.4987 3C15.8793 3 16.9985 4.11916 16.9985 5.49972V9.00234C16.6571 9.0179 16.3179 9.0941 15.9986 9.23094V6.99956H3.99989V14.4987C3.99989 15.3271 4.67139 15.9986 5.49972 15.9986H9.47395C9.45833 16.0499 9.44398 16.1017 9.43092 16.1539L9.21979 16.9985H5.49972C4.11916 16.9985 3 15.8793 3 14.4987V5.49972C3 4.11916 4.11916 3 5.49972 3H14.4987ZM14.4987 3.99989H5.49972C4.67139 3.99989 3.99989 4.67139 3.99989 5.49972V5.99967H15.9986V5.49972C15.9986 4.67139 15.3271 3.99989 14.4987 3.99989ZM10.9789 15.3758L15.8078 10.5469C16.538 9.81666 17.722 9.81666 18.4523 10.5469C19.1826 11.2772 19.1826 12.4612 18.4523 13.1915L13.6234 18.0204C13.3419 18.3019 12.9891 18.5016 12.6028 18.5982L11.1051 18.9726C10.4537 19.1355 9.86376 18.5455 10.0266 17.8942L10.401 16.3964C10.4976 16.0101 10.6973 15.6574 10.9789 15.3758Z",fill:"#212121"},null,-1)])])}const i=n._export_sfc(r,[["render",d]]),a={class:"mc-question-header"},u={class:"question-header"},_={class:"question-content"},m=e.defineComponent({__name:"McQuestion",props:{node:{}},setup(o){return(t,s)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",u,[e.createVNode(i,{class:"icon"}),s[0]||(s[0]=e.createElementVNode("span",{class:"header-text"},"题目",-1))]),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.content,c=>(e.openBlock(),e.createBlock(n._sfc_main,{node:c,key:e.useId()},null,8,["node"]))),128))])]))}}),p=n._export_sfc(m,[["__scopeId","data-v-d7042536"]]);exports.default=p;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, createElementBlock as t, openBlock as e, createElementVNode as r, normalizeClass as s, Fragment as a, renderList as l, createBlock as d, useId as i } from "vue";
2
- import { b as m, _ as u } from "./index-CTcnNF6r.js";
2
+ import { b as m, _ as u } from "./index-DZ9p1utK.js";
3
3
  const _ = { class: "mc-solution" }, p = /* @__PURE__ */ c({
4
4
  __name: "McSolution",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-kIuhy4WL.cjs"),c={class:"mc-solution"},r=e.defineComponent({__name:"McSolution",props:{node:{},correct:{type:Boolean}},setup(o){return(s,a)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",{class:e.normalizeClass(["solution-content",o.correct?"correct":"wrong"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.content,n=>(e.openBlock(),e.createBlock(t._sfc_main,{node:n,key:e.useId()},null,8,["node"]))),128))],2)]))}}),l=t._export_sfc(r,[["__scopeId","data-v-cb592ef8"]]);exports.default=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B4Ca4BP0.cjs"),c={class:"mc-solution"},r=e.defineComponent({__name:"McSolution",props:{node:{},correct:{type:Boolean}},setup(o){return(s,a)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",{class:e.normalizeClass(["solution-content",o.correct?"correct":"wrong"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.content,n=>(e.openBlock(),e.createBlock(t._sfc_main,{node:n,key:e.useId()},null,8,["node"]))),128))],2)]))}}),l=t._export_sfc(r,[["__scopeId","data-v-cb592ef8"]]);exports.default=l;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as p, ref as n, createElementBlock as r, openBlock as c, createVNode as u, createCommentVNode as a, createBlock as v, createElementVNode as b } from "vue";
2
- import _ from "./McChoices-DDKPec4G.js";
3
- import C from "./McQuestion-1efXXh4O.js";
4
- import h from "./McSolution-XXRJWaYt.js";
5
- import { _ as k } from "./index-CTcnNF6r.js";
2
+ import _ from "./McChoices-LBSYtxIG.js";
3
+ import C from "./McQuestion-BAxgspnR.js";
4
+ import h from "./McSolution-B8Ir0TDg.js";
5
+ import { _ as k } from "./index-DZ9p1utK.js";
6
6
  const x = { class: "multiple-choice" }, M = {
7
7
  key: 0,
8
8
  class: "submit-area"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./McChoices-BDsJqV2C.cjs"),i=require("./McQuestion-CChLZMYt.cjs"),m=require("./McSolution-5feP69N7.cjs"),v=require("./index-kIuhy4WL.cjs"),f={class:"multiple-choice"},b={key:0,class:"submit-area"},p=["disabled"],k=e.defineComponent({__name:"MultipleChoice",props:{node:{}},setup(t){const u=t,o=e.ref(null),n=e.ref(!1),c=e.ref(!1),d=()=>{n.value=!0;const l=u.node.content[1].attrs.correctIndex;c.value=o.value===l};return(l,s)=>(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(i.default,{node:t.node.content[0]},null,8,["node"]),e.createVNode(a.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=r=>o.value=r),node:t.node.content[1],submitted:n.value},null,8,["selected","node","submitted"]),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("button",{class:"submit-button",disabled:o.value===null,onClick:d},"提交答案",8,p)])),n.value?(e.openBlock(),e.createBlock(m.default,{key:1,node:t.node.content[2],correct:c.value},null,8,["node","correct"])):e.createCommentVNode("",!0)]))}}),C=v._export_sfc(k,[["__scopeId","data-v-7715f66b"]]);exports.default=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./McChoices-C3ry5JEW.cjs"),i=require("./McQuestion-DNZ1Cg8x.cjs"),m=require("./McSolution-Bd70JP5F.cjs"),v=require("./index-B4Ca4BP0.cjs"),f={class:"multiple-choice"},b={key:0,class:"submit-area"},p=["disabled"],k=e.defineComponent({__name:"MultipleChoice",props:{node:{}},setup(t){const u=t,o=e.ref(null),n=e.ref(!1),c=e.ref(!1),d=()=>{n.value=!0;const l=u.node.content[1].attrs.correctIndex;c.value=o.value===l};return(l,s)=>(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(i.default,{node:t.node.content[0]},null,8,["node"]),e.createVNode(a.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=r=>o.value=r),node:t.node.content[1],submitted:n.value},null,8,["selected","node","submitted"]),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("button",{class:"submit-button",disabled:o.value===null,onClick:d},"提交答案",8,p)])),n.value?(e.openBlock(),e.createBlock(m.default,{key:1,node:t.node.content[2],correct:c.value},null,8,["node","correct"])):e.createCommentVNode("",!0)]))}}),C=v._export_sfc(k,[["__scopeId","data-v-7715f66b"]]);exports.default=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-kIuhy4WL.cjs"),o={class:"paragraph"},a=e.defineComponent({__name:"Paragraph",props:{node:{}},setup(s){return(r,c)=>(e.openBlock(),e.createElementBlock("p",o,[e.renderSlot(r.$slots,"default",{},void 0,!0)]))}}),n=t._export_sfc(a,[["__scopeId","data-v-550653ec"]]);exports.default=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B4Ca4BP0.cjs"),o={class:"paragraph"},a=e.defineComponent({__name:"Paragraph",props:{node:{}},setup(s){return(r,c)=>(e.openBlock(),e.createElementBlock("p",o,[e.renderSlot(r.$slots,"default",{},void 0,!0)]))}}),n=t._export_sfc(a,[["__scopeId","data-v-550653ec"]]);exports.default=n;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, createElementBlock as r, openBlock as a, renderSlot as t } from "vue";
2
- import { _ as p } from "./index-CTcnNF6r.js";
2
+ import { _ as p } from "./index-DZ9p1utK.js";
3
3
  const s = { class: "paragraph" }, n = /* @__PURE__ */ o({
4
4
  __name: "Paragraph",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-kIuhy4WL.cjs"),n={};function o(e,s){return t.renderSlot(e.$slots,"default")}const c=r._export_sfc(n,[["render",o]]);exports.default=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-B4Ca4BP0.cjs"),n={};function o(e,s){return t.renderSlot(e.$slots,"default")}const c=r._export_sfc(n,[["render",o]]);exports.default=c;
@@ -1,5 +1,5 @@
1
1
  import { renderSlot as e } from "vue";
2
- import { _ as o } from "./index-CTcnNF6r.js";
2
+ import { _ as o } from "./index-DZ9p1utK.js";
3
3
  const t = {};
4
4
  function n(r, s) {
5
5
  return e(r.$slots, "default");
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./SlotNode-DqwL4TkF.cjs"),u=e.defineComponent({__name:"Text",props:{node:{}},setup(t){const l=e.computed(()=>t.node.marks?.[0]),n=e.computed(()=>l.value?.type),o=e.computed(()=>r[l.value?.type]),r={bold:"strong",italic:"em",underline:"u",strike:"s",highlight:"mark",textStyle:"span",link:"a",code:"code"};return(s,d)=>{const a=e.resolveComponent("Text",!0);return t.node.marks?.length&&n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.value==="link"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:0,target:l.value.attrs?.href,href:l.value.attrs?.href,class:e.normalizeClass(l.value.attrs?.class),rel:l.value.attrs?.rel},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["target","href","class","rel"])):n.value==="highlight"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:1,style:e.normalizeStyle({...l.value.attrs,color:null,"background-color":l.value.attrs.color})},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["style"])):n.value==="textStyle"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:2,style:e.normalizeStyle(l.value.attrs??null)},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["style"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:3},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1}))],64)):(e.openBlock(),e.createBlock(c.default,{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.node.text),1)]),_:1}))}}});exports.default=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./SlotNode-C_X3NC06.cjs"),u=e.defineComponent({__name:"Text",props:{node:{}},setup(t){const l=e.computed(()=>t.node.marks?.[0]),n=e.computed(()=>l.value?.type),o=e.computed(()=>r[l.value?.type]),r={bold:"strong",italic:"em",underline:"u",strike:"s",highlight:"mark",textStyle:"span",link:"a",code:"code"};return(s,d)=>{const a=e.resolveComponent("Text",!0);return t.node.marks?.length&&n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.value==="link"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:0,target:l.value.attrs?.href,href:l.value.attrs?.href,class:e.normalizeClass(l.value.attrs?.class),rel:l.value.attrs?.rel},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["target","href","class","rel"])):n.value==="highlight"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:1,style:e.normalizeStyle({...l.value.attrs,color:null,"background-color":l.value.attrs.color})},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["style"])):n.value==="textStyle"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:2,style:e.normalizeStyle(l.value.attrs??null)},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["style"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:3},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1}))],64)):(e.openBlock(),e.createBlock(c.default,{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.node.text),1)]),_:1}))}}});exports.default=u;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, computed as d, resolveComponent as y, createElementBlock as v, createBlock as a, openBlock as l, Fragment as f, resolveDynamicComponent as s, normalizeClass as h, withCtx as n, createVNode as c, normalizeStyle as m, createTextVNode as g, toDisplayString as x } from "vue";
2
- import T from "./SlotNode-BhXyQCzg.js";
2
+ import T from "./SlotNode-CtJD0kba.js";
3
3
  const N = /* @__PURE__ */ i({
4
4
  __name: "Text",
5
5
  props: {
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),a=Symbol(),l=e.ref([]),u=Symbol(),p=o=>{const t=[],n=s=>{s.type==="image"&&t.push(s),s.content&&s.content.forEach(i=>n(i))};return n(o),t},c=(o,t)=>{const n=o.__vccOpts||o;for(const[s,i]of t)n[s]=i;return n},v={},f={class:"error-wrapper"};function q(o,t){return e.openBlock(),e.createElementBlock("div",f,"组件加载失败")}const P=c(v,[["render",q],["__scopeId","data-v-4fa940a8"]]),k={};function g(o,t){return"loading..."}const y=c(k,[["render",g]]),r=(o,t={loadingComponent:y,delay:200,errorComponent:P,timeout:5e3})=>e.defineAsyncComponent({loader:o,...t});function _(o){if(!o||!o.content||!Array.isArray(o.content))return[o];const t=[];let n=[];return o.content.forEach(s=>{s.type==="heading"?(n.length>0&&t.push({type:"doc",content:n}),n=[s]):n.push(s)}),n.length>0&&t.push({type:"doc",content:n}),t}const B={"attachment-inline":r(()=>Promise.resolve().then(()=>require("./AttachmentInline-DLTAOygO.cjs"))),"attachment-block":r(()=>Promise.resolve().then(()=>require("./AttachmentBlock-CiL-Qygv.cjs")))},b={text:r(()=>Promise.resolve().then(()=>require("./Text-C_OxsnsP.cjs"))),paragraph:r(()=>Promise.resolve().then(()=>require("./Paragraph-Bx8A4csJ.cjs"))),heading:r(()=>Promise.resolve().then(()=>require("./Heading-BUnffIAz.cjs"))),orderedList:r(()=>Promise.resolve().then(()=>require("./OrderedList-DMl3tvwP.cjs"))),bulletList:r(()=>Promise.resolve().then(()=>require("./BulletList-CFjF3U-l.cjs"))),listItem:r(()=>Promise.resolve().then(()=>require("./ListItem-BrjxeGxz.cjs"))),horizontalRule:r(()=>Promise.resolve().then(()=>require("./HorizontalRule-CE09LZGf.cjs"))),blockquote:r(()=>Promise.resolve().then(()=>require("./Blockquote-CQSBFnsu.cjs"))),hardBreak:r(()=>Promise.resolve().then(()=>require("./HardBreak-Dbf5Zg5o.cjs")))},C={callout:r(()=>Promise.resolve().then(()=>require("./Callout-D7puQgnx.cjs")))},M={codeBlock:r(()=>Promise.resolve().then(()=>require("./CodeBlock-SLlc17jY.cjs"))),cellOutput:r(()=>Promise.resolve().then(()=>require("./CellOutput-C1rqdLdu.cjs")))},x={foldBlock:r(()=>Promise.resolve().then(()=>require("./FoldBlock-D9f0newS.cjs")))},I={grid:r(()=>Promise.resolve().then(()=>require("./Grid-cLwFeDko.cjs")))},w={iframe:r(()=>Promise.resolve().then(()=>require("./IFrame-CQqNUygF.cjs")))},A={image:r(()=>Promise.resolve().then(()=>require("./Image-DXcI8Q6W.cjs")))},E={math_inline:r(()=>Promise.resolve().then(()=>require("./MathInline-Dog67RDU.cjs"))),math_display:r(()=>Promise.resolve().then(()=>require("./MathDisplay-gzdi6eYn.cjs")))},L={multipleChoice:r(()=>Promise.resolve().then(()=>require("./MultipleChoice-mDLIyHfi.cjs"))),mcQuestion:r(()=>Promise.resolve().then(()=>require("./McQuestion-DNZ1Cg8x.cjs"))),mcChoices:r(()=>Promise.resolve().then(()=>require("./McChoices-C3ry5JEW.cjs"))),mcSolution:r(()=>Promise.resolve().then(()=>require("./McSolution-Bd70JP5F.cjs")))},N={table:r(()=>Promise.resolve().then(()=>require("./TableContainer-C5KXY6f7.cjs"))),tableHeader:r(()=>Promise.resolve().then(()=>require("./TableHeader-BTuqvorM.cjs"))),tableRow:r(()=>Promise.resolve().then(()=>require("./TableRow-D4F6AKFt.cjs"))),tableCell:r(()=>Promise.resolve().then(()=>require("./TableCell-BY9gdldc.cjs")))},R={doc:r(()=>Promise.resolve().then(()=>require("./Doc-D2yvlSII.cjs"))),slotNode:r(()=>Promise.resolve().then(()=>require("./SlotNode-C_X3NC06.cjs")))},$={...B,...b,...C,...M,...x,...I,...A,...E,...L,...N,...R,...w},m=e.defineComponent({__name:"TreeRecursive",props:{node:{}},setup(o){const t=new Set(["blockquote","orderedList","bulletList","paragraph","math_display","codeBlock","cellOutput","callout","foldBlock","image","attachment-block","grid","table","iframe","multipleChoice"]),n=e.computed(()=>t.has(o.node.type)&&o.node.attrs&&o.node.attrs["block-id"]?{"data-block-id":o.node.attrs["block-id"]}:{});return(s,i)=>{const d=e.resolveComponent("TreeRecursive",!0);return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref($)[o.node.type]),e.mergeProps({node:o.node},n.value),{default:e.withCtx(()=>[o.node.content&&!(o.node.type in["foldBlock","grid","callout"])?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.node.content,h=>(e.openBlock(),e.createBlock(d,{node:h,key:e.useId()},null,8,["node"]))),128)):e.createCommentVNode("",!0)]),_:1},16,["node"]))]),_:1})}}}),S={class:"tree-render"},D=e.defineComponent({__name:"TreeRender",props:{node:{},axios:{}},setup(o){return e.provide(u,l),e.provide(a,o.axios),e.watch(()=>o.node,t=>{l.value=p(t)},{immediate:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(m,{node:o.node},null,8,["node"])]))}});exports._export_sfc=c;exports._sfc_main=m;exports._sfc_main$1=D;exports.axiosKey=a;exports.imageNodesKey=u;exports.splitDocIntoMultiPagesByHeading=_;