import{A as b}from"./index.f4d41e67.entry.js";function v(c,s){return s.forEach(function(l){l&&typeof l!="string"&&!Array.isArray(l)&&Object.keys(l).forEach(function(o){if(o!=="default"&&!(o in c)){var f=Object.getOwnPropertyDescriptor(l,o);Object.defineProperty(c,o,f.get?f:{enumerable:!0,get:function(){return l[o]}})}})}),Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function(c,s){(function(l){l(b.exports)})(function(l){l.defineMode("dtd",function(o){var f=o.indentUnit,r;function u(i,e){return r=e,i}function a(i,e){var n=i.next();if(n=="<"&&i.eat("!")){if(i.eatWhile(/[\-]/))return e.tokenize=h,h(i,e);if(i.eatWhile(/[\w]/))return u("keyword","doindent")}else{if(n=="<"&&i.eat("?"))return e.tokenize=p("meta","?>"),u("meta",n);if(n=="#"&&i.eatWhile(/[\w]/))return u("atom","tag");if(n=="|")return u("keyword","separator");if(n.match(/[\(\)\[\]\-\.,\+\?>]/))return u(null,n);if(n.match(/[\[\]]/))return u("rule",n);if(n=='"'||n=="'")return e.tokenize=g(n),e.tokenize(i,e);if(i.eatWhile(/[a-zA-Z\?\+\d]/)){var t=i.current();return t.substr(t.length-1,t.length).match(/\?|\+/)!==null&&i.backUp(1),u("tag","tag")}else return n=="%"||n=="*"?u("number","number"):(i.eatWhile(/[\w\\\-_%.{,]/),u(null,null))}}function h(i,e){for(var n=0,t;(t=i.next())!=null;){if(n>=2&&t==">"){e.tokenize=a;break}n=t=="-"?n+1:0}return u("comment","comment")}function g(i){return function(e,n){for(var t=!1,d;(d=e.next())!=null;){if(d==i&&!t){n.tokenize=a;break}t=!t&&d=="\\"}return u("string","tag")}}function p(i,e){return function(n,t){for(;!n.eol();){if(n.match(e)){t.tokenize=a;break}n.next()}return i}}return{startState:function(i){return{tokenize:a,baseIndent:i||0,stack:[]}},token:function(i,e){if(i.eatSpace())return null;var n=e.tokenize(i,e),t=e.stack[e.stack.length-1];return i.current()=="["||r==="doindent"||r=="["?e.stack.push("rule"):r==="endtag"?e.stack[e.stack.length-1]="endtag":i.current()=="]"||r=="]"||r==">"&&t=="rule"?e.stack.pop():r=="["&&e.stack.push("["),n},indent:function(i,e){var n=i.stack.length;return e.charAt(0)==="]"?n--:e.substr(e.length-1,e.length)===">"&&(e.substr(0,1)==="<"||r=="doindent"&&e.length>1||(r=="doindent"?n--:r==">"&&e.length>1||r=="tag"&&e!==">"||(r=="tag"&&i.stack[i.stack.length-1]=="rule"?n--:r=="tag"?n++:e===">"&&i.stack[i.stack.length-1]=="rule"&&r===">"?n--:e===">"&&i.stack[i.stack.length-1]=="rule"||(e.substr(0,1)!=="<"&&e.substr(0,1)===">"?n=n-1:e===">"||(n=n-1)))),(r==null||r=="]")&&n--),i.baseIndent+n*f},electricChars:"]>"}}),l.defineMIME("application/xml-dtd","dtd")})})();var y=k.exports,w=v({__proto__:null,default:y},[k.exports]);export{w as d};
