import{b$ as R,c1 as _}from"./vendor.c7523e55.js";import{a as I}from"./javascript.2b131b8f.js";import{a as A}from"./css.f1870962.js";function F(m,x){return x.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(u){if(u!=="default"&&!(u in m)){var g=Object.getOwnPropertyDescriptor(c,u);Object.defineProperty(m,u,g.get?g:{enumerable:!0,get:function(){return c[u]}})}})}),Object.freeze(Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}};(function(m,x){(function(c){c(R.exports,_.exports,I.exports,A.exports)})(function(c){var u={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function g(n,l,a){var o=n.current(),r=o.search(l);return r>-1?n.backUp(o.length-r):o.match(/<\/?$/)&&(n.backUp(o.length),n.match(l,!1)||n.match(o)),a}var S={};function k(n){var l=S[n];return l||(S[n]=new RegExp("\\s+"+n+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function w(n,l){var a=n.match(k(l));return a?/^\s*(.*?)\s*$/.exec(a[2])[1]:""}function y(n,l){return new RegExp((l?"^":"")+"</s*"+n+"s*>","i")}function T(n,l){for(var a in n)for(var o=l[a]||(l[a]=[]),r=n[a],i=r.length-1;i>=0;i--)o.unshift(r[i])}function O(n,l){for(var a=0;a<n.length;a++){var o=n[a];if(!o[0]||o[1].test(w(l,o[0])))return o[2]}}c.defineMode("htmlmixed",function(n,l){var a=c.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:l.multilineTagIndentFactor,multilineTagIndentPastTag:l.multilineTagIndentPastTag,allowMissingTagName:l.allowMissingTagName}),o={},r=l&&l.tags,i=l&&l.scriptTypes;if(T(u,o),r&&T(r,o),i)for(var p=i.length-1;p>=0;p--)o.script.unshift(["type",i[p].matches,i[p].mode]);function b(t,e){var f=a.token(t,e.htmlState),j=/\btag\b/.test(f),d;if(j&&!/[<>\s\/]/.test(t.current())&&(d=e.htmlState.tagName&&e.htmlState.tagName.toLowerCase())&&o.hasOwnProperty(d))e.inTag=d+" ";else if(e.inTag&&j&&/>$/.test(t.current())){var h=/^([\S]+) (.*)/.exec(e.inTag);e.inTag=null;var P=t.current()==">"&&O(o[h[1]],h[2]),M=c.getMode(n,P),N=y(h[1],!0),E=y(h[1],!1);e.token=function(v,s){return v.match(N,!1)?(s.token=b,s.localState=s.localMode=null,null):g(v,E,s.localMode.token(v,s.localState))},e.localMode=M,e.localState=c.startState(M,a.indent(e.htmlState,"",""))}else e.inTag&&(e.inTag+=t.current(),t.eol()&&(e.inTag+=" "));return f}return{startState:function(){var t=c.startState(a);return{token:b,inTag:null,localMode:null,localState:null,htmlState:t}},copyState:function(t){var e;return t.localState&&(e=c.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:e,htmlState:c.copyState(a,t.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(t,e,f){return!t.localMode||/^\s*<\//.test(e)?a.indent(t.htmlState,e,f):t.localMode.indent?t.localMode.indent(t.localState,e,f):c.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||a}}}},"xml","javascript","css"),c.defineMIME("text/html","htmlmixed")})})();var U=$.exports,L=F({__proto__:null,default:U},[$.exports]);export{$ as a,L as h};
