UNPKG

laravelphp

Version:

laravel2js and js2laravel converter laravel php resource utils

1 lines 130 kB
!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).laravelphp=t()}(function(){return function s(n,r,h){function o(e,t){if(!r[e]){if(!n[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(a)return a(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}i=r[e]={exports:{}},n[e][0].call(i.exports,function(t){return o(n[e][1][t]||t)},i,i.exports,s,n,r,h)}return r[e].exports}for(var a="function"==typeof require&&require,t=0;t<h.length;t++)o(h[t]);return o}({1:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,Object.defineProperty(i,"js2laravel",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(i,"laravel2js",{enumerable:!0,get:function(){return s.default}});var s=r(t("./laravel2js.js")),n=r(t("./js2laravel.js"));function r(t){return t&&t.__esModule?t:{default:t}}i.default={laravel2js:s.default,js2laravel:n.default}},{"./js2laravel.js":2,"./laravel2js.js":3}],2:[function(t,e,i){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){return e?n(t,e):new Promise(function(i,s){return n(t,function(t,e){return t?s(t):i(e)})})};var n=function(t,e){var o="<?php\n return [";return function s(n,r){var h;n&&(h=Object.keys(n)).forEach(function(t,e){var i=n[t]||"";"string"==typeof i&&(i=i.replace(/'/g,"\\'"),o+="\n ".concat(" ".repeat(r),"'").concat(t,"' => '").concat(i,"'")),"object"===a(i)&&(o+="\n ".concat(" ".repeat(r),"'").concat(t,"' => ["),s(i,r+1),o+="\n ".concat(" ".repeat(r),"]")),e+1<h.length&&(o+=",")})}(t,1),o+="\n".concat(" ];"),e?e(null,o):o};e.exports=i.default},{}],3:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){return e?n(t,e):new Promise(function(i,s){return n(t,function(t,e){return t?s(t):i(e)})})};var h=(t=t("php-parser"))&&t.__esModule?t:{default:t};var n=function(t,e){if("string"!=typeof t){var i=new Error("The first parameter was not a string");if(e)return e(i);throw i}i=new h.default({parser:{extractDoc:!1,php7:!0},ast:{withPositions:!1}});try{var s,n={},r=i.parseCode(t);return r&&r.children&&0<r.children.length&&(s=r.children.find(function(t){return"return"===t.kind}))&&s.expr&&"array"===s.expr.kind&&s.expr.items&&function e(t,i){t.forEach(function(t){t&&"entry"===t.kind&&t.key&&"string"===t.key.kind&&t.key.value&&t.value&&("string"===t.value.kind&&(i[t.key.value]=t.value.value||""),"array"===t.value.kind)&&t.value.items&&(i[t.key.value]={},e(t.value.items,i[t.key.value]))})}(s.expr.items,n),e?e(null,n):n}catch(t){if(e)return e(t);throw t}};e.exports=i.default},{"php-parser":4}],4:[function(t,s,n){!function(i){!function(){var t,e;t=self,e=()=>(()=>{"use strict";var s={555:(t,e,i)=>{function r(t,e){this.withPositions=t,this.withSource=e}var _=i(1907),l=i(7724);r.precedence={},[["or"],["xor"],["and"],["="],["?"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","!=","===","!==","<=>"],["<","<=",">",">="],["<<",">>"],["+","-","."],["*","/","%"],["!"],["instanceof"],["cast","silent"],["**"]].forEach(function(t,e){t.forEach(function(t){r.precedence[t]=e+1})}),r.prototype.isRightAssociative=function(t){return"**"===t||"??"===t},r.prototype.swapLocations=function(t,e,i,s){this.withPositions&&(t.loc.start=e.loc.start,t.loc.end=i.loc.end,this.withSource)&&(t.loc.source=s.lexer._input.substring(t.loc.start.offset,t.loc.end.offset))},r.prototype.resolveLocations=function(t,e,i,s){this.withPositions&&(t.loc.start.offset>e.loc.start.offset&&(t.loc.start=e.loc.start),t.loc.end.offset<i.loc.end.offset&&(t.loc.end=i.loc.end),this.withSource)&&(t.loc.source=s.lexer._input.substring(t.loc.start.offset,t.loc.end.offset))},r.prototype.resolvePrecedence=function(t,e){var i,s,n;return"call"===t.kind?this.resolveLocations(t,t.what,t,e):"propertylookup"===t.kind||"staticlookup"===t.kind||"offsetlookup"===t.kind&&t.offset?this.resolveLocations(t,t.what,t.offset,e):"bin"===t.kind?t.right&&!t.right.parenthesizedExpression&&("bin"===t.right.kind?(s=r.precedence[t.type],n=r.precedence[t.right.type],s&&n&&n<=s&&(t.type!==t.right.type||!this.isRightAssociative(t.type))&&(i=t.right,t.right=t.right.left,this.swapLocations(t,t.left,t.right,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i)):"retif"===t.right.kind&&(s=r.precedence[t.type],n=r.precedence["?"],s)&&n&&n<=s&&(i=t.right,t.right=t.right.test,this.swapLocations(t,t.left,t.right,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i)):"silent"!==t.kind&&"cast"!==t.kind||!t.expr||t.expr.parenthesizedExpression?"unary"===t.kind?t.what&&!t.what.parenthesizedExpression&&("bin"===t.what.kind?(i=t.what,t.what=t.what.left,this.swapLocations(t,t,t.what,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.what.kind&&(i=t.what,t.what=t.what.test,this.swapLocations(t,t,t.what,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i)):"retif"===t.kind?t.falseExpr&&"retif"===t.falseExpr.kind&&!t.falseExpr.parenthesizedExpression&&(i=t.falseExpr,t.falseExpr=i.test,this.swapLocations(t,t.test,t.falseExpr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i):"assign"===t.kind?t.right&&"bin"===t.right.kind&&!t.right.parenthesizedExpression&&(s=r.precedence["="],n=r.precedence[t.right.type],s)&&n&&n<s&&(i=t.right,t.right=t.right.left,i.left=t,this.swapLocations(i,i.left,t.right,e),t=i):"expressionstatement"===t.kind&&this.swapLocations(t,t.expression,t,e):"bin"===t.expr.kind?(i=t.expr,t.expr=t.expr.left,this.swapLocations(t,t,t.expr,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.expr.kind&&(i=t.expr,t.expr=t.expr.test,this.swapLocations(t,t,t.expr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i),t},r.prototype.prepare=function(s,n,r){function h(){var t=Array.prototype.slice.call(arguments),e=(t.push(n),(a.withPositions||a.withSource)&&(e=null,a.withSource&&(e=r.lexer._input.substring(o.offset,r.prev[2])),e=new _(e,o,new l(r.prev[0],r.prev[1],r.prev[2])),t.push(e)),s=s||t.shift(),a[s]);if("function"!=typeof e)throw new Error('Undefined node "'+s+'"');var i=Object.create(e.prototype);return e.apply(i,t),h.instance=i,h.trailingComments&&(i.trailingComments=h.trailingComments),"function"==typeof h.postBuild&&h.postBuild(i),r.debug&&delete a.stack[h.stackUid],a.resolvePrecedence(i,r)}var o=null,a=((this.withPositions||this.withSource)&&(o=r.position()),this);return r.debug&&(this.stack||(this.stack={},this.stackUid=1),this.stack[++this.stackUid]={position:o,stack:(new Error).stack.split("\n").slice(3,5)},h.stackUid=this.stackUid),h.setTrailingComments=function(t){h.instance?h.instance.setTrailingComments(t):h.trailingComments=t},h.destroy=function(t){n&&(t?t.leadingComments?t.leadingComments=n.concat(t.leadingComments):t.leadingComments=n:r._docIndex=r._docs.length-n.length),r.debug&&delete a.stack[h.stackUid]},h},r.prototype.checkNodes=function(){var t,e=[];for(t in this.stack)Object.prototype.hasOwnProperty.call(this.stack,t)&&(this.stack[t].key=t,e.push(this.stack[t]));return this.stack={},e},[i(1538),i(4253),i(1997),i(1889),i(4923),i(9165),i(4230),i(2325),i(504),i(2271),i(5871),i(1578),i(7521),i(8212),i(1119),i(5178),i(4027),i(5436),i(5411),i(2001),i(6659),i(387),i(408),i(7224),i(6560),i(9036),i(4067),i(2514),i(8014),i(4395),i(4514),i(6129),i(3321),i(3689),i(4199),i(2045),i(4042),i(5886),i(6389),i(1530),i(9317),i(4607),i(358),i(1057),i(7887),i(7752),i(6547),i(6403),i(5851),i(8454),i(7133),i(7298),i(8323),i(9132),i(9522),i(298),i(6602),i(7592),i(679),i(7046),i(7920),i(3110),i(3174),i(8356),i(2633),i(3725),i(2730),i(2450),i(1358),i(8588),i(2895),i(1480),i(368),i(6210),i(9281),i(1771),i(8377),i(5003),i(6340),i(1558),i(3429),i(6966),i(2037),i(1211),i(4847),i(619),i(5182),i(7228),i(2898),i(5037),i(9732),i(8409),i(2941),i(7129),i(2589),i(5228),i(2523),i(8084),i(4398),i(3181),i(8466),i(8062),i(6178),i(7264),i(2379),i(3693),i(7880),i(6520),i(3656),i(7886),i(41),i(288),i(8789)].forEach(function(t){r.prototype[t.kind]=t}),t.exports=r},1538:(t,e,i)=>{var n=i(1530);t.exports=n.extends("array",function(t,e,i,s){n.apply(this,["array",i,s]),this.items=e,this.shortForm=t})},4253:(t,e,i)=>{var a=i(1530),_="arrowfunc";t.exports=a.extends(_,function(t,e,i,s,n,r,h,o){a.apply(this,[_,h,o]),this.arguments=t,this.byref=e,this.body=i,this.type=s,this.nullable=n,this.isStatic=r||!1})},1997:(t,e,i)=>{var r=i(1530);t.exports=r.extends("assign",function(t,e,i,s,n){r.apply(this,["assign",s,n]),this.left=t,this.right=e,this.operator=i})},1889:(t,e,i)=>{var n=i(1530),r="assignref";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.left=t,this.right=e})},9165:(t,e,i)=>{var s=i(2730),n="attrgroup";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.attrs=t||[]})},4923:(t,e,i)=>{var n=i(2730),r="attribute";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.name=t,this.args=e})},4230:(t,e,i)=>{var r=i(6210);t.exports=r.extends("bin",function(t,e,i,s,n){r.apply(this,["bin",s,n]),this.type=t,this.left=e,this.right=i})},2325:(t,e,i)=>{var n=i(2898);t.exports=n.extends("block",function(t,e,i,s){n.apply(this,[t||"block",i,s]),this.children=e.filter(Boolean)})},504:(t,e,i)=>{var n=i(6602),r="boolean";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,t,e,i,s])})},2271:(t,e,i)=>{var s=i(2898);t.exports=s.extends("break",function(t,e,i){s.apply(this,["break",e,i]),this.level=t})},5871:(t,e,i)=>{var s=i(1530);t.exports=s.extends("byref",function(t,e,i){s.apply(this,["byref",e,i]),this.what=t})},1578:(t,e,i)=>{var n=i(1530);t.exports=n.extends("call",function(t,e,i,s){n.apply(this,["call",i,s]),this.what=t,this.arguments=e})},7521:(t,e,i)=>{var n=i(2898);t.exports=n.extends("case",function(t,e,i,s){n.apply(this,["case",i,s]),this.test=t,this.body=e})},8212:(t,e,i)=>{var r=i(6210);t.exports=r.extends("cast",function(t,e,i,s,n){r.apply(this,["cast",s,n]),this.type=t,this.raw=e,this.expr=i})},1119:(t,e,i)=>{var r=i(2898);t.exports=r.extends("catch",function(t,e,i,s,n){r.apply(this,["catch",s,n]),this.body=t,this.what=e,this.variable=i})},5178:(t,e,i)=>{var o=i(9036);t.exports=o.extends("class",function(t,e,i,s,n,r,h){o.apply(this,["class",t,r,h]),this.isAnonymous=!t,this.extends=e,this.implements=i,this.body=s,this.attrGroups=[],this.parseFlags(n)})},4027:(t,e,i)=>{var h=i(7224),o="classconstant",i=h.extends(o,function(t,e,i,s,n,r){h.apply(this,[t||o,e,n,r]),this.parseFlags(i),this.attrGroups=s});i.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.final=2===t[2]},t.exports=i},5436:(t,e,i)=>{var s=i(1530);t.exports=s.extends("clone",function(t,e,i){s.apply(this,["clone",e,i]),this.what=t})},5411:(t,e,i)=>{var a=i(1530),_="closure";t.exports=a.extends(_,function(t,e,i,s,n,r,h,o){a.apply(this,[_,h,o]),this.uses=i,this.arguments=t,this.byref=e,this.type=s,this.nullable=n,this.isStatic=r||!1,this.body=null,this.attrGroups=[]})},2001:(t,e,i)=>{var n=i(2730);t.exports=n.extends("comment",function(t,e,i,s){n.apply(this,[t,i,s]),this.value=e})},6659:(t,e,i)=>{var s=i(2001),n="commentblock";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,t,e,i])})},387:(t,e,i)=>{var s=i(2001),n="commentline";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,t,e,i])})},408:(t,e,i)=>{var n=i(2730),r="constant";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.name=t,this.value=e})},7224:(t,e,i)=>{var n=i(2898),r="constantstatement";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[t||r,i,s]),this.constants=e})},6560:(t,e,i)=>{var s=i(2898),n="continue";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.level=t})},9036:(t,e,i)=>{var n=i(2898),r="declaration",i=n.extends(r,function(t,e,i,s){n.apply(this,[t||r,i,s]),this.name=e});i.prototype.parseFlags=function(t){this.isAbstract=1===t[2],this.isFinal=2===t[2],this.isReadonly=1===t[3],"class"!==this.kind&&(-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1])},t.exports=i},4067:(t,e,i)=>{var r=i(2325),h="declare",i=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,e,s,n]),this.directives=t,this.mode=i});i.MODE_SHORT="short",i.MODE_BLOCK="block",i.MODE_NONE="none",t.exports=i},2514:(t,e,i)=>{var n=i(2730),r="declaredirective";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.key=t,this.value=e})},8014:(t,e,i)=>{var n=i(2898);t.exports=n.extends("do",function(t,e,i,s){n.apply(this,["do",i,s]),this.test=t,this.body=e})},4395:(t,e,i)=>{var n=i(2898);t.exports=n.extends("echo",function(t,e,i,s){n.apply(this,["echo",i,s]),this.shortForm=e,this.expressions=t})},4514:(t,e,i)=>{var s=i(1530);t.exports=s.extends("empty",function(t,e,i){s.apply(this,["empty",e,i]),this.expression=t})},6129:(t,e,i)=>{var r=i(6602),h="encapsed",i=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,t,e,s,n]),this.type=i});i.TYPE_STRING="string",i.TYPE_SHELL="shell",i.TYPE_HEREDOC="heredoc",i.TYPE_OFFSET="offset",t.exports=i},3321:(t,e,i)=>{var r=i(1530),h="encapsedpart";t.exports=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,s,n]),this.expression=t,this.syntax=e,this.curly=i})},3689:(t,e,i)=>{var h=i(1530);t.exports=h.extends("entry",function(t,e,i,s,n,r){h.apply(this,["entry",n,r]),this.key=t,this.value=e,this.byRef=i,this.unpack=s})},4199:(t,e,i)=>{var h=i(9036);t.exports=h.extends("enum",function(t,e,i,s,n,r){h.apply(this,["enum",t,n,r]),this.valueType=e,this.implements=i,this.body=s,this.attrGroups=[]})},2045:(t,e,i)=>{var n=i(2730),r="enumcase";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.name=t,this.value=e})},4042:(t,e,i)=>{var h=i(2730);t.exports=h.extends("error",function(t,e,i,s,n,r){h.apply(this,["error",n,r]),this.message=t,this.token=e,this.line=i,this.expected=s})},5886:(t,e,i)=>{var s=i(1530);t.exports=s.extends("eval",function(t,e,i){s.apply(this,["eval",e,i]),this.source=t})},6389:(t,e,i)=>{var n=i(1530);t.exports=n.extends("exit",function(t,e,i,s){n.apply(this,["exit",i,s]),this.expression=t,this.useDie=e})},1530:(t,e,i)=>{var s=i(2730),n="expression";t.exports=s.extends(n,function(t,e,i){s.apply(this,[t||n,e,i])})},9317:(t,e,i)=>{var s=i(2898),n="expressionstatement";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.expression=t})},4607:(t,e,i)=>{var o=i(2898);t.exports=o.extends("for",function(t,e,i,s,n,r,h){o.apply(this,["for",r,h]),this.init=t,this.test=e,this.increment=i,this.shortForm=n,this.body=s})},358:(t,e,i)=>{var o=i(2898),a="foreach";t.exports=o.extends(a,function(t,e,i,s,n,r,h){o.apply(this,[a,r,h]),this.source=t,this.key=e,this.value=i,this.shortForm=n,this.body=s})},1057:(t,e,i)=>{var o=i(9036),a="function";t.exports=o.extends(a,function(t,e,i,s,n,r,h){o.apply(this,[a,t,r,h]),this.arguments=e,this.byref=i,this.type=s,this.nullable=n,this.body=null,this.attrGroups=[]})},7887:(t,e,i)=>{var s=i(2898);t.exports=s.extends("global",function(t,e,i){s.apply(this,["global",e,i]),this.items=t})},7752:(t,e,i)=>{var s=i(2898);t.exports=s.extends("goto",function(t,e,i){s.apply(this,["goto",e,i]),this.label=t})},6547:(t,e,i)=>{var s=i(2898);t.exports=s.extends("halt",function(t,e,i){s.apply(this,["halt",e,i]),this.after=t})},6403:(t,e,i)=>{var s=i(2730),n="identifier",i=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.name=t});t.exports=i},5851:(t,e,i)=>{var h=i(2898);t.exports=h.extends("if",function(t,e,i,s,n,r){h.apply(this,["if",n,r]),this.test=t,this.body=e,this.alternate=i,this.shortForm=s})},8454:(t,e,i)=>{var r=i(1530),h="include";t.exports=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,s,n]),this.once=t,this.require=e,this.target=i})},7133:(t,e,i)=>{var n=i(6602);t.exports=n.extends("inline",function(t,e,i,s){n.apply(this,["inline",t,e,i,s])})},7298:(t,e,i)=>{var h=i(9036),o="interface";t.exports=h.extends(o,function(t,e,i,s,n,r){h.apply(this,[o,t,n,r]),this.extends=e,this.body=i,this.attrGroups=s})},8323:(t,e,i)=>{var s=i(9036),n="intersectiontype";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,null,e,i]),this.types=t})},9132:(t,e,i)=>{var s=i(1530);t.exports=s.extends("isset",function(t,e,i){s.apply(this,["isset",e,i]),this.variables=t})},9522:(t,e,i)=>{var s=i(2898);t.exports=s.extends("label",function(t,e,i){s.apply(this,["label",e,i]),this.name=t})},298:(t,e,i)=>{var n=i(1530);t.exports=n.extends("list",function(t,e,i,s){n.apply(this,["list",i,s]),this.items=t,this.shortForm=e})},6602:(t,e,i)=>{var r=i(1530),h="literal";t.exports=r.extends(h,function(t,e,i,s,n){r.apply(this,[t||h,s,n]),this.value=e,i&&(this.raw=i)})},1907:t=>{t.exports=function(t,e,i){this.source=t,this.start=e,this.end=i}},7592:(t,e,i)=>{var r=i(1530);t.exports=r.extends("lookup",function(t,e,i,s,n){r.apply(this,[t||"lookup",s,n]),this.what=e,this.offset=i})},679:(t,e,i)=>{var n=i(6602);t.exports=n.extends("magic",function(t,e,i,s){n.apply(this,["magic",t,e,i,s])})},7046:(t,e,i)=>{var n=i(1530);t.exports=n.extends("match",function(t,e,i,s){n.apply(this,["match",i,s]),this.cond=t,this.arms=e})},7920:(t,e,i)=>{var n=i(1530),r="matcharm";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.conds=t,this.body=e})},3110:(t,e,i)=>{var s=i(1057);t.exports=s.extends("method",function(){s.apply(this,arguments),this.kind="method"})},3174:(t,e,i)=>{var n=i(1211),i=n.extends("name",function(t,e,i,s){n.apply(this,["name",i,s]),this.name=t.replace(/\\$/,""),this.resolution=e});i.UNQUALIFIED_NAME="uqn",i.QUALIFIED_NAME="qn",i.FULL_QUALIFIED_NAME="fqn",i.RELATIVE_NAME="rn",t.exports=i},2633:(t,e,i)=>{var n=i(1530),r="namedargument";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.name=t,this.value=e})},8356:(t,e,i)=>{var r=i(2325),h="namespace";t.exports=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,e,s,n]),this.name=t,this.withBrackets=i||!1})},3725:(t,e,i)=>{var n=i(1530);t.exports=n.extends("new",function(t,e,i,s){n.apply(this,["new",i,s]),this.what=t,this.arguments=e})},2730:t=>{function e(t,e,i){this.kind=t,e&&(this.leadingComments=e),i&&(this.loc=i)}e.prototype.setTrailingComments=function(t){this.trailingComments=t},e.prototype.destroy=function(t){if(t)return this.leadingComments&&(t.leadingComments?t.leadingComments=Array.concat(this.leadingComments,t.leadingComments):t.leadingComments=this.leadingComments),this.trailingComments&&(t.trailingComments?t.trailingComments=Array.concat(this.trailingComments,t.trailingComments):t.trailingComments=this.trailingComments),t;throw new Error("Node already initialized, you must swap with another node")},e.prototype.includeToken=function(t){return this.loc&&(this.loc.end&&(this.loc.end.line=t.lexer.yylloc.last_line,this.loc.end.column=t.lexer.yylloc.last_column,this.loc.end.offset=t.lexer.offset),t.ast.withSource)&&(this.loc.source=t.lexer._input.substring(this.loc.start.offset,t.lexer.offset)),this},e.extends=function(t,e){return e.prototype=Object.create(this.prototype),e.extends=this.extends,(e.prototype.constructor=e).kind=t,e},t.exports=e},2450:(t,e,i)=>{var s=i(2730);t.exports=s.extends("noop",function(t,e){s.apply(this,["noop",t,e])})},1358:(t,e,i)=>{var r=i(6602);t.exports=r.extends("nowdoc",function(t,e,i,s,n){r.apply(this,["nowdoc",t,e,s,n]),this.label=i})},8588:(t,e,i)=>{var s=i(2730),n="nullkeyword";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.raw=t})},2895:(t,e,i)=>{var n=i(7592),r="nullsafepropertylookup";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,t,e,i,s])})},1480:(t,e,i)=>{var n=i(6602);t.exports=n.extends("number",function(t,e,i,s){n.apply(this,["number",t,e,i,s])})},368:(t,e,i)=>{var n=i(7592),r="offsetlookup";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,t,e,i,s])})},6210:(t,e,i)=>{var s=i(1530),n="operation";t.exports=s.extends(n,function(t,e,i){s.apply(this,[t||n,e,i])})},9281:(t,e,i)=>{var l=i(9036),c="parameter";t.exports=l.extends(c,function(t,e,i,s,n,r,h,o,a,_){l.apply(this,[c,t,a,_]),this.value=i,this.type=e,this.byref=s,this.variadic=n,this.readonly=r,this.nullable=h,this.flags=o||0,this.attrGroups=[]})},1771:(t,e,i)=>{var s=i(1211),n="parentreference",i=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.raw=t});t.exports=i},7724:t=>{t.exports=function(t,e,i){this.line=t,this.column=e,this.offset=i}},8377:(t,e,i)=>{var n=i(6210);t.exports=n.extends("post",function(t,e,i,s){n.apply(this,["post",i,s]),this.type=t,this.what=e})},5003:(t,e,i)=>{var n=i(6210);t.exports=n.extends("pre",function(t,e,i,s){n.apply(this,["pre",i,s]),this.type=t,this.what=e})},6340:(t,e,i)=>{var s=i(1530);t.exports=s.extends("print",function(t,e,i){s.apply(this,["print",e,i]),this.expression=t})},1558:(t,e,i)=>{var h=i(2325),o="program";t.exports=h.extends(o,function(t,e,i,s,n,r){h.apply(this,[o,t,n,r]),this.errors=e,i&&(this.comments=i),s&&(this.tokens=s)})},3429:(t,e,i)=>{var a=i(2898),_="property";t.exports=a.extends(_,function(t,e,i,s,n,r,h,o){a.apply(this,[_,h,o]),this.name=t,this.value=e,this.readonly=i,this.nullable=s,this.type=n,this.attrGroups=r})},6966:(t,e,i)=>{var n=i(7592),r="propertylookup";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,t,e,i,s])})},2037:(t,e,i)=>{var r=i(2898),h="propertystatement",i=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,s,n]),this.properties=e,this.parseFlags(i)});i.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1]},t.exports=i},1211:(t,e,i)=>{var s=i(2730),n="reference",i=s.extends(n,function(t,e,i){s.apply(this,[t||n,e,i])});t.exports=i},4847:(t,e,i)=>{var r=i(1530);t.exports=r.extends("retif",function(t,e,i,s,n){r.apply(this,["retif",s,n]),this.test=t,this.trueExpr=e,this.falseExpr=i})},619:(t,e,i)=>{var s=i(2898);t.exports=s.extends("return",function(t,e,i){s.apply(this,["return",e,i]),this.expr=t})},5182:(t,e,i)=>{var s=i(1211),n="selfreference",i=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.raw=t});t.exports=i},7228:(t,e,i)=>{var s=i(1530);t.exports=s.extends("silent",function(t,e,i){s.apply(this,["silent",e,i]),this.expr=t})},2898:(t,e,i)=>{var s=i(2730),n="statement";t.exports=s.extends(n,function(t,e,i){s.apply(this,[t||n,e,i])})},5037:(t,e,i)=>{var s=i(2898);t.exports=s.extends("static",function(t,e,i){s.apply(this,["static",e,i]),this.variables=t})},8409:(t,e,i)=>{var n=i(7592),r="staticlookup";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,t,e,i,s])})},2941:(t,e,i)=>{var s=i(1211),n="staticreference",i=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.raw=t});t.exports=i},9732:(t,e,i)=>{var n=i(2730),r="staticvariable";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.variable=t,this.defaultValue=e})},7129:(t,e,i)=>{var h=i(6602);t.exports=h.extends("string",function(t,e,i,s,n,r){h.apply(this,["string",e,s,n,r]),this.unicode=i,this.isDoubleQuote=t})},2589:(t,e,i)=>{var r=i(2898);t.exports=r.extends("switch",function(t,e,i,s,n){r.apply(this,["switch",s,n]),this.test=t,this.body=e,this.shortForm=i})},5228:(t,e,i)=>{var s=i(2898);t.exports=s.extends("throw",function(t,e,i){s.apply(this,["throw",e,i]),this.what=t})},2523:(t,e,i)=>{var n=i(9036);t.exports=n.extends("trait",function(t,e,i,s){n.apply(this,["trait",t,i,s]),this.body=e})},8084:(t,e,i)=>{var h=i(2730),o="traitalias";t.exports=h.extends(o,function(t,e,i,s,n,r){h.apply(this,[o,n,r]),this.trait=t,this.method=e,this.as=i,this.visibility="",s&&(0===s[0]?this.visibility="public":1===s[0]?this.visibility="protected":2===s[0]&&(this.visibility="private"))})},4398:(t,e,i)=>{var r=i(2730),h="traitprecedence";t.exports=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,s,n]),this.trait=t,this.method=e,this.instead=i})},3181:(t,e,i)=>{var n=i(2730),r="traituse";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.traits=t,this.adaptations=e})},8466:(t,e,i)=>{var r=i(2898);t.exports=r.extends("try",function(t,e,i,s,n){r.apply(this,["try",s,n]),this.body=t,this.catches=e,this.always=i})},8062:(t,e,i)=>{var n=i(1211),r="typereference",i=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.name=t,this.raw=e});i.types=["int","float","string","bool","object","array","callable","iterable","void","static"],t.exports=i},6178:(t,e,i)=>{var n=i(6210);t.exports=n.extends("unary",function(t,e,i,s){n.apply(this,["unary",i,s]),this.type=t,this.what=e})},7264:(t,e,i)=>{var s=i(9036),n="uniontype";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,null,e,i]),this.types=t})},2379:(t,e,i)=>{var s=i(2898);t.exports=s.extends("unset",function(t,e,i){s.apply(this,["unset",e,i]),this.variables=t})},3693:(t,e,i)=>{var r=i(2898),h="usegroup";t.exports=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,s,n]),this.name=t,this.type=e,this.items=i})},7880:(t,e,i)=>{var r=i(2898),h="useitem",i=r.extends(h,function(t,e,i,s,n){r.apply(this,[h,s,n]),this.name=t,this.alias=e,this.type=i});i.TYPE_CONST="const",i.TYPE_FUNCTION="function",t.exports=i},6520:(t,e,i)=>{var n=i(1530),r="variable";t.exports=n.extends(r,function(t,e,i,s){n.apply(this,[r,i,s]),this.name=t,this.curly=e||!1})},3656:(t,e,i)=>{var s=i(1530),n="variadic";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.what=t})},7886:(t,e,i)=>{var s=i(2730),n="variadicplaceholder";t.exports=s.extends(n,function(t,e){s.apply(this,[n,t,e])})},41:(t,e,i)=>{var r=i(2898);t.exports=r.extends("while",function(t,e,i,s,n){r.apply(this,["while",s,n]),this.test=t,this.body=e,this.shortForm=i})},288:(t,e,i)=>{var n=i(1530);t.exports=n.extends("yield",function(t,e,i,s){n.apply(this,["yield",i,s]),this.value=t,this.key=e})},8789:(t,e,i)=>{var s=i(1530),n="yieldfrom";t.exports=s.extends(n,function(t,e,i){s.apply(this,[n,e,i]),this.value=t})},1427:(t,e,i)=>{function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=i(8720),n=i(8410),r=i(6455),o=i(555);function a(t,e){for(var i=Object.keys(t),s=i.length;s--;){var n=i[s],r=t[n];null===r?delete e[n]:"function"==typeof r?e[n]=r.bind(e):Array.isArray(r)?e[n]=Array.isArray(e[n])?e[n].concat(r):r:"object"===h(r)?e[n]="object"===h(e[n])?a(r,e[n]):r:e[n]=r}return e}function _(t){if("function"==typeof this)return new this(t);if(this.tokens=r,this.lexer=new s(this),this.ast=new o,this.parser=new n(this.lexer,this.ast),t&&"object"===h(t)){if(t.parser&&(t.lexer||(t.lexer={}),t.parser.version)){if("string"==typeof t.parser.version){var e=t.parser.version.split("."),e=100*parseInt(e[0])+parseInt(e[1]);if(isNaN(e))throw new Error("Bad version number : "+t.parser.version);t.parser.version=e}else if("number"!=typeof t.parser.version)throw new Error("Expecting a number for version");if(t.parser.version<500||900<t.parser.version)throw new Error("Can only handle versions between 5.x to 8.x")}a(t,this),this.lexer.version=this.parser.version}}function l(t){return"function"==typeof t.write?t.toString():t}_.create=function(t){return new _(t)},_.parseEval=function(t,e){return new _(e).parseEval(t)},_.prototype.parseEval=function(t){return this.lexer.mode_eval=!0,this.lexer.all_tokens=!1,t=l(t),this.parser.parse(t,"eval")},_.parseCode=function(t,e,i){return"object"!==h(e)||i||(i=e,e="unknown"),new _(i).parseCode(t,e)},_.prototype.parseCode=function(t,e){return this.lexer.mode_eval=!1,this.lexer.all_tokens=!1,t=l(t),this.parser.parse(t,e)},_.tokenGetAll=function(t,e){return new _(e).tokenGetAll(t)},_.prototype.tokenGetAll=function(t){this.lexer.mode_eval=!1,this.lexer.all_tokens=!0,t=l(t);for(var e=this.lexer.EOF,i=this.tokens.values,s=(this.lexer.setInput(t),this.lexer.lex()||e),n=[];s!=e;){var r=this.lexer.yytext;Object.prototype.hasOwnProperty.call(i,s)&&(r=[i[s],r,this.lexer.yylloc.first_line]),n.push(r),s=this.lexer.lex()||e}return n},t.exports=_,t.exports.tokens=r,t.exports.lexer=s,t.exports.AST=o,t.exports.parser=n,t.exports.combine=a,t.exports.Engine=_,t.exports.default=_},8720:(t,e,i)=>{function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t){this.engine=t,this.tok=this.engine.tokens.names,this.EOF=1,this.debug=!1,this.all_tokens=!0,this.comment_tokens=!1,this.mode_eval=!1,this.asp_tags=!1,this.short_tags=!1,this.version=801,this.yyprevcol=0,this.keywords={__class__:this.tok.T_CLASS_C,__trait__:this.tok.T_TRAIT_C,__function__:this.tok.T_FUNC_C,__method__:this.tok.T_METHOD_C,__line__:this.tok.T_LINE,__file__:this.tok.T_FILE,__dir__:this.tok.T_DIR,__namespace__:this.tok.T_NS_C,exit:this.tok.T_EXIT,die:this.tok.T_EXIT,function:this.tok.T_FUNCTION,const:this.tok.T_CONST,return:this.tok.T_RETURN,try:this.tok.T_TRY,catch:this.tok.T_CATCH,finally:this.tok.T_FINALLY,throw:this.tok.T_THROW,if:this.tok.T_IF,elseif:this.tok.T_ELSEIF,endif:this.tok.T_ENDIF,else:this.tok.T_ELSE,while:this.tok.T_WHILE,endwhile:this.tok.T_ENDWHILE,do:this.tok.T_DO,for:this.tok.T_FOR,endfor:this.tok.T_ENDFOR,foreach:this.tok.T_FOREACH,endforeach:this.tok.T_ENDFOREACH,declare:this.tok.T_DECLARE,enddeclare:this.tok.T_ENDDECLARE,instanceof:this.tok.T_INSTANCEOF,as:this.tok.T_AS,switch:this.tok.T_SWITCH,endswitch:this.tok.T_ENDSWITCH,case:this.tok.T_CASE,default:this.tok.T_DEFAULT,break:this.tok.T_BREAK,continue:this.tok.T_CONTINUE,goto:this.tok.T_GOTO,echo:this.tok.T_ECHO,print:this.tok.T_PRINT,class:this.tok.T_CLASS,interface:this.tok.T_INTERFACE,trait:this.tok.T_TRAIT,enum:this.tok.T_ENUM,extends:this.tok.T_EXTENDS,implements:this.tok.T_IMPLEMENTS,new:this.tok.T_NEW,clone:this.tok.T_CLONE,var:this.tok.T_VAR,eval:this.tok.T_EVAL,include:this.tok.T_INCLUDE,include_once:this.tok.T_INCLUDE_ONCE,require:this.tok.T_REQUIRE,require_once:this.tok.T_REQUIRE_ONCE,namespace:this.tok.T_NAMESPACE,use:this.tok.T_USE,insteadof:this.tok.T_INSTEADOF,global:this.tok.T_GLOBAL,isset:this.tok.T_ISSET,empty:this.tok.T_EMPTY,__halt_compiler:this.tok.T_HALT_COMPILER,static:this.tok.T_STATIC,abstract:this.tok.T_ABSTRACT,final:this.tok.T_FINAL,private:this.tok.T_PRIVATE,protected:this.tok.T_PROTECTED,public:this.tok.T_PUBLIC,unset:this.tok.T_UNSET,list:this.tok.T_LIST,array:this.tok.T_ARRAY,callable:this.tok.T_CALLABLE,or:this.tok.T_LOGICAL_OR,and:this.tok.T_LOGICAL_AND,xor:this.tok.T_LOGICAL_XOR,match:this.tok.T_MATCH,readonly:this.tok.T_READ_ONLY},this.castKeywords={int:this.tok.T_INT_CAST,integer:this.tok.T_INT_CAST,real:this.tok.T_DOUBLE_CAST,double:this.tok.T_DOUBLE_CAST,float:this.tok.T_DOUBLE_CAST,string:this.tok.T_STRING_CAST,binary:this.tok.T_STRING_CAST,array:this.tok.T_ARRAY_CAST,object:this.tok.T_OBJECT_CAST,bool:this.tok.T_BOOL_CAST,boolean:this.tok.T_BOOL_CAST,unset:this.tok.T_UNSET_CAST}}n.prototype.setInput=function(t){return this._input=t,this.size=t.length,this.yylineno=1,this.offset=0,this.yyprevcol=0,this.yytext="",this.yylloc={first_offset:0,first_line:1,first_column:0,prev_offset:0,prev_line:1,prev_column:0,last_line:1,last_column:0},this.tokens=[],703<this.version?this.keywords.fn=this.tok.T_FN:delete this.keywords.fn,this.done=this.offset>=this.size,!this.all_tokens&&this.mode_eval?(this.conditionStack=["INITIAL"],this.begin("ST_IN_SCRIPTING")):(this.conditionStack=[],this.begin("INITIAL")),this.heredoc_label={label:"",length:0,indentation:0,indentation_uses_spaces:!1,finished:!1,first_encaps_node:!1,toString:function(){this.label}},this},n.prototype.input=function(){var t=this._input[this.offset];return t?(this.yytext+=t,this.offset++,"\r"===t&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++),"\n"===t||"\r"===t?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++,t):""},n.prototype.unput=function(t){if(1===t)this.offset--,"\n"===this._input[this.offset]&&"\r"===this._input[this.offset-1]&&(this.offset--,t++),"\r"===this._input[this.offset]||"\n"===this._input[this.offset]?(this.yylloc.last_line--,this.yylineno--,this.yylloc.last_column=this.yyprevcol):this.yylloc.last_column--,this.yytext=this.yytext.substring(0,this.yytext.length-t);else if(0<t)if(this.offset-=t,t<this.yytext.length){this.yytext=this.yytext.substring(0,this.yytext.length-t),this.yylloc.last_line=this.yylloc.first_line,this.yylloc.last_column=this.yyprevcol=this.yylloc.first_column;for(var e=0;e<this.yytext.length;e++){var i=this.yytext[e];"\r"===i?(i=this.yytext[++e],this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0,"\n"!==i&&("\r"===i?this.yylloc.last_line++:this.yylloc.last_column++)):"\n"===i?(this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++}this.yylineno=this.yylloc.last_line}else this.yytext="",this.yylloc.last_line=this.yylineno=this.yylloc.first_line,this.yylloc.last_column=this.yylloc.first_column;return this},n.prototype.tryMatch=function(t){return t===this.ahead(t.length)},n.prototype.tryMatchCaseless=function(t){return t===this.ahead(t.length).toLowerCase()},n.prototype.ahead=function(t){var e=this._input.substring(this.offset,this.offset+t);return"\r"===e[e.length-1]&&"\n"===this._input[this.offset+t+1]&&(e+="\n"),e},n.prototype.consume=function(t){for(var e=0;e<t;e++){var i=this._input[this.offset];if(!i)break;this.yytext+=i,this.offset++,"\r"===i&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++,e++),"\n"===i||"\r"===i?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++}return this},n.prototype.getState=function(){return{yytext:this.yytext,offset:this.offset,yylineno:this.yylineno,yyprevcol:this.yyprevcol,yylloc:{first_offset:this.yylloc.first_offset,first_line:this.yylloc.first_line,first_column:this.yylloc.first_column,last_line:this.yylloc.last_line,last_column:this.yylloc.last_column},heredoc_label:this.heredoc_label}},n.prototype.setState=function(t){return this.yytext=t.yytext,this.offset=t.offset,this.yylineno=t.yylineno,this.yyprevcol=t.yyprevcol,this.yylloc=t.yylloc,t.heredoc_label&&(this.heredoc_label=t.heredoc_label),this},n.prototype.appendToken=function(t,e){return this.tokens.push([t,e]),this},n.prototype.lex=function(){this.yylloc.prev_offset=this.offset,this.yylloc.prev_line=this.yylloc.last_line,this.yylloc.prev_column=this.yylloc.last_column;var t=this.next()||this.lex();if(!this.all_tokens){for(;t===this.tok.T_WHITESPACE||!this.comment_tokens&&(t===this.tok.T_COMMENT||t===this.tok.T_DOC_COMMENT)||t===this.tok.T_OPEN_TAG;)t=this.next()||this.lex();if(t==this.tok.T_OPEN_TAG_WITH_ECHO)return this.tok.T_ECHO;if(t===this.tok.T_CLOSE_TAG)return";"}return this.yylloc.prev_offset||(this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column),t},n.prototype.begin=function(t){if(this.conditionStack.push(t),this.curCondition=t,this.stateCb=this["match"+t],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+t+'"');return this},n.prototype.popState=function(){var t=0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0];if(this.curCondition=this.conditionStack[this.conditionStack.length-1],this.stateCb=this["match"+this.curCondition],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+this.curCondition+'"');return t},n.prototype.next=function(){var t,e;return this._input||(this.done=!0),this.yylloc.first_offset=this.offset,this.yylloc.first_line=this.yylloc.last_line,this.yylloc.first_column=this.yylloc.last_column,this.yytext="",this.done?(this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column,this.EOF):(t=0<this.tokens.length?("object"===s((t=this.tokens.shift())[1])?this.setState(t[1]):this.consume(t[1]),t[0]):this.stateCb.apply(this,[]),this.offset>=this.size&&0===this.tokens.length&&(this.done=!0),this.debug&&(e="number"==typeof(e=t)?this.engine.tokens.values[e]:'"'+e+'"',e=new Error(e+"\tfrom "+this.yylloc.first_line+","+this.yylloc.first_column+"\t - to "+this.yylloc.last_line+","+this.yylloc.last_column+'\t"'+this.yytext+'"'),console.error(e.stack)),t)},[i(7010),i(438),i(3607),i(7405),i(465),i(5135),i(4437),i(1298),i(5609)].forEach(function(t){for(var e in t)n.prototype[e]=t[e]}),t.exports=n},7010:t=>{t.exports={attributeIndex:0,attributeListDepth:{},matchST_ATTRIBUTE:function(){var t=this.input();if(this.is_WHITESPACE()){for(;t=this.input(),this.is_WHITESPACE(););return this.unput(1),null}switch(t){case"]":return 0===this.attributeListDepth[this.attributeIndex]?(delete this.attributeListDepth[this.attributeIndex],this.attributeIndex--,this.popState()):this.attributeListDepth[this.attributeIndex]--,"]";case"(":case")":case":":case"=":case"|":case"&":case"^":case"-":case"+":case"*":case"%":case"~":case"<":case">":case"!":case".":return this.consume_TOKEN();case"[":return this.attributeListDepth[this.attributeIndex]++,"[";case",":return",";case'"':return this.ST_DOUBLE_QUOTES();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN()}if(this.is_LABEL_START()||"\\"===t){for(;this.offset<this.size;){var e=this.input();if(!this.is_LABEL()&&"\\"!==e){e&&this.unput(1);break}}return this.T_STRING()}if(this.is_NUM())return this.consume_NUM();throw new Error('Bad terminal sequence "'.concat(t,'" at line ').concat(this.yylineno," (offset ").concat(this.offset,")"))}}},438:t=>{t.exports={T_COMMENT:function(){for(;this.offset<this.size;){var t=this.input();if("\n"===t||"\r"===t)return this.tok.T_COMMENT;if("?"===t&&!this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT;if("%"===t&&this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT}return this.tok.T_COMMENT},T_DOC_COMMENT:function(){var t=this.input(),e=this.tok.T_COMMENT;if("*"===t){if(t=this.input(),this.is_WHITESPACE()&&(e=this.tok.T_DOC_COMMENT),"/"===t)return e;this.unput(1)}for(;this.offset<this.size;)if("*"===(t=this.input())&&"/"===this._input[this.offset]){this.input();break}return e}}},3607:t=>{t.exports={nextINITIAL:function(){return 1<this.conditionStack.length&&"INITIAL"===this.conditionStack[this.conditionStack.length-1]?this.popState():this.begin("ST_IN_SCRIPTING"),this},matchINITIAL:function(){for(;this.offset<this.size;){var t=this.input();if("<"==t)if("?"==(t=this.ahead(1))){if(this.tryMatch("?=")){this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}if(this.tryMatchCaseless("?php")&&(" "===(t=this._input[this.offset+4])||"\t"===t||"\n"===t||"\r"===t)){this.unput(1).appendToken(this.tok.T_OPEN_TAG,6).nextINITIAL();break}if(this.short_tags){this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}else if(this.asp_tags&&"%"==t){if(this.tryMatch("%=")){this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}return 0<this.yytext.length&&this.tok.T_INLINE_HTML}}},7405:t=>{var s=10,n="2147483648";"x64"==i.arch&&(s=19,n="9223372036854775808"),t.exports={consume_NUM:function(){var t="."===(i=this.yytext[0]);if("0"===i)if("x"===(i=this.input())||"X"===i){if("_"!==(i=this.input())&&this.is_HEX())return this.consume_HNUM();this.unput(i?2:1)}else if("b"===i||"B"===i){if("_"!==(i=this.input())&&"0"===i||"1"===i)return this.consume_BNUM();this.unput(i?2:1)}else if("o"===i||"O"===i){if("_"!==(i=this.input())&&this.is_OCTAL())return this.consume_ONUM();this.unput(i?2:1)}else this.is_NUM()||i&&this.unput(1);for(;this.offset<this.size;){var e=i;if("_"===(i=this.input())){if("_"===e){this.unput(2);break}if("."===e){this.unput(1);break}if("e"===e||"E"===e){this.unput(2);break}}else{if("."===i){if(t){this.unput(1);break}if("_"===e){this.unput(2);break}t=!0;continue}if("e"===i||"E"===i){if("_"===e){this.unput(1);break}var i,e=2;if("+"!==(i=this.input())&&"-"!==i||(e=3,i=this.input()),this.is_NUM_START())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(i?e:e-1);break}}if(!this.is_NUM()){i&&this.unput(1);break}}return!t&&(this.yytext.length<s-1||this.yytext.length<s||this.yytext.length==s&&this.yytext<n)?this.tok.T_LNUMBER:this.tok.T_DNUMBER},consume_HNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_HEX()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_LNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_NUM()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_BNUM:function(){for(var t;this.offset<this.size;)if("0"!==(t=this.input())&&"1"!==t&&"_"!==t){t&&this.unput(1);break}return this.tok.T_LNUMBER},consume_ONUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_OCTAL()){t&&this.unput(1);break}}return this.tok.T_LNUMBER}}},465:t=>{t.exports={matchST_LOOKING_FOR_PROPERTY:function(){var t=this.input();if("-"===t){if(">"===(t=this.input()))return this.tok.T_OBJECT_OPERATOR;t&&this.unput(1)}else{if(this.is_WHITESPACE())return this.tok.T_WHITESPACE;if(this.is_LABEL_START())return this.consume_LABEL(),this.popState(),this.tok.T_STRING}return this.popState(),t&&this.unput(1),!1},matchST_LOOKING_FOR_VARNAME:function(){var t=this.input();if(this.popState(),this.begin("ST_IN_SCRIPTING"),this.is_LABEL_START()){if(this.consume_LABEL(),"["===(t=this.input())||"}"===t)return this.unput(1),this.tok.T_STRING_VARNAME;this.unput(this.yytext.length)}else t&&this.unput(1);return!1},matchST_VAR_OFFSET:function(){var t=this.input();return this.is_NUM_START()?(this.consume_NUM(),this.tok.T_NUM_STRING):"]"===t?(this.popState(),"]"):"$"!==t?this.is_LABEL_START()?(this.consume_LABEL(),this.tok.T_STRING):this.is_WHITESPACE()||"\\"===t||"'"===t||"#"===t?this.tok.T_ENCAPSED_AND_WHITESPACE:"["===t||"{"===t||"}"===t||'"'===t||"`"===t||this.is_TOKEN()?t:void 0:(this.input(),this.is_LABEL_START()?(this.consume_LABEL(),this.tok.T_VARIABLE):void 0)}}},5135:t=>{t.exports={matchST_IN_SCRIPTING:function(){var t,e=this.input();switch(e){case" ":case"\t":case"\n":case"\r":case"\r\n":return this.T_WHITESPACE();case"#":return 800<=this.version&&"["===this._input[this.offset]?(this.input(),this.attributeListDepth[++this.attributeIndex]=0,this.begin("ST_ATTRIBUTE"),this.tok.T_ATTRIBUTE):this.T_COMMENT();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case'"':return this.ST_DOUBLE_QUOTES();case"`":return this.begin("ST_BACKQUOTE"),"`";case"?":return!this.aspTagMode&&this.tryMatch(">")?(this.input(),"\n"!==(t=this._input[this.offset])&&"\r"!==t||this.input(),1<this.conditionStack.length&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG):this.consume_TOKEN();case"%":return this.aspTagMode&&">"===this._input[this.offset]?(this.input(),"\n"!==(e=this._input[this.offset])&&"\r"!==e||this.input(),this.aspTagMode=!1,1<this.conditionStack.length&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG):this.consume_TOKEN();case"{":return this.begin("ST_IN_SCRIPTING"),"{";case"}":return 2<this.conditionStack.length&&this.popState(),"}";default:if("."===e){if(e=this.input(),this.is_NUM_START())return this.consume_NUM();e&&this.unput(1)}if(this.is_NUM_START())return this.consume_NUM();if(this.is_LABEL_START())return this.consume_LABEL().T_STRING();if(this.is_TOKEN())return this.consume_TOKEN()}throw new Error('Bad terminal sequence "'+e+'" at line '+this.yylineno+" (offset "+this.offset+")")},T_WHITESPACE:function(){for(;this.offset<this.size;){var t=this.input();if(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t){t&&this.unput(1);break}}return this.tok.T_WHITESPACE}}},4437:t=>{var o=["\n","\r"],a=["\n","\r",";"],_=a.concat(["\t"," ",",","]",")","/","=","!"]);t.exports={T_CONSTANT_ENCAPSED_STRING:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else if("'"==t)break;return this.tok.T_CONSTANT_ENCAPSED_STRING},is_HEREDOC:function(){var t=this.offset;if("<"===this._input[this.offset-1]&&"<"===this._input[this.offset]&&"<"===this._input[this.offset+1]){if(this.offset+=3,this.is_TABSPACE())for(;this.offset<this.size&&(this.offset++,this.is_TABSPACE()););var e=this._input[this.offset-1];if("'"===e||'"'===e?this.offset++:e=null,this.is_LABEL_START()){for(var i=this.offset-1;this.offset<this.size&&(this.offset++,this.is_LABEL()););var s=this._input.substring(i,this.offset-1);if((!e||e===this._input[this.offset-1])&&(e&&this.offset++,o.includes(this._input[this.offset-1])))return this.heredoc_label.label=s,this.heredoc_label.length=s.length,this.heredoc_label.finished=!1,i=this.offset-t,this.offset=t,this.consume(i),"'"===e?this.begin("ST_NOWDOC"):this.begin("ST_HEREDOC"),this.prematch_ENDOFDOC(),this.tok.T_START_HEREDOC}}return this.offset=t,!1},ST_DOUBLE_QUOTES:function(){for(var t,e;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else{if('"'==t)break;if("$"==t){if("{"==(t=this.input())||this.is_LABEL_START()){this.unput(2);break}t&&this.unput(1)}else if("{"==t){if("$"==(t=this.input())){this.unput(2);break}t&&this.unput(1)}}return'"'==t?this.tok.T_CONSTANT_ENCAPSED_STRING:(e=1,"b"!==this.yytext[0]&&"B"!==this.yytext[0]||(e=2),2<this.yytext.length&&this.appendToken(this.tok.T_ENCAPSED_AND_WHITESPACE,this.yytext.length-e),this.unput(this.yytext.length-e),this.begin("ST_DOUBLE_QUOTES"),this.yytext)},isDOC_MATCH:function(t,e){var i=this._input[t-2];if(o.includes(i)){var s=!1,n=!1,r=0,h=this._input[t-1];if(703<=this.version){for(;"\t"===h||" "===h;)" "===h?s=!0:"\t"===h&&(n=!0),h=this._input[t+r],r++;if(o.includes(this._input[(t+=r)-1]))return!1}if(this._input.substring(t-1,t-1+this.heredoc_label.length)===this.heredoc_label.label){i=this._input[t-1+this.heredoc_label.length];if((703<=this.version?_:a).includes(i)){if(e){if(this.consume(r),s&&n)throw new Error("Parse error: mixing spaces and tabs in ending marker at line "+this.yylineno+" (offset "+this.offset+")")}else this.heredoc_label.indentation=r,this.heredoc_label.indentation_uses_spaces=s,this.heredoc_label.first_encaps_node=!0;return!0}}}return!1},prematch_ENDOFDOC:function(){this.heredoc_label.indentation_uses_spaces=!1,this.heredoc_label.indentation=0,this.heredoc_label.first_encaps_node=!0;for(var t=this.offset+1;t<this._input.length;){if(this.isDOC_MATCH(t,!1))return;if(!o.includes(this._input[t-1]))for(;!o.includes(this._input[t++])&&t<this._input.length;);t++}},matchST_NOWDOC:function(){if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length),this.popState(),this.tok.T_END_HEREDOC;for(var t=this._input[this.offset-1];this.offset<this.size;)if(o.includes(t)){if(t=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_HEREDOC:function(){var t,e,i=this.input();if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length-1),this.popState(),this.tok.T_END_HEREDOC;for(;this.offset<this.size;)if("\\"===i&&(i=this.input(),o.includes(i)||(i=this.input())),o.includes(i)){if(i=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else if("$"===i){if("{"===(i=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),2<this.yytext.length?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return t=this.offset,e=this.consume_VARIABLE(),this.yytext.length>this.offset-t+2?(this.appendToken(e,this.offset-t+2),this.unput(this.offset-t+2),this.tok.T_ENCAPSED_AND_WHITESPACE):e}else if("{"===i){if("$"===(i=this.input()))return this.begin("ST_IN_SCRIPTING"),2<this.yytext.length?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN)}else i=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},consume_VARIABLE:function(){this.consume_LABEL();var t=this.input();if("["==t)this.unput(1),this.begin("ST_VAR_OFFSET");else if("-"===t){if(">"===this.input())return this.input(),this.is_LABEL_START()&&this.begin("ST_LOOKING_FOR_PROPERTY"),this.unput(3),this.tok.T_VARIABLE;this.unput(2)}else t&&this.unput(1);return this.tok.T_VARIABLE},matchST_BACKQUOTE:function(){var t,e,i=this.input();if("$"===i){if("{"===(i=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===i){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if("`"===i)return this.popState(),"`";for(;this.offset<this.size;){if("\\"===i)this.input();else{if("`"===i){this.unput(1),this.popState(),this.appendToken("`",1);break}if("$"===i){if("{"===(i=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),2<this.yytext.le