import{A as O}from"./index.f4d41e67.entry.js";function A(v,b){return b.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(f){if(f!=="default"&&!(f in v)){var a=Object.getOwnPropertyDescriptor(i,f);Object.defineProperty(v,f,a.get?a:{enumerable:!0,get:function(){return i[f]}})}})}),Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(v,b){(function(i){i(O.exports)})(function(i){i.defineMode("smarty",function(f,a){var g=a.rightDelimiter||"}",c=a.leftDelimiter||"{",k=a.version||2,d=i.getMode(f,a.baseMode||"null"),y=["debug","extends","function","include","literal"],u={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},h;function n(e,r){return h=r,e}function I(e,r,t){return r.tokenize=t,t(e,r)}function w(e,r){return r==null&&(r=e.pos),k===3&&c=="{"&&(r==e.string.length||/\s/.test(e.string.charAt(r)))}function p(e,r){for(var t=e.string,l=e.pos;;){var o=t.indexOf(c,l);if(l=o+c.length,o==-1||!w(e,o+c.length))break}if(o==e.pos)return e.match(c),e.eat("*")?I(e,r,W("comment","*"+g)):(r.depth++,r.tokenize=z,h="startTag","tag");o>-1&&(e.string=t.slice(0,o));var s=d.token(e,r.base);return o>-1&&(e.string=t),s}function z(e,r){if(e.match(g,!0))return k===3?(r.depth--,r.depth<=0&&(r.tokenize=p)):r.tokenize=p,n("tag",null);if(e.match(c,!0))return r.depth++,n("tag","startTag");var t=e.next();if(t=="$")return e.eatWhile(u.validIdentifier),n("variable-2","variable");if(t=="|")return n("operator","pipe");if(t==".")return n("operator","property");if(u.stringChar.test(t))return r.tokenize=S(t),n("string","string");if(u.operatorChars.test(t))return e.eatWhile(u.operatorChars),n("operator","operator");if(t=="["||t=="]")return n("bracket","bracket");if(t=="("||t==")")return n("bracket","operator");if(/\d/.test(t))return e.eatWhile(/\d/),n("number","number");if(r.last=="variable"){if(t=="@")return e.eatWhile(u.validIdentifier),n("property","property");if(t=="|")return e.eatWhile(u.validIdentifier),n("qualifier","modifier")}else{if(r.last=="pipe")return e.eatWhile(u.validIdentifier),n("qualifier","modifier");if(r.last=="whitespace")return e.eatWhile(u.validIdentifier),n("attribute","modifier")}if(r.last=="property")return e.eatWhile(u.validIdentifier),n("property",null);if(/\s/.test(t))return h="whitespace",null;var l="";t!="/"&&(l+=t);for(var o=null;o=e.eat(u.validIdentifier);)l+=o;for(var s=0,x=y.length;s<x;s++)if(y[s]==l)return n("keyword","keyword");return/\s/.test(t)?null:n("tag","tag")}function S(e){return function(r,t){for(var l=null,o=null;!r.eol();){if(o=r.peek(),r.next()==e&&l!=="\\"){t.tokenize=z;break}l=o}return"string"}}function W(e,r){return function(t,l){for(;!t.eol();){if(t.match(r)){l.tokenize=p;break}t.next()}return e}}return{startState:function(){return{base:i.startState(d),tokenize:p,last:null,depth:0}},copyState:function(e){return{base:i.copyState(d,e.base),tokenize:e.tokenize,last:e.last,depth:e.depth}},innerMode:function(e){if(e.tokenize==p)return{mode:d,state:e.base}},token:function(e,r){var t=r.tokenize(e,r);return r.last=h,t},indent:function(e,r,t){return e.tokenize==p&&d.indent?d.indent(e.base,r,t):i.Pass},blockCommentStart:c+"*",blockCommentEnd:"*"+g}}),i.defineMIME("text/x-smarty","smarty")})})();var _=m.exports,D=A({__proto__:null,default:_},[m.exports]);export{D as s};
