self.webpackChunk(["mode/htmlmixed"],{2:function(t,e,n){!function(t){"use strict";var e={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"]]},n={};function a(t,e){var a=t.match(function(t){var e=n[t];return e||(n[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(e));return a?/^\s*(.*?)\s*$/.exec(a[2])[1]:""}function l(t,e){return new RegExp((e?"^":"")+"</s*"+t+"s*>","i")}function o(t,e){for(var n in t)for(var a=e[n]||(e[n]=[]),l=t[n],o=l.length-1;o>=0;o--)a.unshift(l[o])}t.defineMode("htmlmixed",(function(n,c){var r=t.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:c.multilineTagIndentFactor,multilineTagIndentPastTag:c.multilineTagIndentPastTag}),i={},s=c&&c.tags,u=c&&c.scriptTypes;if(o(e,i),s&&o(s,i),u)for(var m=u.length-1;m>=0;m--)i.script.unshift(["type",u[m].matches,u[m].mode]);function d(e,o){var c,s=r.token(e,o.htmlState),u=/\btag\b/.test(s);if(u&&!/[<>\s\/]/.test(e.current())&&(c=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&i.hasOwnProperty(c))o.inTag=c+" ";else if(o.inTag&&u&&/>$/.test(e.current())){var m=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var g=">"==e.current()&&function(t,e){for(var n=0;n<t.length;n++){var l=t[n];if(!l[0]||l[1].test(a(e,l[0])))return l[2]}}(i[m[1]],m[2]),h=t.getMode(n,g),f=l(m[1],!0),p=l(m[1],!1);o.token=function(t,e){return t.match(f,!1)?(e.token=d,e.localState=e.localMode=null,null):function(t,e,n){var a=t.current(),l=a.search(e);return l>-1?t.backUp(a.length-l):a.match(/<\/?$/)&&(t.backUp(a.length),t.match(e,!1)||t.match(a)),n}(t,p,e.localMode.token(t,e.localState))},o.localMode=h,o.localState=t.startState(h,r.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=e.current(),e.eol()&&(o.inTag+=" "));return s}return{startState:function(){return{token:d,inTag:null,localMode:null,localState:null,htmlState:t.startState(r)}},copyState:function(e){var n;return e.localState&&(n=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:n,htmlState:t.copyState(r,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,n,a){return!e.localMode||/^\s*<\//.test(n)?r.indent(e.htmlState,n,a):e.localMode.indent?e.localMode.indent(e.localState,n,a):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||r}}}}),"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")}(n(0),n(4),n(3),n(5))}});
//# sourceMappingURL=htmlmixed.js.map