eslint-linter-browserify 8.4.0 → 8.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/linter.js +2 -2
  2. package/package.json +2 -2
package/linter.js CHANGED
@@ -5,9 +5,9 @@
5
5
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
6
6
  * @license MIT
7
7
  */
8
- function w(e){return null!=e&&(!!e._isBuffer||F(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&F(e.slice(0,0))}(e))}function F(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var T=global.performance||{};T.now||T.mozNow||T.msNow||T.oNow||T.webkitNow;var P="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},I=/%[sdj%]/g;function _(e){if(!z(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(L(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,s=n.length,o=String(e).replace(I,(function(e){if("%%"===e)return"%";if(r>=s)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),i=n[r];r<s;i=n[++r])q(i)||!K(i)?o+=" "+i:o+=" "+L(i);return o}var B,O={};function L(e,t){var r={seen:[],stylize:N};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),U(t)?r.showHidden=t:t&&ne(r,t),G(r.showHidden)&&(r.showHidden=!1),G(r.depth)&&(r.depth=2),G(r.colors)&&(r.colors=!1),G(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=j),R(r,e,r.depth)}function j(e,t){var r=L.styles[t];return r?"["+L.colors[r][0]+"m"+e+"["+L.colors[r][1]+"m":e}function N(e,t){return e}function R(e,t,r){if(e.customInspect&&t&&X(t.inspect)&&t.inspect!==L&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return z(n)||(n=R(e,n,r)),n}var s=function(e,t){if(G(t))return e.stylize("undefined","undefined");if(z(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(W(t))return e.stylize(""+t,"number");if(U(t))return e.stylize(""+t,"boolean");if(q(t))return e.stylize("null","null")}(e,t);if(s)return s;var o=Object.keys(t),i=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Q(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return M(t);if(0===o.length){if(X(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(H(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(J(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Q(t))return M(t)}var c,u="",l=!1,p=["{","}"];($(t)&&(l=!0,p=["[","]"]),X(t))&&(u=" [Function"+(t.name?": "+t.name:"")+"]");return H(t)&&(u=" "+RegExp.prototype.toString.call(t)),J(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Q(t)&&(u=" "+M(t)),0!==o.length||l&&0!=t.length?r<0?H(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,r,n,s){for(var o=[],i=0,a=t.length;i<a;++i)se(t,String(i))?o.push(V(e,t,r,n,String(i),!0)):o.push("");return s.forEach((function(s){s.match(/^\d+$/)||o.push(V(e,t,r,n,s,!0))})),o}(e,t,r,i,o):o.map((function(n){return V(e,t,r,i,n,l)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,p)):p[0]+u+p[1]}function M(e){return"["+Error.prototype.toString.call(e)+"]"}function V(e,t,r,n,s,o){var i,a,c;if((c=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),se(n,s)||(i="["+s+"]"),a||(e.seen.indexOf(c.value)<0?(a=q(r)?R(e,c.value,null):R(e,c.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),G(i)){if(o&&s.match(/^\d+$/))return a;(i=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+a}function $(e){return Array.isArray(e)}function U(e){return"boolean"==typeof e}function q(e){return null===e}function W(e){return"number"==typeof e}function z(e){return"string"==typeof e}function G(e){return void 0===e}function H(e){return K(e)&&"[object RegExp]"===Z(e)}function K(e){return"object"==typeof e&&null!==e}function J(e){return K(e)&&"[object Date]"===Z(e)}function Q(e){return K(e)&&("[object Error]"===Z(e)||e instanceof Error)}function X(e){return"function"==typeof e}function Y(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Z(e){return Object.prototype.toString.call(e)}function ee(e){return e<10?"0"+e.toString(10):e.toString(10)}L.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},L.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function re(){var e=new Date,t=[ee(e.getHours()),ee(e.getMinutes()),ee(e.getSeconds())].join(":");return[e.getDate(),te[e.getMonth()],t].join(" ")}function ne(e,t){if(!t||!K(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function se(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var oe={inherits:P,_extend:ne,log:function(){console.log("%s - %s",re(),_.apply(null,arguments))},isBuffer:function(e){return Buffer.isBuffer(e)},isPrimitive:Y,isFunction:X,isError:Q,isDate:J,isObject:K,isRegExp:H,isUndefined:G,isSymbol:function(e){return"symbol"==typeof e},isString:z,isNumber:W,isNullOrUndefined:function(e){return null==e},isNull:q,isBoolean:U,isArray:$,inspect:L,deprecate:function e(t,r){if(G(global.process))return function(){return e(t,r).apply(this,arguments)};var n=!1;return function(){return n||(console.error(r),n=!0),t.apply(this,arguments)}},format:_,debuglog:function(e){if(G(B)&&(B=""),e=e.toUpperCase(),!O[e])if(new RegExp("\\b"+e+"\\b","i").test(B)){O[e]=function(){var t=_.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else O[e]=function(){};return O[e]}};function ie(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,s=0,o=Math.min(r,n);s<o;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0}var ae,ce=Object.prototype.hasOwnProperty,ue=Object.keys||function(e){var t=[];for(var r in e)ce.call(e,r)&&t.push(r);return t},le=Array.prototype.slice;function pe(){return void 0!==ae?ae:ae="foo"===function(){}.name}function de(e){return Object.prototype.toString.call(e)}function fe(e){return!w(e)&&("function"==typeof global.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function he(e,t){e||ve(e,!0,t,"==",Ee)}var me=/\s*function\s+([^\(\s]*)\s*/;function ge(e){if(X(e)){if(pe())return e.name;var t=e.toString().match(me);return t&&t[1]}}function ye(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return xe(be(e.actual),128)+" "+e.operator+" "+xe(be(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||ve;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,s=ge(t),o=n.indexOf("\n"+s);if(o>=0){var i=n.indexOf("\n",o+1);n=n.substring(i+1)}this.stack=n}}}function xe(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function be(e){if(pe()||!X(e))return L(e);var t=ge(e);return"[Function"+(t?": "+t:"")+"]"}function ve(e,t,r,n,s){throw new ye({message:r,actual:e,expected:t,operator:n,stackStartFunction:s})}function Ee(e,t){e||ve(e,!0,t,"==",Ee)}function Ce(e,t,r,n){if(e===t)return!0;if(w(e)&&w(t))return 0===ie(e,t);if(J(e)&&J(t))return e.getTime()===t.getTime();if(H(e)&&H(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(fe(e)&&fe(t)&&de(e)===de(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===ie(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(w(e)!==w(t))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(Y(e)||Y(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var s=Se(e),o=Se(t);if(s&&!o||!s&&o)return!1;if(s)return Ce(e=le.call(e),t=le.call(t),r);var i,a,c=ue(e),u=ue(t);if(c.length!==u.length)return!1;for(c.sort(),u.sort(),a=c.length-1;a>=0;a--)if(c[a]!==u[a])return!1;for(a=c.length-1;a>=0;a--)if(!Ce(e[i=c[a]],t[i],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function Se(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function ke(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function Ae(e,t,r,n){var s;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),s=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!s&&ve(s,r,"Missing expected exception"+n);var o="string"==typeof n,i=!e&&s&&!r;if((!e&&Q(s)&&o&&ke(s,r)||i)&&ve(s,r,"Got unwanted exception"+n),e&&s&&r&&!ke(s,r)||!e&&s)throw s}he.AssertionError=ye,P(ye,Error),he.fail=ve,he.ok=Ee,he.equal=function e(t,r,n){t!=r&&ve(t,r,n,"==",e)},he.notEqual=function e(t,r,n){t==r&&ve(t,r,n,"!=",e)},he.deepEqual=function e(t,r,n){Ce(t,r,!1)||ve(t,r,n,"deepEqual",e)},he.deepStrictEqual=function e(t,r,n){Ce(t,r,!0)||ve(t,r,n,"deepStrictEqual",e)},he.notDeepEqual=function e(t,r,n){Ce(t,r,!1)&&ve(t,r,n,"notDeepEqual",e)},he.notDeepStrictEqual=function e(t,r,n){Ce(t,r,!0)&&ve(t,r,n,"notDeepStrictEqual",e)},he.strictEqual=function e(t,r,n){t!==r&&ve(t,r,n,"===",e)},he.notStrictEqual=function e(t,r,n){t===r&&ve(t,r,n,"!==",e)},he.throws=function(e,t,r){Ae(!0,e,t,r)},he.doesNotThrow=function(e,t,r){Ae(!1,e,t,r)},he.ifError=function(e){if(e)throw e};var De={};!function(e){!function e(t){var r,n,s,o,i,a;function c(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?c(r):r);return n}function u(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function p(){}function d(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function f(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new p).traverse(e,t)}function g(e,t){var r;return r=function(e,t){var r,n,s,o;for(n=e.length,s=0;n;)t(e[o=s+(r=n>>>1)])?n=r:(s=o+1,n-=r+1);return s}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:o={},Skip:i={},Remove:a={}},u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,r,n,s;function o(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(s=[],e=2,t=this.__leavelist.length;e<t;++e)o(s,this.__leavelist[e].path);return o(s,this.__current.path),s},p.prototype.type=function(){return this.current().type||this.__current.wrap},p.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},p.prototype.notify=function(e){this.__state=e},p.prototype.skip=function(){this.notify(i)},p.prototype.break=function(){this.notify(o)},p.prototype.remove=function(){this.notify(a)},p.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=s,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},p.prototype.traverse=function(e,t){var r,n,s,a,c,u,p,m,g,y,x,b;for(this.__initialize(e,t),b={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((s=r.pop())!==b){if(s.node){if(u=this.__execute(t.enter,s),this.__state===o||u===o)return;if(r.push(b),n.push(s),this.__state===i||u===i)continue;if(c=(a=s.node).type||s.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(a)}for(m=y.length;(m-=1)>=0;)if(x=a[p=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]&&!h(n,x[g])){if(f(c,y[m]))s=new l(x[g],[p,g],"Property",null);else{if(!d(x[g]))continue;s=new l(x[g],[p,g],null,null)}r.push(s)}}else if(d(x)){if(h(n,x))continue;r.push(new l(x,p,null,null))}}}else if(s=n.pop(),u=this.__execute(t.leave,s),this.__state===o||u===o)return},p.prototype.replace=function(e,t){var r,n,s,c,p,h,m,g,y,x,b,v,E;function C(e){var t,n,s,o;if(e.ref.remove())for(n=e.ref.key,o=e.ref.parent,t=r.length;t--;)if((s=r[t]).ref&&s.ref.parent===o){if(s.ref.key<n)break;--s.ref.key}}for(this.__initialize(e,t),b={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new u(v={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==b){if(void 0!==(p=this.__execute(t.enter,h))&&p!==o&&p!==i&&p!==a&&(h.ref.replace(p),h.node=p),this.__state!==a&&p!==a||(C(h),h.node=null),this.__state===o||p===o)return v.root;if((s=h.node)&&(r.push(b),n.push(h),this.__state!==i&&p!==i)){if(c=s.type||h.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(s)}for(m=y.length;(m-=1)>=0;)if(x=s[E=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(f(c,y[m]))h=new l(x[g],[E,g],"Property",new u(x,g));else{if(!d(x[g]))continue;h=new l(x[g],[E,g],null,new u(x,g))}r.push(h)}}else d(x)&&r.push(new l(x,E,null,new u(s,E)))}}else if(h=n.pop(),void 0!==(p=this.__execute(t.leave,h))&&p!==o&&p!==i&&p!==a&&h.ref.replace(p),this.__state!==a&&p!==a||C(h),this.__state===o||p===o)return v.root;return v.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,r){var s,o,i,a,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,o=t.length;i<o;i+=1)(s=c(t[i])).extendedRange=[0,e.range[0]],u.push(s);e.leadingComments=u}return e}for(i=0,o=t.length;i<o;i+=1)u.push(g(c(t[i]),r));return a=0,m(e,{enter:function(e){for(var t;a<u.length&&!((t=u[a]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),a=0,m(e,{leave:function(e){for(var t;a<u.length&&(t=u[a],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=s,t.VisitorOption=n,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(e)}(De);var we={},Fe="4.3.0";!function(){var e=De;function t(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function r(t,r){r=r||{},this.__visitor=t||this,this.__childVisitorKeys=r.childVisitorKeys?Object.assign({},e.VisitorKeys,r.childVisitorKeys):e.VisitorKeys,"iteration"===r.fallback?this.__fallback=Object.keys:"function"==typeof r.fallback&&(this.__fallback=r.fallback)}r.prototype.visitChildren=function(r){var n,s,o,i,a,c,u;if(null!=r){if(n=r.type||e.Syntax.Property,!(s=this.__childVisitorKeys[n])){if(!this.__fallback)throw new Error("Unknown node type "+n+".");s=this.__fallback(r)}for(o=0,i=s.length;o<i;++o)if(u=r[s[o]])if(Array.isArray(u))for(a=0,c=u.length;a<c;++a)u[a]&&(!t(u[a])&&(l=n,p=s[o],l!==e.Syntax.ObjectExpression&&l!==e.Syntax.ObjectPattern||"properties"!==p)||this.visit(u[a]));else t(u)&&this.visit(u);var l,p}},r.prototype.visit=function(t){var r;null!=t&&(r=t.type||e.Syntax.Property,this.__visitor[r]?this.__visitor[r].call(this,t):this.visitChildren(t))},we.version=Fe,we.Visitor=r,we.visit=function(e,t,n){new r(t,n).visit(e)}}(),Object.defineProperty(D,"__esModule",{value:!0});var Te=De,Pe=we;function Ie(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _e=Ie(he),Be=Ie(Te),Oe=Ie(Pe);class Le{constructor(e,t,r,n,s,o,i){this.identifier=e,this.from=t,this.tainted=!1,this.resolved=null,this.flag=r,this.isWrite()&&(this.writeExpr=n,this.partial=o,this.init=i),this.__maybeImplicitGlobal=s}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&Le.WRITE)}isRead(){return!!(this.flag&Le.READ)}isReadOnly(){return this.flag===Le.READ}isWriteOnly(){return this.flag===Le.WRITE}isReadWrite(){return this.flag===Le.RW}}Le.READ=1,Le.WRITE=2,Le.RW=3;class je{constructor(e,t){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=t}}je.CatchClause="CatchClause",je.Parameter="Parameter",je.FunctionName="FunctionName",je.ClassName="ClassName",je.Variable="Variable",je.ImportBinding="ImportBinding",je.ImplicitGlobalVariable="ImplicitGlobalVariable";class Ne{constructor(e,t,r,n,s,o){this.type=e,this.name=t,this.node=r,this.parent=n,this.index=s,this.kind=o}}class Re extends Ne{constructor(e,t,r,n){super(je.Parameter,e,t,null,r,null),this.rest=n}}const{Syntax:Me}=Be.default;function Ve(e){return e.type===je.ClassName||e.type===je.Variable&&"var"!==e.parent.kind}class $e{constructor(e,t,r,n,s){this.type=t,this.set=new Map,this.taints=new Map,this.dynamic="global"===this.type||"with"===this.type,this.block=n,this.through=[],this.variables=[],this.references=[],this.variableScope="global"===this.type||"module"===this.type||"function"===this.type||"class-field-initializer"===this.type||"class-static-block"===this.type?this:r.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=r,this.isStrict=function(e,t,r,n){let s;if(e.upper&&e.upper.isStrict)return!0;if(r)return!0;if("class"===e.type||"module"===e.type)return!0;if("block"===e.type||"switch"===e.type)return!1;if("function"===e.type){if(t.type===Me.ArrowFunctionExpression&&t.body.type!==Me.BlockStatement)return!1;if(s=t.type===Me.Program?t:t.body,!s)return!1}else{if("global"!==e.type)return!1;s=t}if(n)for(let e=0,t=s.body.length;e<t;++e){const t=s.body[e];if(t.type!==Me.DirectiveStatement)break;if('"use strict"'===t.raw||"'use strict'"===t.raw)return!0}else for(let e=0,t=s.body.length;e<t;++e){const t=s.body[e];if(t.type!==Me.ExpressionStatement)break;const r=t.expression;if(r.type!==Me.Literal||"string"!=typeof r.value)break;if(null!==r.raw&&void 0!==r.raw){if('"use strict"'===r.raw||"'use strict'"===r.raw)return!0}else if("use strict"===r.value)return!0}return!1}(this,n,s,e.__useDirective()),this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=e.__declaredVariables,function(e,t){e.scopes.push(t);const r=e.__nodeToScope.get(t.block);r?r.push(t):e.__nodeToScope.set(t.block,[t])}(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()}__shouldStaticallyCloseForGlobal(e){const t=e.identifier.name;if(!this.set.has(t))return!1;const r=this.set.get(t).defs;return r.length>0&&r.every(Ve)}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let t=this;do{t.through.push(e),t=t.upper}while(t)}__globalCloseRef(e){this.__shouldStaticallyCloseForGlobal(e)?this.__staticCloseRef(e):this.__dynamicCloseRef(e)}__close(e){let t;t=this.__shouldStaticallyClose(e)?this.__staticCloseRef:"global"!==this.type?this.__dynamicCloseRef:this.__globalCloseRef;for(let e=0,r=this.__left.length;e<r;++e){const r=this.__left[e];t.call(this,r)}return this.__left=null,this.upper}__isValidResolution(e,t){return!0}__resolve(e){const t=e.identifier.name;if(!this.set.has(t))return!1;const r=this.set.get(t);return!!this.__isValidResolution(e,r)&&(r.references.push(e),r.stack=r.stack&&e.from.variableScope===this.variableScope,e.tainted&&(r.tainted=!0,this.taints.set(r.name,!0)),e.resolved=r,!0)}__delegateToUpperScope(e){this.upper&&this.upper.__left.push(e),this.through.push(e)}__addDeclaredVariablesOfNode(e,t){if(null==t)return;let r=this.__declaredVariables.get(t);null==r&&(r=[],this.__declaredVariables.set(t,r)),-1===r.indexOf(e)&&r.push(e)}__defineGeneric(e,t,r,n,s){let o;o=t.get(e),o||(o=new je(e,this),t.set(e,o),r.push(o)),s&&(o.defs.push(s),this.__addDeclaredVariablesOfNode(o,s.node),this.__addDeclaredVariablesOfNode(o,s.parent)),n&&o.identifiers.push(n)}__define(e,t){e&&e.type===Me.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,t)}__referencing(e,t,r,n,s,o){if(!e||e.type!==Me.Identifier)return;if("super"===e.name)return;const i=new Le(e,this,t||Le.READ,r,n,!!s,!!o);this.references.push(i),this.__left.push(i)}__detectEval(){let e=this;this.directCallToEvalScope=!0;do{e.dynamic=!0,e=e.upper}while(e)}__detectThis(){this.thisFound=!0}__isClosed(){return null===this.__left}resolve(e){let t,r,n;for(_e.default(this.__isClosed(),"Scope should be closed."),_e.default(e.type===Me.Identifier,"Target should be identifier."),r=0,n=this.references.length;r<n;++r)if(t=this.references[r],t.identifier===e)return t;return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return!0}isThisMaterialized(){return!0}isUsedName(e){if(this.set.has(e))return!0;for(let t=0,r=this.through.length;t<r;++t)if(this.through[t].identifier.name===e)return!0;return!1}}class Ue extends $e{constructor(e,t){super(e,"global",null,t,!1),this.implicit={set:new Map,variables:[],left:[]}}__close(e){const t=[];for(let e=0,r=this.__left.length;e<r;++e){const r=this.__left[e];r.__maybeImplicitGlobal&&!this.set.has(r.identifier.name)&&t.push(r.__maybeImplicitGlobal)}for(let e=0,r=t.length;e<r;++e){const r=t[e];this.__defineImplicit(r.pattern,new Ne(je.ImplicitGlobalVariable,r.pattern,r.node,null,null,null))}return this.implicit.left=this.__left,super.__close(e)}__defineImplicit(e,t){e&&e.type===Me.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,t)}}class qe extends $e{constructor(e,t,r){super(e,"module",t,r,!1)}}class We extends $e{constructor(e,t,r){super(e,"function-expression-name",t,r,!1),this.__define(r.id,new Ne(je.FunctionName,r.id,r,null,null,null)),this.functionExpressionScope=!0}}class ze extends $e{constructor(e,t,r){super(e,"catch",t,r,!1)}}class Ge extends $e{constructor(e,t,r){super(e,"with",t,r,!1)}__close(e){if(this.__shouldStaticallyClose(e))return super.__close(e);for(let e=0,t=this.__left.length;e<t;++e){const t=this.__left[e];t.tainted=!0,this.__delegateToUpperScope(t)}return this.__left=null,this.upper}}class He extends $e{constructor(e,t,r){super(e,"block",t,r,!1)}}class Ke extends $e{constructor(e,t,r){super(e,"switch",t,r,!1)}}class Je extends $e{constructor(e,t,r,n){super(e,"function",t,r,n),this.block.type!==Me.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===Me.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;const e=this.set.get("arguments");return _e.default(e,"Always have arguments variable."),e.tainted||0!==e.references.length}isThisMaterialized(){return!this.isStatic()||this.thisFound}__defineArguments(){this.__defineGeneric("arguments",this.set,this.variables,null,null),this.taints.set("arguments",!0)}__isValidResolution(e,t){if("Program"===this.block.type)return!0;const r=this.block.body.range[0];return!(t.scope===this&&e.identifier.range[0]<r&&t.defs.every((e=>e.name.range[0]>=r)))}}class Qe extends $e{constructor(e,t,r){super(e,"for",t,r,!1)}}class Xe extends $e{constructor(e,t,r){super(e,"class",t,r,!1)}}class Ye extends $e{constructor(e,t,r){super(e,"class-field-initializer",t,r,!0)}}class Ze extends $e{constructor(e,t,r){super(e,"class-static-block",t,r,!0)}}class et{constructor(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=e,this.__declaredVariables=new WeakMap}__useDirective(){return this.__options.directive}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isNodejsScope(){return this.__options.nodejsScope||"commonjs"===this.__options.sourceType}isModule(){return"module"===this.__options.sourceType}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(e){return this.__nodeToScope.get(e)}getDeclaredVariables(e){return this.__declaredVariables.get(e)||[]}acquire(e,t){function r(e){return"function"!==e.type||!e.functionExpressionScope}const n=this.__get(e);if(!n||0===n.length)return null;if(1===n.length)return n[0];if(t)for(let e=n.length-1;e>=0;--e){const t=n[e];if(r(t))return t}else for(let e=0,t=n.length;e<t;++e){const t=n[e];if(r(t))return t}return null}acquireAll(e){return this.__get(e)}release(e,t){const r=this.__get(e);if(r&&r.length){const e=r[0].upper;return e?this.acquire(e.block,t):null}return null}attach(){}detach(){}__nestScope(e){return e instanceof Ue&&(_e.default(null===this.__currentScope),this.globalScope=e),this.__currentScope=e,e}__nestGlobalScope(e){return this.__nestScope(new Ue(this,e))}__nestBlockScope(e){return this.__nestScope(new He(this,this.__currentScope,e))}__nestFunctionScope(e,t){return this.__nestScope(new Je(this,this.__currentScope,e,t))}__nestForScope(e){return this.__nestScope(new Qe(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new ze(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new Ge(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new Xe(this,this.__currentScope,e))}__nestClassFieldInitializerScope(e){return this.__nestScope(new Ye(this,this.__currentScope,e))}__nestClassStaticBlockScope(e){return this.__nestScope(new Ze(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new Ke(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new qe(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new We(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}}const{Syntax:tt}=Be.default;class rt extends Oe.default.Visitor{static isPattern(e){const t=e.type;return t===tt.Identifier||t===tt.ObjectPattern||t===tt.ArrayPattern||t===tt.SpreadElement||t===tt.RestElement||t===tt.AssignmentPattern}constructor(e,t,r){super(null,e),this.rootPattern=t,this.callback=r,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){const t=(r=this.restElements)[r.length-1]||null;var r;this.callback(e,{topLevel:e===this.rootPattern,rest:null!=t&&t.argument===e,assignments:this.assignments})}Property(e){e.computed&&this.rightHandNodes.push(e.key),this.visit(e.value)}ArrayPattern(e){for(let t=0,r=e.elements.length;t<r;++t){const r=e.elements[t];this.visit(r)}}AssignmentPattern(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}RestElement(e){this.restElements.push(e),this.visit(e.argument),this.restElements.pop()}MemberExpression(e){e.computed&&this.rightHandNodes.push(e.property),this.rightHandNodes.push(e.object)}SpreadElement(e){this.visit(e.argument)}ArrayExpression(e){e.elements.forEach(this.visit,this)}AssignmentExpression(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}CallExpression(e){e.arguments.forEach((e=>{this.rightHandNodes.push(e)})),this.visit(e.callee)}}const{Syntax:nt}=Be.default;class st extends Oe.default.Visitor{constructor(e,t){super(null,t.options),this.declaration=e,this.referencer=t}visitImport(e,t){this.referencer.visitPattern(e,(e=>{this.referencer.currentScope().__define(e,new Ne(je.ImportBinding,e,t,this.declaration,null,null))}))}ImportNamespaceSpecifier(e){const t=e.local||e.id;t&&this.visitImport(t,e)}ImportDefaultSpecifier(e){const t=e.local||e.id;this.visitImport(t,e)}ImportSpecifier(e){const t=e.local||e.id;e.name?this.visitImport(e.name,e):this.visitImport(t,e)}}class ot extends Oe.default.Visitor{constructor(e,t){super(null,e),this.options=e,this.scopeManager=t,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(e){for(;this.currentScope()&&e===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(e){const t=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=e,t}popInnerMethodDefinition(e){this.isInnerMethodDefinition=e}referencingDefaultValue(e,t,r,n){const s=this.currentScope();t.forEach((t=>{s.__referencing(e,Le.WRITE,t.right,r,e!==t.left,n)}))}visitPattern(e,t,r){let n=t,s=r;"function"==typeof t&&(s=t,n={processRightHandNodes:!1}),function(e,t,r,n){const s=new rt(e,t,n);s.visit(t),null!=r&&s.rightHandNodes.forEach(r.visit,r)}(this.options,e,n.processRightHandNodes?this:null,s)}visitFunction(e){let t,r;e.type===nt.FunctionDeclaration&&this.currentScope().__define(e.id,new Ne(je.FunctionName,e.id,e,null,null,null)),e.type===nt.FunctionExpression&&e.id&&this.scopeManager.__nestFunctionExpressionNameScope(e),this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);const n=this;function s(r,s){n.currentScope().__define(r,new Re(r,e,t,s.rest)),n.referencingDefaultValue(r,s.assignments,null,!0)}for(t=0,r=e.params.length;t<r;++t)this.visitPattern(e.params[t],{processRightHandNodes:!0},s);e.rest&&this.visitPattern({type:"RestElement",argument:e.rest},(t=>{this.currentScope().__define(t,new Re(t,e,e.params.length,!0))})),e.body&&(e.body.type===nt.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===nt.ClassDeclaration&&this.currentScope().__define(e.id,new Ne(je.ClassName,e.id,e,null,null,null)),this.visit(e.superClass),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new Ne(je.ClassName,e.id,e)),this.visit(e.body),this.close(e)}visitProperty(e){let t;e.computed&&this.visit(e.key);const r=e.type===nt.MethodDefinition;r&&(t=this.pushInnerMethodDefinition(!0)),this.visit(e.value),r&&this.popInnerMethodDefinition(t)}visitForIn(e){e.left.type===nt.VariableDeclaration&&"var"!==e.left.kind&&this.scopeManager.__nestForScope(e),e.left.type===nt.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,(t=>{this.currentScope().__referencing(t,Le.WRITE,e.right,null,!0,!0)}))):this.visitPattern(e.left,{processRightHandNodes:!0},((t,r)=>{let n=null;this.currentScope().isStrict||(n={pattern:t,node:e}),this.referencingDefaultValue(t,r.assignments,n,!1),this.currentScope().__referencing(t,Le.WRITE,e.right,n,!0,!1)})),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,t,r,n){const s=r.declarations[n],o=s.init;this.visitPattern(s.id,{processRightHandNodes:!0},((i,a)=>{e.__define(i,new Ne(t,i,s,r,n,r.kind)),this.referencingDefaultValue(i,a.assignments,null,!0),o&&this.currentScope().__referencing(i,Le.WRITE,o,null,!a.topLevel,!0)}))}AssignmentExpression(e){rt.isPattern(e.left)?"="===e.operator?this.visitPattern(e.left,{processRightHandNodes:!0},((t,r)=>{let n=null;this.currentScope().isStrict||(n={pattern:t,node:e}),this.referencingDefaultValue(t,r.assignments,n,!1),this.currentScope().__referencing(t,Le.WRITE,e.right,n,!r.topLevel,!1)})):this.currentScope().__referencing(e.left,Le.RW,e.right):this.visit(e.left),this.visit(e.right)}CatchClause(e){this.scopeManager.__nestCatchScope(e),this.visitPattern(e.param,{processRightHandNodes:!0},((t,r)=>{this.currentScope().__define(t,new Ne(je.CatchClause,e.param,e,null,null,null)),this.referencingDefaultValue(t,r.assignments,null,!0)})),this.visit(e.body),this.close(e)}Program(e){this.scopeManager.__nestGlobalScope(e),this.scopeManager.__isNodejsScope()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(e,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(e),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(e),this.close(e)}Identifier(e){this.currentScope().__referencing(e)}PrivateIdentifier(){}UpdateExpression(e){rt.isPattern(e.argument)?this.currentScope().__referencing(e.argument,Le.RW,null):this.visitChildren(e)}MemberExpression(e){this.visit(e.object),e.computed&&this.visit(e.property)}Property(e){this.visitProperty(e)}PropertyDefinition(e){const{computed:t,key:r,value:n}=e;t&&this.visit(r),n&&(this.scopeManager.__nestClassFieldInitializerScope(n),this.visit(n),this.close(n))}StaticBlock(e){this.scopeManager.__nestClassStaticBlockScope(e),this.visitChildren(e),this.close(e)}MethodDefinition(e){this.visitProperty(e)}BreakStatement(){}ContinueStatement(){}LabeledStatement(e){this.visit(e.body)}ForStatement(e){e.init&&e.init.type===nt.VariableDeclaration&&"var"!==e.init.kind&&this.scopeManager.__nestForScope(e),this.visitChildren(e),this.close(e)}ClassExpression(e){this.visitClass(e)}ClassDeclaration(e){this.visitClass(e)}CallExpression(e){this.scopeManager.__ignoreEval()||e.callee.type!==nt.Identifier||"eval"!==e.callee.name||this.currentScope().variableScope.__detectEval(),this.visitChildren(e)}BlockStatement(e){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(e),this.visitChildren(e),this.close(e)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(e){this.visit(e.object),this.scopeManager.__nestWithScope(e),this.visit(e.body),this.close(e)}VariableDeclaration(e){const t="var"===e.kind?this.currentScope().variableScope:this.currentScope();for(let r=0,n=e.declarations.length;r<n;++r){const n=e.declarations[r];this.visitVariableDeclaration(t,je.Variable,e,r),n.init&&this.visit(n.init)}}SwitchStatement(e){this.visit(e.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestSwitchScope(e);for(let t=0,r=e.cases.length;t<r;++t)this.visit(e.cases[t]);this.close(e)}FunctionDeclaration(e){this.visitFunction(e)}FunctionExpression(e){this.visitFunction(e)}ForOfStatement(e){this.visitForIn(e)}ForInStatement(e){this.visitForIn(e)}ArrowFunctionExpression(e){this.visitFunction(e)}ImportDeclaration(e){_e.default(this.scopeManager.__isES6()&&this.scopeManager.isModule(),"ImportDeclaration should appear when the mode is ES6 and in the module context.");new st(e,this).visit(e)}visitExportDeclaration(e){e.source||(e.declaration?this.visit(e.declaration):this.visitChildren(e))}ExportDeclaration(e){this.visitExportDeclaration(e)}ExportAllDeclaration(e){this.visitExportDeclaration(e)}ExportDefaultDeclaration(e){this.visitExportDeclaration(e)}ExportNamedDeclaration(e){this.visitExportDeclaration(e)}ExportSpecifier(e){const t=e.id||e.local;this.visit(t)}MetaProperty(){}}function it(e,t){function r(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof Array)&&!(e instanceof RegExp)}for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];r(s)?r(e[n])?it(e[n],s):e[n]=it({},s):e[n]=s}return e}D.Definition=Ne,D.PatternVisitor=rt,D.Reference=Le,D.Referencer=ot,D.Scope=$e,D.ScopeManager=et,D.Variable=je,D.analyze=function(e,t){const r=it({optimistic:!1,directive:!1,nodejsScope:!1,impliedStrict:!1,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"},t),n=new et(r);return new ot(r,n).visit(e),_e.default(null===n.__currentScope,"currentScope should be null."),n},D.version="7.1.0";var at={};Object.defineProperty(at,"__esModule",{value:!0});const ct={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},ut=Object.keys(ct);for(const e of ut)Object.freeze(ct[e]);Object.freeze(ct);const lt=new Set(["parent","leadingComments","trailingComments"]);function pt(e){return!lt.has(e)&&"_"!==e[0]}at.KEYS=ct,at.getKeys=function(e){return Object.keys(e).filter(pt)},at.unionWith=function(e){const t=Object.assign({},ct);for(const r of Object.keys(e))if(Object.prototype.hasOwnProperty.call(t,r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)};var dt={},ft={exports:{}};!function(e,t){!function(e){var t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",n={5:r,"5module":r+" export import",6:r+" const class extends export import super"},s=/^in(stanceof)?$/,o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",a=new RegExp("["+o+"]"),c=new RegExp("["+o+i+"]");o=i=null;var u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function p(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&a.test(String.fromCharCode(e)):!1!==t&&p(e,u)))}function f(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&(p(e,u)||p(e,l)))))}var h=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function m(e,t){return new h(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},y={startsExpr:!0},x={};function b(e,t){return void 0===t&&(t={}),t.keyword=e,x[e]=new h(e,t)}var v={num:new h("num",y),regexp:new h("regexp",y),string:new h("string",y),name:new h("name",y),privateId:new h("privateId",y),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",g),semi:new h(";",g),colon:new h(":",g),dot:new h("."),question:new h("?",g),questionDot:new h("?."),arrow:new h("=>",g),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",g),backQuote:new h("`",y),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),plusMin:new h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new h("**",{beforeExpr:!0}),coalesce:m("??",1),_break:b("break"),_case:b("case",g),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",g),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",g),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",y),_if:b("if"),_return:b("return",g),_switch:b("switch"),_throw:b("throw",g),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",y),_super:b("super",y),_class:b("class",y),_extends:b("extends",g),_export:b("export"),_import:b("import",y),_null:b("null",y),_true:b("true",y),_false:b("false",y),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,C=new RegExp(E.source,"g");function S(e){return 10===e||13===e||8232===e||8233===e}var k=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,A=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,w=D.hasOwnProperty,F=D.toString;function T(e,t){return w.call(e,t)}var P=Array.isArray||function(e){return"[object Array]"===F.call(e)};function I(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var _=function(e,t){this.line=e,this.column=t};_.prototype.offset=function(e){return new _(this.line,this.column+e)};var B=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function O(e,t){for(var r=1,n=0;;){C.lastIndex=n;var s=C.exec(e);if(!(s&&s.index<t))return new _(r,t-n);++r,n=s.index+s[0].length}}var L={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},j=!1;function N(e){var t={};for(var r in L)t[r]=e&&T(e,r)?e[r]:L[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!j&&"object"==typeof console&&console.warn&&(j=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),P(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}return P(t.onComment)&&(t.onComment=R(t,t.onComment)),t}function R(e,t){return function(r,n,s,o,i,a){var c={type:r?"Block":"Line",value:n,start:s,end:o};e.locations&&(c.loc=new B(this,i,a)),e.ranges&&(c.range=[s,o]),t.push(c)}}var M=1,V=2,$=4,U=8,q=16,W=32,z=64,G=128,H=256,K=M|V|H;function J(e,t){return V|(e?$:0)|(t?U:0)}var Q=0,X=1,Y=2,Z=3,ee=4,te=5,re=function(e,r,s){this.options=e=N(e),this.sourceFile=e.sourceFile,this.keywords=I(n[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var o="";!0!==e.allowReserved&&(o=t[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(o+=" await")),this.reservedWords=I(o);var i=(o?o+" ":"")+t.strict;this.reservedWordsStrict=I(i),this.reservedWordsStrictBind=I(i+" "+t.strictBind),this.input=String(r),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=v.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(M),this.regexpState=null,this.privateNameStack=[]},ne={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};re.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ne.inFunction.get=function(){return(this.currentVarScope().flags&V)>0},ne.inGenerator.get=function(){return(this.currentVarScope().flags&U)>0&&!this.currentVarScope().inClassFieldInit},ne.inAsync.get=function(){return(this.currentVarScope().flags&$)>0&&!this.currentVarScope().inClassFieldInit},ne.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&H)return!1;if(t.flags&V)return(t.flags&$)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ne.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&z)>0||r||this.options.allowSuperOutsideMethod},ne.allowDirectSuper.get=function(){return(this.currentThisScope().flags&G)>0},ne.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ne.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(V|H))>0||r},ne.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&H)>0},re.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},re.parse=function(e,t){return new this(t,e).parse()},re.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},re.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(re.prototype,ne);var se=re.prototype,oe=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function ie(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}se.strictDirective=function(e){for(;;){A.lastIndex=e,e+=A.exec(this.input)[0].length;var t=oe.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){A.lastIndex=e+t[0].length;var r=A.exec(this.input),n=r.index+r[0].length,s=this.input.charAt(n);return";"===s||"}"===s||E.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(n+1))}e+=t[0].length,A.lastIndex=e,e+=A.exec(this.input)[0].length,";"===this.input[e]&&e++}},se.eat=function(e){return this.type===e&&(this.next(),!0)},se.isContextual=function(e){return this.type===v.name&&this.value===e&&!this.containsEsc},se.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},se.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},se.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},se.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},se.semicolon=function(){this.eat(v.semi)||this.insertSemicolon()||this.unexpected()},se.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},se.expect=function(e){this.eat(e)||this.unexpected()},se.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},se.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},se.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},se.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},se.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var ae=re.prototype;ae.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==v.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,s=Object.keys(this.undefinedExports);n<s.length;n+=1){var o=s[n];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ce={kind:"loop"},ue={kind:"switch"};ae.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;A.lastIndex=this.pos;var t=A.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n||92===n||n>55295&&n<56320)return!0;if(e)return!1;if(123===n)return!0;if(d(n,!0)){for(var o=r+1;f(n=this.input.charCodeAt(o),!0);)++o;if(92===n||n>55295&&n<56320)return!0;var i=this.input.slice(r,o);if(!s.test(i))return!0}return!1},ae.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;A.lastIndex=this.pos;var e,t=A.exec(this.input),r=this.pos+t[0].length;return!(E.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&(f(e=this.input.charCodeAt(r+8))||e>55295&&e<56320))},ae.parseStatement=function(e,t,r){var n,s=this.type,o=this.startNode();switch(this.isLet(e)&&(s=v._var,n="let"),s){case v._break:case v._continue:return this.parseBreakContinueStatement(o,s.keyword);case v._debugger:return this.parseDebuggerStatement(o);case v._do:return this.parseDoStatement(o);case v._for:return this.parseForStatement(o);case v._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case v._class:return e&&this.unexpected(),this.parseClass(o,!0);case v._if:return this.parseIfStatement(o);case v._return:return this.parseReturnStatement(o);case v._switch:return this.parseSwitchStatement(o);case v._throw:return this.parseThrowStatement(o);case v._try:return this.parseTryStatement(o);case v._const:case v._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(o,n);case v._while:return this.parseWhileStatement(o);case v._with:return this.parseWithStatement(o);case v.braceL:return this.parseBlock(!0,o);case v.semi:return this.parseEmptyStatement(o);case v._export:case v._import:if(this.options.ecmaVersion>10&&s===v._import){A.lastIndex=this.pos;var i=A.exec(this.input),a=this.pos+i[0].length,c=this.input.charCodeAt(a);if(40===c||46===c)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===v._import?this.parseImport(o):this.parseExport(o,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var u=this.value,l=this.parseExpression();return s===v.name&&"Identifier"===l.type&&this.eat(v.colon)?this.parseLabeledStatement(o,u,l,e):this.parseExpressionStatement(o,l)}},ae.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(v.semi)||this.insertSemicolon()?e.label=null:this.type!==v.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var s=this.labels[n];if(null==e.label||s.name===e.label.name){if(null!=s.kind&&(r||"loop"===s.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},ae.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},ae.parseDoStatement=function(e){return this.next(),this.labels.push(ce),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(v._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(v.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},ae.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ce),this.enterScope(0),this.expect(v.parenL),this.type===v.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===v._var||this.type===v._const||r){var n=this.startNode(),s=r?"let":this.value;return this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===v._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var o=this.isContextual("let"),i=!1,a=new ie,c=this.parseExpression(!(t>-1)||"await",a);return this.type===v._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===v._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&i&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,a),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},ae.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,pe|(r?0:de),!1,t)},ae.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(v._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},ae.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(v.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},ae.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(v.braceL),this.labels.push(ue),this.enterScope(0);for(var r=!1;this.type!==v.braceR;)if(this.type===v._case||this.type===v._default){var n=this.type===v._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(v.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},ae.parseThrowStatement=function(e){return this.next(),E.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var le=[];ae.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===v._catch){var t=this.startNode();if(this.next(),this.eat(v.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?W:0),this.checkLValPattern(t.param,r?ee:Y),this.expect(v.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(v._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},ae.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},ae.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ce),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},ae.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},ae.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},ae.parseLabeledStatement=function(e,t,r,n){for(var s=0,o=this.labels;s<o.length;s+=1)o[s].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var i=this.type.isLoop?"loop":this.type===v._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var c=this.labels[a];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=i}return this.labels.push({name:t,kind:i,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},ae.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},ae.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(v.braceL),e&&this.enterScope(0);this.type!==v.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},ae.parseFor=function(e,t){return e.init=t,this.expect(v.semi),e.test=this.type===v.semi?null:this.parseExpression(),this.expect(v.semi),e.update=this.type===v.parenR?null:this.parseExpression(),this.expect(v.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},ae.parseForIn=function(e,t){var r=this.type===v._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(v.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},ae.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(v.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===v._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(v.comma))break}return e},ae.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?X:Y,!1)};var pe=1,de=2,fe=4;function he(e,t){var r=t.key.name,n=e[r],s="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(s=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===s||"iset"===n&&"iget"===s||"sget"===n&&"sset"===s||"sset"===n&&"sget"===s?(e[r]="true",!1):!!n||(e[r]=s,!1)}function me(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}ae.parseFunction=function(e,t,r,n,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===v.star&&t&de&&this.unexpected(),e.generator=this.eat(v.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&pe&&(e.id=t&fe&&this.type!==v.name?null:this.parseIdent(),!e.id||t&de||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?X:Y:Z));var o=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(J(e.async,e.generator)),t&pe||(e.id=this.type===v.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,s),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,t&pe?"FunctionDeclaration":"FunctionExpression")},ae.parseFunctionParams=function(e){this.expect(v.parenL),e.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ae.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),s=this.startNode(),o=!1;for(s.body=[],this.expect(v.braceL);this.type!==v.braceR;){var i=this.parseClassElement(null!==e.superClass);i&&(s.body.push(i),"MethodDefinition"===i.type&&"constructor"===i.kind?(o&&this.raise(i.start,"Duplicate constructor in the same class"),o=!0):i.key&&"PrivateIdentifier"===i.key.type&&he(n,i)&&this.raiseRecoverable(i.key.start,"Identifier '#"+i.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},ae.parseClassElement=function(e){if(this.eat(v.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",s=!1,o=!1,i="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(v.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===v.star?a=!0:n="static"}if(r.static=a,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==v.star||this.canInsertSemicolon()?n="async":o=!0),!n&&(t>=9||!o)&&this.eat(v.star)&&(s=!0),!n&&!o&&!s){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?i=c:n=c)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===v.parenL||"method"!==i||s||o){var u=!r.static&&me(r,"constructor"),l=u&&e;u&&"method"!==i&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=u?"constructor":i,this.parseClassMethod(r,s,o,l)}else this.parseClassField(r);return r},ae.isClassElementNameStart=function(){return this.type===v.name||this.type===v.privateId||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword},ae.parseClassElementName=function(e){this.type===v.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},ae.parseClassMethod=function(e,t,r,n){var s=e.key;"constructor"===e.kind?(t&&this.raise(s.start,"Constructor can't be a generator"),r&&this.raise(s.start,"Constructor can't be an async method")):e.static&&me(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},ae.parseClassField=function(e){if(me(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&me(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(v.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},ae.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(H|z);this.type!==v.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},ae.parseClassId=function(e,t){this.type===v.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Y,!1)):(!0===t&&this.unexpected(),e.id=null)},ae.parseClassSuper=function(e){e.superClass=this.eat(v._extends)?this.parseExprSubscripts(!1):null},ae.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},ae.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,r=e.used,n=this.privateNameStack.length,s=0===n?null:this.privateNameStack[n-1],o=0;o<r.length;++o){var i=r[o];T(t,i.name)||(s?s.used.push(i):this.raiseRecoverable(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"))}},ae.parseExport=function(e,t){if(this.next(),this.eat(v.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(v._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===v._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,pe|fe,!1,r)}else if(this.type===v._class){var s=this.startNode();e.declaration=this.parseClass(s,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,i=e.specifiers;o<i.length;o+=1){var a=i[o];this.checkUnreserved(a.local),this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},ae.checkExport=function(e,t,r){e&&(T(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},ae.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var n=0,s=t.properties;n<s.length;n+=1){var o=s[n];this.checkPatternExport(e,o)}else if("ArrayPattern"===r)for(var i=0,a=t.elements;i<a.length;i+=1){var c=a[i];c&&this.checkPatternExport(e,c)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},ae.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var s=n[r];this.checkPatternExport(e,s.id)}},ae.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},ae.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(v.braceL);!this.eat(v.braceR);){if(r)r=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(e,n.exported.name,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},ae.parseImport=function(e){return this.next(),this.type===v.string?(e.specifiers=le,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===v.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},ae.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===v.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,Y),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(v.comma))return e}if(this.type===v.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLValSimple(n.local,Y),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(v.braceL);!this.eat(v.braceR);){if(t)t=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var s=this.startNode();s.imported=this.parseIdent(!0),this.eatContextual("as")?s.local=this.parseIdent():(this.checkUnreserved(s.imported),s.local=s.imported),this.checkLValSimple(s.local,Y),e.push(this.finishNode(s,"ImportSpecifier"))}return e},ae.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},ae.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var ge=re.prototype;ge.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,s=e.properties;n<s.length;n+=1){var o=s[n];this.toAssignable(o,t),"RestElement"!==o.type||"ArrayPattern"!==o.argument.type&&"ObjectPattern"!==o.argument.type||this.raise(o.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},ge.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var s=e[n];s&&this.toAssignable(s,t)}if(r){var o=e[r-1];6===this.options.ecmaVersion&&t&&o&&"RestElement"===o.type&&"Identifier"!==o.argument.type&&this.unexpected(o.argument.start)}return e},ge.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},ge.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==v.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},ge.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case v.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(v.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case v.braceL:return this.parseObj(!0)}return this.parseIdent()},ge.parseBindingList=function(e,t,r){for(var n=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(v.comma),t&&this.type===v.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===v.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),n.push(o),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var i=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(i),n.push(i)}return n},ge.parseBindingListItem=function(e){return e},ge.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(v.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},ge.checkLValSimple=function(e,t,r){void 0===t&&(t=Q);var n=t!==Q;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===Y&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(T(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==te&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},ge.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=Q),e.type){case"ObjectPattern":for(var n=0,s=e.properties;n<s.length;n+=1){var o=s[n];this.checkLValInnerPattern(o,t,r)}break;case"ArrayPattern":for(var i=0,a=e.elements;i<a.length;i+=1){var c=a[i];c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}},ge.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=Q),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var ye=function(e,t,r,n,s){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!s},xe={b_stat:new ye("{",!1),b_expr:new ye("{",!0),b_tmpl:new ye("${",!1),p_stat:new ye("(",!1),p_expr:new ye("(",!0),q_tmpl:new ye("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ye("function",!1),f_expr:new ye("function",!0),f_expr_gen:new ye("function",!0,!1,null,!0),f_gen:new ye("function",!1,!1,null,!0)},be=re.prototype;be.initialContext=function(){return[xe.b_stat]},be.curContext=function(){return this.context[this.context.length-1]},be.braceIsBlock=function(e){var t=this.curContext();return t===xe.f_expr||t===xe.f_stat||(e!==v.colon||t!==xe.b_stat&&t!==xe.b_expr?e===v._return||e===v.name&&this.exprAllowed?E.test(this.input.slice(this.lastTokEnd,this.start)):e===v._else||e===v.semi||e===v.eof||e===v.parenR||e===v.arrow||(e===v.braceL?t===xe.b_stat:e!==v._var&&e!==v._const&&e!==v.name&&!this.exprAllowed):!t.isExpr)},be.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},be.updateContext=function(e){var t,r=this.type;r.keyword&&e===v.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},be.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},v.parenR.updateContext=v.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===xe.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},v.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?xe.b_stat:xe.b_expr),this.exprAllowed=!0},v.dollarBraceL.updateContext=function(){this.context.push(xe.b_tmpl),this.exprAllowed=!0},v.parenL.updateContext=function(e){var t=e===v._if||e===v._for||e===v._with||e===v._while;this.context.push(t?xe.p_stat:xe.p_expr),this.exprAllowed=!0},v.incDec.updateContext=function(){},v._function.updateContext=v._class.updateContext=function(e){!e.beforeExpr||e===v._else||e===v.semi&&this.curContext()!==xe.p_stat||e===v._return&&E.test(this.input.slice(this.lastTokEnd,this.start))||(e===v.colon||e===v.braceL)&&this.curContext()===xe.b_stat?this.context.push(xe.f_stat):this.context.push(xe.f_expr),this.exprAllowed=!1},v.backQuote.updateContext=function(){this.curContext()===xe.q_tmpl?this.context.pop():this.context.push(xe.q_tmpl),this.exprAllowed=!1},v.star.updateContext=function(e){if(e===v._function){var t=this.context.length-1;this.context[t]===xe.f_expr?this.context[t]=xe.f_expr_gen:this.context[t]=xe.f_gen}this.exprAllowed=!0},v.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==v.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ve=re.prototype;function Ee(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Ee(e.expression)}ve.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,s=e.key;switch(s.type){case"Identifier":n=s.name;break;case"Literal":n=String(s.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===o&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);else{var i=t[n="$"+n];i?("init"===o?this.strict&&i.init||i.get||i.set:i.init||i[o])&&this.raiseRecoverable(s.start,"Redefinition of property"):i=t[n]={init:!1,get:!1,set:!1},i[o]=!0}}},ve.parseExpression=function(e,t){var r=this.start,n=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===v.comma){var o=this.startNodeAt(r,n);for(o.expressions=[s];this.eat(v.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return s},ve.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,s=-1,o=-1,i=-1;t?(s=t.parenthesizedAssign,o=t.trailingComma,i=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ie,n=!0);var a=this.start,c=this.startLoc;this.type!==v.parenL&&this.type!==v.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(r&&(u=r.call(this,u,a,c)),this.type.isAssign){var l=this.startNodeAt(a,c);return l.operator=this.value,this.type===v.eq&&(u=this.toAssignable(u,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===v.eq?this.checkLValPattern(u):this.checkLValSimple(u),l.left=u,this.next(),l.right=this.parseMaybeAssign(e),i>-1&&(t.doubleProto=i),this.finishNode(l,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),s>-1&&(t.parenthesizedAssign=s),o>-1&&(t.trailingComma=o),u},ve.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(v.question)){var o=this.startNodeAt(r,n);return o.test=s,o.consequent=this.parseMaybeAssign(),this.expect(v.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return s},ve.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===r&&"ArrowFunctionExpression"===s.type?s:this.parseExprOp(s,r,n,-1,e)},ve.parseExprOp=function(e,t,r,n,s){var o=this.type.binop;if(null!=o&&(!s||this.type!==v._in)&&o>n){var i=this.type===v.logicalOR||this.type===v.logicalAND,a=this.type===v.coalesce;a&&(o=v.logicalAND.binop);var c=this.value;this.next();var u=this.start,l=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),u,l,o,s),d=this.buildBinary(t,r,e,p,c,i||a);return(i&&this.type===v.coalesce||a&&(this.type===v.logicalOR||this.type===v.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,r,n,s)}return e},ve.buildBinary=function(e,t,r,n,s,o){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var i=this.startNodeAt(e,t);return i.left=r,i.operator=s,i.right=n,this.finishNode(i,o?"LogicalExpression":"BinaryExpression")},ve.parseMaybeUnary=function(e,t,r,n){var s,o=this.start,i=this.startLoc;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(n),t=!0;else if(this.type.prefix){var a=this.startNode(),c=this.type===v.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,c,n),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&Ee(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,s=this.finishNode(a,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==v.privateId){if(s=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(o,i);u.operator=this.value,u.prefix=!1,u.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(u,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==v._in&&this.unexpected();return r||!this.eat(v.starstar)?s:t?void this.unexpected(this.lastTokStart):this.buildBinary(o,i,s,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},ve.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,s=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===s.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return s;var o=this.parseSubscripts(s,r,n,!1,t);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o},ve.parseSubscripts=function(e,t,r,n,s){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,i=!1;;){var a=this.parseSubscript(e,t,r,n,o,i,s);if(a.optional&&(i=!0),a===e||"ArrowFunctionExpression"===a.type){if(i){var c=this.startNodeAt(t,r);c.expression=a,a=this.finishNode(c,"ChainExpression")}return a}e=a}},ve.parseSubscript=function(e,t,r,n,s,o,i){var a=this.options.ecmaVersion>=11,c=a&&this.eat(v.questionDot);n&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(v.bracketL);if(u||c&&this.type!==v.parenL&&this.type!==v.backQuote||this.eat(v.dot)){var l=this.startNodeAt(t,r);l.object=e,u?(l.property=this.parseExpression(),this.expect(v.bracketR)):this.type===v.privateId&&"Super"!==e.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!u,a&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!n&&this.eat(v.parenL)){var p=new ie,d=this.yieldPos,f=this.awaitPos,h=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1,p);if(s&&!c&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=f,this.awaitIdentPos=h,this.parseArrowExpression(this.startNodeAt(t,r),m,!0,i);this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=h||this.awaitIdentPos;var g=this.startNodeAt(t,r);g.callee=e,g.arguments=m,a&&(g.optional=c),e=this.finishNode(g,"CallExpression")}else if(this.type===v.backQuote){(c||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,r);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},ve.parseExprAtom=function(e,t){this.type===v.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case v._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==v.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==v.dot&&this.type!==v.bracketL&&this.type!==v.parenL&&this.unexpected(),this.finishNode(r,"Super");case v._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case v.name:var s=this.start,o=this.startLoc,i=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!i&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(v._function))return this.overrideContext(xe.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(v.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[a],!1,t);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===v.name&&!i&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(v.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[a],!0,t)}return a;case v.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:return(r=this.startNode()).value=this.type===v._null?null:this.type===v._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case v.parenL:var u=this.start,l=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),l;case v.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(v.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case v.braceL:return this.overrideContext(xe.b_expr),this.parseObj(!1,e);case v._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case v._class:return this.parseClass(this.startNode(),!1);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();case v._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ve.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case v.parenL:return this.parseDynamicImport(e);case v.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},ve.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(v.parenR)){var t=this.start;this.eat(v.comma)&&this.eat(v.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ve.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ve.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ve.parseParenExpression=function(){this.expect(v.parenL);var e=this.parseExpression();return this.expect(v.parenR),e},ve.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,s=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i,a=this.start,c=this.startLoc,u=[],l=!0,p=!1,d=new ie,f=this.yieldPos,h=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==v.parenR;){if(l?l=!1:this.expect(v.comma),o&&this.afterTrailingComma(v.parenR,!0)){p=!0;break}if(this.type===v.ellipsis){i=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(v.parenR),e&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=h,this.parseParenArrowList(n,s,u,t);u.length&&!p||this.unexpected(this.lastTokStart),i&&this.unexpected(i),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=h||this.awaitPos,u.length>1?((r=this.startNodeAt(a,c)).expressions=u,this.finishNodeAt(r,"SequenceExpression",m,g)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(n,s);return y.expression=r,this.finishNode(y,"ParenthesizedExpression")}return r},ve.parseParenItem=function(e){return e},ve.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var Ce=[];ve.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(v.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,s=this.startLoc,o=this.type===v._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,s,!0,!1),o&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(v.parenL)?e.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ce,this.finishNode(e,"NewExpression")},ve.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===v.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===v.backQuote,this.finishNode(r,"TemplateElement")},ve.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===v.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(v.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(v.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},ve.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===v.name||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===v.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},ve.parseObj=function(e,t){var r=this.startNode(),n=!0,s={};for(r.properties=[],this.next();!this.eat(v.braceR);){if(n)n=!1;else if(this.expect(v.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(v.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,s,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},ve.parseProperty=function(e,t){var r,n,s,o,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(v.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(this.type===v.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),i.argument=this.parseMaybeAssign(!1,t),this.type===v.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(s=this.start,o=this.startLoc),e||(r=this.eat(v.star)));var a=this.containsEsc;return this.parsePropertyName(i),!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(v.star),this.parsePropertyName(i,t)):n=!1,this.parsePropertyValue(i,e,r,n,s,o,t,a),this.finishNode(i,"Property")},ve.parsePropertyValue=function(e,t,r,n,s,o,i,a){if((r||n)&&this.type===v.colon&&this.unexpected(),this.eat(v.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===v.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===v.comma||this.type===v.braceR||this.type===v.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,o,this.copyNode(e.key)):this.type===v.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c="get"===e.kind?0:1;if(e.value.params.length!==c){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},ve.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(v.bracketR),e.key;e.computed=!1}return e.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ve.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ve.parseMethod=function(e,t,r){var n=this.startNode(),s=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(J(t,n.generator)|z|(r?G:0)),this.expect(v.parenL),n.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(n,"FunctionExpression")},ve.parseArrowExpression=function(e,t,r,n){var s=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(J(r,!1)|q),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(e,"ArrowFunctionExpression")},ve.parseFunctionBody=function(e,t,r,n){var s=t&&this.type!==v.braceL,o=this.strict,i=!1;if(s)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!a||(i=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!o&&!i&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,te),e.body=this.parseBlock(!1,void 0,i&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},ve.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},ve.checkParams=function(e,t){for(var r=Object.create(null),n=0,s=e.params;n<s.length;n+=1){var o=s[n];this.checkLValInnerPattern(o,X,t?null:r)}},ve.parseExprList=function(e,t,r,n){for(var s=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(v.comma),t&&this.afterTrailingComma(e))break;var i=void 0;r&&this.type===v.comma?i=null:this.type===v.ellipsis?(i=this.parseSpread(n),n&&this.type===v.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):i=this.parseMaybeAssign(!1,n),s.push(i)}return s},ve.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===n&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},ve.parseIdent=function(e,t){var r=this.startNode();return this.type===v.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},ve.parsePrivateIdent=function(){var e=this.startNode();return this.type===v.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},ve.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===v.semi||this.canInsertSemicolon()||this.type!==v.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(v.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ve.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Se=re.prototype;Se.raise=function(e,t){var r=O(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},Se.raiseRecoverable=Se.raise,Se.curPosition=function(){if(this.options.locations)return new _(this.curLine,this.pos-this.lineStart)};var ke=re.prototype,Ae=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ke.enterScope=function(e){this.scopeStack.push(new Ae(e))},ke.exitScope=function(){this.scopeStack.pop()},ke.treatFunctionsAsVarInScope=function(e){return e.flags&V||!this.inModule&&e.flags&M},ke.declareName=function(e,t,r){var n=!1;if(t===Y){var s=this.currentScope();n=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&M&&delete this.undefinedExports[e]}else if(t===ee)this.currentScope().lexical.push(e);else if(t===Z){var o=this.currentScope();n=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var a=this.scopeStack[i];if(a.lexical.indexOf(e)>-1&&!(a.flags&W&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){n=!0;break}if(a.var.push(e),this.inModule&&a.flags&M&&delete this.undefinedExports[e],a.flags&K)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ke.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ke.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ke.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&K)return t}},ke.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&K&&!(t.flags&q))return t}};var De=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new B(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},we=re.prototype;function Fe(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}we.startNode=function(){return new De(this,this.start,this.startLoc)},we.startNodeAt=function(e,t){return new De(this,e,t)},we.finishNode=function(e,t){return Fe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},we.finishNodeAt=function(e,t,r,n){return Fe.call(this,e,t,r,n)},we.copyNode=function(e){var t=new De(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var Te="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Pe=Te+" Extended_Pictographic",Ie={9:Te,10:Pe,11:Pe,12:Pe+" EBase EComp EMod EPres ExtPict"},_e="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Be="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Oe=Be+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Le=Oe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",je={9:Be,10:Oe,11:Le,12:Le+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},Ne={};function Re(e){var t=Ne[e]={binary:I(Ie[e]+" "+_e),nonBinary:{General_Category:I(_e),Script:I(je[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}Re(9),Re(10),Re(11),Re(12);var Me=re.prototype,Ve=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=Ne[e.options.ecmaVersion>=12?12:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function $e(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Ue(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function qe(e){return d(e,!0)||36===e||95===e}function We(e){return f(e,!0)||36===e||95===e||8204===e||8205===e}function ze(e){return e>=65&&e<=90||e>=97&&e<=122}function Ge(e){return e>=0&&e<=1114111}function He(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function Ke(e){return ze(e)||95===e}function Je(e){return Ke(e)||Qe(e)}function Qe(e){return e>=48&&e<=57}function Xe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ye(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ze(e){return e>=48&&e<=55}Ve.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Ve.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ve.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var s=r.charCodeAt(e);if(!t&&!this.switchU||s<=55295||s>=57344||e+1>=n)return s;var o=r.charCodeAt(e+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s},Ve.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var s,o=r.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=n||(s=r.charCodeAt(e+1))<56320||s>57343?e+1:e+2},Ve.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ve.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ve.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ve.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Me.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var s=r.charAt(n);-1===t.indexOf(s)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(s,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},Me.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Me.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];-1===e.groupNames.indexOf(n)&&e.raise("Invalid named capture referenced")}},Me.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Me.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Me.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Me.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},Me.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Me.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Me.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return-1!==s&&s<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},Me.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Me.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Me.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Me.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Me.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Me.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Me.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ue(t)&&(e.lastIntValue=t,e.advance(),!0)},Me.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!Ue(r);)e.advance();return e.pos!==t},Me.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Me.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Me.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Me.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=$e(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=$e(e.lastIntValue);return!0}return!1},Me.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),qe(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Me.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),We(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Me.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Me.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},Me.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Me.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Me.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Me.regexp_eatZero=function(e){return 48===e.current()&&!Qe(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Me.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Me.regexp_eatControlLetter=function(e){var t=e.current();return!!ze(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Me.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(n&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(i>=56320&&i<=57343)return e.lastIntValue=1024*(s-55296)+(i-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ge(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Me.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Me.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Me.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(He(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Me.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s),!0}return!1},Me.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){T(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},Me.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Me.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ke(t=e.current());)e.lastStringValue+=$e(t),e.advance();return""!==e.lastStringValue},Me.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Je(t=e.current());)e.lastStringValue+=$e(t),e.advance();return""!==e.lastStringValue},Me.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Me.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Me.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},Me.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||Ze(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Me.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Me.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Qe(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Me.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Me.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Qe(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},Me.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Xe(r=e.current());)e.lastIntValue=16*e.lastIntValue+Ye(r),e.advance();return e.pos!==t},Me.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},Me.regexp_eatOctalDigit=function(e){var t=e.current();return Ze(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Me.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var s=e.current();if(!Xe(s))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Ye(s),e.advance()}return!0};var et=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new B(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},tt=re.prototype;function rt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function nt(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function st(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}tt.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new et(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},tt.getToken=function(){return this.next(),new et(this)},"undefined"!=typeof Symbol&&(tt[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===v.eof,value:t}}}}),tt.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(v.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},tt.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},tt.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},tt.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),r=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(C.lastIndex=r;(e=C.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,n),r,this.pos,t,this.curPosition())},tt.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!S(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},tt.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&k.test(String.fromCharCode(e))))break e;++this.pos}}},tt.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},tt.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(v.ellipsis)):(++this.pos,this.finishToken(v.dot))},tt.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(v.assign,2):this.finishOp(v.slash,1)},tt.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?v.star:v.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=v.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(v.assign,r+1):this.finishOp(n,r)},tt.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(v.assign,3):this.finishOp(124===e?v.logicalOR:v.logicalAND,2):61===t?this.finishOp(v.assign,2):this.finishOp(124===e?v.bitwiseOR:v.bitwiseAND,1)},tt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(v.assign,2):this.finishOp(v.bitwiseXOR,1)},tt.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!E.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(v.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(v.assign,2):this.finishOp(v.plusMin,1)},tt.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(v.assign,r+1):this.finishOp(v.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(v.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tt.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(v.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(v.arrow)):this.finishOp(61===e?v.eq:v.prefix,1)},tt.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(v.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(v.assign,3):this.finishOp(v.coalesce,2)}return this.finishOp(v.question,1)},tt.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,d(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(v.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+st(e)+"'")},tt.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(v.parenL);case 41:return++this.pos,this.finishToken(v.parenR);case 59:return++this.pos,this.finishToken(v.semi);case 44:return++this.pos,this.finishToken(v.comma);case 91:return++this.pos,this.finishToken(v.bracketL);case 93:return++this.pos,this.finishToken(v.bracketR);case 123:return++this.pos,this.finishToken(v.braceL);case 125:return++this.pos,this.finishToken(v.braceR);case 58:return++this.pos,this.finishToken(v.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(v.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(v.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+st(e)+"'")},tt.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},tt.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(E.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var s=this.input.slice(r,this.pos);++this.pos;var o=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(o);var a=this.regexpState||(this.regexpState=new Ve(this));a.reset(r,s,i),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var c=null;try{c=new RegExp(s,i)}catch(e){}return this.finishToken(v.regexp,{pattern:s,flags:i,value:c})},tt.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,s=r&&48===this.input.charCodeAt(this.pos),o=this.pos,i=0,a=0,c=0,u=null==t?1/0:t;c<u;++c,++this.pos){var l=this.input.charCodeAt(this.pos),p=void 0;if(n&&95===l)s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=l;else{if((p=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;a=l,i=i*e+p}}return n&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:i},tt.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=nt(this.input.slice(t,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,r)},tt.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var s=nt(this.input.slice(t,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,s)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=rt(this.input.slice(t,this.pos),r);return this.finishToken(v.num,o)},tt.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},tt.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(S(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(v.string,t)};var ot={};tt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ot)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},tt.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ot;this.raise(e,t)},tt.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==v.template&&this.type!==v.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(v.template,e)):36===r?(this.pos+=2,this.finishToken(v.dollarBraceL)):(++this.pos,this.finishToken(v.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(S(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},tt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(v.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},tt.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return st(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(n=n.slice(0,-1),s=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return S(t)?"":String.fromCharCode(t)}},tt.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},tt.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(f(s,n))this.pos+=s<=65535?1:2;else{if(92!==s)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var i=this.readCodePoint();(t?d:f)(i,n)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=st(i),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},tt.readWord=function(){var e=this.readWord1(),t=v.name;return this.keywords.test(e)&&(t=x[e]),this.finishToken(t,e)};var it="8.6.0";function at(e,t){return re.parse(e,t)}function ct(e,t,r){return re.parseExpressionAt(e,t,r)}function ut(e,t){return re.tokenizer(e,t)}re.acorn={Parser:re,version:it,defaultOptions:L,Position:_,SourceLocation:B,getLineInfo:O,Node:De,TokenType:h,tokTypes:v,keywordTypes:x,TokContext:ye,tokContexts:xe,isIdentifierChar:f,isIdentifierStart:d,Token:et,isNewLine:S,lineBreak:E,lineBreakG:C,nonASCIIwhitespace:k},e.Node=De,e.Parser=re,e.Position=_,e.SourceLocation=B,e.TokContext=ye,e.Token=et,e.TokenType=h,e.defaultOptions=L,e.getLineInfo=O,e.isIdentifierChar=f,e.isIdentifierStart=d,e.isNewLine=S,e.keywordTypes=x,e.lineBreak=E,e.lineBreakG=C,e.nonASCIIwhitespace=k,e.parse=at,e.parseExpressionAt=ct,e.tokContexts=xe,e.tokTypes=v,e.tokenizer=ut,e.version=it,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,ft.exports);var ht={exports:{}},mt={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};!function(e){const t=mt,r=/^[\da-fA-F]+$/,n=/^\d+$/,s=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=s.get(e);if(!t){const r=e.tokTypes,n=e.TokContext,o=e.TokenType,i=new n("<tag",!1),a=new n("</tag",!1),c=new n("<tag>...</tag>",!0,!0),u={tc_oTag:i,tc_cTag:a,tc_expr:c},l={jsxName:new o("jsxName"),jsxText:new o("jsxText",{beforeExpr:!0}),jsxTagStart:new o("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new o("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(i),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===i&&e===r.slash||t===a?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:u,tokTypes:l},s.set(e,t)}return t}function i(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?i(e.object)+"."+i(e.property):void 0:e}e.exports=function(e){return e=e||{},function(s){return function(e,s){const a=s.acorn||ft.exports,c=o(a),u=a.tokTypes,l=c.tokTypes,p=a.tokContexts,d=c.tokContexts.tc_oTag,f=c.tokContexts.tc_cTag,h=c.tokContexts.tc_expr,m=a.isNewLine,g=a.isIdentifierStart,y=a.isIdentifierChar;return class extends s{static get acornJsx(){return c}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let r=this.input.charCodeAt(this.pos);switch(r){case 60:case 123:return this.pos===this.start?60===r&&this.exprAllowed?(++this.pos,this.finishToken(l.jsxTagStart)):this.getTokenFromCode(r):(e+=this.input.slice(t,this.pos),this.finishToken(l.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===r?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:m(r)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,r=this.input.charCodeAt(this.pos);return++this.pos,13===r&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",r=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let n=this.input.charCodeAt(this.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.pos),t+=this.jsx_readEntity(),r=this.pos):m(n)?(t+=this.input.slice(r,this.pos),t+=this.jsx_readNewLine(!1),r=this.pos):++this.pos}return t+=this.input.slice(r,this.pos++),this.finishToken(u.string,t)}jsx_readEntity(){let e,s="",o=0,i=this.input[this.pos];"&"!==i&&this.raise(this.pos,"Entity must start with an ampersand");let a=++this.pos;for(;this.pos<this.input.length&&o++<10;){if(i=this.input[this.pos++],";"===i){"#"===s[0]?"x"===s[1]?(s=s.substr(2),r.test(s)&&(e=String.fromCharCode(parseInt(s,16)))):(s=s.substr(1),n.test(s)&&(e=String.fromCharCode(parseInt(s,10)))):e=t[s];break}s+=i}return e||(this.pos=a,"&")}jsx_readWord(){let e,t=this.pos;do{e=this.input.charCodeAt(++this.pos)}while(y(e)||45===e);return this.finishToken(l.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===l.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let t=this.start,r=this.startLoc,n=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(u.colon))return n;var s=this.startNodeAt(t,r);return s.namespace=n,s.name=this.jsx_parseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===l.jsxTagEnd)return"";let t=this.start,r=this.startLoc,n=this.jsx_parseNamespacedName();for(this.type!==u.dot||"JSXNamespacedName"!==n.type||e.allowNamespacedObjects||this.unexpected();this.eat(u.dot);){let e=this.startNodeAt(t,r);e.object=n,e.property=this.jsx_parseIdentifier(),n=this.finishNode(e,"JSXMemberExpression")}return n}jsx_parseAttributeValue(){switch(this.type){case u.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case l.jsxTagStart:case u.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===u.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(u.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(u.braceL)?(this.expect(u.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(u.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(u.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let r=this.startNodeAt(e,t);r.attributes=[];let n=this.jsx_parseElementName();for(n&&(r.name=n);this.type!==u.slash&&this.type!==l.jsxTagEnd;)r.attributes.push(this.jsx_parseAttribute());return r.selfClosing=this.eat(u.slash),this.expect(l.jsxTagEnd),this.finishNode(r,n?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let r=this.startNodeAt(e,t),n=this.jsx_parseElementName();return n&&(r.name=n),this.expect(l.jsxTagEnd),this.finishNode(r,n?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let r=this.startNodeAt(e,t),n=[],s=this.jsx_parseOpeningElementAt(e,t),o=null;if(!s.selfClosing){e:for(;;)switch(this.type){case l.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(u.slash)){o=this.jsx_parseClosingElementAt(e,t);break e}n.push(this.jsx_parseElementAt(e,t));break;case l.jsxText:n.push(this.parseExprAtom());break;case u.braceL:n.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}i(o.name)!==i(s.name)&&this.raise(o.start,"Expected corresponding JSX closing tag for <"+i(s.name)+">")}let a=s.name?"Element":"Fragment";return r["opening"+a]=s,r["closing"+a]=o,r.children=n,this.type===u.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSX"+a)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===l.jsxText?this.jsx_parseText():this.type===l.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===h)return this.jsx_readToken();if(t===d||t===f){if(g(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(l.jsxTagEnd);if((34===e||39===e)&&t==d)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(l.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==u.braceL){var t=this.curContext();t==d?this.context.push(p.b_expr):t==h?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==u.slash||e!==l.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(f),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},s)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return o(ft.exports).tokTypes},configurable:!0,enumerable:!0})}(ht),Object.defineProperty(dt,"__esModule",{value:!0});var gt=ht.exports,yt=at;function xt(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function bt(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var vt=bt(ft.exports),Et=xt(gt),Ct=bt(yt),St={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"};const kt="Boolean",At="Identifier",Dt="PrivateIdentifier",wt="Keyword",Ft="Null",Tt="Numeric",Pt="Punctuator",It="String",_t="RegularExpression",Bt="Template",Ot="JSXIdentifier",Lt="JSXText";function jt(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}jt.prototype={constructor:jt,translate(e,t){const r=e.type,n=this._acornTokTypes;if(r===n.name)e.type=At,"static"===e.value&&(e.type=wt),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=wt);else if(r===n.privateId)e.type=Dt;else if(r===n.semi||r===n.comma||r===n.parenL||r===n.parenR||r===n.braceL||r===n.braceR||r===n.dot||r===n.bracketL||r===n.colon||r===n.question||r===n.bracketR||r===n.ellipsis||r===n.arrow||r===n.jsxTagStart||r===n.incDec||r===n.starstar||r===n.jsxTagEnd||r===n.prefix||r===n.questionDot||r.binop&&!r.keyword||r.isAssign)e.type=Pt,e.value=this._code.slice(e.start,e.end);else if(r===n.jsxName)e.type=Ot;else if("jsxText"===r.label||r===n.jsxAttrValueToken)e.type=Lt;else if(r.keyword)"true"===r.keyword||"false"===r.keyword?e.type=kt:"null"===r.keyword?e.type=Ft:e.type=wt;else if(r===n.num)e.type=Tt,e.value=this._code.slice(e.start,e.end);else if(r===n.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=Lt):e.type=It,e.value=this._code.slice(e.start,e.end);else if(r===n.regexp){e.type=_t;const t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){const r=this,n=this._acornTokTypes,s=t.tokens,o=this._tokens;function i(){s.push(function(e,t){const r=e[0],n=e[e.length-1],s={type:Bt,value:t.slice(r.start,n.end)};return r.loc&&(s.loc={start:r.loc.start,end:n.loc.end}),r.range&&(s.start=r.range[0],s.end=n.range[1],s.range=[s.start,s.end]),s}(r._tokens,r._code)),r._tokens=[]}if(e.type!==n.eof){if(e.type===n.backQuote)return this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),o.push(e),void(o.length>1&&i());if(e.type===n.dollarBraceL)return o.push(e),void i();if(e.type===n.braceR)return this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),void(this._curlyBrace=e);if(e.type===n.template||e.type===n.invalidTemplate)return this._curlyBrace&&(o.push(this._curlyBrace),this._curlyBrace=null),void o.push(e);this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}else this._curlyBrace&&s.push(this.translate(this._curlyBrace,t))}};const Nt=[3,5,6,7,8,9,10,11,12,13];function Rt(){return Nt[Nt.length-1]}function Mt(e){const t=function(e=5){let t="latest"===e?Rt():e;if("number"!=typeof t)throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!Nt.includes(t))throw new Error("Invalid ecmaVersion.");return t}(e.ecmaVersion),r=function(e="script"){if("script"===e||"module"===e)return e;if("commonjs"===e)return"script";throw new Error("Invalid sourceType.")}(e.sourceType),n=!0===e.range,s=!0===e.loc;if(3!==t&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(void 0!==e.allowReserved&&"boolean"!=typeof e.allowReserved)throw new Error("`allowReserved`, when present, must be `true` or `false`");const o=3===t&&(e.allowReserved||"never"),i=e.ecmaFeatures||{},a="commonjs"===e.sourceType||Boolean(i.globalReturn);if("module"===r&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:r,ranges:n,locations:s,allowReserved:o,allowReturnOutsideFunction:a})}const Vt=Symbol("espree's internal state"),$t=Symbol("espree's esprimaFinishNode");var Ut=()=>e=>{const t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,r){"object"==typeof e&&null!==e||(e={}),"string"==typeof r||r instanceof String||(r=String(r));const n=e.sourceType,s=Mt(e),o=s.ecmaFeatures||{},i=!0===s.tokens?new jt(t,r):null;super({ecmaVersion:s.ecmaVersion,sourceType:s.sourceType,ranges:s.ranges,locations:s.locations,allowReserved:s.allowReserved,allowReturnOutsideFunction:s.allowReturnOutsideFunction,onToken:e=>{i&&i.onToken(e,this[Vt]),e.type!==t.eof&&(this[Vt].lastToken=e)},onComment:(e,t,r,n,s,o)=>{if(this[Vt].comments){const i=function(e,t,r,n,s,o){const i={type:e?"Block":"Line",value:t};return"number"==typeof r&&(i.start=r,i.end=n,i.range=[r,n]),"object"==typeof s&&(i.loc={start:s,end:o}),i}(e,t,r,n,s,o);this[Vt].comments.push(i)}}},r),this[Vt]={originalSourceType:n||s.sourceType,tokens:i?[]:null,comments:!0===s.comment?[]:null,impliedStrict:!0===o.impliedStrict&&this.options.ecmaVersion>=5,ecmaVersion:this.options.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]}}tokenize(){do{this.next()}while(this.type!==t.eof);this.next();const e=this[Vt],r=e.tokens;return e.comments&&(r.comments=e.comments),r}finishNode(...e){const t=super.finishNode(...e);return this[$t](t)}finishNodeAt(...e){const t=super.finishNodeAt(...e);return this[$t](t)}parse(){const e=this[Vt],t=super.parse();if(t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.body.length){const[e]=t.body;t.range&&(t.range[0]=e.range[0]),t.loc&&(t.loc.start=e.loc.start),t.start=e.start}return e.lastToken&&(t.range&&(t.range[1]=e.lastToken.range[1]),t.loc&&(t.loc.end=e.lastToken.loc.end),t.end=e.lastToken.end),this[Vt].templateElements.forEach((e=>{const t=e.tail?1:2;e.start+=-1,e.end+=t,e.range&&(e.range[0]+=-1,e.range[1]+=t),e.loc&&(e.loc.start.column+=-1,e.loc.end.column+=t)})),t}parseTopLevel(e){return this[Vt].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,r){const n=e.acorn.getLineInfo(this.input,t),s=new SyntaxError(r);throw s.index=t,s.lineNumber=n.line,s.column=n.column+1,s}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(t+=" "+this.input.slice(this.start,this.end)),this.raise(this.start,t)}jsx_readString(e){const r=super.jsx_readString(e);return this.type===t.string&&(this[Vt].jsxAttrValueToken=!0),r}[$t](e){return"TemplateElement"===e.type&&this[Vt].templateElements.push(e),e.type.includes("Function")&&!e.generator&&(e.generator=!1),e}}};const qt={_regular:null,_jsx:null,get regular(){return null===this._regular&&(this._regular=vt.Parser.extend(Ut())),this._regular},get jsx(){return null===this._jsx&&(this._jsx=vt.Parser.extend(Et.default(),Ut())),this._jsx},get(e){return Boolean(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};const Wt=function(){let e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),St)Object.hasOwnProperty.call(St,e)&&(t[e]=St[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}(),zt=Ct.KEYS,Gt=Rt(),Ht=[...Nt];dt.Syntax=Wt,dt.VisitorKeys=zt,dt.latestEcmaVersion=Gt,dt.parse=function(e,t){return new(qt.get(t))(t,e).parse()},dt.supportedEcmaVersions=Ht,dt.tokenize=function(e,t){const r=qt.get(t);return t&&!0===t.tokens||(t=Object.assign({},t,{tokens:!0})),new r(t,e).tokenize()},dt.version="9.2.0";var Kt={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",o="[object Function]",i="[object Object]",a=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[s]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[o]=u["[object Map]"]=u["[object Number]"]=u[i]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var l="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,d=l||p||Function("return this")(),f=t&&!t.nodeType&&t,h=f&&e&&!e.nodeType&&e,m=h&&h.exports===f,g=m&&l.process,y=function(){try{var e=h&&h.require&&h.require("util").types;return e||g&&g.binding&&g.binding("util")}catch(e){}}(),x=y&&y.isTypedArray;function b(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var v,E,C,S=Array.prototype,k=Function.prototype,A=Object.prototype,D=d["__core-js_shared__"],w=k.toString,F=A.hasOwnProperty,T=(v=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",P=A.toString,I=w.call(Object),_=RegExp("^"+w.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=m?d.Buffer:void 0,O=d.Symbol,L=d.Uint8Array,j=B?B.allocUnsafe:void 0,N=(E=Object.getPrototypeOf,C=Object,function(e){return E(C(e))}),R=Object.create,M=A.propertyIsEnumerable,V=S.splice,$=O?O.toStringTag:void 0,U=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=B?B.isBuffer:void 0,W=Math.max,z=Date.now,G=fe(d,"Map"),H=fe(Object,"create"),K=function(){function e(){}return function(t){if(!Ae(t))return{};if(R)return R(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function J(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Y(e){var t=this.__data__=new Q(e);this.size=t.size}function Z(e,t){var r=ve(e),n=!r&&be(e),s=!r&&!n&&Ce(e),o=!r&&!n&&!s&&we(e),i=r||n||s||o,a=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!F.call(e,u)||i&&("length"==u||s&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||he(u,c))||a.push(u);return a}function ee(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&ne(e,t,r)}function te(e,t,r){var n=e[t];F.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||ne(e,t,r)}function re(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}function ne(e,t,r){"__proto__"==t&&U?U(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}J.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},J.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},J.prototype.get=function(e){var t=this.__data__;if(H){var n=t[e];return n===r?void 0:n}return F.call(t,e)?t[e]:void 0},J.prototype.has=function(e){var t=this.__data__;return H?void 0!==t[e]:F.call(t,e)},J.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=H&&void 0===t?r:t,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,r=re(t,e);return!(r<0)&&(r==t.length-1?t.pop():V.call(t,r,1),--this.size,!0)},Q.prototype.get=function(e){var t=this.__data__,r=re(t,e);return r<0?void 0:t[r][1]},Q.prototype.has=function(e){return re(this.__data__,e)>-1},Q.prototype.set=function(e,t){var r=this.__data__,n=re(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(G||Q),string:new J}},X.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return de(this,e).get(e)},X.prototype.has=function(e){return de(this,e).has(e)},X.prototype.set=function(e,t){var r=de(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Y.prototype.clear=function(){this.__data__=new Q,this.size=0},Y.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Y.prototype.get=function(e){return this.__data__.get(e)},Y.prototype.has=function(e){return this.__data__.has(e)},Y.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Q){var n=r.__data__;if(!G||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new X(n)}return r.set(e,t),this.size=r.size,this};var se,oe=function(e,t,r){for(var n=-1,s=Object(e),o=r(e),i=o.length;i--;){var a=o[se?i:++n];if(!1===t(s[a],a,s))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?function(e){var t=F.call(e,$),r=e[$];try{e[$]=void 0;var n=!0}catch(e){}var s=P.call(e);n&&(t?e[$]=r:delete e[$]);return s}(e):function(e){return P.call(e)}(e)}function ae(e){return De(e)&&ie(e)==s}function ce(e){return!(!Ae(e)||function(e){return!!T&&T in e}(e))&&(Se(e)?_:a).test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ue(e){if(!Ae(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=me(e),r=[];for(var n in e)("constructor"!=n||!t&&F.call(e,n))&&r.push(n);return r}function le(e,t,r,n,s){e!==t&&oe(t,(function(o,a){if(s||(s=new Y),Ae(o))!function(e,t,r,n,s,o,a){var c=ge(e,r),u=ge(t,r),l=a.get(u);if(l)return void ee(e,r,l);var p=o?o(c,u,r+"",e,t,a):void 0,d=void 0===p;if(d){var f=ve(u),h=!f&&Ce(u),m=!f&&!h&&we(u);p=u,f||h||m?ve(c)?p=c:De(v=c)&&Ee(v)?p=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(c):h?(d=!1,p=function(e,t){if(t)return e.slice();var r=e.length,n=j?j(r):new e.constructor(r);return e.copy(n),n}(u,!0)):m?(d=!1,g=u,y=!0?(x=g.buffer,b=new x.constructor(x.byteLength),new L(b).set(new L(x)),b):g.buffer,p=new g.constructor(y,g.byteOffset,g.length)):p=[]:function(e){if(!De(e)||ie(e)!=i)return!1;var t=N(e);if(null===t)return!0;var r=F.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&w.call(r)==I}(u)||be(u)?(p=c,be(c)?p=function(e){return function(e,t,r,n){var s=!r;r||(r={});var o=-1,i=t.length;for(;++o<i;){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),s?ne(r,a,c):te(r,a,c)}return r}(e,Fe(e))}(c):Ae(c)&&!Se(c)||(p=function(e){return"function"!=typeof e.constructor||me(e)?{}:K(N(e))}(u))):d=!1}var g,y,x,b;var v;d&&(a.set(u,p),s(p,u,n,o,a),a.delete(u));ee(e,r,p)}(e,t,a,r,le,n,s);else{var c=n?n(ge(e,a),o,a+"",e,t,s):void 0;void 0===c&&(c=o),ee(e,a,c)}}),Fe)}function pe(e,t){return ye(function(e,t,r){return t=W(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,o=W(n.length-t,0),i=Array(o);++s<o;)i[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=r(i),b(e,this,a)}}(e,t,Ie),e+"")}function de(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function fe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ce(r)?r:void 0}function he(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&c.test(e))&&e>-1&&e%1==0&&e<t}function me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function ge(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ye=function(e){var t=0,r=0;return function(){var n=z(),s=16-(n-r);if(r=n,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(U?function(e,t){return U(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Ie);function xe(e,t){return e===t||e!=e&&t!=t}var be=ae(function(){return arguments}())?ae:function(e){return De(e)&&F.call(e,"callee")&&!M.call(e,"callee")},ve=Array.isArray;function Ee(e){return null!=e&&ke(e.length)&&!Se(e)}var Ce=q||function(){return!1};function Se(e){if(!Ae(e))return!1;var t=ie(e);return t==o||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Ae(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function De(e){return null!=e&&"object"==typeof e}var we=x?function(e){return function(t){return e(t)}}(x):function(e){return De(e)&&ke(e.length)&&!!u[ie(e)]};function Fe(e){return Ee(e)?Z(e,!0):ue(e)}var Te,Pe=(Te=function(e,t,r){le(e,t,r)},pe((function(e,t){var r=-1,n=t.length,s=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(s=Te.length>3&&"function"==typeof s?(n--,s):void 0,o&&function(e,t,r){if(!Ae(r))return!1;var n=typeof t;return!!("number"==n?Ee(r)&&he(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++r<n;){var i=t[r];i&&Te(e,i,r,s)}return e})));function Ie(e){return e}e.exports=Pe}(Kt,Kt.exports);var Jt={name:"eslint",version:"8.4.0",author:"Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",description:"An AST-based pattern checker for JavaScript.",bin:{eslint:"./bin/eslint.js"},main:"./lib/api.js",exports:{"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},scripts:{test:"node Makefile.js test","test:cli":"mocha",lint:"node Makefile.js lint",fix:"node Makefile.js lint -- fix",fuzz:"node Makefile.js fuzz","generate-release":"node Makefile.js generateRelease","generate-alpharelease":"node Makefile.js generatePrerelease -- alpha","generate-betarelease":"node Makefile.js generatePrerelease -- beta","generate-rcrelease":"node Makefile.js generatePrerelease -- rc","publish-release":"node Makefile.js publishRelease",gensite:"node Makefile.js gensite",webpack:"node Makefile.js webpack",perf:"node Makefile.js perf"},gitHooks:{"pre-commit":"lint-staged"},"lint-staged":{"*.js":"eslint --fix","*.md":"markdownlint"},files:["LICENSE","README.md","bin","conf","lib","messages"],repository:"eslint/eslint",funding:"https://opencollective.com/eslint",homepage:"https://eslint.org",bugs:"https://github.com/eslint/eslint/issues/",dependencies:{"@eslint/eslintrc":"^1.0.5","@humanwhocodes/config-array":"^0.9.2",ajv:"^6.10.0",chalk:"^4.0.0","cross-spawn":"^7.0.2",debug:"^4.3.2",doctrine:"^3.0.0",enquirer:"^2.3.5","escape-string-regexp":"^4.0.0","eslint-scope":"^7.1.0","eslint-utils":"^3.0.0","eslint-visitor-keys":"^3.1.0",espree:"^9.2.0",esquery:"^1.4.0",esutils:"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"^6.0.1","functional-red-black-tree":"^1.0.1","glob-parent":"^6.0.1",globals:"^13.6.0",ignore:"^4.0.6","import-fresh":"^3.0.0",imurmurhash:"^0.1.4","is-glob":"^4.0.0","js-yaml":"^4.1.0","json-stable-stringify-without-jsonify":"^1.0.1",levn:"^0.4.1","lodash.merge":"^4.6.2",minimatch:"^3.0.4","natural-compare":"^1.4.0",optionator:"^0.9.1",progress:"^2.0.0",regexpp:"^3.2.0",semver:"^7.2.1","strip-ansi":"^6.0.1","strip-json-comments":"^3.1.0","text-table":"^0.2.0","v8-compile-cache":"^2.0.3"},devDependencies:{"@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","babel-loader":"^8.0.5",chai:"^4.0.1",cheerio:"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3",dateformat:"^4.5.1",ejs:"^3.0.2",eslint:"file:.","eslint-config-eslint":"file:packages/eslint-config-eslint","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-eslint-plugin":"^4.0.1","eslint-plugin-internal-rules":"file:tools/internal-rules","eslint-plugin-jsdoc":"^37.0.0","eslint-plugin-node":"^11.1.0","eslint-release":"^3.2.0",eslump:"^3.0.0",esprima:"^4.0.1","fs-teardown":"^0.1.3",glob:"^7.1.6",jsdoc:"^3.5.5",karma:"^6.1.1","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-webpack":"^5.0.0","lint-staged":"^11.0.0","load-perf":"^0.2.0",markdownlint:"^0.24.0","markdownlint-cli":"^0.30.0",memfs:"^3.0.1",mocha:"^8.3.2","mocha-junit-reporter":"^2.0.0","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3",nyc:"^15.0.1",proxyquire:"^2.0.1",puppeteer:"^9.1.1",recast:"^0.20.4","regenerator-runtime":"^0.13.2",shelljs:"^0.8.2",sinon:"^11.0.0",temp:"^0.9.0",webpack:"^5.23.0","webpack-cli":"^4.5.0",yorkie:"^2.0.0"},keywords:["ast","lint","javascript","ecmascript","espree"],license:"MIT",engines:{node:"^12.22.0 || ^14.17.0 || >=16.0.0"}};const Qt=/\r\n|[\r\n\u2028\u2029]/u;var Xt={breakableTypePattern:/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,lineBreakPattern:Qt,createGlobalLinebreakMatcher:function(){return new RegExp(Qt.source,"gu")},shebangPattern:/^#!([^\r\n]+)/u},Yt={},Zt={exports:{}};
8
+ function w(e){return null!=e&&(!!e._isBuffer||F(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&F(e.slice(0,0))}(e))}function F(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var T=global.performance||{};T.now||T.mozNow||T.msNow||T.oNow||T.webkitNow;var P="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},I=/%[sdj%]/g;function _(e){if(!z(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(L(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,s=n.length,o=String(e).replace(I,(function(e){if("%%"===e)return"%";if(r>=s)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),i=n[r];r<s;i=n[++r])q(i)||!K(i)?o+=" "+i:o+=" "+L(i);return o}var B,O={};function L(e,t){var r={seen:[],stylize:N};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),U(t)?r.showHidden=t:t&&ne(r,t),G(r.showHidden)&&(r.showHidden=!1),G(r.depth)&&(r.depth=2),G(r.colors)&&(r.colors=!1),G(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=j),R(r,e,r.depth)}function j(e,t){var r=L.styles[t];return r?"["+L.colors[r][0]+"m"+e+"["+L.colors[r][1]+"m":e}function N(e,t){return e}function R(e,t,r){if(e.customInspect&&t&&X(t.inspect)&&t.inspect!==L&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return z(n)||(n=R(e,n,r)),n}var s=function(e,t){if(G(t))return e.stylize("undefined","undefined");if(z(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(W(t))return e.stylize(""+t,"number");if(U(t))return e.stylize(""+t,"boolean");if(q(t))return e.stylize("null","null")}(e,t);if(s)return s;var o=Object.keys(t),i=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Q(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return M(t);if(0===o.length){if(X(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(H(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(J(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Q(t))return M(t)}var c,u="",l=!1,p=["{","}"];($(t)&&(l=!0,p=["[","]"]),X(t))&&(u=" [Function"+(t.name?": "+t.name:"")+"]");return H(t)&&(u=" "+RegExp.prototype.toString.call(t)),J(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Q(t)&&(u=" "+M(t)),0!==o.length||l&&0!=t.length?r<0?H(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,r,n,s){for(var o=[],i=0,a=t.length;i<a;++i)se(t,String(i))?o.push(V(e,t,r,n,String(i),!0)):o.push("");return s.forEach((function(s){s.match(/^\d+$/)||o.push(V(e,t,r,n,s,!0))})),o}(e,t,r,i,o):o.map((function(n){return V(e,t,r,i,n,l)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,p)):p[0]+u+p[1]}function M(e){return"["+Error.prototype.toString.call(e)+"]"}function V(e,t,r,n,s,o){var i,a,c;if((c=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),se(n,s)||(i="["+s+"]"),a||(e.seen.indexOf(c.value)<0?(a=q(r)?R(e,c.value,null):R(e,c.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),G(i)){if(o&&s.match(/^\d+$/))return a;(i=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+a}function $(e){return Array.isArray(e)}function U(e){return"boolean"==typeof e}function q(e){return null===e}function W(e){return"number"==typeof e}function z(e){return"string"==typeof e}function G(e){return void 0===e}function H(e){return K(e)&&"[object RegExp]"===Z(e)}function K(e){return"object"==typeof e&&null!==e}function J(e){return K(e)&&"[object Date]"===Z(e)}function Q(e){return K(e)&&("[object Error]"===Z(e)||e instanceof Error)}function X(e){return"function"==typeof e}function Y(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Z(e){return Object.prototype.toString.call(e)}function ee(e){return e<10?"0"+e.toString(10):e.toString(10)}L.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},L.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function re(){var e=new Date,t=[ee(e.getHours()),ee(e.getMinutes()),ee(e.getSeconds())].join(":");return[e.getDate(),te[e.getMonth()],t].join(" ")}function ne(e,t){if(!t||!K(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function se(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var oe={inherits:P,_extend:ne,log:function(){console.log("%s - %s",re(),_.apply(null,arguments))},isBuffer:function(e){return Buffer.isBuffer(e)},isPrimitive:Y,isFunction:X,isError:Q,isDate:J,isObject:K,isRegExp:H,isUndefined:G,isSymbol:function(e){return"symbol"==typeof e},isString:z,isNumber:W,isNullOrUndefined:function(e){return null==e},isNull:q,isBoolean:U,isArray:$,inspect:L,deprecate:function e(t,r){if(G(global.process))return function(){return e(t,r).apply(this,arguments)};var n=!1;return function(){return n||(console.error(r),n=!0),t.apply(this,arguments)}},format:_,debuglog:function(e){if(G(B)&&(B=""),e=e.toUpperCase(),!O[e])if(new RegExp("\\b"+e+"\\b","i").test(B)){O[e]=function(){var t=_.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else O[e]=function(){};return O[e]}};function ie(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,s=0,o=Math.min(r,n);s<o;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0}var ae,ce=Object.prototype.hasOwnProperty,ue=Object.keys||function(e){var t=[];for(var r in e)ce.call(e,r)&&t.push(r);return t},le=Array.prototype.slice;function pe(){return void 0!==ae?ae:ae="foo"===function(){}.name}function de(e){return Object.prototype.toString.call(e)}function fe(e){return!w(e)&&("function"==typeof global.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function he(e,t){e||ve(e,!0,t,"==",Ee)}var me=/\s*function\s+([^\(\s]*)\s*/;function ge(e){if(X(e)){if(pe())return e.name;var t=e.toString().match(me);return t&&t[1]}}function ye(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return xe(be(e.actual),128)+" "+e.operator+" "+xe(be(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||ve;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,s=ge(t),o=n.indexOf("\n"+s);if(o>=0){var i=n.indexOf("\n",o+1);n=n.substring(i+1)}this.stack=n}}}function xe(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function be(e){if(pe()||!X(e))return L(e);var t=ge(e);return"[Function"+(t?": "+t:"")+"]"}function ve(e,t,r,n,s){throw new ye({message:r,actual:e,expected:t,operator:n,stackStartFunction:s})}function Ee(e,t){e||ve(e,!0,t,"==",Ee)}function Ce(e,t,r,n){if(e===t)return!0;if(w(e)&&w(t))return 0===ie(e,t);if(J(e)&&J(t))return e.getTime()===t.getTime();if(H(e)&&H(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(fe(e)&&fe(t)&&de(e)===de(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===ie(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(w(e)!==w(t))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(Y(e)||Y(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var s=Se(e),o=Se(t);if(s&&!o||!s&&o)return!1;if(s)return Ce(e=le.call(e),t=le.call(t),r);var i,a,c=ue(e),u=ue(t);if(c.length!==u.length)return!1;for(c.sort(),u.sort(),a=c.length-1;a>=0;a--)if(c[a]!==u[a])return!1;for(a=c.length-1;a>=0;a--)if(!Ce(e[i=c[a]],t[i],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function Se(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function ke(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function Ae(e,t,r,n){var s;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),s=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!s&&ve(s,r,"Missing expected exception"+n);var o="string"==typeof n,i=!e&&s&&!r;if((!e&&Q(s)&&o&&ke(s,r)||i)&&ve(s,r,"Got unwanted exception"+n),e&&s&&r&&!ke(s,r)||!e&&s)throw s}he.AssertionError=ye,P(ye,Error),he.fail=ve,he.ok=Ee,he.equal=function e(t,r,n){t!=r&&ve(t,r,n,"==",e)},he.notEqual=function e(t,r,n){t==r&&ve(t,r,n,"!=",e)},he.deepEqual=function e(t,r,n){Ce(t,r,!1)||ve(t,r,n,"deepEqual",e)},he.deepStrictEqual=function e(t,r,n){Ce(t,r,!0)||ve(t,r,n,"deepStrictEqual",e)},he.notDeepEqual=function e(t,r,n){Ce(t,r,!1)&&ve(t,r,n,"notDeepEqual",e)},he.notDeepStrictEqual=function e(t,r,n){Ce(t,r,!0)&&ve(t,r,n,"notDeepStrictEqual",e)},he.strictEqual=function e(t,r,n){t!==r&&ve(t,r,n,"===",e)},he.notStrictEqual=function e(t,r,n){t===r&&ve(t,r,n,"!==",e)},he.throws=function(e,t,r){Ae(!0,e,t,r)},he.doesNotThrow=function(e,t,r){Ae(!1,e,t,r)},he.ifError=function(e){if(e)throw e};var De={};!function(e){!function e(t){var r,n,s,o,i,a;function c(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?c(r):r);return n}function u(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function p(){}function d(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function f(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new p).traverse(e,t)}function g(e,t){var r;return r=function(e,t){var r,n,s,o;for(n=e.length,s=0;n;)t(e[o=s+(r=n>>>1)])?n=r:(s=o+1,n-=r+1);return s}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:o={},Skip:i={},Remove:a={}},u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,r,n,s;function o(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(s=[],e=2,t=this.__leavelist.length;e<t;++e)o(s,this.__leavelist[e].path);return o(s,this.__current.path),s},p.prototype.type=function(){return this.current().type||this.__current.wrap},p.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},p.prototype.notify=function(e){this.__state=e},p.prototype.skip=function(){this.notify(i)},p.prototype.break=function(){this.notify(o)},p.prototype.remove=function(){this.notify(a)},p.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=s,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},p.prototype.traverse=function(e,t){var r,n,s,a,c,u,p,m,g,y,x,b;for(this.__initialize(e,t),b={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((s=r.pop())!==b){if(s.node){if(u=this.__execute(t.enter,s),this.__state===o||u===o)return;if(r.push(b),n.push(s),this.__state===i||u===i)continue;if(c=(a=s.node).type||s.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(a)}for(m=y.length;(m-=1)>=0;)if(x=a[p=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]&&!h(n,x[g])){if(f(c,y[m]))s=new l(x[g],[p,g],"Property",null);else{if(!d(x[g]))continue;s=new l(x[g],[p,g],null,null)}r.push(s)}}else if(d(x)){if(h(n,x))continue;r.push(new l(x,p,null,null))}}}else if(s=n.pop(),u=this.__execute(t.leave,s),this.__state===o||u===o)return},p.prototype.replace=function(e,t){var r,n,s,c,p,h,m,g,y,x,b,v,E;function C(e){var t,n,s,o;if(e.ref.remove())for(n=e.ref.key,o=e.ref.parent,t=r.length;t--;)if((s=r[t]).ref&&s.ref.parent===o){if(s.ref.key<n)break;--s.ref.key}}for(this.__initialize(e,t),b={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new u(v={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==b){if(void 0!==(p=this.__execute(t.enter,h))&&p!==o&&p!==i&&p!==a&&(h.ref.replace(p),h.node=p),this.__state!==a&&p!==a||(C(h),h.node=null),this.__state===o||p===o)return v.root;if((s=h.node)&&(r.push(b),n.push(h),this.__state!==i&&p!==i)){if(c=s.type||h.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(s)}for(m=y.length;(m-=1)>=0;)if(x=s[E=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(f(c,y[m]))h=new l(x[g],[E,g],"Property",new u(x,g));else{if(!d(x[g]))continue;h=new l(x[g],[E,g],null,new u(x,g))}r.push(h)}}else d(x)&&r.push(new l(x,E,null,new u(s,E)))}}else if(h=n.pop(),void 0!==(p=this.__execute(t.leave,h))&&p!==o&&p!==i&&p!==a&&h.ref.replace(p),this.__state!==a&&p!==a||C(h),this.__state===o||p===o)return v.root;return v.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,r){var s,o,i,a,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,o=t.length;i<o;i+=1)(s=c(t[i])).extendedRange=[0,e.range[0]],u.push(s);e.leadingComments=u}return e}for(i=0,o=t.length;i<o;i+=1)u.push(g(c(t[i]),r));return a=0,m(e,{enter:function(e){for(var t;a<u.length&&!((t=u[a]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),a=0,m(e,{leave:function(e){for(var t;a<u.length&&(t=u[a],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=s,t.VisitorOption=n,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(e)}(De);var we={},Fe="4.3.0";!function(){var e=De;function t(e){return null!=e&&("object"==typeof e&&"string"==typeof e.type)}function r(t,r){r=r||{},this.__visitor=t||this,this.__childVisitorKeys=r.childVisitorKeys?Object.assign({},e.VisitorKeys,r.childVisitorKeys):e.VisitorKeys,"iteration"===r.fallback?this.__fallback=Object.keys:"function"==typeof r.fallback&&(this.__fallback=r.fallback)}r.prototype.visitChildren=function(r){var n,s,o,i,a,c,u;if(null!=r){if(n=r.type||e.Syntax.Property,!(s=this.__childVisitorKeys[n])){if(!this.__fallback)throw new Error("Unknown node type "+n+".");s=this.__fallback(r)}for(o=0,i=s.length;o<i;++o)if(u=r[s[o]])if(Array.isArray(u))for(a=0,c=u.length;a<c;++a)u[a]&&(!t(u[a])&&(l=n,p=s[o],l!==e.Syntax.ObjectExpression&&l!==e.Syntax.ObjectPattern||"properties"!==p)||this.visit(u[a]));else t(u)&&this.visit(u);var l,p}},r.prototype.visit=function(t){var r;null!=t&&(r=t.type||e.Syntax.Property,this.__visitor[r]?this.__visitor[r].call(this,t):this.visitChildren(t))},we.version=Fe,we.Visitor=r,we.visit=function(e,t,n){new r(t,n).visit(e)}}(),Object.defineProperty(D,"__esModule",{value:!0});var Te=De,Pe=we;function Ie(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _e=Ie(he),Be=Ie(Te),Oe=Ie(Pe);class Le{constructor(e,t,r,n,s,o,i){this.identifier=e,this.from=t,this.tainted=!1,this.resolved=null,this.flag=r,this.isWrite()&&(this.writeExpr=n,this.partial=o,this.init=i),this.__maybeImplicitGlobal=s}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&Le.WRITE)}isRead(){return!!(this.flag&Le.READ)}isReadOnly(){return this.flag===Le.READ}isWriteOnly(){return this.flag===Le.WRITE}isReadWrite(){return this.flag===Le.RW}}Le.READ=1,Le.WRITE=2,Le.RW=3;class je{constructor(e,t){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=t}}je.CatchClause="CatchClause",je.Parameter="Parameter",je.FunctionName="FunctionName",je.ClassName="ClassName",je.Variable="Variable",je.ImportBinding="ImportBinding",je.ImplicitGlobalVariable="ImplicitGlobalVariable";class Ne{constructor(e,t,r,n,s,o){this.type=e,this.name=t,this.node=r,this.parent=n,this.index=s,this.kind=o}}class Re extends Ne{constructor(e,t,r,n){super(je.Parameter,e,t,null,r,null),this.rest=n}}const{Syntax:Me}=Be.default;function Ve(e){return e.type===je.ClassName||e.type===je.Variable&&"var"!==e.parent.kind}class $e{constructor(e,t,r,n,s){this.type=t,this.set=new Map,this.taints=new Map,this.dynamic="global"===this.type||"with"===this.type,this.block=n,this.through=[],this.variables=[],this.references=[],this.variableScope="global"===this.type||"module"===this.type||"function"===this.type||"class-field-initializer"===this.type||"class-static-block"===this.type?this:r.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=r,this.isStrict=function(e,t,r,n){let s;if(e.upper&&e.upper.isStrict)return!0;if(r)return!0;if("class"===e.type||"module"===e.type)return!0;if("block"===e.type||"switch"===e.type)return!1;if("function"===e.type){if(t.type===Me.ArrowFunctionExpression&&t.body.type!==Me.BlockStatement)return!1;if(s=t.type===Me.Program?t:t.body,!s)return!1}else{if("global"!==e.type)return!1;s=t}if(n)for(let e=0,t=s.body.length;e<t;++e){const t=s.body[e];if(t.type!==Me.DirectiveStatement)break;if('"use strict"'===t.raw||"'use strict'"===t.raw)return!0}else for(let e=0,t=s.body.length;e<t;++e){const t=s.body[e];if(t.type!==Me.ExpressionStatement)break;const r=t.expression;if(r.type!==Me.Literal||"string"!=typeof r.value)break;if(null!==r.raw&&void 0!==r.raw){if('"use strict"'===r.raw||"'use strict'"===r.raw)return!0}else if("use strict"===r.value)return!0}return!1}(this,n,s,e.__useDirective()),this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=e.__declaredVariables,function(e,t){e.scopes.push(t);const r=e.__nodeToScope.get(t.block);r?r.push(t):e.__nodeToScope.set(t.block,[t])}(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()}__shouldStaticallyCloseForGlobal(e){const t=e.identifier.name;if(!this.set.has(t))return!1;const r=this.set.get(t).defs;return r.length>0&&r.every(Ve)}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let t=this;do{t.through.push(e),t=t.upper}while(t)}__globalCloseRef(e){this.__shouldStaticallyCloseForGlobal(e)?this.__staticCloseRef(e):this.__dynamicCloseRef(e)}__close(e){let t;t=this.__shouldStaticallyClose(e)?this.__staticCloseRef:"global"!==this.type?this.__dynamicCloseRef:this.__globalCloseRef;for(let e=0,r=this.__left.length;e<r;++e){const r=this.__left[e];t.call(this,r)}return this.__left=null,this.upper}__isValidResolution(e,t){return!0}__resolve(e){const t=e.identifier.name;if(!this.set.has(t))return!1;const r=this.set.get(t);return!!this.__isValidResolution(e,r)&&(r.references.push(e),r.stack=r.stack&&e.from.variableScope===this.variableScope,e.tainted&&(r.tainted=!0,this.taints.set(r.name,!0)),e.resolved=r,!0)}__delegateToUpperScope(e){this.upper&&this.upper.__left.push(e),this.through.push(e)}__addDeclaredVariablesOfNode(e,t){if(null==t)return;let r=this.__declaredVariables.get(t);null==r&&(r=[],this.__declaredVariables.set(t,r)),-1===r.indexOf(e)&&r.push(e)}__defineGeneric(e,t,r,n,s){let o;o=t.get(e),o||(o=new je(e,this),t.set(e,o),r.push(o)),s&&(o.defs.push(s),this.__addDeclaredVariablesOfNode(o,s.node),this.__addDeclaredVariablesOfNode(o,s.parent)),n&&o.identifiers.push(n)}__define(e,t){e&&e.type===Me.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,t)}__referencing(e,t,r,n,s,o){if(!e||e.type!==Me.Identifier)return;if("super"===e.name)return;const i=new Le(e,this,t||Le.READ,r,n,!!s,!!o);this.references.push(i),this.__left.push(i)}__detectEval(){let e=this;this.directCallToEvalScope=!0;do{e.dynamic=!0,e=e.upper}while(e)}__detectThis(){this.thisFound=!0}__isClosed(){return null===this.__left}resolve(e){let t,r,n;for(_e.default(this.__isClosed(),"Scope should be closed."),_e.default(e.type===Me.Identifier,"Target should be identifier."),r=0,n=this.references.length;r<n;++r)if(t=this.references[r],t.identifier===e)return t;return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return!0}isThisMaterialized(){return!0}isUsedName(e){if(this.set.has(e))return!0;for(let t=0,r=this.through.length;t<r;++t)if(this.through[t].identifier.name===e)return!0;return!1}}class Ue extends $e{constructor(e,t){super(e,"global",null,t,!1),this.implicit={set:new Map,variables:[],left:[]}}__close(e){const t=[];for(let e=0,r=this.__left.length;e<r;++e){const r=this.__left[e];r.__maybeImplicitGlobal&&!this.set.has(r.identifier.name)&&t.push(r.__maybeImplicitGlobal)}for(let e=0,r=t.length;e<r;++e){const r=t[e];this.__defineImplicit(r.pattern,new Ne(je.ImplicitGlobalVariable,r.pattern,r.node,null,null,null))}return this.implicit.left=this.__left,super.__close(e)}__defineImplicit(e,t){e&&e.type===Me.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,t)}}class qe extends $e{constructor(e,t,r){super(e,"module",t,r,!1)}}class We extends $e{constructor(e,t,r){super(e,"function-expression-name",t,r,!1),this.__define(r.id,new Ne(je.FunctionName,r.id,r,null,null,null)),this.functionExpressionScope=!0}}class ze extends $e{constructor(e,t,r){super(e,"catch",t,r,!1)}}class Ge extends $e{constructor(e,t,r){super(e,"with",t,r,!1)}__close(e){if(this.__shouldStaticallyClose(e))return super.__close(e);for(let e=0,t=this.__left.length;e<t;++e){const t=this.__left[e];t.tainted=!0,this.__delegateToUpperScope(t)}return this.__left=null,this.upper}}class He extends $e{constructor(e,t,r){super(e,"block",t,r,!1)}}class Ke extends $e{constructor(e,t,r){super(e,"switch",t,r,!1)}}class Je extends $e{constructor(e,t,r,n){super(e,"function",t,r,n),this.block.type!==Me.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===Me.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;const e=this.set.get("arguments");return _e.default(e,"Always have arguments variable."),e.tainted||0!==e.references.length}isThisMaterialized(){return!this.isStatic()||this.thisFound}__defineArguments(){this.__defineGeneric("arguments",this.set,this.variables,null,null),this.taints.set("arguments",!0)}__isValidResolution(e,t){if("Program"===this.block.type)return!0;const r=this.block.body.range[0];return!(t.scope===this&&e.identifier.range[0]<r&&t.defs.every((e=>e.name.range[0]>=r)))}}class Qe extends $e{constructor(e,t,r){super(e,"for",t,r,!1)}}class Xe extends $e{constructor(e,t,r){super(e,"class",t,r,!1)}}class Ye extends $e{constructor(e,t,r){super(e,"class-field-initializer",t,r,!0)}}class Ze extends $e{constructor(e,t,r){super(e,"class-static-block",t,r,!0)}}class et{constructor(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=e,this.__declaredVariables=new WeakMap}__useDirective(){return this.__options.directive}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isNodejsScope(){return this.__options.nodejsScope||"commonjs"===this.__options.sourceType}isModule(){return"module"===this.__options.sourceType}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(e){return this.__nodeToScope.get(e)}getDeclaredVariables(e){return this.__declaredVariables.get(e)||[]}acquire(e,t){function r(e){return"function"!==e.type||!e.functionExpressionScope}const n=this.__get(e);if(!n||0===n.length)return null;if(1===n.length)return n[0];if(t)for(let e=n.length-1;e>=0;--e){const t=n[e];if(r(t))return t}else for(let e=0,t=n.length;e<t;++e){const t=n[e];if(r(t))return t}return null}acquireAll(e){return this.__get(e)}release(e,t){const r=this.__get(e);if(r&&r.length){const e=r[0].upper;return e?this.acquire(e.block,t):null}return null}attach(){}detach(){}__nestScope(e){return e instanceof Ue&&(_e.default(null===this.__currentScope),this.globalScope=e),this.__currentScope=e,e}__nestGlobalScope(e){return this.__nestScope(new Ue(this,e))}__nestBlockScope(e){return this.__nestScope(new He(this,this.__currentScope,e))}__nestFunctionScope(e,t){return this.__nestScope(new Je(this,this.__currentScope,e,t))}__nestForScope(e){return this.__nestScope(new Qe(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new ze(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new Ge(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new Xe(this,this.__currentScope,e))}__nestClassFieldInitializerScope(e){return this.__nestScope(new Ye(this,this.__currentScope,e))}__nestClassStaticBlockScope(e){return this.__nestScope(new Ze(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new Ke(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new qe(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new We(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}}const{Syntax:tt}=Be.default;class rt extends Oe.default.Visitor{static isPattern(e){const t=e.type;return t===tt.Identifier||t===tt.ObjectPattern||t===tt.ArrayPattern||t===tt.SpreadElement||t===tt.RestElement||t===tt.AssignmentPattern}constructor(e,t,r){super(null,e),this.rootPattern=t,this.callback=r,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){const t=(r=this.restElements)[r.length-1]||null;var r;this.callback(e,{topLevel:e===this.rootPattern,rest:null!=t&&t.argument===e,assignments:this.assignments})}Property(e){e.computed&&this.rightHandNodes.push(e.key),this.visit(e.value)}ArrayPattern(e){for(let t=0,r=e.elements.length;t<r;++t){const r=e.elements[t];this.visit(r)}}AssignmentPattern(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}RestElement(e){this.restElements.push(e),this.visit(e.argument),this.restElements.pop()}MemberExpression(e){e.computed&&this.rightHandNodes.push(e.property),this.rightHandNodes.push(e.object)}SpreadElement(e){this.visit(e.argument)}ArrayExpression(e){e.elements.forEach(this.visit,this)}AssignmentExpression(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}CallExpression(e){e.arguments.forEach((e=>{this.rightHandNodes.push(e)})),this.visit(e.callee)}}const{Syntax:nt}=Be.default;class st extends Oe.default.Visitor{constructor(e,t){super(null,t.options),this.declaration=e,this.referencer=t}visitImport(e,t){this.referencer.visitPattern(e,(e=>{this.referencer.currentScope().__define(e,new Ne(je.ImportBinding,e,t,this.declaration,null,null))}))}ImportNamespaceSpecifier(e){const t=e.local||e.id;t&&this.visitImport(t,e)}ImportDefaultSpecifier(e){const t=e.local||e.id;this.visitImport(t,e)}ImportSpecifier(e){const t=e.local||e.id;e.name?this.visitImport(e.name,e):this.visitImport(t,e)}}class ot extends Oe.default.Visitor{constructor(e,t){super(null,e),this.options=e,this.scopeManager=t,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(e){for(;this.currentScope()&&e===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(e){const t=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=e,t}popInnerMethodDefinition(e){this.isInnerMethodDefinition=e}referencingDefaultValue(e,t,r,n){const s=this.currentScope();t.forEach((t=>{s.__referencing(e,Le.WRITE,t.right,r,e!==t.left,n)}))}visitPattern(e,t,r){let n=t,s=r;"function"==typeof t&&(s=t,n={processRightHandNodes:!1}),function(e,t,r,n){const s=new rt(e,t,n);s.visit(t),null!=r&&s.rightHandNodes.forEach(r.visit,r)}(this.options,e,n.processRightHandNodes?this:null,s)}visitFunction(e){let t,r;e.type===nt.FunctionDeclaration&&this.currentScope().__define(e.id,new Ne(je.FunctionName,e.id,e,null,null,null)),e.type===nt.FunctionExpression&&e.id&&this.scopeManager.__nestFunctionExpressionNameScope(e),this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);const n=this;function s(r,s){n.currentScope().__define(r,new Re(r,e,t,s.rest)),n.referencingDefaultValue(r,s.assignments,null,!0)}for(t=0,r=e.params.length;t<r;++t)this.visitPattern(e.params[t],{processRightHandNodes:!0},s);e.rest&&this.visitPattern({type:"RestElement",argument:e.rest},(t=>{this.currentScope().__define(t,new Re(t,e,e.params.length,!0))})),e.body&&(e.body.type===nt.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===nt.ClassDeclaration&&this.currentScope().__define(e.id,new Ne(je.ClassName,e.id,e,null,null,null)),this.visit(e.superClass),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new Ne(je.ClassName,e.id,e)),this.visit(e.body),this.close(e)}visitProperty(e){let t;e.computed&&this.visit(e.key);const r=e.type===nt.MethodDefinition;r&&(t=this.pushInnerMethodDefinition(!0)),this.visit(e.value),r&&this.popInnerMethodDefinition(t)}visitForIn(e){e.left.type===nt.VariableDeclaration&&"var"!==e.left.kind&&this.scopeManager.__nestForScope(e),e.left.type===nt.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,(t=>{this.currentScope().__referencing(t,Le.WRITE,e.right,null,!0,!0)}))):this.visitPattern(e.left,{processRightHandNodes:!0},((t,r)=>{let n=null;this.currentScope().isStrict||(n={pattern:t,node:e}),this.referencingDefaultValue(t,r.assignments,n,!1),this.currentScope().__referencing(t,Le.WRITE,e.right,n,!0,!1)})),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,t,r,n){const s=r.declarations[n],o=s.init;this.visitPattern(s.id,{processRightHandNodes:!0},((i,a)=>{e.__define(i,new Ne(t,i,s,r,n,r.kind)),this.referencingDefaultValue(i,a.assignments,null,!0),o&&this.currentScope().__referencing(i,Le.WRITE,o,null,!a.topLevel,!0)}))}AssignmentExpression(e){rt.isPattern(e.left)?"="===e.operator?this.visitPattern(e.left,{processRightHandNodes:!0},((t,r)=>{let n=null;this.currentScope().isStrict||(n={pattern:t,node:e}),this.referencingDefaultValue(t,r.assignments,n,!1),this.currentScope().__referencing(t,Le.WRITE,e.right,n,!r.topLevel,!1)})):this.currentScope().__referencing(e.left,Le.RW,e.right):this.visit(e.left),this.visit(e.right)}CatchClause(e){this.scopeManager.__nestCatchScope(e),this.visitPattern(e.param,{processRightHandNodes:!0},((t,r)=>{this.currentScope().__define(t,new Ne(je.CatchClause,e.param,e,null,null,null)),this.referencingDefaultValue(t,r.assignments,null,!0)})),this.visit(e.body),this.close(e)}Program(e){this.scopeManager.__nestGlobalScope(e),this.scopeManager.__isNodejsScope()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(e,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(e),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(e),this.close(e)}Identifier(e){this.currentScope().__referencing(e)}PrivateIdentifier(){}UpdateExpression(e){rt.isPattern(e.argument)?this.currentScope().__referencing(e.argument,Le.RW,null):this.visitChildren(e)}MemberExpression(e){this.visit(e.object),e.computed&&this.visit(e.property)}Property(e){this.visitProperty(e)}PropertyDefinition(e){const{computed:t,key:r,value:n}=e;t&&this.visit(r),n&&(this.scopeManager.__nestClassFieldInitializerScope(n),this.visit(n),this.close(n))}StaticBlock(e){this.scopeManager.__nestClassStaticBlockScope(e),this.visitChildren(e),this.close(e)}MethodDefinition(e){this.visitProperty(e)}BreakStatement(){}ContinueStatement(){}LabeledStatement(e){this.visit(e.body)}ForStatement(e){e.init&&e.init.type===nt.VariableDeclaration&&"var"!==e.init.kind&&this.scopeManager.__nestForScope(e),this.visitChildren(e),this.close(e)}ClassExpression(e){this.visitClass(e)}ClassDeclaration(e){this.visitClass(e)}CallExpression(e){this.scopeManager.__ignoreEval()||e.callee.type!==nt.Identifier||"eval"!==e.callee.name||this.currentScope().variableScope.__detectEval(),this.visitChildren(e)}BlockStatement(e){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(e),this.visitChildren(e),this.close(e)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(e){this.visit(e.object),this.scopeManager.__nestWithScope(e),this.visit(e.body),this.close(e)}VariableDeclaration(e){const t="var"===e.kind?this.currentScope().variableScope:this.currentScope();for(let r=0,n=e.declarations.length;r<n;++r){const n=e.declarations[r];this.visitVariableDeclaration(t,je.Variable,e,r),n.init&&this.visit(n.init)}}SwitchStatement(e){this.visit(e.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestSwitchScope(e);for(let t=0,r=e.cases.length;t<r;++t)this.visit(e.cases[t]);this.close(e)}FunctionDeclaration(e){this.visitFunction(e)}FunctionExpression(e){this.visitFunction(e)}ForOfStatement(e){this.visitForIn(e)}ForInStatement(e){this.visitForIn(e)}ArrowFunctionExpression(e){this.visitFunction(e)}ImportDeclaration(e){_e.default(this.scopeManager.__isES6()&&this.scopeManager.isModule(),"ImportDeclaration should appear when the mode is ES6 and in the module context.");new st(e,this).visit(e)}visitExportDeclaration(e){e.source||(e.declaration?this.visit(e.declaration):this.visitChildren(e))}ExportDeclaration(e){this.visitExportDeclaration(e)}ExportAllDeclaration(e){this.visitExportDeclaration(e)}ExportDefaultDeclaration(e){this.visitExportDeclaration(e)}ExportNamedDeclaration(e){this.visitExportDeclaration(e)}ExportSpecifier(e){const t=e.id||e.local;this.visit(t)}MetaProperty(){}}function it(e,t){function r(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof Array)&&!(e instanceof RegExp)}for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];r(s)?r(e[n])?it(e[n],s):e[n]=it({},s):e[n]=s}return e}D.Definition=Ne,D.PatternVisitor=rt,D.Reference=Le,D.Referencer=ot,D.Scope=$e,D.ScopeManager=et,D.Variable=je,D.analyze=function(e,t){const r=it({optimistic:!1,directive:!1,nodejsScope:!1,impliedStrict:!1,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"},t),n=new et(r);return new ot(r,n).visit(e),_e.default(null===n.__currentScope,"currentScope should be null."),n},D.version="7.1.0";var at={};Object.defineProperty(at,"__esModule",{value:!0});const ct={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},ut=Object.keys(ct);for(const e of ut)Object.freeze(ct[e]);Object.freeze(ct);const lt=new Set(["parent","leadingComments","trailingComments"]);function pt(e){return!lt.has(e)&&"_"!==e[0]}at.KEYS=ct,at.getKeys=function(e){return Object.keys(e).filter(pt)},at.unionWith=function(e){const t=Object.assign({},ct);for(const r of Object.keys(e))if(Object.prototype.hasOwnProperty.call(t,r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)};var dt={},ft={exports:{}};!function(e,t){!function(e){var t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",n={5:r,"5module":r+" export import",6:r+" const class extends export import super"},s=/^in(stanceof)?$/,o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",a=new RegExp("["+o+"]"),c=new RegExp("["+o+i+"]");o=i=null;var u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function p(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&a.test(String.fromCharCode(e)):!1!==t&&p(e,u)))}function f(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&(p(e,u)||p(e,l)))))}var h=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function m(e,t){return new h(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},y={startsExpr:!0},x={};function b(e,t){return void 0===t&&(t={}),t.keyword=e,x[e]=new h(e,t)}var v={num:new h("num",y),regexp:new h("regexp",y),string:new h("string",y),name:new h("name",y),privateId:new h("privateId",y),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",g),semi:new h(";",g),colon:new h(":",g),dot:new h("."),question:new h("?",g),questionDot:new h("?."),arrow:new h("=>",g),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",g),backQuote:new h("`",y),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),plusMin:new h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new h("**",{beforeExpr:!0}),coalesce:m("??",1),_break:b("break"),_case:b("case",g),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",g),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",g),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",y),_if:b("if"),_return:b("return",g),_switch:b("switch"),_throw:b("throw",g),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",y),_super:b("super",y),_class:b("class",y),_extends:b("extends",g),_export:b("export"),_import:b("import",y),_null:b("null",y),_true:b("true",y),_false:b("false",y),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,C=new RegExp(E.source,"g");function S(e){return 10===e||13===e||8232===e||8233===e}var k=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,A=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,w=D.hasOwnProperty,F=D.toString;function T(e,t){return w.call(e,t)}var P=Array.isArray||function(e){return"[object Array]"===F.call(e)};function I(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var _=function(e,t){this.line=e,this.column=t};_.prototype.offset=function(e){return new _(this.line,this.column+e)};var B=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function O(e,t){for(var r=1,n=0;;){C.lastIndex=n;var s=C.exec(e);if(!(s&&s.index<t))return new _(r,t-n);++r,n=s.index+s[0].length}}var L={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},j=!1;function N(e){var t={};for(var r in L)t[r]=e&&T(e,r)?e[r]:L[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!j&&"object"==typeof console&&console.warn&&(j=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),P(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}return P(t.onComment)&&(t.onComment=R(t,t.onComment)),t}function R(e,t){return function(r,n,s,o,i,a){var c={type:r?"Block":"Line",value:n,start:s,end:o};e.locations&&(c.loc=new B(this,i,a)),e.ranges&&(c.range=[s,o]),t.push(c)}}var M=1,V=2,$=4,U=8,q=16,W=32,z=64,G=128,H=256,K=M|V|H;function J(e,t){return V|(e?$:0)|(t?U:0)}var Q=0,X=1,Y=2,Z=3,ee=4,te=5,re=function(e,r,s){this.options=e=N(e),this.sourceFile=e.sourceFile,this.keywords=I(n[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var o="";!0!==e.allowReserved&&(o=t[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(o+=" await")),this.reservedWords=I(o);var i=(o?o+" ":"")+t.strict;this.reservedWordsStrict=I(i),this.reservedWordsStrictBind=I(i+" "+t.strictBind),this.input=String(r),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=v.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(M),this.regexpState=null,this.privateNameStack=[]},ne={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};re.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ne.inFunction.get=function(){return(this.currentVarScope().flags&V)>0},ne.inGenerator.get=function(){return(this.currentVarScope().flags&U)>0&&!this.currentVarScope().inClassFieldInit},ne.inAsync.get=function(){return(this.currentVarScope().flags&$)>0&&!this.currentVarScope().inClassFieldInit},ne.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&H)return!1;if(t.flags&V)return(t.flags&$)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ne.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&z)>0||r||this.options.allowSuperOutsideMethod},ne.allowDirectSuper.get=function(){return(this.currentThisScope().flags&G)>0},ne.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ne.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(V|H))>0||r},ne.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&H)>0},re.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},re.parse=function(e,t){return new this(t,e).parse()},re.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},re.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(re.prototype,ne);var se=re.prototype,oe=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function ie(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}se.strictDirective=function(e){for(;;){A.lastIndex=e,e+=A.exec(this.input)[0].length;var t=oe.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){A.lastIndex=e+t[0].length;var r=A.exec(this.input),n=r.index+r[0].length,s=this.input.charAt(n);return";"===s||"}"===s||E.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(n+1))}e+=t[0].length,A.lastIndex=e,e+=A.exec(this.input)[0].length,";"===this.input[e]&&e++}},se.eat=function(e){return this.type===e&&(this.next(),!0)},se.isContextual=function(e){return this.type===v.name&&this.value===e&&!this.containsEsc},se.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},se.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},se.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},se.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},se.semicolon=function(){this.eat(v.semi)||this.insertSemicolon()||this.unexpected()},se.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},se.expect=function(e){this.eat(e)||this.unexpected()},se.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},se.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},se.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},se.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},se.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var ae=re.prototype;ae.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==v.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,s=Object.keys(this.undefinedExports);n<s.length;n+=1){var o=s[n];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ce={kind:"loop"},ue={kind:"switch"};ae.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;A.lastIndex=this.pos;var t=A.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n||92===n||n>55295&&n<56320)return!0;if(e)return!1;if(123===n)return!0;if(d(n,!0)){for(var o=r+1;f(n=this.input.charCodeAt(o),!0);)++o;if(92===n||n>55295&&n<56320)return!0;var i=this.input.slice(r,o);if(!s.test(i))return!0}return!1},ae.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;A.lastIndex=this.pos;var e,t=A.exec(this.input),r=this.pos+t[0].length;return!(E.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&(f(e=this.input.charCodeAt(r+8))||e>55295&&e<56320))},ae.parseStatement=function(e,t,r){var n,s=this.type,o=this.startNode();switch(this.isLet(e)&&(s=v._var,n="let"),s){case v._break:case v._continue:return this.parseBreakContinueStatement(o,s.keyword);case v._debugger:return this.parseDebuggerStatement(o);case v._do:return this.parseDoStatement(o);case v._for:return this.parseForStatement(o);case v._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case v._class:return e&&this.unexpected(),this.parseClass(o,!0);case v._if:return this.parseIfStatement(o);case v._return:return this.parseReturnStatement(o);case v._switch:return this.parseSwitchStatement(o);case v._throw:return this.parseThrowStatement(o);case v._try:return this.parseTryStatement(o);case v._const:case v._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(o,n);case v._while:return this.parseWhileStatement(o);case v._with:return this.parseWithStatement(o);case v.braceL:return this.parseBlock(!0,o);case v.semi:return this.parseEmptyStatement(o);case v._export:case v._import:if(this.options.ecmaVersion>10&&s===v._import){A.lastIndex=this.pos;var i=A.exec(this.input),a=this.pos+i[0].length,c=this.input.charCodeAt(a);if(40===c||46===c)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===v._import?this.parseImport(o):this.parseExport(o,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var u=this.value,l=this.parseExpression();return s===v.name&&"Identifier"===l.type&&this.eat(v.colon)?this.parseLabeledStatement(o,u,l,e):this.parseExpressionStatement(o,l)}},ae.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(v.semi)||this.insertSemicolon()?e.label=null:this.type!==v.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var s=this.labels[n];if(null==e.label||s.name===e.label.name){if(null!=s.kind&&(r||"loop"===s.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},ae.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},ae.parseDoStatement=function(e){return this.next(),this.labels.push(ce),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(v._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(v.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},ae.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ce),this.enterScope(0),this.expect(v.parenL),this.type===v.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===v._var||this.type===v._const||r){var n=this.startNode(),s=r?"let":this.value;return this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===v._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var o=this.isContextual("let"),i=!1,a=new ie,c=this.parseExpression(!(t>-1)||"await",a);return this.type===v._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===v._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&i&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,a),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},ae.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,pe|(r?0:de),!1,t)},ae.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(v._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},ae.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(v.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},ae.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(v.braceL),this.labels.push(ue),this.enterScope(0);for(var r=!1;this.type!==v.braceR;)if(this.type===v._case||this.type===v._default){var n=this.type===v._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(v.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},ae.parseThrowStatement=function(e){return this.next(),E.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var le=[];ae.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===v._catch){var t=this.startNode();if(this.next(),this.eat(v.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?W:0),this.checkLValPattern(t.param,r?ee:Y),this.expect(v.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(v._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},ae.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},ae.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ce),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},ae.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},ae.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},ae.parseLabeledStatement=function(e,t,r,n){for(var s=0,o=this.labels;s<o.length;s+=1)o[s].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var i=this.type.isLoop?"loop":this.type===v._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var c=this.labels[a];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=i}return this.labels.push({name:t,kind:i,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},ae.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},ae.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(v.braceL),e&&this.enterScope(0);this.type!==v.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},ae.parseFor=function(e,t){return e.init=t,this.expect(v.semi),e.test=this.type===v.semi?null:this.parseExpression(),this.expect(v.semi),e.update=this.type===v.parenR?null:this.parseExpression(),this.expect(v.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},ae.parseForIn=function(e,t){var r=this.type===v._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(v.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},ae.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(v.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===v._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(v.comma))break}return e},ae.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?X:Y,!1)};var pe=1,de=2,fe=4;function he(e,t){var r=t.key.name,n=e[r],s="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(s=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===s||"iset"===n&&"iget"===s||"sget"===n&&"sset"===s||"sset"===n&&"sget"===s?(e[r]="true",!1):!!n||(e[r]=s,!1)}function me(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}ae.parseFunction=function(e,t,r,n,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===v.star&&t&de&&this.unexpected(),e.generator=this.eat(v.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&pe&&(e.id=t&fe&&this.type!==v.name?null:this.parseIdent(),!e.id||t&de||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?X:Y:Z));var o=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(J(e.async,e.generator)),t&pe||(e.id=this.type===v.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,s),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,t&pe?"FunctionDeclaration":"FunctionExpression")},ae.parseFunctionParams=function(e){this.expect(v.parenL),e.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ae.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),s=this.startNode(),o=!1;for(s.body=[],this.expect(v.braceL);this.type!==v.braceR;){var i=this.parseClassElement(null!==e.superClass);i&&(s.body.push(i),"MethodDefinition"===i.type&&"constructor"===i.kind?(o&&this.raise(i.start,"Duplicate constructor in the same class"),o=!0):i.key&&"PrivateIdentifier"===i.key.type&&he(n,i)&&this.raiseRecoverable(i.key.start,"Identifier '#"+i.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},ae.parseClassElement=function(e){if(this.eat(v.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",s=!1,o=!1,i="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(v.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===v.star?a=!0:n="static"}if(r.static=a,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==v.star||this.canInsertSemicolon()?n="async":o=!0),!n&&(t>=9||!o)&&this.eat(v.star)&&(s=!0),!n&&!o&&!s){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?i=c:n=c)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===v.parenL||"method"!==i||s||o){var u=!r.static&&me(r,"constructor"),l=u&&e;u&&"method"!==i&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=u?"constructor":i,this.parseClassMethod(r,s,o,l)}else this.parseClassField(r);return r},ae.isClassElementNameStart=function(){return this.type===v.name||this.type===v.privateId||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword},ae.parseClassElementName=function(e){this.type===v.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},ae.parseClassMethod=function(e,t,r,n){var s=e.key;"constructor"===e.kind?(t&&this.raise(s.start,"Constructor can't be a generator"),r&&this.raise(s.start,"Constructor can't be an async method")):e.static&&me(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},ae.parseClassField=function(e){if(me(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&me(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(v.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},ae.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(H|z);this.type!==v.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},ae.parseClassId=function(e,t){this.type===v.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Y,!1)):(!0===t&&this.unexpected(),e.id=null)},ae.parseClassSuper=function(e){e.superClass=this.eat(v._extends)?this.parseExprSubscripts(!1):null},ae.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},ae.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,r=e.used,n=this.privateNameStack.length,s=0===n?null:this.privateNameStack[n-1],o=0;o<r.length;++o){var i=r[o];T(t,i.name)||(s?s.used.push(i):this.raiseRecoverable(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"))}},ae.parseExport=function(e,t){if(this.next(),this.eat(v.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(v._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===v._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,pe|fe,!1,r)}else if(this.type===v._class){var s=this.startNode();e.declaration=this.parseClass(s,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,i=e.specifiers;o<i.length;o+=1){var a=i[o];this.checkUnreserved(a.local),this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},ae.checkExport=function(e,t,r){e&&(T(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},ae.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var n=0,s=t.properties;n<s.length;n+=1){var o=s[n];this.checkPatternExport(e,o)}else if("ArrayPattern"===r)for(var i=0,a=t.elements;i<a.length;i+=1){var c=a[i];c&&this.checkPatternExport(e,c)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},ae.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var s=n[r];this.checkPatternExport(e,s.id)}},ae.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},ae.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(v.braceL);!this.eat(v.braceR);){if(r)r=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(e,n.exported.name,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},ae.parseImport=function(e){return this.next(),this.type===v.string?(e.specifiers=le,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===v.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},ae.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===v.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,Y),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(v.comma))return e}if(this.type===v.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLValSimple(n.local,Y),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(v.braceL);!this.eat(v.braceR);){if(t)t=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var s=this.startNode();s.imported=this.parseIdent(!0),this.eatContextual("as")?s.local=this.parseIdent():(this.checkUnreserved(s.imported),s.local=s.imported),this.checkLValSimple(s.local,Y),e.push(this.finishNode(s,"ImportSpecifier"))}return e},ae.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},ae.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var ge=re.prototype;ge.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,s=e.properties;n<s.length;n+=1){var o=s[n];this.toAssignable(o,t),"RestElement"!==o.type||"ArrayPattern"!==o.argument.type&&"ObjectPattern"!==o.argument.type||this.raise(o.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},ge.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var s=e[n];s&&this.toAssignable(s,t)}if(r){var o=e[r-1];6===this.options.ecmaVersion&&t&&o&&"RestElement"===o.type&&"Identifier"!==o.argument.type&&this.unexpected(o.argument.start)}return e},ge.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},ge.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==v.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},ge.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case v.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(v.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case v.braceL:return this.parseObj(!0)}return this.parseIdent()},ge.parseBindingList=function(e,t,r){for(var n=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(v.comma),t&&this.type===v.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===v.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),n.push(o),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var i=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(i),n.push(i)}return n},ge.parseBindingListItem=function(e){return e},ge.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(v.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},ge.checkLValSimple=function(e,t,r){void 0===t&&(t=Q);var n=t!==Q;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===Y&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(T(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==te&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},ge.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=Q),e.type){case"ObjectPattern":for(var n=0,s=e.properties;n<s.length;n+=1){var o=s[n];this.checkLValInnerPattern(o,t,r)}break;case"ArrayPattern":for(var i=0,a=e.elements;i<a.length;i+=1){var c=a[i];c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}},ge.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=Q),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var ye=function(e,t,r,n,s){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!s},xe={b_stat:new ye("{",!1),b_expr:new ye("{",!0),b_tmpl:new ye("${",!1),p_stat:new ye("(",!1),p_expr:new ye("(",!0),q_tmpl:new ye("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ye("function",!1),f_expr:new ye("function",!0),f_expr_gen:new ye("function",!0,!1,null,!0),f_gen:new ye("function",!1,!1,null,!0)},be=re.prototype;be.initialContext=function(){return[xe.b_stat]},be.curContext=function(){return this.context[this.context.length-1]},be.braceIsBlock=function(e){var t=this.curContext();return t===xe.f_expr||t===xe.f_stat||(e!==v.colon||t!==xe.b_stat&&t!==xe.b_expr?e===v._return||e===v.name&&this.exprAllowed?E.test(this.input.slice(this.lastTokEnd,this.start)):e===v._else||e===v.semi||e===v.eof||e===v.parenR||e===v.arrow||(e===v.braceL?t===xe.b_stat:e!==v._var&&e!==v._const&&e!==v.name&&!this.exprAllowed):!t.isExpr)},be.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},be.updateContext=function(e){var t,r=this.type;r.keyword&&e===v.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},be.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},v.parenR.updateContext=v.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===xe.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},v.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?xe.b_stat:xe.b_expr),this.exprAllowed=!0},v.dollarBraceL.updateContext=function(){this.context.push(xe.b_tmpl),this.exprAllowed=!0},v.parenL.updateContext=function(e){var t=e===v._if||e===v._for||e===v._with||e===v._while;this.context.push(t?xe.p_stat:xe.p_expr),this.exprAllowed=!0},v.incDec.updateContext=function(){},v._function.updateContext=v._class.updateContext=function(e){!e.beforeExpr||e===v._else||e===v.semi&&this.curContext()!==xe.p_stat||e===v._return&&E.test(this.input.slice(this.lastTokEnd,this.start))||(e===v.colon||e===v.braceL)&&this.curContext()===xe.b_stat?this.context.push(xe.f_stat):this.context.push(xe.f_expr),this.exprAllowed=!1},v.backQuote.updateContext=function(){this.curContext()===xe.q_tmpl?this.context.pop():this.context.push(xe.q_tmpl),this.exprAllowed=!1},v.star.updateContext=function(e){if(e===v._function){var t=this.context.length-1;this.context[t]===xe.f_expr?this.context[t]=xe.f_expr_gen:this.context[t]=xe.f_gen}this.exprAllowed=!0},v.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==v.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ve=re.prototype;function Ee(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Ee(e.expression)}ve.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,s=e.key;switch(s.type){case"Identifier":n=s.name;break;case"Literal":n=String(s.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===o&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);else{var i=t[n="$"+n];i?("init"===o?this.strict&&i.init||i.get||i.set:i.init||i[o])&&this.raiseRecoverable(s.start,"Redefinition of property"):i=t[n]={init:!1,get:!1,set:!1},i[o]=!0}}},ve.parseExpression=function(e,t){var r=this.start,n=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===v.comma){var o=this.startNodeAt(r,n);for(o.expressions=[s];this.eat(v.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return s},ve.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,s=-1,o=-1,i=-1;t?(s=t.parenthesizedAssign,o=t.trailingComma,i=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ie,n=!0);var a=this.start,c=this.startLoc;this.type!==v.parenL&&this.type!==v.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(r&&(u=r.call(this,u,a,c)),this.type.isAssign){var l=this.startNodeAt(a,c);return l.operator=this.value,this.type===v.eq&&(u=this.toAssignable(u,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===v.eq?this.checkLValPattern(u):this.checkLValSimple(u),l.left=u,this.next(),l.right=this.parseMaybeAssign(e),i>-1&&(t.doubleProto=i),this.finishNode(l,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),s>-1&&(t.parenthesizedAssign=s),o>-1&&(t.trailingComma=o),u},ve.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(v.question)){var o=this.startNodeAt(r,n);return o.test=s,o.consequent=this.parseMaybeAssign(),this.expect(v.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return s},ve.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===r&&"ArrowFunctionExpression"===s.type?s:this.parseExprOp(s,r,n,-1,e)},ve.parseExprOp=function(e,t,r,n,s){var o=this.type.binop;if(null!=o&&(!s||this.type!==v._in)&&o>n){var i=this.type===v.logicalOR||this.type===v.logicalAND,a=this.type===v.coalesce;a&&(o=v.logicalAND.binop);var c=this.value;this.next();var u=this.start,l=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),u,l,o,s),d=this.buildBinary(t,r,e,p,c,i||a);return(i&&this.type===v.coalesce||a&&(this.type===v.logicalOR||this.type===v.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,r,n,s)}return e},ve.buildBinary=function(e,t,r,n,s,o){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var i=this.startNodeAt(e,t);return i.left=r,i.operator=s,i.right=n,this.finishNode(i,o?"LogicalExpression":"BinaryExpression")},ve.parseMaybeUnary=function(e,t,r,n){var s,o=this.start,i=this.startLoc;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(n),t=!0;else if(this.type.prefix){var a=this.startNode(),c=this.type===v.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,c,n),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&Ee(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,s=this.finishNode(a,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==v.privateId){if(s=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(o,i);u.operator=this.value,u.prefix=!1,u.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(u,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==v._in&&this.unexpected();return r||!this.eat(v.starstar)?s:t?void this.unexpected(this.lastTokStart):this.buildBinary(o,i,s,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},ve.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,s=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===s.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return s;var o=this.parseSubscripts(s,r,n,!1,t);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o},ve.parseSubscripts=function(e,t,r,n,s){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,i=!1;;){var a=this.parseSubscript(e,t,r,n,o,i,s);if(a.optional&&(i=!0),a===e||"ArrowFunctionExpression"===a.type){if(i){var c=this.startNodeAt(t,r);c.expression=a,a=this.finishNode(c,"ChainExpression")}return a}e=a}},ve.parseSubscript=function(e,t,r,n,s,o,i){var a=this.options.ecmaVersion>=11,c=a&&this.eat(v.questionDot);n&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(v.bracketL);if(u||c&&this.type!==v.parenL&&this.type!==v.backQuote||this.eat(v.dot)){var l=this.startNodeAt(t,r);l.object=e,u?(l.property=this.parseExpression(),this.expect(v.bracketR)):this.type===v.privateId&&"Super"!==e.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!u,a&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!n&&this.eat(v.parenL)){var p=new ie,d=this.yieldPos,f=this.awaitPos,h=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1,p);if(s&&!c&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=f,this.awaitIdentPos=h,this.parseArrowExpression(this.startNodeAt(t,r),m,!0,i);this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=h||this.awaitIdentPos;var g=this.startNodeAt(t,r);g.callee=e,g.arguments=m,a&&(g.optional=c),e=this.finishNode(g,"CallExpression")}else if(this.type===v.backQuote){(c||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,r);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},ve.parseExprAtom=function(e,t){this.type===v.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case v._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==v.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==v.dot&&this.type!==v.bracketL&&this.type!==v.parenL&&this.unexpected(),this.finishNode(r,"Super");case v._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case v.name:var s=this.start,o=this.startLoc,i=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!i&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(v._function))return this.overrideContext(xe.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(v.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[a],!1,t);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===v.name&&!i&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(v.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[a],!0,t)}return a;case v.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:return(r=this.startNode()).value=this.type===v._null?null:this.type===v._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case v.parenL:var u=this.start,l=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),l;case v.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(v.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case v.braceL:return this.overrideContext(xe.b_expr),this.parseObj(!1,e);case v._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case v._class:return this.parseClass(this.startNode(),!1);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();case v._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ve.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case v.parenL:return this.parseDynamicImport(e);case v.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},ve.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(v.parenR)){var t=this.start;this.eat(v.comma)&&this.eat(v.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ve.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ve.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ve.parseParenExpression=function(){this.expect(v.parenL);var e=this.parseExpression();return this.expect(v.parenR),e},ve.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,s=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i,a=this.start,c=this.startLoc,u=[],l=!0,p=!1,d=new ie,f=this.yieldPos,h=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==v.parenR;){if(l?l=!1:this.expect(v.comma),o&&this.afterTrailingComma(v.parenR,!0)){p=!0;break}if(this.type===v.ellipsis){i=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(v.parenR),e&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=h,this.parseParenArrowList(n,s,u,t);u.length&&!p||this.unexpected(this.lastTokStart),i&&this.unexpected(i),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=h||this.awaitPos,u.length>1?((r=this.startNodeAt(a,c)).expressions=u,this.finishNodeAt(r,"SequenceExpression",m,g)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(n,s);return y.expression=r,this.finishNode(y,"ParenthesizedExpression")}return r},ve.parseParenItem=function(e){return e},ve.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var Ce=[];ve.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(v.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,s=this.startLoc,o=this.type===v._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,s,!0,!1),o&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(v.parenL)?e.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ce,this.finishNode(e,"NewExpression")},ve.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===v.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===v.backQuote,this.finishNode(r,"TemplateElement")},ve.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===v.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(v.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(v.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},ve.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===v.name||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===v.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},ve.parseObj=function(e,t){var r=this.startNode(),n=!0,s={};for(r.properties=[],this.next();!this.eat(v.braceR);){if(n)n=!1;else if(this.expect(v.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(v.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,s,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},ve.parseProperty=function(e,t){var r,n,s,o,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(v.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(this.type===v.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),i.argument=this.parseMaybeAssign(!1,t),this.type===v.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(s=this.start,o=this.startLoc),e||(r=this.eat(v.star)));var a=this.containsEsc;return this.parsePropertyName(i),!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(v.star),this.parsePropertyName(i,t)):n=!1,this.parsePropertyValue(i,e,r,n,s,o,t,a),this.finishNode(i,"Property")},ve.parsePropertyValue=function(e,t,r,n,s,o,i,a){if((r||n)&&this.type===v.colon&&this.unexpected(),this.eat(v.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===v.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===v.comma||this.type===v.braceR||this.type===v.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,o,this.copyNode(e.key)):this.type===v.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c="get"===e.kind?0:1;if(e.value.params.length!==c){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},ve.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(v.bracketR),e.key;e.computed=!1}return e.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ve.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ve.parseMethod=function(e,t,r){var n=this.startNode(),s=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(J(t,n.generator)|z|(r?G:0)),this.expect(v.parenL),n.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(n,"FunctionExpression")},ve.parseArrowExpression=function(e,t,r,n){var s=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(J(r,!1)|q),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(e,"ArrowFunctionExpression")},ve.parseFunctionBody=function(e,t,r,n){var s=t&&this.type!==v.braceL,o=this.strict,i=!1;if(s)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!a||(i=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!o&&!i&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,te),e.body=this.parseBlock(!1,void 0,i&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},ve.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},ve.checkParams=function(e,t){for(var r=Object.create(null),n=0,s=e.params;n<s.length;n+=1){var o=s[n];this.checkLValInnerPattern(o,X,t?null:r)}},ve.parseExprList=function(e,t,r,n){for(var s=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(v.comma),t&&this.afterTrailingComma(e))break;var i=void 0;r&&this.type===v.comma?i=null:this.type===v.ellipsis?(i=this.parseSpread(n),n&&this.type===v.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):i=this.parseMaybeAssign(!1,n),s.push(i)}return s},ve.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===n&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},ve.parseIdent=function(e,t){var r=this.startNode();return this.type===v.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},ve.parsePrivateIdent=function(){var e=this.startNode();return this.type===v.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},ve.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===v.semi||this.canInsertSemicolon()||this.type!==v.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(v.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ve.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Se=re.prototype;Se.raise=function(e,t){var r=O(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},Se.raiseRecoverable=Se.raise,Se.curPosition=function(){if(this.options.locations)return new _(this.curLine,this.pos-this.lineStart)};var ke=re.prototype,Ae=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ke.enterScope=function(e){this.scopeStack.push(new Ae(e))},ke.exitScope=function(){this.scopeStack.pop()},ke.treatFunctionsAsVarInScope=function(e){return e.flags&V||!this.inModule&&e.flags&M},ke.declareName=function(e,t,r){var n=!1;if(t===Y){var s=this.currentScope();n=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&M&&delete this.undefinedExports[e]}else if(t===ee)this.currentScope().lexical.push(e);else if(t===Z){var o=this.currentScope();n=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var a=this.scopeStack[i];if(a.lexical.indexOf(e)>-1&&!(a.flags&W&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){n=!0;break}if(a.var.push(e),this.inModule&&a.flags&M&&delete this.undefinedExports[e],a.flags&K)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ke.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ke.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ke.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&K)return t}},ke.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&K&&!(t.flags&q))return t}};var De=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new B(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},we=re.prototype;function Fe(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}we.startNode=function(){return new De(this,this.start,this.startLoc)},we.startNodeAt=function(e,t){return new De(this,e,t)},we.finishNode=function(e,t){return Fe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},we.finishNodeAt=function(e,t,r,n){return Fe.call(this,e,t,r,n)},we.copyNode=function(e){var t=new De(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var Te="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Pe=Te+" Extended_Pictographic",Ie={9:Te,10:Pe,11:Pe,12:Pe+" EBase EComp EMod EPres ExtPict"},_e="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Be="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Oe=Be+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Le=Oe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",je={9:Be,10:Oe,11:Le,12:Le+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},Ne={};function Re(e){var t=Ne[e]={binary:I(Ie[e]+" "+_e),nonBinary:{General_Category:I(_e),Script:I(je[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}Re(9),Re(10),Re(11),Re(12);var Me=re.prototype,Ve=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=Ne[e.options.ecmaVersion>=12?12:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function $e(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Ue(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function qe(e){return d(e,!0)||36===e||95===e}function We(e){return f(e,!0)||36===e||95===e||8204===e||8205===e}function ze(e){return e>=65&&e<=90||e>=97&&e<=122}function Ge(e){return e>=0&&e<=1114111}function He(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function Ke(e){return ze(e)||95===e}function Je(e){return Ke(e)||Qe(e)}function Qe(e){return e>=48&&e<=57}function Xe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ye(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ze(e){return e>=48&&e<=55}Ve.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Ve.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ve.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var s=r.charCodeAt(e);if(!t&&!this.switchU||s<=55295||s>=57344||e+1>=n)return s;var o=r.charCodeAt(e+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s},Ve.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var s,o=r.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=n||(s=r.charCodeAt(e+1))<56320||s>57343?e+1:e+2},Ve.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ve.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ve.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ve.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Me.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var s=r.charAt(n);-1===t.indexOf(s)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(s,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},Me.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Me.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];-1===e.groupNames.indexOf(n)&&e.raise("Invalid named capture referenced")}},Me.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Me.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Me.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Me.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},Me.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Me.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Me.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return-1!==s&&s<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},Me.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Me.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Me.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Me.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Me.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Me.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Me.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ue(t)&&(e.lastIntValue=t,e.advance(),!0)},Me.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!Ue(r);)e.advance();return e.pos!==t},Me.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Me.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Me.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Me.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=$e(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=$e(e.lastIntValue);return!0}return!1},Me.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),qe(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Me.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),We(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Me.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Me.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},Me.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Me.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Me.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Me.regexp_eatZero=function(e){return 48===e.current()&&!Qe(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Me.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Me.regexp_eatControlLetter=function(e){var t=e.current();return!!ze(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Me.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(n&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(i>=56320&&i<=57343)return e.lastIntValue=1024*(s-55296)+(i-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ge(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Me.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Me.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Me.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(He(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Me.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s),!0}return!1},Me.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){T(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},Me.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Me.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ke(t=e.current());)e.lastStringValue+=$e(t),e.advance();return""!==e.lastStringValue},Me.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Je(t=e.current());)e.lastStringValue+=$e(t),e.advance();return""!==e.lastStringValue},Me.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Me.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Me.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},Me.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||Ze(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Me.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Me.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Qe(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Me.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Me.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Qe(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},Me.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Xe(r=e.current());)e.lastIntValue=16*e.lastIntValue+Ye(r),e.advance();return e.pos!==t},Me.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},Me.regexp_eatOctalDigit=function(e){var t=e.current();return Ze(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Me.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var s=e.current();if(!Xe(s))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Ye(s),e.advance()}return!0};var et=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new B(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},tt=re.prototype;function rt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function nt(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function st(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}tt.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new et(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},tt.getToken=function(){return this.next(),new et(this)},"undefined"!=typeof Symbol&&(tt[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===v.eof,value:t}}}}),tt.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(v.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},tt.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},tt.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},tt.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),r=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(C.lastIndex=r;(e=C.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,n),r,this.pos,t,this.curPosition())},tt.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!S(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},tt.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&k.test(String.fromCharCode(e))))break e;++this.pos}}},tt.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},tt.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(v.ellipsis)):(++this.pos,this.finishToken(v.dot))},tt.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(v.assign,2):this.finishOp(v.slash,1)},tt.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?v.star:v.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=v.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(v.assign,r+1):this.finishOp(n,r)},tt.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(v.assign,3):this.finishOp(124===e?v.logicalOR:v.logicalAND,2):61===t?this.finishOp(v.assign,2):this.finishOp(124===e?v.bitwiseOR:v.bitwiseAND,1)},tt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(v.assign,2):this.finishOp(v.bitwiseXOR,1)},tt.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!E.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(v.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(v.assign,2):this.finishOp(v.plusMin,1)},tt.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(v.assign,r+1):this.finishOp(v.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(v.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tt.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(v.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(v.arrow)):this.finishOp(61===e?v.eq:v.prefix,1)},tt.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(v.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(v.assign,3):this.finishOp(v.coalesce,2)}return this.finishOp(v.question,1)},tt.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,d(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(v.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+st(e)+"'")},tt.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(v.parenL);case 41:return++this.pos,this.finishToken(v.parenR);case 59:return++this.pos,this.finishToken(v.semi);case 44:return++this.pos,this.finishToken(v.comma);case 91:return++this.pos,this.finishToken(v.bracketL);case 93:return++this.pos,this.finishToken(v.bracketR);case 123:return++this.pos,this.finishToken(v.braceL);case 125:return++this.pos,this.finishToken(v.braceR);case 58:return++this.pos,this.finishToken(v.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(v.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(v.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+st(e)+"'")},tt.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},tt.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(E.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var s=this.input.slice(r,this.pos);++this.pos;var o=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(o);var a=this.regexpState||(this.regexpState=new Ve(this));a.reset(r,s,i),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var c=null;try{c=new RegExp(s,i)}catch(e){}return this.finishToken(v.regexp,{pattern:s,flags:i,value:c})},tt.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,s=r&&48===this.input.charCodeAt(this.pos),o=this.pos,i=0,a=0,c=0,u=null==t?1/0:t;c<u;++c,++this.pos){var l=this.input.charCodeAt(this.pos),p=void 0;if(n&&95===l)s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=l;else{if((p=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;a=l,i=i*e+p}}return n&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:i},tt.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=nt(this.input.slice(t,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,r)},tt.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var s=nt(this.input.slice(t,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,s)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=rt(this.input.slice(t,this.pos),r);return this.finishToken(v.num,o)},tt.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},tt.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(S(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(v.string,t)};var ot={};tt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ot)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},tt.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ot;this.raise(e,t)},tt.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==v.template&&this.type!==v.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(v.template,e)):36===r?(this.pos+=2,this.finishToken(v.dollarBraceL)):(++this.pos,this.finishToken(v.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(S(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},tt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(v.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},tt.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return st(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(n=n.slice(0,-1),s=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return S(t)?"":String.fromCharCode(t)}},tt.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},tt.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(f(s,n))this.pos+=s<=65535?1:2;else{if(92!==s)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var i=this.readCodePoint();(t?d:f)(i,n)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=st(i),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},tt.readWord=function(){var e=this.readWord1(),t=v.name;return this.keywords.test(e)&&(t=x[e]),this.finishToken(t,e)};var it="8.6.0";function at(e,t){return re.parse(e,t)}function ct(e,t,r){return re.parseExpressionAt(e,t,r)}function ut(e,t){return re.tokenizer(e,t)}re.acorn={Parser:re,version:it,defaultOptions:L,Position:_,SourceLocation:B,getLineInfo:O,Node:De,TokenType:h,tokTypes:v,keywordTypes:x,TokContext:ye,tokContexts:xe,isIdentifierChar:f,isIdentifierStart:d,Token:et,isNewLine:S,lineBreak:E,lineBreakG:C,nonASCIIwhitespace:k},e.Node=De,e.Parser=re,e.Position=_,e.SourceLocation=B,e.TokContext=ye,e.Token=et,e.TokenType=h,e.defaultOptions=L,e.getLineInfo=O,e.isIdentifierChar=f,e.isIdentifierStart=d,e.isNewLine=S,e.keywordTypes=x,e.lineBreak=E,e.lineBreakG=C,e.nonASCIIwhitespace=k,e.parse=at,e.parseExpressionAt=ct,e.tokContexts=xe,e.tokTypes=v,e.tokenizer=ut,e.version=it,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,ft.exports);var ht={exports:{}},mt={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};!function(e){const t=mt,r=/^[\da-fA-F]+$/,n=/^\d+$/,s=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=s.get(e);if(!t){const r=e.tokTypes,n=e.TokContext,o=e.TokenType,i=new n("<tag",!1),a=new n("</tag",!1),c=new n("<tag>...</tag>",!0,!0),u={tc_oTag:i,tc_cTag:a,tc_expr:c},l={jsxName:new o("jsxName"),jsxText:new o("jsxText",{beforeExpr:!0}),jsxTagStart:new o("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new o("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(i),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===i&&e===r.slash||t===a?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:u,tokTypes:l},s.set(e,t)}return t}function i(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?i(e.object)+"."+i(e.property):void 0:e}e.exports=function(e){return e=e||{},function(s){return function(e,s){const a=s.acorn||ft.exports,c=o(a),u=a.tokTypes,l=c.tokTypes,p=a.tokContexts,d=c.tokContexts.tc_oTag,f=c.tokContexts.tc_cTag,h=c.tokContexts.tc_expr,m=a.isNewLine,g=a.isIdentifierStart,y=a.isIdentifierChar;return class extends s{static get acornJsx(){return c}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let r=this.input.charCodeAt(this.pos);switch(r){case 60:case 123:return this.pos===this.start?60===r&&this.exprAllowed?(++this.pos,this.finishToken(l.jsxTagStart)):this.getTokenFromCode(r):(e+=this.input.slice(t,this.pos),this.finishToken(l.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===r?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:m(r)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,r=this.input.charCodeAt(this.pos);return++this.pos,13===r&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",r=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let n=this.input.charCodeAt(this.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.pos),t+=this.jsx_readEntity(),r=this.pos):m(n)?(t+=this.input.slice(r,this.pos),t+=this.jsx_readNewLine(!1),r=this.pos):++this.pos}return t+=this.input.slice(r,this.pos++),this.finishToken(u.string,t)}jsx_readEntity(){let e,s="",o=0,i=this.input[this.pos];"&"!==i&&this.raise(this.pos,"Entity must start with an ampersand");let a=++this.pos;for(;this.pos<this.input.length&&o++<10;){if(i=this.input[this.pos++],";"===i){"#"===s[0]?"x"===s[1]?(s=s.substr(2),r.test(s)&&(e=String.fromCharCode(parseInt(s,16)))):(s=s.substr(1),n.test(s)&&(e=String.fromCharCode(parseInt(s,10)))):e=t[s];break}s+=i}return e||(this.pos=a,"&")}jsx_readWord(){let e,t=this.pos;do{e=this.input.charCodeAt(++this.pos)}while(y(e)||45===e);return this.finishToken(l.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===l.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let t=this.start,r=this.startLoc,n=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(u.colon))return n;var s=this.startNodeAt(t,r);return s.namespace=n,s.name=this.jsx_parseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===l.jsxTagEnd)return"";let t=this.start,r=this.startLoc,n=this.jsx_parseNamespacedName();for(this.type!==u.dot||"JSXNamespacedName"!==n.type||e.allowNamespacedObjects||this.unexpected();this.eat(u.dot);){let e=this.startNodeAt(t,r);e.object=n,e.property=this.jsx_parseIdentifier(),n=this.finishNode(e,"JSXMemberExpression")}return n}jsx_parseAttributeValue(){switch(this.type){case u.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case l.jsxTagStart:case u.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===u.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(u.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(u.braceL)?(this.expect(u.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(u.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(u.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let r=this.startNodeAt(e,t);r.attributes=[];let n=this.jsx_parseElementName();for(n&&(r.name=n);this.type!==u.slash&&this.type!==l.jsxTagEnd;)r.attributes.push(this.jsx_parseAttribute());return r.selfClosing=this.eat(u.slash),this.expect(l.jsxTagEnd),this.finishNode(r,n?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let r=this.startNodeAt(e,t),n=this.jsx_parseElementName();return n&&(r.name=n),this.expect(l.jsxTagEnd),this.finishNode(r,n?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let r=this.startNodeAt(e,t),n=[],s=this.jsx_parseOpeningElementAt(e,t),o=null;if(!s.selfClosing){e:for(;;)switch(this.type){case l.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(u.slash)){o=this.jsx_parseClosingElementAt(e,t);break e}n.push(this.jsx_parseElementAt(e,t));break;case l.jsxText:n.push(this.parseExprAtom());break;case u.braceL:n.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}i(o.name)!==i(s.name)&&this.raise(o.start,"Expected corresponding JSX closing tag for <"+i(s.name)+">")}let a=s.name?"Element":"Fragment";return r["opening"+a]=s,r["closing"+a]=o,r.children=n,this.type===u.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSX"+a)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===l.jsxText?this.jsx_parseText():this.type===l.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===h)return this.jsx_readToken();if(t===d||t===f){if(g(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(l.jsxTagEnd);if((34===e||39===e)&&t==d)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(l.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==u.braceL){var t=this.curContext();t==d?this.context.push(p.b_expr):t==h?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==u.slash||e!==l.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(f),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},s)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return o(ft.exports).tokTypes},configurable:!0,enumerable:!0})}(ht),Object.defineProperty(dt,"__esModule",{value:!0});var gt=ht.exports,yt=at;function xt(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function bt(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var vt=bt(ft.exports),Et=xt(gt),Ct=bt(yt),St={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"};const kt="Boolean",At="Identifier",Dt="PrivateIdentifier",wt="Keyword",Ft="Null",Tt="Numeric",Pt="Punctuator",It="String",_t="RegularExpression",Bt="Template",Ot="JSXIdentifier",Lt="JSXText";function jt(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}jt.prototype={constructor:jt,translate(e,t){const r=e.type,n=this._acornTokTypes;if(r===n.name)e.type=At,"static"===e.value&&(e.type=wt),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=wt);else if(r===n.privateId)e.type=Dt;else if(r===n.semi||r===n.comma||r===n.parenL||r===n.parenR||r===n.braceL||r===n.braceR||r===n.dot||r===n.bracketL||r===n.colon||r===n.question||r===n.bracketR||r===n.ellipsis||r===n.arrow||r===n.jsxTagStart||r===n.incDec||r===n.starstar||r===n.jsxTagEnd||r===n.prefix||r===n.questionDot||r.binop&&!r.keyword||r.isAssign)e.type=Pt,e.value=this._code.slice(e.start,e.end);else if(r===n.jsxName)e.type=Ot;else if("jsxText"===r.label||r===n.jsxAttrValueToken)e.type=Lt;else if(r.keyword)"true"===r.keyword||"false"===r.keyword?e.type=kt:"null"===r.keyword?e.type=Ft:e.type=wt;else if(r===n.num)e.type=Tt,e.value=this._code.slice(e.start,e.end);else if(r===n.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=Lt):e.type=It,e.value=this._code.slice(e.start,e.end);else if(r===n.regexp){e.type=_t;const t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){const r=this,n=this._acornTokTypes,s=t.tokens,o=this._tokens;function i(){s.push(function(e,t){const r=e[0],n=e[e.length-1],s={type:Bt,value:t.slice(r.start,n.end)};return r.loc&&(s.loc={start:r.loc.start,end:n.loc.end}),r.range&&(s.start=r.range[0],s.end=n.range[1],s.range=[s.start,s.end]),s}(r._tokens,r._code)),r._tokens=[]}if(e.type!==n.eof){if(e.type===n.backQuote)return this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),o.push(e),void(o.length>1&&i());if(e.type===n.dollarBraceL)return o.push(e),void i();if(e.type===n.braceR)return this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),void(this._curlyBrace=e);if(e.type===n.template||e.type===n.invalidTemplate)return this._curlyBrace&&(o.push(this._curlyBrace),this._curlyBrace=null),void o.push(e);this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}else this._curlyBrace&&s.push(this.translate(this._curlyBrace,t))}};const Nt=[3,5,6,7,8,9,10,11,12,13];function Rt(){return Nt[Nt.length-1]}function Mt(e){const t=function(e=5){let t="latest"===e?Rt():e;if("number"!=typeof t)throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!Nt.includes(t))throw new Error("Invalid ecmaVersion.");return t}(e.ecmaVersion),r=function(e="script"){if("script"===e||"module"===e)return e;if("commonjs"===e)return"script";throw new Error("Invalid sourceType.")}(e.sourceType),n=!0===e.range,s=!0===e.loc;if(3!==t&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(void 0!==e.allowReserved&&"boolean"!=typeof e.allowReserved)throw new Error("`allowReserved`, when present, must be `true` or `false`");const o=3===t&&(e.allowReserved||"never"),i=e.ecmaFeatures||{},a="commonjs"===e.sourceType||Boolean(i.globalReturn);if("module"===r&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:r,ranges:n,locations:s,allowReserved:o,allowReturnOutsideFunction:a})}const Vt=Symbol("espree's internal state"),$t=Symbol("espree's esprimaFinishNode");var Ut=()=>e=>{const t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,r){"object"==typeof e&&null!==e||(e={}),"string"==typeof r||r instanceof String||(r=String(r));const n=e.sourceType,s=Mt(e),o=s.ecmaFeatures||{},i=!0===s.tokens?new jt(t,r):null;super({ecmaVersion:s.ecmaVersion,sourceType:s.sourceType,ranges:s.ranges,locations:s.locations,allowReserved:s.allowReserved,allowReturnOutsideFunction:s.allowReturnOutsideFunction,onToken:e=>{i&&i.onToken(e,this[Vt]),e.type!==t.eof&&(this[Vt].lastToken=e)},onComment:(e,t,r,n,s,o)=>{if(this[Vt].comments){const i=function(e,t,r,n,s,o){const i={type:e?"Block":"Line",value:t};return"number"==typeof r&&(i.start=r,i.end=n,i.range=[r,n]),"object"==typeof s&&(i.loc={start:s,end:o}),i}(e,t,r,n,s,o);this[Vt].comments.push(i)}}},r),this[Vt]={originalSourceType:n||s.sourceType,tokens:i?[]:null,comments:!0===s.comment?[]:null,impliedStrict:!0===o.impliedStrict&&this.options.ecmaVersion>=5,ecmaVersion:this.options.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]}}tokenize(){do{this.next()}while(this.type!==t.eof);this.next();const e=this[Vt],r=e.tokens;return e.comments&&(r.comments=e.comments),r}finishNode(...e){const t=super.finishNode(...e);return this[$t](t)}finishNodeAt(...e){const t=super.finishNodeAt(...e);return this[$t](t)}parse(){const e=this[Vt],t=super.parse();if(t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.body.length){const[e]=t.body;t.range&&(t.range[0]=e.range[0]),t.loc&&(t.loc.start=e.loc.start),t.start=e.start}return e.lastToken&&(t.range&&(t.range[1]=e.lastToken.range[1]),t.loc&&(t.loc.end=e.lastToken.loc.end),t.end=e.lastToken.end),this[Vt].templateElements.forEach((e=>{const t=e.tail?1:2;e.start+=-1,e.end+=t,e.range&&(e.range[0]+=-1,e.range[1]+=t),e.loc&&(e.loc.start.column+=-1,e.loc.end.column+=t)})),t}parseTopLevel(e){return this[Vt].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,r){const n=e.acorn.getLineInfo(this.input,t),s=new SyntaxError(r);throw s.index=t,s.lineNumber=n.line,s.column=n.column+1,s}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(t+=" "+this.input.slice(this.start,this.end)),this.raise(this.start,t)}jsx_readString(e){const r=super.jsx_readString(e);return this.type===t.string&&(this[Vt].jsxAttrValueToken=!0),r}[$t](e){return"TemplateElement"===e.type&&this[Vt].templateElements.push(e),e.type.includes("Function")&&!e.generator&&(e.generator=!1),e}}};const qt={_regular:null,_jsx:null,get regular(){return null===this._regular&&(this._regular=vt.Parser.extend(Ut())),this._regular},get jsx(){return null===this._jsx&&(this._jsx=vt.Parser.extend(Et.default(),Ut())),this._jsx},get(e){return Boolean(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};const Wt=function(){let e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),St)Object.hasOwnProperty.call(St,e)&&(t[e]=St[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}(),zt=Ct.KEYS,Gt=Rt(),Ht=[...Nt];dt.Syntax=Wt,dt.VisitorKeys=zt,dt.latestEcmaVersion=Gt,dt.parse=function(e,t){return new(qt.get(t))(t,e).parse()},dt.supportedEcmaVersions=Ht,dt.tokenize=function(e,t){const r=qt.get(t);return t&&!0===t.tokens||(t=Object.assign({},t,{tokens:!0})),new r(t,e).tokenize()},dt.version="9.2.0";var Kt={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",o="[object Function]",i="[object Object]",a=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[s]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[o]=u["[object Map]"]=u["[object Number]"]=u[i]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var l="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,d=l||p||Function("return this")(),f=t&&!t.nodeType&&t,h=f&&e&&!e.nodeType&&e,m=h&&h.exports===f,g=m&&l.process,y=function(){try{var e=h&&h.require&&h.require("util").types;return e||g&&g.binding&&g.binding("util")}catch(e){}}(),x=y&&y.isTypedArray;function b(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var v,E,C,S=Array.prototype,k=Function.prototype,A=Object.prototype,D=d["__core-js_shared__"],w=k.toString,F=A.hasOwnProperty,T=(v=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",P=A.toString,I=w.call(Object),_=RegExp("^"+w.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=m?d.Buffer:void 0,O=d.Symbol,L=d.Uint8Array,j=B?B.allocUnsafe:void 0,N=(E=Object.getPrototypeOf,C=Object,function(e){return E(C(e))}),R=Object.create,M=A.propertyIsEnumerable,V=S.splice,$=O?O.toStringTag:void 0,U=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=B?B.isBuffer:void 0,W=Math.max,z=Date.now,G=fe(d,"Map"),H=fe(Object,"create"),K=function(){function e(){}return function(t){if(!Ae(t))return{};if(R)return R(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function J(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Y(e){var t=this.__data__=new Q(e);this.size=t.size}function Z(e,t){var r=ve(e),n=!r&&be(e),s=!r&&!n&&Ce(e),o=!r&&!n&&!s&&we(e),i=r||n||s||o,a=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!F.call(e,u)||i&&("length"==u||s&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||he(u,c))||a.push(u);return a}function ee(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&ne(e,t,r)}function te(e,t,r){var n=e[t];F.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||ne(e,t,r)}function re(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}function ne(e,t,r){"__proto__"==t&&U?U(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}J.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},J.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},J.prototype.get=function(e){var t=this.__data__;if(H){var n=t[e];return n===r?void 0:n}return F.call(t,e)?t[e]:void 0},J.prototype.has=function(e){var t=this.__data__;return H?void 0!==t[e]:F.call(t,e)},J.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=H&&void 0===t?r:t,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,r=re(t,e);return!(r<0)&&(r==t.length-1?t.pop():V.call(t,r,1),--this.size,!0)},Q.prototype.get=function(e){var t=this.__data__,r=re(t,e);return r<0?void 0:t[r][1]},Q.prototype.has=function(e){return re(this.__data__,e)>-1},Q.prototype.set=function(e,t){var r=this.__data__,n=re(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(G||Q),string:new J}},X.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return de(this,e).get(e)},X.prototype.has=function(e){return de(this,e).has(e)},X.prototype.set=function(e,t){var r=de(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Y.prototype.clear=function(){this.__data__=new Q,this.size=0},Y.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Y.prototype.get=function(e){return this.__data__.get(e)},Y.prototype.has=function(e){return this.__data__.has(e)},Y.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Q){var n=r.__data__;if(!G||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new X(n)}return r.set(e,t),this.size=r.size,this};var se,oe=function(e,t,r){for(var n=-1,s=Object(e),o=r(e),i=o.length;i--;){var a=o[se?i:++n];if(!1===t(s[a],a,s))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?function(e){var t=F.call(e,$),r=e[$];try{e[$]=void 0;var n=!0}catch(e){}var s=P.call(e);n&&(t?e[$]=r:delete e[$]);return s}(e):function(e){return P.call(e)}(e)}function ae(e){return De(e)&&ie(e)==s}function ce(e){return!(!Ae(e)||function(e){return!!T&&T in e}(e))&&(Se(e)?_:a).test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ue(e){if(!Ae(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=me(e),r=[];for(var n in e)("constructor"!=n||!t&&F.call(e,n))&&r.push(n);return r}function le(e,t,r,n,s){e!==t&&oe(t,(function(o,a){if(s||(s=new Y),Ae(o))!function(e,t,r,n,s,o,a){var c=ge(e,r),u=ge(t,r),l=a.get(u);if(l)return void ee(e,r,l);var p=o?o(c,u,r+"",e,t,a):void 0,d=void 0===p;if(d){var f=ve(u),h=!f&&Ce(u),m=!f&&!h&&we(u);p=u,f||h||m?ve(c)?p=c:De(v=c)&&Ee(v)?p=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(c):h?(d=!1,p=function(e,t){if(t)return e.slice();var r=e.length,n=j?j(r):new e.constructor(r);return e.copy(n),n}(u,!0)):m?(d=!1,g=u,y=!0?(x=g.buffer,b=new x.constructor(x.byteLength),new L(b).set(new L(x)),b):g.buffer,p=new g.constructor(y,g.byteOffset,g.length)):p=[]:function(e){if(!De(e)||ie(e)!=i)return!1;var t=N(e);if(null===t)return!0;var r=F.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&w.call(r)==I}(u)||be(u)?(p=c,be(c)?p=function(e){return function(e,t,r,n){var s=!r;r||(r={});var o=-1,i=t.length;for(;++o<i;){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),s?ne(r,a,c):te(r,a,c)}return r}(e,Fe(e))}(c):Ae(c)&&!Se(c)||(p=function(e){return"function"!=typeof e.constructor||me(e)?{}:K(N(e))}(u))):d=!1}var g,y,x,b;var v;d&&(a.set(u,p),s(p,u,n,o,a),a.delete(u));ee(e,r,p)}(e,t,a,r,le,n,s);else{var c=n?n(ge(e,a),o,a+"",e,t,s):void 0;void 0===c&&(c=o),ee(e,a,c)}}),Fe)}function pe(e,t){return ye(function(e,t,r){return t=W(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,o=W(n.length-t,0),i=Array(o);++s<o;)i[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=r(i),b(e,this,a)}}(e,t,Ie),e+"")}function de(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function fe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ce(r)?r:void 0}function he(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&c.test(e))&&e>-1&&e%1==0&&e<t}function me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function ge(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ye=function(e){var t=0,r=0;return function(){var n=z(),s=16-(n-r);if(r=n,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(U?function(e,t){return U(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Ie);function xe(e,t){return e===t||e!=e&&t!=t}var be=ae(function(){return arguments}())?ae:function(e){return De(e)&&F.call(e,"callee")&&!M.call(e,"callee")},ve=Array.isArray;function Ee(e){return null!=e&&ke(e.length)&&!Se(e)}var Ce=q||function(){return!1};function Se(e){if(!Ae(e))return!1;var t=ie(e);return t==o||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Ae(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function De(e){return null!=e&&"object"==typeof e}var we=x?function(e){return function(t){return e(t)}}(x):function(e){return De(e)&&ke(e.length)&&!!u[ie(e)]};function Fe(e){return Ee(e)?Z(e,!0):ue(e)}var Te,Pe=(Te=function(e,t,r){le(e,t,r)},pe((function(e,t){var r=-1,n=t.length,s=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(s=Te.length>3&&"function"==typeof s?(n--,s):void 0,o&&function(e,t,r){if(!Ae(r))return!1;var n=typeof t;return!!("number"==n?Ee(r)&&he(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++r<n;){var i=t[r];i&&Te(e,i,r,s)}return e})));function Ie(e){return e}e.exports=Pe}(Kt,Kt.exports);var Jt={name:"eslint",version:"8.4.1",author:"Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",description:"An AST-based pattern checker for JavaScript.",bin:{eslint:"./bin/eslint.js"},main:"./lib/api.js",exports:{"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},scripts:{test:"node Makefile.js test","test:cli":"mocha",lint:"node Makefile.js lint",fix:"node Makefile.js lint -- fix",fuzz:"node Makefile.js fuzz","generate-release":"node Makefile.js generateRelease","generate-alpharelease":"node Makefile.js generatePrerelease -- alpha","generate-betarelease":"node Makefile.js generatePrerelease -- beta","generate-rcrelease":"node Makefile.js generatePrerelease -- rc","publish-release":"node Makefile.js publishRelease",gensite:"node Makefile.js gensite",webpack:"node Makefile.js webpack",perf:"node Makefile.js perf"},gitHooks:{"pre-commit":"lint-staged"},"lint-staged":{"*.js":"eslint --fix","*.md":"markdownlint"},files:["LICENSE","README.md","bin","conf","lib","messages"],repository:"eslint/eslint",funding:"https://opencollective.com/eslint",homepage:"https://eslint.org",bugs:"https://github.com/eslint/eslint/issues/",dependencies:{"@eslint/eslintrc":"^1.0.5","@humanwhocodes/config-array":"^0.9.2",ajv:"^6.10.0",chalk:"^4.0.0","cross-spawn":"^7.0.2",debug:"^4.3.2",doctrine:"^3.0.0",enquirer:"^2.3.5","escape-string-regexp":"^4.0.0","eslint-scope":"^7.1.0","eslint-utils":"^3.0.0","eslint-visitor-keys":"^3.1.0",espree:"^9.2.0",esquery:"^1.4.0",esutils:"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"^6.0.1","functional-red-black-tree":"^1.0.1","glob-parent":"^6.0.1",globals:"^13.6.0",ignore:"^4.0.6","import-fresh":"^3.0.0",imurmurhash:"^0.1.4","is-glob":"^4.0.0","js-yaml":"^4.1.0","json-stable-stringify-without-jsonify":"^1.0.1",levn:"^0.4.1","lodash.merge":"^4.6.2",minimatch:"^3.0.4","natural-compare":"^1.4.0",optionator:"^0.9.1",progress:"^2.0.0",regexpp:"^3.2.0",semver:"^7.2.1","strip-ansi":"^6.0.1","strip-json-comments":"^3.1.0","text-table":"^0.2.0","v8-compile-cache":"^2.0.3"},devDependencies:{"@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","babel-loader":"^8.0.5",chai:"^4.0.1",cheerio:"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3",dateformat:"^4.5.1",ejs:"^3.0.2",eslint:"file:.","eslint-config-eslint":"file:packages/eslint-config-eslint","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-eslint-plugin":"^4.0.1","eslint-plugin-internal-rules":"file:tools/internal-rules","eslint-plugin-jsdoc":"^37.0.0","eslint-plugin-node":"^11.1.0","eslint-release":"^3.2.0",eslump:"^3.0.0",esprima:"^4.0.1","fs-teardown":"^0.1.3",glob:"^7.1.6",jsdoc:"^3.5.5",karma:"^6.1.1","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-webpack":"^5.0.0","lint-staged":"^11.0.0","load-perf":"^0.2.0",markdownlint:"^0.24.0","markdownlint-cli":"^0.30.0",memfs:"^3.0.1",mocha:"^8.3.2","mocha-junit-reporter":"^2.0.0","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3",nyc:"^15.0.1",proxyquire:"^2.0.1",puppeteer:"^9.1.1",recast:"^0.20.4","regenerator-runtime":"^0.13.2",shelljs:"^0.8.2",sinon:"^11.0.0",temp:"^0.9.0",webpack:"^5.23.0","webpack-cli":"^4.5.0",yorkie:"^2.0.0"},keywords:["ast","lint","javascript","ecmascript","espree"],license:"MIT",engines:{node:"^12.22.0 || ^14.17.0 || >=16.0.0"}};const Qt=/\r\n|[\r\n\u2028\u2029]/u;var Xt={breakableTypePattern:/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,lineBreakPattern:Qt,createGlobalLinebreakMatcher:function(){return new RegExp(Qt.source,"gu")},shebangPattern:/^#!([^\r\n]+)/u},Yt={},Zt={exports:{}};
9
9
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
10
10
  !function(e,t){!function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,s=1;s<n;++s)t[s]=t[s].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function s(e){return e.toUpperCase()}function o(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function a(e){var n="[A-Za-z]",s="[0-9]",o=t(s,"[A-Fa-f]"),i=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",a),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,s,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,s,"[\\+\\-\\.]")+"*"),r(r(i+"|"+t(l,a,"[\\:]"))+"*");var p=r(r("25[0-5]")+"|"+r("2[0-4]"+s)+"|"+r("1"+s+s)+"|"+r("0?[1-9]"+s)+"|0?0?"+s),d=r(p+"\\."+p+"\\."+p+"\\."+p),f=r(o+"{1,4}"),h=r(r(f+"\\:"+f)+"|"+d),m=r(r(f+"\\:")+"{6}"+h),g=r("\\:\\:"+r(f+"\\:")+"{5}"+h),y=r(r(f)+"?\\:\\:"+r(f+"\\:")+"{4}"+h),x=r(r(r(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+r(f+"\\:")+"{3}"+h),b=r(r(r(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+r(f+"\\:")+"{2}"+h),v=r(r(r(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+h),E=r(r(r(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+h),C=r(r(r(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),S=r(r(r(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),k=r([m,g,y,x,b,v,E,C,S].join("|")),A=r(r(l+"|"+i)+"+");r("[vV]"+o+"+\\."+t(l,a,"[\\:]")+"+"),r(r(i+"|"+t(l,a))+"*");var D=r(i+"|"+t(l,a,"[\\:\\@]"));return r(r(i+"|"+t(l,a,"[\\@]"))+"+"),r(r(D+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,s,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,a,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,a),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+k+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+A+")")+"?\\]?$")}}var c=a(!1),u=a(!0),l=function(){function e(e,t){var r=[],n=!0,s=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){s=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(s)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},d=2147483647,f=36,h=1,m=26,g=38,y=700,x=72,b=128,v="-",E=/^xn--/,C=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=f-h,D=Math.floor,w=String.fromCharCode;function F(e){throw new RangeError(k[e])}function T(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function P(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+T((e=e.replace(S,".")).split("."),t).join(".")}function I(e){for(var t=[],r=0,n=e.length;r<n;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&s)<<10)+(1023&o)+65536):(t.push(s),r--)}else t.push(s)}return t}var _=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f},B=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},O=function(e,t,r){var n=0;for(e=r?D(e/y):e>>1,e+=D(e/t);e>A*m>>1;n+=f)e=D(e/A);return D(n+(A+1)*e/(e+g))},L=function(e){var t=[],r=e.length,n=0,s=b,o=x,i=e.lastIndexOf(v);i<0&&(i=0);for(var a=0;a<i;++a)e.charCodeAt(a)>=128&&F("not-basic"),t.push(e.charCodeAt(a));for(var c=i>0?i+1:0;c<r;){for(var u=n,l=1,p=f;;p+=f){c>=r&&F("invalid-input");var g=_(e.charCodeAt(c++));(g>=f||g>D((d-n)/l))&&F("overflow"),n+=g*l;var y=p<=o?h:p>=o+m?m:p-o;if(g<y)break;var E=f-y;l>D(d/E)&&F("overflow"),l*=E}var C=t.length+1;o=O(n-u,C,0==u),D(n/C)>d-s&&F("overflow"),s+=D(n/C),n%=C,t.splice(n++,0,s)}return String.fromCodePoint.apply(String,t)},j=function(e){var t=[],r=(e=I(e)).length,n=b,s=0,o=x,i=!0,a=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var p=u.value;p<128&&t.push(w(p))}}catch(e){a=!0,c=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw c}}var g=t.length,y=g;for(g&&t.push(v);y<r;){var E=d,C=!0,S=!1,k=void 0;try{for(var A,T=e[Symbol.iterator]();!(C=(A=T.next()).done);C=!0){var P=A.value;P>=n&&P<E&&(E=P)}}catch(e){S=!0,k=e}finally{try{!C&&T.return&&T.return()}finally{if(S)throw k}}var _=y+1;E-n>D((d-s)/_)&&F("overflow"),s+=(E-n)*_,n=E;var L=!0,j=!1,N=void 0;try{for(var R,M=e[Symbol.iterator]();!(L=(R=M.next()).done);L=!0){var V=R.value;if(V<n&&++s>d&&F("overflow"),V==n){for(var $=s,U=f;;U+=f){var q=U<=o?h:U>=o+m?m:U-o;if($<q)break;var W=$-q,z=f-q;t.push(w(B(q+W%z,0))),$=D(W/z)}t.push(w(B($,0))),o=O(s,_,y==g),s=0,++y}}}catch(e){j=!0,N=e}finally{try{!L&&M.return&&M.return()}finally{if(j)throw N}}++s,++n}return t.join("")},N=function(e){return P(e,(function(e){return E.test(e)?L(e.slice(4).toLowerCase()):e}))},R=function(e){return P(e,(function(e){return C.test(e)?"xn--"+j(e):e}))},M={version:"2.1.0",ucs2:{decode:I,encode:function(e){return String.fromCodePoint.apply(String,p(e))}},decode:L,encode:j,toASCII:R,toUnicode:N},V={};function $(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function U(e){for(var t="",r=0,n=e.length;r<n;){var s=parseInt(e.substr(r+1,2),16);if(s<128)t+=String.fromCharCode(s),r+=3;else if(s>=194&&s<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&s)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(s>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&s)<<12|(63&i)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function q(e,t){function r(e){var r=U(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,$).replace(t.PCT_ENCODED,s)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,$).replace(t.PCT_ENCODED,s)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,$).replace(t.PCT_ENCODED,s)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,$).replace(t.PCT_ENCODED,s)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,$).replace(t.PCT_ENCODED,s)),e}function W(e){return e.replace(/^0*(.*)/,"$1")||"0"}function z(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(W).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),s=n[1],o=n[2];if(s){for(var i=s.toLowerCase().split("::").reverse(),a=l(i,2),c=a[0],u=a[1],p=u?u.split(":").map(W):[],d=c.split(":").map(W),f=t.IPV4ADDRESS.test(d[d.length-1]),h=f?7:8,m=d.length-h,g=Array(h),y=0;y<h;++y)g[y]=p[y]||d[m+y]||"";f&&(g[h-1]=z(g[h-1],t));var x=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(x&&x.length>1){var v=g.slice(0,x.index),E=g.slice(x.index+x.length);b=v.join(":")+"::"+E.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var H=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var s=e.match(H);if(s){K?(r.scheme=s[1],r.userinfo=s[3],r.host=s[4],r.port=parseInt(s[5],10),r.path=s[6]||"",r.query=s[7],r.fragment=s[8],isNaN(r.port)&&(r.port=s[5])):(r.scheme=s[1]||void 0,r.userinfo=-1!==e.indexOf("@")?s[3]:void 0,r.host=-1!==e.indexOf("//")?s[4]:void 0,r.port=parseInt(s[5],10),r.path=s[6]||"",r.query=-1!==e.indexOf("?")?s[7]:void 0,r.fragment=-1!==e.indexOf("#")?s[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:void 0)),r.host&&(r.host=G(z(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=V[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)q(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=M.toASCII(r.host.replace(n.PCT_ENCODED,U).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}q(r,c)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Q(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(z(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var X=/^\.\.?\//,Y=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Y))e=e.replace(Y,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],s=V[(t.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize&&s.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||s&&s.domainHost)try{e.host=t.iri?M.toUnicode(e.host):M.toASCII(e.host.replace(r.PCT_ENCODED,U).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}q(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Q(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||s&&s.absolutePath||(i=te(i)),void 0===o&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=J(re(e,r),r),t=J(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function se(e,t,r){var n=i({scheme:"null"},r);return re(ne(J(e,n),J(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(J(e,t),t):"object"===n(e)&&(e=J(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(J(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(J(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function ae(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,$)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,U)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function pe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var de={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=pe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(pe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),s=n[0],o=n[1];e.path=s&&"/"!==s?s:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},fe={scheme:"wss",domainHost:de.domainHost,parse:de.parse,serialize:de.serialize},he={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ve="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ee=new RegExp(me,"g"),Ce=new RegExp(ye,"g"),Se=new RegExp(t("[^]",xe,"[\\.]",'[\\"]',be),"g"),ke=new RegExp(t("[^]",me,ve),"g"),Ae=ke;function De(e){var t=U(e);return t.match(Ee)?t:e}var we={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var s=!1,o={},i=r.query.split("&"),a=0,c=i.length;a<c;++a){var u=i[a].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),p=0,d=l.length;p<d;++p)n.push(l[p]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:s=!0,o[ce(u[0],t)]=ce(u[1],t)}}s&&(r.headers=o)}r.query=void 0;for(var f=0,h=n.length;f<h;++f){var m=n[f].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=M.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[f]=m.join("@")}return r},serialize:function(e,t){var r=e,n=o(e.to);if(n){for(var i=0,a=n.length;i<a;++i){var c=String(n[i]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(Ce,De).replace(Ce,s).replace(Se,$),p=c.slice(u+1);try{p=t.iri?M.toUnicode(p):M.toASCII(ce(p,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[i]=l+"@"+p}r.path=n.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var f=[];for(var h in d)d[h]!==he[h]&&f.push(h.replace(Ce,De).replace(Ce,s).replace(ke,$)+"="+d[h].replace(Ce,De).replace(Ce,s).replace(Ae,$));return f.length&&(r.query=f.join("&")),r}},Fe=/^([^\:]+)\:(.*)/,Te={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Fe),n=e;if(r){var s=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),i=r[2],a=s+":"+(t.nid||o),c=V[a];n.nid=o,n.nss=i,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,s=r+":"+(t.nid||n),o=V[s];o&&(e=o.serialize(e,t));var i=e,a=e.nss;return i.path=(n||t.nid)+":"+a,i}},Pe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ie={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Pe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};V[ue.scheme]=ue,V[le.scheme]=le,V[de.scheme]=de,V[fe.scheme]=fe,V[we.scheme]=we,V[Te.scheme]=Te,V[Ie.scheme]=Ie,e.SCHEMES=V,e.pctEncChar=$,e.pctDecChars=U,e.parse=J,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=se,e.normalize=oe,e.equal=ie,e.escapeComponent=ae,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,Zt.exports);var er=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,s,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(s=n;0!=s--;)if(!e(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(s=n;0!=s--;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(s=n;0!=s--;){var i=o[s];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r},tr={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:rr,checkDataTypes:function(e,t,r){switch(e.length){case 1:return rr(e[0],t,r,!0);default:var n="",s=sr(e);for(var o in s.array&&s.object&&(n=s.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete s.null,delete s.array,delete s.object),s.number&&delete s.integer,s)n+=(n?" && ":"")+rr(o,t,r,!0);return n}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var s=t[n];(nr[s]||"array"===e&&"array"===s)&&(r[r.length]=s)}if(r.length)return r}else{if(nr[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:sr,getProperty:ar,escapeQuotes:cr,equal:er,ucs2length:function(e){for(var t,r=0,n=e.length,s=0;s<n;)r++,(t=e.charCodeAt(s++))>=55296&&t<=56319&&s<n&&56320==(64512&(t=e.charCodeAt(s)))&&s++;return r},varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:ur,getPathExpr:function(e,t,r,n){return dr(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=ur(r?"/"+fr(t):ar(t));return dr(e,n)},getData:function(e,t,r){var n,s,o,i;if(""===e)return"rootData";if("/"==e[0]){if(!lr.test(e))throw new Error("Invalid JSON-pointer: "+e);s=e,o="rootData"}else{if(!(i=e.match(pr)))throw new Error("Invalid JSON-pointer: "+e);if(n=+i[1],"#"==(s=i[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!s)return o}for(var a=o,c=s.split("/"),u=0;u<c.length;u++){var l=c[u];l&&(o+=ar(hr(l)),a+=" && "+o)}return a},unescapeFragment:function(e){return hr(decodeURIComponent(e))},unescapeJsonPointer:hr,escapeFragment:function(e){return encodeURIComponent(fr(e))},escapeJsonPointer:fr};function rr(e,t,r,n){var s=n?" !== ":" === ",o=n?" || ":" && ",i=n?"!":"",a=n?"":"!";switch(e){case"null":return t+s+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+o+"typeof "+t+s+'"object"'+o+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+s+'"number"'+o+a+"("+t+" % 1)"+o+t+s+t+(r?o+i+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+s+'"'+e+'"'+(r?o+i+"isFinite("+t+")":"")+")";default:return"typeof "+t+s+'"'+e+'"'}}var nr=sr(["string","number","integer","boolean","null"]);function sr(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var or=/^[a-z$_][a-z$_0-9]*$/i,ir=/'|\\/g;function ar(e){return"number"==typeof e?"["+e+"]":or.test(e)?"."+e:"['"+cr(e)+"']"}function cr(e){return e.replace(ir,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function ur(e){return"'"+cr(e)+"'"}var lr=/^\/(?:[^~]|~0|~1)*$/,pr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function dr(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function fr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function hr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var mr=tr,gr=function(e){mr.copy(e,this)};var yr={exports:{}},xr=yr.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),br(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function br(e,t,r,n,s,o,i,a,c,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var l in t(n,s,o,i,a,c,u),n){var p=n[l];if(Array.isArray(p)){if(l in xr.arrayKeywords)for(var d=0;d<p.length;d++)br(e,t,r,p[d],s+"/"+l+"/"+d,o,s,l,n,d)}else if(l in xr.propsKeywords){if(p&&"object"==typeof p)for(var f in p)br(e,t,r,p[f],s+"/"+l+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),o,s,l,n,f)}else(l in xr.keywords||e.allKeys&&!(l in xr.skipKeywords))&&br(e,t,r,p,s+"/"+l,o,s,l,n)}r(n,s,o,i,a,c,u)}}xr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},xr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},xr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},xr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var vr=Zt.exports,Er=er,Cr=tr,Sr=gr,kr=yr.exports,Ar=Dr;function Dr(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return Dr.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof Sr)return _r(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var s,o,i,a=wr.call(this,t,r);return a&&(s=a.schema,t=a.root,i=a.baseId),s instanceof Sr?o=s.validate||e.call(this,s.schema,t,void 0,i):void 0!==s&&(o=_r(s,this._opts.inlineRefs)?s:e.call(this,s,t,void 0,i)),o}function wr(e,t){var r=vr.parse(t),n=jr(r),s=Lr(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==s){var o=Rr(n),i=this._refs[o];if("string"==typeof i)return Fr.call(this,e,i,r);if(i instanceof Sr)i.validate||this._compile(i),e=i;else{if(!((i=this._schemas[o])instanceof Sr))return;if(i.validate||this._compile(i),o==Rr(t))return{schema:i,root:e,baseId:s};e=i}if(!e.schema)return;s=Lr(this._getId(e.schema))}return Pr.call(this,r,s,e.schema,e)}function Fr(e,t,r){var n=wr.call(this,e,t);if(n){var s=n.schema,o=n.baseId;e=n.root;var i=this._getId(s);return i&&(o=Mr(o,i)),Pr.call(this,r,o,s,e)}}Dr.normalizeId=Rr,Dr.fullPath=Lr,Dr.url=Mr,Dr.ids=function(e){var t=Rr(this._getId(e)),r={"":t},n={"":Lr(t,!1)},s={},o=this;return kr(e,{allKeys:!0},(function(e,t,i,a,c,u,l){if(""!==t){var p=o._getId(e),d=r[a],f=n[a]+"/"+c;if(void 0!==l&&(f+="/"+("number"==typeof l?l:Cr.escapeFragment(l))),"string"==typeof p){p=d=Rr(d?vr.resolve(d,p):p);var h=o._refs[p];if("string"==typeof h&&(h=o._refs[h]),h&&h.schema){if(!Er(e,h.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=Rr(f))if("#"==p[0]){if(s[p]&&!Er(e,s[p]))throw new Error('id "'+p+'" resolves to more than one schema');s[p]=e}else o._refs[p]=f}r[t]=d,n[t]=f}})),s},Dr.inlineRef=_r,Dr.schema=wr;var Tr=Cr.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Pr(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var s=e.fragment.split("/"),o=1;o<s.length;o++){var i=s[o];if(i){if(void 0===(r=r[i=Cr.unescapeFragment(i)]))break;var a;if(!Tr[i]&&((a=this._getId(r))&&(t=Mr(t,a)),r.$ref)){var c=Mr(t,r.$ref),u=wr.call(this,n,c);u&&(r=u.schema,n=u.root,t=u.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var Ir=Cr.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function _r(e,t){return!1!==t&&(void 0===t||!0===t?Br(e):t?Or(e)<=t:void 0)}function Br(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!Br(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!Br(t))return!1}return!0}function Or(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=Or(t)),r==1/0)return 1/0}else for(var s in e){if("$ref"==s)return 1/0;if(Ir[s])r++;else if("object"==typeof(t=e[s])&&(r+=Or(t)+1),r==1/0)return 1/0}return r}function Lr(e,t){return!1!==t&&(e=Rr(e)),jr(vr.parse(e))}function jr(e){return vr.serialize(e).split("#")[0]+"#"}var Nr=/#\/?$/;function Rr(e){return e?e.replace(Nr,""):""}function Mr(e,t){return t=Rr(t),vr.resolve(e,t)}var Vr=Ar,$r={Validation:qr((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:qr(Ur)};function Ur(e,t,r){this.message=r||Ur.message(e,t),this.missingRef=Vr.url(e,t),this.missingSchema=Vr.normalizeId(Vr.fullPath(this.missingRef))}function qr(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}Ur.message=function(e,t){return"can't resolve reference "+t+" from id "+e};var Wr=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&function(e){return function(t){return function(r,n){var s={key:r,value:t[r]},o={key:n,value:t[n]};return e(s,o)}}}(t.cmp),s=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var o,i;if(Array.isArray(t)){for(i="[",o=0;o<t.length;o++)o&&(i+=","),i+=e(t[o])||"null";return i+"]"}if(null===t)return"null";if(-1!==s.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=s.push(t)-1,c=Object.keys(t).sort(n&&n(t));for(i="",o=0;o<c.length;o++){var u=c[o],l=e(t[u]);l&&(i&&(i+=","),i+=JSON.stringify(u)+":"+l)}return s.splice(a,1),"{"+i+"}"}}(e)},zr=function(e,t,r){var n="",s=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),i=e.self._getId(e.schema);if(e.opts.strictKeywords){var a=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(a){var c="unknown keyword: "+a;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",s&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,p=e.schema[t],d=e.schemaPath+e.util.getProperty(t),f=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,m="data"+(l||""),g="valid"+u;if(!1===e.schema){e.isTop?h=!0:n+=" var "+g+" = false; ",(Q=Q||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Q.pop(),!e.compositeRule&&h?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=s?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var x=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(i&&(e.baseId=e.resolve.url(e.baseId,i)),s&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}g="valid"+u,h=!e.opts.allErrors;var v="",E="",C=e.schema.type,S=Array.isArray(C);if(C&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==C.indexOf("null")&&(C=C.concat("null")):"null"!=C&&(C=[C,"null"],S=!0)),S&&1==C.length&&(C=C[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),C){if(e.opts.coerceTypes)var k=e.util.coerceToTypes(e.opts.coerceTypes,C);var A=e.RULES.types[C];if(k||S||!0===A||A&&!X(A)){d=e.schemaPath+".type",f=e.errSchemaPath+"/type",d=e.schemaPath+".type",f=e.errSchemaPath+"/type";var D=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[D](C,m,e.opts.strictNumbers,!0)+") { ",k){var w="dataType"+u,F="coerced"+u;n+=" var "+w+" = typeof "+m+"; var "+F+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+w+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+w+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+F+" = "+m+"; } "),n+=" if ("+F+" !== undefined) ; ";var T=k;if(T)for(var P,I=-1,_=T.length-1;I<_;)"string"==(P=T[I+=1])?n+=" else if ("+w+" == 'number' || "+w+" == 'boolean') "+F+" = '' + "+m+"; else if ("+m+" === null) "+F+" = ''; ":"number"==P||"integer"==P?(n+=" else if ("+w+" == 'boolean' || "+m+" === null || ("+w+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==P&&(n+=" && !("+m+" % 1)"),n+=")) "+F+" = +"+m+"; "):"boolean"==P?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+F+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+F+" = true; ":"null"==P?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+F+" = null; ":"array"==e.opts.coerceTypes&&"array"==P&&(n+=" else if ("+w+" == 'string' || "+w+" == 'number' || "+w+" == 'boolean' || "+m+" == null) "+F+" = ["+m+"]; ");n+=" else { ",(Q=Q||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=S?""+C.join(","):""+C,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+C.join(","):""+C,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Q.pop(),!e.compositeRule&&h?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+F+" !== undefined) { ";var B=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+F+"; ",l||(n+="if ("+B+" !== undefined)"),n+=" "+B+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+F+"; } "}else{(Q=Q||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=S?""+C.join(","):""+C,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+C.join(","):""+C,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Q.pop(),!e.compositeRule&&h?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",h&&(n+=" } if (errors === ",n+=x?"0":"errs_"+u,n+=") { ",E+="}");else{var O=e.RULES;if(O)for(var L=-1,j=O.length-1;L<j;)if(X(A=O[L+=1])){if(A.type&&(n+=" if ("+e.util.checkDataType(A.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==A.type&&e.schema.properties){p=e.schema.properties;var N=Object.keys(p);if(N)for(var R,M=-1,V=N.length-1;M<V;){if(void 0!==(q=p[R=N[M+=1]]).default){var $=m+e.util.getProperty(R);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+$;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+$+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+$+" === null || "+$+" === '' "),n+=" ) "+$+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(q.default)+" ":n+=" "+JSON.stringify(q.default)+" ",n+="; "}}}else if("array"==A.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){I=-1;for(var q,W=U.length-1;I<W;)if(void 0!==(q=U[I+=1]).default){$=m+"["+I+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+$;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+$+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+$+" === null || "+$+" === '' "),n+=" ) "+$+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(q.default)+" ":n+=" "+JSON.stringify(q.default)+" ",n+="; "}}}var z=A.rules;if(z)for(var G,H=-1,K=z.length-1;H<K;)if(Y(G=z[H+=1])){var J=G.code(e,G.keyword,A.type);J&&(n+=" "+J+" ",h&&(v+="}"))}if(h&&(n+=" "+v+" ",v=""),A.type&&(n+=" } ",C&&C===A.type&&!k)){n+=" else { ";var Q;d=e.schemaPath+".type",f=e.errSchemaPath+"/type";(Q=Q||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=S?""+C.join(","):""+C,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+C.join(","):""+C,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Q.pop(),!e.compositeRule&&h?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}h&&(n+=" if (errors === ",n+=x?"0":"errs_"+u,n+=") { ",E+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(Y(t[r]))return!0}function Y(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return h&&(n+=" "+E+" "),x?(s?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+u+";",n},Gr=Ar,Hr=tr,Kr=$r,Jr=Wr,Qr=zr,Xr=Hr.ucs2length,Yr=er,Zr=Kr.Validation,en=function e(t,r,n,s){var o=this,i=this._opts,a=[void 0],c={},u=[],l={},p=[],d={},f=[];r=r||{schema:t,refVal:a,refs:c};var h=tn.call(this,t,r,s),m=this._compilations[h.index];if(h.compiling)return m.callValidate=function e(){var t=m.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var g=this._formats,y=this.RULES;try{var x=v(t,r,n,s);m.validate=x;var b=m.callValidate;return b&&(b.schema=x.schema,b.errors=null,b.refs=x.refs,b.refVal=x.refVal,b.root=x.root,b.$async=x.$async,i.sourceCode&&(b.source=x.source)),x}finally{rn.call(this,t,r,s)}function v(t,n,s,l){var d=!n||n&&n.schema==t;if(n.schema!=r.schema)return e.call(o,t,n,s,l);var h,m=!0===t.$async,x=Qr({isTop:!0,schema:t,isRoot:d,baseId:l,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Kr.MissingRef,RULES:y,validate:Qr,util:Hr,resolve:Gr,resolveRef:E,usePattern:k,useDefault:A,useCustomRule:D,opts:i,formats:g,logger:o.logger,self:o});x=un(a,an)+un(u,sn)+un(p,on)+un(f,cn)+x,i.processCode&&(x=i.processCode(x,t));try{h=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",x)(o,y,g,r,a,p,f,Yr,Xr,Zr),a[0]=h}catch(e){throw o.logger.error("Error compiling schema, function code:",x),e}return h.schema=t,h.errors=null,h.refs=c,h.refVal=a,h.root=d?h:n,m&&(h.$async=!0),!0===i.sourceCode&&(h.source={code:x,patterns:u,defaults:p}),h}function E(t,s,u){s=Gr.url(t,s);var l,p,d=c[s];if(void 0!==d)return S(l=a[d],p="refVal["+d+"]");if(!u&&r.refs){var f=r.refs[s];if(void 0!==f)return S(l=r.refVal[f],p=C(s,l))}p=C(s);var h=Gr.call(o,v,r,s);if(void 0===h){var m=n&&n[s];m&&(h=Gr.inlineRef(m,i.inlineRefs)?m:e.call(o,m,r,n,t))}if(void 0!==h)return function(e,t){var r=c[e];a[r]=t}(s,h),S(h,p);!function(e){delete c[e]}(s)}function C(e,t){var r=a.length;return a[r]=t,c[e]=r,"refVal"+r}function S(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function k(e){var t=l[e];return void 0===t&&(t=l[e]=u.length,u[t]=e),"pattern"+t}function A(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return Hr.toQuotedString(e);case"object":if(null===e)return"null";var t=Jr(e),r=d[t];return void 0===r&&(r=d[t]=p.length,p[r]=e),"default"+r}}function D(e,t,r,n){if(!1!==o._opts.validateSchema){var s=e.definition.dependencies;if(s&&!s.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+s.join(","));var a=e.definition.validateSchema;if(a)if(!a(t)){var c="keyword schema is invalid: "+o.errorsText(a.errors);if("log"!=o._opts.validateSchema)throw new Error(c);o.logger.error(c)}}var u,l=e.definition.compile,p=e.definition.inline,d=e.definition.macro;if(l)u=l.call(o,t,r,n);else if(d)u=d.call(o,t,r,n),!1!==i.validateSchema&&o.validateSchema(u,!0);else if(p)u=p.call(o,n,e.keyword,t,r);else if(!(u=e.definition.validate))return;if(void 0===u)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=f.length;return f[h]=u,{code:"customRule"+h,validate:u}}};function tn(e,t,r){var n=nn.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function rn(e,t,r){var n=nn.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function nn(e,t,r){for(var n=0;n<this._compilations.length;n++){var s=this._compilations[n];if(s.schema==e&&s.root==t&&s.baseId==r)return n}return-1}function sn(e,t){return"var pattern"+e+" = new RegExp("+Hr.toQuotedString(t[e])+");"}function on(e){return"var default"+e+" = defaults["+e+"];"}function an(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function cn(e){return"var customRule"+e+" = customRules["+e+"];"}function un(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}var ln={exports:{}},pn=ln.exports=function(){this._cache={}};pn.prototype.put=function(e,t){this._cache[e]=t},pn.prototype.get=function(e){return this._cache[e]},pn.prototype.del=function(e){delete this._cache[e]},pn.prototype.clear=function(){this._cache={}};var dn=tr,fn=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,hn=[0,31,28,31,30,31,30,31,31,30,31,30,31],mn=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,gn=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,yn=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,xn=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,bn=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,vn=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,En=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Cn=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Sn=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,kn=An;function An(e){return e="full"==e?"full":"fast",dn.copy(An[e])}function Dn(e){var t=e.match(fn);if(!t)return!1;var r=+t[1],n=+t[2],s=+t[3];return n>=1&&n<=12&&s>=1&&s<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:hn[n])}function wn(e,t){var r=e.match(mn);if(!r)return!1;var n=r[1],s=r[2],o=r[3],i=r[5];return(n<=23&&s<=59&&o<=59||23==n&&59==s&&60==o)&&(!t||i)}An.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":xn,url:bn,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:gn,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:In,uuid:vn,"json-pointer":En,"json-pointer-uri-fragment":Cn,"relative-json-pointer":Sn},An.full={date:Dn,time:wn,"date-time":function(e){var t=e.split(Fn);return 2==t.length&&Dn(t[0])&&wn(t[1],!0)},uri:function(e){return Tn.test(e)&&yn.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":xn,url:bn,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:gn,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:In,uuid:vn,"json-pointer":En,"json-pointer-uri-fragment":Cn,"relative-json-pointer":Sn};var Fn=/t|\s/i;var Tn=/\/|:/;var Pn=/[^\\]\\Z/;function In(e){if(Pn.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}var _n=function(e,t,r){var n,s=" ",o=e.level,i=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&a&&a.$data;d?(s+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=a;var f="maximum"==t,h=f?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[h],g=e.opts.$data&&m&&m.$data,y=f?"<":">",x=f?">":"<",b=void 0;if(!d&&"number"!=typeof a&&void 0!==a)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(h+" must be number or boolean");if(g){var v=e.util.getData(m.$data,i,e.dataPathArr),E="exclusive"+o,C="exclType"+o,S="exclIsNumber"+o,k="' + "+(w="op"+o)+" + '";s+=" var schemaExcl"+o+" = "+v+"; ",s+=" var "+E+"; var "+C+" = typeof "+(v="schemaExcl"+o)+"; if ("+C+" != 'boolean' && "+C+" != 'undefined' && "+C+" != 'number') { ";var A;b=h;(A=A||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(s+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var D=s;s=A.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+D+"]); ":s+=" validate.errors = ["+D+"]; return false; ":s+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",d&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" "+C+" == 'number' ? ( ("+E+" = "+n+" === undefined || "+v+" "+y+"= "+n+") ? "+p+" "+x+"= "+v+" : "+p+" "+x+" "+n+" ) : ( ("+E+" = "+v+" === true) ? "+p+" "+x+"= "+n+" : "+p+" "+x+" "+n+" ) || "+p+" !== "+p+") { var op"+o+" = "+E+" ? '"+y+"' : '"+y+"='; ",void 0===a&&(b=h,u=e.errSchemaPath+"/"+h,n=v,d=g)}else{k=y;if((S="number"==typeof m)&&d){var w="'"+k+"'";s+=" if ( ",d&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+p+" "+x+"= "+m+" : "+p+" "+x+" "+n+" ) || "+p+" !== "+p+") { "}else{S&&void 0===a?(E=!0,b=h,u=e.errSchemaPath+"/"+h,n=m,x+="="):(S&&(n=Math[f?"min":"max"](m,a)),m===(!S||n)?(E=!0,b=h,u=e.errSchemaPath+"/"+h,x+="="):(E=!1,k+="="));w="'"+k+"'";s+=" if ( ",d&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" "+p+" "+x+" "+n+" || "+p+" !== "+p+") { "}}b=b||t,(A=A||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+w+", limit: "+n+", exclusive: "+E+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be "+k+" ",s+=d?"' + "+n:n+"'"),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+c:""+a,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";D=s;return s=A.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+D+"]); ":s+=" validate.errors = ["+D+"]; return false; ":s+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",l&&(s+=" else { "),s},Bn=function(e,t,r){var n,s=" ",o=e.level,i=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&a&&a.$data;if(d?(s+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");s+="if ( ",d&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" "+p+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var f=t,h=h||[];h.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(f||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxItems"==t?"more":"fewer",s+=" than ",s+=d?"' + "+n+" + '":""+a,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+c:""+a,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var m=s;return s=h.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",l&&(s+=" else { "),s},On=function(e,t,r){var n,s=" ",o=e.level,i=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&a&&a.$data;if(d?(s+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");var f="maxLength"==t?">":"<";s+="if ( ",d&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?s+=" "+p+".length ":s+=" ucs2length("+p+") ",s+=" "+f+" "+n+") { ";var h=t,m=m||[];m.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT be ",s+="maxLength"==t?"longer":"shorter",s+=" than ",s+=d?"' + "+n+" + '":""+a,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+c:""+a,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var g=s;return s=m.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",l&&(s+=" else { "),s},Ln=function(e,t,r){var n,s=" ",o=e.level,i=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&a&&a.$data;if(d?(s+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");s+="if ( ",d&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var f=t,h=h||[];h.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(f||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxProperties"==t?"more":"fewer",s+=" than ",s+=d?"' + "+n+" + '":""+a,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+c:""+a,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var m=s;return s=h.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",l&&(s+=" else { "),s},jn={$ref:function(e,t,r){var n,s,o=" ",i=e.level,a=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(a||""),d="valid"+i;if("#"==c||"#/"==c)e.isRoot?(n=e.async,s="validate"):(n=!0===e.root.schema.$async,s="root.refVal[0]");else{var f=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===f){var h=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(h),(x=x||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var m=o;o=x.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,h);e.logger.warn(h),l&&(o+=" if (true) { ")}}else if(f.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=f.schema,g.schemaPath="",g.errSchemaPath=c,o+=" "+e.validate(g).replace(/validate\.schema/g,f.code)+" ",l&&(o+=" if ("+y+") { ")}else n=!0===f.$async||e.async&&!1!==f.$async,s=f.code}if(s){var x;(x=x||[]).push(o),o="",e.opts.passContext?o+=" "+s+".call(this, ":o+=" "+s+"( ",o+=" "+p+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(a?"data"+(a-1||""):"parentData")+" , "+(a?e.dataPathArr[a]:"parentDataProperty")+", rootData) ";if(o=x.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(o+=" var "+d+"; "),o+=" try { await "+b+"; ",l&&(o+=" "+d+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(o+=" "+d+" = false; "),o+=" } ",l&&(o+=" if ("+d+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+s+".errors; else vErrors = vErrors.concat("+s+".errors); errors = vErrors.length; } ",l&&(o+=" else { ")}return o},allOf:function(e,t,r){var n=" ",s=e.schema[t],o=e.schemaPath+e.util.getProperty(t),i=e.errSchemaPath+"/"+t,a=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,p=c.baseId,d=!0,f=s;if(f)for(var h,m=-1,g=f.length-1;m<g;)h=f[m+=1],(e.opts.strictKeywords?"object"==typeof h&&Object.keys(h).length>0||!1===h:e.util.schemaHasRules(h,e.RULES.all))&&(d=!1,c.schema=h,c.schemaPath=o+"["+m+"]",c.errSchemaPath=i+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=p,a&&(n+=" if ("+l+") { ",u+="}"));return a&&(n+=d?" if (true) { ":" "+u.slice(0,-1)+" "),n},anyOf:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d="errs__"+s,f=e.util.copy(e),h="";f.level++;var m="valid"+f.level;if(i.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}))){var g=f.baseId;n+=" var "+d+" = errors; var "+p+" = false; ";var y=e.compositeRule;e.compositeRule=f.compositeRule=!0;var x=i;if(x)for(var b,v=-1,E=x.length-1;v<E;)b=x[v+=1],f.schema=b,f.schemaPath=a+"["+v+"]",f.errSchemaPath=c+"/"+v,n+=" "+e.validate(f)+" ",f.baseId=g,n+=" "+p+" = "+p+" || "+m+"; if (!"+p+") { ",h+="}";e.compositeRule=f.compositeRule=y,n+=" "+h+" if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n},$comment:function(e,t,r){var n=" ",s=e.schema[t],o=e.errSchemaPath+"/"+t;e.opts.allErrors;var i=e.util.toQuotedString(s);return!0===e.opts.$comment?n+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+i+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n},const:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d=e.opts.$data&&i&&i.$data;d&&(n+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; "),d||(n+=" var schema"+s+" = validate.schema"+a+";"),n+="var "+p+" = equal("+l+", schema"+s+"); if (!"+p+") { ";var f=f||[];f.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+s+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var h=n;return n=f.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+h+"]); ":n+=" validate.errors = ["+h+"]; return false; ":n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n},contains:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d="errs__"+s,f=e.util.copy(e);f.level++;var h="valid"+f.level,m="i"+s,g=f.dataLevel=e.dataLevel+1,y="data"+g,x=e.baseId,b=e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all);if(n+="var "+d+" = errors;var "+p+";",b){var v=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=i,f.schemaPath=a,f.errSchemaPath=c,n+=" var "+h+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var E=l+"["+m+"]";f.dataPathArr[g]=m;var C=e.validate(f);f.baseId=x,e.util.varOccurences(C,y)<2?n+=" "+e.util.varReplace(C,y,E)+" ":n+=" var "+y+" = "+E+"; "+C+" ",n+=" if ("+h+") break; } ",e.compositeRule=f.compositeRule=v,n+=" if (!"+h+") {"}else n+=" if ("+l+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;return n=S.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n},dependencies:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="errs__"+s,d=e.util.copy(e),f="";d.level++;var h="valid"+d.level,m={},g={},y=e.opts.ownProperties;for(E in i)if("__proto__"!=E){var x=i[E],b=Array.isArray(x)?g:m;b[E]=x}n+="var "+p+" = errors;";var v=e.errorPath;for(var E in n+="var missing"+s+";",g)if((b=g[E]).length){if(n+=" if ( "+l+e.util.getProperty(E)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(E)+"') "),u){n+=" && ( ";var C=b;if(C)for(var S=-1,k=C.length-1;S<k;){P=C[S+=1],S&&(n+=" || "),n+=" ( ( "+(O=l+(B=e.util.getProperty(P)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(P)+"') "),n+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:B)+") ) "}n+=")) { ";var A="missing"+s,D="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,A,!0):v+" + "+A);var w=w||[];w.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(E)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var F=n;n=w.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var T=b;if(T)for(var P,I=-1,_=T.length-1;I<_;){P=T[I+=1];var B=e.util.getProperty(P),O=(D=e.util.escapeQuotes(P),l+B);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,P,e.opts.jsonPointers)),n+=" if ( "+O+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(P)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(E)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(f+="}",n+=" else { ")}e.errorPath=v;var L=d.baseId;for(var E in m){x=m[E];(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))&&(n+=" "+h+" = true; if ( "+l+e.util.getProperty(E)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(E)+"') "),n+=") { ",d.schema=x,d.schemaPath=a+e.util.getProperty(E),d.errSchemaPath=c+"/"+e.util.escapeFragment(E),n+=" "+e.validate(d)+" ",d.baseId=L,n+=" } ",u&&(n+=" if ("+h+") { ",f+="}"))}return u&&(n+=" "+f+" if ("+p+" == errors) {"),n},enum:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d=e.opts.$data&&i&&i.$data;d&&(n+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var f="i"+s,h="schema"+s;d||(n+=" var "+h+" = validate.schema"+a+";"),n+="var "+p+";",d&&(n+=" if (schema"+s+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+s+")) "+p+" = false; else {"),n+=p+" = false;for (var "+f+"=0; "+f+"<"+h+".length; "+f+"++) if (equal("+l+", "+h+"["+f+"])) { "+p+" = true; break; }",d&&(n+=" } "),n+=" if (!"+p+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+s+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n},format:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var p,d=e.opts.$data&&i&&i.$data;d?(n+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",p="schema"+s):p=i;var f=e.opts.unknownFormats,h=Array.isArray(f);if(d){n+=" var "+(m="format"+s)+" = formats["+p+"]; var "+(g="isObject"+s)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+s)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+s+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",d&&(n+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),n+=" (","ignore"!=f&&(n+=" ("+p+" && !"+m+" ",h&&(n+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+s+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[i])){if("ignore"==f)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(h&&f.indexOf(i)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var x=!0===m.async;m=m.validate}if(y!=r)return u&&(n+=" if (true) { "),n;if(x){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(i)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(i);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var v=v||[];v.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=d?""+p:""+e.util.toQuotedString(i),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=d?"' + "+p+" + '":""+e.util.escapeQuotes(i),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+a:""+e.util.toQuotedString(i),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var E=n;return n=v.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n},if:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d="errs__"+s,f=e.util.copy(e);f.level++;var h="valid"+f.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),x=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=f.baseId;if(y||x){var v;f.createErrors=!1,f.schema=i,f.schemaPath=a,f.errSchemaPath=c,n+=" var "+d+" = errors; var "+p+" = true; ";var E=e.compositeRule;e.compositeRule=f.compositeRule=!0,n+=" "+e.validate(f)+" ",f.baseId=b,f.createErrors=!0,n+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=E,y?(n+=" if ("+h+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(f)+" ",f.baseId=b,n+=" "+p+" = "+h+"; ",y&&x?n+=" var "+(v="ifClause"+s)+" = 'then'; ":v="'then'",n+=" } ",x&&(n+=" else { ")):n+=" if (!"+h+") { ",x&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(f)+" ",f.baseId=b,n+=" "+p+" = "+h+"; ",y&&x?n+=" var "+(v="ifClause"+s)+" = 'else'; ":v="'else'",n+=" } "),n+=" if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+v+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n},items:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d="errs__"+s,f=e.util.copy(e),h="";f.level++;var m="valid"+f.level,g="i"+s,y=f.dataLevel=e.dataLevel+1,x="data"+y,b=e.baseId;if(n+="var "+d+" = errors;var "+p+";",Array.isArray(i)){var v=e.schema.additionalItems;if(!1===v){n+=" "+p+" = "+l+".length <= "+i.length+"; ";var E=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+p+") { ";var C=C||[];C.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+i.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+i.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=E,u&&(h+="}",n+=" else { ")}var k=i;if(k)for(var A,D=-1,w=k.length-1;D<w;)if(A=k[D+=1],e.opts.strictKeywords?"object"==typeof A&&Object.keys(A).length>0||!1===A:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+D+") { ";var F=l+"["+D+"]";f.schema=A,f.schemaPath=a+"["+D+"]",f.errSchemaPath=c+"/"+D,f.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),f.dataPathArr[y]=D;var T=e.validate(f);f.baseId=b,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,F)+" ":n+=" var "+x+" = "+F+"; "+T+" ",n+=" } ",u&&(n+=" if ("+m+") { ",h+="}")}if("object"==typeof v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))){f.schema=v,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+i.length+") { for (var "+g+" = "+i.length+"; "+g+" < "+l+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";f.dataPathArr[y]=g;T=e.validate(f);f.baseId=b,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,F)+" ":n+=" var "+x+" = "+F+"; "+T+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",h+="}")}}else if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){f.schema=i,f.schemaPath=a,f.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";f.dataPathArr[y]=g;T=e.validate(f);f.baseId=b,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,F)+" ":n+=" var "+x+" = "+F+"; "+T+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+h+" if ("+d+" == errors) {"),n},maximum:_n,minimum:_n,maxItems:Bn,minItems:Bn,maxLength:On,minLength:On,maxProperties:Ln,minProperties:Ln,multipleOf:function(e,t,r){var n,s=" ",o=e.level,i=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&a&&a.$data;if(d?(s+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=a,!d&&"number"!=typeof a)throw new Error(t+" must be number");s+="var division"+o+";if (",d&&(s+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),s+=" (division"+o+" = "+p+" / "+n+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+o+" !== parseInt(division"+o+") ",s+=" ) ",d&&(s+=" ) "),s+=" ) { ";var f=f||[];f.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be multiple of ",s+=d?"' + "+n:n+"'"),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+c:""+a,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var h=s;return s=f.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+h+"]); ":s+=" validate.errors = ["+h+"]; return false; ":s+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",l&&(s+=" else { "),s},not:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="errs__"+s,d=e.util.copy(e);d.level++;var f="valid"+d.level;if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){d.schema=i,d.schemaPath=a,d.errSchemaPath=c,n+=" var "+p+" = errors; ";var h,m=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.createErrors=!1,d.opts.allErrors&&(h=d.opts.allErrors,d.opts.allErrors=!1),n+=" "+e.validate(d)+" ",d.createErrors=!0,h&&(d.opts.allErrors=h),e.compositeRule=d.compositeRule=m,n+=" if ("+f+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n},oneOf:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d="errs__"+s,f=e.util.copy(e),h="";f.level++;var m="valid"+f.level,g=f.baseId,y="prevValid"+s,x="passingSchemas"+s;n+="var "+d+" = errors , "+y+" = false , "+p+" = false , "+x+" = null; ";var b=e.compositeRule;e.compositeRule=f.compositeRule=!0;var v=i;if(v)for(var E,C=-1,S=v.length-1;C<S;)E=v[C+=1],(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))?(f.schema=E,f.schemaPath=a+"["+C+"]",f.errSchemaPath=c+"/"+C,n+=" "+e.validate(f)+" ",f.baseId=g):n+=" var "+m+" = true; ",C&&(n+=" if ("+m+" && "+y+") { "+p+" = false; "+x+" = ["+x+", "+C+"]; } else { ",h+="}"),n+=" if ("+m+") { "+p+" = "+y+" = true; "+x+" = "+C+"; }";return e.compositeRule=f.compositeRule=b,n+=h+"if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+x+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n},pattern:function(e,t,r){var n,s=" ",o=e.level,i=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&a&&a.$data;d?(s+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=a,s+="if ( ",d&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),s+=" !"+(d?"(new RegExp("+n+"))":e.usePattern(a))+".test("+p+") ) { ";var f=f||[];f.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",s+=d?""+n:""+e.util.toQuotedString(a),s+=" } ",!1!==e.opts.messages&&(s+=" , message: 'should match pattern \"",s+=d?"' + "+n+" + '":""+e.util.escapeQuotes(a),s+="\"' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+c:""+e.util.toQuotedString(a),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var h=s;return s=f.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+h+"]); ":s+=" validate.errors = ["+h+"]; return false; ":s+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",l&&(s+=" else { "),s},properties:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="errs__"+s,d=e.util.copy(e),f="";d.level++;var h="valid"+d.level,m="key"+s,g="idx"+s,y=d.dataLevel=e.dataLevel+1,x="data"+y,b="dataProperties"+s,v=Object.keys(i||{}).filter(B),E=e.schema.patternProperties||{},C=Object.keys(E).filter(B),S=e.schema.additionalProperties,k=v.length||C.length,A=!1===S,D="object"==typeof S&&Object.keys(S).length,w=e.opts.removeAdditional,F=A||D||w,T=e.opts.ownProperties,P=e.baseId,I=e.schema.required;if(I&&(!e.opts.$data||!I.$data)&&I.length<e.opts.loopRequired)var _=e.util.toHash(I);function B(e){return"__proto__"!==e}if(n+="var "+p+" = errors;var "+h+" = true;",T&&(n+=" var "+b+" = undefined;"),F){if(n+=T?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",k){if(n+=" var isAdditional"+s+" = !(false ",v.length)if(v.length>8)n+=" || validate.schema"+a+".hasOwnProperty("+m+") ";else{var O=v;if(O)for(var L=-1,j=O.length-1;L<j;)J=O[L+=1],n+=" || "+m+" == "+e.util.toQuotedString(J)+" "}if(C.length){var N=C;if(N)for(var R=-1,M=N.length-1;R<M;)oe=N[R+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+s+") { "}if("all"==w)n+=" delete "+l+"["+m+"]; ";else{var V=e.errorPath,$="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),A)if(w)n+=" delete "+l+"["+m+"]; ";else{n+=" "+h+" = false; ";var U=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+$+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var q=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,u&&(n+=" break; ")}else if(D)if("failing"==w){n+=" var "+p+" = errors; ";var W=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=S,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var z=l+"["+m+"]";d.dataPathArr[y]=m;var G=e.validate(d);d.baseId=P,e.util.varOccurences(G,x)<2?n+=" "+e.util.varReplace(G,x,z)+" ":n+=" var "+x+" = "+z+"; "+G+" ",n+=" if (!"+h+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=d.compositeRule=W}else{d.schema=S,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);z=l+"["+m+"]";d.dataPathArr[y]=m;G=e.validate(d);d.baseId=P,e.util.varOccurences(G,x)<2?n+=" "+e.util.varReplace(G,x,z)+" ":n+=" var "+x+" = "+z+"; "+G+" ",u&&(n+=" if (!"+h+") break; ")}e.errorPath=V}k&&(n+=" } "),n+=" } ",u&&(n+=" if ("+h+") { ",f+="}")}var H=e.opts.useDefaults&&!e.compositeRule;if(v.length){var K=v;if(K)for(var J,Q=-1,X=K.length-1;Q<X;){var Y=i[J=K[Q+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var Z=e.util.getProperty(J),ee=(z=l+Z,H&&void 0!==Y.default);d.schema=Y,d.schemaPath=a+Z,d.errSchemaPath=c+"/"+e.util.escapeFragment(J),d.errorPath=e.util.getPath(e.errorPath,J,e.opts.jsonPointers),d.dataPathArr[y]=e.util.toQuotedString(J);G=e.validate(d);if(d.baseId=P,e.util.varOccurences(G,x)<2){G=e.util.varReplace(G,x,z);var te=z}else{te=x;n+=" var "+x+" = "+z+"; "}if(ee)n+=" "+G+" ";else{if(_&&_[J]){n+=" if ( "+te+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(J)+"') "),n+=") { "+h+" = false; ";V=e.errorPath,U=c;var re,ne=e.util.escapeQuotes(J);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(V,J,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";q=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,e.errorPath=V,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(J)+"') "),n+=") { "+h+" = true; } else { "):(n+=" if ("+te+" !== undefined ",T&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(J)+"') "),n+=" ) { ");n+=" "+G+" } "}}u&&(n+=" if ("+h+") { ",f+="}")}}if(C.length){var se=C;if(se)for(var oe,ie=-1,ae=se.length-1;ie<ae;){Y=E[oe=se[ie+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){d.schema=Y,d.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),d.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=T?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);z=l+"["+m+"]";d.dataPathArr[y]=m;G=e.validate(d);d.baseId=P,e.util.varOccurences(G,x)<2?n+=" "+e.util.varReplace(G,x,z)+" ":n+=" var "+x+" = "+z+"; "+G+" ",u&&(n+=" if (!"+h+") break; "),n+=" } ",u&&(n+=" else "+h+" = true; "),n+=" } ",u&&(n+=" if ("+h+") { ",f+="}")}}}return u&&(n+=" "+f+" if ("+p+" == errors) {"),n},propertyNames:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="errs__"+s,d=e.util.copy(e);d.level++;var f="valid"+d.level;if(n+="var "+p+" = errors;",e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){d.schema=i,d.schemaPath=a,d.errSchemaPath=c;var h="key"+s,m="idx"+s,g="i"+s,y="' + "+h+" + '",x="data"+(d.dataLevel=e.dataLevel+1),b="dataProperties"+s,v=e.opts.ownProperties,E=e.baseId;v&&(n+=" var "+b+" = undefined; "),n+=v?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+h+" = "+b+"["+m+"]; ":" for (var "+h+" in "+l+") { ",n+=" var startErrs"+s+" = errors; ";var C=h,S=e.compositeRule;e.compositeRule=d.compositeRule=!0;var k=e.validate(d);d.baseId=E,e.util.varOccurences(k,x)<2?n+=" "+e.util.varReplace(k,x,C)+" ":n+=" var "+x+" = "+C+"; "+k+" ",e.compositeRule=d.compositeRule=S,n+=" if (!"+f+") { for (var "+g+"=startErrs"+s+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+h+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+p+" == errors) {"),n},required:function(e,t,r){var n=" ",s=e.level,o=e.dataLevel,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),p="valid"+s,d=e.opts.$data&&i&&i.$data;d&&(n+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var f="schema"+s;if(!d)if(i.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var h=[],m=i;if(m)for(var g,y=-1,x=m.length-1;y<x;){g=m[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(h[h.length]=g)}}else h=i;if(d||h.length){var v=e.errorPath,E=d||h.length>=e.opts.loopRequired,C=e.opts.ownProperties;if(u)if(n+=" var missing"+s+"; ",E){d||(n+=" var "+f+" = validate.schema"+a+"; ");var S="' + "+(T="schema"+s+"["+(D="i"+s)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,T,e.opts.jsonPointers)),n+=" var "+p+" = true; ",d&&(n+=" if (schema"+s+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+s+")) "+p+" = false; else {"),n+=" for (var "+D+" = 0; "+D+" < "+f+".length; "+D+"++) { "+p+" = "+l+"["+f+"["+D+"]] !== undefined ",C&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+f+"["+D+"]) "),n+="; if (!"+p+") break; } ",d&&(n+=" } "),n+=" if (!"+p+") { ",(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var A=h;if(A)for(var D=-1,w=A.length-1;D<w;){I=A[D+=1],D&&(n+=" || "),n+=" ( ( "+(L=l+(O=e.util.getProperty(I)))+" === undefined ",C&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(I)+"') "),n+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?I:O)+") ) "}n+=") { ";var F;S="' + "+(T="missing"+s)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,T,!0):v+" + "+T),(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";k=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(E){d||(n+=" var "+f+" = validate.schema"+a+"; ");var T;S="' + "+(T="schema"+s+"["+(D="i"+s)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,T,e.opts.jsonPointers)),d&&(n+=" if ("+f+" && !Array.isArray("+f+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+f+" !== undefined) { "),n+=" for (var "+D+" = 0; "+D+" < "+f+".length; "+D+"++) { if ("+l+"["+f+"["+D+"]] === undefined ",C&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+f+"["+D+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",d&&(n+=" } ")}else{var P=h;if(P)for(var I,_=-1,B=P.length-1;_<B;){I=P[_+=1];var O=e.util.getProperty(I),L=(S=e.util.escapeQuotes(I),l+O);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,I,e.opts.jsonPointers)),n+=" if ( "+L+" === undefined ",C&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(I)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=v}else u&&(n+=" if (true) {");return n},uniqueItems:function(e,t,r){var n,s=" ",o=e.level,i=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,p="data"+(i||""),d="valid"+o,f=e.opts.$data&&a&&a.$data;if(f?(s+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",n="schema"+o):n=a,(a||f)&&!1!==e.opts.uniqueItems){f&&(s+=" var "+d+"; if ("+n+" === false || "+n+" === undefined) "+d+" = true; else if (typeof "+n+" != 'boolean') "+d+" = false; else { "),s+=" var i = "+p+".length , "+d+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||"object"==h||"array"==h||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+d+" = false; break outer; } } } ";else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var g="checkDataType"+(m?"s":"");s+=" if ("+e.util[g](h,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(s+=" if (typeof item == 'string') item = '\"' + item; "),s+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ",f&&(s+=" } "),s+=" if (!"+d+") { ";var y=y||[];y.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+c:""+a,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var x=s;s=y.pop(),!e.compositeRule&&l?e.async?s+=" throw new ValidationError(["+x+"]); ":s+=" validate.errors = ["+x+"]; return false; ":s+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",l&&(s+=" else { ")}else l&&(s+=" if (true) { ");return s},validate:zr},Nn=tr.toHash,Rn=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],Mn=$r.MissingRef,Vn=function e(t,r,n){var s=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(n=r,r=void 0);var o=i(t).then((function(){var e=s._addSchema(t,void 0,r);return e.validate||a(e)}));n&&o.then((function(e){n(null,e)}),n);return o;function i(t){var r=t.$schema;return r&&!s.getSchema(r)?e.call(s,{$ref:r},!0):Promise.resolve()}function a(e){try{return s._compile(e)}catch(t){if(t instanceof Mn)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=s._loadingSchemas[n];o||(o=s._loadingSchemas[n]=s._opts.loadSchema(n)).then(c,c);return o.then((function(e){if(!u(n))return i(e).then((function(){u(n)||s.addSchema(e,n,void 0,r)}))})).then((function(){return a(e)}));function c(){delete s._loadingSchemas[n]}function u(e){return s._refs[e]||s._schemas[e]}}(t);throw t}}};var $n={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},Un=$n,qn={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Un.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Un.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},Wn=/^[a-z_$][a-z0-9_$-]*$/i,zn=function(e,t,r){var n,s,o=" ",i=e.level,a=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(a||""),f="valid"+i,h="errs__"+i,m=e.opts.$data&&c&&c.$data;m?(o+=" var schema"+i+" = "+e.util.getData(c.$data,a,e.dataPathArr)+"; ",s="schema"+i):s=c;var g,y,x,b,v,E=this,C="definition"+i,S=E.definition,k="";if(m&&S.$data){v="keywordValidate"+i;var A=S.validateSchema;o+=" var "+C+" = RULES.custom['"+t+"'].definition; var "+v+" = "+C+".validate;"}else{if(!(b=e.useCustomRule(E,c,e.schema,e)))return;s="validate.schema"+u,v=b.code,g=S.compile,y=S.inline,x=S.macro}var D=v+".errors",w="i"+i,F="ruleErr"+i,T=S.async;if(T&&!e.async)throw new Error("async keyword in sync schema");if(y||x||(o+=D+" = null;"),o+="var "+h+" = errors;var "+f+";",m&&S.$data&&(k+="}",o+=" if ("+s+" === undefined) { "+f+" = true; } else { ",A&&(k+="}",o+=" "+f+" = "+C+".validateSchema("+s+"); if ("+f+") { ")),y)S.statements?o+=" "+b.validate+" ":o+=" "+f+" = "+b.validate+"; ";else if(x){var P=e.util.copy(e);k="";P.level++;var I="valid"+P.level;P.schema=b.validate,P.schemaPath="";var _=e.compositeRule;e.compositeRule=P.compositeRule=!0;var B=e.validate(P).replace(/validate\.schema/g,v);e.compositeRule=P.compositeRule=_,o+=" "+B}else{(N=N||[]).push(o),o="",o+=" "+v+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===S.schema?o+=" , "+d+" ":o+=" , "+s+" , "+d+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var O=a?"data"+(a-1||""):"parentData",L=a?e.dataPathArr[a]:"parentDataProperty",j=o+=" , "+O+" , "+L+" , rootData ) ";o=N.pop(),!1===S.errors?(o+=" "+f+" = ",T&&(o+="await "),o+=j+"; "):o+=T?" var "+(D="customErrors"+i)+" = null; try { "+f+" = await "+j+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+D+" = e.errors; else throw e; } ":" "+D+" = null; "+f+" = "+j+"; "}if(S.modifying&&(o+=" if ("+O+") "+d+" = "+O+"["+L+"];"),o+=""+k,S.valid)p&&(o+=" if (true) { ");else{var N;o+=" if ( ",void 0===S.valid?(o+=" !",o+=x?""+I:""+f):o+=" "+!S.valid+" ",o+=") { ",n=E.keyword,(N=N||[]).push(o),o="",(N=N||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+E.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+E.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var R=o;o=N.pop(),!e.compositeRule&&p?e.async?o+=" throw new ValidationError(["+R+"]); ":o+=" validate.errors = ["+R+"]; return false; ":o+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=o;o=N.pop(),y?S.errors?"full"!=S.errors&&(o+=" for (var "+w+"="+h+"; "+w+"<errors; "+w+"++) { var "+F+" = vErrors["+w+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+F+".schema = "+s+"; "+F+".data = "+d+"; "),o+=" } "):!1===S.errors?o+=" "+M+" ":(o+=" if ("+h+" == errors) { "+M+" } else { for (var "+w+"="+h+"; "+w+"<errors; "+w+"++) { var "+F+" = vErrors["+w+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+F+".schema = "+s+"; "+F+".data = "+d+"; "),o+=" } } "):x?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+E.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+E.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===S.errors?o+=" "+M+" ":(o+=" if (Array.isArray("+D+")) { if (vErrors === null) vErrors = "+D+"; else vErrors = vErrors.concat("+D+"); errors = vErrors.length; for (var "+w+"="+h+"; "+w+"<errors; "+w+"++) { var "+F+" = vErrors["+w+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; "+F+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(o+=" "+F+".schema = "+s+"; "+F+".data = "+d+"; "),o+=" } } else { "+M+" } "),o+=" } ",p&&(o+=" else { ")}return o},Gn=qn,Hn={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!Wn.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var n=t.type;if(Array.isArray(n))for(var s=0;s<n.length;s++)i(e,n[s],t);else i(e,n,t);var o=t.metaSchema;o&&(t.$data&&this._opts.$data&&(o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(o,!0))}function i(e,t,n){for(var s,o=0;o<r.length;o++){var i=r[o];if(i.type==t){s=i;break}}s||(s={type:t,rules:[]},r.push(s));var a={keyword:e,definition:n,custom:!0,code:zn,implements:n.implements};s.rules.push(a),r.custom[e]=a}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,s=0;s<n.length;s++)if(n[s].keyword==e){n.splice(s,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(Gn,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}};var Kn={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},Jn=en,Qn=Ar,Xn=ln.exports,Yn=gr,Zn=Wr,es=kn,ts=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=Nn(t),e.types=Nn(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var n;if("object"==typeof r){var s=Object.keys(r)[0];n=r[s],r=s,n.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:jn[r],implements:n}})),e.all.$comment={keyword:"$comment",code:jn.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=Nn(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e},rs=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var n,s=t[r].split("/"),o=e;for(n=1;n<s.length;n++)o=o[s[n]];for(n=0;n<Rn.length;n++){var i=Rn[n],a=o[i];a&&(o[i]={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},ns=tr,ss=ls;ls.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var s=r(t);!0!==r.$async&&(this.errors=r.errors);return s},ls.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},ls.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var s=0;s<e.length;s++)this.addSchema(e[s],void 0,r,n);return this}var o=this._getId(e);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return gs(this,t=Qn.normalizeId(t||o)),this._schemas[t]=this._addSchema(e,r,n,!0),this},ls.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},ls.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(as)?as:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var s="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(s);this.logger.error(s)}return n},ls.prototype.getSchema=function(e){var t=ps(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=Qn.schema.call(e,{schema:{}},t);if(r){var n=r.schema,s=r.root,o=r.baseId,i=Jn.call(e,n,s,void 0,o);return e._fragments[t]=new Yn({ref:t,fragment:!0,schema:n,root:s,baseId:o,validate:i}),i}}(this,e)}},ls.prototype.removeSchema=function(e){if(e instanceof RegExp)return ds(this,this._schemas,e),ds(this,this._refs,e),this;switch(typeof e){case"undefined":return ds(this,this._schemas),ds(this,this._refs),this._cache.clear(),this;case"string":var t=ps(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var s=this._getId(e);s&&(s=Qn.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this},ls.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},ls.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,s="",o=0;o<e.length;o++){var i=e[o];i&&(s+=n+i.dataPath+" "+i.message+r)}return s.slice(0,-r.length)},ls.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var s=this._opts.serialize,o=s?s(e):e,i=this._cache.get(o);if(i)return i;n=n||!1!==this._opts.addUsedSchema;var a=Qn.normalizeId(this._getId(e));a&&n&&gs(this,a);var c,u=!1!==this._opts.validateSchema&&!t;u&&!(c=a&&a==Qn.normalizeId(e.$schema))&&this.validateSchema(e,!0);var l=Qn.ids.call(this,e),p=new Yn({id:a,schema:e,localRefs:l,cacheKey:o,meta:r});"#"!=a[0]&&n&&(this._refs[a]=p);this._cache.put(o,p),u&&c&&this.validateSchema(e,!0);return p},ls.prototype._compile=function(e,t){if(e.compiling)return e.validate=s,s.schema=e.schema,s.errors=null,s.root=t||s,!0===e.schema.$async&&(s.$async=!0),s;var r,n;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{n=Jn.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function s(){var t=e.validate,r=t.apply(this,arguments);return s.errors=t.errors,r}},ls.prototype.compileAsync=Vn;var os=Hn;ls.prototype.addKeyword=os.add,ls.prototype.getKeyword=os.get,ls.prototype.removeKeyword=os.remove,ls.prototype.validateKeyword=os.validate;var is=$r;ls.ValidationError=is.Validation,ls.MissingRefError=is.MissingRef,ls.$dataMetaSchema=rs;var as="http://json-schema.org/draft-07/schema",cs=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],us=["/properties"];function ls(e){if(!(this instanceof ls))return new ls(e);e=this._opts=ns.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:ys,warn:ys,error:ys};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=es(e.format),this._cache=e.cache||new Xn,this._loadingSchemas={},this._compilations=[],this.RULES=ts(),this._getId=function(e){switch(e.schemaId){case"auto":return ms;case"id":return fs;default:return hs}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=Zn),this._metaOpts=function(e){for(var t=ns.copy(e._opts),r=0;r<cs.length;r++)delete t[cs[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=Kn,e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=$n;e._opts.$data&&(r=rs(r,us));e.addMetaSchema(r,as,!0),e._refs["http://json-schema.org/schema"]=as}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function ps(e,t){return t=Qn.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function ds(e,t,r){for(var n in t){var s=t[n];s.meta||r&&!r.test(n)||(e._cache.del(s.cacheKey),delete t[n])}}function fs(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function hs(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function ms(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function gs(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function ys(){}var xs={builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSPerspective:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransformValue:!1,CSSTranslate:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,global:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,performance:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,global:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,process:!1,queueMicrotask:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,btoa:!1,clearInterval:!1,clearTimeout:!1,console:!1,DOMException:!1,Event:!1,EventTarget:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,queueMicrotask:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}};Object.defineProperty(Yt,"__esModule",{value:!0});var bs=S,vs=ss,Es=xs;function Cs(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Ss=Cs(oe),ks=Cs(bs),As=Cs(vs),Ds=Cs(Es);const ws=["off","warn","error"],Fs=ws.reduce(((e,t,r)=>(e[t]=r,e)),{}),Ts=[0,1,2,"off","warn","error"];function Ps(e){const t=Array.isArray(e)?e[0]:e;return 0===t||1===t||2===t?t:"string"==typeof t&&Fs[t.toLowerCase()]||0}function Is(e){let t=Array.isArray(e)?e[0]:e;return"string"==typeof t&&(t=t.toLowerCase()),-1!==Ts.indexOf(t)}function _s(e){switch(e){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${e}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var Bs={__proto__:null,getRuleSeverity:Ps,normalizeToStrings:function(e){e.rules&&Object.keys(e.rules).forEach((t=>{const r=e.rules[t];"number"==typeof r?e.rules[t]=ws[r]||ws[0]:Array.isArray(r)&&"number"==typeof r[0]&&(r[0]=ws[r[0]]||ws[0])}))},isErrorSeverity:function(e){return 2===Ps(e)},isValidSeverity:Is,isEverySeverityValid:function(e){return Object.keys(e).every((t=>Is(e[t])))},normalizeConfigGlobal:_s};const Os={ESLINT_LEGACY_ECMAFEATURES:"The 'ecmaFeatures' config file property is deprecated and has no effect.",ESLINT_PERSONAL_CONFIG_LOAD:"'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.",ESLINT_PERSONAL_CONFIG_SUPPRESS:"'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally."},Ls=new Set;const js={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};const Ns={$schema:{type:"string"},env:{type:"object"},extends:{$ref:"#/definitions/stringOrStrings"},globals:{type:"object"},overrides:{type:"array",items:{$ref:"#/definitions/overrideConfig"},additionalItems:!1},parser:{type:["string","null"]},parserOptions:{type:"object"},plugins:{type:"array"},processor:{type:"string"},rules:{type:"object"},settings:{type:"object"},noInlineConfig:{type:"boolean"},reportUnusedDisableDirectives:{type:"boolean"},ecmaFeatures:{type:"object"}},Rs={definitions:{stringOrStrings:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1,minItems:1}]},objectConfig:{type:"object",properties:{root:{type:"boolean"},ignorePatterns:{$ref:"#/definitions/stringOrStrings"},...Ns},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...Ns},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};const Ms=function(e,t){const r={};for(const[n,s]of Object.entries(e))Object.hasOwnProperty.call(t,n)||(r[n]=s);return r}(Ds.default.es2015,Ds.default.es5),Vs={Atomics:!1,SharedArrayBuffer:!1},$s={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1};var Us=new Map(Object.entries({builtin:{globals:Ds.default.es5},es6:{globals:Ms,parserOptions:{ecmaVersion:6}},es2015:{globals:Ms,parserOptions:{ecmaVersion:6}},es2017:{globals:{...Ms,...Vs},parserOptions:{ecmaVersion:8}},es2020:{globals:{...Ms,...Vs,...$s},parserOptions:{ecmaVersion:11}},es2021:{globals:{...Ms,...Vs,...$s,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},parserOptions:{ecmaVersion:12}},browser:{globals:Ds.default.browser},node:{globals:Ds.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:Ds.default["shared-node-browser"]},worker:{globals:Ds.default.worker},serviceworker:{globals:Ds.default.serviceworker},commonjs:{globals:Ds.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:Ds.default.amd},mocha:{globals:Ds.default.mocha},jasmine:{globals:Ds.default.jasmine},jest:{globals:Ds.default.jest},phantomjs:{globals:Ds.default.phantomjs},jquery:{globals:Ds.default.jquery},qunit:{globals:Ds.default.qunit},prototypejs:{globals:Ds.default.prototypejs},shelljs:{globals:Ds.default.shelljs},meteor:{globals:Ds.default.meteor},mongo:{globals:Ds.default.mongo},protractor:{globals:Ds.default.protractor},applescript:{globals:Ds.default.applescript},nashorn:{globals:Ds.default.nashorn},atomtest:{globals:Ds.default.atomtest},embertest:{globals:Ds.default.embertest},webextensions:{globals:Ds.default.webextensions},greasemonkey:{globals:Ds.default.greasemonkey}}));const qs=((e={})=>{const t=new As.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...e});return t.addMetaSchema(js),t._opts.defaultMeta=js.id,t})(),Ws=new WeakMap,zs=Function.prototype;let Gs;const Hs={error:2,warn:1,off:0},Ks=new WeakSet;const Js=/^@.*\//iu;var Qs={__proto__:null,normalizePackageName:function(e,t){let r=e;if(r.includes("\\")&&(r=r.replace(/\\/gu,"/")),"@"===r.charAt(0)){const e=new RegExp(`^(@[^/]+)(?:/(?:${t})?)?$`,"u"),n=new RegExp(`^${t}(-|$)`,"u");e.test(r)?r=r.replace(e,"$1/"+t):n.test(r.split("/")[1])||(r=r.replace(/^@([^/]+)\/(.*)$/u,`@$1/${t}-$2`))}else r.startsWith(t+"-")||(r=`${t}-${r}`);return r},getShorthandName:function(e,t){if("@"===e[0]){let r=new RegExp(`^(@[^/]+)/${t}$`,"u").exec(e);if(r)return r[1];if(r=new RegExp(`^(@[^/]+)/${t}-(.+)$`,"u").exec(e),r)return`${r[1]}/${r[2]}`}else if(e.startsWith(t+"-"))return e.slice(t.length+1);return e},getNamespaceFromTerm:function(e){const t=e.match(Js);return t?t[0]:""}};const Xs={environments:Us,ConfigOps:Bs,ConfigValidator:class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;const t=e.schema||e.meta&&e.meta.schema;return Array.isArray(t)?t.length?{type:"array",items:t,minItems:0,maxItems:t.length}:{type:"array",minItems:0,maxItems:0}:t||null}validateRuleSeverity(e){const t=Array.isArray(e)?e[0]:e,r="string"==typeof t?Hs[t.toLowerCase()]:t;if(0===r||1===r||2===r)return r;throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${Ss.default.inspect(t).replace(/'/gu,'"').replace(/\n/gu,"")}').\n`)}validateRuleSchema(e,t){if(!Ws.has(e)){const t=this.getRuleOptionsSchema(e);t&&Ws.set(e,qs.compile(t))}const r=Ws.get(e);if(r&&(r(t),r.errors))throw new Error(r.errors.map((e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`)).join(""))}validateRuleOptions(e,t,r,n=null){try{0!==this.validateRuleSeverity(r)&&this.validateRuleSchema(e,Array.isArray(r)?r.slice(1):[])}catch(e){const r=`Configuration for rule "${t}" is invalid:\n${e.message}`;throw"string"==typeof n?new Error(`${n}:\n\t${r}`):new Error(r)}}validateEnvironment(e,t,r=zs){e&&Object.keys(e).forEach((e=>{if(!(r(e)||Us.get(e)||null)){throw new Error(`${t}:\n\tEnvironment key "${e}" is unknown\n`)}}))}validateRules(e,t,r=zs){e&&Object.keys(e).forEach((n=>{const s=r(n)||this.builtInRules.get(n)||null;this.validateRuleOptions(s,n,e[n],t)}))}validateGlobals(e,t=null){e&&Object.entries(e).forEach((([e,r])=>{try{_s(r)}catch(r){throw new Error(`ESLint configuration of global '${e}' in ${t} is invalid:\n${r.message}`)}}))}validateProcessor(e,t,r){if(e&&!r(e))throw new Error(`ESLint configuration of processor in '${t}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map((e=>{if("additionalProperties"===e.keyword){return`Unexpected top-level property "${e.dataPath.length?`${e.dataPath.slice(1)}.${e.params.additionalProperty}`:e.params.additionalProperty}"`}if("type"===e.keyword){return`Property "${e.dataPath.slice(1)}" is the wrong type (expected ${Array.isArray(e.schema)?e.schema.join("/"):e.schema} but got \`${JSON.stringify(e.data)}\`)`}return`"${"."===e.dataPath[0]?e.dataPath.slice(1):e.dataPath}" ${e.message}. Value: ${JSON.stringify(e.data)}`})).map((e=>`\t- ${e}.\n`)).join("")}validateConfigSchema(e,t=null){if(Gs=Gs||qs.compile(Rs),!Gs(e))throw new Error(`ESLint configuration in ${t} is invalid:\n${this.formatErrors(Gs.errors)}`);Object.hasOwnProperty.call(e,"ecmaFeatures")&&function(e,t){const r=JSON.stringify({source:e,errorCode:t});if(Ls.has(r))return;Ls.add(r);const n=ks.default.relative(process.cwd(),e),s=Os[t];process.emitWarning(`${s} (found in "${n}")`,"DeprecationWarning",t)}(t,"ESLINT_LEGACY_ECMAFEATURES")}validate(e,t,r,n){this.validateConfigSchema(e,t),this.validateRules(e.rules,t,r),this.validateEnvironment(e.env,t,n),this.validateGlobals(e.globals,t);for(const s of e.overrides||[])this.validateRules(s.rules,t,r),this.validateEnvironment(s.env,t,n),this.validateGlobals(e.globals,t)}validateConfigArray(e){const t=Map.prototype.get.bind(e.pluginEnvironments),r=Map.prototype.get.bind(e.pluginProcessors),n=Map.prototype.get.bind(e.pluginRules);for(const s of e)Ks.has(s)||(Ks.add(s),this.validateEnvironment(s.env,s.name,t),this.validateGlobals(s.globals,s.name),this.validateProcessor(s.processor,s.name,r),this.validateRules(s.rules,s.name,n))}},naming:Qs};Yt.Legacy=Xs;var Ys={exports:{}},Zs={exports:{}},eo=1e3,to=6e4,ro=60*to,no=24*ro,so=7*no,oo=365.25*no,io=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*oo;case"weeks":case"week":case"w":return r*so;case"days":case"day":case"d":return r*no;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ro;case"minutes":case"minute":case"mins":case"min":case"m":return r*to;case"seconds":case"second":case"secs":case"sec":case"s":return r*eo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=no)return ao(e,t,no,"day");if(t>=ro)return ao(e,t,ro,"hour");if(t>=to)return ao(e,t,to,"minute");if(t>=eo)return ao(e,t,eo,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=no)return Math.round(e/no)+"d";if(t>=ro)return Math.round(e/ro)+"h";if(t>=to)return Math.round(e/to)+"m";if(t>=eo)return Math.round(e/eo)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ao(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}var co=function(e){function t(e){let n,s,o,i=null;function a(...e){if(!a.enabled)return;const r=a,s=Number(new Date),o=s-(n||s);r.diff=o,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";i++;const o=t.formatters[s];if("function"==typeof o){const t=e[i];n=o.call(r,t),e.splice(i,1),i--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r<s;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=io,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t};!function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))})),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=co(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Zs,Zs.exports);var uo={exports:{}};var lo={isatty:function(){return!1},ReadStream:function(){throw new Error("tty.ReadStream is not implemented")},WriteStream:function(){throw new Error("tty.ReadStream is not implemented")}};!function(e,t){const r=lo,n=oe;t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(n.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:s}=this;if(s){const t=this.color,s="[3"+(t<8?t:"8;5;"+t),o=` ${s};1m${n} `;r[0]=o+r[0].split("\n").join("\n"+o),r.push(s+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=require("supports-color");e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=co(t);const{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}}(uo,uo.exports),"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Ys.exports=Zs.exports:Ys.exports=uo.exports;const po=at,fo=Ys.exports("eslint:traverser");function ho(){}class mo{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(e,t){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=t.visitorKeys||po.KEYS,this._enter=t.enter||ho,this._leave=t.leave||ho,this._traverse(e,null)}_traverse(e,t){if(function(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}(e)){if(this._current=e,this._skipped=!1,this._enter(e,t),!this._skipped&&!this._broken){const t=function(e,t){let r=e[t.type];return r||(r=po.getKeys(t),fo('Unknown node type "%s": Estimated visitor keys %j',t.type,r)),r}(this._visitorKeys,e);if(t.length>=1){this._parents.push(e);for(let r=0;r<t.length&&!this._broken;++r){const n=e[t[r]];if(Array.isArray(n))for(let t=0;t<n.length&&!this._broken;++t)this._traverse(n[t],e);else this._traverse(n,e)}this._parents.pop()}}this._broken||this._leave(e,t),this._current=t}}static getKeys(e){return po.getKeys(e)}static traverse(e,t){(new mo).traverse(e,t)}static get DEFAULT_VISITOR_KEYS(){return po.KEYS}}var go=mo,yo={};const xo={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},bo=Object.freeze(Object.keys(xo));for(const e of bo)Object.freeze(xo[e]);Object.freeze(xo);const vo=new Set(["parent","leadingComments","trailingComments"]);function Eo(e){return!vo.has(e)&&"_"!==e[0]}var Co=Object.freeze({KEYS:xo,getKeys:e=>Object.keys(e).filter(Eo),unionWith(e){const t=Object.assign({},xo);for(const r of Object.keys(e))if(t.hasOwnProperty(r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)}});
11
- /*! @author Toru Nagashima <https://github.com/mysticatea> */Object.defineProperty(yo,"__esModule",{value:!0});var So,ko=(So=Co)&&"object"==typeof So&&"default"in So?So.default:So;function Ao(e,t){const r=t.range[0];let n=e,s=!1;do{s=!1;for(const e of n.childScopes){const t=e.block.range;if(t[0]<=r&&r<t[1]){n=e,s=!0;break}}}while(s);return n}function Do(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=Ao(n,t));null!=n;){const e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function wo(e){return!this(e)}function Fo(e){return wo.bind(e)}function To(e,t){return"Punctuator"===e.type&&e.value===t}function Po(e){return To(e,"=>")}function Io(e){return To(e,",")}function _o(e){return To(e,";")}function Bo(e){return To(e,":")}function Oo(e){return To(e,"(")}function Lo(e){return To(e,")")}function jo(e){return To(e,"[")}function No(e){return To(e,"]")}function Ro(e){return To(e,"{")}function Mo(e){return To(e,"}")}function Vo(e){return["Block","Line","Shebang"].includes(e.type)}const $o=Fo(Po),Uo=Fo(Io),qo=Fo(_o),Wo=Fo(Bo),zo=Fo(Oo),Go=Fo(Lo),Ho=Fo(jo),Ko=Fo(No),Jo=Fo(Ro),Qo=Fo(Mo),Xo=Fo(Vo);function Yo(e,t){return e.id?t.getTokenAfter(e.id,Oo):t.getFirstToken(e,Oo)}function Zo(e,t){const r=e.parent;let n=null,s=null;if("ArrowFunctionExpression"===e.type){const r=t.getTokenBefore(e.body,Po);n=r.loc.start,s=r.loc.end}else"Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?(n=r.loc.start,s=Yo(e,t).loc.start):(n=e.loc.start,s=Yo(e,t).loc.start);return{start:{...n},end:{...s}}}const ei="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},ti=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),ri=new Set([Array.isArray,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,...Object.getOwnPropertyNames(Math).map((e=>Math[e])).filter((e=>"function"==typeof e)),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,String,String.fromCharCode,String.fromCodePoint,String.raw,Symbol.for,Symbol.keyFor,unescape].filter((e=>"function"==typeof e))),ni=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function si(e,t){const r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}function oi(e,t){const r=[];for(let n=0;n<e.length;++n){const s=e[n];if(null==s)r.length=n+1;else if("SpreadElement"===s.type){const e=ai(s.argument,t);if(null==e)return null;r.push(...e.value)}else{const e=ai(s,t);if(null==e)return null;r.push(e.value)}}return r}const ii=Object.freeze({ArrayExpression(e,t){const r=oi(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?ai(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;const r=ai(e.left,t),n=ai(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:Math.pow(r.value,n.value)};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){const r=e.callee,n=oi(e.arguments,t);if(null!=n)if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;const s=ai(r.object,t);if(null!=s){if(null==s.value&&(s.optional||e.optional))return{value:void 0,optional:!0};const o=ci(r,t);if(null!=o){const e=s.value,t=o.value;if(ri.has(e[t]))return{value:e[t](...n)};if(ni.has(e[t]))return{value:n[0]}}}}else{const s=ai(r,t);if(null!=s){if(null==s.value&&e.optional)return{value:void 0,optional:!0};const t=s.value;if(ri.has(t))return{value:t(...n)};if(ni.has(t))return{value:n[0]}}}return null},ConditionalExpression(e,t){const r=ai(e.test,t);return null!=r?r.value?ai(e.consequent,t):ai(e.alternate,t):null},ExpressionStatement:(e,t)=>ai(e.expression,t),Identifier(e,t){if(null!=t){const r=Do(t,e);if(null!=r&&0===r.defs.length&&ti.has(r.name)&&r.name in ei)return{value:ei[r.name]};if(null!=r&&1===r.defs.length){const e=r.defs[0];if(e.parent&&"const"===e.parent.kind&&"Identifier"===e.node.id.type)return ai(e.node.init,t)}}return null},Literal:e=>null==e.regex&&null==e.bigint||null!=e.value?{value:e.value}:null,LogicalExpression(e,t){const r=ai(e.left,t);if(null!=r){if("||"===e.operator&&!0===Boolean(r.value)||"&&"===e.operator&&!1===Boolean(r.value)||"??"===e.operator&&null!=r.value)return r;const n=ai(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;const r=ai(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};const n=ci(e,t);if(null!=n&&!si(r.value,n.value))return{value:r.value[n.value]}}return null},ChainExpression(e,t){const r=ai(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){const r=ai(e.callee,t),n=oi(e.arguments,t);if(null!=r&&null!=n){const e=r.value;if(ri.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){const r={};for(const n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;const e=ci(n,t),s=ai(n.value,t);if(null==e||null==s)return null;r[e.value]=s.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;{const e=ai(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}}return{value:r}},SequenceExpression:(e,t)=>ai(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){const r=ai(e.tag,t),n=oi(e.quasi.expressions,t);if(null!=r&&null!=n){const t=r.value,s=e.quasi.quasis.map((e=>e.value.cooked));if(s.raw=e.quasi.quasis.map((e=>e.value.raw)),t===String.raw)return{value:t(s,...n)}}return null},TemplateLiteral(e,t){const r=oi(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n<r.length;++n)t+=r[n],t+=e.quasis[n+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if("delete"===e.operator)return null;if("void"===e.operator)return{value:void 0};const r=ai(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function ai(e,t){return null!=e&&Object.hasOwnProperty.call(ii,e.type)?ii[e.type](e,t):null}function ci(e,t){const r="Property"===e.type?e.key:e.property;return e.computed?ai(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function ui(e,t=null){try{return ai(e,t)}catch(e){return null}}function li(e,t=null){if(e&&"Literal"===e.type&&null===e.value){if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}const r=ui(e,t);return r&&String(r.value)}function pi(e,t){switch(e.type){case"MemberExpression":return e.computed?li(e.property,t):"PrivateIdentifier"===e.property.type?null:e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":return e.computed?li(e.key,t):"Literal"===e.key.type?String(e.key.value):"PrivateIdentifier"===e.key.type?null:e.key.name}return null}function di(e,t){const r=e.parent,n=[],s="Property"===r.type&&r.value===e,o="MethodDefinition"===r.type&&r.value===e,i="PropertyDefinition"===r.type&&r.value===e;if((o||i)&&(r.static&&n.push("static"),"PrivateIdentifier"===r.key.type&&n.push("private")),e.async&&n.push("async"),e.generator&&n.push("generator"),s||o){if("constructor"===r.kind)return"constructor";"get"===r.kind?n.push("getter"):"set"===r.kind?n.push("setter"):n.push("method")}else i?n.push("method"):("ArrowFunctionExpression"===e.type&&n.push("arrow"),n.push("function"));if(s||o||i)if("PrivateIdentifier"===r.key.type)n.push("#"+r.key.name);else{const e=pi(r);if(e)n.push(`'${e}'`);else if(t){const e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):"AssignmentExpression"!==r.type&&"AssignmentPattern"!==r.type||!r.left||"Identifier"!==r.left.type||n.push(`'${r.left.name}'`);return n.join(" ")}const fi=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),hi=Object.freeze(new Set(["-","+","!","~"]));function mi(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const gi=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){const{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){const{type:n}=e;for(const s of r[n]||ko.getKeys(e)){const n=e[s];if(Array.isArray(n)){for(const e of n)if(mi(e)&&this.$visit(e,t,r))return!0}else if(mi(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!(!t.considerImplicitTypeConversion||!fi.has(e.operator)||"Literal"===e.left.type&&"Literal"===e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||(!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.property.type)||this.$visitChildren(e,t,r))},MethodDefinition(e,t,r){return!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.key.type)||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.key.type)||this.$visitChildren(e,t,r)},PropertyDefinition(e,t,r){return!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.key.type)||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return"delete"===e.operator||(!(!t.considerImplicitTypeConversion||!hi.has(e.operator)||"Literal"===e.argument.type)||this.$visitChildren(e,t,r))},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function yi(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return gi.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||ko.KEYS)}function xi(e,t){const r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":return 1===r.arguments.length&&r.arguments[0]===e?t.getTokenAfter(r.callee,Oo):null;case"DoWhileStatement":return r.test===e?t.getTokenAfter(r.body,Oo):null;case"IfStatement":case"WhileStatement":return r.test===e?t.getFirstToken(r,1):null;case"ImportExpression":return r.source===e?t.getFirstToken(r,1):null;case"SwitchStatement":return r.discriminant===e?t.getFirstToken(r,1):null;case"WithStatement":return r.object===e?t.getFirstToken(r,1):null;default:return null}}function bi(e,t,r){let n,s,o,i,a;if("number"==typeof e){if(n=0|e,s=t,o=r,!(n>=1))throw new TypeError("'times' should be a positive integer.")}else n=1,s=e,o=t;if(null==s||"CatchClause"===s.parent.type&&s.parent.param===s)return!1;i=a=s;do{i=o.getTokenBefore(i),a=o.getTokenAfter(a)}while(null!=i&&null!=a&&Oo(i)&&Lo(a)&&i!==xi(s,o)&&--n>0);return 0===n}const vi=/\$(?:[$&`']|[1-9][0-9]?)/gu,Ei=new WeakMap;function Ci(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}class Si{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");Ei.set(this,{pattern:new RegExp(e.source,e.flags),escaped:Boolean(t)})}*execAll(e){const{pattern:t,escaped:r}=Ei.get(this);let n=null,s=0;for(t.lastIndex=0;null!=(n=t.exec(e));)!r&&Ci(e,n.index)||(s=t.lastIndex,yield n,t.lastIndex=s)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){const n=[];let s=0;for(const o of e.execAll(t))n.push(t.slice(s,o.index)),n.push(String(r(...o,o.index,o.input))),s=o.index+o[0].length;return n.push(t.slice(s)),n.join("")}(this,String(e),t):function(e,t,r){const n=[];let s=0,o=null;function i(e){switch(e){case"$$":return"$";case"$&":return o[0];case"$`":return t.slice(0,o.index);case"$'":return t.slice(o.index+o[0].length);default:{const t=e.slice(1);return t in o?o[t]:e}}}for(o of e.execAll(t))n.push(t.slice(s,o.index)),n.push(r.replace(vi,i)),s=o.index+o[0].length;return n.push(t.slice(s)),n.join("")}(this,String(e),String(t))}}const ki=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,Ai=Function.call.bind(Object.hasOwnProperty),Di=Symbol("read"),wi=Symbol("call"),Fi=Symbol("construct"),Ti=Symbol("esm"),Pi={require:{[wi]:!0}};function Ii(e){return null==e||0!==e.defs.length||e.references.some((e=>e.isWrite()))}function _i(e){const t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;case"ChainExpression":return!0;default:return!1}}class Bi{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(const t of Object.keys(e)){const r=e[t],n=[t],s=this.globalScope.set.get(t);Ii(s)||(yield*this._iterateVariableReferences(s,n,r,!0))}for(const t of this.globalObjectNames){const r=[],n=this.globalScope.set.get(t);Ii(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(const{node:t}of this.iterateGlobalReferences(Pi)){const r=li(t.arguments[0]);if(null==r||!Ai(e,r))continue;const n=e[r],s=[r];n[Di]&&(yield{node:t,path:s,type:Di,info:n[Di]}),yield*this._iteratePropertyReferences(t,s,n)}}*iterateEsmReferences(e){const t=this.globalScope.block;for(const r of t.body){if(!ki.test(r.type)||null==r.source)continue;const t=r.source.value;if(!Ai(e,t))continue;const n=e[t],s=[t];if(n[Di]&&(yield{node:r,path:s,type:Di,info:n[Di]}),"ExportAllDeclaration"===r.type)for(const e of Object.keys(n)){const t=n[e];t[Di]&&(yield{node:r,path:s.concat(e),type:Di,info:t[Di]})}else for(const e of r.specifiers){const t=Ai(n,Ti),r=this._iterateImportReferences(e,s,t?n:"legacy"===this.mode?{default:n,...n}:{default:n});if(t)yield*r;else for(const e of r)e.path=e.path.filter(Oi),(e.path.length>=2||e.type!==Di)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(const s of e.references){if(!s.isRead())continue;const e=s.identifier;n&&r[Di]&&(yield{node:e,path:t,type:Di,info:r[Di]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;_i(n);)n=n.parent;const s=n.parent;if("MemberExpression"!==s.type)"CallExpression"!==s.type?"NewExpression"!==s.type?"AssignmentExpression"!==s.type?"AssignmentPattern"!==s.type?"VariableDeclarator"===s.type&&s.init===n&&(yield*this._iterateLhsReferences(s.id,t,r)):s.right===n&&(yield*this._iterateLhsReferences(s.left,t,r)):s.right===n&&(yield*this._iterateLhsReferences(s.left,t,r),yield*this._iteratePropertyReferences(s,t,r)):s.callee===n&&r[Fi]&&(yield{node:s,path:t,type:Fi,info:r[Fi]}):s.callee===n&&r[wi]&&(yield{node:s,path:t,type:wi,info:r[wi]});else if(s.object===n){const e=pi(s);if(null==e||!Ai(r,e))return;t=t.concat(e);const n=r[e];n[Di]&&(yield{node:s,path:t,type:Di,info:n[Di]}),yield*this._iteratePropertyReferences(s,t,n)}}*_iterateLhsReferences(e,t,r){if("Identifier"!==e.type)if("ObjectPattern"!==e.type)"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r));else for(const n of e.properties){const e=pi(n);if(null==e||!Ai(r,e))continue;const s=t.concat(e),o=r[e];o[Di]&&(yield{node:n,path:s,type:Di,info:o[Di]}),yield*this._iterateLhsReferences(n.value,s,o)}else{const n=Do(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1))}}*_iterateImportReferences(e,t,r){const n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){const s="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!Ai(r,s))return;t=t.concat(s);const o=r[s];return o[Di]&&(yield{node:e,path:t,type:Di,info:o[Di]}),void(yield*this._iterateVariableReferences(Do(this.globalScope,e.local),t,o,!1))}if("ImportNamespaceSpecifier"!==n){if("ExportSpecifier"===n){const n=e.local.name;if(!Ai(r,n))return;t=t.concat(n);const s=r[n];s[Di]&&(yield{node:e,path:t,type:Di,info:s[Di]})}}else yield*this._iterateVariableReferences(Do(this.globalScope,e.local),t,r,!1)}}function Oi(e,t){return!(1===t&&"default"===e)}Bi.READ=Di,Bi.CALL=wi,Bi.CONSTRUCT=Fi,Bi.ESM=Ti;var Li={CALL:wi,CONSTRUCT:Fi,ESM:Ti,findVariable:Do,getFunctionHeadLocation:Zo,getFunctionNameWithKind:di,getInnermostScope:Ao,getPropertyName:pi,getStaticValue:ui,getStringIfConstant:li,hasSideEffect:yi,isArrowToken:Po,isClosingBraceToken:Mo,isClosingBracketToken:No,isClosingParenToken:Lo,isColonToken:Bo,isCommaToken:Io,isCommentToken:Vo,isNotArrowToken:$o,isNotClosingBraceToken:Qo,isNotClosingBracketToken:Ko,isNotClosingParenToken:Go,isNotColonToken:Wo,isNotCommaToken:Uo,isNotCommentToken:Xo,isNotOpeningBraceToken:Jo,isNotOpeningBracketToken:Ho,isNotOpeningParenToken:zo,isNotSemicolonToken:qo,isOpeningBraceToken:Ro,isOpeningBracketToken:jo,isOpeningParenToken:Oo,isParenthesized:bi,isSemicolonToken:_o,PatternMatcher:Si,READ:Di,ReferenceTracker:Bi};yo.CALL=wi,yo.CONSTRUCT=Fi,yo.ESM=Ti,yo.PatternMatcher=Si,yo.READ=Di,yo.ReferenceTracker=Bi,yo.default=Li,yo.findVariable=Do,yo.getFunctionHeadLocation=Zo,yo.getFunctionNameWithKind=di,yo.getInnermostScope=Ao,yo.getPropertyName=pi,yo.getStaticValue=ui,yo.getStringIfConstant=li,yo.hasSideEffect=yi,yo.isArrowToken=Po,yo.isClosingBraceToken=Mo,yo.isClosingBracketToken=No,yo.isClosingParenToken=Lo,yo.isColonToken=Bo,yo.isCommaToken=Io,yo.isCommentToken=Vo,yo.isNotArrowToken=$o,yo.isNotClosingBraceToken=Qo,yo.isNotClosingBracketToken=Ko,yo.isNotClosingParenToken=Go,yo.isNotColonToken=Wo,yo.isNotCommaToken=Uo,yo.isNotCommentToken=Xo,yo.isNotOpeningBraceToken=Jo,yo.isNotOpeningBracketToken=Ho,yo.isNotOpeningParenToken=zo,yo.isNotSemicolonToken=qo,yo.isOpeningBraceToken=Ro,yo.isOpeningBracketToken=jo,yo.isOpeningParenToken=Oo,yo.isParenthesized=bi,yo.isSemicolonToken=_o;var ji={},Ni=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){const e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}},Ri={};Ri.search=function(e,t){const r=e.findIndex((e=>t<=e.range[0]));return-1===r?e.length:r},Ri.getFirstIndex=function(e,t,r){if(r in t)return t[r];if(r-1 in t){const n=t[r-1],s=n>=0&&n<e.length?e[n]:null;return s&&s.range[0]>=r?n:n+1}return 0},Ri.getLastIndex=function(e,t,r){if(r in t)return t[r]-1;if(r-1 in t){const n=t[r-1],s=n>=0&&n<e.length?e[n]:null;return s&&s.range[1]>r?n-1:n}return e.length-1};const Mi=Ni,Vi=Ri;const $i=Ni,Ui=Ri;const qi=Ni;var Wi=class extends qi{constructor(e){super(),this.cursor=e}moveNext(){const e=this.cursor.moveNext();return this.current=this.cursor.current,e}};const zi=Wi;const Gi=Ni,Hi=Ri;const Ki=Ni,Ji=Ri;var Qi=class extends Ki{constructor(e,t,r,n,s){super(),this.tokens=e,this.index=Ji.getFirstIndex(e,r,n),this.indexEnd=Ji.getLastIndex(e,r,s)}moveNext(){return this.index<=this.indexEnd&&(this.current=this.tokens[this.index],this.index+=1,!0)}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}};const Xi=Wi;const Yi=Wi;const Zi=class extends Mi{constructor(e,t,r,n,s){super(),this.tokens=e,this.comments=t,this.tokenIndex=Vi.getLastIndex(e,r,s),this.commentIndex=Vi.search(t,s)-1,this.border=n}moveNext(){const e=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,t=this.commentIndex>=0?this.comments[this.commentIndex]:null;return e&&(!t||e.range[1]>t.range[1])?(this.current=e,this.tokenIndex-=1):t?(this.current=t,this.commentIndex-=1):this.current=null,Boolean(this.current)&&(-1===this.border||this.current.range[0]>=this.border)}},ea=class extends $i{constructor(e,t,r,n,s){super(),this.tokens=e,this.index=Ui.getLastIndex(e,r,s),this.indexEnd=Ui.getFirstIndex(e,r,n)}moveNext(){return this.index>=this.indexEnd&&(this.current=this.tokens[this.index],this.index-=1,!0)}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}},ta=class extends zi{constructor(e,t){super(e),this.predicate=t}moveNext(){const e=this.predicate;for(;super.moveNext();)if(e(this.current))return!0;return!1}},ra=class extends Gi{constructor(e,t,r,n,s){super(),this.tokens=e,this.comments=t,this.tokenIndex=Hi.getFirstIndex(e,r,n),this.commentIndex=Hi.search(t,n),this.border=s}moveNext(){const e=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,t=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return e&&(!t||e.range[0]<t.range[0])?(this.current=e,this.tokenIndex+=1):t?(this.current=t,this.commentIndex+=1):this.current=null,Boolean(this.current)&&(-1===this.border||this.current.range[1]<=this.border)}},na=Qi,sa=class extends Xi{constructor(e,t){super(e),this.count=t}moveNext(){return this.count>0&&(this.count-=1,super.moveNext())}},oa=class extends Yi{constructor(e,t){super(e),this.count=t}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}};class ia{constructor(e,t){this.TokenCursor=e,this.TokenCommentCursor=t}createBaseCursor(e,t,r,n,s,o){return new(o?this.TokenCommentCursor:this.TokenCursor)(e,t,r,n,s)}createCursor(e,t,r,n,s,o,i,a,c){let u=this.createBaseCursor(e,t,r,n,s,o);return i&&(u=new ta(u,i)),a>=1&&(u=new oa(u,a)),c>=0&&(u=new sa(u,c)),u}}ji.forward=new ia(na,ra),ji.backward=new ia(ea,Zi);const aa=Qi;const ca=he,{isCommentToken:ua}=yo,la=ji,pa=Qi,da=class extends aa{constructor(e,t,r,n,s,o,i){super(e,t,r,n,s),this.index=Math.max(0,this.index-o),this.indexEnd=Math.min(e.length-1,this.indexEnd+i)}},fa=Ri,ha=Symbol("tokens"),ma=Symbol("comments"),ga=Symbol("indexMap");function ya(e,t,r,n,s,o,i){let a=!1,c=0,u=null;return"number"==typeof i?c=0|i:"function"==typeof i?u=i:i&&(a=!!i.includeComments,c=0|i.skip,u=i.filter||null),ca(c>=0,"options.skip should be zero or a positive integer."),ca(!u||"function"==typeof u,"options.filter should be a function."),e.createCursor(t,r,n,s,o,a,u,c,-1)}function xa(e,t,r,n,s,o,i){let a=!1,c=0,u=!1,l=null;return"number"==typeof i?(c=0|i,u=!0):"function"==typeof i?l=i:i&&(a=!!i.includeComments,c=0|i.count,u="number"==typeof i.count,l=i.filter||null),ca(c>=0,"options.count should be zero or a positive integer."),ca(!l||"function"==typeof l,"options.filter should be a function."),e.createCursor(t,r,n,s,o,a,l,0,u?c:-1)}function ba(e,t,r,n,s,o,i){return void 0===o&&void 0===i?new pa(e,t,r,n,s):"number"==typeof o||void 0===o?new da(e,t,r,n,s,0|o,0|i):xa(la.forward,e,t,r,n,s,o)}function va(e){const t=[];let r=e.getOneToken();for(;r&&ua(r);)t.push(r),r=e.getOneToken();return t}const{isCommentToken:Ea}=yo,Ca=class{constructor(e,t){this[ha]=e,this[ma]=t,this[ga]=function(e,t){const r=Object.create(null);let n=0,s=0,o=0,i=null;for(;n<e.length||s<t.length;){for(o=s<t.length?t[s].range[0]:Number.MAX_SAFE_INTEGER;n<e.length&&(i=e[n].range)[0]<o;)r[i[0]]=n,r[i[1]-1]=n,n+=1;for(o=n<e.length?e[n].range[0]:Number.MAX_SAFE_INTEGER;s<t.length&&(i=t[s].range)[0]<o;)r[i[0]]=n,r[i[1]-1]=n,s+=1}return r}(e,t)}getTokenByRangeStart(e,t){const r=t&&t.includeComments,n=la.forward.createBaseCursor(this[ha],this[ma],this[ga],e,-1,r).getOneToken();return n&&n.range[0]===e?n:null}getFirstToken(e,t){return ya(la.forward,this[ha],this[ma],this[ga],e.range[0],e.range[1],t).getOneToken()}getLastToken(e,t){return ya(la.backward,this[ha],this[ma],this[ga],e.range[0],e.range[1],t).getOneToken()}getTokenBefore(e,t){return ya(la.backward,this[ha],this[ma],this[ga],-1,e.range[0],t).getOneToken()}getTokenAfter(e,t){return ya(la.forward,this[ha],this[ma],this[ga],e.range[1],-1,t).getOneToken()}getFirstTokenBetween(e,t,r){return ya(la.forward,this[ha],this[ma],this[ga],e.range[1],t.range[0],r).getOneToken()}getLastTokenBetween(e,t,r){return ya(la.backward,this[ha],this[ma],this[ga],e.range[1],t.range[0],r).getOneToken()}getTokenOrCommentBefore(e,t){return this.getTokenBefore(e,{includeComments:!0,skip:t})}getTokenOrCommentAfter(e,t){return this.getTokenAfter(e,{includeComments:!0,skip:t})}getFirstTokens(e,t){return xa(la.forward,this[ha],this[ma],this[ga],e.range[0],e.range[1],t).getAllTokens()}getLastTokens(e,t){return xa(la.backward,this[ha],this[ma],this[ga],e.range[0],e.range[1],t).getAllTokens().reverse()}getTokensBefore(e,t){return xa(la.backward,this[ha],this[ma],this[ga],-1,e.range[0],t).getAllTokens().reverse()}getTokensAfter(e,t){return xa(la.forward,this[ha],this[ma],this[ga],e.range[1],-1,t).getAllTokens()}getFirstTokensBetween(e,t,r){return xa(la.forward,this[ha],this[ma],this[ga],e.range[1],t.range[0],r).getAllTokens()}getLastTokensBetween(e,t,r){return xa(la.backward,this[ha],this[ma],this[ga],e.range[1],t.range[0],r).getAllTokens().reverse()}getTokens(e,t,r){return ba(this[ha],this[ma],this[ga],e.range[0],e.range[1],t,r).getAllTokens()}getTokensBetween(e,t,r){return ba(this[ha],this[ma],this[ga],e.range[1],t.range[0],r,r).getAllTokens()}commentsExistBetween(e,t){const r=fa.search(this[ma],e.range[1]);return r<this[ma].length&&this[ma][r].range[1]<=t.range[0]}getCommentsBefore(e){return va(xa(la.backward,this[ha],this[ma],this[ga],-1,e.range[0],{includeComments:!0})).reverse()}getCommentsAfter(e){return va(xa(la.forward,this[ha],this[ma],this[ga],e.range[1],-1,{includeComments:!0}))}getCommentsInside(e){return this.getTokens(e,{includeComments:!0,filter:ua})}},Sa=Xt,ka=go;function Aa(e,t,r,n){if(function(e,t){return e.range[0]<=t.range[0]&&e.range[1]>=t.range[0]||t.range[0]<=e.range[0]&&t.range[1]>=e.range[0]}(t,r))return!1;const[s,o]=t.range[1]<=r.range[0]?[t,r]:[r,t],i=e.getLastToken(s)||s,a=e.getFirstToken(o)||o;let c=i;for(;c!==a;){const t=e.getTokenAfter(c,{includeComments:!0});if(c.range[1]!==t.range[0]||n&&t!==a&&"JSXText"===t.type&&/\s/u.test(t.value))return!0;c=t}return!1}var Da={SourceCode:class extends Ca{constructor(e,t){let r,n,s,o,i;"string"==typeof e?(r=e,n=t):"object"==typeof e&&null!==e&&(r=e.text,n=e.ast,s=e.parserServices,o=e.scopeManager,i=e.visitorKeys),function(e){if(!e.tokens)throw new Error("AST is missing the tokens array.");if(!e.comments)throw new Error("AST is missing the comments array.");if(!e.loc)throw new Error("AST is missing location information.");if(!e.range)throw new Error("AST is missing range information")}(n),super(n.tokens,n.comments),this.hasBOM=65279===r.charCodeAt(0),this.text=this.hasBOM?r.slice(1):r,this.ast=n,this.parserServices=s||{},this.scopeManager=o||null,this.visitorKeys=i||ka.DEFAULT_VISITOR_KEYS;const a=this.text.match(Sa.shebangPattern);a&&n.comments.length&&n.comments[0].value===a[1]&&(n.comments[0].type="Shebang"),this.tokensAndComments=function(e,t){const r=[];let n=0,s=0;for(;n<e.length||s<t.length;)s>=t.length||n<e.length&&e[n].range[0]<t[s].range[0]?r.push(e[n++]):r.push(t[s++]);return r}(n.tokens,n.comments),this.lines=[],this.lineStartIndices=[0];const c=Sa.createGlobalLinebreakMatcher();let u;for(;u=c.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices[this.lineStartIndices.length-1],u.index)),this.lineStartIndices.push(u.index+u[0].length);this.lines.push(this.text.slice(this.lineStartIndices[this.lineStartIndices.length-1])),this._commentCache=new WeakMap,Object.freeze(this),Object.freeze(this.lines)}static splitLines(e){return e.split(Sa.createGlobalLinebreakMatcher())}getText(e,t,r){return e?this.text.slice(Math.max(e.range[0]-(t||0),0),e.range[1]+(r||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getComments(e){if(this._commentCache.has(e))return this._commentCache.get(e);const t={leading:[],trailing:[]};if("Program"===e.type)0===e.body.length&&(t.leading=e.comments);else{(("BlockStatement"===e.type||"ClassBody"===e.type)&&0===e.body.length||"ObjectExpression"===e.type&&0===e.properties.length||"ArrayExpression"===e.type&&0===e.elements.length||"SwitchStatement"===e.type&&0===e.cases.length)&&(t.trailing=this.getTokens(e,{includeComments:!0,filter:Ea}));let r=this.getTokenBefore(e,{includeComments:!0});for(;r&&Ea(r)&&!(e.parent&&"Program"!==e.parent.type&&r.start<e.parent.start);)t.leading.push(r),r=this.getTokenBefore(r,{includeComments:!0});for(t.leading.reverse(),r=this.getTokenAfter(e,{includeComments:!0});r&&Ea(r)&&!(e.parent&&"Program"!==e.parent.type&&r.end>e.parent.end);)t.trailing.push(r),r=this.getTokenAfter(r,{includeComments:!0})}return this._commentCache.set(e,t),t}getJSDocComment(e){const t=e=>{const t=this.getTokenBefore(e,{includeComments:!0});return t&&Ea(t)&&"Block"===t.type&&"*"===t.value.charAt(0)&&e.loc.start.line-t.loc.end.line<=1?t:null};let r=e.parent;switch(e.type){case"ClassDeclaration":case"FunctionDeclaration":return t("ExportDefaultDeclaration"===(n=r).type||"ExportNamedDeclaration"===n.type||"ExportAllDeclaration"===n.type||"ExportSpecifier"===n.type?r:e);case"ClassExpression":return t(r.parent);case"ArrowFunctionExpression":case"FunctionExpression":if("CallExpression"!==r.type&&"NewExpression"!==r.type){for(;!this.getCommentsBefore(r).length&&!/Function/u.test(r.type)&&"MethodDefinition"!==r.type&&"Property"!==r.type&&(r=r.parent,r););if(r&&"FunctionDeclaration"!==r.type&&"Program"!==r.type)return t(r)}return t(e);default:return null}var n}getNodeByRangeIndex(e){let t=null;return ka.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(r){r.range[0]<=e&&e<r.range[1]?t=r:this.skip()},leave(e){e===t&&this.break()}}),t}isSpaceBetween(e,t){return Aa(this,e,t,!1)}isSpaceBetweenTokens(e,t){return Aa(this,e,t,!0)}getLocFromIndex(e){if("number"!=typeof e)throw new TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw new RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);if(e===this.text.length)return{line:this.lines.length,column:this.lines[this.lines.length-1].length};const t=e>=this.lineStartIndices[this.lineStartIndices.length-1]?this.lineStartIndices.length:this.lineStartIndices.findIndex((t=>e<t));return{line:t,column:e-this.lineStartIndices[t-1]}}getIndexFromLoc(e){if("object"!=typeof e||"number"!=typeof e.line||"number"!=typeof e.column)throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(e.line<=0)throw new RangeError(`Line number out of range (line ${e.line} requested). Line numbers should be 1-based.`);if(e.line>this.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${e.line} requested, but only ${this.lineStartIndices.length} lines present).`);const t=this.lineStartIndices[e.line-1],r=e.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[e.line],n=t+e.column;if(e.line===this.lineStartIndices.length&&n>r||e.line<this.lineStartIndices.length&&n>=r)throw new RangeError(`Column number out of range (column ${e.column} requested, but the length of line ${e.line} is ${r-t}).`);return n}}};const wa=Ys.exports("eslint:code-path");function Fa(e){return e.id+(e.reachable?"":"!")}function Ta(e,t){const r=t?":"+t:"";switch(e.type){case"Identifier":return`${e.type}${r} (${e.name})`;case"Literal":return`${e.type}${r} (${e.value})`;default:return`${e.type}${r}`}}var Pa={enabled:wa.enabled,dump:wa,dumpState:wa.enabled?function(e,t,r){for(let n=0;n<t.currentSegments.length;++n){const s=t.currentSegments[n].internal;if(r){const t=s.nodes.length-1;t>=0&&s.nodes[t]===Ta(e,"enter")?s.nodes[t]=Ta(e,void 0):s.nodes.push(Ta(e,"exit"))}else s.nodes.push(Ta(e,"enter"))}wa([t.currentSegments.map(Fa).join(",")+")",`${e.type}${r?":exit":""}`].join(" "))}:wa,dumpDot:wa.enabled?function(e){let t='\ndigraph {\nnode[shape=box,style="rounded,filled",fillcolor=white];\ninitial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];\n';e.returnedSegments.length>0&&(t+='final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];\n'),e.thrownSegments.length>0&&(t+='thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize];\n');const r=Object.create(null),n=this.makeDotArrows(e,r);for(const e in r){const n=r[e];t+=e+"[",n.reachable?t+='label="':t+='style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\\n',n.internal.nodes.length>0?t+=n.internal.nodes.join("\\n"):t+="????",t+='"];\n'}t+=n+"\n",t+="}",wa("DOT",t)}:wa,makeDotArrows(e,t){const r=[[e.initialSegment,0]],n=t||Object.create(null);let s=e.initialSegment.id,o="initial->"+e.initialSegment.id;for(;r.length>0;){const e=r.pop(),t=e[0],i=e[1];if(n[t.id]&&0===i)continue;n[t.id]=t;const a=t.allNextSegments[i];a&&(s===t.id?o+="->"+a.id:o+=`;\n${t.id}->${a.id}`,s=a.id,r.unshift([t,1+i]),r.push([a,0]))}return e.returnedSegments.forEach((e=>{s===e.id?o+="->final":o+=`;\n${e.id}->final`,s=null})),e.thrownSegments.forEach((e=>{s===e.id?o+="->thrown":o+=`;\n${e.id}->thrown`,s=null})),o+";"}};const Ia=Pa;function _a(e){return e.reachable}class Ba{constructor(e,t,r){this.id=e,this.nextSegments=[],this.prevSegments=t.filter(_a),this.allNextSegments=[],this.allPrevSegments=t,this.reachable=r,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),Ia.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(e){return-1!==this.internal.loopedPrevSegments.indexOf(e)}static newRoot(e){return new Ba(e,[],!0)}static newNext(e,t){return new Ba(e,Ba.flattenUnusedSegments(t),t.some(_a))}static newUnreachable(e,t){const r=new Ba(e,Ba.flattenUnusedSegments(t),!1);return Ba.markUsed(r),r}static newDisconnected(e,t){return new Ba(e,[],t.some(_a))}static markUsed(e){if(e.internal.used)return;let t;if(e.internal.used=!0,e.reachable)for(t=0;t<e.allPrevSegments.length;++t){const r=e.allPrevSegments[t];r.allNextSegments.push(e),r.nextSegments.push(e)}else for(t=0;t<e.allPrevSegments.length;++t)e.allPrevSegments[t].allNextSegments.push(e)}static markPrevSegmentAsLooped(e,t){e.internal.loopedPrevSegments.push(t)}static flattenUnusedSegments(e){const t=Object.create(null),r=[];for(let n=0;n<e.length;++n){const s=e[n];if(!t[s.id])if(s.internal.used)t[s.id]=!0,r.push(s);else for(let e=0;e<s.allPrevSegments.length;++e){const n=s.allPrevSegments[e];t[n.id]||(t[n.id]=!0,r.push(n))}}return r}}var Oa=Ba;const La=he,ja=Oa;function Na(e){return e.reachable}function Ra(e,t,r,n){const s=e.segmentsList,o=t>=0?t:s.length+t,i=r>=0?r:s.length+r,a=[];for(let t=0;t<e.count;++t){const r=[];for(let e=o;e<=i;++e)r.push(s[e][t]);a.push(n(e.idGenerator.next(),r))}return a}function Ma(e,t){let r=t;for(;r.length>e.count;){const t=[];for(let n=0,s=r.length/2|0;n<s;++n)t.push(ja.newNext(e.idGenerator.next(),[r[n],r[n+s]]));r=t}return r}class Va{constructor(e,t,r){this.idGenerator=e,this.upper=t,this.count=r,this.segmentsList=[]}get head(){const e=this.segmentsList;return 0===e.length?[]:e[e.length-1]}get empty(){return 0===this.segmentsList.length}get reachable(){const e=this.head;return e.length>0&&e.some(Na)}makeNext(e,t){return Ra(this,e,t,ja.newNext)}makeUnreachable(e,t){return Ra(this,e,t,ja.newUnreachable)}makeDisconnected(e,t){return Ra(this,e,t,ja.newDisconnected)}add(e){La(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.push(Ma(this,e))}replaceHead(e){La(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.splice(-1,1,Ma(this,e))}addAll(e){La(e.count===this.count);const t=e.segmentsList;for(let e=0;e<t.length;++e)this.segmentsList.push(t[e])}clear(){this.segmentsList=[]}static newRoot(e){const t=new Va(e,null,1);return t.add([ja.newRoot(e.next())]),t}static newEmpty(e,t){return new Va(e.idGenerator,e,(t?2:1)*e.count)}}const $a=Oa,Ua=Va;function qa(e,t,r,n){for(let s=0;s<n.length;++s){const o=n[s];e.push(o),-1===t.indexOf(o)&&r.push(o)}}function Wa(e){let t=e.tryContext;for(;t;){if(t.hasFinalizer&&"finally"!==t.position)return t;t=t.upper}return e}function za(e){let t=e.tryContext;for(;t;){if("try"===t.position||t.hasFinalizer&&"catch"===t.position)return t;t=t.upper}return e}function Ga(e,t){e.splice(e.indexOf(t),1)}function Ha(e,t,r){const n=$a.flattenUnusedSegments(t),s=$a.flattenUnusedSegments(r),o=Math.min(n.length,s.length);for(let t=0;t<o;++t){const r=n[t],o=s[t];o.reachable&&r.nextSegments.push(o),r.reachable&&o.prevSegments.push(r),r.allNextSegments.push(o),o.allPrevSegments.push(r),o.allPrevSegments.length>=2&&$a.markPrevSegmentAsLooped(o,r),e.notifyLooped(r,o)}}function Ka(e,t,r){t.processed||(t.trueForkContext.add(r),t.falseForkContext.add(r),t.qqForkContext.add(r)),!0!==e.test&&e.brokenForkContext.addAll(t.falseForkContext),e.endOfTestSegments=t.trueForkContext.makeNext(0,-1)}var Ja=class{constructor(e,t){this.idGenerator=e,this.notifyLooped=t,this.forkContext=Ua.newRoot(e),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0];const r=this.finalSegments=[],n=this.returnedForkContext=[],s=this.thrownForkContext=[];n.add=qa.bind(null,n,s,r),s.add=qa.bind(null,s,n,r)}get headSegments(){return this.forkContext.head}get parentForkContext(){const e=this.forkContext;return e&&e.upper}pushForkContext(e){return this.forkContext=Ua.newEmpty(this.forkContext,e),this.forkContext}popForkContext(){const e=this.forkContext;return this.forkContext=e.upper,this.forkContext.replaceHead(e.makeNext(0,-1)),e}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(e,t){this.choiceContext={upper:this.choiceContext,kind:e,isForkingAsResult:t,trueForkContext:Ua.newEmpty(this.forkContext),falseForkContext:Ua.newEmpty(this.forkContext),qqForkContext:Ua.newEmpty(this.forkContext),processed:!1}}popChoiceContext(){const e=this.choiceContext;this.choiceContext=e.upper;const t=this.forkContext,r=t.head;switch(e.kind){case"&&":case"||":case"??":if(e.processed||(e.trueForkContext.add(r),e.falseForkContext.add(r),e.qqForkContext.add(r)),e.isForkingAsResult){const t=this.choiceContext;return t.trueForkContext.addAll(e.trueForkContext),t.falseForkContext.addAll(e.falseForkContext),t.qqForkContext.addAll(e.qqForkContext),t.processed=!0,e}break;case"test":e.processed?(e.falseForkContext.clear(),e.falseForkContext.add(r)):(e.trueForkContext.clear(),e.trueForkContext.add(r));break;case"loop":return e;default:throw new Error("unreachable")}const n=e.trueForkContext;return n.addAll(e.falseForkContext),t.replaceHead(n.makeNext(0,-1)),e}makeLogicalRight(){const e=this.choiceContext,t=this.forkContext;if(e.processed){let r;switch(e.kind){case"&&":r=e.trueForkContext;break;case"||":r=e.falseForkContext;break;case"??":r=e.qqForkContext;break;default:throw new Error("unreachable")}t.replaceHead(r.makeNext(0,-1)),r.clear(),e.processed=!1}else{switch(e.kind){case"&&":e.falseForkContext.add(t.head);break;case"||":e.trueForkContext.add(t.head);break;case"??":e.trueForkContext.add(t.head),e.falseForkContext.add(t.head);break;default:throw new Error("unreachable")}t.replaceHead(t.makeNext(-1,-1))}}makeIfConsequent(){const e=this.choiceContext,t=this.forkContext;e.processed||(e.trueForkContext.add(t.head),e.falseForkContext.add(t.head),e.qqForkContext.add(t.head)),e.processed=!1,t.replaceHead(e.trueForkContext.makeNext(0,-1))}makeIfAlternate(){const e=this.choiceContext,t=this.forkContext;e.trueForkContext.clear(),e.trueForkContext.add(t.head),e.processed=!0,t.replaceHead(e.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext={upper:this.chainContext,countChoiceContexts:0}}popChainContext(){const e=this.chainContext;this.chainContext=e.upper;for(let t=e.countChoiceContexts;t>0;--t)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.countChoiceContexts+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(e,t){this.switchContext={upper:this.switchContext,hasCase:e,defaultSegments:null,defaultBodySegments:null,foundDefault:!1,lastIsDefault:!1,countForks:0},this.pushBreakContext(!0,t)}popSwitchContext(){const e=this.switchContext;this.switchContext=e.upper;const t=this.forkContext,r=this.popBreakContext().brokenForkContext;if(0===e.countForks)return void(r.empty||(r.add(t.makeNext(-1,-1)),t.replaceHead(r.makeNext(0,-1))));const n=t.head;this.forkBypassPath();const s=t.head;r.add(n),e.lastIsDefault||(e.defaultBodySegments?(!function(e,t){for(let r=0;r<e.length;++r){const n=e[r],s=t[r];Ga(n.nextSegments,s),Ga(n.allNextSegments,s),Ga(s.prevSegments,n),Ga(s.allPrevSegments,n)}}(e.defaultSegments,e.defaultBodySegments),Ha(this,s,e.defaultBodySegments)):r.add(s));for(let t=0;t<e.countForks;++t)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(r.makeNext(0,-1))}makeSwitchCaseBody(e,t){const r=this.switchContext;if(!r.hasCase)return;const n=this.forkContext,s=this.pushForkContext();s.add(n.makeNext(0,-1)),t?(r.defaultSegments=n.head,e?r.foundDefault=!0:r.defaultBodySegments=s.head):!e&&r.foundDefault&&(r.foundDefault=!1,r.defaultBodySegments=s.head),r.lastIsDefault=t,r.countForks+=1}pushTryContext(e){this.tryContext={upper:this.tryContext,position:"try",hasFinalizer:e,returnedForkContext:e?Ua.newEmpty(this.forkContext):null,thrownForkContext:Ua.newEmpty(this.forkContext),lastOfTryIsReachable:!1,lastOfCatchIsReachable:!1}}popTryContext(){const e=this.tryContext;if(this.tryContext=e.upper,"catch"===e.position)return void this.popForkContext();const t=e.returnedForkContext,r=e.thrownForkContext;if(t.empty&&r.empty)return;const n=this.forkContext.head;this.forkContext=this.forkContext.upper;const s=n.slice(0,n.length/2|0),o=n.slice(n.length/2|0);t.empty||Wa(this).returnedForkContext.add(o),r.empty||za(this).thrownForkContext.add(o),this.forkContext.replaceHead(s),e.lastOfTryIsReachable||e.lastOfCatchIsReachable||this.forkContext.makeUnreachable()}makeCatchBlock(){const e=this.tryContext,t=this.forkContext,r=e.thrownForkContext;e.position="catch",e.thrownForkContext=Ua.newEmpty(t),e.lastOfTryIsReachable=t.reachable,r.add(t.head);const n=r.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(n)}makeFinallyBlock(){const e=this.tryContext;let t=this.forkContext;const r=e.returnedForkContext,n=e.thrownForkContext,s=t.head;if("catch"===e.position?(this.popForkContext(),t=this.forkContext,e.lastOfCatchIsReachable=t.reachable):e.lastOfTryIsReachable=t.reachable,e.position="finally",r.empty&&n.empty)return;const o=t.makeNext(-1,-1);for(let e=0;e<t.count;++e){const t=[s[e]];for(let n=0;n<r.segmentsList.length;++n)t.push(r.segmentsList[n][e]);for(let r=0;r<n.segmentsList.length;++r)t.push(n.segmentsList[r][e]);o.push($a.newNext(this.idGenerator.next(),t))}this.pushForkContext(!0),this.forkContext.add(o)}makeFirstThrowablePathInTryBlock(){const e=this.forkContext;if(!e.reachable)return;const t=za(this);t!==this&&"try"===t.position&&t.thrownForkContext.empty&&(t.thrownForkContext.add(e.head),e.replaceHead(e.makeNext(-1,-1)))}pushLoopContext(e,t){const r=this.forkContext,n=this.pushBreakContext(!0,t);switch(e){case"WhileStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:t,test:void 0,continueDestSegments:null,brokenForkContext:n.brokenForkContext};break;case"DoWhileStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:t,test:void 0,entrySegments:null,continueForkContext:Ua.newEmpty(r),brokenForkContext:n.brokenForkContext};break;case"ForStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:t,test:void 0,endOfInitSegments:null,testSegments:null,endOfTestSegments:null,updateSegments:null,endOfUpdateSegments:null,continueDestSegments:null,brokenForkContext:n.brokenForkContext};break;case"ForInStatement":case"ForOfStatement":this.loopContext={upper:this.loopContext,type:e,label:t,prevSegments:null,leftSegments:null,endOfLeftSegments:null,continueDestSegments:null,brokenForkContext:n.brokenForkContext};break;default:throw new Error(`unknown type: "${e}"`)}}popLoopContext(){const e=this.loopContext;this.loopContext=e.upper;const t=this.forkContext,r=this.popBreakContext().brokenForkContext;switch(e.type){case"WhileStatement":case"ForStatement":this.popChoiceContext(),Ha(this,t.head,e.continueDestSegments);break;case"DoWhileStatement":{const n=this.popChoiceContext();n.processed||(n.trueForkContext.add(t.head),n.falseForkContext.add(t.head)),!0!==e.test&&r.addAll(n.falseForkContext);const s=n.trueForkContext.segmentsList;for(let t=0;t<s.length;++t)Ha(this,s[t],e.entrySegments);break}case"ForInStatement":case"ForOfStatement":r.add(t.head),Ha(this,t.head,e.leftSegments);break;default:throw new Error("unreachable")}r.empty?t.replaceHead(t.makeUnreachable(-1,-1)):t.replaceHead(r.makeNext(0,-1))}makeWhileTest(e){const t=this.loopContext,r=this.forkContext,n=r.makeNext(0,-1);t.test=e,t.continueDestSegments=n,r.replaceHead(n)}makeWhileBody(){const e=this.loopContext,t=this.choiceContext,r=this.forkContext;t.processed||(t.trueForkContext.add(r.head),t.falseForkContext.add(r.head)),!0!==e.test&&e.brokenForkContext.addAll(t.falseForkContext),r.replaceHead(t.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){const e=this.loopContext,t=this.forkContext,r=t.makeNext(-1,-1);e.entrySegments=r,t.replaceHead(r)}makeDoWhileTest(e){const t=this.loopContext,r=this.forkContext;if(t.test=e,!t.continueForkContext.empty){t.continueForkContext.add(r.head);const e=t.continueForkContext.makeNext(0,-1);r.replaceHead(e)}}makeForTest(e){const t=this.loopContext,r=this.forkContext,n=r.head,s=r.makeNext(-1,-1);t.test=e,t.endOfInitSegments=n,t.continueDestSegments=t.testSegments=s,r.replaceHead(s)}makeForUpdate(){const e=this.loopContext,t=this.choiceContext,r=this.forkContext;e.testSegments?Ka(e,t,r.head):e.endOfInitSegments=r.head;const n=r.makeDisconnected(-1,-1);e.continueDestSegments=e.updateSegments=n,r.replaceHead(n)}makeForBody(){const e=this.loopContext,t=this.choiceContext,r=this.forkContext;e.updateSegments?(e.endOfUpdateSegments=r.head,e.testSegments&&Ha(this,e.endOfUpdateSegments,e.testSegments)):e.testSegments?Ka(e,t,r.head):e.endOfInitSegments=r.head;let n=e.endOfTestSegments;if(!n){const t=Ua.newEmpty(r);t.add(e.endOfInitSegments),e.endOfUpdateSegments&&t.add(e.endOfUpdateSegments),n=t.makeNext(0,-1)}e.continueDestSegments=e.continueDestSegments||n,r.replaceHead(n)}makeForInOfLeft(){const e=this.loopContext,t=this.forkContext,r=t.makeDisconnected(-1,-1);e.prevSegments=t.head,e.leftSegments=e.continueDestSegments=r,t.replaceHead(r)}makeForInOfRight(){const e=this.loopContext,t=this.forkContext,r=Ua.newEmpty(t);r.add(e.prevSegments);const n=r.makeNext(-1,-1);e.endOfLeftSegments=t.head,t.replaceHead(n)}makeForInOfBody(){const e=this.loopContext,t=this.forkContext,r=Ua.newEmpty(t);r.add(e.endOfLeftSegments);const n=r.makeNext(-1,-1);Ha(this,t.head,e.leftSegments),e.brokenForkContext.add(t.head),t.replaceHead(n)}pushBreakContext(e,t){return this.breakContext={upper:this.breakContext,breakable:e,label:t,brokenForkContext:Ua.newEmpty(this.forkContext)},this.breakContext}popBreakContext(){const e=this.breakContext,t=this.forkContext;if(this.breakContext=e.upper,!e.breakable){const r=e.brokenForkContext;r.empty||(r.add(t.head),t.replaceHead(r.makeNext(0,-1)))}return e}makeBreak(e){const t=this.forkContext;if(!t.reachable)return;const r=function(e,t){let r=e.breakContext;for(;r;){if(t?r.label===t:r.breakable)return r;r=r.upper}return null}(this,e);r&&r.brokenForkContext.add(t.head),t.replaceHead(t.makeUnreachable(-1,-1))}makeContinue(e){const t=this.forkContext;if(!t.reachable)return;const r=function(e,t){if(!t)return e.loopContext;let r=e.loopContext;for(;r;){if(r.label===t)return r;r=r.upper}return null}(this,e);r&&(r.continueDestSegments?(Ha(this,t.head,r.continueDestSegments),"ForInStatement"!==r.type&&"ForOfStatement"!==r.type||r.brokenForkContext.add(t.head)):r.continueForkContext.add(t.head)),t.replaceHead(t.makeUnreachable(-1,-1))}makeReturn(){const e=this.forkContext;e.reachable&&(Wa(this).returnedForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeThrow(){const e=this.forkContext;e.reachable&&(za(this).thrownForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeFinal(){const e=this.currentSegments;e.length>0&&e[0].reachable&&this.returnedForkContext.add(e)}};var Qa=class{constructor(e){this.prefix=String(e),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}};const Xa=Ja,Ya=Qa;var Za=class{constructor({id:e,origin:t,upper:r,onLooped:n}){this.id=e,this.origin=t,this.upper=r,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new Xa(new Ya(e+"_"),n)}),r&&r.childCodePaths.push(this)}static getState(e){return e.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}get currentSegments(){return this.internal.currentSegments}traverseSegments(e,t){let r,n;"function"==typeof e?(n=e,r={}):(r=e||{},n=t);const s=r.first||this.internal.initialSegment,o=r.last;let i=null,a=0,c=0,u=null;const l=Object.create(null),p=[[s,0]];let d=null,f=!1;const h={skip(){p.length<=1?f=!0:d=p[p.length-2][0]},break(){f=!0}};function m(e){return l[e.id]||u.isLoopedPrevSegment(e)}for(;p.length>0;){if(i=p[p.length-1],u=i[0],a=i[1],0===a){if(l[u.id]){p.pop();continue}if(u!==s&&u.prevSegments.length>0&&!u.prevSegments.every(m)){p.pop();continue}if(d&&-1!==u.prevSegments.indexOf(d)&&(d=null),l[u.id]=!0,!d&&(n.call(this,u,h),u===o&&h.skip(),f))break}c=u.nextSegments.length-1,a<c?(i[1]+=1,p.push([u.nextSegments[a],0])):a===c?(i[0]=u.nextSegments[a],i[1]=0):p.pop()}}};const ec=he,{breakableTypePattern:tc}=Xt,rc=Za,nc=Oa,sc=Qa,oc=Pa;function ic(e){return Boolean(e.test)}function ac(e){const t=e.parent;return t&&"PropertyDefinition"===t.type&&t.value===e}function cc(e){return"&&"===e||"||"===e||"??"===e}function uc(e){return"&&="===e||"||="===e||"??="===e}function lc(e){return"LabeledStatement"===e.parent.type?e.parent.label.name:null}function pc(e){const t=e.parent;switch(t.type){case"ConditionalExpression":case"IfStatement":case"WhileStatement":case"DoWhileStatement":case"ForStatement":return t.test===e;case"LogicalExpression":return cc(t.operator);case"AssignmentExpression":return uc(t.operator);default:return!1}}function dc(e){if("Literal"===e.type)return Boolean(e.value)}function fc(e,t){const r=e.codePath,n=rc.getState(r),s=n.currentSegments,o=n.headSegments,i=Math.max(s.length,o.length);let a,c,u;for(a=0;a<i;++a)c=s[a],u=o[a],c!==u&&c&&(oc.dump("onCodePathSegmentEnd "+c.id),c.reachable&&e.emitter.emit("onCodePathSegmentEnd",c,t));for(n.currentSegments=o,a=0;a<i;++a)c=s[a],u=o[a],c!==u&&u&&(oc.dump("onCodePathSegmentStart "+u.id),nc.markUsed(u),u.reachable&&e.emitter.emit("onCodePathSegmentStart",u,t))}function hc(e,t){function r(){let r=e.codePath;rc.getState(r).makeFinal(),function(e,t){const r=rc.getState(e.codePath),n=r.currentSegments;for(let r=0;r<n.length;++r){const s=n[r];oc.dump("onCodePathSegmentEnd "+s.id),s.reachable&&e.emitter.emit("onCodePathSegmentEnd",s,t)}r.currentSegments=[]}(e,t),oc.dump("onCodePathEnd "+r.id),e.emitter.emit("onCodePathEnd",r,t),oc.dumpDot(r),r=e.codePath=e.codePath.upper,r&&oc.dumpState(t,rc.getState(r),!0)}switch(t.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":r();break;case"CallExpression":!0===t.optional&&0===t.arguments.length&&rc.getState(e.codePath).makeOptionalRight()}ac(t)&&r()}var mc=class{constructor(e){this.original=e,this.emitter=e.emitter,this.codePath=null,this.idGenerator=new sc("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(e){this.currentNode=e,e.parent&&function(e,t){const r=e.codePath,n=rc.getState(r),s=t.parent;switch(s.type){case"CallExpression":!0===s.optional&&s.arguments.length>=1&&s.arguments[0]===t&&n.makeOptionalRight();break;case"MemberExpression":!0===s.optional&&s.property===t&&n.makeOptionalRight();break;case"LogicalExpression":s.right===t&&cc(s.operator)&&n.makeLogicalRight();break;case"AssignmentExpression":s.right===t&&uc(s.operator)&&n.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":s.consequent===t?n.makeIfConsequent():s.alternate===t&&n.makeIfAlternate();break;case"SwitchCase":s.consequent[0]===t&&n.makeSwitchCaseBody(!1,!s.test);break;case"TryStatement":s.handler===t?n.makeCatchBlock():s.finalizer===t&&n.makeFinallyBlock();break;case"WhileStatement":s.test===t?n.makeWhileTest(dc(t)):(ec(s.body===t),n.makeWhileBody());break;case"DoWhileStatement":s.body===t?n.makeDoWhileBody():(ec(s.test===t),n.makeDoWhileTest(dc(t)));break;case"ForStatement":s.test===t?n.makeForTest(dc(t)):s.update===t?n.makeForUpdate():s.body===t&&n.makeForBody();break;case"ForInStatement":case"ForOfStatement":s.left===t?n.makeForInOfLeft():s.right===t?n.makeForInOfRight():(ec(s.body===t),n.makeForInOfBody());break;case"AssignmentPattern":s.right===t&&(n.pushForkContext(),n.forkBypassPath(),n.forkPath())}}(this,e),function(e,t){let r=e.codePath,n=r&&rc.getState(r);const s=t.parent;function o(s){r&&(fc(e,t),oc.dumpState(t,n,!1)),r=e.codePath=new rc({id:e.idGenerator.next(),origin:s,upper:r,onLooped:e.onLooped}),n=rc.getState(r),oc.dump("onCodePathStart "+r.id),e.emitter.emit("onCodePathStart",r,t)}switch(ac(t)&&o("class-field-initializer"),t.type){case"Program":o("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":o("function");break;case"StaticBlock":o("class-static-block");break;case"ChainExpression":n.pushChainContext();break;case"CallExpression":case"MemberExpression":!0===t.optional&&n.makeOptionalNode();break;case"LogicalExpression":cc(t.operator)&&n.pushChoiceContext(t.operator,pc(t));break;case"AssignmentExpression":uc(t.operator)&&n.pushChoiceContext(t.operator.slice(0,-1),pc(t));break;case"ConditionalExpression":case"IfStatement":n.pushChoiceContext("test",!1);break;case"SwitchStatement":n.pushSwitchContext(t.cases.some(ic),lc(t));break;case"TryStatement":n.pushTryContext(Boolean(t.finalizer));break;case"SwitchCase":s.discriminant!==t&&s.cases[0]!==t&&n.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.pushLoopContext(t.type,lc(t));break;case"LabeledStatement":tc.test(t.body.type)||n.pushBreakContext(!1,t.label.name)}fc(e,t),oc.dumpState(t,n,!1)}(this,e),this.original.enterNode(e),this.currentNode=null}leaveNode(e){this.currentNode=e,function(e,t){const r=e.codePath,n=rc.getState(r);let s=!1;switch(t.type){case"ChainExpression":n.popChainContext();break;case"IfStatement":case"ConditionalExpression":n.popChoiceContext();break;case"LogicalExpression":cc(t.operator)&&n.popChoiceContext();break;case"AssignmentExpression":uc(t.operator)&&n.popChoiceContext();break;case"SwitchStatement":n.popSwitchContext();break;case"SwitchCase":0===t.consequent.length&&n.makeSwitchCaseBody(!0,!t.test),n.forkContext.reachable&&(s=!0);break;case"TryStatement":n.popTryContext();break;case"BreakStatement":fc(e,t),n.makeBreak(t.label&&t.label.name),s=!0;break;case"ContinueStatement":fc(e,t),n.makeContinue(t.label&&t.label.name),s=!0;break;case"ReturnStatement":fc(e,t),n.makeReturn(),s=!0;break;case"ThrowStatement":fc(e,t),n.makeThrow(),s=!0;break;case"Identifier":(function(e){const t=e.parent;switch(t.type){case"LabeledStatement":case"BreakStatement":case"ContinueStatement":case"ArrayPattern":case"RestElement":case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"CatchClause":return!1;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":return t.id!==e;case"Property":case"PropertyDefinition":case"MethodDefinition":return t.key!==e||t.computed||t.shorthand;case"AssignmentPattern":return t.key!==e;default:return!0}})(t)&&(n.makeFirstThrowablePathInTryBlock(),s=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":n.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.popLoopContext();break;case"AssignmentPattern":n.popForkContext();break;case"LabeledStatement":tc.test(t.body.type)||n.popBreakContext()}s||fc(e,t),oc.dumpState(t,n,!0)}(this,e),this.original.leaveNode(e),hc(this,e),this.currentNode=null}onLooped(e,t){e.reachable&&t.reachable&&(oc.dump(`onCodePathSegmentLoop ${e.id} -> ${t.id}`),this.emitter.emit("onCodePathSegmentLoop",e,t,this.currentNode))}},gc=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const yc=gc;function xc(e,t){return e.line-t.line||e.column-t.column}function bc(e,t){const{range:r}=t,n=e.filter((e=>e.ruleId)).map((e=>`'${e.ruleId}'`));return{description:n.length<=2?n.join(" or "):`${n.slice(0,n.length-1).join(", ")}, or ${n[n.length-1]}`,fix:{range:r,text:" "},position:e[0].unprocessedDirective}}function vc(e){return function(e){const t=new Map;for(const r of e){const{unprocessedDirective:{parentComment:e}}=r;t.has(e)?t.get(e).push(r):t.set(e,[r])}return[...t.values()]}(e).flatMap((e=>{const{parentComment:t}=e[0].unprocessedDirective,r=new Set(t.ruleIds);for(const t of e)r.delete(t.ruleId);return r.size?function(e,t){const r=t.range[0]+"//".length,n=/^\s*\S+\s+/u.exec(t.value)[0].length,s=t.value.slice(n).split(/\s-{2,}\s/u)[0].trimRight();return e.map((e=>{const{ruleId:t}=e,o=new RegExp(String.raw`(?:^|\s*,\s*)${yc(t)}(?:\s*,\s*|$)`,"u").exec(s),i=o[0],a=n+o.index,c=a+i.length,u=i.indexOf(","),l=i.lastIndexOf(",");let p,d;return u!==l?(p=a+u,d=a+l):(p=a,d=c),{description:`'${t}'`,fix:{range:[r+p,r+d],text:""},position:e.unprocessedDirective}}))}(e,t.commentToken):[bc(e,t.commentToken)]}))}function Ec(e){const t=[];let r=0,n=null;const s=new Map,o=new Set,i=new Set;for(const a of e.problems){for(;r<e.directives.length&&xc(e.directives[r],a)<=0;){const t=e.directives[r++];switch(t.type){case"disable":null===t.ruleId?(n=t,s.clear(),o.clear()):n?(o.delete(t.ruleId),s.set(t.ruleId,t)):s.set(t.ruleId,t);break;case"enable":null===t.ruleId?(n=null,s.clear()):n?(o.add(t.ruleId),s.delete(t.ruleId)):s.delete(t.ruleId)}}s.has(a.ruleId)?i.add(s.get(a.ruleId)):n&&!o.has(a.ruleId)?i.add(n):t.push(a)}return{problems:t,unusedDisableDirectives:vc(e.directives.filter((e=>"disable"===e.type&&!i.has(e)))).map((({description:t,fix:r,position:n})=>({ruleId:null,message:t?`Unused eslint-disable directive (no problems were reported from ${t}).`:"Unused eslint-disable directive (no problems were reported).",line:n.line,column:n.column,severity:"warn"===e.reportUnusedDisableDirectives?1:2,nodeType:null,...e.disableFixes?{}:{fix:r}})))}}var Cc,Sc={exports:{}},kc={exports:{}},Ac={}.toString;Cc=wc((function(e,t){return e.apply(null,t)}));var Dc={curry:function(e){return wc(e)},flip:wc((function(e,t,r){return e(r,t)})),fix:function(e){return function(t){return function(){return e(t(t)).apply(null,arguments)}}((function(t){return function(){return e(t(t)).apply(null,arguments)}}))},apply:Cc,over:wc((function(e,t,r,n){return e(t(r),t(n))})),memoize:function(e){var t;return t={},function(){var r,n,s,o,i,a;for(n=[],s=0,o=arguments.length;s<o;++s)n.push(arguments[s]);return r=n,i=function(){var e,t,n,s=[];for(e=0,n=(t=r).length;e<n;++e)a=t[e],s.push(a+Ac.call(a).slice(8,-1));return s}().join(""),t[i]=i in t?t[i]:e.apply(null,r)}}};function wc(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}var Fc,Tc,Pc,Ic,_c,Bc,Oc,Lc,jc,Nc,Rc,Mc,Vc,$c,Uc,qc,Wc,zc,Gc,Hc,Kc,Jc,Qc,Xc,Yc,Zc,eu,tu,ru,nu,su,ou,iu,au,cu,uu,lu,pu,du,fu,hu,mu,gu,yu,xu,bu,vu,Eu,Cu,Su,ku,Au,Du,wu,Fu,Tu,Pu,Iu,_u,Bu,Ou,Lu,ju,Nu,Ru,Mu,Vu,$u,Uu,qu,Wu={}.toString;Fc=Ku((function(e,t){var r,n;for(r=0,n=t.length;r<n;++r)e(t[r]);return t})),Tc=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)s=t[r],o.push(e(s));return o})),Pc=function(e){var t,r,n,s=[];for(t=0,r=e.length;t<r;++t)(n=e[t])&&s.push(n);return s},Ic=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)e(s=t[r])&&o.push(s);return o})),_c=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)e(s=t[r])||o.push(s);return o})),Bc=Ku((function(e,t){var r,n;return r=Vu(e,t),n=t.slice(),null!=r&&n.splice(r,1),n})),Oc=Ku((function(e,t){var r,n,s,o,i;for(r=[],n=[],s=0,o=t.length;s<o;++s)(e(i=t[s])?r:n).push(i);return[r,n]})),Lc=Ku((function(e,t){var r,n,s;for(r=0,n=t.length;r<n;++r)if(e(s=t[r]))return s})),jc=Nc=function(e){return e[0]},Rc=function(e){if(e.length)return e.slice(1)},Mc=function(e){return e[e.length-1]},Vc=function(e){if(e.length)return e.slice(0,-1)},$c=function(e){return!e.length},Uc=function(e){return e.concat().reverse()},qc=function(e){var t,r,n,s;for(t=[],r=0,n=e.length;r<n;++r)Ju(s=e[r],t)||t.push(s);return t},Wc=Ku((function(e,t){var r,n,s,o,i,a=[];for(r=[],n=0,s=t.length;n<s;++n)Ju(i=e(o=t[n]),r)||(r.push(i),a.push(o));return a})),zc=Gc=Ku((function(e,t,r){var n,s;for(n=0,s=r.length;n<s;++n)t=e(t,r[n]);return t})),Hc=Kc=Ku((function(e,t){return zc(e,t[0],t.slice(1))})),Jc=Ku((function(e,t,r){var n;for(n=r.length-1;n>=0;--n)t=e(r[n],t);return t})),Qc=Ku((function(e,t){return Jc(e,t[t.length-1],t.slice(0,-1))})),Xc=Ku((function(e,t){var r,n,s;for(r=[],n=t;null!=(s=e(n));)r.push(s[0]),n=s[1];return r})),Yc=function(e){return[].concat.apply([],e)},Zc=Ku((function(e,t){var r;return[].concat.apply([],function(){var n,s,o,i=[];for(n=0,o=(s=t).length;n<o;++n)r=s[n],i.push(e(r));return i}())})),eu=function(e){var t;return[].concat.apply([],function(){var r,n,s,o=[];for(r=0,s=(n=e).length;r<s;++r)t=n[r],"Array"===Wu.call(t).slice(8,-1)?o.push(eu(t)):o.push(t);return o}())},tu=function(e){var t,r,n,s,o,i,a,c,u;for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);t=r,o=[];e:for(n=0,i=e.length;n<i;++n){for(a=e[n],c=0,u=t.length;c<u;++c)if(Ju(a,t[c]))continue e;o.push(a)}return o},ru=function(e){var t,r,n,s,o,i,a,c,u;for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);t=r,o=[];e:for(n=0,i=e.length;n<i;++n){for(a=e[n],c=0,u=t.length;c<u;++c)if(!Ju(a,t[c]))continue e;o.push(a)}return o},nu=function(){var e,t,r,n,s,o,i,a,c,u;for(t=[],r=0,n=arguments.length;r<n;++r)t.push(arguments[r]);for(s=[],r=0,o=(e=t).length;r<o;++r)for(a=0,c=(i=e[r]).length;a<c;++a)Ju(u=i[a],s)||s.push(u);return s},su=Ku((function(e,t){var r,n,s,o;for(r={},n=0,s=t.length;n<s;++n)(o=e(t[n]))in r?r[o]+=1:r[o]=1;return r})),ou=Ku((function(e,t){var r,n,s,o,i;for(r={},n=0,s=t.length;n<s;++n)(i=e(o=t[n]))in r?r[i].push(o):r[i]=[o];return r})),iu=function(e){var t,r;for(t=0,r=e.length;t<r;++t)if(!e[t])return!1;return!0},au=function(e){var t,r;for(t=0,r=e.length;t<r;++t)if(e[t])return!0;return!1},cu=Ku((function(e,t){var r,n;for(r=0,n=t.length;r<n;++r)if(e(t[r]))return!0;return!1})),uu=Ku((function(e,t){var r,n;for(r=0,n=t.length;r<n;++r)if(!e(t[r]))return!1;return!0})),lu=function(e){return e.concat().sort((function(e,t){return e>t?1:e<t?-1:0}))},pu=Ku((function(e,t){return t.concat().sort(e)})),du=Ku((function(e,t){return t.concat().sort((function(t,r){return e(t)>e(r)?1:e(t)<e(r)?-1:0}))})),fu=function(e){var t,r,n;for(t=0,r=0,n=e.length;r<n;++r)t+=e[r];return t},hu=function(e){var t,r,n;for(t=1,r=0,n=e.length;r<n;++r)t*=e[r];return t},mu=gu=function(e){var t,r,n;for(t=0,r=0,n=e.length;r<n;++r)t+=e[r];return t/e.length},yu=function(e){var t,r,n,s,o;for(t=e[0],r=0,s=(n=e.slice(1)).length;r<s;++r)(o=n[r])>t&&(t=o);return t},xu=function(e){var t,r,n,s,o;for(t=e[0],r=0,s=(n=e.slice(1)).length;r<s;++r)(o=n[r])<t&&(t=o);return t},bu=Ku((function(e,t){var r,n,s,o,i;for(r=t[0],n=0,o=(s=t.slice(1)).length;n<o;++n)e(i=s[n])>e(r)&&(r=i);return r})),vu=Ku((function(e,t){var r,n,s,o,i;for(r=t[0],n=0,o=(s=t.slice(1)).length;n<o;++n)e(i=s[n])<e(r)&&(r=i);return r})),Eu=Cu=Ku((function(e,t,r){var n,s;return n=t,[t].concat(function(){var t,o,i,a=[];for(t=0,i=(o=r).length;t<i;++t)s=o[t],a.push(n=e(n,s));return a}())})),Su=ku=Ku((function(e,t){if(t.length)return Eu(e,t[0],t.slice(1))})),Au=Ku((function(e,t,r){return r=r.concat().reverse(),Eu(e,t,r).reverse()})),Du=Ku((function(e,t){if(t.length)return t=t.concat().reverse(),Eu(e,t[0],t.slice(1)).reverse()})),wu=Ku((function(e,t,r){return r.slice(e,t)})),Fu=Ku((function(e,t){return e<=0?t.slice(0,0):t.slice(0,e)})),Tu=Ku((function(e,t){return e<=0?t:t.slice(e)})),Pu=Ku((function(e,t){return[Fu(e,t),Tu(e,t)]})),Iu=Ku((function(e,t){var r,n;if(!(r=t.length))return t;for(n=0;n<r&&e(t[n]);)n+=1;return t.slice(0,n)})),_u=Ku((function(e,t){var r,n;if(!(r=t.length))return t;for(n=0;n<r&&e(t[n]);)n+=1;return t.slice(n)})),Bu=Ku((function(e,t){return[Iu(e,t),_u(e,t)]})),Ou=Ku((function(e,t){return Bu(function(){var e=arguments;return function(){var t,r;for(r=e[0].apply(this,arguments),t=1;t<e.length;++t)r=e[t](r);return r}}(e,Qu),t)})),Lu=Ku((function(e,t){var r,n,s,o,i,a;for(r=[],n=t.length,s=0,o=e.length;s<o&&(i=s,a=e[s],i!==n);++s)r.push([a,t[i]]);return r})),ju=Ku((function(e,t,r){var n,s,o,i,a,c;for(n=[],s=r.length,o=0,i=t.length;o<i&&(a=o,c=t[o],a!==s);++o)n.push(e(c,r[a]));return n})),Nu=function(){var e,t,r,n,s,o,i,a,c,u,l,p=[];for(t=[],r=0,n=arguments.length;r<n;++r)t.push(arguments[r]);for(s=void 0,r=0,o=(e=t).length;r<o;++r)s<=(a=(i=e[r]).length)||(s=a);for(r=0;r<s;++r){for(c=r,u=[],l=0,o=e.length;l<o;++l)i=e[l],u.push(i[c]);p.push(u)}return p},Ru=function(e){var t,r,n,s,o,i,a,c,u,l=[];for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);for(o=void 0,n=0,i=(t=r).length;n<i;++n)o<=(c=(a=t[n]).length)||(o=c);for(n=0;n<o;++n)u=n,l.push(e.apply(null,p()));return l;function p(){var e,r,n,s=[];for(e=0,n=(r=t).length;e<n;++e)a=r[e],s.push(a[u]);return s}},Mu=Ku((function(e,t){return e<0?t[t.length+e]:t[e]})),Vu=Ku((function(e,t){var r,n,s;for(r=0,n=t.length;r<n;++r)if(s=r,t[r]===e)return s})),$u=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)s=r,t[r]===e&&o.push(s);return o})),Uu=Ku((function(e,t){var r,n,s;for(r=0,n=t.length;r<n;++r)if(s=r,e(t[r]))return s})),qu=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)s=r,e(t[r])&&o.push(s);return o}));var zu,Gu,Hu={each:Fc,map:Tc,filter:Ic,compact:Pc,reject:_c,remove:Bc,partition:Oc,find:Lc,head:jc,first:Nc,tail:Rc,last:Mc,initial:Vc,empty:$c,reverse:Uc,difference:tu,intersection:ru,union:nu,countBy:su,groupBy:ou,fold:zc,fold1:Hc,foldl:Gc,foldl1:Kc,foldr:Jc,foldr1:Qc,unfoldr:Xc,andList:iu,orList:au,any:cu,all:uu,unique:qc,uniqueBy:Wc,sort:lu,sortWith:pu,sortBy:du,sum:fu,product:hu,mean:mu,average:gu,concat:Yc,concatMap:Zc,flatten:eu,maximum:yu,minimum:xu,maximumBy:bu,minimumBy:vu,scan:Eu,scan1:Su,scanl:Cu,scanl1:ku,scanr:Au,scanr1:Du,slice:wu,take:Fu,drop:Tu,splitAt:Pu,takeWhile:Iu,dropWhile:_u,span:Bu,breakList:Ou,zip:Lu,zipWith:ju,zipAll:Nu,zipAllWith:Ru,at:Mu,elemIndex:Vu,elemIndices:$u,findIndex:Uu,findIndices:qu};function Ku(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}function Ju(e,t){for(var r=-1,n=t.length>>>0;++r<n;)if(e===t[r])return!0;return!1}function Qu(e){return!e}zu=function(e){var t,r,n,s;for(n in t=[],r=[],e)s=e[n],t.push(n),r.push(s);return[t,r]},Gu=function(e){var t,r,n={};for(t in e)(r=e[t])&&(n[t]=r);return n};var Xu={values:function(e){var t,r,n=[];for(t in e)r=e[t],n.push(r);return n},keys:function(e){var t,r=[];for(t in e)r.push(t);return r},pairsToObj:function(e){var t,r,n,s={};for(t=0,r=e.length;t<r;++t)s[(n=e[t])[0]]=n[1];return s},objToPairs:function(e){var t,r,n=[];for(t in e)r=e[t],n.push([t,r]);return n},listsToObj:Yu((function(e,t){var r,n,s,o={};for(r=0,n=e.length;r<n;++r)s=r,o[e[r]]=t[s];return o})),objToLists:zu,empty:function(e){var t;for(t in e)return!1;return!0},each:Yu((function(e,t){var r;for(r in t)e(t[r]);return t})),map:Yu((function(e,t){var r,n,s={};for(r in t)n=t[r],s[r]=e(n);return s})),filter:Yu((function(e,t){var r,n,s={};for(r in t)e(n=t[r])&&(s[r]=n);return s})),compact:Gu,reject:Yu((function(e,t){var r,n,s={};for(r in t)e(n=t[r])||(s[r]=n);return s})),partition:Yu((function(e,t){var r,n,s,o;for(s in r={},n={},t)(e(o=t[s])?r:n)[s]=o;return[r,n]})),find:Yu((function(e,t){var r,n;for(r in t)if(e(n=t[r]))return n}))};function Yu(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}var Zu,el,tl,rl,nl,sl,ol,il,al,cl,ul,ll,pl,dl,fl,hl,ml,gl,yl,xl,bl,vl,El,Cl,Sl,kl,Al,Dl,wl,Fl,Tl,Pl,Il={split:_l((function(e,t){return t.split(e)})),join:_l((function(e,t){return t.join(e)})),lines:function(e){return e.length?e.split("\n"):[]},unlines:function(e){return e.join("\n")},words:function(e){return e.length?e.split(/[ ]+/):[]},unwords:function(e){return e.join(" ")},chars:function(e){return e.split("")},unchars:function(e){return e.join("")},reverse:function(e){return e.split("").reverse().join("")},repeat:_l((function(e,t){var r,n;for(r="",n=0;n<e;++n)r+=t;return r})),capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},camelize:function(e){return e.replace(/[-_]+(.)?/g,(function(e,t){return(null!=t?t:"").toUpperCase()}))},dasherize:function(e){return e.replace(/([^-A-Z])([A-Z]+)/g,(function(e,t,r){return t+"-"+(r.length>1?r:r.toLowerCase())})).replace(/^([A-Z]+)/,(function(e,t){return t.length>1?t+"-":t.toLowerCase()}))}};function _l(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}function Bl(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}Zu=Bl((function(e,t){return e>t?e:t})),el=Bl((function(e,t){return e<t?e:t})),tl=function(e){return-e},rl=Math.abs,nl=function(e){return e<0?-1:e>0?1:0},sl=Bl((function(e,t){return~~(e/t)})),ol=Bl((function(e,t){return e%t})),il=Bl((function(e,t){return Math.floor(e/t)})),al=Bl((function(e,t){var r;return(e%(r=t)+r)%r})),cl=function(e){return 1/e},ll=2*(ul=Math.PI),pl=Math.exp,dl=Math.sqrt,fl=Math.log,hl=Bl((function(e,t){return Math.pow(e,t)})),ml=Math.sin,gl=Math.tan,yl=Math.cos,xl=Math.asin,bl=Math.acos,vl=Math.atan,El=Bl((function(e,t){return Math.atan2(e,t)})),Cl=function(e){return~~e},Sl=Math.round,kl=Math.ceil,Al=Math.floor,Dl=function(e){return e!=e},wl=function(e){return e%2==0},Fl=function(e){return e%2!=0},Tl=Bl((function(e,t){var r;for(e=Math.abs(e),t=Math.abs(t);0!==t;)r=e%t,e=t,t=r;return e})),Pl=Bl((function(e,t){return Math.abs(Math.floor(e/Tl(e,t)*t))}));var Ol,Ll,jl,Nl,Rl,Ml,Vl,$l,Ul,ql={}.toString;Ol=Dc,Ll=Hu,jl=Xu,Nl=Il,Rl={max:Zu,min:el,negate:tl,abs:rl,signum:nl,quot:sl,rem:ol,div:il,mod:al,recip:cl,pi:ul,tau:ll,exp:pl,sqrt:dl,ln:fl,pow:hl,sin:ml,tan:gl,cos:yl,acos:bl,asin:xl,atan:vl,atan2:El,truncate:Cl,round:Sl,ceiling:kl,floor:Al,isItNaN:Dl,even:wl,odd:Fl,gcd:Tl,lcm:Pl},Ml=function(e){return e},Vl=zl((function(e,t){return ql.call(t).slice(8,-1)===e})),$l=zl((function(e,t){var r,n=[];for(r=0;r<e;++r)n.push(t);return n})),Nl.empty=Ll.empty,Nl.slice=Ll.slice,Nl.take=Ll.take,Nl.drop=Ll.drop,Nl.splitAt=Ll.splitAt,Nl.takeWhile=Ll.takeWhile,Nl.dropWhile=Ll.dropWhile,Nl.span=Ll.span,Nl.breakStr=Ll.breakList,(Ul={Func:Ol,List:Ll,Obj:jl,Str:Nl,Num:Rl,id:Ml,isType:Vl,replicate:$l}).each=Ll.each,Ul.map=Ll.map,Ul.filter=Ll.filter,Ul.compact=Ll.compact,Ul.reject=Ll.reject,Ul.partition=Ll.partition,Ul.find=Ll.find,Ul.head=Ll.head,Ul.first=Ll.first,Ul.tail=Ll.tail,Ul.last=Ll.last,Ul.initial=Ll.initial,Ul.empty=Ll.empty,Ul.reverse=Ll.reverse,Ul.difference=Ll.difference,Ul.intersection=Ll.intersection,Ul.union=Ll.union,Ul.countBy=Ll.countBy,Ul.groupBy=Ll.groupBy,Ul.fold=Ll.fold,Ul.foldl=Ll.foldl,Ul.fold1=Ll.fold1,Ul.foldl1=Ll.foldl1,Ul.foldr=Ll.foldr,Ul.foldr1=Ll.foldr1,Ul.unfoldr=Ll.unfoldr,Ul.andList=Ll.andList,Ul.orList=Ll.orList,Ul.any=Ll.any,Ul.all=Ll.all,Ul.unique=Ll.unique,Ul.uniqueBy=Ll.uniqueBy,Ul.sort=Ll.sort,Ul.sortWith=Ll.sortWith,Ul.sortBy=Ll.sortBy,Ul.sum=Ll.sum,Ul.product=Ll.product,Ul.mean=Ll.mean,Ul.average=Ll.average,Ul.concat=Ll.concat,Ul.concatMap=Ll.concatMap,Ul.flatten=Ll.flatten,Ul.maximum=Ll.maximum,Ul.minimum=Ll.minimum,Ul.maximumBy=Ll.maximumBy,Ul.minimumBy=Ll.minimumBy,Ul.scan=Ll.scan,Ul.scanl=Ll.scanl,Ul.scan1=Ll.scan1,Ul.scanl1=Ll.scanl1,Ul.scanr=Ll.scanr,Ul.scanr1=Ll.scanr1,Ul.slice=Ll.slice,Ul.take=Ll.take,Ul.drop=Ll.drop,Ul.splitAt=Ll.splitAt,Ul.takeWhile=Ll.takeWhile,Ul.dropWhile=Ll.dropWhile,Ul.span=Ll.span,Ul.breakList=Ll.breakList,Ul.zip=Ll.zip,Ul.zipWith=Ll.zipWith,Ul.zipAll=Ll.zipAll,Ul.zipAllWith=Ll.zipAllWith,Ul.at=Ll.at,Ul.elemIndex=Ll.elemIndex,Ul.elemIndices=Ll.elemIndices,Ul.findIndex=Ll.findIndex,Ul.findIndices=Ll.findIndices,Ul.apply=Ol.apply,Ul.curry=Ol.curry,Ul.flip=Ol.flip,Ul.fix=Ol.fix,Ul.over=Ol.over,Ul.split=Nl.split,Ul.join=Nl.join,Ul.lines=Nl.lines,Ul.unlines=Nl.unlines,Ul.words=Nl.words,Ul.unwords=Nl.unwords,Ul.chars=Nl.chars,Ul.unchars=Nl.unchars,Ul.repeat=Nl.repeat,Ul.capitalize=Nl.capitalize,Ul.camelize=Nl.camelize,Ul.dasherize=Nl.dasherize,Ul.values=jl.values,Ul.keys=jl.keys,Ul.pairsToObj=jl.pairsToObj,Ul.objToPairs=jl.objToPairs,Ul.listsToObj=jl.listsToObj,Ul.objToLists=jl.objToLists,Ul.max=Rl.max,Ul.min=Rl.min,Ul.negate=Rl.negate,Ul.abs=Rl.abs,Ul.signum=Rl.signum,Ul.quot=Rl.quot,Ul.rem=Rl.rem,Ul.div=Rl.div,Ul.mod=Rl.mod,Ul.recip=Rl.recip,Ul.pi=Rl.pi,Ul.tau=Rl.tau,Ul.exp=Rl.exp,Ul.sqrt=Rl.sqrt,Ul.ln=Rl.ln,Ul.pow=Rl.pow,Ul.sin=Rl.sin,Ul.tan=Rl.tan,Ul.cos=Rl.cos,Ul.acos=Rl.acos,Ul.asin=Rl.asin,Ul.atan=Rl.atan,Ul.atan2=Rl.atan2,Ul.truncate=Rl.truncate,Ul.round=Rl.round,Ul.ceiling=Rl.ceiling,Ul.floor=Rl.floor,Ul.isItNaN=Rl.isItNaN,Ul.even=Rl.even,Ul.odd=Rl.odd,Ul.gcd=Rl.gcd,Ul.lcm=Rl.lcm,Ul.VERSION="1.2.1";var Wl=Ul;function zl(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}(function(){var e,t,r;function n(e,t){if(e[0]===t)return e.shift();throw new Error("Expected '"+t+"', but got '"+e[0]+"' instead in "+JSON.stringify(e)+".")}function s(e,t){if(e[0]===t)return e.shift()}function o(e,t,r){var o,i,a,c;for(o=t[0],i=t[1],r&&n(e,o),a=[],c=","+(r?i:"");e.length&&r&&e[0]!==i;)a.push(l(e,c)),s(e,",");return r&&n(e,i),a}function i(e,t){return o(e,["[","]"],t)}function a(e,t){return o(e,["(",")"],t)}function c(e,t){var r,o,i;for(t&&n(e,"{"),r={},o=","+(t?"}":"");e.length&&(!t||"}"!==e[0]);)i=u(e,":"),n(e,":"),r[i]=l(e,o),s(e,",");return t&&n(e,"}"),r}function u(e,t){var r;for(null==t&&(t=""),r="";e.length&&-1===t.indexOf(e[0]);)r+=e.shift();return r}function l(e,t){switch(e[0]){case"[":return i(e,!0);case"(":return a(e,!0);case"{":return c(e,!0);default:return u(e,t)}}function p(e){return!e}e=Wl.reject,t=/\[\]\(\)}{:,/.source,r=RegExp("(\"(?:\\\\\"|[^\"])*\")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|(["+t+"])|([^\\s"+t+"](?:\\s*[^\\s"+t+"]+)*)|\\s*"),kc.exports=function(t,n,s){var o;if(null==s&&(s={}),!s.explicit&&1===t.length&&"String"===t[0].type)return n;if(!(o=function(e,t,r){var n,s,o,u,p,d,f,h;return s=(n=t[0]).type,o=n.structure,u=e.concat(),r.explicit||1!==t.length||(s||!o)&&"Array"!==s&&"Object"!==s?d=l(e):(p="array"===o||"Array"===s?i(e,"["===e[0]):"tuple"===o?a(e,"("===e[0]):c(e,"{"===e[0]),d=e.length?l("array"===o||"Array"===s?((f=u).unshift("["),f.push("]"),f):((h=u).unshift("("),h.push(")"),h)):p),d}(e(p,n.split(r)),t,s)))throw new Error("Error parsing '"+n+"'.");return o}}).call(void 0);var Gl={exports:{}},Hl={exports:{}},Kl={exports:{}};(function(){var e,t;function r(e){var t;if(null==(t=e[0]))throw new Error("Unexpected end of input.");return t}function n(t){var n;if(n=r(t),!e.test(n))throw new Error("Expected text, got '"+n+"' instead.");return t.shift()}function s(e,t){var n;if((n=r(e))!==t)throw new Error("Expected '"+t+"', got '"+n+"' instead.");return e.shift()}function o(e,t){return e[0]===t?e.shift():null}function i(e){var t;return t=n(e),s(e,":"),[t,u(e)]}function a(e){switch(e[0]){case"[":return function(e){var t;if(s(e,"["),"]"===r(e))throw new Error("Must specify type of Array - eg. [Type], got [] instead.");return t=u(e),s(e,"]"),{structure:"array",of:t}}(e);case"(":return function(e){var t;if(t=[],s(e,"("),")"===r(e))throw new Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;t.push(u(e)),o(e,","),")"!==r(e););return s(e,")"),{structure:"tuple",of:t}}(e);case"{":return function(e){var t,n,a,c,u;for(t={},s(e,"{"),n=!1;;){if(o(e,"...")){n=!0;break}if(c=(a=i(e))[0],u=a[1],t[c]=u,o(e,","),"}"===r(e))break}return s(e,"}"),{structure:"fields",of:t,subset:n}}(e)}}function c(t){var o,i,c,u;if((i="*"===(o=r(t)))||e.test(o))return c=i?s(t,"*"):n(t),(u=a(t))?(u.type=c,u):{type:c};if(!(u=a(t)))throw new Error("Unexpected character: "+o);return u}function u(e){var t,n,s,i,a,u;if("::"===r(e))throw new Error("No comment before comment separator '::' found.");for(null!=(t=e[1])&&"::"===t&&(e.shift(),e.shift()),n=[],s={},"Maybe"===r(e)&&(e.shift(),n=[{type:"Undefined"},{type:"Null"}],s={Undefined:!0,Null:!0});a=(i=c(e)).type,u=i.structure,s[a]||n.push(i),null==u&&(s[a]=!0),o(e,"|"););return n}e=/[\$\w]+/,t=RegExp("\\.\\.\\.|::|->|"+e.source+"|\\S","g"),Kl.exports=function(e){var r;if(!e.length)throw new Error("No type specified.");if(function(e,t){var r=-1,n=t.length>>>0;for(;++r<n;)if(e===t[r])return!0;return!1}("->",r=e.match(t)||[]))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return u(r)}catch(t){throw new Error(t.message+" - Remaining tokens: "+JSON.stringify(r)+" - Initial input: '"+e+"'")}}}).call(void 0);var Jl={exports:{}};(function(){var e,t,r,n,s,o,i={}.toString;function a(e,t,n){if(!(e instanceof Object))return!1;switch(t.structure){case"fields":return function(e,t,r){var n,s,o,i,a,c,l;for(o in n={},s=0,e)n[o]=!0,s++;for(a in i=0,c=t.of){if(l=c[a],!u(e[a],l,r))return!1;n[a]&&i++}return t.subset||s===i}(e,t,n);case"array":return function(e,t,n){return r((function(e){return u(e,t.of,n)}),e)}(e,t,n);case"tuple":return function(e,t,r){var n,s,o,i,a;for(n=0,s=0,i=(o=t.of).length;s<i;++s){if(a=o[s],!u(e[n],a,r))return!1;n++}return e.length<=n}(e,t,n)}}function c(e,t,r){var n,c,u,l;if(n=t.type,c=t.structure,n)return"*"===n||((u=r.customTypes[n]||s[n])?(void 0===u.typeOf||u.typeOf===i.call(e).slice(8,-1))&&u.validate(e):n===i.call(e).slice(8,-1)&&(!c||a(e,t,r)));if(c)return(!(l=o[c])||l===i.call(e).slice(8,-1))&&a(e,t,r);throw new Error("No type defined. Input: "+e+".")}function u(e,r,n){if("Array"!==i.call(r).slice(8,-1))throw new Error("Types must be in an array. Input: "+e+".");return t((function(t){return c(e,t,n)}),r)}t=(e=Wl).any,r=e.all,n=e.isItNaN,s={Number:{typeOf:"Number",validate:function(e){return!n(e)}},NaN:{typeOf:"Number",validate:n},Int:{typeOf:"Number",validate:function(e){return!n(e)&&e%1==0}},Float:{typeOf:"Number",validate:function(e){return!n(e)}},Date:{typeOf:"Date",validate:function(e){return!n(e.getTime())}}},o={array:"Array",tuple:"Array"},Jl.exports=function(e,t,r){return null==r&&(r={}),null==r.customTypes&&(r.customTypes={}),u(t,e,r)}}).call(void 0),function(){var e,t,r;e=Kl.exports,t=Jl.exports,r=function(r,n,s){return t(e(r),n,s)},Hl.exports={VERSION:"0.4.0",typeCheck:r,parsedTypeCheck:t,parseType:e}}.call(void 0),function(){var e,t,r={}.toString;function n(e,t,n){var s,o;return"Array"!==r.call(e).slice(8,-1)?{type:"Nothing"}:(s=t.of,{type:"Just",value:function(){var t,r,a,c=[];for(t=0,a=(r=e).length;t<a;++t)o=r[t],c.push(i(o,s,n));return c}()})}function s(e,t,n){var s,o,a;return"Object"!==r.call(e).slice(8,-1)?{type:"Nothing"}:(s=t.of,{type:"Just",value:function(){var t,r={};for(o in t=e)a=t[o],r[i(o,[{type:"String"}],n)]=i(a,s[o]||[{type:"*"}],n);return r}()})}function o(e,o,a){var c,u,l,p;if(c=o.type,u=o.structure,c){if(!(l=(null!=(p=a.customTypes[c])?p.cast:void 0)||t[c]))throw new Error("Type not defined: "+c+".");return l(e,a,i)}switch(u){case"array":return n(e,o,a);case"tuple":return function(e,t,n){var s,o,a,c,u,l,p;if("Array"!==r.call(e).slice(8,-1))return{type:"Nothing"};for(s=[],o=0,a=0,u=(c=t.of).length;a<u;++a)l=c[a],p=i(e[o],l,n),"Undefined"!==r.call(p).slice(8,-1)&&s.push(p),o++;return e.length<=o?{type:"Just",value:s}:{type:"Nothing"}}(e,o,a);case"fields":return s(e,o,a)}}function i(t,r,n){var s,i,a,c,u,l;for(s=0,i=r.length;s<i;++s)if(u=(c=o(t,a=r[s],n)).type,l=c.value,"Nothing"!==u&&e([a],l,{customTypes:n.customTypes}))return l;throw new Error("Value "+JSON.stringify(t)+" does not type check against "+JSON.stringify(r)+".")}e=Hl.exports.parsedTypeCheck,t={"*":function(e,t){switch(r.call(e).slice(8,-1)){case"Array":return o(e,{type:"Array"},t);case"Object":return o(e,{type:"Object"},t);default:return{type:"Just",value:i(e,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(t.explicit=!0,t))}}},Undefined:function(e){return"undefined"===e||void 0===e?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(e){return"null"===e?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(e){return"NaN"===e?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(e){return"true"===e?{type:"Just",value:!0}:"false"===e?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(e){return{type:"Just",value:+e}},Int:function(e){return{type:"Just",value:+e}},Float:function(e){return{type:"Just",value:+e}},Date:function(e,t){var r;return(r=/^\#([\s\S]*)\#$/.exec(e))?{type:"Just",value:new Date(+r[1]||r[1])}:t.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+e||e)}},RegExp:function(e,t){var r;return(r=/^\/([\s\S]*)\/([gimy]*)$/.exec(e))?{type:"Just",value:new RegExp(r[1],r[2])}:t.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(e)}},Array:function(e,t){return n(e,{of:[{type:"*"}]},t)},Object:function(e,t){return s(e,{of:{}},t)},String:function(e){var t,n;return"String"!==r.call(e).slice(8,-1)?{type:"Nothing"}:(t=function(e,t){return e.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,(function(e,r){switch(r[0]){case t:return t;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"u":return JSON.parse('"'+e+'"');default:return r}}))},(n=e.match(/^'([\s\S]*)'$/))?{type:"Just",value:t(n[1],"'")}:(n=e.match(/^"([\s\S]*)"$/))?{type:"Just",value:t(n[1],'"')}:{type:"Just",value:e})}},Gl.exports=function(e,t,r){return r.explicit||1!==t.length||"String"!==t[0].type?i(e,t,r):e}}.call(void 0),function(){var e,t,r,n,s;e=kc.exports,t=Gl.exports,r=Hl.exports.parseType,n=function(r,n,s){return null==s&&(s={}),null==s.explicit&&(s.explicit=!1),null==s.customTypes&&(s.customTypes={}),t(e(r,n,s),r,s)},s=function(e,t,s){return n(r(e),t,s)},Sc.exports={VERSION:"0.4.1",parse:s,parsedTypeParse:n}}.call(void 0);const Ql=Sc.exports,{Legacy:{ConfigOps:Xl}}=Yt,Yl=Ys.exports("eslint:config-comment-parser");function Zl(e){return(Zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ep(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,s=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){s=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}return r}}(e,t)||rp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tp(e){return function(e){if(Array.isArray(e))return np(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||rp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rp(e,t){if(e){if("string"==typeof e)return np(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?np(e,t):void 0}}function np(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sp(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=rp(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function op(e,t){return e(t={exports:{}},t.exports),t.exports}var ip=op((function(e,t){!function e(t){var r,n,s,o,i,a;function c(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?c(r):r);return n}function u(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function p(){}function d(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function f(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new p).traverse(e,t)}function g(e,t){var r;return r=function(e,t){var r,n,s,o;for(n=e.length,s=0;n;)t(e[o=s+(r=n>>>1)])?n=r:(s=o+1,n-=r+1);return s}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:o={},Skip:i={},Remove:a={}},u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,r,n,s;function o(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(s=[],e=2,t=this.__leavelist.length;e<t;++e)o(s,this.__leavelist[e].path);return o(s,this.__current.path),s},p.prototype.type=function(){return this.current().type||this.__current.wrap},p.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},p.prototype.notify=function(e){this.__state=e},p.prototype.skip=function(){this.notify(i)},p.prototype.break=function(){this.notify(o)},p.prototype.remove=function(){this.notify(a)},p.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=s,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},p.prototype.traverse=function(e,t){var r,n,s,a,c,u,p,m,g,y,x,b;for(this.__initialize(e,t),b={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((s=r.pop())!==b){if(s.node){if(u=this.__execute(t.enter,s),this.__state===o||u===o)return;if(r.push(b),n.push(s),this.__state===i||u===i)continue;if(c=(a=s.node).type||s.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(a)}for(m=y.length;(m-=1)>=0;)if(x=a[p=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]&&!h(n,x[g])){if(f(c,y[m]))s=new l(x[g],[p,g],"Property",null);else{if(!d(x[g]))continue;s=new l(x[g],[p,g],null,null)}r.push(s)}}else if(d(x)){if(h(n,x))continue;r.push(new l(x,p,null,null))}}}else if(s=n.pop(),u=this.__execute(t.leave,s),this.__state===o||u===o)return},p.prototype.replace=function(e,t){var r,n,s,c,p,h,m,g,y,x,b,v,E;function C(e){var t,n,s,o;if(e.ref.remove())for(n=e.ref.key,o=e.ref.parent,t=r.length;t--;)if((s=r[t]).ref&&s.ref.parent===o){if(s.ref.key<n)break;--s.ref.key}}for(this.__initialize(e,t),b={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new u(v={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==b){if(void 0!==(p=this.__execute(t.enter,h))&&p!==o&&p!==i&&p!==a&&(h.ref.replace(p),h.node=p),this.__state!==a&&p!==a||(C(h),h.node=null),this.__state===o||p===o)return v.root;if((s=h.node)&&(r.push(b),n.push(h),this.__state!==i&&p!==i)){if(c=s.type||h.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(s)}for(m=y.length;(m-=1)>=0;)if(x=s[E=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(f(c,y[m]))h=new l(x[g],[E,g],"Property",new u(x,g));else{if(!d(x[g]))continue;h=new l(x[g],[E,g],null,new u(x,g))}r.push(h)}}else d(x)&&r.push(new l(x,E,null,new u(s,E)))}}else if(h=n.pop(),void 0!==(p=this.__execute(t.leave,h))&&p!==o&&p!==i&&p!==a&&h.ref.replace(p),this.__state!==a&&p!==a||C(h),this.__state===o||p===o)return v.root;return v.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,r){var s,o,i,a,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,o=t.length;i<o;i+=1)(s=c(t[i])).extendedRange=[0,e.range[0]],u.push(s);e.leadingComments=u}return e}for(i=0,o=t.length;i<o;i+=1)u.push(g(c(t[i]),r));return a=0,m(e,{enter:function(e){for(var t;a<u.length&&!((t=u[a]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),a=0,m(e,{leave:function(e){for(var t;a<u.length&&(t=u[a],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=s,t.VisitorOption=n,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(t)})),ap=op((function(e){e.exports&&(e.exports=function(){function e(t,r,n,s){this.message=t,this.expected=r,this.found=n,this.location=s,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+s(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?o(e.parts[t][0])+"-"+o(e.parts[t][1]):o(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function s(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}return"Expected "+function(e){var t,n,s,o=new Array(e.length);for(t=0;t<e.length;t++)o[t]=(s=e[t],r[s.type](s));if(o.sort(),o.length>0){for(t=1,n=1;t<o.length;t++)o[t-1]!==o[t]&&(o[n]=o[t],n++);o.length=n}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(e)+" but "+function(e){return e?'"'+s(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,s,o,i,a={},c={start:ve},u=ve,l=me(" ",!1),p=/^[^ [\],():#!=><~+.]/,d=ge([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),f=me(">",!1),h=me("~",!1),m=me("+",!1),g=me(",",!1),y=me("!",!1),x=me("*",!1),b=me("#",!1),v=me("[",!1),E=me("]",!1),C=/^[><!]/,S=ge([">","<","!"],!1,!1),k=me("=",!1),A=function(e){return(e||"")+"="},D=/^[><]/,w=ge([">","<"],!1,!1),F=me(".",!1),T=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},P=me('"',!1),I=/^[^\\"]/,_=ge(["\\",'"'],!0,!1),B=me("\\",!1),O={type:"any"},L=function(e,t){return e+t},j=function(e){return{type:"literal",value:(t=e.join(""),t.replace(/\\(.)/g,(function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";default:return t}})))};var t},N=me("'",!1),R=/^[^\\']/,M=ge(["\\","'"],!0,!1),V=/^[0-9]/,$=ge([["0","9"]],!1,!1),U=me("type(",!1),q=/^[^ )]/,W=ge([" ",")"],!0,!1),z=me(")",!1),G=/^[imsu]/,H=ge(["i","m","s","u"],!1,!1),K=me("/",!1),J=/^[^\/]/,Q=ge(["/"],!0,!1),X=me(":not(",!1),Y=me(":matches(",!1),Z=me(":has(",!1),ee=me(":first-child",!1),te=me(":last-child",!1),re=me(":nth-child(",!1),ne=me(":nth-last-child(",!1),se=me(":",!1),oe=me("statement",!0),ie=me("expression",!0),ae=me("declaration",!0),ce=me("function",!0),ue=me("pattern",!0),le=0,pe=[{line:1,column:1}],de=0,fe=[],he={};if("startRule"in r){if(!(r.startRule in c))throw new Error("Can't start parsing from rule \""+r.startRule+'".');u=c[r.startRule]}function me(e,t){return{type:"literal",text:e,ignoreCase:t}}function ge(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ye(e){var r,n=pe[e];if(n)return n;for(r=e-1;!pe[r];)r--;for(n={line:(n=pe[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return pe[e]=n,n}function xe(e,t){var r=ye(e),n=ye(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function be(e){le<de||(le>de&&(de=le,fe=[]),fe.push(e))}function ve(){var e,t,r,n,s=30*le+0,o=he[s];return o?(le=o.nextPos,o.result):(e=le,(t=Ee())!==a&&(r=ke())!==a&&Ee()!==a?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(le=e,e=a),e===a&&(e=le,(t=Ee())!==a&&(t=void 0),e=t),he[s]={nextPos:le,result:e},e)}function Ee(){var e,r,n=30*le+1,s=he[n];if(s)return le=s.nextPos,s.result;for(e=[],32===t.charCodeAt(le)?(r=" ",le++):(r=a,be(l));r!==a;)e.push(r),32===t.charCodeAt(le)?(r=" ",le++):(r=a,be(l));return he[n]={nextPos:le,result:e},e}function Ce(){var e,r,n,s=30*le+2,o=he[s];if(o)return le=o.nextPos,o.result;if(r=[],p.test(t.charAt(le))?(n=t.charAt(le),le++):(n=a,be(d)),n!==a)for(;n!==a;)r.push(n),p.test(t.charAt(le))?(n=t.charAt(le),le++):(n=a,be(d));else r=a;return r!==a&&(r=r.join("")),e=r,he[s]={nextPos:le,result:e},e}function Se(){var e,r,n,s=30*le+3,o=he[s];return o?(le=o.nextPos,o.result):(e=le,(r=Ee())!==a?(62===t.charCodeAt(le)?(n=">",le++):(n=a,be(f)),n!==a&&Ee()!==a?e=r="child":(le=e,e=a)):(le=e,e=a),e===a&&(e=le,(r=Ee())!==a?(126===t.charCodeAt(le)?(n="~",le++):(n=a,be(h)),n!==a&&Ee()!==a?e=r="sibling":(le=e,e=a)):(le=e,e=a),e===a&&(e=le,(r=Ee())!==a?(43===t.charCodeAt(le)?(n="+",le++):(n=a,be(m)),n!==a&&Ee()!==a?e=r="adjacent":(le=e,e=a)):(le=e,e=a),e===a&&(e=le,32===t.charCodeAt(le)?(r=" ",le++):(r=a,be(l)),r!==a&&(n=Ee())!==a?e=r="descendant":(le=e,e=a)))),he[s]={nextPos:le,result:e},e)}function ke(){var e,r,n,s,o,i,c,u,l=30*le+4,p=he[l];if(p)return le=p.nextPos,p.result;if(e=le,(r=Ae())!==a){for(n=[],s=le,(o=Ee())!==a?(44===t.charCodeAt(le)?(i=",",le++):(i=a,be(g)),i!==a&&(c=Ee())!==a&&(u=Ae())!==a?s=o=[o,i,c,u]:(le=s,s=a)):(le=s,s=a);s!==a;)n.push(s),s=le,(o=Ee())!==a?(44===t.charCodeAt(le)?(i=",",le++):(i=a,be(g)),i!==a&&(c=Ee())!==a&&(u=Ae())!==a?s=o=[o,i,c,u]:(le=s,s=a)):(le=s,s=a);n!==a?e=r=[r].concat(n.map((function(e){return e[3]}))):(le=e,e=a)}else le=e,e=a;return he[l]={nextPos:le,result:e},e}function Ae(){var e,t,r,n,s,o,i,c=30*le+5,u=he[c];if(u)return le=u.nextPos,u.result;if(e=le,(t=De())!==a){for(r=[],n=le,(s=Se())!==a&&(o=De())!==a?n=s=[s,o]:(le=n,n=a);n!==a;)r.push(n),n=le,(s=Se())!==a&&(o=De())!==a?n=s=[s,o]:(le=n,n=a);r!==a?(i=t,e=t=r.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),i)):(le=e,e=a)}else le=e,e=a;return he[c]={nextPos:le,result:e},e}function De(){var e,r,n,s,o,i,c,u=30*le+6,l=he[u];if(l)return le=l.nextPos,l.result;if(e=le,33===t.charCodeAt(le)?(r="!",le++):(r=a,be(y)),r===a&&(r=null),r!==a){if(n=[],(s=we())!==a)for(;s!==a;)n.push(s),s=we();else n=a;n!==a?(o=r,c=1===(i=n).length?i[0]:{type:"compound",selectors:i},o&&(c.subject=!0),e=r=c):(le=e,e=a)}else le=e,e=a;return he[u]={nextPos:le,result:e},e}function we(){var e,r=30*le+7,n=he[r];return n?(le=n.nextPos,n.result):((e=function(){var e,r,n=30*le+8,s=he[n];return s?(le=s.nextPos,s.result):(42===t.charCodeAt(le)?(r="*",le++):(r=a,be(x)),r!==a&&(r={type:"wildcard",value:r}),e=r,he[n]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s=30*le+9,o=he[s];return o?(le=o.nextPos,o.result):(e=le,35===t.charCodeAt(le)?(r="#",le++):(r=a,be(b)),r===a&&(r=null),r!==a&&(n=Ce())!==a?e=r={type:"identifier",value:n}:(le=e,e=a),he[s]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o=30*le+10,i=he[o];return i?(le=i.nextPos,i.result):(e=le,91===t.charCodeAt(le)?(r="[",le++):(r=a,be(v)),r!==a&&Ee()!==a&&(n=function(){var e,r,n,s,o=30*le+14,i=he[o];return i?(le=i.nextPos,i.result):(e=le,(r=Fe())!==a&&Ee()!==a&&(n=function(){var e,r,n,s=30*le+12,o=he[s];return o?(le=o.nextPos,o.result):(e=le,33===t.charCodeAt(le)?(r="!",le++):(r=a,be(y)),r===a&&(r=null),r!==a?(61===t.charCodeAt(le)?(n="=",le++):(n=a,be(k)),n!==a?e=r=A(r):(le=e,e=a)):(le=e,e=a),he[s]={nextPos:le,result:e},e)}())!==a&&Ee()!==a?((s=function(){var e,r,n,s,o,i=30*le+18,c=he[i];if(c)return le=c.nextPos,c.result;if(e=le,"type("===t.substr(le,5)?(r="type(",le+=5):(r=a,be(U)),r!==a)if(Ee()!==a){if(n=[],q.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(W)),s!==a)for(;s!==a;)n.push(s),q.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(W));else n=a;n!==a&&(s=Ee())!==a?(41===t.charCodeAt(le)?(o=")",le++):(o=a,be(z)),o!==a?e=r={type:"type",value:n.join("")}:(le=e,e=a)):(le=e,e=a)}else le=e,e=a;else le=e,e=a;return he[i]={nextPos:le,result:e},e}())===a&&(s=function(){var e,r,n,s,o,i,c=30*le+20,u=he[c];if(u)return le=u.nextPos,u.result;if(e=le,47===t.charCodeAt(le)?(r="/",le++):(r=a,be(K)),r!==a){if(n=[],J.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(Q)),s!==a)for(;s!==a;)n.push(s),J.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(Q));else n=a;n!==a?(47===t.charCodeAt(le)?(s="/",le++):(s=a,be(K)),s!==a?((o=function(){var e,r,n=30*le+19,s=he[n];if(s)return le=s.nextPos,s.result;if(e=[],G.test(t.charAt(le))?(r=t.charAt(le),le++):(r=a,be(H)),r!==a)for(;r!==a;)e.push(r),G.test(t.charAt(le))?(r=t.charAt(le),le++):(r=a,be(H));else e=a;return he[n]={nextPos:le,result:e},e}())===a&&(o=null),o!==a?(i=o,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(le=e,e=a)):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;return he[c]={nextPos:le,result:e},e}()),s!==a?e=r=T(r,n,s):(le=e,e=a)):(le=e,e=a),e===a&&(e=le,(r=Fe())!==a&&Ee()!==a&&(n=function(){var e,r,n,s=30*le+11,o=he[s];return o?(le=o.nextPos,o.result):(e=le,C.test(t.charAt(le))?(r=t.charAt(le),le++):(r=a,be(S)),r===a&&(r=null),r!==a?(61===t.charCodeAt(le)?(n="=",le++):(n=a,be(k)),n!==a?e=r=A(r):(le=e,e=a)):(le=e,e=a),e===a&&(D.test(t.charAt(le))?(e=t.charAt(le),le++):(e=a,be(w))),he[s]={nextPos:le,result:e},e)}())!==a&&Ee()!==a?((s=function(){var e,r,n,s,o,i,c=30*le+15,u=he[c];if(u)return le=u.nextPos,u.result;if(e=le,34===t.charCodeAt(le)?(r='"',le++):(r=a,be(P)),r!==a){for(n=[],I.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(_)),s===a&&(s=le,92===t.charCodeAt(le)?(o="\\",le++):(o=a,be(B)),o!==a?(t.length>le?(i=t.charAt(le),le++):(i=a,be(O)),i!==a?s=o=L(o,i):(le=s,s=a)):(le=s,s=a));s!==a;)n.push(s),I.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(_)),s===a&&(s=le,92===t.charCodeAt(le)?(o="\\",le++):(o=a,be(B)),o!==a?(t.length>le?(i=t.charAt(le),le++):(i=a,be(O)),i!==a?s=o=L(o,i):(le=s,s=a)):(le=s,s=a));n!==a?(34===t.charCodeAt(le)?(s='"',le++):(s=a,be(P)),s!==a?e=r=j(n):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;if(e===a)if(e=le,39===t.charCodeAt(le)?(r="'",le++):(r=a,be(N)),r!==a){for(n=[],R.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(M)),s===a&&(s=le,92===t.charCodeAt(le)?(o="\\",le++):(o=a,be(B)),o!==a?(t.length>le?(i=t.charAt(le),le++):(i=a,be(O)),i!==a?s=o=L(o,i):(le=s,s=a)):(le=s,s=a));s!==a;)n.push(s),R.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(M)),s===a&&(s=le,92===t.charCodeAt(le)?(o="\\",le++):(o=a,be(B)),o!==a?(t.length>le?(i=t.charAt(le),le++):(i=a,be(O)),i!==a?s=o=L(o,i):(le=s,s=a)):(le=s,s=a));n!==a?(39===t.charCodeAt(le)?(s="'",le++):(s=a,be(N)),s!==a?e=r=j(n):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;return he[c]={nextPos:le,result:e},e}())===a&&(s=function(){var e,r,n,s,o,i,c,u=30*le+16,l=he[u];if(l)return le=l.nextPos,l.result;for(e=le,r=le,n=[],V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));s!==a;)n.push(s),V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));if(n!==a?(46===t.charCodeAt(le)?(s=".",le++):(s=a,be(F)),s!==a?r=n=[n,s]:(le=r,r=a)):(le=r,r=a),r===a&&(r=null),r!==a){if(n=[],V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($)),s!==a)for(;s!==a;)n.push(s),V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));else n=a;n!==a?(i=n,c=(o=r)?[].concat.apply([],o).join(""):"",e=r={type:"literal",value:parseFloat(c+i.join(""))}):(le=e,e=a)}else le=e,e=a;return he[u]={nextPos:le,result:e},e}())===a&&(s=function(){var e,t,r=30*le+17,n=he[r];return n?(le=n.nextPos,n.result):((t=Ce())!==a&&(t={type:"literal",value:t}),e=t,he[r]={nextPos:le,result:e},e)}()),s!==a?e=r=T(r,n,s):(le=e,e=a)):(le=e,e=a),e===a&&(e=le,(r=Fe())!==a&&(r={type:"attribute",name:r}),e=r)),he[o]={nextPos:le,result:e},e)}())!==a&&Ee()!==a?(93===t.charCodeAt(le)?(s="]",le++):(s=a,be(E)),s!==a?e=r=n:(le=e,e=a)):(le=e,e=a),he[o]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o,i,c,u,l=30*le+21,p=he[l];if(p)return le=p.nextPos,p.result;if(e=le,46===t.charCodeAt(le)?(r=".",le++):(r=a,be(F)),r!==a)if((n=Ce())!==a){for(s=[],o=le,46===t.charCodeAt(le)?(i=".",le++):(i=a,be(F)),i!==a&&(c=Ce())!==a?o=i=[i,c]:(le=o,o=a);o!==a;)s.push(o),o=le,46===t.charCodeAt(le)?(i=".",le++):(i=a,be(F)),i!==a&&(c=Ce())!==a?o=i=[i,c]:(le=o,o=a);s!==a?(u=n,e=r={type:"field",name:s.reduce((function(e,t){return e+t[0]+t[1]}),u)}):(le=e,e=a)}else le=e,e=a;else le=e,e=a;return he[l]={nextPos:le,result:e},e}())===a&&(e=function(){var e,r,n,s,o=30*le+22,i=he[o];return i?(le=i.nextPos,i.result):(e=le,":not("===t.substr(le,5)?(r=":not(",le+=5):(r=a,be(X)),r!==a&&Ee()!==a&&(n=ke())!==a&&Ee()!==a?(41===t.charCodeAt(le)?(s=")",le++):(s=a,be(z)),s!==a?e=r={type:"not",selectors:n}:(le=e,e=a)):(le=e,e=a),he[o]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o=30*le+23,i=he[o];return i?(le=i.nextPos,i.result):(e=le,":matches("===t.substr(le,9)?(r=":matches(",le+=9):(r=a,be(Y)),r!==a&&Ee()!==a&&(n=ke())!==a&&Ee()!==a?(41===t.charCodeAt(le)?(s=")",le++):(s=a,be(z)),s!==a?e=r={type:"matches",selectors:n}:(le=e,e=a)):(le=e,e=a),he[o]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o=30*le+24,i=he[o];return i?(le=i.nextPos,i.result):(e=le,":has("===t.substr(le,5)?(r=":has(",le+=5):(r=a,be(Z)),r!==a&&Ee()!==a&&(n=ke())!==a&&Ee()!==a?(41===t.charCodeAt(le)?(s=")",le++):(s=a,be(z)),s!==a?e=r={type:"has",selectors:n}:(le=e,e=a)):(le=e,e=a),he[o]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n=30*le+25,s=he[n];return s?(le=s.nextPos,s.result):(":first-child"===t.substr(le,12)?(r=":first-child",le+=12):(r=a,be(ee)),r!==a&&(r=Te(1)),e=r,he[n]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n=30*le+26,s=he[n];return s?(le=s.nextPos,s.result):(":last-child"===t.substr(le,11)?(r=":last-child",le+=11):(r=a,be(te)),r!==a&&(r=Pe(1)),e=r,he[n]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o,i=30*le+27,c=he[i];if(c)return le=c.nextPos,c.result;if(e=le,":nth-child("===t.substr(le,11)?(r=":nth-child(",le+=11):(r=a,be(re)),r!==a)if(Ee()!==a){if(n=[],V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($)),s!==a)for(;s!==a;)n.push(s),V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));else n=a;n!==a&&(s=Ee())!==a?(41===t.charCodeAt(le)?(o=")",le++):(o=a,be(z)),o!==a?e=r=Te(parseInt(n.join(""),10)):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;else le=e,e=a;return he[i]={nextPos:le,result:e},e}())===a&&(e=function(){var e,r,n,s,o,i=30*le+28,c=he[i];if(c)return le=c.nextPos,c.result;if(e=le,":nth-last-child("===t.substr(le,16)?(r=":nth-last-child(",le+=16):(r=a,be(ne)),r!==a)if(Ee()!==a){if(n=[],V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($)),s!==a)for(;s!==a;)n.push(s),V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));else n=a;n!==a&&(s=Ee())!==a?(41===t.charCodeAt(le)?(o=")",le++):(o=a,be(z)),o!==a?e=r=Pe(parseInt(n.join(""),10)):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;else le=e,e=a;return he[i]={nextPos:le,result:e},e}())===a&&(e=function(){var e,r,n,s=30*le+29,o=he[s];return o?(le=o.nextPos,o.result):(e=le,58===t.charCodeAt(le)?(r=":",le++):(r=a,be(se)),r!==a?("statement"===t.substr(le,9).toLowerCase()?(n=t.substr(le,9),le+=9):(n=a,be(oe)),n===a&&("expression"===t.substr(le,10).toLowerCase()?(n=t.substr(le,10),le+=10):(n=a,be(ie)),n===a&&("declaration"===t.substr(le,11).toLowerCase()?(n=t.substr(le,11),le+=11):(n=a,be(ae)),n===a&&("function"===t.substr(le,8).toLowerCase()?(n=t.substr(le,8),le+=8):(n=a,be(ce)),n===a&&("pattern"===t.substr(le,7).toLowerCase()?(n=t.substr(le,7),le+=7):(n=a,be(ue)))))),n!==a?e=r={type:"class",name:n}:(le=e,e=a)):(le=e,e=a),he[s]={nextPos:le,result:e},e)}()),he[r]={nextPos:le,result:e},e)}function Fe(){var e,r,n,s,o,i,c,u,l=30*le+13,p=he[l];if(p)return le=p.nextPos,p.result;if(e=le,(r=Ce())!==a){for(n=[],s=le,46===t.charCodeAt(le)?(o=".",le++):(o=a,be(F)),o!==a&&(i=Ce())!==a?s=o=[o,i]:(le=s,s=a);s!==a;)n.push(s),s=le,46===t.charCodeAt(le)?(o=".",le++):(o=a,be(F)),o!==a&&(i=Ce())!==a?s=o=[o,i]:(le=s,s=a);n!==a?(c=r,u=n,e=r=[].concat.apply([c],u).join("")):(le=e,e=a)}else le=e,e=a;return he[l]={nextPos:le,result:e},e}function Te(e){return{type:"nth-child",index:{type:"literal",value:e}}}function Pe(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((n=u())!==a&&le===t.length)return n;throw n!==a&&le<t.length&&be({type:"end"}),s=fe,o=de<t.length?t.charAt(de):null,i=de<t.length?xe(de,de+1):xe(de,de),new e(e.buildMessage(s,o),s,o,i)}}}())}));function cp(e,t,r,n){if(!t)return!0;if(!e)return!1;switch(r||(r=[]),t.type){case"wildcard":return!0;case"identifier":return t.value.toLowerCase()===e.type.toLowerCase();case"field":var s=t.name.split("."),o=r[s.length-1];return function e(t,r,n){if(0===n.length)return t===r;if(null==r)return!1;var s=r[n[0]],o=n.slice(1);if(Array.isArray(s)){var i,a=sp(s);try{for(a.s();!(i=a.n()).done;)if(e(t,i.value,o))return!0}catch(e){a.e(e)}finally{a.f()}return!1}return e(t,s,o)}(e,o,s);case"matches":var i,a=sp(t.selectors);try{for(a.s();!(i=a.n()).done;){var c=i.value;if(cp(e,c,r,n))return!0}}catch(e){a.e(e)}finally{a.f()}return!1;case"compound":var u,l=sp(t.selectors);try{for(l.s();!(u=l.n()).done;){var p=u.value;if(!cp(e,p,r,n))return!1}}catch(e){l.e(e)}finally{l.f()}return!0;case"not":var d,f=sp(t.selectors);try{for(f.s();!(d=f.n()).done;){var h=d.value;if(cp(e,h,r,n))return!1}}catch(e){f.e(e)}finally{f.f()}return!0;case"has":var m=function(){var r,s=[],o=sp(t.selectors);try{var i=function(){var t=r.value,o=[];ip.traverse(e,{enter:function(e,r){null!=r&&o.unshift(r),cp(e,t,o,n)&&s.push(e)},leave:function(){o.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})};for(o.s();!(r=o.n()).done;)i()}catch(r){o.e(r)}finally{o.f()}return{v:0!==s.length}}();if("object"===Zl(m))return m.v;case"child":return!!cp(e,t.right,r,n)&&cp(r[0],t.left,r.slice(1),n);case"descendant":if(cp(e,t.right,r,n))for(var g=0,y=r.length;g<y;++g)if(cp(r[g],t.left,r.slice(g+1),n))return!0;return!1;case"attribute":var x=function(e,t){var r,n=sp(t.split("."));try{for(n.s();!(r=n.n()).done;){var s=r.value;if(null==e)return e;e=e[s]}}catch(e){n.e(e)}finally{n.f()}return e}(e,t.name);switch(t.operator){case void 0:return null!=x;case"=":switch(t.value.type){case"regexp":return"string"==typeof x&&t.value.value.test(x);case"literal":return"".concat(t.value.value)==="".concat(x);case"type":return t.value.value===Zl(x)}throw new Error("Unknown selector value type: ".concat(t.value.type));case"!=":switch(t.value.type){case"regexp":return!t.value.value.test(x);case"literal":return"".concat(t.value.value)!=="".concat(x);case"type":return t.value.value!==Zl(x)}throw new Error("Unknown selector value type: ".concat(t.value.type));case"<=":return x<=t.value.value;case"<":return x<t.value.value;case">":return x>t.value.value;case">=":return x>=t.value.value}throw new Error("Unknown operator: ".concat(t.operator));case"sibling":return cp(e,t.right,r,n)&&pp(e,t.left,r,"LEFT_SIDE",n)||t.left.subject&&cp(e,t.left,r,n)&&pp(e,t.right,r,"RIGHT_SIDE",n);case"adjacent":return cp(e,t.right,r,n)&&dp(e,t.left,r,"LEFT_SIDE",n)||t.right.subject&&cp(e,t.left,r,n)&&dp(e,t.right,r,"RIGHT_SIDE",n);case"nth-child":return cp(e,t.right,r,n)&&fp(e,r,(function(){return t.index.value-1}),n);case"nth-last-child":return cp(e,t.right,r,n)&&fp(e,r,(function(e){return e-t.index.value}),n);case"class":switch(t.name.toLowerCase()){case"statement":if("Statement"===e.type.slice(-9))return!0;case"declaration":return"Declaration"===e.type.slice(-11);case"pattern":if("Pattern"===e.type.slice(-7))return!0;case"expression":return"Expression"===e.type.slice(-10)||"Literal"===e.type.slice(-7)||"Identifier"===e.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===e.type;case"function":return"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}throw new Error("Unknown class name: ".concat(t.name))}throw new Error("Unknown selector type: ".concat(t.type))}function up(e,t){var r=e.type;return t&&t.visitorKeys&&t.visitorKeys[r]?t.visitorKeys[r]:ip.VisitorKeys[r]?ip.VisitorKeys[r]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter((function(e){return"type"!==e}))}function lp(e){return null!==e&&"object"===Zl(e)&&"string"==typeof e.type}function pp(e,t,r,n,s){var o=ep(r,1)[0];if(!o)return!1;var i,a=sp(up(o,s));try{for(a.s();!(i=a.n()).done;){var c=o[i.value];if(Array.isArray(c)){var u=c.indexOf(e);if(u<0)continue;var l=void 0,p=void 0;"LEFT_SIDE"===n?(l=0,p=u):(l=u+1,p=c.length);for(var d=l;d<p;++d)if(lp(c[d])&&cp(c[d],t,r,s))return!0}}}catch(e){a.e(e)}finally{a.f()}return!1}function dp(e,t,r,n,s){var o=ep(r,1)[0];if(!o)return!1;var i,a=sp(up(o,s));try{for(a.s();!(i=a.n()).done;){var c=o[i.value];if(Array.isArray(c)){var u=c.indexOf(e);if(u<0)continue;if("LEFT_SIDE"===n&&u>0&&lp(c[u-1])&&cp(c[u-1],t,r,s))return!0;if("RIGHT_SIDE"===n&&u<c.length-1&&lp(c[u+1])&&cp(c[u+1],t,r,s))return!0}}}catch(e){a.e(e)}finally{a.f()}return!1}function fp(e,t,r,n){var s=ep(t,1)[0];if(!s)return!1;var o,i=sp(up(s,n));try{for(i.s();!(o=i.n()).done;){var a=s[o.value];if(Array.isArray(a)){var c=a.indexOf(e);if(c>=0&&c===r(a.length))return!0}}}catch(e){i.e(e)}finally{i.f()}return!1}function hp(e,t){if(null==e||"object"!=Zl(e))return[];null==t&&(t=e);for(var r=e.subject?[t]:[],n=0,s=function(e){for(var t=[],r=Object.keys(e),n=0;n<r.length;n++)t.push([r[n],e[r[n]]]);return t}(e);n<s.length;n++){var o=ep(s[n],2),i=o[0],a=o[1];r.push.apply(r,tp(hp(a,"left"===i?a:t)))}return r}function mp(e,t,r,n){if(t){var s=[],o=hp(t);ip.traverse(e,{enter:function(e,i){if(null!=i&&s.unshift(i),cp(e,t,s,n))if(o.length)for(var a=0,c=o.length;a<c;++a){cp(e,o[a],s,n)&&r(e,i,s);for(var u=0,l=s.length;u<l;++u){var p=s.slice(u+1);cp(s[u],o[a],p,n)&&r(s[u],i,p)}}else r(e,i,s)},leave:function(){s.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function gp(e,t,r){var n=[];return mp(e,t,(function(e){n.push(e)}),r),n}function yp(e){return ap.parse(e)}function xp(e,t,r){return gp(e,yp(t),r)}xp.parse=yp,xp.match=gp,xp.traverse=mp,xp.matches=cp,xp.query=xp;const bp=xp;function vp(e){switch(e.type){case"identifier":return[e.value];case"matches":{const t=e.selectors.map(vp);return t.every(Boolean)?function(...e){return[...new Set(e.flat())]}(...t):null}case"compound":{const t=e.selectors.map(vp).filter((e=>e));return t.length?function(...e){if(0===e.length)return[];let t=[...new Set(e[0])];for(const r of e.slice(1))t=t.filter((e=>r.includes(e)));return t}(...t):null}case"child":case"descendant":case"sibling":case"adjacent":return vp(e.right);case"class":return"function"===e.name?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}function Ep(e){switch(e.type){case"child":case"descendant":case"sibling":case"adjacent":return Ep(e.left)+Ep(e.right);case"compound":case"not":case"matches":return e.selectors.reduce(((e,t)=>e+Ep(t)),0);case"attribute":case"field":case"nth-child":case"nth-last-child":return 1;default:return 0}}function Cp(e){switch(e.type){case"child":case"descendant":case"sibling":case"adjacent":return Cp(e.left)+Cp(e.right);case"compound":case"not":case"matches":return e.selectors.reduce(((e,t)=>e+Cp(t)),0);case"identifier":return 1;default:return 0}}function Sp(e,t){return e.attributeCount-t.attributeCount||e.identifierCount-t.identifierCount||(e.rawSelector<=t.rawSelector?-1:1)}const kp=new Map;function Ap(e){if(kp.has(e))return kp.get(e);const t=function(e){try{return bp.parse(e.replace(/:exit$/u,""))}catch(t){if(t.location&&t.location.start&&"number"==typeof t.location.start.offset)throw new SyntaxError(`Syntax error in selector "${e}" at position ${t.location.start.offset}: ${t.message}`);throw t}}(e),r={rawSelector:e,isExit:e.endsWith(":exit"),parsedSelector:t,listenerTypes:vp(t),attributeCount:Ep(t),identifierCount:Cp(t)};return kp.set(e,r),r}var Dp=class{constructor(e,t){this.emitter=e,this.esqueryOptions=t,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],e.eventNames().forEach((e=>{const t=Ap(e);if(t.listenerTypes){const e=t.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;return void t.listenerTypes.forEach((r=>{e.has(r)||e.set(r,[]),e.get(r).push(t)}))}(t.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(t)})),this.anyTypeEnterSelectors.sort(Sp),this.anyTypeExitSelectors.sort(Sp),this.enterSelectorsByNodeType.forEach((e=>e.sort(Sp))),this.exitSelectorsByNodeType.forEach((e=>e.sort(Sp)))}applySelector(e,t){bp.matches(e,t.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(t.rawSelector,e)}applySelectors(e,t){const r=(t?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e.type)||[],n=t?this.anyTypeExitSelectors:this.anyTypeEnterSelectors;let s=0,o=0;for(;s<r.length||o<n.length;)s>=r.length||o<n.length&&Sp(n[o],r[s])<0?this.applySelector(e,n[o++]):this.applySelector(e,r[s++])}enterNode(e){e.parent&&this.currentAncestry.unshift(e.parent),this.applySelectors(e,!1)}leaveNode(e){this.applySelectors(e,!0),this.currentAncestry.shift()}};function wp(e,t){return{range:[e,e],text:t}}const Fp=Object.freeze({insertTextAfter(e,t){return this.insertTextAfterRange(e.range,t)},insertTextAfterRange:(e,t)=>wp(e[1],t),insertTextBefore(e,t){return this.insertTextBeforeRange(e.range,t)},insertTextBeforeRange:(e,t)=>wp(e[0],t),replaceText(e,t){return this.replaceTextRange(e.range,t)},replaceTextRange:(e,t)=>({range:e,text:t}),remove(e){return this.removeRange(e.range)},removeRange:e=>({range:e,text:""})});const Tp=he,Pp=Fp,Ip=(e,t)=>t?e.replace(/\{\{([^{}]+?)\}\}/gu,((e,r)=>{const n=r.trim();return n in t?t[n]:e})):e;function _p(e){return e.loc?e.loc.start?e.loc:{start:e.loc,end:null}:e.node.loc}function Bp(e){e&&Tp(e.range&&"number"==typeof e.range[0]&&"number"==typeof e.range[1],"Fix has invalid range: "+JSON.stringify(e,null,2))}function Op(e,t){return e.range[0]-t.range[0]||e.range[1]-t.range[1]}function Lp(e,t){if("function"!=typeof e.fix)return null;const r=e.fix(Pp);return r&&Symbol.iterator in r?function(e,t){for(const t of e)Bp(t);if(0===e.length)return null;if(1===e.length)return e[0];e.sort(Op);const r=t.text,n=e[0].range[0],s=e[e.length-1].range[1];let o="",i=Number.MIN_SAFE_INTEGER;for(const t of e)Tp(t.range[0]>=i,"Fix objects must not be overlapped in a report."),t.range[0]>=0&&(o+=r.slice(Math.max(0,n,i),t.range[0])),o+=t.text,i=t.range[1];return o+=r.slice(Math.max(0,n,i),s),{range:[n,s],text:o}}(Array.from(r),t):(Bp(r),r)}function jp(e,t,r){return e.suggest&&Array.isArray(e.suggest)?e.suggest.map((e=>{const n=e.desc||r[e.messageId];return{...e,desc:Ip(n,e.data),fix:Lp(e,t)}})).filter((({fix:e})=>e)):[]}const Np=Ys.exports("eslint:rules");class Rp extends Map{constructor(e){let t=e.length;super(Np.enabled?e.map((([e,r])=>{let n=null;return[e,()=>(n||(Np("Loading rule %o (remaining=%d)",e,--t),n=r()),n)]})):e),Object.defineProperty(Rp.prototype,"set",{configurable:!0,value:void 0})}get(e){const t=super.get(e);return t&&t()}*values(){for(const e of super.values())yield e()}*entries(){for(const[e,t]of super.entries())yield[e,t()]}forEach(e,t){for(const[r,n]of super.entries())e.call(t,n(),r,this)}}Object.defineProperties(Rp.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:Rp.prototype.entries}});var Mp={LazyLoadingRuleMap:Rp},Vp={exports:{}},$p={},Up={exports:{}};!function(){function e(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function t(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}Up.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(t){return e(t)||null!=t&&"FunctionDeclaration"===t.type},isProblematicIfStatement:function(e){var r;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;r=e.consequent;do{if("IfStatement"===r.type&&null==r.alternate)return!0;r=t(r)}while(r);return!1},trailingStatement:t}}();var qp={exports:{}};!function(){var e,t,r,n,s,o;function i(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],n=new Array(128),o=0;o<128;++o)n[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(s=new Array(128),o=0;o<128;++o)s[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;qp.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?n[e]:t.NonAsciiIdentifierStart.test(i(e))},isIdentifierPartES5:function(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(i(e))},isIdentifierStartES6:function(t){return t<128?n[t]:e.NonAsciiIdentifierStart.test(i(t))},isIdentifierPartES6:function(t){return t<128?s[t]:e.NonAsciiIdentifierPart.test(i(t))}}}();var Wp={exports:{}};!function(){var e=qp.exports;function t(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function n(e,r){return"null"===e||"true"===e||"false"===e||t(e,r)}function s(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function o(t){var r,n,s;if(0===t.length)return!1;if(s=t.charCodeAt(0),!e.isIdentifierStartES5(s))return!1;for(r=1,n=t.length;r<n;++r)if(s=t.charCodeAt(r),!e.isIdentifierPartES5(s))return!1;return!0}function i(t){var r,n,s,o,i;if(0===t.length)return!1;for(i=e.isIdentifierStartES6,r=0,n=t.length;r<n;++r){if(55296<=(s=t.charCodeAt(r))&&s<=56319){if(++r>=n)return!1;if(!(56320<=(o=t.charCodeAt(r))&&o<=57343))return!1;s=1024*(s-55296)+(o-56320)+65536}if(!i(s))return!1;i=e.isIdentifierPartES6}return!0}Wp.exports={isKeywordES5:t,isKeywordES6:r,isReservedWordES5:n,isReservedWordES6:s,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:i,isIdentifierES5:function(e,t){return o(e)&&!n(e,t)},isIdentifierES6:function(e,t){return i(e)&&!s(e,t)}}}(),$p.ast=Up.exports,$p.code=qp.exports,$p.keyword=Wp.exports,function(e){const t=$p,r=dt,n=gc,{breakableTypePattern:s,createGlobalLinebreakMatcher:o,lineBreakPattern:i,shebangPattern:a}=Xt,c=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,u=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,l=/Array$/u,p=/^(?:every|filter|find|findIndex|forEach|map|some)$/u,d=/^(?:bind|call|apply)$/u,f=/^[\s*]*@this/mu,h=new Set(["\r\n","\r","\n","\u2028","\u2029"]),m=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),g=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,y=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/us,x=new Set(["&&=","||=","??="]);function b(e,t,r){const n=e.identifier,s=0===t||r[t-1].identifier!==n;return n&&!1===e.init&&e.isWrite()&&s}function v(e){return e[0]!==e[0].toLocaleLowerCase()}function E(e){return e.id&&v(e.id.name)}function C(e){for(let t=e;t;t=t.parent)if(c.test(t.type))return t;return null}function S(e){return Boolean(e&&c.test(e.type))}function k(e){return Boolean(e&&u.test(e.type))}function A(e){return"Literal"===e.type&&null===e.value&&!e.regex&&!e.bigint}function D(e){return A(e)||"Identifier"===e.type&&"undefined"===e.name||"UnaryExpression"===e.type&&"void"===e.operator}function w(e){return"CallExpression"===e.parent.type&&e.parent.callee===e}function F(e){switch(e.type){case"Literal":if(null!==e.value)return String(e.value);if(A(e))return String(e.value);if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint;break;case"TemplateLiteral":if(0===e.expressions.length&&1===e.quasis.length)return e.quasis[0].value.cooked}return null}function T(e){let t;switch(e&&e.type){case"ChainExpression":return T(e.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":t=e.key;break;case"MemberExpression":t=e.property}return t?"Identifier"!==t.type||e.computed?F(t):t.name:null}function P(e){return e&&"ChainExpression"===e.type?e.expression:e}function I(e,t){return"string"==typeof t?e===t:t.test(e)}function _(e,t){return"Identifier"===e.type&&I(e.name,t)}function B(e,t,r){const n=P(e);if("MemberExpression"!==n.type)return!1;if(t&&!_(n.object,t))return!1;if(r){const e=T(n);if("string"!=typeof e||!I(e,r))return!1}return!0}function O(e,t){return e.regex||t.regex?Boolean(e.regex&&t.regex&&e.regex.pattern===t.regex.pattern&&e.regex.flags===t.regex.flags):e.bigint||t.bigint?e.bigint===t.bigint:e.value===t.value}function L(e){return B(e,"Reflect","apply")}function j(e){return B(e,l,"from")}function N(e){return B(e,null,p)}function R(e){return t=>!e(t)}function M(e){return"=>"===e.value&&"Punctuator"===e.type}function V(e){return","===e.value&&"Punctuator"===e.type}function $(e){return"."===e.value&&"Punctuator"===e.type}function U(e){return"?."===e.value&&"Punctuator"===e.type}function q(e){return";"===e.value&&"Punctuator"===e.type}function W(e){return":"===e.value&&"Punctuator"===e.type}function z(e){return"("===e.value&&"Punctuator"===e.type}function G(e){return")"===e.value&&"Punctuator"===e.type}function H(e){return"["===e.value&&"Punctuator"===e.type}function K(e){return"]"===e.value&&"Punctuator"===e.type}function J(e){return"{"===e.value&&"Punctuator"===e.type}function Q(e){return"}"===e.value&&"Punctuator"===e.type}function X(e,t){if("ArrowFunctionExpression"===e.type&&1===e.params.length){const r=t.getFirstToken(e.params[0]),n=t.getTokenBefore(r);return z(n)?n:r}return e.id?t.getTokenAfter(e.id,z):t.getFirstToken(e,z)}function Y(e){return"LogicalExpression"===e.type&&("&&"===e.operator||"||"===e.operator)}function Z(e){return"LogicalExpression"===e.type&&"??"===e.operator}e.exports={COMMENTS_IGNORE_PATTERN:/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,LINEBREAKS:h,LINEBREAK_MATCHER:i,SHEBANG_MATCHER:a,STATEMENT_LIST_PARENTS:m,isTokenOnSameLine:(e,t)=>e.loc.end.line===t.loc.start.line,isNullOrUndefined:D,isCallee:w,isES5Constructor:E,getUpperFunction:C,isFunction:S,isLoop:k,isInLoop:function(e){for(let t=e;t&&!S(t);t=t.parent)if(k(t))return!0;return!1},isArrayFromMethod:j,isParenthesised:function(e,t){const r=e.getTokenBefore(t),n=e.getTokenAfter(t);return Boolean(r&&n)&&"("===r.value&&r.range[1]<=t.range[0]&&")"===n.value&&n.range[0]>=t.range[1]},createGlobalLinebreakMatcher:o,equalTokens:function(e,t,r){const n=r.getTokens(e),s=r.getTokens(t);if(n.length!==s.length)return!1;for(let e=0;e<n.length;++e)if(n[e].type!==s[e].type||n[e].value!==s[e].value)return!1;return!0},isArrowToken:M,isClosingBraceToken:Q,isClosingBracketToken:K,isClosingParenToken:G,isColonToken:W,isCommaToken:V,isCommentToken:function(e){return"Line"===e.type||"Block"===e.type||"Shebang"===e.type},isDotToken:$,isQuestionDotToken:U,isKeywordToken:function(e){return"Keyword"===e.type},isNotClosingBraceToken:R(Q),isNotClosingBracketToken:R(K),isNotClosingParenToken:R(G),isNotColonToken:R(W),isNotCommaToken:R(V),isNotDotToken:R($),isNotQuestionDotToken:R(U),isNotOpeningBraceToken:R(J),isNotOpeningBracketToken:R(H),isNotOpeningParenToken:R(z),isNotSemicolonToken:R(q),isOpeningBraceToken:J,isOpeningBracketToken:H,isOpeningParenToken:z,isSemicolonToken:q,isEqToken:function(e){return"="===e.value&&"Punctuator"===e.type},isStringLiteral:e=>"Literal"===e.type&&"string"==typeof e.value||"TemplateLiteral"===e.type,isBreakableStatement:e=>s.test(e.type),getModifyingReferences:e=>e.filter(b),isSurroundedBy:(e,t)=>e[0]===t&&e[e.length-1]===t,isDirectiveComment(e){const t=e.value.trim();return"Line"===e.type&&0===t.indexOf("eslint-")||"Block"===e.type&&(0===t.indexOf("global ")||0===t.indexOf("eslint ")||0===t.indexOf("eslint-"))},getTrailingStatement:t.ast.trailingStatement,getVariableByName(e,t){let r=e;for(;r;){const e=r.set.get(t);if(e)return e;r=r.upper}return null},isDefaultThisBinding(e,t,{capIsConstructor:r=!0}={}){if("PropertyDefinition"===e.parent.type&&e.parent.value===e)return!1;if("StaticBlock"===e.type)return!1;if(r&&E(e)||function(e,t){const r=t.getJSDocComment(e);return!(!r||!f.test(r.value))||t.getCommentsBefore(e).some((e=>f.test(e.value)))}(e,t))return!1;const n=null===e.id;let s=e;for(;s;){const e=s.parent;switch(e.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":s=e;break;case"ReturnStatement":{const t=C(e);if(null===t||!w(t))return!0;s=t.parent;break}case"ArrowFunctionExpression":if(s!==e.body||!w(e))return!0;s=e.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return e.value!==s;case"AssignmentExpression":case"AssignmentPattern":return"MemberExpression"!==e.left.type&&!(r&&n&&"Identifier"===e.left.type&&v(e.left.name));case"VariableDeclarator":return!(r&&n&&e.init===s&&"Identifier"===e.id.type&&v(e.id.name));case"MemberExpression":if(e.object===s&&B(e,null,d)){const t="ChainExpression"===e.parent.type?e.parent:e;return!(w(t)&&t.parent.arguments.length>=1&&!D(t.parent.arguments[0]))}return!0;case"CallExpression":return L(e.callee)?3!==e.arguments.length||e.arguments[0]!==s||D(e.arguments[1]):j(e.callee)?3!==e.arguments.length||e.arguments[1]!==s||D(e.arguments[2]):!N(e.callee)||(2!==e.arguments.length||e.arguments[0]!==s||D(e.arguments[1]));default:return!0}}return!0},getPrecedence(e){switch(e.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(e.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(e.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return 20}},isEmptyBlock:e=>Boolean(e&&"BlockStatement"===e.type&&0===e.body.length),isEmptyFunction:t=>S(t)&&e.exports.isEmptyBlock(t.body),getDirectivePrologue(e){const t=[];if("Program"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type){const r="Program"===e.type?e.body:e.body.body;for(const e of r){if("ExpressionStatement"!==e.type||"Literal"!==e.expression.type)break;t.push(e)}}return t},isDecimalInteger:e=>"Literal"===e.type&&"number"==typeof e.value&&g.test(e.raw),isDecimalIntegerNumericToken:e=>"Numeric"===e.type&&g.test(e.value),getFunctionNameWithKind(e){const t=e.parent,r=[];if("MethodDefinition"!==t.type&&"PropertyDefinition"!==t.type||(t.static&&r.push("static"),t.computed||"PrivateIdentifier"!==t.key.type||r.push("private")),e.async&&r.push("async"),e.generator&&r.push("generator"),"Property"===t.type||"MethodDefinition"===t.type){if("constructor"===t.kind)return"constructor";"get"===t.kind?r.push("getter"):"set"===t.kind?r.push("setter"):r.push("method")}else"PropertyDefinition"===t.type?r.push("method"):("ArrowFunctionExpression"===e.type&&r.push("arrow"),r.push("function"));if("Property"===t.type||"MethodDefinition"===t.type||"PropertyDefinition"===t.type)if(t.computed||"PrivateIdentifier"!==t.key.type){const n=T(t);null!==n?r.push(`'${n}'`):e.id&&r.push(`'${e.id.name}'`)}else r.push("#"+t.key.name);else e.id&&r.push(`'${e.id.name}'`);return r.join(" ")},getFunctionHeadLoc(e,t){const r=e.parent;let n=null,s=null;if("Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type)n=r.loc.start,s=X(e,t).loc.start;else if("ArrowFunctionExpression"===e.type){const r=t.getTokenBefore(e.body,M);n=r.loc.start,s=r.loc.end}else n=e.loc.start,s=X(e,t).loc.start;return{start:Object.assign({},n),end:Object.assign({},s)}},getNextLocation:(e,{line:t,column:r})=>r<e.lines[t-1].length?{line:t,column:r+1}:t<e.lines.length?{line:t+1,column:0}:null,getParenthesisedText(e,t){let r=e.getFirstToken(t),n=e.getLastToken(t);for(;e.getTokenBefore(r)&&"Punctuator"===e.getTokenBefore(r).type&&"("===e.getTokenBefore(r).value&&e.getTokenAfter(n)&&"Punctuator"===e.getTokenAfter(n).type&&")"===e.getTokenAfter(n).value;)r=e.getTokenBefore(r),n=e.getTokenAfter(n);return e.getText().slice(r.range[0],n.range[1])},couldBeError(t){switch(t.type){case"Identifier":case"CallExpression":case"NewExpression":case"MemberExpression":case"TaggedTemplateExpression":case"YieldExpression":case"AwaitExpression":case"ChainExpression":return!0;case"AssignmentExpression":return["=","&&="].includes(t.operator)?e.exports.couldBeError(t.right):!!["||=","??="].includes(t.operator)&&(e.exports.couldBeError(t.left)||e.exports.couldBeError(t.right));case"SequenceExpression":{const r=t.expressions;return 0!==r.length&&e.exports.couldBeError(r[r.length-1])}case"LogicalExpression":return"&&"===t.operator?e.exports.couldBeError(t.right):e.exports.couldBeError(t.left)||e.exports.couldBeError(t.right);case"ConditionalExpression":return e.exports.couldBeError(t.consequent)||e.exports.couldBeError(t.alternate);default:return!1}},isNumericLiteral:e=>"Literal"===e.type&&("number"==typeof e.value||Boolean(e.bigint)),canTokensBeAdjacent(e,t){const n={ecmaVersion:r.latestEcmaVersion,comment:!0,range:!0};let s,o;if("string"==typeof e){let t;try{t=r.tokenize(e,n)}catch{return!1}const o=t.comments;if(s=t[t.length-1],o.length){const e=o[o.length-1];e.range[0]>s.range[0]&&(s=e)}}else s=e;if("Shebang"===s.type)return!1;if("string"==typeof t){let e;try{e=r.tokenize(t,n)}catch{return!1}const s=e.comments;if(o=e[0],s.length){const e=s[0];e.range[0]<o.range[0]&&(o=e)}}else o=t;if("Punctuator"===s.type||"Punctuator"===o.type){if("Punctuator"===s.type&&"Punctuator"===o.type){const e=new Set(["+","++"]),t=new Set(["-","--"]);return!(e.has(s.value)&&e.has(o.value)||t.has(s.value)&&t.has(o.value))}return"Punctuator"!==s.type||"/"!==s.value||!["Block","Line","RegularExpression"].includes(o.type)}return"String"===s.type||"String"===o.type||"Template"===s.type||"Template"===o.type||(!("Numeric"===s.type||"Numeric"!==o.type||!o.value.startsWith("."))||("Block"===s.type||"Block"===o.type||"Line"===o.type||"PrivateIdentifier"===o.type))},getNameLocationInGlobalDirectiveComment(e,t,r){const s=new RegExp(`[\\s,]${n(r)}(?:$|[\\s,:])`,"gu");s.lastIndex=t.value.indexOf("global")+6;const o=s.exec(t.value),i=e.getLocFromIndex(t.range[0]+"/*".length+(o?o.index+1:0));return{start:i,end:{line:i.line,column:i.column+(o?r.length:1)}}},hasOctalOrNonOctalDecimalEscapeSequence:e=>y.test(e),isLogicalExpression:Y,isCoalesceExpression:Z,isMixedLogicalAndCoalesceExpressions:function(e,t){return Y(e)&&Z(t)||Z(e)&&Y(t)},isNullLiteral:A,getStaticStringValue:F,getStaticPropertyName:T,skipChainExpression:P,isSpecificId:_,isSpecificMemberAccess:B,equalLiteralValue:O,isSameReference:function e(t,r,n=!1){if(t.type!==r.type)return"ChainExpression"===t.type?e(t.expression,r,n):"ChainExpression"===r.type&&e(t,r.expression,n);switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===r.name;case"Literal":return O(t,r);case"ChainExpression":return e(t.expression,r.expression,n);case"MemberExpression":if(!n){const s=T(t);if(null!==s)return e(t.object,r.object,n)&&s===T(r)}return t.computed===r.computed&&e(t.object,r.object,n)&&e(t.property,r.property,n);default:return!1}},isLogicalAssignmentOperator:function(e){return x.has(e)},getSwitchCaseColonToken:function(e,t){return e.test?t.getTokenAfter(e.test,W):t.getFirstToken(e,1)}}}(Vp);const zp=Vp.exports;function Gp(e){return"get"===e.kind||"set"===e.kind}function Hp(e,t,r,n){const s=e.parent;return"CallExpression"===s.type&&zp.isSpecificMemberAccess(s.callee,r,n)&&s.arguments[t]===e}var Kp={meta:{type:"suggestion",docs:{description:"enforce getter and setter pairs in objects and classes",recommended:!1,url:"https://eslint.org/docs/rules/accessor-pairs"},schema:[{type:"object",properties:{getWithoutSet:{type:"boolean",default:!1},setWithoutGet:{type:"boolean",default:!0},enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:"Getter is not present in property descriptor.",missingSetterInPropertyDescriptor:"Setter is not present in property descriptor.",missingGetterInObjectLiteral:"Getter is not present for {{ name }}.",missingSetterInObjectLiteral:"Setter is not present for {{ name }}.",missingGetterInClass:"Getter is not present for class {{ name }}.",missingSetterInClass:"Setter is not present for class {{ name }}."}},create(e){const t=e.options[0]||{},r=!0===t.getWithoutSet,n=!1!==t.setWithoutGet,s=!1!==t.enforceForClassMembers,o=e.getSourceCode();function i(t,r){"Property"===t.type?e.report({node:t,messageId:r+"InObjectLiteral",loc:zp.getFunctionHeadLoc(t.value,o),data:{name:zp.getFunctionNameWithKind(t.value)}}):"MethodDefinition"===t.type?e.report({node:t,messageId:r+"InClass",loc:zp.getFunctionHeadLoc(t.value,o),data:{name:zp.getFunctionNameWithKind(t.value)}}):e.report({node:t,messageId:r+"InPropertyDescriptor"})}function a(e,t){for(const r of e)i(r,t)}function c(e){const t=zp.getStaticPropertyName(e);return{key:null!==t?t:o.getTokens(e.key),getters:"get"===e.kind?[e]:[],setters:"set"===e.kind?[e]:[]}}function u(e,t){const r=e.find((e=>{return r=e.key,n=t.key,"string"==typeof r&&"string"==typeof n?r===n:!(!Array.isArray(r)||!Array.isArray(n))&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const n=e[r],s=t[r];if(n.type!==s.type||n.value!==s.value)return!1}return!0}(r,n);var r,n}));return r?(r.getters.push(...t.getters),r.setters.push(...t.setters)):e.push(t),e}function l(e){const t=e.filter(Gp).map(c).reduce(u,[]);for(const{getters:e,setters:s}of t)n&&s.length&&!e.length&&a(s,"missingGetter"),r&&e.length&&!s.length&&a(e,"missingSetter")}const p={};return(n||r)&&(p.ObjectExpression=function(e){!function(e){l(e.properties.filter((e=>"Property"===e.type)))}(e),function(e){if(Hp(e,2,"Object","defineProperty")||Hp(e,2,"Reflect","defineProperty"))return!0;const t=e.parent.parent;return"ObjectExpression"===t.type&&(Hp(t,1,"Object","create")||Hp(t,1,"Object","defineProperties"))}(e)&&function(e){const t=e.properties.filter((e=>"Property"===e.type&&"init"===e.kind&&!e.computed)).map((({key:e})=>e.name)),s=t.includes("get"),o=t.includes("set");n&&o&&!s&&i(e,"missingGetter"),r&&s&&!o&&i(e,"missingSetter")}(e)},s&&(p.ClassBody=function(e){const t=e.body.filter((e=>"MethodDefinition"===e.type));l(t.filter((e=>e.static))),l(t.filter((e=>!e.static)))})),p}};const Jp=Vp.exports;var Qp={meta:{type:"layout",docs:{description:"enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){const t=e.getSourceCode();function r(e){const t=function(e){let t=!1,r=!1,n=0;return e?"consistent"===e?(t=!0,n=Number.POSITIVE_INFINITY):"always"===e||0===e.minItems?n=0:"never"===e?n=Number.POSITIVE_INFINITY:(r=Boolean(e.multiline),n=e.minItems||Number.POSITIVE_INFINITY):(t=!1,r=!0,n=Number.POSITIVE_INFINITY),{consistent:t,multiline:r,minItems:n}}(e);return{ArrayExpression:t,ArrayPattern:t}}function n(n){const s=n.elements,o=r(e.options[0])[n.type],i=t.getFirstToken(n),a=t.getLastToken(n),c=t.getTokenAfter(i,{includeComments:!0}),u=t.getTokenBefore(a,{includeComments:!0}),l=t.getTokenAfter(i),p=t.getTokenBefore(a);s.length>=o.minItems||o.multiline&&s.length>0&&c.loc.start.line!==u.loc.end.line||0===s.length&&"Block"===c.type&&c.loc.start.line!==u.loc.end.line&&c===u||o.consistent&&i.loc.end.line!==l.loc.start.line?(Jp.isTokenOnSameLine(i,l)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingOpeningLinebreak",fix:e=>e.insertTextAfter(r,"\n")})}(n,i),Jp.isTokenOnSameLine(p,a)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingClosingLinebreak",fix:e=>e.insertTextBefore(r,"\n")})}(n,a)):(Jp.isTokenOnSameLine(i,l)||function(r,n){e.report({node:r,loc:n.loc,messageId:"unexpectedOpeningLinebreak",fix(e){const r=t.getTokenAfter(n,{includeComments:!0});return Jp.isCommentToken(r)?null:e.removeRange([n.range[1],r.range[0]])}})}(n,i),Jp.isTokenOnSameLine(p,a)||function(r,n){e.report({node:r,loc:n.loc,messageId:"unexpectedClosingLinebreak",fix(e){const r=t.getTokenBefore(n,{includeComments:!0});return Jp.isCommentToken(r)?null:e.removeRange([r.range[1],n.range[0]])}})}(n,a))}return{ArrayPattern:n,ArrayExpression:n}}};const Xp=Vp.exports;var Yp={meta:{type:"layout",docs:{description:"enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e){const t="always"===e.options[0],r=e.getSourceCode();function n(r){return!!e.options[1]&&e.options[1][r]===!t}const s={spaced:t,singleElementException:n("singleValue"),objectsInArraysException:n("objectsInArrays"),arraysInArraysException:n("arraysInArrays")};function o(e){return e&&("ObjectExpression"===e.type||"ObjectPattern"===e.type)}function i(e){return e&&("ArrayExpression"===e.type||"ArrayPattern"===e.type)}function a(t){if(s.spaced&&0===t.elements.length)return;const n=r.getFirstToken(t),a=r.getFirstToken(t,1),c=t.typeAnnotation?r.getTokenBefore(t.typeAnnotation):r.getLastToken(t),u=r.getTokenBefore(c),l=t.elements[0],p=t.elements[t.elements.length-1],d=s.objectsInArraysException&&o(l)||s.arraysInArraysException&&i(l)||s.singleElementException&&1===t.elements.length?!s.spaced:s.spaced,f=s.objectsInArraysException&&o(p)||s.arraysInArraysException&&i(p)||s.singleElementException&&1===t.elements.length?!s.spaced:s.spaced;Xp.isTokenOnSameLine(n,a)&&(d&&!r.isSpaceBetweenTokens(n,a)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceAfter",data:{tokenValue:r.value},fix:e=>e.insertTextAfter(r," ")})}(t,n),!d&&r.isSpaceBetweenTokens(n,a)&&function(t,n){const s=r.getTokenAfter(n);e.report({node:t,loc:{start:n.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:n.value},fix:e=>e.removeRange([n.range[1],s.range[0]])})}(t,n)),n!==u&&Xp.isTokenOnSameLine(u,c)&&(f&&!r.isSpaceBetweenTokens(u,c)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceBefore",data:{tokenValue:r.value},fix:e=>e.insertTextBefore(r," ")})}(t,c),!f&&r.isSpaceBetweenTokens(u,c)&&function(t,n){const s=r.getTokenBefore(n);e.report({node:t,loc:{start:s.loc.end,end:n.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:n.value},fix:e=>e.removeRange([s.range[1],n.range[0]])})}(t,c))}return{ArrayPattern:a,ArrayExpression:a}}};const Zp=Vp.exports,ed=/^(?:Arrow)?FunctionExpression$/u,td=/^(?:every|filter|find(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort)$/u;function rd(e){return e.reachable}function nd(e){return Zp.isSpecificMemberAccess(e,null,td)}function sd(e){return["from","of","isArray"].includes(e)?"Array.".concat(e):"Array.prototype.".concat(e)}var od={meta:{type:"problem",docs:{description:"enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/rules/array-callback-return"},schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1},checkForEach:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}."}},create(e){const t=e.options[0]||{allowImplicit:!1,checkForEach:!1},r=e.getSourceCode();let n={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function s(s){if(!n.shouldCheck)return;let o=null;if("forEach"===n.arrayMethodName?t.checkForEach&&"ArrowFunctionExpression"===s.type&&s.expression&&(o="expectedNoReturnValue"):"BlockStatement"===s.body.type&&n.codePath.currentSegments.some(rd)&&(o=n.hasReturn?"expectedAtEnd":"expectedInside"),o){const t=Zp.getFunctionNameWithKind(s);e.report({node:s,loc:Zp.getFunctionHeadLoc(s,r),messageId:o,data:{name:t,arrayMethodName:sd(n.arrayMethodName)}})}}return{onCodePathStart(e,t){let r=null;ed.test(t.type)&&(r=function(e){let t=e;for(;t;){const e=t.parent;switch(e.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":t=e;break;case"ReturnStatement":{const r=Zp.getUpperFunction(e);if(null===r||!Zp.isCallee(r))return null;t=r.parent;break}case"CallExpression":return Zp.isArrayFromMethod(e.callee)&&e.arguments.length>=2&&e.arguments[1]===t?"from":nd(e.callee)&&e.arguments.length>=1&&e.arguments[0]===t?Zp.getStaticPropertyName(e.callee):null;default:return null}}return null}(t)),n={arrayMethodName:r,upper:n,codePath:e,hasReturn:!1,shouldCheck:r&&!t.async&&!t.generator,node:t}},onCodePathEnd(){n=n.upper},ReturnStatement(r){if(!n.shouldCheck)return;n.hasReturn=!0;let s=null;"forEach"===n.arrayMethodName?t.checkForEach&&r.argument&&(s="expectedNoReturnValue"):t.allowImplicit||r.argument||(s="expectedReturnValue"),s&&e.report({node:r,messageId:s,data:{name:Zp.getFunctionNameWithKind(n.node),arrayMethodName:sd(n.arrayMethodName)}})},"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}};const id=Vp.exports;var ad={meta:{type:"layout",docs:{description:"enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){const t=e.getSourceCode();function r(e){let t,r=!1,n=!1;const s=e||"always";return s&&"always"!==s&&0!==s.minItems?"never"===s?t=Number.POSITIVE_INFINITY:"consistent"===s?(r=!0,t=Number.POSITIVE_INFINITY):(n=Boolean(s.multiline),t=s.minItems||Number.POSITIVE_INFINITY):t=0,{consistent:r,multiline:n,minItems:t}}function n(n){const s=n.elements,o=function(e){if(e&&(e.ArrayExpression||e.ArrayPattern)){let t,n;return e.ArrayExpression&&(t=r(e.ArrayExpression)),e.ArrayPattern&&(n=r(e.ArrayPattern)),{ArrayExpression:t,ArrayPattern:n}}const t=r(e);return{ArrayExpression:t,ArrayPattern:t}}(e.options[0])[n.type];if(!o)return;let i=!1;o.multiline&&(i=s.filter((e=>null!==e)).some((e=>e.loc.start.line!==e.loc.end.line)));const a=n.elements.map(((e,r)=>{const n=s[r-1];if(0===r||null===e||null===n)return!1;const o=t.getFirstTokenBetween(n,e,id.isCommaToken),i=t.getTokenBefore(o),a=t.getTokenAfter(o);return!id.isTokenOnSameLine(i,a)})).filter((e=>!0===e)).length,c=s.length>=o.minItems||o.multiline&&i||o.consistent&&a>0&&a<n.elements.length;s.forEach(((r,n)=>{const o=s[n-1];if(0===n||null===r||null===o)return;const i=t.getFirstTokenBetween(o,r,id.isCommaToken),a=t.getTokenBefore(i),u=t.getTokenAfter(i);c?id.isTokenOnSameLine(a,u)&&function(r){const n=t.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:n.loc.end,end:r.loc.start},messageId:"missingLineBreak",fix:e=>e.replaceTextRange([n.range[1],r.range[0]],"\n")})}(u):id.isTokenOnSameLine(a,u)||function(r){const n=t.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:n.loc.end,end:r.loc.start},messageId:"unexpectedLineBreak",fix(e){if(id.isCommentToken(n))return null;if(!id.isTokenOnSameLine(n,r))return e.replaceTextRange([n.range[1],r.range[0]]," ");const s=t.getTokenBefore(n,{includeComments:!0});return id.isCommentToken(s)?null:e.replaceTextRange([s.range[1],n.range[0]],"")}})}(u)}))}return{ArrayPattern:n,ArrayExpression:n}}};const cd=Vp.exports;var ud={meta:{type:"suggestion",docs:{description:"require braces around arrow function bodies",recommended:!1,url:"https://eslint.org/docs/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(e){const t=e.options,r="always"===t[0],n=!t[0]||"as-needed"===t[0],s="never"===t[0],o=t[1]&&t[1].requireReturnForObjectLiteral,i=e.getSourceCode();let a=null;function c(e){return!(!e||!e.parent)&&("ForStatement"===e.parent.type&&e.parent.init===e||c(e.parent))}function u(t){const u=t.body;if("BlockStatement"===u.type){const r=u.body;if(1!==r.length&&!s)return;if(n&&o&&"ReturnStatement"===r[0].type&&r[0].argument&&"ObjectExpression"===r[0].argument.type)return;if(s||n&&"ReturnStatement"===r[0].type){let n;n=0===r.length?"unexpectedEmptyBlock":r.length>1?"unexpectedOtherBlock":null===r[0].argument?"unexpectedSingleBlock":cd.isOpeningBraceToken(i.getFirstToken(r[0],{skip:1}))?"unexpectedObjectBlock":"unexpectedSingleBlock",e.report({node:t,loc:u.loc,messageId:n,fix(e){const n=[];if(1!==r.length||"ReturnStatement"!==r[0].type||!r[0].argument||(s=i.getTokenAfter(u))&&"Punctuator"===s.type&&/^[([/`+-]/u.test(s.value))return n;var s;const o=i.getFirstToken(u),l=i.getLastToken(u),p=i.getFirstToken(r[0],1),d=i.getLastToken(r[0]);return i.commentsExistBetween(o,p)||i.commentsExistBetween(d,l)?n.push(e.remove(o),e.remove(l),e.remove(i.getTokenAfter(o))):n.push(e.removeRange([o.range[0],p.range[0]]),e.removeRange([d.range[1],l.range[1]])),(cd.isOpeningBraceToken(p)||"SequenceExpression"===r[0].argument.type||a.hasInOperator&&c(t))&&(cd.isParenthesised(i,r[0].argument)||n.push(e.insertTextBefore(p,"("),e.insertTextAfter(d,")"))),cd.isSemicolonToken(d)&&n.push(e.remove(d)),n}})}}else(r||n&&o&&"ObjectExpression"===u.type)&&e.report({node:t,loc:u.loc,messageId:"expectedBlock",fix(e){const r=[],n=i.getTokenBefore(u,cd.isArrowToken),[s,o]=i.getTokensAfter(n,{count:2}),a=i.getLastToken(t);let c=null;if(cd.isOpeningParenToken(s)&&cd.isOpeningBraceToken(o)){const e=i.getNodeByRangeIndex(o.range[0]);"ObjectExpression"===e.type&&(c=e)}if(c){const t=s,n=o;cd.isTokenOnSameLine(t,n)?r.push(e.replaceText(t,"{return ")):r.push(e.replaceText(t,"{"),e.insertTextBefore(n,"return ")),r.push(e.remove(function(e){let t=e;for(;!cd.isParenthesised(i,t);)t=t.parent;return i.getTokenAfter(t)}(c))),r.push(e.insertTextAfter(a,"}"))}else r.push(e.insertTextBefore(s,"{return ")),r.push(e.insertTextAfter(a,"}"));return r}})}return{"BinaryExpression[operator='in']"(){let e=a;for(;e;)e.hasInOperator=!0,e=e.upper},ArrowFunctionExpression(){a={upper:a,hasInOperator:!1}},"ArrowFunctionExpression:exit"(e){u(e),a=a.upper}}}};const ld=Vp.exports;var pd={meta:{type:"layout",docs:{description:"require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(e){const t="as-needed"===e.options[0],r=t&&e.options[1]&&!0===e.options[1].requireForBlockBody,n=e.getSourceCode();function s(e){return n.getTokenAfter(e.params[0],ld.isClosingParenToken)}return{"ArrowFunctionExpression[params.length=1]"(o){const i=!t||r&&function(e){return"BlockStatement"===e.body.type}(o),a=function(e){const t=n.getTokenBefore(e.params[0]);return t&&ld.isOpeningParenToken(t)&&e.range[0]<=t.range[0]?t:null}(o),c=null!==a,[u]=o.params;i&&!c&&e.report({node:o,messageId:r?"expectedParensBlock":"expectedParens",loc:u.loc,*fix(e){yield e.insertTextBefore(u,"("),yield e.insertTextAfter(u,")")}}),i||!c||"Identifier"!==u.type||u.typeAnnotation||o.returnType||function(e,t){return n.commentsExistBetween(t,s(e))}(o,a)||function(e,t){const r=e.async?1:0;return n.getFirstToken(e,{skip:r})!==t}(o,a)||e.report({node:o,messageId:r?"unexpectedParensInline":"unexpectedParens",loc:u.loc,*fix(e){const t=n.getTokenBefore(a),r=s(o);t&&t.range[1]===a.range[0]&&!ld.canTokensBeAdjacent(t,n.getFirstToken(u))&&(yield e.insertTextBefore(a," ")),yield e.removeRange([a.range[0],u.range[0]]),yield e.removeRange([u.range[1],r.range[1]])}})}}}};const dd=Vp.exports;var fd={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e){const t=Object.assign({},e.options[0]);t.before=!1!==t.before,t.after=!1!==t.after;const r=e.getSourceCode();return{ArrowFunctionExpression:function(n){const s=function(e){const t=r.getTokenBefore(e.body,dd.isArrowToken);return{before:r.getTokenBefore(t),arrow:t,after:r.getTokenAfter(t)}}(n),o=function(e){return{before:e.arrow.range[0]-e.before.range[1],after:e.after.range[0]-e.arrow.range[1]}}(s);t.before?0===o.before&&e.report({node:s.before,messageId:"expectedBefore",fix:e=>e.insertTextBefore(s.arrow," ")}):o.before>0&&e.report({node:s.before,messageId:"unexpectedBefore",fix:e=>e.removeRange([s.before.range[1],s.arrow.range[0]])}),t.after?0===o.after&&e.report({node:s.after,messageId:"expectedAfter",fix:e=>e.insertTextAfter(s.arrow," ")}):o.after>0&&e.report({node:s.after,messageId:"unexpectedAfter",fix:e=>e.removeRange([s.arrow.range[1],s.after.range[0]])})}}}},hd={meta:{type:"suggestion",docs:{description:"enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' used outside of binding context."}},create(e){let t=[];function r(e){t.push(e.range)}function n(){t.pop()}function s(t){const r=t.identifier;e.report({node:r,messageId:"outOfScope",data:{name:r.name}})}return{Program(e){t=[e.range]},BlockStatement:r,"BlockStatement:exit":n,ForStatement:r,"ForStatement:exit":n,ForInStatement:r,"ForInStatement:exit":n,ForOfStatement:r,"ForOfStatement:exit":n,SwitchStatement:r,"SwitchStatement:exit":n,CatchClause:r,"CatchClause:exit":n,StaticBlock:r,"StaticBlock:exit":n,VariableDeclaration:function(r){if("var"!==r.kind)return;const n=t[t.length-1];function o(e){const t=e.identifier.range;return t[0]<n[0]||t[1]>n[1]}const i=e.getDeclaredVariables(r);for(let e=0;e<i.length;++e)i[e].references.filter(o).forEach(s)}}}};const md=Vp.exports;var gd={meta:{type:"layout",docs:{description:"disallow or enforce spaces inside of blocks after opening block and before closing block",recommended:!1,url:"https://eslint.org/docs/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){const t="never"!==e.options[0],r=t?"missing":"extra",n=e.getSourceCode();function s(e,r){return!md.isTokenOnSameLine(e,r)||n.isSpaceBetweenTokens(e,r)===t}function o(o){const i=function(e){return"SwitchStatement"===e.type?e.cases.length>0?n.getTokenBefore(e.cases[0]):n.getLastToken(e,1):"StaticBlock"===e.type?n.getFirstToken(e,{skip:1}):n.getFirstToken(e)}(o),a=n.getLastToken(o),c=n.getTokenAfter(i,{includeComments:!0}),u=n.getTokenBefore(a,{includeComments:!0});if("Punctuator"===i.type&&"{"===i.value&&"Punctuator"===a.type&&"}"===a.value&&c!==a&&(t||"Line"!==c.type)){if(!s(i,c)){let n=i.loc;"extra"===r&&(n={start:i.loc.end,end:c.loc.start}),e.report({node:o,loc:n,messageId:r,data:{location:"after",token:i.value},fix:e=>t?e.insertTextBefore(c," "):e.removeRange([i.range[1],c.range[0]])})}if(!s(u,a)){let n=a.loc;"extra"===r&&(n={start:u.loc.end,end:a.loc.start}),e.report({node:o,loc:n,messageId:r,data:{location:"before",token:a.value},fix:e=>t?e.insertTextAfter(u," "):e.removeRange([u.range[1],a.range[0]])})}}}return{BlockStatement:o,StaticBlock:o,SwitchStatement:o}}};const yd=Vp.exports;var xd={meta:{type:"layout",docs:{description:"enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e){const t=e.options[0]||"1tbs",r=e.options[1]||{},n=e.getSourceCode();function s(e,t){const r=[e.range[1],t.range[0]];return n.text.slice(r[0],r[1]).trim()?null:e=>e.replaceTextRange(r," ")}function o(o,i){const a=n.getTokenBefore(o),c=n.getTokenAfter(o),u=n.getTokenBefore(i),l=r.allowSingleLine&&yd.isTokenOnSameLine(o,i);"allman"===t||yd.isTokenOnSameLine(a,o)||e.report({node:o,messageId:"nextLineOpen",fix:s(a,o)}),"allman"===t&&yd.isTokenOnSameLine(a,o)&&!l&&e.report({node:o,messageId:"sameLineOpen",fix:e=>e.insertTextBefore(o,"\n")}),yd.isTokenOnSameLine(o,c)&&c!==i&&!l&&e.report({node:o,messageId:"blockSameLine",fix:e=>e.insertTextAfter(o,"\n")}),u!==o&&!l&&yd.isTokenOnSameLine(u,i)&&e.report({node:i,messageId:"singleLineClose",fix:e=>e.insertTextBefore(i,"\n")})}function i(r){const o=n.getTokenAfter(r);"1tbs"!==t||yd.isTokenOnSameLine(r,o)||e.report({node:r,messageId:"nextLineClose",fix:s(r,o)}),"1tbs"!==t&&yd.isTokenOnSameLine(r,o)&&e.report({node:r,messageId:"sameLineClose",fix:e=>e.insertTextAfter(r,"\n")})}return{BlockStatement(e){yd.STATEMENT_LIST_PARENTS.has(e.parent.type)||o(n.getFirstToken(e),n.getLastToken(e))},StaticBlock(e){o(n.getFirstToken(e,{skip:1}),n.getLastToken(e))},ClassBody(e){o(n.getFirstToken(e),n.getLastToken(e))},SwitchStatement(e){const t=n.getLastToken(e);o(n.getTokenBefore(e.cases.length?e.cases[0]:t),t)},IfStatement(e){"BlockStatement"===e.consequent.type&&e.alternate&&i(n.getLastToken(e.consequent))},TryStatement(e){i(n.getLastToken(e.block)),e.handler&&e.finalizer&&i(n.getLastToken(e.handler.body))}}}},bd={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(e){const t=e.options[0]||["callback","cb","next"],r=e.getSourceCode();function n(e,t){return e.parent?-1===t.indexOf(e.parent.type)?n(e.parent,t):e.parent:null}function s(e){if("Identifier"===e.type)return!0;if("MemberExpression"===e.type){if("Identifier"===e.object.type)return!0;if("MemberExpression"===e.object.type)return s(e.object)}return!1}function o(e){return s(e.callee)&&t.indexOf(r.getText(e.callee))>-1}function i(e,t){return!(!t||"ExpressionStatement"!==t.type)&&(t.expression===e||("BinaryExpression"===t.expression.type||"LogicalExpression"===t.expression.type)&&t.expression.right===e)}return{CallExpression(t){if(!o(t))return;const r=n(t,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if("ReturnStatement"!==r.type&&"ArrowFunctionExpression"!==r.type){if("BlockStatement"===r.type){const e=r.body[r.body.length-1];if(i(t,e)){const e=r.parent.type;if("FunctionExpression"===e||"FunctionDeclaration"===e||"ArrowFunctionExpression"===e)return}if("ReturnStatement"===e.type&&i(t,r.body[r.body.length-2]))return}n(t,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&e.report({node:t,messageId:"missingReturn"})}}}}},vd={meta:{type:"suggestion",docs:{description:"enforce camelcase naming convention",recommended:!1,url:"https://eslint.org/docs/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImports:{type:"boolean",default:!1},ignoreGlobals:{type:"boolean",default:!1},properties:{enum:["always","never"]},allow:{type:"array",items:[{type:"string"}],minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(e){const t=e.options[0]||{},r="never"===t.properties?"never":"always",n=t.ignoreDestructuring,s=t.ignoreImports,o=t.ignoreGlobals,i=t.allow||[],a=new Set;function c(e){return!function(e){const t=e.replace(/^_+|_+$/gu,"");return t.includes("_")&&t!==t.toUpperCase()}(e)||function(e){return i.some((t=>e===t||e.match(new RegExp(t,"u"))))}(e)}function u(e){const t=e.name,r="AssignmentPattern"===e.parent.type?e.parent:e,n=r.parent;switch(n.type){case"Property":return"ObjectPattern"===n.parent.type&&n.value===r&&!n.computed&&"Identifier"===n.key.type&&n.key.name===t;case"ImportSpecifier":return n.local===e&&n.imported.name===t;default:return!1}}function l(t){a.has(t.range[0])||(a.add(t.range[0]),e.report({node:t,messageId:"PrivateIdentifier"===t.type?"notCamelCasePrivate":"notCamelCase",data:{name:t.name}}))}function p(e){"CallExpression"!==e.parent.type&&"NewExpression"!==e.parent.type&&("AssignmentPattern"===e.parent.type&&e.parent.right===e||n&&u(e)||l(e))}return{Program(){const t=e.getScope();if(!o)for(const e of t.variables)if(!(e.identifiers.length>0||c(e.name)))for(const t of e.references)p(t.identifier);for(const e of t.through){const t=e.identifier;c(t.name)||p(t)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](t){for(const r of e.getDeclaredVariables(t)){if(c(r.name))continue;const e=r.identifiers[0];n&&u(e)||l(e);for(const e of r.references)e.init||p(e.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](e){"never"===r||c(e.name)||l(e)},"MemberExpression[computed!=true] > Identifier.property"(e){"never"!==r&&function(e){const t=e.parent;switch(t.type){case"AssignmentExpression":case"AssignmentPattern":return t.left===e;case"Property":return"ObjectPattern"===t.parent.type&&t.value===e;case"ArrayPattern":case"RestElement":return!0;default:return!1}}(e.parent)&&!c(e.name)&&l(e)},ImportDeclaration(t){for(const r of e.getDeclaredVariables(t)){if(c(r.name))continue;const e=r.identifiers[0];s&&u(e)||l(e);for(const e of r.references)p(e.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](e){c(e.name)||l(e)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](e){c(e.name)||l(e)}}}};const Ed=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/u,Cd=Vp.exports.COMMENTS_IGNORE_PATTERN,Sd=/\s/gu,kd=/^\s*[^:/?#\s]+:\/\/[^?#]/u,Ad={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},Dd={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function wd(e,t){return Object.assign({},Dd,e[t]||e)}var Fd={meta:{type:"suggestion",docs:{description:"enforce or disallow capitalization of the first letter of a comment",recommended:!1,url:"https://eslint.org/docs/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[Ad,{type:"object",properties:{line:Ad,block:Ad},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(e){const t=e.options[0]||"always",r=function(e={}){return{Line:wd(e,"line"),Block:wd(e,"block")}}(e.options[1]),n=e.getSourceCode();function s(e,r){if(Cd.test(e.value))return!0;const s=e.value.replace(/\*/gu,"");if(r.ignorePatternRegExp&&r.ignorePatternRegExp.test(s))return!0;if(r.ignoreInlineComments&&function(e){const t=n.getTokenBefore(e,{includeComments:!0}),r=n.getTokenAfter(e,{includeComments:!0});return Boolean(t&&r&&e.loc.start.line===t.loc.end.line&&e.loc.end.line===r.loc.start.line)}(e))return!0;if(r.ignoreConsecutiveComments&&function(e){const t=n.getTokenBefore(e,{includeComments:!0});return Boolean(t&&-1!==["Block","Line"].indexOf(t.type))}(e))return!0;if(kd.test(s))return!0;const o=s.replace(Sd,"");if(0===o.length)return!0;const i=o[0];if(!Ed.test(i))return!0;const a=i!==i.toLocaleLowerCase(),c=i!==i.toLocaleUpperCase();return("always"!==t||!c)&&("never"!==t||!a)}function o(n){const o=r[n.type];if(!s(n,o)){const r="always"===t?"unexpectedLowercaseComment":"unexpectedUppercaseComment";e.report({node:null,loc:n.loc,messageId:r,fix(e){const r=n.value.match(Ed);return e.replaceTextRange([n.range[0]+r.index+2,n.range[0]+r.index+3],"always"===t?r[0].toLocaleUpperCase():r[0].toLocaleLowerCase())}})}}return function(e){Object.keys(e).forEach((t=>{const r=e[t].ignorePattern;if(r){const n=RegExp(`^\\s*(?:${r})`,"u");e[t].ignorePatternRegExp=n}}))}(r),{Program(){n.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(o)}}}};const Td=Vp.exports;var Pd={meta:{type:"suggestion",docs:{description:"enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(e){const t=Object.assign({},e.options[0]),r=!1!==t.enforceForClassFields,n=new Set(t.exceptMethods||[]),s=[];function o(){s.push(!1)}function i(){return s.pop()}function a(){o()}function c(e){if(function(e){switch(e.type){case"MethodDefinition":return!e.static&&"constructor"!==e.kind;case"PropertyDefinition":return!e.static&&r;default:return!1}}(e)){if(e.computed)return!0;const t="PrivateIdentifier"===e.key.type?"#":"",r="Literal"===e.key.type?Td.getStaticStringValue(e.key):e.key.name||"";return!n.has(t+r)}return!1}function u(t){const r=i();c(t.parent)&&!r&&e.report({node:t,loc:Td.getFunctionHeadLoc(t,e.getSourceCode()),messageId:"missingThis",data:{name:Td.getFunctionNameWithKind(t)}})}function l(){s.length&&(s[s.length-1]=!0)}return{FunctionDeclaration:a,"FunctionDeclaration:exit":u,FunctionExpression:a,"FunctionExpression:exit":u,"PropertyDefinition > *.key:exit":o,"PropertyDefinition:exit":i,StaticBlock:o,"StaticBlock:exit":i,ThisExpression:l,Super:l,...r&&{"PropertyDefinition > ArrowFunctionExpression.value":a,"PropertyDefinition > ArrowFunctionExpression.value:exit":u}}}};const Id=Vp.exports,_d=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});var Bd={meta:{type:"layout",docs:{description:"require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(e){const t=(r=e.options[0],n=e.parserOptions.ecmaVersion,"string"==typeof r?{arrays:r,objects:r,imports:r,exports:r,functions:!n||n<8?"ignore":r}:"object"==typeof r&&null!==r?{arrays:r.arrays||_d.arrays,objects:r.objects||_d.objects,imports:r.imports||_d.imports,exports:r.exports||_d.exports,functions:r.functions||_d.functions}:_d);var r,n;const s=e.getSourceCode();function o(e){function t(e){return e[e.length-1]}switch(e.type){case"ObjectExpression":case"ObjectPattern":return t(e.properties);case"ArrayExpression":case"ArrayPattern":return t(e.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return t(e.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return t(e.params);case"CallExpression":case"NewExpression":return t(e.arguments);default:return null}}function i(e,t){switch(e.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return s.getLastToken(e,1);default:{const e=s.getTokenAfter(t);return Id.isCommaToken(e)?e:s.getLastToken(t)}}}function a(e){const t=o(e);if(!t)return!1;const r=i(e,t);return s.getTokenAfter(r).loc.end.line!==r.loc.end.line}function c(t){const r=o(t);if(!r||"ImportDeclaration"===t.type&&"ImportSpecifier"!==r.type)return;const n=i(t,r);Id.isCommaToken(n)&&e.report({node:r,loc:n.loc,messageId:"unexpected",fix:e=>e.remove(n)})}function u(t){const r=o(t);if(!r||"ImportDeclaration"===t.type&&"ImportSpecifier"!==r.type)return;if(!function(e){return!("RestElement"===e.type||"RestProperty"===e.type||"ExperimentalRestProperty"===e.type)}(r))return void c(t);const n=i(t,r);","!==n.value&&e.report({node:r,loc:{start:n.loc.end,end:Id.getNextLocation(s,n.loc.end)},messageId:"missing",fix:e=>e.insertTextAfter(n,",")})}const l={always:u,"always-multiline":function(e){a(e)?u(e):c(e)},"only-multiline":function(e){a(e)||c(e)},never:c,ignore:()=>{}};return{ObjectExpression:l[t.objects],ObjectPattern:l[t.objects],ArrayExpression:l[t.arrays],ArrayPattern:l[t.arrays],ImportDeclaration:l[t.imports],ExportNamedDeclaration:l[t.exports],FunctionDeclaration:l[t.functions],FunctionExpression:l[t.functions],ArrowFunctionExpression:l[t.functions],CallExpression:l[t.functions],NewExpression:l[t.functions]}}};const Od=Vp.exports;var Ld={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(e){const t=e.getSourceCode(),r=t.tokensAndComments,n={before:!!e.options[0]&&e.options[0].before,after:!e.options[0]||e.options[0].after},s=[];function o(t,r,s){e.report({node:t,fix(e){if(n[r])return"before"===r?e.insertTextBefore(t," "):e.insertTextAfter(t," ");let o,i;return"before"===r?(o=s.range[1],i=t.range[0]):(o=t.range[1],i=s.range[0]),e.replaceTextRange([o,i],"")},messageId:n[r]?"missing":"unexpected",data:{loc:r}})}function i(e){let r=t.getFirstToken(e);e.elements.forEach((e=>{let n;null===e?(n=t.getTokenAfter(r),Od.isCommaToken(n)&&s.push(n)):n=t.getTokenAfter(e),r=n}))}return{"Program:exit"(){r.forEach(((e,i)=>{if(!Od.isCommaToken(e))return;if(e&&"JSXText"===e.type)return;const a=r[i-1],c=r[i+1];var u,l;u={comma:e,left:Od.isCommaToken(a)||s.includes(e)?null:a,right:Od.isCommaToken(c)?null:c},l=e,u.left&&Od.isTokenOnSameLine(u.left,u.comma)&&n.before!==t.isSpaceBetweenTokens(u.left,u.comma)&&o(l,"before",u.left),u.right&&Od.isClosingParenToken(u.right)||u.right&&!n.after&&"Line"===u.right.type||u.right&&Od.isTokenOnSameLine(u.comma,u.right)&&n.after!==t.isSpaceBetweenTokens(u.comma,u.right)&&o(l,"after",u.right)}))},ArrayExpression:i,ArrayPattern:i}}};const jd=Vp.exports;var Nd={meta:{type:"layout",docs:{description:"enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){const t=e.options[0]||"last",r=e.getSourceCode(),n={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(2===e.options.length&&Object.prototype.hasOwnProperty.call(e.options[1],"exceptions")){const t=Object.keys(e.options[1].exceptions);for(let r=0;r<t.length;r++)n[t[r]]=e.options[1].exceptions[t[r]]}function s(e,t,n,s){const o=r.text.slice(t.range[1],n.range[0])+r.text.slice(n.range[1],s.range[0]),i=[t.range[1],s.range[0]];return function(t){return t.replaceTextRange(i,function(e,t){switch(e){case"between":return","+t.replace(jd.LINEBREAK_MATCHER,"");case"first":return t+",";case"last":return","+t;default:return""}}(e,o))}}function o(n,o,i,a){if(jd.isTokenOnSameLine(o,i)&&jd.isTokenOnSameLine(n,o));else if(jd.isTokenOnSameLine(o,i)||jd.isTokenOnSameLine(n,o))"first"!==t||jd.isTokenOnSameLine(o,i)?"last"===t&&jd.isTokenOnSameLine(o,i)&&e.report({node:a,loc:o.loc,messageId:"expectedCommaLast",fix:s(t,n,o,i)}):e.report({node:a,loc:o.loc,messageId:"expectedCommaFirst",fix:s(t,n,o,i)});else{const c=r.getCommentsAfter(o)[0],u=c&&"Block"===c.type&&jd.isTokenOnSameLine(o,c)?t:"between";e.report({node:a,loc:o.loc,messageId:"unexpectedLineBeforeAndAfterComma",fix:s(u,n,o,i)})}}function i(e,t){const n=e[t],s="ArrayExpression"===e.type||"ArrayPattern"===e.type;if(n.length>1||s){let t=r.getFirstToken(e);if(n.forEach((e=>{const n=e?r.getTokenBefore(e):t,s=e?r.getFirstToken(e):r.getTokenAfter(n),i=e||s;if(jd.isCommaToken(n)&&o(t,n,s,i),e){const n=r.getTokenAfter(e,jd.isNotClosingParenToken);t=n?r.getTokenBefore(n):r.ast.tokens[r.ast.tokens.length-1]}else t=s})),s){const t=r.getLastToken(e),n=r.getTokenBefore(t);jd.isCommaToken(n)&&o(r.getTokenBefore(n),n,t,t)}}}const a={};return n.VariableDeclaration||(a.VariableDeclaration=function(e){i(e,"declarations")}),n.ObjectExpression||(a.ObjectExpression=function(e){i(e,"properties")}),n.ObjectPattern||(a.ObjectPattern=function(e){i(e,"properties")}),n.ArrayExpression||(a.ArrayExpression=function(e){i(e,"elements")}),n.ArrayPattern||(a.ArrayPattern=function(e){i(e,"elements")}),n.FunctionDeclaration||(a.FunctionDeclaration=function(e){i(e,"params")}),n.FunctionExpression||(a.FunctionExpression=function(e){i(e,"params")}),n.ArrowFunctionExpression||(a.ArrowFunctionExpression=function(e){i(e,"params")}),n.CallExpression||(a.CallExpression=function(e){i(e,"arguments")}),n.ImportDeclaration||(a.ImportDeclaration=function(e){i(e,"specifiers")}),n.NewExpression||(a.NewExpression=function(e){i(e,"arguments")}),a}};var Rd={upperCaseFirst:function(e){return e.length<=1?e.toUpperCase():e[0].toUpperCase()+e.slice(1)}};const Md=Vp.exports,{upperCaseFirst:Vd}=Rd;var $d={meta:{type:"suggestion",docs:{description:"enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=20;"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"maximum")||Object.prototype.hasOwnProperty.call(t,"max"))?r=t.maximum||t.max:"number"==typeof t&&(r=t);const n=[];function s(){n[n.length-1]++}return{onCodePathStart(){n.push(1)},CatchClause:s,ConditionalExpression:s,LogicalExpression:s,ForStatement:s,ForInStatement:s,ForOfStatement:s,IfStatement:s,WhileStatement:s,DoWhileStatement:s,"SwitchCase[test]":s,AssignmentExpression(e){Md.isLogicalAssignmentOperator(e.operator)&&s()},onCodePathEnd(t,s){const o=n.pop();if(("function"===t.origin||"class-field-initializer"===t.origin||"class-static-block"===t.origin)&&o>r){let n;n="class-field-initializer"===t.origin?"class field initializer":"class-static-block"===t.origin?"class static block":Md.getFunctionNameWithKind(s),e.report({node:s,messageId:"complex",data:{name:Vd(n),complexity:o,max:r}})}}}}};const Ud=Vp.exports;var qd={meta:{type:"layout",docs:{description:"enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){const t=e.getSourceCode(),r="always"===e.options[0],n=!e.options[1]||e.options[1].enforceForClassMembers;function s(n){return function(s){if(!s.computed)return;const o=s[n],i=t.getTokenBefore(o,Ud.isOpeningBracketToken),a=t.getTokenAfter(i,{includeComments:!0}),c=t.getTokenAfter(o,Ud.isClosingBracketToken),u=t.getTokenBefore(c,{includeComments:!0});Ud.isTokenOnSameLine(i,a)&&(r?!t.isSpaceBetweenTokens(i,a)&&Ud.isTokenOnSameLine(i,a)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceAfter",data:{tokenValue:r.value},fix:e=>e.insertTextAfter(r," ")})}(s,i):t.isSpaceBetweenTokens(i,a)&&function(t,r,n){e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:r.value},fix:e=>e.removeRange([r.range[1],n.range[0]])})}(s,i,a)),Ud.isTokenOnSameLine(u,c)&&(r?!t.isSpaceBetweenTokens(u,c)&&Ud.isTokenOnSameLine(u,c)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceBefore",data:{tokenValue:r.value},fix:e=>e.insertTextBefore(r," ")})}(s,c):t.isSpaceBetweenTokens(u,c)&&function(t,r,n){e.report({node:t,loc:{start:n.loc.end,end:r.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:r.value},fix:e=>e.removeRange([n.range[1],r.range[0]])})}(s,c,u))}}const o={Property:s("key"),MemberExpression:s("property")};return n&&(o.MethodDefinition=o.PropertyDefinition=o.Property),o}};const Wd=Vp.exports,{upperCaseFirst:zd}=Rd;function Gd(e){return!e.reachable}var Hd={meta:{type:"suggestion",docs:{description:"require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(e){const t=!0===(e.options[0]||{}).treatUndefinedAsUnspecified;let r=null;function n(t){let n,s;!r.hasReturnValue||r.codePath.currentSegments.every(Gd)||Wd.isES5Constructor(t)||function(e){return"FunctionExpression"===e.type&&e.parent&&"MethodDefinition"===e.parent.type&&"constructor"===e.parent.kind}(t)||("Program"===t.type?(n={line:1,column:0},s="program"):n="ArrowFunctionExpression"===t.type?e.getSourceCode().getTokenBefore(t.body,Wd.isArrowToken).loc:"MethodDefinition"===t.parent.type||"Property"===t.parent.type&&t.parent.method?t.parent.key.loc:(t.id||e.getSourceCode().getFirstToken(t)).loc,s||(s=Wd.getFunctionNameWithKind(t)),e.report({node:t,loc:n,messageId:"missingReturn",data:{name:s}}))}return{onCodePathStart(e,t){r={upper:r,codePath:e,hasReturn:!1,hasReturnValue:!1,messageId:"",node:t}},onCodePathEnd(){r=r.upper},ReturnStatement(n){const s=n.argument;let o=Boolean(s);t&&o&&(o=!Wd.isSpecificId(s,"undefined")&&"void"!==s.operator),r.hasReturn?r.hasReturnValue!==o&&e.report({node:n,messageId:r.messageId,data:r.data}):(r.hasReturn=!0,r.hasReturnValue=o,r.messageId=o?"missingReturnValue":"unexpectedReturnValue",r.data={name:"Program"===r.node.type?"Program":zd(Wd.getFunctionNameWithKind(r.node))})},"Program:exit":n,"FunctionDeclaration:exit":n,"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n}}},Kd={meta:{type:"suggestion",docs:{description:"enforce consistent naming when capturing the current execution context",recommended:!1,url:"https://eslint.org/docs/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(e){let t=[];function r(t,r){e.report({node:t,messageId:"aliasNotAssignedToThis",data:{name:r}})}function n(n,s,o){const i="ThisExpression"===o.type;-1!==t.indexOf(s)?(!i||n.operator&&"="!==n.operator)&&r(n,s):i&&e.report({node:n,messageId:"unexpectedAlias",data:{name:s}})}function s(){const n=e.getScope();t.forEach((e=>{!function(e,t){const n=t.set.get(e);n&&(n.defs.some((e=>"VariableDeclarator"===e.node.type&&null!==e.node.init))||n.references.some((e=>{const r=e.writeExpr;return e.from===t&&r&&"ThisExpression"===r.type&&"="===r.parent.operator}))||n.defs.map((e=>e.node)).forEach((t=>{r(t,e)})))}(e,n)}))}return 0===e.options.length?t.push("that"):t=e.options,{"Program:exit":s,"FunctionExpression:exit":s,"FunctionDeclaration:exit":s,VariableDeclarator(e){const t=e.id,r="ArrayPattern"===t.type||"ObjectPattern"===t.type;null===e.init||r||n(e,t.name,e.init)},AssignmentExpression(e){"Identifier"===e.left.type&&n(e,e.left.name,e.right)}}}};function Jd(e){return e.reachable}function Qd(e){if(!e)return!1;switch(e.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return"undefined"!==e.name;case"AssignmentExpression":return["=","&&="].includes(e.operator)?Qd(e.right):!!["||=","??="].includes(e.operator)&&(Qd(e.left)||Qd(e.right));case"LogicalExpression":return"&&"===e.operator?Qd(e.right):Qd(e.left)||Qd(e.right);case"ConditionalExpression":return Qd(e.alternate)||Qd(e.consequent);case"SequenceExpression":return Qd(e.expressions[e.expressions.length-1]);default:return!1}}var Xd={meta:{type:"problem",docs:{description:"require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor.",unexpected:"Unexpected 'super()'."}},create(e){let t=null,r=Object.create(null);function n(e){return e.reachable&&r[e.id].calledInSomePaths}function s(e){return!(1!==e.nextSegments.length||!e.nextSegments[0].isLoopedPrevSegment(e))||e.reachable&&r[e.id].calledInEveryPaths}return{onCodePathStart(e,r){if(function(e){return"FunctionExpression"===e.type&&"MethodDefinition"===e.parent.type&&"constructor"===e.parent.kind}(r)){const n=r.parent.parent.parent.superClass;t={upper:t,isConstructor:!0,hasExtends:Boolean(n),superIsConstructor:Qd(n),codePath:e}}else t={upper:t,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:e}},onCodePathEnd(r,o){const i=t.hasExtends;if(t=t.upper,!i)return;const a=r.returnedSegments,c=a.every(s),u=a.some(n);c||e.report({messageId:u?"missingSome":"missingAll",node:o.parent})},onCodePathSegmentStart(e){if(!(t&&t.isConstructor&&t.hasExtends))return;const o=r[e.id]={calledInSomePaths:!1,calledInEveryPaths:!1,validNodes:[]},i=e.prevSegments;i.length>0&&(o.calledInSomePaths=i.some(n),o.calledInEveryPaths=i.every(s))},onCodePathSegmentLoop(o,i){if(!(t&&t.isConstructor&&t.hasExtends))return;const a=i.prevSegments.length>=2;t.codePath.traverseSegments({first:i,last:o},(t=>{const o=r[t.id],i=t.prevSegments;if(o.calledInSomePaths=i.some(n),o.calledInEveryPaths=i.every(s),o.calledInSomePaths||a){const t=o.validNodes;o.validNodes=[];for(let r=0;r<t.length;++r){const n=t[r];e.report({messageId:"duplicate",node:n})}}}))},"CallExpression:exit"(n){if(t&&t.isConstructor&&"Super"===n.callee.type)if(t.hasExtends){const s=t.codePath.currentSegments;let o=!1,i=null;for(let e=0;e<s.length;++e){const t=s[e];t.reachable&&(i=r[t.id],o=o||i.calledInSomePaths,i.calledInSomePaths=i.calledInEveryPaths=!0)}i&&(o?e.report({messageId:"duplicate",node:n}):t.superIsConstructor?i.validNodes.push(n):e.report({messageId:"badSuper",node:n}))}else t.codePath.currentSegments.some(Jd)&&e.report({messageId:"unexpected",node:n})},ReturnStatement(e){if(!(t&&t.isConstructor&&t.hasExtends))return;if(!e.argument)return;const n=t.codePath.currentSegments;for(let e=0;e<n.length;++e){const t=n[e];if(t.reachable){const e=r[t.id];e.calledInSomePaths=e.calledInEveryPaths=!0}}},"Program:exit"(){r=Object.create(null)}}}};const Yd=Vp.exports;var Zd={meta:{type:"suggestion",docs:{description:"enforce consistent brace style for all control statements",recommended:!1,url:"https://eslint.org/docs/rules/curly"},schema:{anyOf:[{type:"array",items:[{enum:["all"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["multi","multi-line","multi-or-nest"]},{enum:["consistent"]}],minItems:0,maxItems:2}]},fixable:"code",messages:{missingCurlyAfter:"Expected { after '{{name}}'.",missingCurlyAfterCondition:"Expected { after '{{name}}' condition.",unexpectedCurlyAfter:"Unnecessary { after '{{name}}'.",unexpectedCurlyAfterCondition:"Unnecessary { after '{{name}}' condition."}},create(e){const t="multi"===e.options[0],r="multi-line"===e.options[0],n="multi-or-nest"===e.options[0],s="consistent"===e.options[1],o=e.getSourceCode();function i(e){if("EmptyStatement"===e.type)return!0;const t=o.getFirstToken(e),r=o.getLastToken(e),n=Yd.isSemicolonToken(r)?o.getTokenBefore(r):r;return t.loc.start.line===n.loc.end.line}function a(e){switch(e.type){case"IfStatement":return!e.alternate||a(e.alternate);case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return a(e.body);default:return!1}}function c(e){const t=e.body[0];return function(e){return"VariableDeclaration"===e.type?"const"===e.kind||"let"===e.kind:"FunctionDeclaration"===e.type||"ClassDeclaration"===e.type}(t)||a(t)&&function(e){const t=o.getTokenAfter(e);return Boolean(t)&&"else"===(r=t).value&&"Keyword"===r.type;var r}(e)}function u(s,a,u,l){const p="BlockStatement"===a.type;let d=null;if(p&&(1!==a.body.length||c(a)))d=!0;else if(t)d=!1;else if(r)(function(e){const t=o.getTokenBefore(e),r=o.getLastToken(e),n=Yd.isSemicolonToken(r)?o.getTokenBefore(r):r;return t.loc.start.line===n.loc.end.line})(a)||(d=!0);else if(n)if(p){const e=a.body[0],t=o.getCommentsBefore(e);d=!i(e)||t.length>0}else d=!i(a);else d=!0;return{actual:p,expected:d,check(){null!==this.expected&&this.expected!==this.actual&&(this.expected?e.report({node:s,loc:a.loc,messageId:l&&l.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:u},fix:e=>e.replaceText(a,`{${o.getText(a)}}`)}):e.report({node:s,loc:a.loc,messageId:l&&l.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:u},fix(e){const t="DoWhileStatement"===s.type&&o.getTokenBefore(a).range[1]===a.range[0]&&!Yd.canTokensBeAdjacent("do",o.getFirstToken(a,{skip:1})),r=o.getFirstToken(a),n=o.getLastToken(a),i=o.getTokenBefore(n);if(function(e){const t=o.getTokenBefore(e),r=o.getTokenAfter(e),n=o.getNodeByRangeIndex(t.range[0]);return!(Yd.isSemicolonToken(t)||!r||"BlockStatement"===n.type&&"FunctionExpression"!==n.parent.type&&"ArrowFunctionExpression"!==n.parent.type||t.loc.end.line!==r.loc.start.line&&!/^[([/`+-]/u.test(r.value)&&("Punctuator"!==t.type||"++"!==t.value&&"--"!==t.value))}(n))return null;const c=o.getText().slice(r.range[1],i.range[0])+o.getText(i)+o.getText().slice(i.range[1],n.range[0]);return e.replaceText(a,(t?" ":"")+c)}}))}}}return{IfStatement(e){const t=e.parent;"IfStatement"===t.type&&t.alternate===e||function(e){const t=[];for(let r=e;r;r=r.alternate)if(t.push(u(r,r.consequent,"if",{condition:!0})),r.alternate&&"IfStatement"!==r.alternate.type){t.push(u(r,r.alternate,"else"));break}if(s){const e=t.some((e=>null!==e.expected?e.expected:e.actual));t.forEach((t=>{t.expected=e}))}return t}(e).forEach((e=>{e.check()}))},WhileStatement(e){u(e,e.body,"while",{condition:!0}).check()},DoWhileStatement(e){u(e,e.body,"do").check()},ForStatement(e){u(e,e.body,"for",{condition:!0}).check()},ForInStatement(e){u(e,e.body,"for-in").check()},ForOfStatement(e){u(e,e.body,"for-of").check()}}}};const ef=/^no default$/iu;var tf={meta:{type:"suggestion",docs:{description:"require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){const t=e.options[0]||{},r=t.commentPattern?new RegExp(t.commentPattern,"u"):ef,n=e.getSourceCode();function s(e){return e[e.length-1]}return{SwitchStatement(t){if(!t.cases.length)return;if(!t.cases.some((e=>null===e.test))){let o;const i=s(t.cases),a=n.getCommentsAfter(i);a.length&&(o=s(a)),o&&r.test(o.value.trim())||e.report({node:t,messageId:"missingDefaultCase"})}}}}},rf={meta:{type:"suggestion",docs:{description:"enforce default clauses in switch statements to be last",recommended:!1,url:"https://eslint.org/docs/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create:e=>({SwitchStatement(t){const r=t.cases,n=r.findIndex((e=>null===e.test));if(-1!==n&&n!==r.length-1){const t=r[n];e.report({node:t,messageId:"notLast"})}}})},nf={meta:{type:"suggestion",docs:{description:"enforce default parameters to be last",recommended:!1,url:"https://eslint.org/docs/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(e){function t(t){let r=!1;for(let n=t.params.length-1;n>=0;n-=1){const s=t.params[n];"AssignmentPattern"===s.type||"RestElement"===s.type?r&&"AssignmentPattern"===s.type&&e.report({node:s,messageId:"shouldBeLast"}):r=!0}}return{FunctionDeclaration:t,FunctionExpression:t,ArrowFunctionExpression:t}}};const sf=Vp.exports;var of={meta:{type:"layout",docs:{description:"enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){const t=e.options[0],r="object"===t||!t,n=e.getSourceCode();return{MemberExpression:function(t){t.computed||function(t){const s=t.property,o=n.getTokenBefore(s);if(r){const r=n.getTokenBefore(o);sf.isTokenOnSameLine(r,o)||e.report({node:t,loc:o.loc,messageId:"expectedDotAfterObject",*fix(e){o.value.startsWith(".")&&sf.isDecimalIntegerNumericToken(r)?yield e.insertTextAfter(r," "+o.value):yield e.insertTextAfter(r,o.value),yield e.remove(o)}})}else sf.isTokenOnSameLine(o,s)||e.report({node:t,loc:o.loc,messageId:"expectedDotBeforeProperty",*fix(e){yield e.remove(o),yield e.insertTextBefore(s,o.value)}})}(t)}}}},af=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"];const cf=Vp.exports,uf=af,lf=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,pf=new Set(["string","boolean"]);var df={meta:{type:"suggestion",docs:{description:"enforce dot notation whenever possible",recommended:!1,url:"https://eslint.org/docs/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean",default:!0},allowPattern:{type:"string",default:""}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(e){const t=e.options[0]||{},r=void 0===t.allowKeywords||t.allowKeywords,n=e.getSourceCode();let s;function o(t,o){if(lf.test(o)&&(r||-1===uf.indexOf(String(o)))&&(!s||!s.test(o))){const r="Literal"===t.property.type?JSON.stringify(o):`\`${o}\``;e.report({node:t.property,messageId:"useDot",data:{key:r},*fix(e){const r=n.getTokenAfter(t.object,cf.isOpeningBracketToken),s=n.getLastToken(t),i=n.getTokenAfter(t);n.commentsExistBetween(r,s)||(t.optional||(yield e.insertTextBefore(r,cf.isDecimalInteger(t.object)?" .":".")),yield e.replaceTextRange([r.range[0],s.range[1]],o),i&&s.range[1]===i.range[0]&&!cf.canTokensBeAdjacent(String(o),i)&&(yield e.insertTextAfter(t," ")))}})}}return t.allowPattern&&(s=new RegExp(t.allowPattern,"u")),{MemberExpression(t){t.computed&&"Literal"===t.property.type&&(pf.has(typeof t.property.value)||cf.isNullLiteral(t.property))&&o(t,t.property.value),t.computed&&"TemplateLiteral"===t.property.type&&0===t.property.expressions.length&&o(t,t.property.quasis[0].value.cooked),r||t.computed||"Identifier"!==t.property.type||-1===uf.indexOf(String(t.property.name))||e.report({node:t.property,messageId:"useBrackets",data:{key:t.property.name},*fix(e){const r=n.getTokenBefore(t.property);("Identifier"!==t.object.type||"let"!==t.object.name||t.optional)&&(n.commentsExistBetween(r,t.property)||(t.optional||(yield e.remove(r)),yield e.replaceText(t.property,`["${t.property.name}"]`)))}})}}}},ff={meta:{type:"layout",docs:{description:"require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create:e=>({Program:function(t){const r=e.getSourceCode(),n=r.getText(),s={column:r.lines[r.lines.length-1].length,line:r.lines.length},o=n.endsWith("\n");if(!n.length)return;let i=e.options[0]||"always",a=!1;if("unix"===i&&(i="always"),"windows"===i&&(i="always",a=!0),"always"!==i||o){if("never"===i&&o){const n=r.lines[r.lines.length-2];e.report({node:t,loc:{start:{line:r.lines.length-1,column:n.length},end:{line:r.lines.length,column:0}},messageId:"unexpected",fix(e){const t=/(?:\r?\n)+$/u.exec(r.text).index,n=r.text.length;return e.replaceTextRange([t,n],"")}})}}else e.report({node:t,loc:s,messageId:"missing",fix:e=>e.insertTextAfterRange([0,n.length],a?"\r\n":"\n")})}})};const hf=Vp.exports;var mf={meta:{type:"suggestion",docs:{description:"require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'."}},create(e){const t=e.options[0]||"always",r=e.options[1]||{},n=e.getSourceCode(),s="always"===t?r.null||"always":"ignore",o="always"===s,i="never"===s;function a(e){return"UnaryExpression"===e.type&&"typeof"===e.operator}function c(e){return a(e.left)||a(e.right)}function u(e){return"Literal"===e.left.type&&"Literal"===e.right.type&&typeof e.left.value==typeof e.right.value}function l(t,r){const s=n.getFirstTokenBetween(t.left,t.right,(e=>e.value===t.operator));e.report({node:t,loc:s.loc,messageId:"unexpected",data:{expectedOperator:r,actualOperator:t.operator},fix:e=>c(t)||u(t)?e.replaceText(s,r):null})}return{BinaryExpression(e){const r=function(e){return hf.isNullLiteral(e.right)||hf.isNullLiteral(e.left)}(e);"=="===e.operator||"!="===e.operator?"smart"===t&&(c(e)||u(e)||r)||!o&&r||l(e,e.operator+"="):i&&r&&l(e,e.operator.slice(0,-1))}}}},gf={meta:{type:"problem",docs:{description:'enforce "for" loop update clause moving the counter in the right direction.',recommended:!0,url:"https://eslint.org/docs/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){function t(t){e.report({node:t,messageId:"incorrectDirection"})}function r(e,t){if("UnaryExpression"===e.right.type){if("-"===e.right.operator)return-t}else if("Identifier"===e.right.type)return 0;return t}return{ForStatement(e){if(e.test&&"BinaryExpression"===e.test.type&&"Identifier"===e.test.left.type&&e.update){const n=e.test.left.name,s=e.test.operator,o=e.update;let i;if("<"===s||"<="===s)i=-1;else{if(">"!==s&&">="!==s)return;i=1}"UpdateExpression"===o.type?function(e,t){if("Identifier"===e.argument.type&&e.argument.name===t){if("++"===e.operator)return 1;if("--"===e.operator)return-1}return 0}(o,n)===i&&t(e):"AssignmentExpression"===o.type&&function(e,t){if(e.left.name===t){if("+="===e.operator)return r(e,1);if("-="===e.operator)return r(e,-1)}return 0}(o,n)===i&&t(e)}}}}};const yf=Vp.exports;var xf={meta:{type:"layout",docs:{description:"require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(e){const t="always"!==e.options[0],r=!t&&e.options[1]&&e.options[1].allowNewlines,n=e.getSourceCode(),s=n.getText();function o(o,i,a){const c=s.slice(i.range[1],a.range[0]).replace(/\/\*.*?\*\//gu,""),u=/\s/u.test(c),l=u&&yf.LINEBREAK_MATCHER.test(c);t&&u?e.report({node:o,loc:{start:i.loc.end,end:{line:a.loc.start.line,column:a.loc.start.column-1}},messageId:"unexpectedWhitespace",fix:e=>n.commentsExistBetween(i,a)?null:o.optional?e.replaceTextRange([i.range[1],a.range[0]],"?."):l?null:e.removeRange([i.range[1],a.range[0]])}):t||u?t||r||!l||e.report({node:o,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpectedNewline",fix(e){if(!o.optional)return null;if(n.commentsExistBetween(i,a))return null;const t=[i.range[1],a.range[0]],r=n.getTokenAfter(i);return r.range[0]===i.range[1]?e.replaceTextRange(t,"?. "):r.range[1]===a.range[0]?e.replaceTextRange(t," ?."):e.replaceTextRange(t," ?. ")}}):e.report({node:o,loc:{start:{line:i.loc.end.line,column:i.loc.end.column-1},end:a.loc.start},messageId:"missing",fix:e=>o.optional?null:e.insertTextBefore(a," ")})}return{"CallExpression, NewExpression"(e){const t=n.getLastToken(e),r=n.getLastToken(e.callee),s=n.getFirstTokenBetween(r,t,yf.isOpeningParenToken),i=s&&n.getTokenBefore(s,yf.isNotQuestionDotToken);s&&s.range[1]<e.range[1]&&o(e,i,s)},ImportExpression(e){const t=n.getFirstToken(e);o(e,t,n.getTokenAfter(t))}}}};const bf=Vp.exports,vf=$p;function Ef(e,t){return t>=6?vf.keyword.isIdentifierES6(e):vf.keyword.isIdentifierES5(e)}const Cf={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};var Sf={meta:{type:"suggestion",docs:{description:"require function names to match the name of the variable or property to which they are assigned",recommended:!1,url:"https://eslint.org/docs/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[{enum:["always","never"]},Cf]},{type:"array",additionalItems:!1,items:[Cf]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(e){const t=("object"==typeof e.options[0]?e.options[0]:e.options[1])||{},r="string"==typeof e.options[0]?e.options[0]:"always",n=t.considerPropertyDescriptor,s=t.includeCommonJSModuleExports,o=e.parserOptions&&e.parserOptions.ecmaVersion?e.parserOptions.ecmaVersion:5;function i(e,t,r){return!!r&&("CallExpression"===r.type&&bf.isSpecificMemberAccess(r.callee,e,t))}function a(e,t){return"always"===r&&e!==t||"never"===r&&e===t}function c(t,n,s,o){let i;i="always"===r&&o?"matchProperty":"always"===r?"matchVariable":o?"notMatchProperty":"notMatchVariable",e.report({node:t,messageId:i,data:{name:n,funcName:s}})}function u(e){return"Literal"===e.type&&"string"==typeof e.value}return{VariableDeclarator(e){e.init&&"FunctionExpression"===e.init.type&&"Identifier"===e.id.type&&e.init.id&&a(e.id.name,e.init.id.name)&&c(e,e.id.name,e.init.id.name,!1)},AssignmentExpression(e){if("FunctionExpression"!==e.right.type||e.left.computed&&"Literal"!==e.left.property.type||!s&&function(e){if("MemberExpression"===e.type&&"Identifier"===e.object.type&&"module"===e.object.name){if("Identifier"===e.property.type&&"exports"===e.property.name)return!0;if("Literal"===e.property.type&&"exports"===e.property.value)return!0}return!1}(e.left)||"Identifier"!==e.left.type&&"MemberExpression"!==e.left.type)return;const t="MemberExpression"===e.left.type,r=t?bf.getStaticPropertyName(e.left):e.left.name;e.right.id&&r&&Ef(r)&&a(r,e.right.id.name)&&c(e,r,e.right.id.name,t)},"Property, PropertyDefinition[value]"(e){if("FunctionExpression"===e.value.type&&e.value.id)if("Identifier"!==e.key.type||e.computed)u(e.key)&&Ef(e.key.value,o)&&a(e.key.value,e.value.id.name)&&c(e,e.key.value,e.value.id.name,!0);else{const t=e.value.id.name;let r=e.key.name;if(n&&"value"===r&&"ObjectExpression"===e.parent.type)if(i("Object","defineProperty",e.parent.parent)||i("Reflect","defineProperty",e.parent.parent)){const r=e.parent.parent.arguments[1];u(r)&&a(r.value,t)&&c(e,r.value,t,!0)}else i("Object","defineProperties",e.parent.parent.parent.parent)||i("Object","create",e.parent.parent.parent.parent)?(r=e.parent.parent.key.name,!e.parent.parent.computed&&a(r,t)&&c(e,r,t,!0)):a(r,t)&&c(e,r,t,!0);else a(r,t)&&c(e,r,t,!0)}}}}};const kf=Vp.exports;var Af={meta:{type:"suggestion",docs:{description:"require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(e){const t=e.getSourceCode();function r(e){const t=e.parent;return"MethodDefinition"===t.type||"Property"===t.type&&(t.method||"get"===t.kind||"set"===t.kind)}function n(r){e.report({node:r,messageId:"unnamed",loc:kf.getFunctionHeadLoc(r,t),data:{name:kf.getFunctionNameWithKind(r)}})}function s(s){const o=e.getDeclaredVariables(s)[0];if((i=o)&&"FunctionName"===i.defs[0].type&&o.references.length>0)return;var i;const a=Boolean(s.id&&s.id.name),c=function(t){return t.generator&&e.options.length>1&&e.options[1].generators?e.options[1].generators:e.options[0]||"always"}(s);"never"===c?a&&"FunctionDeclaration"!==s.type&&function(r){e.report({node:r,messageId:"named",loc:kf.getFunctionHeadLoc(r,t),data:{name:kf.getFunctionNameWithKind(r)}})}(s):"as-needed"===c?a||function(e){const t=e.parent;return r(e)||"VariableDeclarator"===t.type&&"Identifier"===t.id.type&&t.init===e||"Property"===t.type&&t.value===e||"PropertyDefinition"===t.type&&t.value===e||"AssignmentExpression"===t.type&&"Identifier"===t.left.type&&t.right===e||"AssignmentPattern"===t.type&&"Identifier"===t.left.type&&t.right===e}(s)||n(s):a||r(s)||n(s)}return{"FunctionExpression:exit":s,"ExportDefaultDeclaration > FunctionDeclaration":s}}},Df={meta:{type:"suggestion",docs:{description:"enforce the consistent use of either `function` declarations or expressions",recommended:!1,url:"https://eslint.org/docs/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(e){const t=e.options[0],r=e.options[1]&&e.options[1].allowArrowFunctions,n="declaration"===t,s=[],o={FunctionDeclaration(t){s.push(!1),n||"ExportDefaultDeclaration"===t.parent.type||e.report({node:t,messageId:"expression"})},"FunctionDeclaration:exit"(){s.pop()},FunctionExpression(t){s.push(!1),n&&"VariableDeclarator"===t.parent.type&&e.report({node:t.parent,messageId:"declaration"})},"FunctionExpression:exit"(){s.pop()},ThisExpression(){s.length>0&&(s[s.length-1]=!0)}};return r||(o.ArrowFunctionExpression=function(){s.push(!1)},o["ArrowFunctionExpression:exit"]=function(t){const r=s.pop();n&&!r&&"VariableDeclarator"===t.parent.type&&e.report({node:t.parent,messageId:"declaration"})}),o}},wf={meta:{type:"layout",docs:{description:"enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(e){const t=e.getSourceCode(),r={messageId:"unexpectedLineBreak",check:(e,t)=>e.loc.end.line!==t.loc.start.line,createFix:(e,t)=>r=>r.replaceTextRange([t.range[1],e.range[0]]," ")},n={messageId:"missingLineBreak",check:(e,t)=>e.loc.end.line===t.loc.start.line,createFix:(e,t)=>r=>r.replaceTextRange([t.range[1],e.range[0]],"\n")};function s(r,n){for(let s=1;s<r.arguments.length;s++){const o=t.getLastToken(r.arguments[s-1]),i=t.getFirstToken(r.arguments[s]);if(n.check(o,i)){const s=t.getTokenBefore(i,{includeComments:!0}),o="Line"===s.type;e.report({node:r,loc:{start:s.loc.end,end:i.loc.start},messageId:n.messageId,fix:o?null:n.createFix(i,s)})}}}function o(o){if(o.arguments.length<2)return;const i=e.options[0]||"always";if("never"===i)s(o,r);else if("always"===i)s(o,n);else if("consistent"===i){const e=t.getLastToken(o.arguments[0]),i=t.getFirstToken(o.arguments[1]);e.loc.end.line===i.loc.start.line?s(o,r):s(o,n)}}return{CallExpression:o,NewExpression:o}}};const Ff=Vp.exports;var Tf={meta:{type:"layout",docs:{description:"enforce consistent line breaks inside function parentheses",recommended:!1,url:"https://eslint.org/docs/rules/function-paren-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"multiline",n="multiline"===r,s="multiline-arguments"===r,o="consistent"===r;let i;function a(e,t){return s&&1===e.length?t:n||s?e.some(((t,r)=>r!==e.length-1&&t.loc.end.line!==e[r+1].loc.start.line)):o?t:e.length>=i}return i="object"==typeof r?r.minItems:"always"===r?0:"never"===r?1/0:null,{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](r){const n=function(e){switch(e.type){case"NewExpression":if(!(e.arguments.length||Ff.isOpeningParenToken(t.getLastToken(e,{skip:1}))&&Ff.isClosingParenToken(t.getLastToken(e))))return null;case"CallExpression":return{leftParen:t.getTokenAfter(e.callee,Ff.isOpeningParenToken),rightParen:t.getLastToken(e)};case"FunctionDeclaration":case"FunctionExpression":{const r=t.getFirstToken(e,Ff.isOpeningParenToken);return{leftParen:r,rightParen:e.params.length?t.getTokenAfter(e.params[e.params.length-1],Ff.isClosingParenToken):t.getTokenAfter(r)}}case"ArrowFunctionExpression":{const r=t.getFirstToken(e,{skip:e.async?1:0});return Ff.isOpeningParenToken(r)?{leftParen:r,rightParen:t.getTokenBefore(e.body,Ff.isClosingParenToken)}:null}case"ImportExpression":return{leftParen:t.getFirstToken(e,1),rightParen:t.getLastToken(e)};default:throw new TypeError("unexpected node with type "+e.type)}}(r);let o;o="ImportExpression"===r.type?[r.source]:Ff.isFunction(r)?r.params:r.arguments,n&&(function(r,n){const s=r.leftParen,o=r.rightParen,i=t.getTokenAfter(s),c=t.getTokenBefore(o),u=!Ff.isTokenOnSameLine(s,i),l=!Ff.isTokenOnSameLine(c,o),p=a(n,u);u&&!p?e.report({node:s,messageId:"unexpectedAfter",fix:e=>t.getText().slice(s.range[1],i.range[0]).trim()?null:e.removeRange([s.range[1],i.range[0]])}):!u&&p&&e.report({node:s,messageId:"expectedAfter",fix:e=>e.insertTextAfter(s,"\n")}),l&&!p?e.report({node:o,messageId:"unexpectedBefore",fix:e=>t.getText().slice(c.range[1],o.range[0]).trim()?null:e.removeRange([c.range[1],o.range[0]])}):!l&&p&&e.report({node:o,messageId:"expectedBefore",fix:e=>e.insertTextBefore(o,"\n")})}(n,o),s&&function(r,n){const s=r.leftParen,o=t.getTokenAfter(s),i=a(n,!Ff.isTokenOnSameLine(s,o));for(let t=0;t<=n.length-2;t++){const r=n[t],s=n[t+1];r.loc.end.line===s.loc.start.line&&i&&e.report({node:r,messageId:"expectedBetween",fix:e=>e.insertTextBefore(s,"\n")})}}(n,o))}}}};const Pf={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};var If={meta:{type:"layout",docs:{description:"enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:"https://eslint.org/docs/rules/generator-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:Pf,anonymous:Pf,method:Pf},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const t={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function r(e,r){return e?"string"==typeof e?t[e]:Object.assign({},r,e):r}const n=function(e){const n=r(e,t.before);return{named:r(e.named,n),anonymous:r(e.anonymous,n),method:r(e.method,n)}}(e.options[0]||{}),s=e.getSourceCode();function o(e){return"*"===e.value&&"Punctuator"===e.type}function i(t,r,s,o){if(!!(o.range[0]-s.range[1])!==n[t][r]){const a="*"===s.value,c=n[t][r],u=a?s:o,l=`${c?"missing":"unexpected"}${i=r,i[0].toUpperCase()+i.slice(1)}`;e.report({node:u,messageId:l,fix:e=>c?a?e.insertTextAfter(u," "):e.insertTextBefore(u," "):e.removeRange([s.range[1],o.range[0]])})}var i}function a(e){if(!e.generator)return;const t=function(e){return s.getFirstToken(e.parent.method||"MethodDefinition"===e.parent.type?e.parent:e,o)}(e),r=s.getTokenBefore(t),n=s.getTokenAfter(t);let a="named";"MethodDefinition"===e.parent.type||"Property"===e.parent.type&&e.parent.method?a="method":e.id||(a="anonymous"),"method"===a&&t===s.getFirstToken(e.parent)||i(a,"before",r,t),i(a,"after",t,n)}return{FunctionDeclaration:a,FunctionExpression:a}}};const _f=Vp.exports,Bf=/^(?:Arrow)?FunctionExpression$/u;function Of(e){return e.reachable}var Lf={meta:{type:"problem",docs:{description:"enforce `return` statements in getters",recommended:!0,url:"https://eslint.org/docs/rules/getter-return"},fixable:null,schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expected:"Expected to return a value in {{name}}.",expectedAlways:"Expected {{name}} to always return a value."}},create(e){const t=e.options[0]||{allowImplicit:!1},r=e.getSourceCode();let n={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function s(t){n.shouldCheck&&n.codePath.currentSegments.some(Of)&&e.report({node:t,loc:_f.getFunctionHeadLoc(t,r),messageId:n.hasReturn?"expectedAlways":"expected",data:{name:_f.getFunctionNameWithKind(n.node)}})}function o(e){const t=e.parent;if(Bf.test(e.type)&&"BlockStatement"===e.body.type){if("get"===t.kind)return!0;if("Property"===t.type&&"get"===_f.getStaticPropertyName(t)&&"ObjectExpression"===t.parent.type){if("CallExpression"===t.parent.parent.type&&"defineProperty"===_f.getStaticPropertyName(t.parent.parent.callee))return!0;if("Property"===t.parent.parent.type&&"ObjectExpression"===t.parent.parent.parent.type&&"CallExpression"===t.parent.parent.parent.parent.type&&"defineProperties"===_f.getStaticPropertyName(t.parent.parent.parent.parent.callee))return!0}}return!1}return{onCodePathStart(e,t){n={upper:n,codePath:e,hasReturn:!1,shouldCheck:o(t),node:t}},onCodePathEnd(){n=n.upper},ReturnStatement(r){n.shouldCheck&&(n.hasReturn=!0,t.allowImplicit||r.argument||e.report({node:r,messageId:"expected",data:{name:_f.getFunctionNameWithKind(n.node)}}))},"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}};const jf=["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"];var Nf={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create:e=>({CallExpression(t){const r=e.getScope();if("require"===t.callee.name&&!function(e,t){const r=function(e,t){const r=e.references.filter((e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]));return 1===r.length?r[0]:null}(e,t);return r&&r.resolved&&r.resolved.defs.length>0}(r,t.callee)){e.getAncestors().every((e=>jf.indexOf(e.type)>-1))||e.report({node:t,messageId:"unexpected"})}}})};const Rf=Vp.exports;function Mf(e){return"get"===e.kind||"set"===e.kind}var Vf={meta:{type:"suggestion",docs:{description:"require grouped accessor pairs in object literals and classes",recommended:!1,url:"https://eslint.org/docs/rules/grouped-accessor-pairs"},schema:[{enum:["anyOrder","getBeforeSet","setBeforeGet"]}],messages:{notGrouped:"Accessor pair {{ formerName }} and {{ latterName }} should be grouped.",invalidOrder:"Expected {{ latterName }} to be before {{ formerName }}."}},create(e){const t=e.options[0]||"anyOrder",r=e.getSourceCode();function n(t,n,s){e.report({node:s,messageId:t,loc:Rf.getFunctionHeadLoc(s.value,r),data:{formerName:Rf.getFunctionNameWithKind(n.value),latterName:Rf.getFunctionNameWithKind(s.value)}})}function s(e){const t=Rf.getStaticPropertyName(e);return{key:null!==t?t:r.getTokens(e.key),getters:"get"===e.kind?[e]:[],setters:"set"===e.kind?[e]:[]}}function o(e,t){const r=e.find((e=>{return r=e.key,n=t.key,"string"==typeof r&&"string"==typeof n?r===n:!(!Array.isArray(r)||!Array.isArray(n))&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const n=e[r],s=t[r];if(n.type!==s.type||n.value!==s.value)return!1}return!0}(r,n);var r,n}));return r?(r.getters.push(...t.getters),r.setters.push(...t.setters)):e.push(t),e}function i(e,r){const i=e.filter(r).filter(Mf).map(s).reduce(o,[]);for(const{getters:r,setters:s}of i)if(1===r.length&&1===s.length){const[o]=r,[i]=s,a=e.indexOf(o),c=e.indexOf(i),u=a<c?o:i,l=a<c?i:o;Math.abs(a-c)>1?n("notGrouped",u,l):("getBeforeSet"===t&&a>c||"setBeforeGet"===t&&a<c)&&n("invalidOrder",u,l)}}return{ObjectExpression(e){i(e.properties,(e=>"Property"===e.type))},ClassBody(e){i(e.body,(e=>"MethodDefinition"===e.type&&!e.static)),i(e.body,(e=>"MethodDefinition"===e.type&&e.static))}}}},$f={meta:{type:"suggestion",docs:{description:"require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create:e=>({ForInStatement(t){const r=t.body;if("EmptyStatement"!==r.type&&"IfStatement"!==r.type&&!("BlockStatement"===r.type&&0===r.body.length||"BlockStatement"===r.type&&1===r.body.length&&"IfStatement"===r.body[0].type)){if("BlockStatement"===r.type&&r.body.length>=1&&"IfStatement"===r.body[0].type){const e=r.body[0];if("ContinueStatement"===e.consequent.type)return;if("BlockStatement"===e.consequent.type&&1===e.consequent.body.length&&"ContinueStatement"===e.consequent.body[0].type)return}e.report({node:t,messageId:"wrap"})}}})},Uf={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(e){const t=e.options[0]||"err";function r(r){const n=function(e){return e.variables.filter((e=>e.defs[0]&&"Parameter"===e.defs[0].type))}(e.getScope())[0];n&&function(e){if("^"===t[0])return new RegExp(t,"u").test(e);return e===t}(n.name)&&0===n.references.length&&e.report({node:r,messageId:"expected"})}return{FunctionDeclaration:r,FunctionExpression:r,ArrowFunctionExpression:r}}};var qf={meta:{deprecated:!0,replacedBy:["id-denylist"],type:"suggestion",docs:{description:"disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(e){const t=new Set(e.options),r=new Set;let n;function s(e){const t=e.parent;return"MemberExpression"!==t.type||t.property!==e||t.computed?!("CallExpression"===t.type||"NewExpression"===t.type||function(e){const t=e.parent;return"ImportSpecifier"===t.type&&t.imported!==t.local&&t.imported===e||"ExportSpecifier"===t.type&&t.parent.source&&t.local!==t.exported&&t.local===e}(e)||function(e){const t=e.parent;return!t.computed&&"Property"===t.type&&"ObjectPattern"===t.parent.type&&t.value!==e&&t.key===e}(e)||function(e){const t=n.set.get(e.name);return t&&0===t.defs.length&&t.references.some((t=>t.identifier===e))}(e)&&!function(e){const t=e.parent;return"Property"===t.type&&"ObjectExpression"===t.parent.type&&t.shorthand}(e)):function(e){const t=e.parent;return"AssignmentExpression"===t.type&&t.left===e||"ArrayPattern"===t.type||"RestElement"===t.type||"Property"===t.type&&t.value===e&&"ObjectPattern"===t.parent.type||"AssignmentPattern"===t.type&&t.left===e}(t)}return{Program(){n=e.getScope()},Identifier(n){(function(e){return t.has(e)})(n.name)&&s(n)&&function(t){r.has(t.range.toString())||(e.report({node:t,messageId:"restricted",data:{name:t.name}}),r.add(t.range.toString()))}(n)}}}};var Wf={meta:{type:"suggestion",docs:{description:"disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(e){const t=new Set(e.options),r=new Set;let n;function s(e){const t=e.parent;return"MemberExpression"!==t.type||t.property!==e||t.computed?"CallExpression"!==t.type&&"NewExpression"!==t.type&&!function(e){const t=e.parent;return"ImportSpecifier"===t.type&&t.imported!==t.local&&t.imported===e||"ExportSpecifier"===t.type&&t.parent.source&&t.local!==t.exported&&t.local===e}(e)&&!function(e){const t=e.parent;return!t.computed&&"Property"===t.type&&"ObjectPattern"===t.parent.type&&t.key===e}(e)&&!function(e){const t=n.set.get(e.name);return t&&0===t.defs.length&&t.references.some((t=>t.identifier===e))}(e):function(e){const t=e.parent;return"AssignmentExpression"===t.type&&t.left===e||"ArrayPattern"===t.type||"RestElement"===t.type||"Property"===t.type&&t.value===e&&"ObjectPattern"===t.parent.type||"AssignmentPattern"===t.type&&t.left===e}(t)}return{Program(){n=e.getScope()},[["Identifier","PrivateIdentifier"]](n){(function(e){return t.has(e)})(n.name)&&s(n)&&function(t){if(!r.has(t.range.toString())){const n="PrivateIdentifier"===t.type;e.report({node:t,messageId:n?"restrictedPrivate":"restricted",data:{name:t.name}}),r.add(t.range.toString())}}(n)}}}},zf={meta:{type:"suggestion",docs:{description:"enforce minimum and maximum identifier lengths",recommended:!1,url:"https://eslint.org/docs/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer",default:2},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name #'{{name}}' is too long (> {{max}})."}},create(e){const t=e.options[0]||{},r=void 0!==t.min?t.min:2,n=void 0!==t.max?t.max:1/0,s="never"!==t.properties,o=new Set(t.exceptions),i=(t.exceptionPatterns||[]).map((e=>new RegExp(e,"u"))),a=new Set;const c={MemberExpression:s&&function(e){return!e.computed&&(e.parent.left===e&&"AssignmentExpression"===e.parent.type||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.parent.left===e.parent.parent)},AssignmentPattern:(e,t)=>e.left===t,VariableDeclarator:(e,t)=>e.id===t,Property(e,t){if("ObjectPattern"===e.parent.type){const r=e.value.name===e.key.name;return!r&&e.value===t||r&&e.key===t&&s}return s&&!e.computed&&e.key.name===t.name},ImportDefaultSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](t){const s=t.name,u=t.parent,l=s.length<r,p=s.length>n;if(!l&&!p||o.has(s)||function(e){return i.some((t=>t.test(e)))}(s))return;const d=c[u.type];if(d&&!a.has(t.range.toString())&&(!0===d||d(u,t))){a.add(t.range.toString());let o=l?"tooShort":"tooLong";"PrivateIdentifier"===t.type&&(o+="Private"),e.report({node:t,messageId:o,data:{name:s,min:r,max:n}})}}}}},Gf={meta:{type:"suggestion",docs:{description:"require identifiers to match a specified regular expression",recommended:!1,url:"https://eslint.org/docs/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean",default:!1},classFields:{type:"boolean",default:!1},onlyDeclarations:{type:"boolean",default:!1},ignoreDestructuring:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(e){const t=e.options[0]||"^.+$",r=new RegExp(t,"u"),n=e.options[1]||{},s=!!n.properties,o=!!n.classFields,i=!!n.onlyDeclarations,a=!!n.ignoreDestructuring,c=new Set,u=new Set(["CallExpression","NewExpression"]),l=new Set(["FunctionDeclaration","VariableDeclarator"]),p=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function d(e){return!r.test(e)}function f(e,t){return(!i||l.has(e.type))&&!u.has(e.type)&&d(t)}function h(r){if(!c.has(r.range.toString())){const n="PrivateIdentifier"===r.type?"notMatchPrivate":"notMatch";e.report({node:r,messageId:n,data:{name:r.name,pattern:t}}),c.add(r.range.toString())}}return{Identifier(e){const t=e.name,r=e.parent,n="MemberExpression"===r.type?r.parent:r;if("MemberExpression"===r.type){if(!s)return;"Identifier"===r.object.type&&r.object.name===t||"AssignmentExpression"===n.type&&"MemberExpression"===n.left.type&&n.left.property.name===e.name?d(t)&&h(e):"AssignmentExpression"===n.type&&"MemberExpression"!==n.right.type&&d(t)&&h(e)}else if("Property"===r.type||"AssignmentPattern"===r.type){if(r.parent&&"ObjectPattern"===r.parent.type){!a&&r.shorthand&&r.value.left&&d(t)&&h(e);const n=r.key.name===r.value.name;if(!n&&r.key===e)return;!(r.value.name&&d(t))||n&&a||h(e)}if(!s||a&&function(e){let{parent:t}=e;for(;t;){if("ObjectPattern"===t.type)return!0;t=t.parent}return!1}(e))return;r.right!==e&&f(n,t)&&h(e)}else p.has(r.type)?r.local&&r.local.name===e.name&&d(t)&&h(e):"PropertyDefinition"===r.type?o&&d(t)&&h(e):f(n,t)&&h(e)},PrivateIdentifier(e){"PropertyDefinition"===e.parent.type&&!o||d(e.name)&&h(e)}}}};const{isCommentToken:Hf,isNotOpeningParenToken:Kf}=Vp.exports;var Jf={meta:{type:"layout",docs:{description:"enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"beside";return{ArrowFunctionExpression:n=>function(n){if("BlockStatement"===n.body.type)return;const s=t.getTokenBefore(n.body,Kf),o=t.getTokenAfter(s);s.loc.end.line===o.loc.start.line&&"below"===r?e.report({node:o,messageId:"expected",fix:e=>e.insertTextBefore(o,"\n")}):s.loc.end.line!==o.loc.start.line&&"beside"===r&&e.report({node:o,messageId:"unexpected",fix:e=>t.getFirstTokenBetween(s,o,{includeComments:!0,filter:Hf})?null:e.replaceTextRange([s.range[1],o.range[0]]," ")})}(n)}}},Qf=function(e){return new th(e||uh,null)};function Xf(e,t,r,n,s,o){this._color=e,this.key=t,this.value=r,this.left=n,this.right=s,this._count=o}function Yf(e){return new Xf(e._color,e.key,e.value,e.left,e.right,e._count)}function Zf(e,t){return new Xf(e,t.key,t.value,t.left,t.right,t._count)}function eh(e){e._count=1+(e.left?e.left._count:0)+(e.right?e.right._count:0)}function th(e,t){this._compare=e,this.root=t}var rh=th.prototype;function nh(e,t){var r;if(t.left&&(r=nh(e,t.left)))return r;return(r=e(t.key,t.value))||(t.right?nh(e,t.right):void 0)}function sh(e,t,r,n){if(t(e,n.key)<=0){var s;if(n.left)if(s=sh(e,t,r,n.left))return s;if(s=r(n.key,n.value))return s}if(n.right)return sh(e,t,r,n.right)}function oh(e,t,r,n,s){var o,i=r(e,s.key),a=r(t,s.key);if(i<=0){if(s.left&&(o=oh(e,t,r,n,s.left)))return o;if(a>0&&(o=n(s.key,s.value)))return o}if(a>0&&s.right)return oh(e,t,r,n,s.right)}function ih(e,t){this.tree=e,this._stack=t}Object.defineProperty(rh,"keys",{get:function(){var e=[];return this.forEach((function(t,r){e.push(t)})),e}}),Object.defineProperty(rh,"values",{get:function(){var e=[];return this.forEach((function(t,r){e.push(r)})),e}}),Object.defineProperty(rh,"length",{get:function(){return this.root?this.root._count:0}}),rh.insert=function(e,t){for(var r=this._compare,n=this.root,s=[],o=[];n;){var i=r(e,n.key);s.push(n),o.push(i),n=i<=0?n.left:n.right}s.push(new Xf(0,e,t,null,null,1));for(var a=s.length-2;a>=0;--a){n=s[a];o[a]<=0?s[a]=new Xf(n._color,n.key,n.value,s[a+1],n.right,n._count+1):s[a]=new Xf(n._color,n.key,n.value,n.left,s[a+1],n._count+1)}for(a=s.length-1;a>1;--a){var c=s[a-1];n=s[a];if(1===c._color||1===n._color)break;var u=s[a-2];if(u.left===c)if(c.left===n){if(!(l=u.right)||0!==l._color){if(u._color=0,u.left=c.right,c._color=1,c.right=u,s[a-2]=c,s[a-1]=n,eh(u),eh(c),a>=3)(p=s[a-3]).left===u?p.left=c:p.right=c;break}c._color=1,u.right=Zf(1,l),u._color=0,a-=1}else{if(!(l=u.right)||0!==l._color){if(c.right=n.left,u._color=0,u.left=n.right,n._color=1,n.left=c,n.right=u,s[a-2]=n,s[a-1]=c,eh(u),eh(c),eh(n),a>=3)(p=s[a-3]).left===u?p.left=n:p.right=n;break}c._color=1,u.right=Zf(1,l),u._color=0,a-=1}else if(c.right===n){if(!(l=u.left)||0!==l._color){if(u._color=0,u.right=c.left,c._color=1,c.left=u,s[a-2]=c,s[a-1]=n,eh(u),eh(c),a>=3)(p=s[a-3]).right===u?p.right=c:p.left=c;break}c._color=1,u.left=Zf(1,l),u._color=0,a-=1}else{var l;if(!(l=u.left)||0!==l._color){var p;if(c.left=n.right,u._color=0,u.right=n.left,n._color=1,n.right=c,n.left=u,s[a-2]=n,s[a-1]=c,eh(u),eh(c),eh(n),a>=3)(p=s[a-3]).right===u?p.right=n:p.left=n;break}c._color=1,u.left=Zf(1,l),u._color=0,a-=1}}return s[0]._color=1,new th(r,s[0])},rh.forEach=function(e,t,r){if(this.root)switch(arguments.length){case 1:return nh(e,this.root);case 2:return sh(t,this._compare,e,this.root);case 3:if(this._compare(t,r)>=0)return;return oh(t,r,this._compare,e,this.root)}},Object.defineProperty(rh,"begin",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.left;return new ih(this,e)}}),Object.defineProperty(rh,"end",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.right;return new ih(this,e)}}),rh.at=function(e){if(e<0)return new ih(this,[]);for(var t=this.root,r=[];;){if(r.push(t),t.left){if(e<t.left._count){t=t.left;continue}e-=t.left._count}if(!e)return new ih(this,r);if(e-=1,!t.right)break;if(e>=t.right._count)break;t=t.right}return new ih(this,[])},rh.ge=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var o=t(e,r.key);n.push(r),o<=0&&(s=n.length),r=o<=0?r.left:r.right}return n.length=s,new ih(this,n)},rh.gt=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var o=t(e,r.key);n.push(r),o<0&&(s=n.length),r=o<0?r.left:r.right}return n.length=s,new ih(this,n)},rh.lt=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var o=t(e,r.key);n.push(r),o>0&&(s=n.length),r=o<=0?r.left:r.right}return n.length=s,new ih(this,n)},rh.le=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var o=t(e,r.key);n.push(r),o>=0&&(s=n.length),r=o<0?r.left:r.right}return n.length=s,new ih(this,n)},rh.find=function(e){for(var t=this._compare,r=this.root,n=[];r;){var s=t(e,r.key);if(n.push(r),0===s)return new ih(this,n);r=s<=0?r.left:r.right}return new ih(this,[])},rh.remove=function(e){var t=this.find(e);return t?t.remove():this},rh.get=function(e){for(var t=this._compare,r=this.root;r;){var n=t(e,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var ah=ih.prototype;function ch(e,t){e.key=t.key,e.value=t.value,e.left=t.left,e.right=t.right,e._color=t._color,e._count=t._count}function uh(e,t){return e<t?-1:e>t?1:0}Object.defineProperty(ah,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(ah,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),ah.clone=function(){return new ih(this.tree,this._stack.slice())},ah.remove=function(){var e=this._stack;if(0===e.length)return this.tree;var t=new Array(e.length),r=e[e.length-1];t[t.length-1]=new Xf(r._color,r.key,r.value,r.left,r.right,r._count);for(var n=e.length-2;n>=0;--n){(r=e[n]).left===e[n+1]?t[n]=new Xf(r._color,r.key,r.value,t[n+1],r.right,r._count):t[n]=new Xf(r._color,r.key,r.value,r.left,t[n+1],r._count)}if((r=t[t.length-1]).left&&r.right){var s=t.length;for(r=r.left;r.right;)t.push(r),r=r.right;var o=t[s-1];t.push(new Xf(r._color,o.key,o.value,r.left,r.right,r._count)),t[s-1].key=r.key,t[s-1].value=r.value;for(n=t.length-2;n>=s;--n)r=t[n],t[n]=new Xf(r._color,r.key,r.value,r.left,t[n+1],r._count);t[s-1].left=t[s]}if(0===(r=t[t.length-1])._color){var i=t[t.length-2];i.left===r?i.left=null:i.right===r&&(i.right=null),t.pop();for(n=0;n<t.length;++n)t[n]._count--;return new th(this.tree._compare,t[0])}if(r.left||r.right){r.left?ch(r,r.left):r.right&&ch(r,r.right),r._color=1;for(n=0;n<t.length-1;++n)t[n]._count--;return new th(this.tree._compare,t[0])}if(1===t.length)return new th(this.tree._compare,null);for(n=0;n<t.length;++n)t[n]._count--;var a=t[t.length-2];return function(e){for(var t,r,n,s,o=e.length-1;o>=0;--o){if(t=e[o],0===o)return void(t._color=1);if((r=e[o-1]).left===t){if((n=r.right).right&&0===n.right._color)return s=(n=r.right=Yf(n)).right=Yf(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,t._color=1,r._color=1,s._color=1,eh(r),eh(n),o>1&&((i=e[o-2]).left===r?i.left=n:i.right=n),void(e[o-1]=n);if(n.left&&0===n.left._color)return s=(n=r.right=Yf(n)).left=Yf(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,t._color=1,eh(r),eh(n),eh(s),o>1&&((i=e[o-2]).left===r?i.left=s:i.right=s),void(e[o-1]=s);if(1===n._color){if(0===r._color)return r._color=1,void(r.right=Zf(0,n));r.right=Zf(0,n);continue}n=Yf(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,eh(r),eh(n),o>1&&((i=e[o-2]).left===r?i.left=n:i.right=n),e[o-1]=n,e[o]=r,o+1<e.length?e[o+1]=t:e.push(t),o+=2}else{if((n=r.left).left&&0===n.left._color)return s=(n=r.left=Yf(n)).left=Yf(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,t._color=1,r._color=1,s._color=1,eh(r),eh(n),o>1&&((i=e[o-2]).right===r?i.right=n:i.left=n),void(e[o-1]=n);if(n.right&&0===n.right._color)return s=(n=r.left=Yf(n)).right=Yf(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,t._color=1,eh(r),eh(n),eh(s),o>1&&((i=e[o-2]).right===r?i.right=s:i.left=s),void(e[o-1]=s);if(1===n._color){if(0===r._color)return r._color=1,void(r.left=Zf(0,n));r.left=Zf(0,n);continue}var i;n=Yf(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,eh(r),eh(n),o>1&&((i=e[o-2]).right===r?i.right=n:i.left=n),e[o-1]=n,e[o]=r,o+1<e.length?e[o+1]=t:e.push(t),o+=2}}}(t),a.left===r?a.left=null:a.right=null,new th(this.tree._compare,t[0])},Object.defineProperty(ah,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(ah,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(ah,"index",{get:function(){var e=0,t=this._stack;if(0===t.length){var r=this.tree.root;return r?r._count:0}t[t.length-1].left&&(e=t[t.length-1].left._count);for(var n=t.length-2;n>=0;--n)t[n+1]===t[n].right&&(++e,t[n].left&&(e+=t[n].left._count));return e},enumerable:!0}),ah.next=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.right)for(t=t.right;t;)e.push(t),t=t.left;else for(e.pop();e.length>0&&e[e.length-1].right===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(ah,"hasNext",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].right)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].left===e[t])return!0;return!1}}),ah.update=function(e){var t=this._stack;if(0===t.length)throw new Error("Can't update empty node!");var r=new Array(t.length),n=t[t.length-1];r[r.length-1]=new Xf(n._color,n.key,e,n.left,n.right,n._count);for(var s=t.length-2;s>=0;--s)(n=t[s]).left===t[s+1]?r[s]=new Xf(n._color,n.key,n.value,r[s+1],n.right,n._count):r[s]=new Xf(n._color,n.key,n.value,n.left,r[s+1],n._count);return new th(this.tree._compare,r[0])},ah.prev=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.left)for(t=t.left;t;)e.push(t),t=t.right;else for(e.pop();e.length>0&&e[e.length-1].left===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(ah,"hasPrev",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].left)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].right===e[t])return!0;return!1}});const lh=Qf,ph=Vp.exports,dh=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]);class fh{constructor(){this._rbTree=lh()}insert(e,t){const r=this._rbTree.find(e);r.valid?this._rbTree=r.update(t):this._rbTree=this._rbTree.insert(e,t)}findLe(e){const t=this._rbTree.le(e);return t&&{key:t.key,value:t.value}}deleteRange(e,t){if(e===t)return;const r=this._rbTree.ge(e);for(;r.valid&&r.key<t;)this._rbTree=this._rbTree.remove(r.key),r.next()}}class hh{constructor(e){this.sourceCode=e,this.firstTokensByLineNumber=e.tokensAndComments.reduce(((t,r)=>(t.has(r.loc.start.line)||t.set(r.loc.start.line,r),!t.has(r.loc.end.line)&&e.text.slice(r.range[1]-r.loc.end.column,r.range[1]).trim()&&t.set(r.loc.end.line,r),t)),new Map)}getFirstTokenOfLine(e){return this.firstTokensByLineNumber.get(e.loc.start.line)}isFirstTokenOfLine(e){return this.getFirstTokenOfLine(e)===e}getTokenIndent(e){return this.sourceCode.text.slice(e.range[0]-e.loc.start.column,e.range[0])}}class mh{constructor(e,t,r){this._tokenInfo=e,this._indentSize=t,this._indentType=r,this._tree=new fh,this._tree.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(e){return this._tree.findLe(e.range[0]).value}matchOffsetOf(e,t){this._lockedFirstTokens.set(t,e)}setDesiredOffset(e,t,r){return this.setDesiredOffsets(e.range,t,r)}setDesiredOffsets(e,t,r,n){const s={offset:r,from:t,force:n},o=this._tree.findLe(e[1]).value,i=t&&t.range[0]>=e[0]&&t.range[1]<=e[1],a=i&&this._getOffsetDescriptor(t);this._tree.deleteRange(e[0]+1,e[1]),this._tree.insert(e[0],s),i&&(this._tree.insert(t.range[0],a),this._tree.insert(t.range[1],s)),this._tree.insert(e[1],o)}getDesiredIndent(e){if(!this._desiredIndentCache.has(e))if(this._ignoredTokens.has(e))this._desiredIndentCache.set(e,this._tokenInfo.getTokenIndent(e));else if(this._lockedFirstTokens.has(e)){const t=this._lockedFirstTokens.get(e);this._desiredIndentCache.set(e,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(t))+this._indentType.repeat(t.loc.start.column-this._tokenInfo.getFirstTokenOfLine(t).loc.start.column))}else{const t=this._getOffsetDescriptor(e),r=!t.from||t.from.loc.start.line!==e.loc.start.line||/^\s*?\n/u.test(e.value)||t.force?t.offset*this._indentSize:0;this._desiredIndentCache.set(e,(t.from?this.getDesiredIndent(t.from):"")+this._indentType.repeat(r))}return this._desiredIndentCache.get(e)}ignoreToken(e){this._tokenInfo.isFirstTokenOfLine(e)&&this._ignoredTokens.add(e)}getFirstDependency(e){return this._getOffsetDescriptor(e).from}}const gh={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};var yh={meta:{type:"layout",docs:{description:"enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[gh,{type:"object",properties:{var:gh,let:gh,const:gh},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:gh,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:gh,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:gh},additionalProperties:!1},ArrayExpression:gh,ObjectExpression:gh,ImportDeclaration:gh,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){let t="space",r=4;const n={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};e.options.length&&("tab"===e.options[0]?(r=1,t="tab"):(r=e.options[0],t="space"),e.options[1]&&(Object.assign(n,e.options[1]),"number"!=typeof n.VariableDeclarator&&"first"!==n.VariableDeclarator||(n.VariableDeclarator={var:n.VariableDeclarator,let:n.VariableDeclarator,const:n.VariableDeclarator})));const s=e.getSourceCode(),o=new hh(s),i=new mh(o,r,"space"===t?" ":"\t"),a=new WeakSet;function c(e,r,n){let s;return s=r>0?"space"===t?r:`${r} ${"space"+(1===r?"":"s")}`:n>0?"tab"===t?n:`${n} ${"tab"+(1===n?"":"s")}`:"0",{expected:`${e} ${t}${1===e?"":"s"}`,actual:s}}function u(e,t){const r=o.getTokenIndent(e);return r===t||r.includes(" ")&&r.includes("\t")}function l(e,t,r,n){function a(e){let r=s.getTokenBefore(e);for(;ph.isOpeningParenToken(r)&&r!==t;)r=s.getTokenBefore(r);return s.getTokenAfter(r)}i.setDesiredOffsets([t.range[1],r.range[0]],t,"number"==typeof n?n:1),i.setDesiredOffset(r,t,0),"first"===n&&e.length&&!e[0]||e.forEach(((r,c)=>{if(r&&("off"===n&&i.ignoreToken(a(r)),0!==c))if("first"===n&&o.isFirstTokenOfLine(a(r)))i.matchOffsetOf(a(e[0]),a(r));else{const n=e[c-1],o=n&&a(n),u=n&&s.getLastToken(n);n&&u.loc.end.line-function(e){const t=e.match(/\s*$/u)[0].match(ph.createGlobalLinebreakMatcher());return null===t?0:t.length}(u.value)>t.loc.end.line&&i.setDesiredOffsets([n.range[1],r.range[1]],o,0)}}))}function p(e){if("BlockStatement"!==e.type){const t=s.getTokenBefore(e,ph.isNotOpeningParenToken);let r=s.getFirstToken(e),n=s.getLastToken(e);for(;ph.isOpeningParenToken(s.getTokenBefore(r))&&ph.isClosingParenToken(s.getTokenAfter(n));)r=s.getTokenBefore(r),n=s.getTokenAfter(n);i.setDesiredOffsets([r.range[0],n.range[1]],t,1);const o=s.getLastToken(e);"EmptyStatement"!==e.type&&ph.isSemicolonToken(o)&&i.setDesiredOffset(o,t,0)}}function d(e){let t;t=e.arguments.length?s.getFirstTokenBetween(e.callee,e.arguments[0],ph.isOpeningParenToken):s.getLastToken(e,1);const r=s.getLastToken(e);if(a.add(t),a.add(r),e.optional){const r=s.getTokenAfter(e.callee,ph.isQuestionDotToken),n=s.getTokensBetween(e.callee,r,{filter:ph.isClosingParenToken}).length,o=n?s.getTokenBefore(e.callee,{skip:n-1}):s.getFirstToken(e.callee),a=s.getTokenBefore(r),c=a.loc.end.line===t.loc.start.line?a:o;i.setDesiredOffset(r,c,1)}const o="TaggedTemplateExpression"===e.callee.type?s.getFirstToken(e.callee.quasi):t,c=s.getTokenBefore(o);i.setDesiredOffset(t,c,0),l(e.arguments,t,r,n.CallExpression.arguments)}function f(e){const t=new Set(s.getTokens(e,{includeComments:!0}));t.forEach((e=>{if(!t.has(i.getFirstDependency(e))){const t=o.getFirstTokenOfLine(e);e===t?i.ignoreToken(e):i.setDesiredOffset(e,t,0)}}))}function h(e,t){const r=e.loc.end.line,n=t.loc.start.line;if(r===n||r===n-1)return!1;for(let e=r+1;e<n;++e)if(!o.firstTokensByLineNumber.has(e))return!0;return!1}const m=new Set,g={"ArrayExpression, ArrayPattern"(e){const t=s.getFirstToken(e),r=s.getTokenAfter([...e.elements].reverse().find((e=>e))||t,ph.isClosingBracketToken);l(e.elements,t,r,n.ArrayExpression)},"ObjectExpression, ObjectPattern"(e){const t=s.getFirstToken(e),r=s.getTokenAfter(e.properties.length?e.properties[e.properties.length-1]:t,ph.isClosingBraceToken);l(e.properties,t,r,n.ObjectExpression)},ArrowFunctionExpression(e){const t=s.getFirstToken(e,{skip:e.async?1:0});if(ph.isOpeningParenToken(t)){const r=t,o=s.getTokenBefore(e.body,ph.isClosingParenToken);a.add(r),a.add(o),l(e.params,r,o,n.FunctionExpression.parameters)}p(e.body)},AssignmentExpression(e){const t=s.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator));i.setDesiredOffsets([t.range[0],e.range[1]],s.getLastToken(e.left),1),i.ignoreToken(t),i.ignoreToken(s.getTokenAfter(t))},"BinaryExpression, LogicalExpression"(e){const t=s.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator)),r=s.getTokenAfter(t);i.ignoreToken(t),i.ignoreToken(r),i.setDesiredOffset(r,t,0)},"BlockStatement, ClassBody"(e){let t;t=e.parent&&function(e){if(!e.parent||"CallExpression"!==e.parent.type||e.parent.callee!==e)return!1;let t=e.parent&&e.parent.parent;for(;"UnaryExpression"===t.type&&["!","~","+","-"].indexOf(t.operator)>-1||"AssignmentExpression"===t.type||"LogicalExpression"===t.type||"SequenceExpression"===t.type||"VariableDeclarator"===t.type;)t=t.parent;return("ExpressionStatement"===t.type||"VariableDeclaration"===t.type)&&"Program"===t.parent.type}(e.parent)?n.outerIIFEBody:!e.parent||"FunctionExpression"!==e.parent.type&&"ArrowFunctionExpression"!==e.parent.type?e.parent&&"FunctionDeclaration"===e.parent.type?n.FunctionDeclaration.body:1:n.FunctionExpression.body,ph.STATEMENT_LIST_PARENTS.has(e.parent.type)||i.setDesiredOffset(s.getFirstToken(e),s.getFirstToken(e.parent),0),l(e.body,s.getFirstToken(e),s.getLastToken(e),t)},CallExpression:d,"ClassDeclaration[superClass], ClassExpression[superClass]"(e){const t=s.getFirstToken(e),r=s.getTokenBefore(e.superClass,ph.isNotOpeningParenToken);i.setDesiredOffsets([r.range[0],e.body.range[0]],t,1)},ConditionalExpression(e){const t=s.getFirstToken(e);if(!n.flatTernaryExpressions||!ph.isTokenOnSameLine(e.test,e.consequent)||function(e,t){let r=t;for(;r.parent&&!r.parent.type.endsWith("Statement")&&!r.parent.type.endsWith("Declaration");)r=r.parent;return r=r.parent,!r||r.loc.start.line===e.loc.start.line}(t,e)){const r=s.getFirstTokenBetween(e.test,e.consequent,(e=>"Punctuator"===e.type&&"?"===e.value)),o=s.getFirstTokenBetween(e.consequent,e.alternate,(e=>"Punctuator"===e.type&&":"===e.value)),a=s.getTokenAfter(r),c=s.getTokenBefore(o),u=s.getTokenAfter(o);i.setDesiredOffset(r,t,1),i.setDesiredOffset(o,t,1),i.setDesiredOffset(a,t,"Punctuator"===a.type&&n.offsetTernaryExpressions?2:1),c.loc.end.line===u.loc.start.line?i.setDesiredOffset(u,a,0):i.setDesiredOffset(u,t,"Punctuator"===u.type&&n.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement":e=>p(e.body),ExportNamedDeclaration(e){if(null===e.declaration){const t=s.getLastToken(e,ph.isClosingBraceToken);l(e.specifiers,s.getFirstToken(e,{skip:1}),t,1),e.source&&i.setDesiredOffsets([t.range[1],e.range[1]],s.getFirstToken(e),1)}},ForStatement(e){const t=s.getFirstToken(e,1);e.init&&i.setDesiredOffsets(e.init.range,t,1),e.test&&i.setDesiredOffsets(e.test.range,t,1),e.update&&i.setDesiredOffsets(e.update.range,t,1),p(e.body)},"FunctionDeclaration, FunctionExpression"(e){const t=s.getTokenBefore(e.body),r=s.getTokenBefore(e.params.length?e.params[0]:t);a.add(r),a.add(t),l(e.params,r,t,n[e.type].parameters)},IfStatement(e){p(e.consequent),e.alternate&&"IfStatement"!==e.alternate.type&&p(e.alternate)},ImportDeclaration(e){if(e.specifiers.some((e=>"ImportSpecifier"===e.type))){const t=s.getFirstToken(e,ph.isOpeningBraceToken),r=s.getLastToken(e,ph.isClosingBraceToken);l(e.specifiers.filter((e=>"ImportSpecifier"===e.type)),t,r,n.ImportDeclaration)}const t=s.getLastToken(e,(e=>"Identifier"===e.type&&"from"===e.value)),r=s.getLastToken(e,(e=>"String"===e.type)),o=s.getLastToken(e,(e=>"Punctuator"===e.type&&";"===e.value));if(t){const n=o&&o.range[1]===r.range[1]?e.range[1]:r.range[1];i.setDesiredOffsets([t.range[0],n],s.getFirstToken(e),1)}},ImportExpression(e){const t=s.getFirstToken(e,1),r=s.getLastToken(e);a.add(t),a.add(r),i.setDesiredOffset(t,s.getTokenBefore(t),0),l([e.source],t,r,n.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(e){const t="MetaProperty"===e.type?e.meta:e.object,r=s.getFirstTokenBetween(t,e.property,ph.isNotClosingParenToken),o=s.getTokenAfter(r),a=s.getTokensBetween(t,e.property,{filter:ph.isClosingParenToken}).length,c=a?s.getTokenBefore(t,{skip:a-1}):s.getFirstToken(t),u=s.getTokenBefore(r),l=e.computed?r:o;e.computed&&(i.setDesiredOffset(s.getLastToken(e),r,0),i.setDesiredOffsets(e.property.range,r,1));const p=u.loc.end.line===l.loc.start.line?u:c;"number"==typeof n.MemberExpression?(i.setDesiredOffset(r,p,n.MemberExpression),i.setDesiredOffset(o,e.computed?r:p,n.MemberExpression)):(i.ignoreToken(r),i.ignoreToken(o),i.setDesiredOffset(r,p,0),i.setDesiredOffset(o,r,0))},NewExpression(e){(e.arguments.length>0||ph.isClosingParenToken(s.getLastToken(e))&&ph.isOpeningParenToken(s.getLastToken(e,1)))&&d(e)},Property(e){if(!e.shorthand&&!e.method&&"init"===e.kind){const t=s.getFirstTokenBetween(e.key,e.value,ph.isColonToken);i.ignoreToken(s.getTokenAfter(t))}},PropertyDefinition(e){const t=s.getFirstToken(e),r=s.getLastToken(e);let n=null;if(e.computed){const r=s.getTokenBefore(e.key,ph.isOpeningBracketToken),o=n=s.getTokenAfter(e.key,ph.isClosingBracketToken),a=[r.range[1],o.range[0]];r!==t&&i.setDesiredOffset(r,t,0),i.setDesiredOffsets(a,r,1),i.setDesiredOffset(o,r,0)}else{const r=n=s.getFirstToken(e.key);r!==t&&i.setDesiredOffset(r,t,1)}if(e.value){const t=s.getTokenBefore(e.value,ph.isEqToken),o=s.getTokenAfter(t);i.setDesiredOffset(t,n,1),i.setDesiredOffset(o,t,1),ph.isSemicolonToken(r)&&i.setDesiredOffset(r,t,1)}else ph.isSemicolonToken(r)&&i.setDesiredOffset(r,n,1)},StaticBlock(e){const t=s.getFirstToken(e,{skip:1}),r=s.getLastToken(e);l(e.body,t,r,n.StaticBlock.body)},SwitchStatement(e){const t=s.getTokenAfter(e.discriminant,ph.isOpeningBraceToken),r=s.getLastToken(e);i.setDesiredOffsets([t.range[1],r.range[0]],t,n.SwitchCase),e.cases.length&&s.getTokensBetween(e.cases[e.cases.length-1],r,{includeComments:!0,filter:ph.isCommentToken}).forEach((e=>i.ignoreToken(e)))},SwitchCase(e){if(1!==e.consequent.length||"BlockStatement"!==e.consequent[0].type){const t=s.getFirstToken(e),r=s.getTokenAfter(e);i.setDesiredOffsets([t.range[1],r.range[0]],t,1)}},TemplateLiteral(e){e.expressions.forEach(((t,r)=>{const n=e.quasis[r],o=e.quasis[r+1],a=n.loc.start.line===n.loc.end.line?s.getFirstToken(n):null;i.setDesiredOffsets([n.range[1],o.range[0]],a,1),i.setDesiredOffset(s.getFirstToken(o),a,0)}))},VariableDeclaration(e){let t=Object.prototype.hasOwnProperty.call(n.VariableDeclarator,e.kind)?n.VariableDeclarator[e.kind]:1;const r=s.getFirstToken(e),o=s.getLastToken(e);if("first"===n.VariableDeclarator[e.kind]){if(e.declarations.length>1)return void l(e.declarations,r,o,"first");t=1}e.declarations[e.declarations.length-1].loc.start.line>e.loc.start.line?i.setDesiredOffsets(e.range,r,t,!0):i.setDesiredOffsets(e.range,r,t),ph.isSemicolonToken(o)&&i.ignoreToken(o)},VariableDeclarator(e){if(e.init){const t=s.getTokenBefore(e.init,ph.isNotOpeningParenToken),r=s.getTokenAfter(t);i.ignoreToken(t),i.ignoreToken(r),i.setDesiredOffsets([r.range[0],e.range[1]],t,1),i.setDesiredOffset(t,s.getLastToken(e.id),0)}},"JSXAttribute[value]"(e){const t=s.getFirstTokenBetween(e.name,e.value,(e=>"Punctuator"===e.type&&"="===e.value));i.setDesiredOffsets([t.range[0],e.value.range[1]],s.getFirstToken(e.name),1)},JSXElement(e){e.closingElement&&l(e.children,s.getFirstToken(e.openingElement),s.getFirstToken(e.closingElement),1)},JSXOpeningElement(e){const t=s.getFirstToken(e);let r;e.selfClosing?(r=s.getLastToken(e,{skip:1}),i.setDesiredOffset(s.getLastToken(e),r,0)):r=s.getLastToken(e),i.setDesiredOffsets(e.name.range,s.getFirstToken(e)),l(e.attributes,t,r,1)},JSXClosingElement(e){const t=s.getFirstToken(e);i.setDesiredOffsets(e.name.range,t,1)},JSXFragment(e){const t=s.getFirstToken(e.openingFragment),r=s.getFirstToken(e.closingFragment);l(e.children,t,r,1)},JSXOpeningFragment(e){const t=s.getFirstToken(e),r=s.getLastToken(e);i.setDesiredOffsets(e.range,t,1),i.matchOffsetOf(t,r)},JSXClosingFragment(e){const t=s.getFirstToken(e),r=s.getLastToken(e,{skip:1}),n=s.getLastToken(e),o=ph.isTokenOnSameLine(r,n)?r:n;i.setDesiredOffsets(e.range,t,1),i.matchOffsetOf(t,o)},JSXExpressionContainer(e){const t=s.getFirstToken(e),r=s.getLastToken(e);i.setDesiredOffsets([t.range[1],r.range[0]],t,1)},JSXSpreadAttribute(e){const t=s.getFirstToken(e),r=s.getLastToken(e);i.setDesiredOffsets([t.range[1],r.range[0]],t,1)},"*"(e){const t=s.getFirstToken(e);t&&!m.has(t)&&i.setDesiredOffsets(e.range,t,0)}},y=[],x={};for(const[e,t]of Object.entries(g))x[e]=e=>y.push({listener:t,node:e});const b=new Set;function v(e){b.add(e),m.add(s.getFirstToken(e))}const E=n.ignoredNodes.reduce(((e,t)=>Object.assign(e,{[t]:v})),{});return Object.assign(x,E,{"*:exit"(e){dh.has(e.type)||v(e)},"Program:exit"(){n.ignoreComments&&s.getAllComments().forEach((e=>i.ignoreToken(e))),y.filter((e=>!b.has(e.node))).forEach((e=>e.listener(e.node))),b.forEach(f),function(e){const t=[],r=[];e.forEach((e=>{ph.isOpeningParenToken(e)?t.push(e):ph.isClosingParenToken(e)&&r.unshift({left:t.pop(),right:e})})),r.forEach((e=>{const t=e.left,r=e.right;if(!a.has(t)&&!a.has(r)){const e=new Set(s.getTokensBetween(t,r));e.forEach((r=>{e.has(i.getFirstDependency(r))||i.setDesiredOffset(r,t,1)}))}i.setDesiredOffset(r,t,0)}))}(s.ast.tokens);const t=s.ast.comments.reduce(((e,t)=>{const r=s.getTokenBefore(t,{includeComments:!0});return e.set(t,e.has(r)?e.get(r):r)}),new WeakMap);s.lines.forEach(((r,n)=>{const a=n+1;if(!o.firstTokensByLineNumber.has(a))return;const l=o.firstTokensByLineNumber.get(a);if(l.loc.start.line===a){if(ph.isCommentToken(l)){const e=t.get(l),r=e?s.getTokenAfter(e):s.ast.tokens[0],n=e&&!h(e,l),o=r&&!h(l,r);if(r&&ph.isSemicolonToken(r)&&!ph.isTokenOnSameLine(l,r)&&i.setDesiredOffset(l,r,0),n&&u(l,i.getDesiredIndent(e))||o&&u(l,i.getDesiredIndent(r)))return}u(l,i.getDesiredIndent(l))||function(t,r){const n=Array.from(o.getTokenIndent(t)),s=n.filter((e=>" "===e)).length,i=n.filter((e=>"\t"===e)).length;e.report({node:t,messageId:"wrongIndentation",data:c(r.length,s,i),loc:{start:{line:t.loc.start.line,column:0},end:{line:t.loc.start.line,column:t.loc.start.column}},fix(e){const n=[t.range[0]-t.loc.start.column,t.range[0]],s=r;return e.replaceTextRange(n,s)}})}(l,i.getDesiredIndent(l))}}))}})}};const xh=Vp.exports;var bh={meta:{type:"layout",docs:{description:"enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/rules/indent-legacy"},deprecated:!0,replacedBy:["indent"],fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{var:{type:"integer",minimum:0},let:{type:"integer",minimum:0},const:{type:"integer",minimum:0}}}]},outerIIFEBody:{type:"integer",minimum:0},MemberExpression:{type:"integer",minimum:0},FunctionDeclaration:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},FunctionExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},CallExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}}},ArrayExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},ObjectExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}},additionalProperties:!1}],messages:{expected:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){const t=null;let r="space",n=4;const s={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:t,body:1},FunctionExpression:{parameters:t,body:1},CallExpression:{arguments:t},ArrayExpression:1,ObjectExpression:1},o=e.getSourceCode();if(e.options.length&&("tab"===e.options[0]?(n=1,r="tab"):"number"==typeof e.options[0]&&(n=e.options[0],r="space"),e.options[1])){const t=e.options[1];s.SwitchCase=t.SwitchCase||0;const r=t.VariableDeclarator;"number"==typeof r?s.VariableDeclarator={var:r,let:r,const:r}:"object"==typeof r&&Object.assign(s.VariableDeclarator,r),"number"==typeof t.outerIIFEBody&&(s.outerIIFEBody=t.outerIIFEBody),"number"==typeof t.MemberExpression&&(s.MemberExpression=t.MemberExpression),"object"==typeof t.FunctionDeclaration&&Object.assign(s.FunctionDeclaration,t.FunctionDeclaration),"object"==typeof t.FunctionExpression&&Object.assign(s.FunctionExpression,t.FunctionExpression),"object"==typeof t.CallExpression&&Object.assign(s.CallExpression,t.CallExpression),"number"!=typeof t.ArrayExpression&&"string"!=typeof t.ArrayExpression||(s.ArrayExpression=t.ArrayExpression),"number"!=typeof t.ObjectExpression&&"string"!=typeof t.ObjectExpression||(s.ObjectExpression=t.ObjectExpression)}const i={};function a(e,t,n){const s="space"+(1===t?"":"s"),o="tab"+(1===n?"":"s");let i;return i=t>0&&n>0?`${t} ${s} and ${n} ${o}`:t>0?"space"===r?t:`${t} ${s}`:n>0?"tab"===r?n:`${n} ${o}`:"0",{expected:`${e} ${r}${1===e?"":"s"}`,actual:i}}function c(t,n,s,o,i,c){if(s&&o)return;const u=("space"===r?" ":"\t").repeat(n),l=c?[t.range[1]-t.loc.end.column,t.range[1]-t.loc.end.column+s+o]:[t.range[0]-t.loc.start.column,t.range[0]-t.loc.start.column+s+o];e.report({node:t,loc:i,messageId:"expected",data:a(n,s,o),fix:e=>e.replaceTextRange(l,u)})}function u(e,t){const n=t?o.getLastToken(e):o.getFirstToken(e),s=o.getText(n,n.loc.start.column).split(""),i=s.slice(0,s.findIndex((e=>" "!==e&&"\t"!==e))),a=i.filter((e=>" "===e)).length,c=i.filter((e=>"\t"===e)).length;return{space:a,tab:c,goodChar:"space"===r?a:c,badChar:"space"===r?c:a}}function l(e,t){const r=!0===t?o.getLastToken(e,1):o.getTokenBefore(e);return(!0===t?e.loc.end.line:e.loc.start.line)!==(r?r.loc.end.line:-1)}function p(e,t){const r=u(e,!1);if("ArrayExpression"===e.type||"ObjectExpression"===e.type||r.goodChar===t&&0===r.badChar||!l(e)||c(e,t,r.space,r.tab),"IfStatement"===e.type&&e.alternate){p(o.getTokenBefore(e.alternate),t),l(e.alternate)||p(e.alternate,t)}if("TryStatement"===e.type&&e.handler){p(o.getFirstToken(e.handler),t)}if("TryStatement"===e.type&&e.finalizer){p(o.getTokenBefore(e.finalizer),t)}if("DoWhileStatement"===e.type){p(o.getTokenAfter(e.body),t)}}function d(e,t){e.forEach((e=>p(e,t)))}function f(e,t){const r=o.getLastToken(e),n=u(r,!0);n.goodChar===t&&0===n.badChar||!l(e,!0)||c(e,t,n.space,n.tab,{line:r.loc.start.line,column:r.loc.start.column},!0)}function h(e,t,r){let n=e.parent;const s=new Set(r||["Program"]);for(;n.type!==t&&!s.has(n.type)&&"Program"!==n.type;)n=n.parent;return n.type===t?n:null}function m(e){return h(e,"VariableDeclarator")}function g(e,t){return t&&t.parent.loc.start.line===e.loc.start.line&&t.parent.declarations.length>1}function y(e){const t=o.getLastToken(e);return e.loc.start.line===t.loc.end.line}function x(e){if(y(e))return;let t,r,o="ArrayExpression"===e.type?e.elements:e.properties;o=o.filter((e=>null!==e));const i=m(e);if(l(e)){const r=e.parent;if(t=u(r).goodChar,!(i&&i.loc.start.line===e.loc.start.line||"VariableDeclarator"===r.type&&i!==i.parent.declarations[0]))if("VariableDeclarator"===r.type&&i.loc.start.line===r.loc.start.line)t+=n*s.VariableDeclarator[i.parent.kind];else if("ObjectExpression"===r.type||"ArrayExpression"===r.type){const o="ObjectExpression"===e.parent.type?e.parent.properties:e.parent.elements;o[0]&&o[0].loc.start.line===r.loc.start.line&&o[0].loc.end.line!==r.loc.start.line||("number"==typeof s[r.type]?t+=s[r.type]*n:t=o[0].loc.start.column)}else"CallExpression"===r.type||"NewExpression"===r.type?"number"==typeof s.CallExpression.arguments?t+=s.CallExpression.arguments*n:"first"===s.CallExpression.arguments?-1!==r.arguments.indexOf(e)&&(t=r.arguments[0].loc.start.column):t+=n:"LogicalExpression"!==r.type&&"ArrowFunctionExpression"!==r.type||(t+=n);!function(e,t){const r=u(e,!1);r.goodChar===t&&0===r.badChar||!l(e)||c(e,t,r.space,r.tab,{line:e.loc.start.line,column:e.loc.start.column})}(e,t)}else t=u(e).goodChar;r="first"===s[e.type]?o.length?o[0].loc.start.column:0:t+n*s[e.type],g(e,i)&&(r+=n*s.VariableDeclarator[i.parent.kind]),d(o,r),o.length>0&&o[o.length-1].loc.end.line===e.loc.end.line||f(e,t+(g(e,i)?s.VariableDeclarator[i.parent.kind]*n:0))}function b(e){if(y(e))return;if(e.parent&&("FunctionExpression"===e.parent.type||"FunctionDeclaration"===e.parent.type||"ArrowFunctionExpression"===e.parent.type))return void function(e){const t=e.parent;let r;if(r=!t.parent||"Property"!==t.parent.type&&"ArrayExpression"!==t.parent.type?u(t).goodChar:u(t,!1).goodChar,"CallExpression"===t.parent.type){const n=t.parent;"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type?n&&n.loc.start.line<e.loc.start.line&&(r=u(n).goodChar):function(e){const t=e.parent;return t.arguments.length>=2&&t.arguments[1]===e&&t.arguments[0].loc.end.line>t.arguments[0].loc.start.line}(t)&&n.callee.loc.start.line===n.callee.loc.end.line&&!l(t)&&(r=u(n).goodChar)}let o=n;null!==s.outerIIFEBody&&function(e){const t=e.parent;let r=t.parent;if("CallExpression"!==t.type||t.callee!==e)return!1;for(;"UnaryExpression"===r.type&&("!"===r.operator||"~"===r.operator||"+"===r.operator||"-"===r.operator)||"AssignmentExpression"===r.type||"LogicalExpression"===r.type||"SequenceExpression"===r.type||"VariableDeclarator"===r.type;)r=r.parent;return("ExpressionStatement"===r.type||"VariableDeclaration"===r.type)&&r.parent&&"Program"===r.parent.type}(t)?o=s.outerIIFEBody*n:"FunctionExpression"===t.type?o=s.FunctionExpression.body*n:"FunctionDeclaration"===t.type&&(o=s.FunctionDeclaration.body*n),r+=o;const i=m(e);i&&g(e,i)&&(r+=n*s.VariableDeclarator[i.parent.kind]),e.body.length>0&&d(e.body,r),f(e,r-o)}(e);let t,r=[];t=e.parent&&-1!==["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"].indexOf(e.parent.type)&&function(e){return"BlockStatement"===e.type||"ClassBody"===e.type||e.body&&"BlockStatement"===e.body.type||e.consequent&&"BlockStatement"===e.consequent.type}(e)?u(e.parent).goodChar:e.parent&&"CatchClause"===e.parent.type?u(e.parent.parent).goodChar:u(e).goodChar,r="IfStatement"===e.type&&"BlockStatement"!==e.consequent.type?[e.consequent]:Array.isArray(e.body)?e.body:[e.body],r.length>0&&d(r,t+n),"BlockStatement"===e.type&&f(e,t)}function v(e){"BlockStatement"!==e.body.type&&b(e)}function E(e,t){const r="SwitchStatement"===e.type?e:e.parent,o=void 0===t?u(r).goodChar:t;let a;return i[r.loc.start.line]?i[r.loc.start.line]:(a=r.cases.length>0&&0===s.SwitchCase?o:o+n*s.SwitchCase,i[r.loc.start.line]=a,a)}return{Program(e){e.body.length>0&&d(e.body,u(e).goodChar)},ClassBody:b,BlockStatement:b,WhileStatement:v,ForStatement:v,ForInStatement:v,ForOfStatement:v,DoWhileStatement:v,IfStatement(e){"BlockStatement"!==e.consequent.type&&e.consequent.loc.start.line>e.loc.start.line&&b(e)},VariableDeclaration(e){e.declarations[e.declarations.length-1].loc.start.line>e.declarations[0].loc.start.line&&function(e){const t=function(e){return e.declarations.reduce(((t,r)=>{const n=t[t.length-1];return(r.loc.start.line!==e.loc.start.line&&!n||n&&n.loc.start.line!==r.loc.start.line)&&t.push(r),t}),[])}(e),r=u(e).goodChar,i=t[t.length-1],a=r+n*s.VariableDeclarator[e.kind];if(d(t,a),o.getLastToken(e).loc.end.line<=i.loc.end.line)return;const c=o.getTokenBefore(i);","===c.value?f(e,u(c).goodChar):f(e,a-n)}(e)},ObjectExpression(e){x(e)},ArrayExpression(e){x(e)},MemberExpression(e){if(void 0===s.MemberExpression)return;if(y(e))return;if(h(e,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"]))return;if(h(e,"AssignmentExpression",["FunctionExpression"]))return;const t=u(e).goodChar+n*s.MemberExpression,r=[e.property],i=o.getTokenBefore(e.property);"Punctuator"===i.type&&"."===i.value&&r.push(i),d(r,t)},SwitchStatement(e){const t=u(e).goodChar,r=E(e,t);d(e.cases,r),f(e,t)},SwitchCase(e){if(y(e))return;const t=E(e);d(e.consequent,t+n)},FunctionDeclaration(e){y(e)||("first"===s.FunctionDeclaration.parameters&&e.params.length?d(e.params.slice(1),e.params[0].loc.start.column):null!==s.FunctionDeclaration.parameters&&d(e.params,u(e).goodChar+n*s.FunctionDeclaration.parameters))},FunctionExpression(e){y(e)||("first"===s.FunctionExpression.parameters&&e.params.length?d(e.params.slice(1),e.params[0].loc.start.column):null!==s.FunctionExpression.parameters&&d(e.params,u(e).goodChar+n*s.FunctionExpression.parameters))},ReturnStatement(e){if(y(e))return;const t=u(e).goodChar;!function(e){const t=o.getText(e).replace(o.getText(e.argument),"");return/^return\s*?\(\s*?\);*?/u.test(t)}(e)?p(e,t):function(e,t){const r=o.getLastToken(e,xh.isClosingParenToken);if(o.getText(r,r.loc.start.column).slice(0,-1).trim())return;const n=u(r,!0);n.goodChar!==t&&c(e,t,n.space,n.tab,{line:r.loc.start.line,column:r.loc.start.column},!0)}(e,t)},CallExpression(e){y(e)||("first"===s.CallExpression.arguments&&e.arguments.length?d(e.arguments.slice(1),e.arguments[0].loc.start.column):null!==s.CallExpression.arguments&&d(e.arguments,u(e).goodChar+n*s.CallExpression.arguments))}}}};function vh(e){return"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type}function Eh(e){const t=e.parent,r=t.parent;return vh(r)?"ForStatement"===r.type?r.init===t:r.left===t:Boolean(e.init)}var Ch={meta:{type:"suggestion",docs:{description:"require or disallow initialization in variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(e){const t="always",r=e.options[0]||t,n=e.options[1]||{};return{"VariableDeclaration:exit"(s){const o=s.kind,i=s.declarations;for(let a=0;a<i.length;++a){const c=i[a],u=c.id,l=Eh(c),p=n.ignoreForLoopInit&&vh(s.parent);let d="";r!==t||l?"never"===r&&"const"!==o&&l&&!p&&(d="notInitialized"):d="initialized","Identifier"===u.type&&d&&e.report({node:c,messageId:d,data:{idName:u.name}})}}}}};const Sh=Vp.exports,kh={"prefer-double":{quote:'"',description:"singlequote",convert:e=>e.replace(/'/gu,'"')},"prefer-single":{quote:"'",description:"doublequote",convert:e=>e.replace(/"/gu,"'")}};var Ah={meta:{type:"layout",docs:{description:"enforce the consistent use of either double or single quotes in JSX attributes",recommended:!1,url:"https://eslint.org/docs/rules/jsx-quotes"},fixable:"whitespace",schema:[{enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(e){const t=e.options[0]||"prefer-double",r=kh[t];return{JSXAttribute(t){const n=t.value;n&&Sh.isStringLiteral(n)&&!function(e){return-1!==e.value.indexOf(r.quote)||Sh.isSurroundedBy(e.raw,r.quote)}(n)&&e.report({node:n,messageId:"unexpected",data:{description:r.description},fix:e=>e.replaceText(n,r.convert(n.raw))})}}}};const Dh=Vp.exports;function wh(e){return e[e.length-1]}function Fh(e){return e.loc.end.line===e.loc.start.line}function Th(e,t){return e.mode=t.mode||"strict",void 0!==t.beforeColon?e.beforeColon=+t.beforeColon:e.beforeColon=0,void 0!==t.afterColon?e.afterColon=+t.afterColon:e.afterColon=1,void 0!==t.align&&("object"==typeof t.align?e.align=t.align:e.align={on:t.align,mode:e.mode,beforeColon:e.beforeColon,afterColon:e.afterColon}),e}var Ph={meta:{type:"layout",docs:{description:"enforce consistent spacing between keys and values in object literal properties",recommended:!1,url:"https://eslint.org/docs/rules/key-spacing"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},create(e){const t=e.options[0]||{},r=(i={},"object"==typeof(a=t).align?(i.align=Th({},a.align),i.align.on=a.align.on||"colon",i.align.mode=a.align.mode||"strict",i.multiLine=Th({},a.multiLine||a),i.singleLine=Th({},a.singleLine||a)):(i.multiLine=Th({},a.multiLine||a),i.singleLine=Th({},a.singleLine||a),i.multiLine.align&&(i.align={on:i.multiLine.align.on,mode:i.multiLine.align.mode||i.multiLine.mode,beforeColon:i.multiLine.align.beforeColon,afterColon:i.multiLine.align.afterColon})),i),n=r.multiLine,s=r.singleLine,o=r.align||null;var i,a;const c=e.getSourceCode();function u(e){return!(e.method||e.shorthand||"init"!==e.kind||"Property"!==e.type)}function l(e){const t=e.key;return e.computed?c.getText().slice(t.range[0],t.range[1]):Dh.getStaticPropertyName(e)}function p(t,r,n,s,o){const i=n.length-s;if((i&&"strict"===o||i<0&&"minimum"===o||i>0&&!s&&"minimum"===o)&&(!s||(a=n,!Dh.LINEBREAK_MATCHER.test(a)))){const n=function(e){return c.getTokenAfter(e,Dh.isColonToken)}(t.key),s=c.getTokenBefore(n,{includeComments:!0}),o=c.getTokenAfter(n,{includeComments:!0}),a="key"===r,u=i>0,p=Math.abs(i),d=Array(p+1).join(" "),f=a?s.loc.end:n.loc.start,h=a?n.loc.start:o.loc.start,m=a?s.loc:o.loc,g=u?{start:f,end:h}:m;let y;if(u){let e;e=a?[s.range[1],s.range[1]+p]:[o.range[0]-p,o.range[0]],y=function(t){return t.removeRange(e)}}else y=a?function(e){return e.insertTextAfter(s,d)}:function(e){return e.insertTextBefore(o,d)};let x="";x=u?"key"===r?"extraKey":"extraValue":"key"===r?"missingKey":"missingValue",e.report({node:t[r],loc:g,messageId:x,data:{computed:t.computed?"computed ":"",key:l(t)},fix:y})}var a}function d(e){const t=c.getFirstToken(e);return function(e){const t=c.getTokenAfter(e,Dh.isColonToken);return c.getTokenBefore(t)}(e.key).range[1]-t.range[0]}function f(e){const t=/(\s*):(\s*)/u.exec(c.getText().slice(e.key.range[1],e.value.range[0]));return t?{beforeColon:t[1],afterColon:t[2]}:null}function h(e){return 1===e.properties.length?[e.properties]:e.properties.reduce(((e,t)=>{const r=wh(e),n=wh(r);return!n||function(e,t){const r=e.loc.start.line,n=t.loc.start.line;if(n-r<=1)return!0;const s=c.getCommentsBefore(t);if(s.length&&s[0].loc.start.line-r<=1&&n-wh(s).loc.end.line<=1){for(let e=1;e<s.length;e++)if(s[e].loc.start.line-s[e-1].loc.end.line>1)return!1;return!0}return!1}(n,t)?r.push(t):e.push([t]),e}),[[]])}function m(e,t){const r=f(e);r&&(p(e,"key",r.beforeColon,t.beforeColon,t.mode),p(e,"value",r.afterColon,t.afterColon,t.mode))}function g(e,t){const r=e.length;for(let n=0;n<r;n++)m(e[n],t)}function y(e){h(e).forEach((e=>{const t=e.filter(u);t.length>0&&function(e){const[t]=e,r=wh(e);return t.loc.start.line===r.loc.end.line}(t)?g(t,n):function(e){const t=e.length,r=e.map(d),s=o.on;let i,a,c,u=Math.max(...r);o&&t>1?(i=o.beforeColon,a=o.afterColon,c=o.mode):(i=n.beforeColon,a=n.afterColon,c=o.mode),u+="colon"===s?i:a;for(let n=0;n<t;n++){const t=e[n],o=f(t);if(o){const e=r[n];"value"===s?(p(t,"key",o.beforeColon,i,c),p(t,"value",o.afterColon,u-e,c)):(p(t,"key",o.beforeColon,u-e,c),p(t,"value",o.afterColon,a,c))}}}(t)}))}return o?{ObjectExpression(e){Fh(e)?g(e.properties.filter(u),s):y(e)}}:{Property(e){m(e,Fh(e.parent)?s:n)}}}};const Ih=Vp.exports,_h=/^[)\]}>]$/u,Bh=/^(?:[([{<~!]|\+\+?|--?)$/u,Oh=/^[)\]}>*]$/u,Lh=/^[{*]$/u,jh=/\$\{$/u,Nh=/^\}/u,Rh=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,Mh=af.concat(["as","async","await","from","get","let","of","set","yield"]);function Vh(e){return"Template"===e.type&&jh.test(e.value)}function $h(e){return"Template"===e.type&&Nh.test(e.value)}!function(){Mh.sort();for(let e=1;e<Mh.length;++e)if(Mh[e]===Mh[e-1])throw new Error("Duplication was found in the keyword list: "+Mh[e])}();var Uh={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after keywords",recommended:!1,url:"https://eslint.org/docs/rules/keyword-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0},overrides:{type:"object",properties:Mh.reduce(((e,t)=>(e[t]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},e)),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(e){const t=e.getSourceCode(),r=new WeakSet;function n(n,s){const o=t.getTokenBefore(n);!o||!Rh.test(o.type)&&!s.test(o.value)||Vh(o)||r.has(o)||!Ih.isTokenOnSameLine(o,n)||t.isSpaceBetweenTokens(o,n)||e.report({loc:n.loc,messageId:"expectedBefore",data:n,fix:e=>e.insertTextBefore(n," ")})}function s(n,s){const o=t.getTokenBefore(n);o&&(Rh.test(o.type)||s.test(o.value))&&!Vh(o)&&!r.has(o)&&Ih.isTokenOnSameLine(o,n)&&t.isSpaceBetweenTokens(o,n)&&e.report({loc:{start:o.loc.end,end:n.loc.start},messageId:"unexpectedBefore",data:n,fix:e=>e.removeRange([o.range[1],n.range[0]])})}function o(n,s){const o=t.getTokenAfter(n);!o||!Rh.test(o.type)&&!s.test(o.value)||$h(o)||r.has(o)||!Ih.isTokenOnSameLine(n,o)||t.isSpaceBetweenTokens(n,o)||e.report({loc:n.loc,messageId:"expectedAfter",data:n,fix:e=>e.insertTextAfter(n," ")})}function i(n,s){const o=t.getTokenAfter(n);o&&(Rh.test(o.type)||s.test(o.value))&&!$h(o)&&!r.has(o)&&Ih.isTokenOnSameLine(n,o)&&t.isSpaceBetweenTokens(n,o)&&e.report({loc:{start:n.loc.end,end:o.loc.start},messageId:"unexpectedAfter",data:n,fix:e=>e.removeRange([n.range[1],o.range[0]])})}const a=function(e={}){const t=!1!==e.before,r=!1!==e.after,a={before:t?n:s,after:r?o:i},c=e&&e.overrides||{},u=Object.create(null);for(let e=0;e<Mh.length;++e){const l=Mh[e],p=c[l];if(p){const e="before"in p?p.before:t,a="after"in p?p.after:r;u[l]={before:e?n:s,after:a?o:i}}else u[l]=a}return u}(e.options[0]);function c(e,t){a[e.value].before(e,t||_h)}function u(e,t){a[e.value].after(e,t||Bh)}function l(e){c(e),u(e)}function p(e){const r=e&&t.getFirstToken(e);r&&"Keyword"===r.type&&l(r)}function d(e){const r=e&&t.getFirstToken(e);r&&"Keyword"===r.type&&c(r)}function f(e){if(e){l(t.getTokenBefore(e,Ih.isKeywordToken))}}function h(e){const r=e&&t.getFirstToken(e);r&&("Keyword"===r.type&&"function"===r.value||"async"===r.value)&&c(r)}function m(e){p(e),f(e.superClass)}function g(e){const r=t.getFirstToken(e);if(c(r,Oh),u(r,Lh),"ExportDefaultDeclaration"===e.type&&l(t.getTokenAfter(r)),"ExportAllDeclaration"===e.type&&e.exported){c(t.getTokenBefore(e.exported),Oh)}if(e.source){const r=t.getTokenBefore(e.source);c(r,Oh),u(r,Lh)}}function y(e){if(e.static&&p(e),"get"===e.kind||"set"===e.kind||(e.method||"MethodDefinition"===e.type)&&e.value.async){const r=t.getTokenBefore(e.key,(e=>{switch(e.value){case"get":case"set":case"async":return!0;default:return!1}}));if(!r)throw new Error("Failed to find token get, set, or async beside method name");l(r)}}return{DebuggerStatement:p,WithStatement:p,BreakStatement:p,ContinueStatement:p,ReturnStatement:p,ThrowStatement:p,TryStatement:function(e){p(e),p(e.handler),f(e.finalizer)},IfStatement:function(e){p(e),f(e.alternate)},SwitchStatement:p,SwitchCase:p,DoWhileStatement:function(e){p(e),f(e.test)},ForInStatement:function(e){p(e);const r=t.getTokenBefore(e.right,Ih.isNotOpeningParenToken);"PrivateIdentifier"!==t.getTokenBefore(r).type&&c(r),u(r)},ForOfStatement:function(e){e.await?(c(t.getFirstToken(e,0)),u(t.getFirstToken(e,1))):p(e);const r=t.getTokenBefore(e.right,Ih.isNotOpeningParenToken);"PrivateIdentifier"!==t.getTokenBefore(r).type&&c(r),u(r)},ForStatement:p,WhileStatement:p,ClassDeclaration:m,ExportNamedDeclaration:g,ExportDefaultDeclaration:g,ExportAllDeclaration:g,FunctionDeclaration:h,ImportDeclaration:g,VariableDeclaration:p,ArrowFunctionExpression:h,AwaitExpression:function(e){c(t.getFirstToken(e))},ClassExpression:m,FunctionExpression:h,NewExpression:d,Super:d,ThisExpression:d,UnaryExpression:d,YieldExpression:d,ImportNamespaceSpecifier:function(e){c(t.getFirstToken(e,1),Oh)},MethodDefinition:y,PropertyDefinition:y,StaticBlock:p,Property:y,"BinaryExpression[operator='>']"(e){const n=t.getTokenBefore(e.right,Ih.isNotOpeningParenToken);r.add(n)}}}};const qh=Vp.exports;var Wh={meta:{type:"layout",docs:{description:"enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){const t=e.options[0];let r,n,s=!0;t&&"string"!=typeof t?(r=!t.position||"above"===t.position,n=t.ignorePattern,s=Object.prototype.hasOwnProperty.call(t,"applyDefaultIgnorePatterns")?t.applyDefaultIgnorePatterns:!1!==t.applyDefaultPatterns):r=!t||"above"===t;const o=qh.COMMENTS_IGNORE_PATTERN,i=/^\s*falls?\s?through/u,a=new RegExp(n,"u"),c=e.getSourceCode();return{Program(){c.getAllComments().filter((e=>"Line"===e.type)).forEach((t=>{if(s&&(o.test(t.value)||i.test(t.value)))return;if(n&&a.test(t.value))return;const u=c.getTokenBefore(t,{includeComments:!0}),l=u&&u.loc.end.line===t.loc.start.line;r?l&&e.report({node:t,messageId:"above"}):l||e.report({node:t,messageId:"beside"})}))}}}};const zh=Vp.exports;var Gh={meta:{type:"layout",docs:{description:"enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){const t=e.getSourceCode();function r(e,t){return function(r){return r.replaceTextRange(e,t)}}return{Program:function(n){const s="unix"===(e.options[0]||"unix"),o=s?"\n":"\r\n",i=t.getText(),a=zh.createGlobalLinebreakMatcher();let c,u=0;for(;null!==(c=a.exec(i));){if(u++,c[0]===o)continue;const i=c.index,a=[i,i+c[0].length];e.report({node:n,loc:{start:{line:u,column:t.lines[u-1].length},end:{line:u+1,column:0}},messageId:s?"expectedLF":"expectedCRLF",fix:r(a,o)})}}}}};const Hh=Vp.exports;var Kh={meta:{type:"layout",docs:{description:"require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(e){const t=Object.assign({},e.options[0]),r=t.ignorePattern,n=Hh.COMMENTS_IGNORE_PATTERN,s=new RegExp(r,"u"),o=!1!==t.applyDefaultIgnorePatterns;t.beforeBlockComment=void 0===t.beforeBlockComment||t.beforeBlockComment;const i=e.getSourceCode(),a=i.lines,c=a.length+1,u=i.getAllComments(),l=function(e){const t=[];return e.forEach((e=>{const r=e.loc.start.line,n=e.loc.end.line;t.push(r,n)})),t}(u),p=function(e){return e.map(((e,t)=>({code:e.trim(),num:t+1}))).filter((e=>!e.code)).map((e=>e.num))}(a),d=l.concat(p);function f(e,t){return e.type===t||e.body&&e.body.type===t||e.consequent&&e.consequent.type===t}function h(e){const t=i.getNodeByRangeIndex(e.range[0]);if(t&&"StaticBlock"===t.type){const r=i.getFirstToken(t,{skip:1});return e.range[0]>=r.range[0]?t:null}return t}function m(e,t){const r=h(e);if(r&&f(r,t)){const t="StaticBlock"===r.type?i.getFirstToken(r,{skip:1}):r;return e.loc.start.line-t.loc.start.line==1}return!1}function g(e,t){const r=h(e);return!!r&&f(r,t)&&r.loc.end.line-e.loc.end.line==1}function y(e){return m(e,"ClassBody")}function x(e){return g(e,"ClassBody")}function b(a,u){if(o&&n.test(a.value))return;if(r&&s.test(a.value))return;let l=u.after,p=u.before;const f=a.loc.start.line-1,h=a.loc.end.line+1,b=function(e){let t=e;do{t=i.getTokenBefore(t,{includeComments:!0})}while(t&&Hh.isCommentToken(t));if(t&&Hh.isTokenOnSameLine(t,e))return!0;t=e;do{t=i.getTokenAfter(t,{includeComments:!0})}while(t&&Hh.isCommentToken(t));return!(!t||!Hh.isTokenOnSameLine(e,t))}(a),v=t.allowBlockStart&&function(e){return m(e,"ClassBody")||m(e,"BlockStatement")||m(e,"StaticBlock")||m(e,"SwitchCase")}(a)&&!(!1===t.allowClassStart&&y(a)),E=t.allowBlockEnd&&function(e){return g(e,"ClassBody")||g(e,"BlockStatement")||g(e,"StaticBlock")||g(e,"SwitchCase")||g(e,"SwitchStatement")}(a)&&!(!1===t.allowClassEnd&&x(a)),C=t.allowClassStart&&y(a),S=t.allowClassEnd&&x(a),k=t.allowObjectStart&&function(e){return m(e,"ObjectExpression")||m(e,"ObjectPattern")}(a),A=t.allowObjectEnd&&function(e){return g(e,"ObjectExpression")||g(e,"ObjectPattern")}(a),D=t.allowArrayStart&&function(e){return m(e,"ArrayExpression")||m(e,"ArrayPattern")}(a),w=t.allowArrayEnd&&function(e){return g(e,"ArrayExpression")||g(e,"ArrayPattern")}(a),F=v||C||k||D,T=E||S||A||w;if(f<1&&(p=!1),h>=c&&(l=!1),b)return;const P=i.getTokenBefore(a,{includeComments:!0}),I=i.getTokenAfter(a,{includeComments:!0});if(!F&&p&&!d.includes(f)&&(!Hh.isCommentToken(P)||!Hh.isTokenOnSameLine(P,a))){const t=a.range[0]-a.loc.start.column,r=[t,t];e.report({node:a,messageId:"before",fix:e=>e.insertTextBeforeRange(r,"\n")})}T||!l||d.includes(h)||Hh.isCommentToken(I)&&Hh.isTokenOnSameLine(a,I)||e.report({node:a,messageId:"after",fix:e=>e.insertTextAfter(a,"\n")})}return{Program(){u.forEach((e=>{"Line"===e.type?(t.beforeLineComment||t.afterLineComment)&&b(e,{after:t.afterLineComment,before:t.beforeLineComment}):"Block"===e.type&&(t.beforeBlockComment||t.afterBlockComment)&&b(e,{after:t.afterBlockComment,before:t.beforeBlockComment})}))}}}};const Jh=Vp.exports;var Qh={meta:{type:"layout",docs:{description:"require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/rules/lines-around-directive"},schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{before:{enum:["always","never"]},after:{enum:["always","never"]}},additionalProperties:!1,minProperties:2}]}],fixable:"whitespace",messages:{expected:'Expected newline {{location}} "{{value}}" directive.',unexpected:'Unexpected newline {{location}} "{{value}}" directive.'},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode(),r=e.options[0]||"always",n="string"==typeof r?r:r.before,s="string"==typeof r?r:r.after;function o(e){const r=t.getTokenBefore(e,{includeComments:!0}),n=r?r.loc.end.line:0;return e.loc.start.line-n>=2}function i(e){const r=t.getLastToken(e),n=t.getTokenBefore(r);return Jh.isSemicolonToken(r)&&r.loc.start.line>n.loc.end.line?n:r}function a(e){const r=i(e);return t.getTokenAfter(r,{includeComments:!0}).loc.start.line-r.loc.end.line>=2}function c(t,r,n){e.report({node:t,messageId:n?"expected":"unexpected",data:{value:t.expression.value,location:r},fix(e){const s=i(t);return n?"before"===r?e.insertTextBefore(t,"\n"):e.insertTextAfter(s,"\n"):e.removeRange("before"===r?[t.range[0]-1,t.range[0]]:[s.range[1],s.range[1]+1])}})}function u(e){const r=Jh.getDirectivePrologue(e);if(!r.length)return;const i=r[0],u=t.getCommentsBefore(i);u.length?("always"!==n||o(i)||c(i,"before",!0),"never"===n&&o(i)&&c(i,"before",!1)):"Program"===e.type&&"never"===n&&!u.length&&o(i)&&c(i,"before",!1);const l=r[r.length-1],p="Program"===e.type?e.body:e.body.body;(l!==p[p.length-1]||l.trailingComments)&&("always"!==s||a(l)||c(l,"after",!0),"never"===s&&a(l)&&c(l,"after",!1))}return{Program:u,FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u}}};const Xh=Vp.exports;var Yh={meta:{type:"layout",docs:{description:"require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/rules/lines-between-class-members"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},create(e){const t=[];t[0]=e.options[0]||"always",t[1]=e.options[1]||{exceptAfterSingleLine:!1};const r=e.getSourceCode();function n(e,t){const n=r.getLastToken(e),s=r.getTokenBefore(n),o=r.getFirstToken(t);return Xh.isSemicolonToken(n)&&!Xh.isTokenOnSameLine(s,n)&&Xh.isTokenOnSameLine(n,o)?{curLast:s,nextFirst:n}:{curLast:n,nextFirst:o}}function s(e,t,n){const o=r.getTokenAfter(e,{includeComments:!0});return o!==t&&o.loc.start.line-e.loc.end.line<=n?s(o,t,n):e}function o(e,t,n){const s=r.getTokenBefore(e,{includeComments:!0});return s!==t&&e.loc.start.line-s.loc.end.line<=n?o(s,t,n):e}return{ClassBody(i){const a=i.body;for(let i=0;i<a.length-1;i++){const l=r.getFirstToken(a[i]),{curLast:p,nextFirst:d}=n(a[i],a[i+1]),f=!!Xh.isTokenOnSameLine(l,p)&&t[1].exceptAfterSingleLine,h=s(p,d,1),m=o(d,p,1),g=m.loc.start.line-h.loc.end.line>1,y=(c=h,u=m,0!==r.getTokensBetween(c,u,{includeComments:!0}).length),x=s(p,d,0);("always"===t[0]&&!f&&!g||"never"===t[0]&&g)&&e.report({node:a[i+1],messageId:g?"never":"always",fix:e=>y?null:g?e.replaceTextRange([h.range[1],m.range[0]],"\n"):e.insertTextAfter(x,"\n")})}var c,u}}}},Zh={meta:{type:"suggestion",docs:{description:"enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/rules/max-classes-per-file"},schema:[{oneOf:[{type:"integer",minimum:1},{type:"object",properties:{ignoreExpressions:{type:"boolean"},max:{type:"integer",minimum:1}},additionalProperties:!1}]}],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(e){const[t={}]=e.options,[r,n]="number"==typeof t?[!1,t||1]:[t.ignoreExpressions,t.max||1];let s=0;return{Program(){s=0},"Program:exit"(t){s>n&&e.report({node:t,messageId:"maximumExceeded",data:{classCount:s,max:n}})},ClassDeclaration(){s++},ClassExpression(){r||s++}}}},em={meta:{type:"suggestion",docs:{description:"enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/rules/max-depth"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(e){const t=[],r=e.options[0];let n=4;function s(){t.push(0)}function o(){t.pop()}function i(r){const s=++t[t.length-1];s>n&&e.report({node:r,messageId:"tooDeeply",data:{depth:s,maxDepth:n}})}function a(){t[t.length-1]--}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))&&(n=r.maximum||r.max),"number"==typeof r&&(n=r),{Program:s,FunctionDeclaration:s,FunctionExpression:s,ArrowFunctionExpression:s,StaticBlock:s,IfStatement(e){"IfStatement"!==e.parent.type&&i(e)},SwitchStatement:i,TryStatement:i,DoWhileStatement:i,WhileStatement:i,WithStatement:i,ForStatement:i,ForInStatement:i,ForOfStatement:i,"IfStatement:exit":a,"SwitchStatement:exit":a,"TryStatement:exit":a,"DoWhileStatement:exit":a,"WhileStatement:exit":a,"WithStatement:exit":a,"ForStatement:exit":a,"ForInStatement:exit":a,"ForOfStatement:exit":a,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o,"StaticBlock:exit":o,"Program:exit":o}}};const tm={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},rm={anyOf:[tm,{type:"integer",minimum:0}]};var nm={meta:{type:"layout",docs:{description:"enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/rules/max-len"},schema:[rm,rm,tm],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(e){const t=/[^:/?#]:\/\/[^?#]/u,r=e.getSourceCode();const n=Object.assign({},e.options[e.options.length-1]);"number"==typeof e.options[0]&&(n.code=e.options[0]),"number"==typeof e.options[1]&&(n.tabWidth=e.options[1]);const s="number"==typeof n.code?n.code:80,o="number"==typeof n.tabWidth?n.tabWidth:4,i=!!n.ignoreComments,a=!!n.ignoreStrings,c=!!n.ignoreTemplateLiterals,u=!!n.ignoreRegExpLiterals,l=!!n.ignoreTrailingComments||!!n.ignoreComments,p=!!n.ignoreUrls,d=n.comments;let f=n.ignorePattern||null;function h(e,t,r){return r&&r.loc.start.line===t&&t<=r.loc.end.line&&(r.loc.end.line>t||r.loc.end.column===e.length)}function m(e,t){return e.slice(0,t.loc.start.column).replace(/\s+$/u,"")}function g(e,t){for(let o=t.loc.start.line;o<=t.loc.end.line;++o)r=e,n=o,s=t,Array.isArray(r[n])||(r[n]=[]),r[n].push(s);var r,n,s;return e}return f&&(f=new RegExp(f,"u")),{Program:function(n){const y=r.lines,x=i||d||l?function(){const e=[];return r.getAllComments().forEach((t=>{const n=r.getNodeByRangeIndex(t.range[0]);!function(e){if(!e||!e.parent||"JSXEmptyExpression"!==e.type||"JSXExpressionContainer"!==e.parent.type)return!1;const t=e.parent;return t.loc.start.line===t.loc.end.line}(n)?e.push(t):e[e.length-1]!==n.parent&&e.push(n.parent)})),e}():[];let b=0;const v=r.ast.tokens.filter((e=>"String"===e.type||"JSXText"===e.type&&"JSXAttribute"===r.getNodeByRangeIndex(e.range[0]-1).type)).reduce(g,{}),E=r.ast.tokens.filter((e=>"Template"===e.type)).reduce(g,{}),C=r.ast.tokens.filter((e=>"RegularExpression"===e.type)).reduce(g,{});y.forEach(((r,g)=>{const y=g+1;let S,k=!1;if(b<x.length){let e=null;do{e=x[++b]}while(e&&e.loc.start.line<=y);if(e=x[--b],function(e,t,r){const n=r.loc.start,s=r.loc.end,o=!e.slice(0,r.loc.start.column).trim();return r&&(n.line<t||n.line===t&&o)&&(s.line>t||s.line===t&&s.column===e.length)}(r,y,e))k=!0,S=r;else if(l&&h(r,y,e)){S=m(r,e);let t=b;for(;h(S,y,x[--t]);)S=m(S,x[t])}else S=r}else S=r;if(f&&f.test(S)||p&&t.test(S)||a&&v[y]||c&&E[y]||u&&C[y])return;const A=function(e,t){let r=0;return e.replace(/\t/gu,((e,n)=>{r+=t-(t?(n+r)%t:0)-1})),Array.from(e).length+r}(S,o),D=k&&d;if(k&&i)return;const w={start:{line:y,column:0},end:{line:y,column:S.length}};D?A>d&&e.report({node:n,loc:w,messageId:"maxComment",data:{lineLength:A,maxCommentLength:d}}):A>s&&e.report({node:n,loc:w,messageId:"max",data:{lineLength:A,maxLength:s}})}))}}}};const sm=Vp.exports;var om={meta:{type:"suggestion",docs:{description:"enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/rules/max-lines"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"}},additionalProperties:!1}]}],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=300;"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"max")?r=t.max:"number"==typeof t&&(r=t);const n=t&&t.skipComments,s=t&&t.skipBlankLines,o=e.getSourceCode();function i(e){return e&&("Block"===e.type||"Line"===e.type)}function a(e){let t,r=e.loc.start.line,n=e.loc.end.line;t=e;do{t=o.getTokenBefore(t,{includeComments:!0})}while(i(t));t&&sm.isTokenOnSameLine(t,e)&&(r+=1),t=e;do{t=o.getTokenAfter(t,{includeComments:!0})}while(i(t));return t&&sm.isTokenOnSameLine(e,t)&&(n-=1),r<=n?function(e,t){return[...Array(t-e).keys()].map((t=>t+e))}(r,n+1):[]}return{"Program:exit"(){let t=o.lines.map(((e,t)=>({lineNumber:t+1,text:e})));if(t.length>1&&""===t[t.length-1].text&&t.pop(),s&&(t=t.filter((e=>""!==e.text.trim()))),n){const e=o.getAllComments().flatMap(a);t=t.filter((t=>!e.includes(t.lineNumber)))}if(t.length>r){const n={start:{line:t[r].lineNumber,column:0},end:{line:o.lines.length,column:o.lines[o.lines.length-1].length}};e.report({loc:n,messageId:"exceed",data:{max:r,actual:t.length}})}}}}};const im=Vp.exports,{upperCaseFirst:am}=Rd;var cm={meta:{type:"suggestion",docs:{description:"enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/rules/max-lines-per-function"},schema:[{oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]}],messages:{exceed:"{{name}} has exceeded the limit of lines allowed by {{linesExceed}}. Maximum allowed number of lines per function is {{maxLines}}."}},create(e){const t=e.getSourceCode(),r=t.lines,n=e.options[0];let s=50,o=!1,i=!1,a=!1;"object"==typeof n?(s="number"==typeof n.max?n.max:50,o=!!n.skipComments,i=!!n.skipBlankLines,a=!!n.IIFEs):"number"==typeof n&&(s=n);const c=function(e){const t=new Map;return e.forEach((e=>{for(let r=e.loc.start.line;r<=e.loc.end.line;r++)t.set(r,e)})),t}(t.getAllComments());function u(e,t,r){const n=r.loc.start,s=r.loc.end,o=n.line===t&&!e.slice(0,n.column).trim(),i=s.line===t&&!e.slice(s.column).trim();return r&&(n.line<t||o)&&(s.line>t||i)}function l(t){const n=function(e){return!!e.parent&&e===e.parent.value&&("MethodDefinition"===e.parent.type||"Property"===e.parent.type&&(!0===e.parent.method||"get"===e.parent.kind||"set"===e.parent.kind))}(t)?t.parent:t;if(!a&&function(e){return("FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type)&&e.parent&&"CallExpression"===e.parent.type&&e.parent.callee===e}(n))return;let l=0,p=0,d=0;for(let e=n.loc.start.line-1;e<n.loc.end.line;++e){const t=r[e];o&&c.has(e+1)&&u(t,e+1,c.get(e+1))?l<=s&&p++:i&&t.match(/^\s*$/u)?l<=s&&d++:l++}if(l>s){const r=am(im.getFunctionNameWithKind(t)),o=l-s,i={start:{line:n.loc.start.line+s+(p+d),column:0},end:n.loc.end};e.report({node:n,loc:i,messageId:"exceed",data:{name:r,linesExceed:o,maxLines:s}})}}return{FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l}}},um={meta:{type:"suggestion",docs:{description:"enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/rules/max-nested-callbacks"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=10;"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"maximum")||Object.prototype.hasOwnProperty.call(t,"max"))?r=t.maximum||t.max:"number"==typeof t&&(r=t);const n=[];function s(t){if("CallExpression"===t.parent.type&&n.push(t),n.length>r){const s={num:n.length,max:r};e.report({node:t,messageId:"exceed",data:s})}}function o(){n.pop()}return{ArrowFunctionExpression:s,"ArrowFunctionExpression:exit":o,FunctionExpression:s,"FunctionExpression:exit":o}}};const lm=Vp.exports,{upperCaseFirst:pm}=Rd;var dm={meta:{type:"suggestion",docs:{description:"enforce a maximum number of parameters in function definitions",recommended:!1,url:"https://eslint.org/docs/rules/max-params"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(e){const t=e.getSourceCode(),r=e.options[0];let n=3;function s(r){r.params.length>n&&e.report({loc:lm.getFunctionHeadLoc(r,t),node:r,messageId:"exceed",data:{name:pm(lm.getFunctionNameWithKind(r)),count:r.params.length,max:n}})}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))&&(n=r.maximum||r.max),"number"==typeof r&&(n=r),{FunctionDeclaration:s,ArrowFunctionExpression:s,FunctionExpression:s}}};const fm=Vp.exports,{upperCaseFirst:hm}=Rd;var mm={meta:{type:"suggestion",docs:{description:"enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/rules/max-statements"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]},{type:"object",properties:{ignoreTopLevelFunctions:{type:"boolean"}},additionalProperties:!1}],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(e){const t=[],r=e.options[0],n=e.options[1]&&e.options[1].ignoreTopLevelFunctions||!1,s=[];let o=10;function i(t,r,n){if(r>n){const s=hm(fm.getFunctionNameWithKind(t));e.report({node:t,messageId:"exceed",data:{name:s,count:r,max:n}})}}function a(){t.push(0)}function c(e){const r=t.pop();"StaticBlock"!==e.type&&(n&&0===t.length?s.push({node:e,count:r}):i(e,r,o))}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))?o=r.maximum||r.max:"number"==typeof r&&(o=r),{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,StaticBlock:a,BlockStatement:function(e){t[t.length-1]+=e.body.length},"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c,"StaticBlock:exit":c,"Program:exit"(){1!==s.length&&s.forEach((e=>{const t=e.count;i(e.node,t,o)}))}}}};const gm=Vp.exports;var ym={meta:{type:"layout",docs:{description:"enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/rules/max-statements-per-line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},n=void 0!==r.max?r.max:1;let s,o=0,i=0;const a=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function c(){s&&e.report({node:s,messageId:"exceed",data:{numberOfStatementsOnThisLine:i,maxStatementsPerLine:n,statements:1===i?"statement":"statements"}}),s=null}function u(e){const t=e.loc.start.line;a.test(e.parent.type)&&e.parent.alternate!==e||(t===o?i+=1:(c(),i=1,o=t),i===n+1&&(s=s||e))}function l(e){const r=function(e){return t.getLastToken(e,gm.isNotSemicolonToken)}(e).loc.end.line;r!==o&&(c(),i=1,o=r)}return{BreakStatement:u,ClassDeclaration:u,ContinueStatement:u,DebuggerStatement:u,DoWhileStatement:u,ExpressionStatement:u,ForInStatement:u,ForOfStatement:u,ForStatement:u,FunctionDeclaration:u,IfStatement:u,ImportDeclaration:u,LabeledStatement:u,ReturnStatement:u,SwitchStatement:u,ThrowStatement:u,TryStatement:u,VariableDeclaration:u,WhileStatement:u,WithStatement:u,ExportNamedDeclaration:u,ExportDefaultDeclaration:u,ExportAllDeclaration:u,"BreakStatement:exit":l,"ClassDeclaration:exit":l,"ContinueStatement:exit":l,"DebuggerStatement:exit":l,"DoWhileStatement:exit":l,"ExpressionStatement:exit":l,"ForInStatement:exit":l,"ForOfStatement:exit":l,"ForStatement:exit":l,"FunctionDeclaration:exit":l,"IfStatement:exit":l,"ImportDeclaration:exit":l,"LabeledStatement:exit":l,"ReturnStatement:exit":l,"SwitchStatement:exit":l,"ThrowStatement:exit":l,"TryStatement:exit":l,"VariableDeclaration:exit":l,"WhileStatement:exit":l,"WithStatement:exit":l,"ExportNamedDeclaration:exit":l,"ExportDefaultDeclaration:exit":l,"ExportAllDeclaration:exit":l,"Program:exit":c}}};const xm=Vp.exports;var bm={meta:{type:"suggestion",docs:{description:"enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/rules/multiline-comment-style"},fixable:"whitespace",schema:[{enum:["starred-block","separate-lines","bare-block"]}],messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"starred-block";function n([e]){if("Block"!==e.type)return!1;const t=e.value.split(xm.LINEBREAK_MATCHER);return t.length>0&&t.every(((e,r)=>(0===r||r===t.length-1?/^\s*$/u:/^\s*\*/u).test(e)))}function s([e]){if("Block"!==e.type)return!1;const t=e.value.split(xm.LINEBREAK_MATCHER);return/^\*\s*$/u.test(t[0])&&t.slice(1,-1).every((e=>/^\s* /u.test(e)))&&/^\s*$/u.test(t[t.length-1])}function o(e){const[r]=e;return"Line"===r.type?function(e){const t=e.map((({value:e})=>e)).filter((e=>e.trim().length)).every((e=>e.startsWith(" ")));return e.map((({value:e})=>t?e.replace(/^ /u,""):e))}(e):n(e)?function(e){const t=e.value.split(xm.LINEBREAK_MATCHER).filter(((e,t,r)=>!(0===t||t===r.length-1))).map((e=>e.replace(/^\s*$/u,""))),r=t.map((e=>e.replace(/\s*\*/u,""))).filter((e=>e.trim().length)).every((e=>e.startsWith(" ")));return t.map((e=>e.replace(r?/\s*\* ?/u:/\s*\*/u,"")))}(r):function(e){const r=e.value.split(xm.LINEBREAK_MATCHER).map((e=>e.replace(/^\s*$/u,""))),n=t.text.slice(e.range[0]-e.loc.start.column,e.range[0])+" ";let s="";for(const[e,t]of r.entries()){if(!t.trim().length||0===e)continue;const[,r]=t.match(/^(\s*\*?\s*)/u);if(r.length<n.length){const e=n.slice(r.length-n.length);e.length>s.length&&(s=e)}}return r.map((e=>{const t=e.match(/^(\s*\*?\s*)(.*)/u),[,r,o]=t;return r.length>n.length?`${r.slice(n.length-(s.length+r.length))}${o}`:r.length<n.length?`${r.slice(n.length)}${o}`:o}))}(r)}function i(e){return t.text.slice(e.range[0]-e.loc.start.column,e.range[0])}function a(e,t){return`/* ${t.join(`\n${i(e)} `)} */`}const c={"starred-block"(r){const[n]=r,s=o(r);if(!s.some((e=>e.includes("*/"))))if(r.length>1)e.report({loc:{start:n.loc.start,end:r[r.length-1].loc.end},messageId:"expectedBlock",fix(e){const t=[n.range[0],r[r.length-1].range[1]];return s.some((e=>e.startsWith("/")))?null:e.replaceTextRange(t,function(e,t){const r=i(e);return`/*\n${t.map((e=>`${r} * ${e}`)).join("\n")}\n${r} */`}(n,s))}});else{const r=n.value.split(xm.LINEBREAK_MATCHER),s=i(n)+" *";if(!/^\*?\s*$/u.test(r[0])){const t=n.value.startsWith("*")?n.range[0]+1:n.range[0];e.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+2}},messageId:"startNewline",fix:e=>e.insertTextAfterRange([t,t+2],"\n"+s)})}/^\s*$/u.test(r[r.length-1])||e.report({loc:{start:{line:n.loc.end.line,column:n.loc.end.column-2},end:n.loc.end},messageId:"endNewline",fix:e=>e.replaceTextRange([n.range[1]-2,n.range[1]],`\n${s}/`)});for(let o=n.loc.start.line+1;o<=n.loc.end.line;o++){const i=t.lines[o-1],a=/^\s*\*/u.test(i)?"alignment":"missingStar";i.startsWith(s)||e.report({loc:{start:{line:o,column:0},end:{line:o,column:i.length}},messageId:a,fix(e){const c=t.getIndexFromLoc({line:o,column:0});if("alignment"===a){const[,t=""]=i.match(/^(\s*\*)/u)||[],r=c+t.length;return e.replaceTextRange([c,r],s)}const[,u=""]=i.match(/^(\s*)/u)||[],l=c+u.length;let p;for(const[e,s]of r.entries()){if(!/\S+/u.test(s))continue;const r=t.lines[n.loc.start.line-1+e],[,o="",a=""]=r.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];p=`${u.slice(o.length)}${a}`,/^\s*\//u.test(i)&&0===p.length&&(p+=" ");break}return e.replaceTextRange([c,l],`${s}${p}`)}})}}},"separate-lines"(r){const[n]=r;if("Block"!==n.type||s(r))return;const a=o(r),c=t.getTokenAfter(n,{includeComments:!0});c&&n.loc.end.line===c.loc.start.line||e.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+2}},messageId:"expectedLines",fix:e=>e.replaceText(n,function(e,t){return t.map((e=>"// "+e)).join("\n"+i(e))}(n,a))})},"bare-block"(t){if(s(t))return;const[r]=t,i=o(t);"Line"===r.type&&i.length>1&&!i.some((e=>e.includes("*/")))&&e.report({loc:{start:r.loc.start,end:t[t.length-1].loc.end},messageId:"expectedBlock",fix:e=>e.replaceTextRange([r.range[0],t[t.length-1].range[1]],a(r,i))}),n(t)&&e.report({loc:{start:r.loc.start,end:{line:r.loc.start.line,column:r.loc.start.column+2}},messageId:"expectedBareBlock",fix:e=>e.replaceText(r,a(r,i))})}};return{Program:()=>t.getAllComments().filter((e=>"Shebang"!==e.type)).filter((e=>!xm.COMMENTS_IGNORE_PATTERN.test(e.value))).filter((e=>{const r=t.getTokenBefore(e,{includeComments:!0});return!r||r.loc.end.line<e.loc.start.line})).reduce(((e,r,n,s)=>{const o=t.getTokenBefore(r,{includeComments:!0});return"Line"===r.type&&n&&"Line"===s[n-1].type&&o&&o.loc.end.line===r.loc.start.line-1&&o===s[n-1]?e[e.length-1].push(r):e.push([r]),e}),[]).filter((e=>!(1===e.length&&e[0].loc.start.line===e[0].loc.end.line))).forEach(c[r])}}};const vm=Vp.exports;var Em={meta:{type:"layout",docs:{description:"enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/rules/multiline-ternary"},schema:[{enum:["always","always-multiline","never"]}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(e){const t=e.getSourceCode(),r=e.options[0],n="never"!==r,s="always-multiline"===r;return{ConditionalExpression(r){const o=t.getTokenAfter(r.test,vm.isNotClosingParenToken),i=t.getTokenAfter(r.consequent,vm.isNotClosingParenToken),a=t.getFirstToken(r),c=t.getTokenBefore(o),u=t.getTokenAfter(o),l=t.getTokenBefore(i),p=t.getTokenAfter(i),d=vm.isTokenOnSameLine(c,u),f=vm.isTokenOnSameLine(l,p),h=!!t.getCommentsInside(r).length;if(n){if(s&&r.loc.start.line===r.loc.end.line)return;d&&e.report({node:r.test,loc:{start:a.loc.start,end:c.loc.end},messageId:"expectedTestCons",fix:e=>h?null:e.replaceTextRange([c.range[1],o.range[0]],"\n")}),f&&e.report({node:r.consequent,loc:{start:u.loc.start,end:l.loc.end},messageId:"expectedConsAlt",fix:e=>h?null:e.replaceTextRange([l.range[1],i.range[0]],"\n")})}else d||e.report({node:r.test,loc:{start:a.loc.start,end:c.loc.end},messageId:"unexpectedTestCons",fix:e=>{if(h)return null;const t=[],r=vm.isTokenOnSameLine(c,o),n=vm.isTokenOnSameLine(o,u);return r||t.push(e.removeRange([c.range[1],o.range[0]])),n||t.push(e.removeRange([o.range[1],u.range[0]])),t}}),f||e.report({node:r.consequent,loc:{start:u.loc.start,end:l.loc.end},messageId:"unexpectedConsAlt",fix:e=>{if(h)return null;const t=[],r=vm.isTokenOnSameLine(l,i),n=vm.isTokenOnSameLine(i,p);return r||t.push(e.removeRange([l.range[1],i.range[0]])),n||t.push(e.removeRange([i.range[1],p.range[0]])),t}})}}}};const Cm=Vp.exports,Sm=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function km(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)&&!Array.isArray(e[t]))throw new TypeError(t+", if provided, must be an Array");return e[t]||r}function Am(e,t){return e[t]=!0,e}var Dm={meta:{type:"suggestion",docs:{description:"require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/rules/new-cap"},schema:[{type:"object",properties:{newIsCap:{type:"boolean",default:!0},capIsNew:{type:"boolean",default:!0},newIsCapExceptions:{type:"array",items:{type:"string"}},newIsCapExceptionPattern:{type:"string"},capIsNewExceptions:{type:"array",items:{type:"string"}},capIsNewExceptionPattern:{type:"string"},properties:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{upper:"A function with a name starting with an uppercase letter should only be used as a constructor.",lower:"A constructor name should not start with a lowercase letter."}},create(e){const t=Object.assign({},e.options[0]);t.newIsCap=!1!==t.newIsCap,t.capIsNew=!1!==t.capIsNew;const r=!1===t.properties,n=km(t,"newIsCapExceptions",[]).reduce(Am,{}),s=t.newIsCapExceptionPattern?new RegExp(t.newIsCapExceptionPattern,"u"):null,o=function(e){let t=km(e,"capIsNewExceptions",Sm);return t!==Sm&&(t=t.concat(Sm)),t.reduce(Am,{})}(t),i=t.capIsNewExceptionPattern?new RegExp(t.capIsNewExceptionPattern,"u"):null,a={},c=e.getSourceCode();function u(e){return"Identifier"===e.callee.type?e.callee.name:Cm.getStaticPropertyName(e.callee)||""}function l(e){const t=e.charAt(0),r=t.toLowerCase();return r===t.toUpperCase()?"non-alpha":t===r?"lower":"upper"}function p(e,t,n,s){const o=c.getText(t.callee);if(e[n]||e[o])return!0;if(s&&s.test(o))return!0;const i=Cm.skipChainExpression(t.callee);return"UTC"===n&&"MemberExpression"===i.type?"Identifier"===i.object.type&&"Date"===i.object.name:r&&"MemberExpression"===i.type}function d(t,r){let n=Cm.skipChainExpression(t.callee);"MemberExpression"===n.type&&(n=n.property),e.report({node:t,loc:n.loc,messageId:r})}return t.newIsCap&&(a.NewExpression=function(e){const t=u(e);if(t){"lower"!==l(t)||p(n,e,t,s)||d(e,"lower")}}),t.capIsNew&&(a.CallExpression=function(e){const t=u(e);if(t){"upper"!==l(t)||p(o,e,t,i)||d(e,"upper")}}),a}};const wm=Vp.exports;var Fm={meta:{type:"layout",docs:{description:"enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/rules/new-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1}]},messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){const t="never"!==e.options[0],r=e.getSourceCode();return{NewExpression(n){if(0!==n.arguments.length)return;const s=r.getLastToken(n),o=s&&wm.isClosingParenToken(s)&&wm.isOpeningParenToken(r.getTokenBefore(s))&&n.callee.range[1]<n.range[1];t?o||e.report({node:n,messageId:"missing",fix:e=>e.insertTextAfter(n,"()")}):o&&e.report({node:n,messageId:"unnecessary",fix:e=>[e.remove(r.getTokenBefore(s)),e.remove(s),e.insertTextBefore(n,"("),e.insertTextAfter(n,")")]})}}}};const Tm=Vp.exports;var Pm={meta:{type:"layout",docs:{description:"require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/newline-after-var"},schema:[{enum:["never","always"]}],fixable:"whitespace",messages:{expected:"Expected blank line after variable declarations.",unexpected:"Unexpected blank line after variable declarations."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode(),r="never"===e.options[0]?"never":"always",n=t.getAllComments().reduce(((e,t)=>(e[t.loc.start.line]=t.loc.end.line,e)),{});function s(e){const t=n[e];return n[t+1]?s(t+1):t}return{VariableDeclaration:function(o){const i=function(e){const r=t.getLastToken(e);if("Punctuator"===r.type&&";"===r.value){const e=t.getTokenBefore(r);if(e.loc.end.line!==r.loc.start.line)return e}return r}(o),a=i===t.getLastToken(o)?t.getTokenAfter(o):t.getLastToken(o),c=i.loc.end.line+1;if(!a)return;if(function(e){return"ForStatement"===e||"ForInStatement"===e||"ForOfStatement"===e}(o.parent.type))return;if("ExportNamedDeclaration"===(u=o.parent.type)||"ExportSpecifier"===u||"ExportDefaultDeclaration"===u||"ExportAllDeclaration"===u)return;var u;if("Keyword"===a.type&&function(e){return"var"===e||"let"===e||"const"===e}(a.value))return;if(function(e){const r=t.getTokenAfter(e);return!r||"Punctuator"===r.type&&"}"===r.value}(o))return;const l=a.loc.start.line>c,p=void 0!==n[c];var d;"never"===r&&l&&!p&&e.report({node:o,messageId:"unexpected",data:{identifier:o.name},fix(e){const r=t.getText().slice(i.range[1],a.range[0]).split(Tm.LINEBREAK_MATCHER);return e.replaceTextRange([i.range[1],a.range[0]],`${r.slice(0,-1).join("")}\n${r[r.length-1]}`)}}),"always"!==r||l&&(!p||(d=c,a.loc.start.line>s(d)+1))||e.report({node:o,messageId:"expected",data:{identifier:o.name},fix:e=>(l?s(c):i.loc.end.line)===a.loc.start.line?e.insertTextBefore(a,"\n\n"):e.insertTextBeforeRange([a.range[0]-a.loc.start.column,a.range[1]],"\n")})}}}},Im={meta:{type:"layout",docs:{description:"require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode();function r(e,r){const n=t.getTokenBefore(e);return r.some((e=>n.value===e))}function n(e){const r=e.loc.start.line,n=function(e){const r=t.getTokenBefore(e);let n;return n=r?r.loc.end.line:0,n}(e);return r-n-function(e,r){const n=t.getCommentsBefore(e);let s=0;return n.length?(n.forEach((t=>{s++,"Block"===t.type&&(s+=t.loc.end.line-t.loc.start.line),t.loc.start.line===r&&s--,t.loc.end.line===e.loc.start.line&&s--})),s):s}(e,n)>1}return{ReturnStatement(s){(function(e){const t=e.parent.type;return e.parent.body?Array.isArray(e.parent.body)?e.parent.body[0]===e:e.parent.body===e:r(e,"IfStatement"===t?["else",")"]:"DoWhileStatement"===t?["do"]:"SwitchCase"===t?[":"]:[")"])})(s)||n(s)||e.report({node:s,messageId:"expected",fix(e){if(function(e){const r=t.getCommentsBefore(e),n=r[r.length-1],s=t.getTokenBefore(e);return 0===r.length||n.loc.end.line===s.loc.end.line&&n.loc.end.line!==e.loc.start.line}(s)){const r=t.getTokenBefore(s),n=s.loc.start.line===r.loc.end.line?"\n\n":"\n";return e.insertTextBefore(s,n)}return null}})}}}};const _m=Vp.exports;var Bm={meta:{type:"layout",docs:{description:"require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(e){const t=(e.options[0]||{}).ignoreChainWithDepth||2,r=e.getSourceCode();function n(e){const t=function(e){return e.computed?e.optional?"?.[":"[":e.optional?"?.":"."}(e),n=r.getText(e.property).split(_m.LINEBREAK_MATCHER),s=e.computed&&1===n.length?"]":"";return t+n[0]+s}return{"CallExpression:exit"(s){const o=_m.skipChainExpression(s.callee);if("MemberExpression"!==o.type)return;let i=_m.skipChainExpression(o.object),a=1;for(;i&&i.callee;)a+=1,i=_m.skipChainExpression(_m.skipChainExpression(i.callee).object);if(a>t&&_m.isTokenOnSameLine(o.object,o.property)){const t=r.getTokenAfter(o.object,_m.isNotClosingParenToken);e.report({node:o.property,loc:{start:t.loc.start,end:o.loc.end},messageId:"expected",data:{callee:n(o)},fix:e=>e.insertTextBefore(t,"\n")})}}}}};const{getStaticPropertyName:Om,getVariableByName:Lm,skipChainExpression:jm}=Vp.exports;function Nm(e){return/^(alert|confirm|prompt)$/u.test(e)}function Rm(e,t){const r=function(e,t){const r=e.references.filter((e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]));return 1===r.length?r[0]:null}(e,t);return r&&r.resolved&&r.resolved.defs.length>0}var Mm={meta:{type:"suggestion",docs:{description:"disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create:e=>({CallExpression(t){const r=jm(t.callee),n=e.getScope();if("Identifier"===r.type){const s=r.name;!Rm(n,r)&&Nm(r.name)&&e.report({node:t,messageId:"unexpected",data:{name:s}})}else if("MemberExpression"===r.type&&function(e,t){return"global"===e.type&&"ThisExpression"===t.type||!("Identifier"!==t.type||!("window"===t.name||"globalThis"===t.name&&Lm(e,"globalThis")))&&!Rm(e,t)}(n,r.object)){const n=Om(r);Nm(n)&&e.report({node:t,messageId:"unexpected",data:{name:n}})}}})},Vm={meta:{type:"suggestion",docs:{description:"disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/rules/no-array-constructor"},schema:[],messages:{preferLiteral:"The array literal notation [] is preferable."}},create(e){function t(t){1!==t.arguments.length&&"Identifier"===t.callee.type&&"Array"===t.callee.name&&e.report({node:t,messageId:"preferLiteral"})}return{CallExpression:t,NewExpression:t}}},$m={meta:{type:"problem",docs:{description:"disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create:e=>({"NewExpression[callee.name='Promise'][arguments.0.async=true]"(t){e.report({node:e.getSourceCode().getFirstToken(t.arguments[0],(e=>"async"===e.value)),messageId:"async"})}})};function Um(e){const t=e.type;return"FunctionDeclaration"===t||"FunctionExpression"===t||"ArrowFunctionExpression"===t||"ForOfStatement"===t&&!0===e.await}function qm(e,t){switch(t.type){case"ForStatement":return e===t.test||e===t.update||e===t.body;case"ForOfStatement":case"ForInStatement":return e===t.body;case"WhileStatement":case"DoWhileStatement":return e===t.test||e===t.body;default:return!1}}var Wm={meta:{type:"problem",docs:{description:"disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(e){function t(t){if("ForOfStatement"===t.type&&!t.await)return;let r=t,n=r.parent;for(;n&&!Um(n);){if(qm(r,n))return void e.report({node:t,messageId:"unexpectedAwait"});r=n,n=n.parent}}return{AwaitExpression:t,ForOfStatement:t}}};const zm=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];var Gm={meta:{type:"suggestion",docs:{description:"disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:zm},uniqueItems:!0},int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){const t=e.options[0]||{},r=t.allow||[],n=!0===t.int32Hint;function s(t){!function(e){return-1!==zm.indexOf(e.operator)}(t)||function(e){return-1!==r.indexOf(e.operator)}(t)||function(e){return n&&"|"===e.operator&&e.right&&"Literal"===e.right.type&&0===e.right.value}(t)||function(t){e.report({node:t,messageId:"unexpected",data:{operator:t.operator}})}(t)}return{AssignmentExpression:s,BinaryExpression:s,UnaryExpression:s}}},Hm={meta:{deprecated:!0,replacedBy:[],type:"problem",docs:{description:"disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create:e=>({"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(t){e.report({node:t,messageId:"deprecated",data:{expr:"CallExpression"===t.type?"Buffer()":"new Buffer()"}})}})},Km={meta:{type:"suggestion",docs:{description:"disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create:e=>({MemberExpression(t){const r=t.object.name,n=t.property.name;"arguments"===r&&!t.computed&&n&&n.match(/^calle[er]$/u)&&e.report({node:t,messageId:"unexpected",data:{prop:n}})}})},Jm={meta:{type:"suggestion",docs:{description:"disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/rules/no-case-declarations"},schema:[],messages:{unexpected:"Unexpected lexical declaration in case block."}},create(e){function t(e){switch(e.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return"var"!==e.kind;default:return!1}}return{SwitchCase(r){for(let n=0;n<r.consequent.length;n++){const s=r.consequent[n];t(s)&&e.report({node:s,messageId:"unexpected"})}}}}};const Qm=Vp.exports;var Xm={meta:{type:"suggestion",docs:{description:"disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:"https://eslint.org/docs/rules/no-catch-shadow"},replacedBy:["no-shadow"],deprecated:!0,schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create:e=>({"CatchClause[param!=null]"(t){let r=e.getScope();r.block===t&&(r=r.upper),function(e,t){return null!==Qm.getVariableByName(e,t)}(r,t.param.name)&&e.report({node:t,messageId:"mutable",data:{name:t.param.name}})}})};const Ym=Vp.exports;var Zm={meta:{type:"problem",docs:{description:"disallow reassigning class members",recommended:!0,url:"https://eslint.org/docs/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(e){function t(t){Ym.getModifyingReferences(t.references).forEach((t=>{e.report({node:t.identifier,messageId:"class",data:{name:t.identifier.name}})}))}function r(r){e.getDeclaredVariables(r).forEach(t)}return{ClassDeclaration:r,ClassExpression:r}}},eg={meta:{type:"problem",docs:{description:"disallow comparing against -0",recommended:!0,url:"https://eslint.org/docs/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(e){function t(e){return"UnaryExpression"===e.type&&"-"===e.operator&&"Literal"===e.argument.type&&0===e.argument.value}const r=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(n){r.has(n.operator)&&(t(n.left)||t(n.right))&&e.report({node:n,messageId:"unexpected",data:{operator:n.operator}})}}}};const tg=Vp.exports,rg=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),ng={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};var sg={meta:{type:"problem",docs:{description:"disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(e){const t=e.options[0]||"except-parens",r=e.getSourceCode();function n(e){return e.parent&&rg.has(e.parent.type)&&e===e.parent.test}function s(t){!t.test||"AssignmentExpression"!==t.test.type||("ForStatement"===t.type?tg.isParenthesised(r,t.test):function(e){const t=r.getTokenBefore(e,1),n=r.getTokenAfter(e,1);return tg.isParenthesised(r,e)&&t&&tg.isOpeningParenToken(t)&&t.range[1]<=e.range[0]&&tg.isClosingParenToken(n)&&n.range[0]>=e.range[1]}(t.test))||e.report({node:t.test,messageId:"missing"})}return"always"===t?{AssignmentExpression:function(t){const r=function(e){let t=e;do{if(n(t))return t.parent}while((t=t.parent)&&!tg.isFunction(t));return null}(t);r&&e.report({node:t,messageId:"unexpected",data:{type:ng[r.type]||r.type}})}}:{DoWhileStatement:s,ForStatement:s,IfStatement:s,WhileStatement:s,ConditionalExpression:s}}};const og=Vp.exports;var ig={meta:{type:"suggestion",docs:{description:"disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(e){const t=e.options[0]||{},r=t.allowParens||void 0===t.allowParens,n=e.getSourceCode();return{ArrowFunctionExpression:function(t){const s=t.body;!function(e){return e&&"ConditionalExpression"===e.type}(s)||r&&og.isParenthesised(n,s)||e.report({node:t,messageId:"confusing",fix:e=>r&&e.replaceText(t.body,`(${n.getText(t.body)})`)})}}}};const ag=Vp.exports;var cg={meta:{type:"suggestion",docs:{description:"disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected console statement."}},create(e){const t=(e.options[0]||{}).allow||[];function r(e){const t=e.identifier;return t&&"console"===t.name}function n(e){const r=e.identifier,n=r.parent;return"MemberExpression"===n.type&&n.object===r&&!function(e){const r=ag.getStaticPropertyName(e);return r&&-1!==t.indexOf(r)}(n)}function s(t){const r=t.identifier.parent;e.report({node:r,loc:r.loc,messageId:"unexpected"})}return{"Program:exit"(){const t=e.getScope(),o=ag.getVariableByName(t,"console"),i=o&&o.defs.length>0,a=o?o.references:t.through.filter(r);i||a.filter(n).forEach(s)}}}};const ug=Vp.exports;var lg={meta:{type:"problem",docs:{description:"disallow reassigning `const` variables",recommended:!0,url:"https://eslint.org/docs/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(e){function t(t){ug.getModifyingReferences(t.references).forEach((t=>{e.report({node:t.identifier,messageId:"const",data:{name:t.identifier.name}})}))}return{VariableDeclaration(r){"const"===r.kind&&e.getDeclaredVariables(r).forEach(t)}}}},pg={meta:{type:"problem",docs:{description:"disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){const t=!1!==(e.options[0]||{}).checkLoops,r=[];let n=new Set;function s(e){return null===e.value?"null"!==e.raw&&("object"==typeof e.regex||null):!!e.value}function o(e,t){switch(e.type){case"Literal":return"||"===t&&!0===s(e)||"&&"===t&&!1===s(e);case"UnaryExpression":return"&&"===t&&"void"===e.operator;case"LogicalExpression":return t===e.operator&&(o(e.left,t)||o(e.right,t));case"AssignmentExpression":return["||=","&&="].includes(e.operator)&&t===e.operator.slice(0,-1)&&o(e.right,t)}return!1}function i(e,t){if(!e)return!0;switch(e.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":case"ObjectExpression":case"ClassExpression":return!0;case"TemplateLiteral":return t&&e.quasis.some((e=>e.value.cooked.length))||e.expressions.every((e=>i(e,t)));case"ArrayExpression":return"BinaryExpression"!==e.parent.type||"+"!==e.parent.operator||e.elements.every((e=>i(e,!1)));case"UnaryExpression":return!!("void"===e.operator||"typeof"===e.operator&&t)||("!"===e.operator?i(e.argument,!0):i(e.argument,!1));case"BinaryExpression":return i(e.left,!1)&&i(e.right,!1)&&"in"!==e.operator;case"LogicalExpression":{const r=i(e.left,t),n=i(e.right,t),s=r&&o(e.left,e.operator),a=t&&n&&o(e.right,e.operator);return r&&n||s||a}case"NewExpression":return t;case"AssignmentExpression":return"="===e.operator?i(e.right,t):!(!["||=","&&="].includes(e.operator)||!t)&&o(e.right,e.operator.slice(0,-1));case"SequenceExpression":return i(e.expressions[e.expressions.length-1],t)}return!1}function a(t){n.has(t)&&(n.delete(t),e.report({node:t.test,messageId:"unexpected"}))}function c(t){t.test&&i(t.test,!0)&&e.report({node:t.test,messageId:"unexpected"})}function u(){r.push(n),n=new Set}function l(){n=r.pop()}function p(e){t&&function(e){e.test&&i(e.test,!0)&&n.add(e)}(e)}return{ConditionalExpression:c,IfStatement:c,WhileStatement:p,"WhileStatement:exit":a,DoWhileStatement:p,"DoWhileStatement:exit":a,ForStatement:p,"ForStatement > .test":e=>p(e.parent),"ForStatement:exit":a,FunctionDeclaration:u,"FunctionDeclaration:exit":l,FunctionExpression:u,"FunctionExpression:exit":l,YieldExpression:()=>n.clear()}}},dg={meta:{type:"problem",docs:{description:"disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/rules/no-constructor-return"},schema:{},fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(e){const t=[];return{onCodePathStart(e,r){t.push(r)},onCodePathEnd(){t.pop()},ReturnStatement(r){const n=t[t.length-1];n.parent&&("MethodDefinition"!==n.parent.type||"constructor"!==n.parent.kind||r.parent.parent!==n&&!r.argument||e.report({node:r,messageId:"unexpected"}))}}}},fg={meta:{type:"suggestion",docs:{description:"disallow `continue` statements",recommended:!1,url:"https://eslint.org/docs/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create:e=>({ContinueStatement(t){e.report({node:t,messageId:"unexpected"})}})},hg={};
11
+ /*! @author Toru Nagashima <https://github.com/mysticatea> */Object.defineProperty(yo,"__esModule",{value:!0});var So,ko=(So=Co)&&"object"==typeof So&&"default"in So?So.default:So;function Ao(e,t){const r=t.range[0];let n=e,s=!1;do{s=!1;for(const e of n.childScopes){const t=e.block.range;if(t[0]<=r&&r<t[1]){n=e,s=!0;break}}}while(s);return n}function Do(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=Ao(n,t));null!=n;){const e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function wo(e){return!this(e)}function Fo(e){return wo.bind(e)}function To(e,t){return"Punctuator"===e.type&&e.value===t}function Po(e){return To(e,"=>")}function Io(e){return To(e,",")}function _o(e){return To(e,";")}function Bo(e){return To(e,":")}function Oo(e){return To(e,"(")}function Lo(e){return To(e,")")}function jo(e){return To(e,"[")}function No(e){return To(e,"]")}function Ro(e){return To(e,"{")}function Mo(e){return To(e,"}")}function Vo(e){return["Block","Line","Shebang"].includes(e.type)}const $o=Fo(Po),Uo=Fo(Io),qo=Fo(_o),Wo=Fo(Bo),zo=Fo(Oo),Go=Fo(Lo),Ho=Fo(jo),Ko=Fo(No),Jo=Fo(Ro),Qo=Fo(Mo),Xo=Fo(Vo);function Yo(e,t){return e.id?t.getTokenAfter(e.id,Oo):t.getFirstToken(e,Oo)}function Zo(e,t){const r=e.parent;let n=null,s=null;if("ArrowFunctionExpression"===e.type){const r=t.getTokenBefore(e.body,Po);n=r.loc.start,s=r.loc.end}else"Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?(n=r.loc.start,s=Yo(e,t).loc.start):(n=e.loc.start,s=Yo(e,t).loc.start);return{start:{...n},end:{...s}}}const ei="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},ti=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),ri=new Set([Array.isArray,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,...Object.getOwnPropertyNames(Math).map((e=>Math[e])).filter((e=>"function"==typeof e)),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,String,String.fromCharCode,String.fromCodePoint,String.raw,Symbol.for,Symbol.keyFor,unescape].filter((e=>"function"==typeof e))),ni=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function si(e,t){const r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}function oi(e,t){const r=[];for(let n=0;n<e.length;++n){const s=e[n];if(null==s)r.length=n+1;else if("SpreadElement"===s.type){const e=ai(s.argument,t);if(null==e)return null;r.push(...e.value)}else{const e=ai(s,t);if(null==e)return null;r.push(e.value)}}return r}const ii=Object.freeze({ArrayExpression(e,t){const r=oi(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?ai(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;const r=ai(e.left,t),n=ai(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:Math.pow(r.value,n.value)};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){const r=e.callee,n=oi(e.arguments,t);if(null!=n)if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;const s=ai(r.object,t);if(null!=s){if(null==s.value&&(s.optional||e.optional))return{value:void 0,optional:!0};const o=ci(r,t);if(null!=o){const e=s.value,t=o.value;if(ri.has(e[t]))return{value:e[t](...n)};if(ni.has(e[t]))return{value:n[0]}}}}else{const s=ai(r,t);if(null!=s){if(null==s.value&&e.optional)return{value:void 0,optional:!0};const t=s.value;if(ri.has(t))return{value:t(...n)};if(ni.has(t))return{value:n[0]}}}return null},ConditionalExpression(e,t){const r=ai(e.test,t);return null!=r?r.value?ai(e.consequent,t):ai(e.alternate,t):null},ExpressionStatement:(e,t)=>ai(e.expression,t),Identifier(e,t){if(null!=t){const r=Do(t,e);if(null!=r&&0===r.defs.length&&ti.has(r.name)&&r.name in ei)return{value:ei[r.name]};if(null!=r&&1===r.defs.length){const e=r.defs[0];if(e.parent&&"const"===e.parent.kind&&"Identifier"===e.node.id.type)return ai(e.node.init,t)}}return null},Literal:e=>null==e.regex&&null==e.bigint||null!=e.value?{value:e.value}:null,LogicalExpression(e,t){const r=ai(e.left,t);if(null!=r){if("||"===e.operator&&!0===Boolean(r.value)||"&&"===e.operator&&!1===Boolean(r.value)||"??"===e.operator&&null!=r.value)return r;const n=ai(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;const r=ai(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};const n=ci(e,t);if(null!=n&&!si(r.value,n.value))return{value:r.value[n.value]}}return null},ChainExpression(e,t){const r=ai(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){const r=ai(e.callee,t),n=oi(e.arguments,t);if(null!=r&&null!=n){const e=r.value;if(ri.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){const r={};for(const n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;const e=ci(n,t),s=ai(n.value,t);if(null==e||null==s)return null;r[e.value]=s.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;{const e=ai(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}}return{value:r}},SequenceExpression:(e,t)=>ai(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){const r=ai(e.tag,t),n=oi(e.quasi.expressions,t);if(null!=r&&null!=n){const t=r.value,s=e.quasi.quasis.map((e=>e.value.cooked));if(s.raw=e.quasi.quasis.map((e=>e.value.raw)),t===String.raw)return{value:t(s,...n)}}return null},TemplateLiteral(e,t){const r=oi(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n<r.length;++n)t+=r[n],t+=e.quasis[n+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if("delete"===e.operator)return null;if("void"===e.operator)return{value:void 0};const r=ai(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function ai(e,t){return null!=e&&Object.hasOwnProperty.call(ii,e.type)?ii[e.type](e,t):null}function ci(e,t){const r="Property"===e.type?e.key:e.property;return e.computed?ai(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function ui(e,t=null){try{return ai(e,t)}catch(e){return null}}function li(e,t=null){if(e&&"Literal"===e.type&&null===e.value){if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}const r=ui(e,t);return r&&String(r.value)}function pi(e,t){switch(e.type){case"MemberExpression":return e.computed?li(e.property,t):"PrivateIdentifier"===e.property.type?null:e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":return e.computed?li(e.key,t):"Literal"===e.key.type?String(e.key.value):"PrivateIdentifier"===e.key.type?null:e.key.name}return null}function di(e,t){const r=e.parent,n=[],s="Property"===r.type&&r.value===e,o="MethodDefinition"===r.type&&r.value===e,i="PropertyDefinition"===r.type&&r.value===e;if((o||i)&&(r.static&&n.push("static"),"PrivateIdentifier"===r.key.type&&n.push("private")),e.async&&n.push("async"),e.generator&&n.push("generator"),s||o){if("constructor"===r.kind)return"constructor";"get"===r.kind?n.push("getter"):"set"===r.kind?n.push("setter"):n.push("method")}else i?n.push("method"):("ArrowFunctionExpression"===e.type&&n.push("arrow"),n.push("function"));if(s||o||i)if("PrivateIdentifier"===r.key.type)n.push("#"+r.key.name);else{const e=pi(r);if(e)n.push(`'${e}'`);else if(t){const e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):"AssignmentExpression"!==r.type&&"AssignmentPattern"!==r.type||!r.left||"Identifier"!==r.left.type||n.push(`'${r.left.name}'`);return n.join(" ")}const fi=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),hi=Object.freeze(new Set(["-","+","!","~"]));function mi(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const gi=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){const{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){const{type:n}=e;for(const s of r[n]||ko.getKeys(e)){const n=e[s];if(Array.isArray(n)){for(const e of n)if(mi(e)&&this.$visit(e,t,r))return!0}else if(mi(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!(!t.considerImplicitTypeConversion||!fi.has(e.operator)||"Literal"===e.left.type&&"Literal"===e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||(!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.property.type)||this.$visitChildren(e,t,r))},MethodDefinition(e,t,r){return!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.key.type)||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.key.type)||this.$visitChildren(e,t,r)},PropertyDefinition(e,t,r){return!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.key.type)||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return"delete"===e.operator||(!(!t.considerImplicitTypeConversion||!hi.has(e.operator)||"Literal"===e.argument.type)||this.$visitChildren(e,t,r))},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function yi(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return gi.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||ko.KEYS)}function xi(e,t){const r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":return 1===r.arguments.length&&r.arguments[0]===e?t.getTokenAfter(r.callee,Oo):null;case"DoWhileStatement":return r.test===e?t.getTokenAfter(r.body,Oo):null;case"IfStatement":case"WhileStatement":return r.test===e?t.getFirstToken(r,1):null;case"ImportExpression":return r.source===e?t.getFirstToken(r,1):null;case"SwitchStatement":return r.discriminant===e?t.getFirstToken(r,1):null;case"WithStatement":return r.object===e?t.getFirstToken(r,1):null;default:return null}}function bi(e,t,r){let n,s,o,i,a;if("number"==typeof e){if(n=0|e,s=t,o=r,!(n>=1))throw new TypeError("'times' should be a positive integer.")}else n=1,s=e,o=t;if(null==s||"CatchClause"===s.parent.type&&s.parent.param===s)return!1;i=a=s;do{i=o.getTokenBefore(i),a=o.getTokenAfter(a)}while(null!=i&&null!=a&&Oo(i)&&Lo(a)&&i!==xi(s,o)&&--n>0);return 0===n}const vi=/\$(?:[$&`']|[1-9][0-9]?)/gu,Ei=new WeakMap;function Ci(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}class Si{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");Ei.set(this,{pattern:new RegExp(e.source,e.flags),escaped:Boolean(t)})}*execAll(e){const{pattern:t,escaped:r}=Ei.get(this);let n=null,s=0;for(t.lastIndex=0;null!=(n=t.exec(e));)!r&&Ci(e,n.index)||(s=t.lastIndex,yield n,t.lastIndex=s)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){const n=[];let s=0;for(const o of e.execAll(t))n.push(t.slice(s,o.index)),n.push(String(r(...o,o.index,o.input))),s=o.index+o[0].length;return n.push(t.slice(s)),n.join("")}(this,String(e),t):function(e,t,r){const n=[];let s=0,o=null;function i(e){switch(e){case"$$":return"$";case"$&":return o[0];case"$`":return t.slice(0,o.index);case"$'":return t.slice(o.index+o[0].length);default:{const t=e.slice(1);return t in o?o[t]:e}}}for(o of e.execAll(t))n.push(t.slice(s,o.index)),n.push(r.replace(vi,i)),s=o.index+o[0].length;return n.push(t.slice(s)),n.join("")}(this,String(e),String(t))}}const ki=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,Ai=Function.call.bind(Object.hasOwnProperty),Di=Symbol("read"),wi=Symbol("call"),Fi=Symbol("construct"),Ti=Symbol("esm"),Pi={require:{[wi]:!0}};function Ii(e){return null==e||0!==e.defs.length||e.references.some((e=>e.isWrite()))}function _i(e){const t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;case"ChainExpression":return!0;default:return!1}}class Bi{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(const t of Object.keys(e)){const r=e[t],n=[t],s=this.globalScope.set.get(t);Ii(s)||(yield*this._iterateVariableReferences(s,n,r,!0))}for(const t of this.globalObjectNames){const r=[],n=this.globalScope.set.get(t);Ii(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(const{node:t}of this.iterateGlobalReferences(Pi)){const r=li(t.arguments[0]);if(null==r||!Ai(e,r))continue;const n=e[r],s=[r];n[Di]&&(yield{node:t,path:s,type:Di,info:n[Di]}),yield*this._iteratePropertyReferences(t,s,n)}}*iterateEsmReferences(e){const t=this.globalScope.block;for(const r of t.body){if(!ki.test(r.type)||null==r.source)continue;const t=r.source.value;if(!Ai(e,t))continue;const n=e[t],s=[t];if(n[Di]&&(yield{node:r,path:s,type:Di,info:n[Di]}),"ExportAllDeclaration"===r.type)for(const e of Object.keys(n)){const t=n[e];t[Di]&&(yield{node:r,path:s.concat(e),type:Di,info:t[Di]})}else for(const e of r.specifiers){const t=Ai(n,Ti),r=this._iterateImportReferences(e,s,t?n:"legacy"===this.mode?{default:n,...n}:{default:n});if(t)yield*r;else for(const e of r)e.path=e.path.filter(Oi),(e.path.length>=2||e.type!==Di)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(const s of e.references){if(!s.isRead())continue;const e=s.identifier;n&&r[Di]&&(yield{node:e,path:t,type:Di,info:r[Di]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;_i(n);)n=n.parent;const s=n.parent;if("MemberExpression"!==s.type)"CallExpression"!==s.type?"NewExpression"!==s.type?"AssignmentExpression"!==s.type?"AssignmentPattern"!==s.type?"VariableDeclarator"===s.type&&s.init===n&&(yield*this._iterateLhsReferences(s.id,t,r)):s.right===n&&(yield*this._iterateLhsReferences(s.left,t,r)):s.right===n&&(yield*this._iterateLhsReferences(s.left,t,r),yield*this._iteratePropertyReferences(s,t,r)):s.callee===n&&r[Fi]&&(yield{node:s,path:t,type:Fi,info:r[Fi]}):s.callee===n&&r[wi]&&(yield{node:s,path:t,type:wi,info:r[wi]});else if(s.object===n){const e=pi(s);if(null==e||!Ai(r,e))return;t=t.concat(e);const n=r[e];n[Di]&&(yield{node:s,path:t,type:Di,info:n[Di]}),yield*this._iteratePropertyReferences(s,t,n)}}*_iterateLhsReferences(e,t,r){if("Identifier"!==e.type)if("ObjectPattern"!==e.type)"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r));else for(const n of e.properties){const e=pi(n);if(null==e||!Ai(r,e))continue;const s=t.concat(e),o=r[e];o[Di]&&(yield{node:n,path:s,type:Di,info:o[Di]}),yield*this._iterateLhsReferences(n.value,s,o)}else{const n=Do(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1))}}*_iterateImportReferences(e,t,r){const n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){const s="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!Ai(r,s))return;t=t.concat(s);const o=r[s];return o[Di]&&(yield{node:e,path:t,type:Di,info:o[Di]}),void(yield*this._iterateVariableReferences(Do(this.globalScope,e.local),t,o,!1))}if("ImportNamespaceSpecifier"!==n){if("ExportSpecifier"===n){const n=e.local.name;if(!Ai(r,n))return;t=t.concat(n);const s=r[n];s[Di]&&(yield{node:e,path:t,type:Di,info:s[Di]})}}else yield*this._iterateVariableReferences(Do(this.globalScope,e.local),t,r,!1)}}function Oi(e,t){return!(1===t&&"default"===e)}Bi.READ=Di,Bi.CALL=wi,Bi.CONSTRUCT=Fi,Bi.ESM=Ti;var Li={CALL:wi,CONSTRUCT:Fi,ESM:Ti,findVariable:Do,getFunctionHeadLocation:Zo,getFunctionNameWithKind:di,getInnermostScope:Ao,getPropertyName:pi,getStaticValue:ui,getStringIfConstant:li,hasSideEffect:yi,isArrowToken:Po,isClosingBraceToken:Mo,isClosingBracketToken:No,isClosingParenToken:Lo,isColonToken:Bo,isCommaToken:Io,isCommentToken:Vo,isNotArrowToken:$o,isNotClosingBraceToken:Qo,isNotClosingBracketToken:Ko,isNotClosingParenToken:Go,isNotColonToken:Wo,isNotCommaToken:Uo,isNotCommentToken:Xo,isNotOpeningBraceToken:Jo,isNotOpeningBracketToken:Ho,isNotOpeningParenToken:zo,isNotSemicolonToken:qo,isOpeningBraceToken:Ro,isOpeningBracketToken:jo,isOpeningParenToken:Oo,isParenthesized:bi,isSemicolonToken:_o,PatternMatcher:Si,READ:Di,ReferenceTracker:Bi};yo.CALL=wi,yo.CONSTRUCT=Fi,yo.ESM=Ti,yo.PatternMatcher=Si,yo.READ=Di,yo.ReferenceTracker=Bi,yo.default=Li,yo.findVariable=Do,yo.getFunctionHeadLocation=Zo,yo.getFunctionNameWithKind=di,yo.getInnermostScope=Ao,yo.getPropertyName=pi,yo.getStaticValue=ui,yo.getStringIfConstant=li,yo.hasSideEffect=yi,yo.isArrowToken=Po,yo.isClosingBraceToken=Mo,yo.isClosingBracketToken=No,yo.isClosingParenToken=Lo,yo.isColonToken=Bo,yo.isCommaToken=Io,yo.isCommentToken=Vo,yo.isNotArrowToken=$o,yo.isNotClosingBraceToken=Qo,yo.isNotClosingBracketToken=Ko,yo.isNotClosingParenToken=Go,yo.isNotColonToken=Wo,yo.isNotCommaToken=Uo,yo.isNotCommentToken=Xo,yo.isNotOpeningBraceToken=Jo,yo.isNotOpeningBracketToken=Ho,yo.isNotOpeningParenToken=zo,yo.isNotSemicolonToken=qo,yo.isOpeningBraceToken=Ro,yo.isOpeningBracketToken=jo,yo.isOpeningParenToken=Oo,yo.isParenthesized=bi,yo.isSemicolonToken=_o;var ji={},Ni=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){const e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}},Ri={};Ri.search=function(e,t){const r=e.findIndex((e=>t<=e.range[0]));return-1===r?e.length:r},Ri.getFirstIndex=function(e,t,r){if(r in t)return t[r];if(r-1 in t){const n=t[r-1],s=n>=0&&n<e.length?e[n]:null;return s&&s.range[0]>=r?n:n+1}return 0},Ri.getLastIndex=function(e,t,r){if(r in t)return t[r]-1;if(r-1 in t){const n=t[r-1],s=n>=0&&n<e.length?e[n]:null;return s&&s.range[1]>r?n-1:n}return e.length-1};const Mi=Ni,Vi=Ri;const $i=Ni,Ui=Ri;const qi=Ni;var Wi=class extends qi{constructor(e){super(),this.cursor=e}moveNext(){const e=this.cursor.moveNext();return this.current=this.cursor.current,e}};const zi=Wi;const Gi=Ni,Hi=Ri;const Ki=Ni,Ji=Ri;var Qi=class extends Ki{constructor(e,t,r,n,s){super(),this.tokens=e,this.index=Ji.getFirstIndex(e,r,n),this.indexEnd=Ji.getLastIndex(e,r,s)}moveNext(){return this.index<=this.indexEnd&&(this.current=this.tokens[this.index],this.index+=1,!0)}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}};const Xi=Wi;const Yi=Wi;const Zi=class extends Mi{constructor(e,t,r,n,s){super(),this.tokens=e,this.comments=t,this.tokenIndex=Vi.getLastIndex(e,r,s),this.commentIndex=Vi.search(t,s)-1,this.border=n}moveNext(){const e=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,t=this.commentIndex>=0?this.comments[this.commentIndex]:null;return e&&(!t||e.range[1]>t.range[1])?(this.current=e,this.tokenIndex-=1):t?(this.current=t,this.commentIndex-=1):this.current=null,Boolean(this.current)&&(-1===this.border||this.current.range[0]>=this.border)}},ea=class extends $i{constructor(e,t,r,n,s){super(),this.tokens=e,this.index=Ui.getLastIndex(e,r,s),this.indexEnd=Ui.getFirstIndex(e,r,n)}moveNext(){return this.index>=this.indexEnd&&(this.current=this.tokens[this.index],this.index-=1,!0)}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}},ta=class extends zi{constructor(e,t){super(e),this.predicate=t}moveNext(){const e=this.predicate;for(;super.moveNext();)if(e(this.current))return!0;return!1}},ra=class extends Gi{constructor(e,t,r,n,s){super(),this.tokens=e,this.comments=t,this.tokenIndex=Hi.getFirstIndex(e,r,n),this.commentIndex=Hi.search(t,n),this.border=s}moveNext(){const e=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,t=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return e&&(!t||e.range[0]<t.range[0])?(this.current=e,this.tokenIndex+=1):t?(this.current=t,this.commentIndex+=1):this.current=null,Boolean(this.current)&&(-1===this.border||this.current.range[1]<=this.border)}},na=Qi,sa=class extends Xi{constructor(e,t){super(e),this.count=t}moveNext(){return this.count>0&&(this.count-=1,super.moveNext())}},oa=class extends Yi{constructor(e,t){super(e),this.count=t}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}};class ia{constructor(e,t){this.TokenCursor=e,this.TokenCommentCursor=t}createBaseCursor(e,t,r,n,s,o){return new(o?this.TokenCommentCursor:this.TokenCursor)(e,t,r,n,s)}createCursor(e,t,r,n,s,o,i,a,c){let u=this.createBaseCursor(e,t,r,n,s,o);return i&&(u=new ta(u,i)),a>=1&&(u=new oa(u,a)),c>=0&&(u=new sa(u,c)),u}}ji.forward=new ia(na,ra),ji.backward=new ia(ea,Zi);const aa=Qi;const ca=he,{isCommentToken:ua}=yo,la=ji,pa=Qi,da=class extends aa{constructor(e,t,r,n,s,o,i){super(e,t,r,n,s),this.index=Math.max(0,this.index-o),this.indexEnd=Math.min(e.length-1,this.indexEnd+i)}},fa=Ri,ha=Symbol("tokens"),ma=Symbol("comments"),ga=Symbol("indexMap");function ya(e,t,r,n,s,o,i){let a=!1,c=0,u=null;return"number"==typeof i?c=0|i:"function"==typeof i?u=i:i&&(a=!!i.includeComments,c=0|i.skip,u=i.filter||null),ca(c>=0,"options.skip should be zero or a positive integer."),ca(!u||"function"==typeof u,"options.filter should be a function."),e.createCursor(t,r,n,s,o,a,u,c,-1)}function xa(e,t,r,n,s,o,i){let a=!1,c=0,u=!1,l=null;return"number"==typeof i?(c=0|i,u=!0):"function"==typeof i?l=i:i&&(a=!!i.includeComments,c=0|i.count,u="number"==typeof i.count,l=i.filter||null),ca(c>=0,"options.count should be zero or a positive integer."),ca(!l||"function"==typeof l,"options.filter should be a function."),e.createCursor(t,r,n,s,o,a,l,0,u?c:-1)}function ba(e,t,r,n,s,o,i){return void 0===o&&void 0===i?new pa(e,t,r,n,s):"number"==typeof o||void 0===o?new da(e,t,r,n,s,0|o,0|i):xa(la.forward,e,t,r,n,s,o)}function va(e){const t=[];let r=e.getOneToken();for(;r&&ua(r);)t.push(r),r=e.getOneToken();return t}const{isCommentToken:Ea}=yo,Ca=class{constructor(e,t){this[ha]=e,this[ma]=t,this[ga]=function(e,t){const r=Object.create(null);let n=0,s=0,o=0,i=null;for(;n<e.length||s<t.length;){for(o=s<t.length?t[s].range[0]:Number.MAX_SAFE_INTEGER;n<e.length&&(i=e[n].range)[0]<o;)r[i[0]]=n,r[i[1]-1]=n,n+=1;for(o=n<e.length?e[n].range[0]:Number.MAX_SAFE_INTEGER;s<t.length&&(i=t[s].range)[0]<o;)r[i[0]]=n,r[i[1]-1]=n,s+=1}return r}(e,t)}getTokenByRangeStart(e,t){const r=t&&t.includeComments,n=la.forward.createBaseCursor(this[ha],this[ma],this[ga],e,-1,r).getOneToken();return n&&n.range[0]===e?n:null}getFirstToken(e,t){return ya(la.forward,this[ha],this[ma],this[ga],e.range[0],e.range[1],t).getOneToken()}getLastToken(e,t){return ya(la.backward,this[ha],this[ma],this[ga],e.range[0],e.range[1],t).getOneToken()}getTokenBefore(e,t){return ya(la.backward,this[ha],this[ma],this[ga],-1,e.range[0],t).getOneToken()}getTokenAfter(e,t){return ya(la.forward,this[ha],this[ma],this[ga],e.range[1],-1,t).getOneToken()}getFirstTokenBetween(e,t,r){return ya(la.forward,this[ha],this[ma],this[ga],e.range[1],t.range[0],r).getOneToken()}getLastTokenBetween(e,t,r){return ya(la.backward,this[ha],this[ma],this[ga],e.range[1],t.range[0],r).getOneToken()}getTokenOrCommentBefore(e,t){return this.getTokenBefore(e,{includeComments:!0,skip:t})}getTokenOrCommentAfter(e,t){return this.getTokenAfter(e,{includeComments:!0,skip:t})}getFirstTokens(e,t){return xa(la.forward,this[ha],this[ma],this[ga],e.range[0],e.range[1],t).getAllTokens()}getLastTokens(e,t){return xa(la.backward,this[ha],this[ma],this[ga],e.range[0],e.range[1],t).getAllTokens().reverse()}getTokensBefore(e,t){return xa(la.backward,this[ha],this[ma],this[ga],-1,e.range[0],t).getAllTokens().reverse()}getTokensAfter(e,t){return xa(la.forward,this[ha],this[ma],this[ga],e.range[1],-1,t).getAllTokens()}getFirstTokensBetween(e,t,r){return xa(la.forward,this[ha],this[ma],this[ga],e.range[1],t.range[0],r).getAllTokens()}getLastTokensBetween(e,t,r){return xa(la.backward,this[ha],this[ma],this[ga],e.range[1],t.range[0],r).getAllTokens().reverse()}getTokens(e,t,r){return ba(this[ha],this[ma],this[ga],e.range[0],e.range[1],t,r).getAllTokens()}getTokensBetween(e,t,r){return ba(this[ha],this[ma],this[ga],e.range[1],t.range[0],r,r).getAllTokens()}commentsExistBetween(e,t){const r=fa.search(this[ma],e.range[1]);return r<this[ma].length&&this[ma][r].range[1]<=t.range[0]}getCommentsBefore(e){return va(xa(la.backward,this[ha],this[ma],this[ga],-1,e.range[0],{includeComments:!0})).reverse()}getCommentsAfter(e){return va(xa(la.forward,this[ha],this[ma],this[ga],e.range[1],-1,{includeComments:!0}))}getCommentsInside(e){return this.getTokens(e,{includeComments:!0,filter:ua})}},Sa=Xt,ka=go;function Aa(e,t,r,n){if(function(e,t){return e.range[0]<=t.range[0]&&e.range[1]>=t.range[0]||t.range[0]<=e.range[0]&&t.range[1]>=e.range[0]}(t,r))return!1;const[s,o]=t.range[1]<=r.range[0]?[t,r]:[r,t],i=e.getLastToken(s)||s,a=e.getFirstToken(o)||o;let c=i;for(;c!==a;){const t=e.getTokenAfter(c,{includeComments:!0});if(c.range[1]!==t.range[0]||n&&t!==a&&"JSXText"===t.type&&/\s/u.test(t.value))return!0;c=t}return!1}var Da={SourceCode:class extends Ca{constructor(e,t){let r,n,s,o,i;"string"==typeof e?(r=e,n=t):"object"==typeof e&&null!==e&&(r=e.text,n=e.ast,s=e.parserServices,o=e.scopeManager,i=e.visitorKeys),function(e){if(!e.tokens)throw new Error("AST is missing the tokens array.");if(!e.comments)throw new Error("AST is missing the comments array.");if(!e.loc)throw new Error("AST is missing location information.");if(!e.range)throw new Error("AST is missing range information")}(n),super(n.tokens,n.comments),this.hasBOM=65279===r.charCodeAt(0),this.text=this.hasBOM?r.slice(1):r,this.ast=n,this.parserServices=s||{},this.scopeManager=o||null,this.visitorKeys=i||ka.DEFAULT_VISITOR_KEYS;const a=this.text.match(Sa.shebangPattern);a&&n.comments.length&&n.comments[0].value===a[1]&&(n.comments[0].type="Shebang"),this.tokensAndComments=function(e,t){const r=[];let n=0,s=0;for(;n<e.length||s<t.length;)s>=t.length||n<e.length&&e[n].range[0]<t[s].range[0]?r.push(e[n++]):r.push(t[s++]);return r}(n.tokens,n.comments),this.lines=[],this.lineStartIndices=[0];const c=Sa.createGlobalLinebreakMatcher();let u;for(;u=c.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices[this.lineStartIndices.length-1],u.index)),this.lineStartIndices.push(u.index+u[0].length);this.lines.push(this.text.slice(this.lineStartIndices[this.lineStartIndices.length-1])),this._commentCache=new WeakMap,Object.freeze(this),Object.freeze(this.lines)}static splitLines(e){return e.split(Sa.createGlobalLinebreakMatcher())}getText(e,t,r){return e?this.text.slice(Math.max(e.range[0]-(t||0),0),e.range[1]+(r||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getComments(e){if(this._commentCache.has(e))return this._commentCache.get(e);const t={leading:[],trailing:[]};if("Program"===e.type)0===e.body.length&&(t.leading=e.comments);else{(("BlockStatement"===e.type||"ClassBody"===e.type)&&0===e.body.length||"ObjectExpression"===e.type&&0===e.properties.length||"ArrayExpression"===e.type&&0===e.elements.length||"SwitchStatement"===e.type&&0===e.cases.length)&&(t.trailing=this.getTokens(e,{includeComments:!0,filter:Ea}));let r=this.getTokenBefore(e,{includeComments:!0});for(;r&&Ea(r)&&!(e.parent&&"Program"!==e.parent.type&&r.start<e.parent.start);)t.leading.push(r),r=this.getTokenBefore(r,{includeComments:!0});for(t.leading.reverse(),r=this.getTokenAfter(e,{includeComments:!0});r&&Ea(r)&&!(e.parent&&"Program"!==e.parent.type&&r.end>e.parent.end);)t.trailing.push(r),r=this.getTokenAfter(r,{includeComments:!0})}return this._commentCache.set(e,t),t}getJSDocComment(e){const t=e=>{const t=this.getTokenBefore(e,{includeComments:!0});return t&&Ea(t)&&"Block"===t.type&&"*"===t.value.charAt(0)&&e.loc.start.line-t.loc.end.line<=1?t:null};let r=e.parent;switch(e.type){case"ClassDeclaration":case"FunctionDeclaration":return t("ExportDefaultDeclaration"===(n=r).type||"ExportNamedDeclaration"===n.type||"ExportAllDeclaration"===n.type||"ExportSpecifier"===n.type?r:e);case"ClassExpression":return t(r.parent);case"ArrowFunctionExpression":case"FunctionExpression":if("CallExpression"!==r.type&&"NewExpression"!==r.type){for(;!this.getCommentsBefore(r).length&&!/Function/u.test(r.type)&&"MethodDefinition"!==r.type&&"Property"!==r.type&&(r=r.parent,r););if(r&&"FunctionDeclaration"!==r.type&&"Program"!==r.type)return t(r)}return t(e);default:return null}var n}getNodeByRangeIndex(e){let t=null;return ka.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(r){r.range[0]<=e&&e<r.range[1]?t=r:this.skip()},leave(e){e===t&&this.break()}}),t}isSpaceBetween(e,t){return Aa(this,e,t,!1)}isSpaceBetweenTokens(e,t){return Aa(this,e,t,!0)}getLocFromIndex(e){if("number"!=typeof e)throw new TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw new RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);if(e===this.text.length)return{line:this.lines.length,column:this.lines[this.lines.length-1].length};const t=e>=this.lineStartIndices[this.lineStartIndices.length-1]?this.lineStartIndices.length:this.lineStartIndices.findIndex((t=>e<t));return{line:t,column:e-this.lineStartIndices[t-1]}}getIndexFromLoc(e){if("object"!=typeof e||"number"!=typeof e.line||"number"!=typeof e.column)throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(e.line<=0)throw new RangeError(`Line number out of range (line ${e.line} requested). Line numbers should be 1-based.`);if(e.line>this.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${e.line} requested, but only ${this.lineStartIndices.length} lines present).`);const t=this.lineStartIndices[e.line-1],r=e.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[e.line],n=t+e.column;if(e.line===this.lineStartIndices.length&&n>r||e.line<this.lineStartIndices.length&&n>=r)throw new RangeError(`Column number out of range (column ${e.column} requested, but the length of line ${e.line} is ${r-t}).`);return n}}};const wa=Ys.exports("eslint:code-path");function Fa(e){return e.id+(e.reachable?"":"!")}function Ta(e,t){const r=t?":"+t:"";switch(e.type){case"Identifier":return`${e.type}${r} (${e.name})`;case"Literal":return`${e.type}${r} (${e.value})`;default:return`${e.type}${r}`}}var Pa={enabled:wa.enabled,dump:wa,dumpState:wa.enabled?function(e,t,r){for(let n=0;n<t.currentSegments.length;++n){const s=t.currentSegments[n].internal;if(r){const t=s.nodes.length-1;t>=0&&s.nodes[t]===Ta(e,"enter")?s.nodes[t]=Ta(e,void 0):s.nodes.push(Ta(e,"exit"))}else s.nodes.push(Ta(e,"enter"))}wa([t.currentSegments.map(Fa).join(",")+")",`${e.type}${r?":exit":""}`].join(" "))}:wa,dumpDot:wa.enabled?function(e){let t='\ndigraph {\nnode[shape=box,style="rounded,filled",fillcolor=white];\ninitial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];\n';e.returnedSegments.length>0&&(t+='final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];\n'),e.thrownSegments.length>0&&(t+='thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize];\n');const r=Object.create(null),n=this.makeDotArrows(e,r);for(const e in r){const n=r[e];t+=e+"[",n.reachable?t+='label="':t+='style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\\n',n.internal.nodes.length>0?t+=n.internal.nodes.join("\\n"):t+="????",t+='"];\n'}t+=n+"\n",t+="}",wa("DOT",t)}:wa,makeDotArrows(e,t){const r=[[e.initialSegment,0]],n=t||Object.create(null);let s=e.initialSegment.id,o="initial->"+e.initialSegment.id;for(;r.length>0;){const e=r.pop(),t=e[0],i=e[1];if(n[t.id]&&0===i)continue;n[t.id]=t;const a=t.allNextSegments[i];a&&(s===t.id?o+="->"+a.id:o+=`;\n${t.id}->${a.id}`,s=a.id,r.unshift([t,1+i]),r.push([a,0]))}return e.returnedSegments.forEach((e=>{s===e.id?o+="->final":o+=`;\n${e.id}->final`,s=null})),e.thrownSegments.forEach((e=>{s===e.id?o+="->thrown":o+=`;\n${e.id}->thrown`,s=null})),o+";"}};const Ia=Pa;function _a(e){return e.reachable}class Ba{constructor(e,t,r){this.id=e,this.nextSegments=[],this.prevSegments=t.filter(_a),this.allNextSegments=[],this.allPrevSegments=t,this.reachable=r,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),Ia.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(e){return-1!==this.internal.loopedPrevSegments.indexOf(e)}static newRoot(e){return new Ba(e,[],!0)}static newNext(e,t){return new Ba(e,Ba.flattenUnusedSegments(t),t.some(_a))}static newUnreachable(e,t){const r=new Ba(e,Ba.flattenUnusedSegments(t),!1);return Ba.markUsed(r),r}static newDisconnected(e,t){return new Ba(e,[],t.some(_a))}static markUsed(e){if(e.internal.used)return;let t;if(e.internal.used=!0,e.reachable)for(t=0;t<e.allPrevSegments.length;++t){const r=e.allPrevSegments[t];r.allNextSegments.push(e),r.nextSegments.push(e)}else for(t=0;t<e.allPrevSegments.length;++t)e.allPrevSegments[t].allNextSegments.push(e)}static markPrevSegmentAsLooped(e,t){e.internal.loopedPrevSegments.push(t)}static flattenUnusedSegments(e){const t=Object.create(null),r=[];for(let n=0;n<e.length;++n){const s=e[n];if(!t[s.id])if(s.internal.used)t[s.id]=!0,r.push(s);else for(let e=0;e<s.allPrevSegments.length;++e){const n=s.allPrevSegments[e];t[n.id]||(t[n.id]=!0,r.push(n))}}return r}}var Oa=Ba;const La=he,ja=Oa;function Na(e){return e.reachable}function Ra(e,t,r,n){const s=e.segmentsList,o=t>=0?t:s.length+t,i=r>=0?r:s.length+r,a=[];for(let t=0;t<e.count;++t){const r=[];for(let e=o;e<=i;++e)r.push(s[e][t]);a.push(n(e.idGenerator.next(),r))}return a}function Ma(e,t){let r=t;for(;r.length>e.count;){const t=[];for(let n=0,s=r.length/2|0;n<s;++n)t.push(ja.newNext(e.idGenerator.next(),[r[n],r[n+s]]));r=t}return r}class Va{constructor(e,t,r){this.idGenerator=e,this.upper=t,this.count=r,this.segmentsList=[]}get head(){const e=this.segmentsList;return 0===e.length?[]:e[e.length-1]}get empty(){return 0===this.segmentsList.length}get reachable(){const e=this.head;return e.length>0&&e.some(Na)}makeNext(e,t){return Ra(this,e,t,ja.newNext)}makeUnreachable(e,t){return Ra(this,e,t,ja.newUnreachable)}makeDisconnected(e,t){return Ra(this,e,t,ja.newDisconnected)}add(e){La(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.push(Ma(this,e))}replaceHead(e){La(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.splice(-1,1,Ma(this,e))}addAll(e){La(e.count===this.count);const t=e.segmentsList;for(let e=0;e<t.length;++e)this.segmentsList.push(t[e])}clear(){this.segmentsList=[]}static newRoot(e){const t=new Va(e,null,1);return t.add([ja.newRoot(e.next())]),t}static newEmpty(e,t){return new Va(e.idGenerator,e,(t?2:1)*e.count)}}const $a=Oa,Ua=Va;function qa(e,t,r,n){for(let s=0;s<n.length;++s){const o=n[s];e.push(o),-1===t.indexOf(o)&&r.push(o)}}function Wa(e){let t=e.tryContext;for(;t;){if(t.hasFinalizer&&"finally"!==t.position)return t;t=t.upper}return e}function za(e){let t=e.tryContext;for(;t;){if("try"===t.position||t.hasFinalizer&&"catch"===t.position)return t;t=t.upper}return e}function Ga(e,t){e.splice(e.indexOf(t),1)}function Ha(e,t,r){const n=$a.flattenUnusedSegments(t),s=$a.flattenUnusedSegments(r),o=Math.min(n.length,s.length);for(let t=0;t<o;++t){const r=n[t],o=s[t];o.reachable&&r.nextSegments.push(o),r.reachable&&o.prevSegments.push(r),r.allNextSegments.push(o),o.allPrevSegments.push(r),o.allPrevSegments.length>=2&&$a.markPrevSegmentAsLooped(o,r),e.notifyLooped(r,o)}}function Ka(e,t,r){t.processed||(t.trueForkContext.add(r),t.falseForkContext.add(r),t.qqForkContext.add(r)),!0!==e.test&&e.brokenForkContext.addAll(t.falseForkContext),e.endOfTestSegments=t.trueForkContext.makeNext(0,-1)}var Ja=class{constructor(e,t){this.idGenerator=e,this.notifyLooped=t,this.forkContext=Ua.newRoot(e),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0];const r=this.finalSegments=[],n=this.returnedForkContext=[],s=this.thrownForkContext=[];n.add=qa.bind(null,n,s,r),s.add=qa.bind(null,s,n,r)}get headSegments(){return this.forkContext.head}get parentForkContext(){const e=this.forkContext;return e&&e.upper}pushForkContext(e){return this.forkContext=Ua.newEmpty(this.forkContext,e),this.forkContext}popForkContext(){const e=this.forkContext;return this.forkContext=e.upper,this.forkContext.replaceHead(e.makeNext(0,-1)),e}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(e,t){this.choiceContext={upper:this.choiceContext,kind:e,isForkingAsResult:t,trueForkContext:Ua.newEmpty(this.forkContext),falseForkContext:Ua.newEmpty(this.forkContext),qqForkContext:Ua.newEmpty(this.forkContext),processed:!1}}popChoiceContext(){const e=this.choiceContext;this.choiceContext=e.upper;const t=this.forkContext,r=t.head;switch(e.kind){case"&&":case"||":case"??":if(e.processed||(e.trueForkContext.add(r),e.falseForkContext.add(r),e.qqForkContext.add(r)),e.isForkingAsResult){const t=this.choiceContext;return t.trueForkContext.addAll(e.trueForkContext),t.falseForkContext.addAll(e.falseForkContext),t.qqForkContext.addAll(e.qqForkContext),t.processed=!0,e}break;case"test":e.processed?(e.falseForkContext.clear(),e.falseForkContext.add(r)):(e.trueForkContext.clear(),e.trueForkContext.add(r));break;case"loop":return e;default:throw new Error("unreachable")}const n=e.trueForkContext;return n.addAll(e.falseForkContext),t.replaceHead(n.makeNext(0,-1)),e}makeLogicalRight(){const e=this.choiceContext,t=this.forkContext;if(e.processed){let r;switch(e.kind){case"&&":r=e.trueForkContext;break;case"||":r=e.falseForkContext;break;case"??":r=e.qqForkContext;break;default:throw new Error("unreachable")}t.replaceHead(r.makeNext(0,-1)),r.clear(),e.processed=!1}else{switch(e.kind){case"&&":e.falseForkContext.add(t.head);break;case"||":e.trueForkContext.add(t.head);break;case"??":e.trueForkContext.add(t.head),e.falseForkContext.add(t.head);break;default:throw new Error("unreachable")}t.replaceHead(t.makeNext(-1,-1))}}makeIfConsequent(){const e=this.choiceContext,t=this.forkContext;e.processed||(e.trueForkContext.add(t.head),e.falseForkContext.add(t.head),e.qqForkContext.add(t.head)),e.processed=!1,t.replaceHead(e.trueForkContext.makeNext(0,-1))}makeIfAlternate(){const e=this.choiceContext,t=this.forkContext;e.trueForkContext.clear(),e.trueForkContext.add(t.head),e.processed=!0,t.replaceHead(e.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext={upper:this.chainContext,countChoiceContexts:0}}popChainContext(){const e=this.chainContext;this.chainContext=e.upper;for(let t=e.countChoiceContexts;t>0;--t)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.countChoiceContexts+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(e,t){this.switchContext={upper:this.switchContext,hasCase:e,defaultSegments:null,defaultBodySegments:null,foundDefault:!1,lastIsDefault:!1,countForks:0},this.pushBreakContext(!0,t)}popSwitchContext(){const e=this.switchContext;this.switchContext=e.upper;const t=this.forkContext,r=this.popBreakContext().brokenForkContext;if(0===e.countForks)return void(r.empty||(r.add(t.makeNext(-1,-1)),t.replaceHead(r.makeNext(0,-1))));const n=t.head;this.forkBypassPath();const s=t.head;r.add(n),e.lastIsDefault||(e.defaultBodySegments?(!function(e,t){for(let r=0;r<e.length;++r){const n=e[r],s=t[r];Ga(n.nextSegments,s),Ga(n.allNextSegments,s),Ga(s.prevSegments,n),Ga(s.allPrevSegments,n)}}(e.defaultSegments,e.defaultBodySegments),Ha(this,s,e.defaultBodySegments)):r.add(s));for(let t=0;t<e.countForks;++t)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(r.makeNext(0,-1))}makeSwitchCaseBody(e,t){const r=this.switchContext;if(!r.hasCase)return;const n=this.forkContext,s=this.pushForkContext();s.add(n.makeNext(0,-1)),t?(r.defaultSegments=n.head,e?r.foundDefault=!0:r.defaultBodySegments=s.head):!e&&r.foundDefault&&(r.foundDefault=!1,r.defaultBodySegments=s.head),r.lastIsDefault=t,r.countForks+=1}pushTryContext(e){this.tryContext={upper:this.tryContext,position:"try",hasFinalizer:e,returnedForkContext:e?Ua.newEmpty(this.forkContext):null,thrownForkContext:Ua.newEmpty(this.forkContext),lastOfTryIsReachable:!1,lastOfCatchIsReachable:!1}}popTryContext(){const e=this.tryContext;if(this.tryContext=e.upper,"catch"===e.position)return void this.popForkContext();const t=e.returnedForkContext,r=e.thrownForkContext;if(t.empty&&r.empty)return;const n=this.forkContext.head;this.forkContext=this.forkContext.upper;const s=n.slice(0,n.length/2|0),o=n.slice(n.length/2|0);t.empty||Wa(this).returnedForkContext.add(o),r.empty||za(this).thrownForkContext.add(o),this.forkContext.replaceHead(s),e.lastOfTryIsReachable||e.lastOfCatchIsReachable||this.forkContext.makeUnreachable()}makeCatchBlock(){const e=this.tryContext,t=this.forkContext,r=e.thrownForkContext;e.position="catch",e.thrownForkContext=Ua.newEmpty(t),e.lastOfTryIsReachable=t.reachable,r.add(t.head);const n=r.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(n)}makeFinallyBlock(){const e=this.tryContext;let t=this.forkContext;const r=e.returnedForkContext,n=e.thrownForkContext,s=t.head;if("catch"===e.position?(this.popForkContext(),t=this.forkContext,e.lastOfCatchIsReachable=t.reachable):e.lastOfTryIsReachable=t.reachable,e.position="finally",r.empty&&n.empty)return;const o=t.makeNext(-1,-1);for(let e=0;e<t.count;++e){const t=[s[e]];for(let n=0;n<r.segmentsList.length;++n)t.push(r.segmentsList[n][e]);for(let r=0;r<n.segmentsList.length;++r)t.push(n.segmentsList[r][e]);o.push($a.newNext(this.idGenerator.next(),t))}this.pushForkContext(!0),this.forkContext.add(o)}makeFirstThrowablePathInTryBlock(){const e=this.forkContext;if(!e.reachable)return;const t=za(this);t!==this&&"try"===t.position&&t.thrownForkContext.empty&&(t.thrownForkContext.add(e.head),e.replaceHead(e.makeNext(-1,-1)))}pushLoopContext(e,t){const r=this.forkContext,n=this.pushBreakContext(!0,t);switch(e){case"WhileStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:t,test:void 0,continueDestSegments:null,brokenForkContext:n.brokenForkContext};break;case"DoWhileStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:t,test:void 0,entrySegments:null,continueForkContext:Ua.newEmpty(r),brokenForkContext:n.brokenForkContext};break;case"ForStatement":this.pushChoiceContext("loop",!1),this.loopContext={upper:this.loopContext,type:e,label:t,test:void 0,endOfInitSegments:null,testSegments:null,endOfTestSegments:null,updateSegments:null,endOfUpdateSegments:null,continueDestSegments:null,brokenForkContext:n.brokenForkContext};break;case"ForInStatement":case"ForOfStatement":this.loopContext={upper:this.loopContext,type:e,label:t,prevSegments:null,leftSegments:null,endOfLeftSegments:null,continueDestSegments:null,brokenForkContext:n.brokenForkContext};break;default:throw new Error(`unknown type: "${e}"`)}}popLoopContext(){const e=this.loopContext;this.loopContext=e.upper;const t=this.forkContext,r=this.popBreakContext().brokenForkContext;switch(e.type){case"WhileStatement":case"ForStatement":this.popChoiceContext(),Ha(this,t.head,e.continueDestSegments);break;case"DoWhileStatement":{const n=this.popChoiceContext();n.processed||(n.trueForkContext.add(t.head),n.falseForkContext.add(t.head)),!0!==e.test&&r.addAll(n.falseForkContext);const s=n.trueForkContext.segmentsList;for(let t=0;t<s.length;++t)Ha(this,s[t],e.entrySegments);break}case"ForInStatement":case"ForOfStatement":r.add(t.head),Ha(this,t.head,e.leftSegments);break;default:throw new Error("unreachable")}r.empty?t.replaceHead(t.makeUnreachable(-1,-1)):t.replaceHead(r.makeNext(0,-1))}makeWhileTest(e){const t=this.loopContext,r=this.forkContext,n=r.makeNext(0,-1);t.test=e,t.continueDestSegments=n,r.replaceHead(n)}makeWhileBody(){const e=this.loopContext,t=this.choiceContext,r=this.forkContext;t.processed||(t.trueForkContext.add(r.head),t.falseForkContext.add(r.head)),!0!==e.test&&e.brokenForkContext.addAll(t.falseForkContext),r.replaceHead(t.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){const e=this.loopContext,t=this.forkContext,r=t.makeNext(-1,-1);e.entrySegments=r,t.replaceHead(r)}makeDoWhileTest(e){const t=this.loopContext,r=this.forkContext;if(t.test=e,!t.continueForkContext.empty){t.continueForkContext.add(r.head);const e=t.continueForkContext.makeNext(0,-1);r.replaceHead(e)}}makeForTest(e){const t=this.loopContext,r=this.forkContext,n=r.head,s=r.makeNext(-1,-1);t.test=e,t.endOfInitSegments=n,t.continueDestSegments=t.testSegments=s,r.replaceHead(s)}makeForUpdate(){const e=this.loopContext,t=this.choiceContext,r=this.forkContext;e.testSegments?Ka(e,t,r.head):e.endOfInitSegments=r.head;const n=r.makeDisconnected(-1,-1);e.continueDestSegments=e.updateSegments=n,r.replaceHead(n)}makeForBody(){const e=this.loopContext,t=this.choiceContext,r=this.forkContext;e.updateSegments?(e.endOfUpdateSegments=r.head,e.testSegments&&Ha(this,e.endOfUpdateSegments,e.testSegments)):e.testSegments?Ka(e,t,r.head):e.endOfInitSegments=r.head;let n=e.endOfTestSegments;if(!n){const t=Ua.newEmpty(r);t.add(e.endOfInitSegments),e.endOfUpdateSegments&&t.add(e.endOfUpdateSegments),n=t.makeNext(0,-1)}e.continueDestSegments=e.continueDestSegments||n,r.replaceHead(n)}makeForInOfLeft(){const e=this.loopContext,t=this.forkContext,r=t.makeDisconnected(-1,-1);e.prevSegments=t.head,e.leftSegments=e.continueDestSegments=r,t.replaceHead(r)}makeForInOfRight(){const e=this.loopContext,t=this.forkContext,r=Ua.newEmpty(t);r.add(e.prevSegments);const n=r.makeNext(-1,-1);e.endOfLeftSegments=t.head,t.replaceHead(n)}makeForInOfBody(){const e=this.loopContext,t=this.forkContext,r=Ua.newEmpty(t);r.add(e.endOfLeftSegments);const n=r.makeNext(-1,-1);Ha(this,t.head,e.leftSegments),e.brokenForkContext.add(t.head),t.replaceHead(n)}pushBreakContext(e,t){return this.breakContext={upper:this.breakContext,breakable:e,label:t,brokenForkContext:Ua.newEmpty(this.forkContext)},this.breakContext}popBreakContext(){const e=this.breakContext,t=this.forkContext;if(this.breakContext=e.upper,!e.breakable){const r=e.brokenForkContext;r.empty||(r.add(t.head),t.replaceHead(r.makeNext(0,-1)))}return e}makeBreak(e){const t=this.forkContext;if(!t.reachable)return;const r=function(e,t){let r=e.breakContext;for(;r;){if(t?r.label===t:r.breakable)return r;r=r.upper}return null}(this,e);r&&r.brokenForkContext.add(t.head),t.replaceHead(t.makeUnreachable(-1,-1))}makeContinue(e){const t=this.forkContext;if(!t.reachable)return;const r=function(e,t){if(!t)return e.loopContext;let r=e.loopContext;for(;r;){if(r.label===t)return r;r=r.upper}return null}(this,e);r&&(r.continueDestSegments?(Ha(this,t.head,r.continueDestSegments),"ForInStatement"!==r.type&&"ForOfStatement"!==r.type||r.brokenForkContext.add(t.head)):r.continueForkContext.add(t.head)),t.replaceHead(t.makeUnreachable(-1,-1))}makeReturn(){const e=this.forkContext;e.reachable&&(Wa(this).returnedForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeThrow(){const e=this.forkContext;e.reachable&&(za(this).thrownForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeFinal(){const e=this.currentSegments;e.length>0&&e[0].reachable&&this.returnedForkContext.add(e)}};var Qa=class{constructor(e){this.prefix=String(e),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}};const Xa=Ja,Ya=Qa;var Za=class{constructor({id:e,origin:t,upper:r,onLooped:n}){this.id=e,this.origin=t,this.upper=r,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new Xa(new Ya(e+"_"),n)}),r&&r.childCodePaths.push(this)}static getState(e){return e.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}get currentSegments(){return this.internal.currentSegments}traverseSegments(e,t){let r,n;"function"==typeof e?(n=e,r={}):(r=e||{},n=t);const s=r.first||this.internal.initialSegment,o=r.last;let i=null,a=0,c=0,u=null;const l=Object.create(null),p=[[s,0]];let d=null,f=!1;const h={skip(){p.length<=1?f=!0:d=p[p.length-2][0]},break(){f=!0}};function m(e){return l[e.id]||u.isLoopedPrevSegment(e)}for(;p.length>0;){if(i=p[p.length-1],u=i[0],a=i[1],0===a){if(l[u.id]){p.pop();continue}if(u!==s&&u.prevSegments.length>0&&!u.prevSegments.every(m)){p.pop();continue}if(d&&-1!==u.prevSegments.indexOf(d)&&(d=null),l[u.id]=!0,!d&&(n.call(this,u,h),u===o&&h.skip(),f))break}c=u.nextSegments.length-1,a<c?(i[1]+=1,p.push([u.nextSegments[a],0])):a===c?(i[0]=u.nextSegments[a],i[1]=0):p.pop()}}};const ec=he,{breakableTypePattern:tc}=Xt,rc=Za,nc=Oa,sc=Qa,oc=Pa;function ic(e){return Boolean(e.test)}function ac(e){const t=e.parent;return t&&"PropertyDefinition"===t.type&&t.value===e}function cc(e){return"&&"===e||"||"===e||"??"===e}function uc(e){return"&&="===e||"||="===e||"??="===e}function lc(e){return"LabeledStatement"===e.parent.type?e.parent.label.name:null}function pc(e){const t=e.parent;switch(t.type){case"ConditionalExpression":case"IfStatement":case"WhileStatement":case"DoWhileStatement":case"ForStatement":return t.test===e;case"LogicalExpression":return cc(t.operator);case"AssignmentExpression":return uc(t.operator);default:return!1}}function dc(e){if("Literal"===e.type)return Boolean(e.value)}function fc(e,t){const r=e.codePath,n=rc.getState(r),s=n.currentSegments,o=n.headSegments,i=Math.max(s.length,o.length);let a,c,u;for(a=0;a<i;++a)c=s[a],u=o[a],c!==u&&c&&(oc.dump("onCodePathSegmentEnd "+c.id),c.reachable&&e.emitter.emit("onCodePathSegmentEnd",c,t));for(n.currentSegments=o,a=0;a<i;++a)c=s[a],u=o[a],c!==u&&u&&(oc.dump("onCodePathSegmentStart "+u.id),nc.markUsed(u),u.reachable&&e.emitter.emit("onCodePathSegmentStart",u,t))}function hc(e,t){function r(){let r=e.codePath;rc.getState(r).makeFinal(),function(e,t){const r=rc.getState(e.codePath),n=r.currentSegments;for(let r=0;r<n.length;++r){const s=n[r];oc.dump("onCodePathSegmentEnd "+s.id),s.reachable&&e.emitter.emit("onCodePathSegmentEnd",s,t)}r.currentSegments=[]}(e,t),oc.dump("onCodePathEnd "+r.id),e.emitter.emit("onCodePathEnd",r,t),oc.dumpDot(r),r=e.codePath=e.codePath.upper,r&&oc.dumpState(t,rc.getState(r),!0)}switch(t.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":r();break;case"CallExpression":!0===t.optional&&0===t.arguments.length&&rc.getState(e.codePath).makeOptionalRight()}ac(t)&&r()}var mc=class{constructor(e){this.original=e,this.emitter=e.emitter,this.codePath=null,this.idGenerator=new sc("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(e){this.currentNode=e,e.parent&&function(e,t){const r=e.codePath,n=rc.getState(r),s=t.parent;switch(s.type){case"CallExpression":!0===s.optional&&s.arguments.length>=1&&s.arguments[0]===t&&n.makeOptionalRight();break;case"MemberExpression":!0===s.optional&&s.property===t&&n.makeOptionalRight();break;case"LogicalExpression":s.right===t&&cc(s.operator)&&n.makeLogicalRight();break;case"AssignmentExpression":s.right===t&&uc(s.operator)&&n.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":s.consequent===t?n.makeIfConsequent():s.alternate===t&&n.makeIfAlternate();break;case"SwitchCase":s.consequent[0]===t&&n.makeSwitchCaseBody(!1,!s.test);break;case"TryStatement":s.handler===t?n.makeCatchBlock():s.finalizer===t&&n.makeFinallyBlock();break;case"WhileStatement":s.test===t?n.makeWhileTest(dc(t)):(ec(s.body===t),n.makeWhileBody());break;case"DoWhileStatement":s.body===t?n.makeDoWhileBody():(ec(s.test===t),n.makeDoWhileTest(dc(t)));break;case"ForStatement":s.test===t?n.makeForTest(dc(t)):s.update===t?n.makeForUpdate():s.body===t&&n.makeForBody();break;case"ForInStatement":case"ForOfStatement":s.left===t?n.makeForInOfLeft():s.right===t?n.makeForInOfRight():(ec(s.body===t),n.makeForInOfBody());break;case"AssignmentPattern":s.right===t&&(n.pushForkContext(),n.forkBypassPath(),n.forkPath())}}(this,e),function(e,t){let r=e.codePath,n=r&&rc.getState(r);const s=t.parent;function o(s){r&&(fc(e,t),oc.dumpState(t,n,!1)),r=e.codePath=new rc({id:e.idGenerator.next(),origin:s,upper:r,onLooped:e.onLooped}),n=rc.getState(r),oc.dump("onCodePathStart "+r.id),e.emitter.emit("onCodePathStart",r,t)}switch(ac(t)&&o("class-field-initializer"),t.type){case"Program":o("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":o("function");break;case"StaticBlock":o("class-static-block");break;case"ChainExpression":n.pushChainContext();break;case"CallExpression":case"MemberExpression":!0===t.optional&&n.makeOptionalNode();break;case"LogicalExpression":cc(t.operator)&&n.pushChoiceContext(t.operator,pc(t));break;case"AssignmentExpression":uc(t.operator)&&n.pushChoiceContext(t.operator.slice(0,-1),pc(t));break;case"ConditionalExpression":case"IfStatement":n.pushChoiceContext("test",!1);break;case"SwitchStatement":n.pushSwitchContext(t.cases.some(ic),lc(t));break;case"TryStatement":n.pushTryContext(Boolean(t.finalizer));break;case"SwitchCase":s.discriminant!==t&&s.cases[0]!==t&&n.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.pushLoopContext(t.type,lc(t));break;case"LabeledStatement":tc.test(t.body.type)||n.pushBreakContext(!1,t.label.name)}fc(e,t),oc.dumpState(t,n,!1)}(this,e),this.original.enterNode(e),this.currentNode=null}leaveNode(e){this.currentNode=e,function(e,t){const r=e.codePath,n=rc.getState(r);let s=!1;switch(t.type){case"ChainExpression":n.popChainContext();break;case"IfStatement":case"ConditionalExpression":n.popChoiceContext();break;case"LogicalExpression":cc(t.operator)&&n.popChoiceContext();break;case"AssignmentExpression":uc(t.operator)&&n.popChoiceContext();break;case"SwitchStatement":n.popSwitchContext();break;case"SwitchCase":0===t.consequent.length&&n.makeSwitchCaseBody(!0,!t.test),n.forkContext.reachable&&(s=!0);break;case"TryStatement":n.popTryContext();break;case"BreakStatement":fc(e,t),n.makeBreak(t.label&&t.label.name),s=!0;break;case"ContinueStatement":fc(e,t),n.makeContinue(t.label&&t.label.name),s=!0;break;case"ReturnStatement":fc(e,t),n.makeReturn(),s=!0;break;case"ThrowStatement":fc(e,t),n.makeThrow(),s=!0;break;case"Identifier":(function(e){const t=e.parent;switch(t.type){case"LabeledStatement":case"BreakStatement":case"ContinueStatement":case"ArrayPattern":case"RestElement":case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"CatchClause":return!1;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":return t.id!==e;case"Property":case"PropertyDefinition":case"MethodDefinition":return t.key!==e||t.computed||t.shorthand;case"AssignmentPattern":return t.key!==e;default:return!0}})(t)&&(n.makeFirstThrowablePathInTryBlock(),s=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":n.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.popLoopContext();break;case"AssignmentPattern":n.popForkContext();break;case"LabeledStatement":tc.test(t.body.type)||n.popBreakContext()}s||fc(e,t),oc.dumpState(t,n,!0)}(this,e),this.original.leaveNode(e),hc(this,e),this.currentNode=null}onLooped(e,t){e.reachable&&t.reachable&&(oc.dump(`onCodePathSegmentLoop ${e.id} -> ${t.id}`),this.emitter.emit("onCodePathSegmentLoop",e,t,this.currentNode))}},gc=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const yc=gc;function xc(e,t){return e.line-t.line||e.column-t.column}function bc(e,t){const{range:r}=t,n=e.filter((e=>e.ruleId)).map((e=>`'${e.ruleId}'`));return{description:n.length<=2?n.join(" or "):`${n.slice(0,n.length-1).join(", ")}, or ${n[n.length-1]}`,fix:{range:r,text:" "},position:e[0].unprocessedDirective}}function vc(e){return function(e){const t=new Map;for(const r of e){const{unprocessedDirective:{parentComment:e}}=r;t.has(e)?t.get(e).push(r):t.set(e,[r])}return[...t.values()]}(e).flatMap((e=>{const{parentComment:t}=e[0].unprocessedDirective,r=new Set(t.ruleIds);for(const t of e)r.delete(t.ruleId);return r.size?function(e,t){const r=t.range[0]+"//".length,n=/^\s*\S+\s+/u.exec(t.value)[0].length,s=t.value.slice(n).split(/\s-{2,}\s/u)[0].trimRight();return e.map((e=>{const{ruleId:t}=e,o=new RegExp(String.raw`(?:^|\s*,\s*)${yc(t)}(?:\s*,\s*|$)`,"u").exec(s),i=o[0],a=n+o.index,c=a+i.length,u=i.indexOf(","),l=i.lastIndexOf(",");let p,d;return u!==l?(p=a+u,d=a+l):(p=a,d=c),{description:`'${t}'`,fix:{range:[r+p,r+d],text:""},position:e.unprocessedDirective}}))}(e,t.commentToken):[bc(e,t.commentToken)]}))}function Ec(e){const t=[];let r=0,n=null;const s=new Map,o=new Set,i=new Set;for(const a of e.problems){for(;r<e.directives.length&&xc(e.directives[r],a)<=0;){const t=e.directives[r++];switch(t.type){case"disable":null===t.ruleId?(n=t,s.clear(),o.clear()):n?(o.delete(t.ruleId),s.set(t.ruleId,t)):s.set(t.ruleId,t);break;case"enable":null===t.ruleId?(n=null,s.clear()):n?(o.add(t.ruleId),s.delete(t.ruleId)):s.delete(t.ruleId)}}s.has(a.ruleId)?i.add(s.get(a.ruleId)):n&&!o.has(a.ruleId)?i.add(n):t.push(a)}return{problems:t,unusedDisableDirectives:vc(e.directives.filter((e=>"disable"===e.type&&!i.has(e)))).map((({description:t,fix:r,position:n})=>({ruleId:null,message:t?`Unused eslint-disable directive (no problems were reported from ${t}).`:"Unused eslint-disable directive (no problems were reported).",line:n.line,column:n.column,severity:"warn"===e.reportUnusedDisableDirectives?1:2,nodeType:null,...e.disableFixes?{}:{fix:r}})))}}var Cc,Sc={exports:{}},kc={exports:{}},Ac={}.toString;Cc=wc((function(e,t){return e.apply(null,t)}));var Dc={curry:function(e){return wc(e)},flip:wc((function(e,t,r){return e(r,t)})),fix:function(e){return function(t){return function(){return e(t(t)).apply(null,arguments)}}((function(t){return function(){return e(t(t)).apply(null,arguments)}}))},apply:Cc,over:wc((function(e,t,r,n){return e(t(r),t(n))})),memoize:function(e){var t;return t={},function(){var r,n,s,o,i,a;for(n=[],s=0,o=arguments.length;s<o;++s)n.push(arguments[s]);return r=n,i=function(){var e,t,n,s=[];for(e=0,n=(t=r).length;e<n;++e)a=t[e],s.push(a+Ac.call(a).slice(8,-1));return s}().join(""),t[i]=i in t?t[i]:e.apply(null,r)}}};function wc(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}var Fc,Tc,Pc,Ic,_c,Bc,Oc,Lc,jc,Nc,Rc,Mc,Vc,$c,Uc,qc,Wc,zc,Gc,Hc,Kc,Jc,Qc,Xc,Yc,Zc,eu,tu,ru,nu,su,ou,iu,au,cu,uu,lu,pu,du,fu,hu,mu,gu,yu,xu,bu,vu,Eu,Cu,Su,ku,Au,Du,wu,Fu,Tu,Pu,Iu,_u,Bu,Ou,Lu,ju,Nu,Ru,Mu,Vu,$u,Uu,qu,Wu={}.toString;Fc=Ku((function(e,t){var r,n;for(r=0,n=t.length;r<n;++r)e(t[r]);return t})),Tc=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)s=t[r],o.push(e(s));return o})),Pc=function(e){var t,r,n,s=[];for(t=0,r=e.length;t<r;++t)(n=e[t])&&s.push(n);return s},Ic=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)e(s=t[r])&&o.push(s);return o})),_c=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)e(s=t[r])||o.push(s);return o})),Bc=Ku((function(e,t){var r,n;return r=Vu(e,t),n=t.slice(),null!=r&&n.splice(r,1),n})),Oc=Ku((function(e,t){var r,n,s,o,i;for(r=[],n=[],s=0,o=t.length;s<o;++s)(e(i=t[s])?r:n).push(i);return[r,n]})),Lc=Ku((function(e,t){var r,n,s;for(r=0,n=t.length;r<n;++r)if(e(s=t[r]))return s})),jc=Nc=function(e){return e[0]},Rc=function(e){if(e.length)return e.slice(1)},Mc=function(e){return e[e.length-1]},Vc=function(e){if(e.length)return e.slice(0,-1)},$c=function(e){return!e.length},Uc=function(e){return e.concat().reverse()},qc=function(e){var t,r,n,s;for(t=[],r=0,n=e.length;r<n;++r)Ju(s=e[r],t)||t.push(s);return t},Wc=Ku((function(e,t){var r,n,s,o,i,a=[];for(r=[],n=0,s=t.length;n<s;++n)Ju(i=e(o=t[n]),r)||(r.push(i),a.push(o));return a})),zc=Gc=Ku((function(e,t,r){var n,s;for(n=0,s=r.length;n<s;++n)t=e(t,r[n]);return t})),Hc=Kc=Ku((function(e,t){return zc(e,t[0],t.slice(1))})),Jc=Ku((function(e,t,r){var n;for(n=r.length-1;n>=0;--n)t=e(r[n],t);return t})),Qc=Ku((function(e,t){return Jc(e,t[t.length-1],t.slice(0,-1))})),Xc=Ku((function(e,t){var r,n,s;for(r=[],n=t;null!=(s=e(n));)r.push(s[0]),n=s[1];return r})),Yc=function(e){return[].concat.apply([],e)},Zc=Ku((function(e,t){var r;return[].concat.apply([],function(){var n,s,o,i=[];for(n=0,o=(s=t).length;n<o;++n)r=s[n],i.push(e(r));return i}())})),eu=function(e){var t;return[].concat.apply([],function(){var r,n,s,o=[];for(r=0,s=(n=e).length;r<s;++r)t=n[r],"Array"===Wu.call(t).slice(8,-1)?o.push(eu(t)):o.push(t);return o}())},tu=function(e){var t,r,n,s,o,i,a,c,u;for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);t=r,o=[];e:for(n=0,i=e.length;n<i;++n){for(a=e[n],c=0,u=t.length;c<u;++c)if(Ju(a,t[c]))continue e;o.push(a)}return o},ru=function(e){var t,r,n,s,o,i,a,c,u;for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);t=r,o=[];e:for(n=0,i=e.length;n<i;++n){for(a=e[n],c=0,u=t.length;c<u;++c)if(!Ju(a,t[c]))continue e;o.push(a)}return o},nu=function(){var e,t,r,n,s,o,i,a,c,u;for(t=[],r=0,n=arguments.length;r<n;++r)t.push(arguments[r]);for(s=[],r=0,o=(e=t).length;r<o;++r)for(a=0,c=(i=e[r]).length;a<c;++a)Ju(u=i[a],s)||s.push(u);return s},su=Ku((function(e,t){var r,n,s,o;for(r={},n=0,s=t.length;n<s;++n)(o=e(t[n]))in r?r[o]+=1:r[o]=1;return r})),ou=Ku((function(e,t){var r,n,s,o,i;for(r={},n=0,s=t.length;n<s;++n)(i=e(o=t[n]))in r?r[i].push(o):r[i]=[o];return r})),iu=function(e){var t,r;for(t=0,r=e.length;t<r;++t)if(!e[t])return!1;return!0},au=function(e){var t,r;for(t=0,r=e.length;t<r;++t)if(e[t])return!0;return!1},cu=Ku((function(e,t){var r,n;for(r=0,n=t.length;r<n;++r)if(e(t[r]))return!0;return!1})),uu=Ku((function(e,t){var r,n;for(r=0,n=t.length;r<n;++r)if(!e(t[r]))return!1;return!0})),lu=function(e){return e.concat().sort((function(e,t){return e>t?1:e<t?-1:0}))},pu=Ku((function(e,t){return t.concat().sort(e)})),du=Ku((function(e,t){return t.concat().sort((function(t,r){return e(t)>e(r)?1:e(t)<e(r)?-1:0}))})),fu=function(e){var t,r,n;for(t=0,r=0,n=e.length;r<n;++r)t+=e[r];return t},hu=function(e){var t,r,n;for(t=1,r=0,n=e.length;r<n;++r)t*=e[r];return t},mu=gu=function(e){var t,r,n;for(t=0,r=0,n=e.length;r<n;++r)t+=e[r];return t/e.length},yu=function(e){var t,r,n,s,o;for(t=e[0],r=0,s=(n=e.slice(1)).length;r<s;++r)(o=n[r])>t&&(t=o);return t},xu=function(e){var t,r,n,s,o;for(t=e[0],r=0,s=(n=e.slice(1)).length;r<s;++r)(o=n[r])<t&&(t=o);return t},bu=Ku((function(e,t){var r,n,s,o,i;for(r=t[0],n=0,o=(s=t.slice(1)).length;n<o;++n)e(i=s[n])>e(r)&&(r=i);return r})),vu=Ku((function(e,t){var r,n,s,o,i;for(r=t[0],n=0,o=(s=t.slice(1)).length;n<o;++n)e(i=s[n])<e(r)&&(r=i);return r})),Eu=Cu=Ku((function(e,t,r){var n,s;return n=t,[t].concat(function(){var t,o,i,a=[];for(t=0,i=(o=r).length;t<i;++t)s=o[t],a.push(n=e(n,s));return a}())})),Su=ku=Ku((function(e,t){if(t.length)return Eu(e,t[0],t.slice(1))})),Au=Ku((function(e,t,r){return r=r.concat().reverse(),Eu(e,t,r).reverse()})),Du=Ku((function(e,t){if(t.length)return t=t.concat().reverse(),Eu(e,t[0],t.slice(1)).reverse()})),wu=Ku((function(e,t,r){return r.slice(e,t)})),Fu=Ku((function(e,t){return e<=0?t.slice(0,0):t.slice(0,e)})),Tu=Ku((function(e,t){return e<=0?t:t.slice(e)})),Pu=Ku((function(e,t){return[Fu(e,t),Tu(e,t)]})),Iu=Ku((function(e,t){var r,n;if(!(r=t.length))return t;for(n=0;n<r&&e(t[n]);)n+=1;return t.slice(0,n)})),_u=Ku((function(e,t){var r,n;if(!(r=t.length))return t;for(n=0;n<r&&e(t[n]);)n+=1;return t.slice(n)})),Bu=Ku((function(e,t){return[Iu(e,t),_u(e,t)]})),Ou=Ku((function(e,t){return Bu(function(){var e=arguments;return function(){var t,r;for(r=e[0].apply(this,arguments),t=1;t<e.length;++t)r=e[t](r);return r}}(e,Qu),t)})),Lu=Ku((function(e,t){var r,n,s,o,i,a;for(r=[],n=t.length,s=0,o=e.length;s<o&&(i=s,a=e[s],i!==n);++s)r.push([a,t[i]]);return r})),ju=Ku((function(e,t,r){var n,s,o,i,a,c;for(n=[],s=r.length,o=0,i=t.length;o<i&&(a=o,c=t[o],a!==s);++o)n.push(e(c,r[a]));return n})),Nu=function(){var e,t,r,n,s,o,i,a,c,u,l,p=[];for(t=[],r=0,n=arguments.length;r<n;++r)t.push(arguments[r]);for(s=void 0,r=0,o=(e=t).length;r<o;++r)s<=(a=(i=e[r]).length)||(s=a);for(r=0;r<s;++r){for(c=r,u=[],l=0,o=e.length;l<o;++l)i=e[l],u.push(i[c]);p.push(u)}return p},Ru=function(e){var t,r,n,s,o,i,a,c,u,l=[];for(r=[],n=1,s=arguments.length;n<s;++n)r.push(arguments[n]);for(o=void 0,n=0,i=(t=r).length;n<i;++n)o<=(c=(a=t[n]).length)||(o=c);for(n=0;n<o;++n)u=n,l.push(e.apply(null,p()));return l;function p(){var e,r,n,s=[];for(e=0,n=(r=t).length;e<n;++e)a=r[e],s.push(a[u]);return s}},Mu=Ku((function(e,t){return e<0?t[t.length+e]:t[e]})),Vu=Ku((function(e,t){var r,n,s;for(r=0,n=t.length;r<n;++r)if(s=r,t[r]===e)return s})),$u=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)s=r,t[r]===e&&o.push(s);return o})),Uu=Ku((function(e,t){var r,n,s;for(r=0,n=t.length;r<n;++r)if(s=r,e(t[r]))return s})),qu=Ku((function(e,t){var r,n,s,o=[];for(r=0,n=t.length;r<n;++r)s=r,e(t[r])&&o.push(s);return o}));var zu,Gu,Hu={each:Fc,map:Tc,filter:Ic,compact:Pc,reject:_c,remove:Bc,partition:Oc,find:Lc,head:jc,first:Nc,tail:Rc,last:Mc,initial:Vc,empty:$c,reverse:Uc,difference:tu,intersection:ru,union:nu,countBy:su,groupBy:ou,fold:zc,fold1:Hc,foldl:Gc,foldl1:Kc,foldr:Jc,foldr1:Qc,unfoldr:Xc,andList:iu,orList:au,any:cu,all:uu,unique:qc,uniqueBy:Wc,sort:lu,sortWith:pu,sortBy:du,sum:fu,product:hu,mean:mu,average:gu,concat:Yc,concatMap:Zc,flatten:eu,maximum:yu,minimum:xu,maximumBy:bu,minimumBy:vu,scan:Eu,scan1:Su,scanl:Cu,scanl1:ku,scanr:Au,scanr1:Du,slice:wu,take:Fu,drop:Tu,splitAt:Pu,takeWhile:Iu,dropWhile:_u,span:Bu,breakList:Ou,zip:Lu,zipWith:ju,zipAll:Nu,zipAllWith:Ru,at:Mu,elemIndex:Vu,elemIndices:$u,findIndex:Uu,findIndices:qu};function Ku(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}function Ju(e,t){for(var r=-1,n=t.length>>>0;++r<n;)if(e===t[r])return!0;return!1}function Qu(e){return!e}zu=function(e){var t,r,n,s;for(n in t=[],r=[],e)s=e[n],t.push(n),r.push(s);return[t,r]},Gu=function(e){var t,r,n={};for(t in e)(r=e[t])&&(n[t]=r);return n};var Xu={values:function(e){var t,r,n=[];for(t in e)r=e[t],n.push(r);return n},keys:function(e){var t,r=[];for(t in e)r.push(t);return r},pairsToObj:function(e){var t,r,n,s={};for(t=0,r=e.length;t<r;++t)s[(n=e[t])[0]]=n[1];return s},objToPairs:function(e){var t,r,n=[];for(t in e)r=e[t],n.push([t,r]);return n},listsToObj:Yu((function(e,t){var r,n,s,o={};for(r=0,n=e.length;r<n;++r)s=r,o[e[r]]=t[s];return o})),objToLists:zu,empty:function(e){var t;for(t in e)return!1;return!0},each:Yu((function(e,t){var r;for(r in t)e(t[r]);return t})),map:Yu((function(e,t){var r,n,s={};for(r in t)n=t[r],s[r]=e(n);return s})),filter:Yu((function(e,t){var r,n,s={};for(r in t)e(n=t[r])&&(s[r]=n);return s})),compact:Gu,reject:Yu((function(e,t){var r,n,s={};for(r in t)e(n=t[r])||(s[r]=n);return s})),partition:Yu((function(e,t){var r,n,s,o;for(s in r={},n={},t)(e(o=t[s])?r:n)[s]=o;return[r,n]})),find:Yu((function(e,t){var r,n;for(r in t)if(e(n=t[r]))return n}))};function Yu(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}var Zu,el,tl,rl,nl,sl,ol,il,al,cl,ul,ll,pl,dl,fl,hl,ml,gl,yl,xl,bl,vl,El,Cl,Sl,kl,Al,Dl,wl,Fl,Tl,Pl,Il={split:_l((function(e,t){return t.split(e)})),join:_l((function(e,t){return t.join(e)})),lines:function(e){return e.length?e.split("\n"):[]},unlines:function(e){return e.join("\n")},words:function(e){return e.length?e.split(/[ ]+/):[]},unwords:function(e){return e.join(" ")},chars:function(e){return e.split("")},unchars:function(e){return e.join("")},reverse:function(e){return e.split("").reverse().join("")},repeat:_l((function(e,t){var r,n;for(r="",n=0;n<e;++n)r+=t;return r})),capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},camelize:function(e){return e.replace(/[-_]+(.)?/g,(function(e,t){return(null!=t?t:"").toUpperCase()}))},dasherize:function(e){return e.replace(/([^-A-Z])([A-Z]+)/g,(function(e,t,r){return t+"-"+(r.length>1?r:r.toLowerCase())})).replace(/^([A-Z]+)/,(function(e,t){return t.length>1?t+"-":t.toLowerCase()}))}};function _l(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}function Bl(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}Zu=Bl((function(e,t){return e>t?e:t})),el=Bl((function(e,t){return e<t?e:t})),tl=function(e){return-e},rl=Math.abs,nl=function(e){return e<0?-1:e>0?1:0},sl=Bl((function(e,t){return~~(e/t)})),ol=Bl((function(e,t){return e%t})),il=Bl((function(e,t){return Math.floor(e/t)})),al=Bl((function(e,t){var r;return(e%(r=t)+r)%r})),cl=function(e){return 1/e},ll=2*(ul=Math.PI),pl=Math.exp,dl=Math.sqrt,fl=Math.log,hl=Bl((function(e,t){return Math.pow(e,t)})),ml=Math.sin,gl=Math.tan,yl=Math.cos,xl=Math.asin,bl=Math.acos,vl=Math.atan,El=Bl((function(e,t){return Math.atan2(e,t)})),Cl=function(e){return~~e},Sl=Math.round,kl=Math.ceil,Al=Math.floor,Dl=function(e){return e!=e},wl=function(e){return e%2==0},Fl=function(e){return e%2!=0},Tl=Bl((function(e,t){var r;for(e=Math.abs(e),t=Math.abs(t);0!==t;)r=e%t,e=t,t=r;return e})),Pl=Bl((function(e,t){return Math.abs(Math.floor(e/Tl(e,t)*t))}));var Ol,Ll,jl,Nl,Rl,Ml,Vl,$l,Ul,ql={}.toString;Ol=Dc,Ll=Hu,jl=Xu,Nl=Il,Rl={max:Zu,min:el,negate:tl,abs:rl,signum:nl,quot:sl,rem:ol,div:il,mod:al,recip:cl,pi:ul,tau:ll,exp:pl,sqrt:dl,ln:fl,pow:hl,sin:ml,tan:gl,cos:yl,acos:bl,asin:xl,atan:vl,atan2:El,truncate:Cl,round:Sl,ceiling:kl,floor:Al,isItNaN:Dl,even:wl,odd:Fl,gcd:Tl,lcm:Pl},Ml=function(e){return e},Vl=zl((function(e,t){return ql.call(t).slice(8,-1)===e})),$l=zl((function(e,t){var r,n=[];for(r=0;r<e;++r)n.push(t);return n})),Nl.empty=Ll.empty,Nl.slice=Ll.slice,Nl.take=Ll.take,Nl.drop=Ll.drop,Nl.splitAt=Ll.splitAt,Nl.takeWhile=Ll.takeWhile,Nl.dropWhile=Ll.dropWhile,Nl.span=Ll.span,Nl.breakStr=Ll.breakList,(Ul={Func:Ol,List:Ll,Obj:jl,Str:Nl,Num:Rl,id:Ml,isType:Vl,replicate:$l}).each=Ll.each,Ul.map=Ll.map,Ul.filter=Ll.filter,Ul.compact=Ll.compact,Ul.reject=Ll.reject,Ul.partition=Ll.partition,Ul.find=Ll.find,Ul.head=Ll.head,Ul.first=Ll.first,Ul.tail=Ll.tail,Ul.last=Ll.last,Ul.initial=Ll.initial,Ul.empty=Ll.empty,Ul.reverse=Ll.reverse,Ul.difference=Ll.difference,Ul.intersection=Ll.intersection,Ul.union=Ll.union,Ul.countBy=Ll.countBy,Ul.groupBy=Ll.groupBy,Ul.fold=Ll.fold,Ul.foldl=Ll.foldl,Ul.fold1=Ll.fold1,Ul.foldl1=Ll.foldl1,Ul.foldr=Ll.foldr,Ul.foldr1=Ll.foldr1,Ul.unfoldr=Ll.unfoldr,Ul.andList=Ll.andList,Ul.orList=Ll.orList,Ul.any=Ll.any,Ul.all=Ll.all,Ul.unique=Ll.unique,Ul.uniqueBy=Ll.uniqueBy,Ul.sort=Ll.sort,Ul.sortWith=Ll.sortWith,Ul.sortBy=Ll.sortBy,Ul.sum=Ll.sum,Ul.product=Ll.product,Ul.mean=Ll.mean,Ul.average=Ll.average,Ul.concat=Ll.concat,Ul.concatMap=Ll.concatMap,Ul.flatten=Ll.flatten,Ul.maximum=Ll.maximum,Ul.minimum=Ll.minimum,Ul.maximumBy=Ll.maximumBy,Ul.minimumBy=Ll.minimumBy,Ul.scan=Ll.scan,Ul.scanl=Ll.scanl,Ul.scan1=Ll.scan1,Ul.scanl1=Ll.scanl1,Ul.scanr=Ll.scanr,Ul.scanr1=Ll.scanr1,Ul.slice=Ll.slice,Ul.take=Ll.take,Ul.drop=Ll.drop,Ul.splitAt=Ll.splitAt,Ul.takeWhile=Ll.takeWhile,Ul.dropWhile=Ll.dropWhile,Ul.span=Ll.span,Ul.breakList=Ll.breakList,Ul.zip=Ll.zip,Ul.zipWith=Ll.zipWith,Ul.zipAll=Ll.zipAll,Ul.zipAllWith=Ll.zipAllWith,Ul.at=Ll.at,Ul.elemIndex=Ll.elemIndex,Ul.elemIndices=Ll.elemIndices,Ul.findIndex=Ll.findIndex,Ul.findIndices=Ll.findIndices,Ul.apply=Ol.apply,Ul.curry=Ol.curry,Ul.flip=Ol.flip,Ul.fix=Ol.fix,Ul.over=Ol.over,Ul.split=Nl.split,Ul.join=Nl.join,Ul.lines=Nl.lines,Ul.unlines=Nl.unlines,Ul.words=Nl.words,Ul.unwords=Nl.unwords,Ul.chars=Nl.chars,Ul.unchars=Nl.unchars,Ul.repeat=Nl.repeat,Ul.capitalize=Nl.capitalize,Ul.camelize=Nl.camelize,Ul.dasherize=Nl.dasherize,Ul.values=jl.values,Ul.keys=jl.keys,Ul.pairsToObj=jl.pairsToObj,Ul.objToPairs=jl.objToPairs,Ul.listsToObj=jl.listsToObj,Ul.objToLists=jl.objToLists,Ul.max=Rl.max,Ul.min=Rl.min,Ul.negate=Rl.negate,Ul.abs=Rl.abs,Ul.signum=Rl.signum,Ul.quot=Rl.quot,Ul.rem=Rl.rem,Ul.div=Rl.div,Ul.mod=Rl.mod,Ul.recip=Rl.recip,Ul.pi=Rl.pi,Ul.tau=Rl.tau,Ul.exp=Rl.exp,Ul.sqrt=Rl.sqrt,Ul.ln=Rl.ln,Ul.pow=Rl.pow,Ul.sin=Rl.sin,Ul.tan=Rl.tan,Ul.cos=Rl.cos,Ul.acos=Rl.acos,Ul.asin=Rl.asin,Ul.atan=Rl.atan,Ul.atan2=Rl.atan2,Ul.truncate=Rl.truncate,Ul.round=Rl.round,Ul.ceiling=Rl.ceiling,Ul.floor=Rl.floor,Ul.isItNaN=Rl.isItNaN,Ul.even=Rl.even,Ul.odd=Rl.odd,Ul.gcd=Rl.gcd,Ul.lcm=Rl.lcm,Ul.VERSION="1.2.1";var Wl=Ul;function zl(e,t){var r,n=function(s){return e.length>1?function(){var o=s?s.concat():[];return r=t&&r||this,o.push.apply(o,arguments)<e.length&&arguments.length?n.call(r,o):e.apply(r,o)}:e};return n()}(function(){var e,t,r;function n(e,t){if(e[0]===t)return e.shift();throw new Error("Expected '"+t+"', but got '"+e[0]+"' instead in "+JSON.stringify(e)+".")}function s(e,t){if(e[0]===t)return e.shift()}function o(e,t,r){var o,i,a,c;for(o=t[0],i=t[1],r&&n(e,o),a=[],c=","+(r?i:"");e.length&&r&&e[0]!==i;)a.push(l(e,c)),s(e,",");return r&&n(e,i),a}function i(e,t){return o(e,["[","]"],t)}function a(e,t){return o(e,["(",")"],t)}function c(e,t){var r,o,i;for(t&&n(e,"{"),r={},o=","+(t?"}":"");e.length&&(!t||"}"!==e[0]);)i=u(e,":"),n(e,":"),r[i]=l(e,o),s(e,",");return t&&n(e,"}"),r}function u(e,t){var r;for(null==t&&(t=""),r="";e.length&&-1===t.indexOf(e[0]);)r+=e.shift();return r}function l(e,t){switch(e[0]){case"[":return i(e,!0);case"(":return a(e,!0);case"{":return c(e,!0);default:return u(e,t)}}function p(e){return!e}e=Wl.reject,t=/\[\]\(\)}{:,/.source,r=RegExp("(\"(?:\\\\\"|[^\"])*\")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|(["+t+"])|([^\\s"+t+"](?:\\s*[^\\s"+t+"]+)*)|\\s*"),kc.exports=function(t,n,s){var o;if(null==s&&(s={}),!s.explicit&&1===t.length&&"String"===t[0].type)return n;if(!(o=function(e,t,r){var n,s,o,u,p,d,f,h;return s=(n=t[0]).type,o=n.structure,u=e.concat(),r.explicit||1!==t.length||(s||!o)&&"Array"!==s&&"Object"!==s?d=l(e):(p="array"===o||"Array"===s?i(e,"["===e[0]):"tuple"===o?a(e,"("===e[0]):c(e,"{"===e[0]),d=e.length?l("array"===o||"Array"===s?((f=u).unshift("["),f.push("]"),f):((h=u).unshift("("),h.push(")"),h)):p),d}(e(p,n.split(r)),t,s)))throw new Error("Error parsing '"+n+"'.");return o}}).call(void 0);var Gl={exports:{}},Hl={exports:{}},Kl={exports:{}};(function(){var e,t;function r(e){var t;if(null==(t=e[0]))throw new Error("Unexpected end of input.");return t}function n(t){var n;if(n=r(t),!e.test(n))throw new Error("Expected text, got '"+n+"' instead.");return t.shift()}function s(e,t){var n;if((n=r(e))!==t)throw new Error("Expected '"+t+"', got '"+n+"' instead.");return e.shift()}function o(e,t){return e[0]===t?e.shift():null}function i(e){var t;return t=n(e),s(e,":"),[t,u(e)]}function a(e){switch(e[0]){case"[":return function(e){var t;if(s(e,"["),"]"===r(e))throw new Error("Must specify type of Array - eg. [Type], got [] instead.");return t=u(e),s(e,"]"),{structure:"array",of:t}}(e);case"(":return function(e){var t;if(t=[],s(e,"("),")"===r(e))throw new Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;t.push(u(e)),o(e,","),")"!==r(e););return s(e,")"),{structure:"tuple",of:t}}(e);case"{":return function(e){var t,n,a,c,u;for(t={},s(e,"{"),n=!1;;){if(o(e,"...")){n=!0;break}if(c=(a=i(e))[0],u=a[1],t[c]=u,o(e,","),"}"===r(e))break}return s(e,"}"),{structure:"fields",of:t,subset:n}}(e)}}function c(t){var o,i,c,u;if((i="*"===(o=r(t)))||e.test(o))return c=i?s(t,"*"):n(t),(u=a(t))?(u.type=c,u):{type:c};if(!(u=a(t)))throw new Error("Unexpected character: "+o);return u}function u(e){var t,n,s,i,a,u;if("::"===r(e))throw new Error("No comment before comment separator '::' found.");for(null!=(t=e[1])&&"::"===t&&(e.shift(),e.shift()),n=[],s={},"Maybe"===r(e)&&(e.shift(),n=[{type:"Undefined"},{type:"Null"}],s={Undefined:!0,Null:!0});a=(i=c(e)).type,u=i.structure,s[a]||n.push(i),null==u&&(s[a]=!0),o(e,"|"););return n}e=/[\$\w]+/,t=RegExp("\\.\\.\\.|::|->|"+e.source+"|\\S","g"),Kl.exports=function(e){var r;if(!e.length)throw new Error("No type specified.");if(function(e,t){var r=-1,n=t.length>>>0;for(;++r<n;)if(e===t[r])return!0;return!1}("->",r=e.match(t)||[]))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return u(r)}catch(t){throw new Error(t.message+" - Remaining tokens: "+JSON.stringify(r)+" - Initial input: '"+e+"'")}}}).call(void 0);var Jl={exports:{}};(function(){var e,t,r,n,s,o,i={}.toString;function a(e,t,n){if(!(e instanceof Object))return!1;switch(t.structure){case"fields":return function(e,t,r){var n,s,o,i,a,c,l;for(o in n={},s=0,e)n[o]=!0,s++;for(a in i=0,c=t.of){if(l=c[a],!u(e[a],l,r))return!1;n[a]&&i++}return t.subset||s===i}(e,t,n);case"array":return function(e,t,n){return r((function(e){return u(e,t.of,n)}),e)}(e,t,n);case"tuple":return function(e,t,r){var n,s,o,i,a;for(n=0,s=0,i=(o=t.of).length;s<i;++s){if(a=o[s],!u(e[n],a,r))return!1;n++}return e.length<=n}(e,t,n)}}function c(e,t,r){var n,c,u,l;if(n=t.type,c=t.structure,n)return"*"===n||((u=r.customTypes[n]||s[n])?(void 0===u.typeOf||u.typeOf===i.call(e).slice(8,-1))&&u.validate(e):n===i.call(e).slice(8,-1)&&(!c||a(e,t,r)));if(c)return(!(l=o[c])||l===i.call(e).slice(8,-1))&&a(e,t,r);throw new Error("No type defined. Input: "+e+".")}function u(e,r,n){if("Array"!==i.call(r).slice(8,-1))throw new Error("Types must be in an array. Input: "+e+".");return t((function(t){return c(e,t,n)}),r)}t=(e=Wl).any,r=e.all,n=e.isItNaN,s={Number:{typeOf:"Number",validate:function(e){return!n(e)}},NaN:{typeOf:"Number",validate:n},Int:{typeOf:"Number",validate:function(e){return!n(e)&&e%1==0}},Float:{typeOf:"Number",validate:function(e){return!n(e)}},Date:{typeOf:"Date",validate:function(e){return!n(e.getTime())}}},o={array:"Array",tuple:"Array"},Jl.exports=function(e,t,r){return null==r&&(r={}),null==r.customTypes&&(r.customTypes={}),u(t,e,r)}}).call(void 0),function(){var e,t,r;e=Kl.exports,t=Jl.exports,r=function(r,n,s){return t(e(r),n,s)},Hl.exports={VERSION:"0.4.0",typeCheck:r,parsedTypeCheck:t,parseType:e}}.call(void 0),function(){var e,t,r={}.toString;function n(e,t,n){var s,o;return"Array"!==r.call(e).slice(8,-1)?{type:"Nothing"}:(s=t.of,{type:"Just",value:function(){var t,r,a,c=[];for(t=0,a=(r=e).length;t<a;++t)o=r[t],c.push(i(o,s,n));return c}()})}function s(e,t,n){var s,o,a;return"Object"!==r.call(e).slice(8,-1)?{type:"Nothing"}:(s=t.of,{type:"Just",value:function(){var t,r={};for(o in t=e)a=t[o],r[i(o,[{type:"String"}],n)]=i(a,s[o]||[{type:"*"}],n);return r}()})}function o(e,o,a){var c,u,l,p;if(c=o.type,u=o.structure,c){if(!(l=(null!=(p=a.customTypes[c])?p.cast:void 0)||t[c]))throw new Error("Type not defined: "+c+".");return l(e,a,i)}switch(u){case"array":return n(e,o,a);case"tuple":return function(e,t,n){var s,o,a,c,u,l,p;if("Array"!==r.call(e).slice(8,-1))return{type:"Nothing"};for(s=[],o=0,a=0,u=(c=t.of).length;a<u;++a)l=c[a],p=i(e[o],l,n),"Undefined"!==r.call(p).slice(8,-1)&&s.push(p),o++;return e.length<=o?{type:"Just",value:s}:{type:"Nothing"}}(e,o,a);case"fields":return s(e,o,a)}}function i(t,r,n){var s,i,a,c,u,l;for(s=0,i=r.length;s<i;++s)if(u=(c=o(t,a=r[s],n)).type,l=c.value,"Nothing"!==u&&e([a],l,{customTypes:n.customTypes}))return l;throw new Error("Value "+JSON.stringify(t)+" does not type check against "+JSON.stringify(r)+".")}e=Hl.exports.parsedTypeCheck,t={"*":function(e,t){switch(r.call(e).slice(8,-1)){case"Array":return o(e,{type:"Array"},t);case"Object":return o(e,{type:"Object"},t);default:return{type:"Just",value:i(e,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(t.explicit=!0,t))}}},Undefined:function(e){return"undefined"===e||void 0===e?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(e){return"null"===e?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(e){return"NaN"===e?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(e){return"true"===e?{type:"Just",value:!0}:"false"===e?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(e){return{type:"Just",value:+e}},Int:function(e){return{type:"Just",value:+e}},Float:function(e){return{type:"Just",value:+e}},Date:function(e,t){var r;return(r=/^\#([\s\S]*)\#$/.exec(e))?{type:"Just",value:new Date(+r[1]||r[1])}:t.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+e||e)}},RegExp:function(e,t){var r;return(r=/^\/([\s\S]*)\/([gimy]*)$/.exec(e))?{type:"Just",value:new RegExp(r[1],r[2])}:t.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(e)}},Array:function(e,t){return n(e,{of:[{type:"*"}]},t)},Object:function(e,t){return s(e,{of:{}},t)},String:function(e){var t,n;return"String"!==r.call(e).slice(8,-1)?{type:"Nothing"}:(t=function(e,t){return e.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,(function(e,r){switch(r[0]){case t:return t;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"u":return JSON.parse('"'+e+'"');default:return r}}))},(n=e.match(/^'([\s\S]*)'$/))?{type:"Just",value:t(n[1],"'")}:(n=e.match(/^"([\s\S]*)"$/))?{type:"Just",value:t(n[1],'"')}:{type:"Just",value:e})}},Gl.exports=function(e,t,r){return r.explicit||1!==t.length||"String"!==t[0].type?i(e,t,r):e}}.call(void 0),function(){var e,t,r,n,s;e=kc.exports,t=Gl.exports,r=Hl.exports.parseType,n=function(r,n,s){return null==s&&(s={}),null==s.explicit&&(s.explicit=!1),null==s.customTypes&&(s.customTypes={}),t(e(r,n,s),r,s)},s=function(e,t,s){return n(r(e),t,s)},Sc.exports={VERSION:"0.4.1",parse:s,parsedTypeParse:n}}.call(void 0);const Ql=Sc.exports,{Legacy:{ConfigOps:Xl}}=Yt,Yl=Ys.exports("eslint:config-comment-parser");function Zl(e){return(Zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ep(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,s=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){s=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}return r}}(e,t)||rp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tp(e){return function(e){if(Array.isArray(e))return np(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||rp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rp(e,t){if(e){if("string"==typeof e)return np(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?np(e,t):void 0}}function np(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sp(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=rp(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function op(e,t){return e(t={exports:{}},t.exports),t.exports}var ip=op((function(e,t){!function e(t){var r,n,s,o,i,a;function c(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?c(r):r);return n}function u(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function p(){}function d(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function f(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new p).traverse(e,t)}function g(e,t){var r;return r=function(e,t){var r,n,s,o;for(n=e.length,s=0;n;)t(e[o=s+(r=n>>>1)])?n=r:(s=o+1,n-=r+1);return s}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:o={},Skip:i={},Remove:a={}},u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,r,n,s;function o(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(s=[],e=2,t=this.__leavelist.length;e<t;++e)o(s,this.__leavelist[e].path);return o(s,this.__current.path),s},p.prototype.type=function(){return this.current().type||this.__current.wrap},p.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},p.prototype.notify=function(e){this.__state=e},p.prototype.skip=function(){this.notify(i)},p.prototype.break=function(){this.notify(o)},p.prototype.remove=function(){this.notify(a)},p.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=s,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},p.prototype.traverse=function(e,t){var r,n,s,a,c,u,p,m,g,y,x,b;for(this.__initialize(e,t),b={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((s=r.pop())!==b){if(s.node){if(u=this.__execute(t.enter,s),this.__state===o||u===o)return;if(r.push(b),n.push(s),this.__state===i||u===i)continue;if(c=(a=s.node).type||s.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(a)}for(m=y.length;(m-=1)>=0;)if(x=a[p=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]&&!h(n,x[g])){if(f(c,y[m]))s=new l(x[g],[p,g],"Property",null);else{if(!d(x[g]))continue;s=new l(x[g],[p,g],null,null)}r.push(s)}}else if(d(x)){if(h(n,x))continue;r.push(new l(x,p,null,null))}}}else if(s=n.pop(),u=this.__execute(t.leave,s),this.__state===o||u===o)return},p.prototype.replace=function(e,t){var r,n,s,c,p,h,m,g,y,x,b,v,E;function C(e){var t,n,s,o;if(e.ref.remove())for(n=e.ref.key,o=e.ref.parent,t=r.length;t--;)if((s=r[t]).ref&&s.ref.parent===o){if(s.ref.key<n)break;--s.ref.key}}for(this.__initialize(e,t),b={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new u(v={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==b){if(void 0!==(p=this.__execute(t.enter,h))&&p!==o&&p!==i&&p!==a&&(h.ref.replace(p),h.node=p),this.__state!==a&&p!==a||(C(h),h.node=null),this.__state===o||p===o)return v.root;if((s=h.node)&&(r.push(b),n.push(h),this.__state!==i&&p!==i)){if(c=s.type||h.wrap,!(y=this.__keys[c])){if(!this.__fallback)throw new Error("Unknown node type "+c+".");y=this.__fallback(s)}for(m=y.length;(m-=1)>=0;)if(x=s[E=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(f(c,y[m]))h=new l(x[g],[E,g],"Property",new u(x,g));else{if(!d(x[g]))continue;h=new l(x[g],[E,g],null,new u(x,g))}r.push(h)}}else d(x)&&r.push(new l(x,E,null,new u(s,E)))}}else if(h=n.pop(),void 0!==(p=this.__execute(t.leave,h))&&p!==o&&p!==i&&p!==a&&h.ref.replace(p),this.__state!==a&&p!==a||C(h),this.__state===o||p===o)return v.root;return v.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,r){var s,o,i,a,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,o=t.length;i<o;i+=1)(s=c(t[i])).extendedRange=[0,e.range[0]],u.push(s);e.leadingComments=u}return e}for(i=0,o=t.length;i<o;i+=1)u.push(g(c(t[i]),r));return a=0,m(e,{enter:function(e){for(var t;a<u.length&&!((t=u[a]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),a=0,m(e,{leave:function(e){for(var t;a<u.length&&(t=u[a],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),u.splice(a,1)):a+=1;return a===u.length?n.Break:u[a].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=s,t.VisitorOption=n,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(t)})),ap=op((function(e){e.exports&&(e.exports=function(){function e(t,r,n,s){this.message=t,this.expected=r,this.found=n,this.location=s,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+s(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?o(e.parts[t][0])+"-"+o(e.parts[t][1]):o(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function s(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}return"Expected "+function(e){var t,n,s,o=new Array(e.length);for(t=0;t<e.length;t++)o[t]=(s=e[t],r[s.type](s));if(o.sort(),o.length>0){for(t=1,n=1;t<o.length;t++)o[t-1]!==o[t]&&(o[n]=o[t],n++);o.length=n}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(e)+" but "+function(e){return e?'"'+s(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,s,o,i,a={},c={start:ve},u=ve,l=me(" ",!1),p=/^[^ [\],():#!=><~+.]/,d=ge([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),f=me(">",!1),h=me("~",!1),m=me("+",!1),g=me(",",!1),y=me("!",!1),x=me("*",!1),b=me("#",!1),v=me("[",!1),E=me("]",!1),C=/^[><!]/,S=ge([">","<","!"],!1,!1),k=me("=",!1),A=function(e){return(e||"")+"="},D=/^[><]/,w=ge([">","<"],!1,!1),F=me(".",!1),T=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},P=me('"',!1),I=/^[^\\"]/,_=ge(["\\",'"'],!0,!1),B=me("\\",!1),O={type:"any"},L=function(e,t){return e+t},j=function(e){return{type:"literal",value:(t=e.join(""),t.replace(/\\(.)/g,(function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";default:return t}})))};var t},N=me("'",!1),R=/^[^\\']/,M=ge(["\\","'"],!0,!1),V=/^[0-9]/,$=ge([["0","9"]],!1,!1),U=me("type(",!1),q=/^[^ )]/,W=ge([" ",")"],!0,!1),z=me(")",!1),G=/^[imsu]/,H=ge(["i","m","s","u"],!1,!1),K=me("/",!1),J=/^[^\/]/,Q=ge(["/"],!0,!1),X=me(":not(",!1),Y=me(":matches(",!1),Z=me(":has(",!1),ee=me(":first-child",!1),te=me(":last-child",!1),re=me(":nth-child(",!1),ne=me(":nth-last-child(",!1),se=me(":",!1),oe=me("statement",!0),ie=me("expression",!0),ae=me("declaration",!0),ce=me("function",!0),ue=me("pattern",!0),le=0,pe=[{line:1,column:1}],de=0,fe=[],he={};if("startRule"in r){if(!(r.startRule in c))throw new Error("Can't start parsing from rule \""+r.startRule+'".');u=c[r.startRule]}function me(e,t){return{type:"literal",text:e,ignoreCase:t}}function ge(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ye(e){var r,n=pe[e];if(n)return n;for(r=e-1;!pe[r];)r--;for(n={line:(n=pe[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return pe[e]=n,n}function xe(e,t){var r=ye(e),n=ye(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function be(e){le<de||(le>de&&(de=le,fe=[]),fe.push(e))}function ve(){var e,t,r,n,s=30*le+0,o=he[s];return o?(le=o.nextPos,o.result):(e=le,(t=Ee())!==a&&(r=ke())!==a&&Ee()!==a?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(le=e,e=a),e===a&&(e=le,(t=Ee())!==a&&(t=void 0),e=t),he[s]={nextPos:le,result:e},e)}function Ee(){var e,r,n=30*le+1,s=he[n];if(s)return le=s.nextPos,s.result;for(e=[],32===t.charCodeAt(le)?(r=" ",le++):(r=a,be(l));r!==a;)e.push(r),32===t.charCodeAt(le)?(r=" ",le++):(r=a,be(l));return he[n]={nextPos:le,result:e},e}function Ce(){var e,r,n,s=30*le+2,o=he[s];if(o)return le=o.nextPos,o.result;if(r=[],p.test(t.charAt(le))?(n=t.charAt(le),le++):(n=a,be(d)),n!==a)for(;n!==a;)r.push(n),p.test(t.charAt(le))?(n=t.charAt(le),le++):(n=a,be(d));else r=a;return r!==a&&(r=r.join("")),e=r,he[s]={nextPos:le,result:e},e}function Se(){var e,r,n,s=30*le+3,o=he[s];return o?(le=o.nextPos,o.result):(e=le,(r=Ee())!==a?(62===t.charCodeAt(le)?(n=">",le++):(n=a,be(f)),n!==a&&Ee()!==a?e=r="child":(le=e,e=a)):(le=e,e=a),e===a&&(e=le,(r=Ee())!==a?(126===t.charCodeAt(le)?(n="~",le++):(n=a,be(h)),n!==a&&Ee()!==a?e=r="sibling":(le=e,e=a)):(le=e,e=a),e===a&&(e=le,(r=Ee())!==a?(43===t.charCodeAt(le)?(n="+",le++):(n=a,be(m)),n!==a&&Ee()!==a?e=r="adjacent":(le=e,e=a)):(le=e,e=a),e===a&&(e=le,32===t.charCodeAt(le)?(r=" ",le++):(r=a,be(l)),r!==a&&(n=Ee())!==a?e=r="descendant":(le=e,e=a)))),he[s]={nextPos:le,result:e},e)}function ke(){var e,r,n,s,o,i,c,u,l=30*le+4,p=he[l];if(p)return le=p.nextPos,p.result;if(e=le,(r=Ae())!==a){for(n=[],s=le,(o=Ee())!==a?(44===t.charCodeAt(le)?(i=",",le++):(i=a,be(g)),i!==a&&(c=Ee())!==a&&(u=Ae())!==a?s=o=[o,i,c,u]:(le=s,s=a)):(le=s,s=a);s!==a;)n.push(s),s=le,(o=Ee())!==a?(44===t.charCodeAt(le)?(i=",",le++):(i=a,be(g)),i!==a&&(c=Ee())!==a&&(u=Ae())!==a?s=o=[o,i,c,u]:(le=s,s=a)):(le=s,s=a);n!==a?e=r=[r].concat(n.map((function(e){return e[3]}))):(le=e,e=a)}else le=e,e=a;return he[l]={nextPos:le,result:e},e}function Ae(){var e,t,r,n,s,o,i,c=30*le+5,u=he[c];if(u)return le=u.nextPos,u.result;if(e=le,(t=De())!==a){for(r=[],n=le,(s=Se())!==a&&(o=De())!==a?n=s=[s,o]:(le=n,n=a);n!==a;)r.push(n),n=le,(s=Se())!==a&&(o=De())!==a?n=s=[s,o]:(le=n,n=a);r!==a?(i=t,e=t=r.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),i)):(le=e,e=a)}else le=e,e=a;return he[c]={nextPos:le,result:e},e}function De(){var e,r,n,s,o,i,c,u=30*le+6,l=he[u];if(l)return le=l.nextPos,l.result;if(e=le,33===t.charCodeAt(le)?(r="!",le++):(r=a,be(y)),r===a&&(r=null),r!==a){if(n=[],(s=we())!==a)for(;s!==a;)n.push(s),s=we();else n=a;n!==a?(o=r,c=1===(i=n).length?i[0]:{type:"compound",selectors:i},o&&(c.subject=!0),e=r=c):(le=e,e=a)}else le=e,e=a;return he[u]={nextPos:le,result:e},e}function we(){var e,r=30*le+7,n=he[r];return n?(le=n.nextPos,n.result):((e=function(){var e,r,n=30*le+8,s=he[n];return s?(le=s.nextPos,s.result):(42===t.charCodeAt(le)?(r="*",le++):(r=a,be(x)),r!==a&&(r={type:"wildcard",value:r}),e=r,he[n]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s=30*le+9,o=he[s];return o?(le=o.nextPos,o.result):(e=le,35===t.charCodeAt(le)?(r="#",le++):(r=a,be(b)),r===a&&(r=null),r!==a&&(n=Ce())!==a?e=r={type:"identifier",value:n}:(le=e,e=a),he[s]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o=30*le+10,i=he[o];return i?(le=i.nextPos,i.result):(e=le,91===t.charCodeAt(le)?(r="[",le++):(r=a,be(v)),r!==a&&Ee()!==a&&(n=function(){var e,r,n,s,o=30*le+14,i=he[o];return i?(le=i.nextPos,i.result):(e=le,(r=Fe())!==a&&Ee()!==a&&(n=function(){var e,r,n,s=30*le+12,o=he[s];return o?(le=o.nextPos,o.result):(e=le,33===t.charCodeAt(le)?(r="!",le++):(r=a,be(y)),r===a&&(r=null),r!==a?(61===t.charCodeAt(le)?(n="=",le++):(n=a,be(k)),n!==a?e=r=A(r):(le=e,e=a)):(le=e,e=a),he[s]={nextPos:le,result:e},e)}())!==a&&Ee()!==a?((s=function(){var e,r,n,s,o,i=30*le+18,c=he[i];if(c)return le=c.nextPos,c.result;if(e=le,"type("===t.substr(le,5)?(r="type(",le+=5):(r=a,be(U)),r!==a)if(Ee()!==a){if(n=[],q.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(W)),s!==a)for(;s!==a;)n.push(s),q.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(W));else n=a;n!==a&&(s=Ee())!==a?(41===t.charCodeAt(le)?(o=")",le++):(o=a,be(z)),o!==a?e=r={type:"type",value:n.join("")}:(le=e,e=a)):(le=e,e=a)}else le=e,e=a;else le=e,e=a;return he[i]={nextPos:le,result:e},e}())===a&&(s=function(){var e,r,n,s,o,i,c=30*le+20,u=he[c];if(u)return le=u.nextPos,u.result;if(e=le,47===t.charCodeAt(le)?(r="/",le++):(r=a,be(K)),r!==a){if(n=[],J.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(Q)),s!==a)for(;s!==a;)n.push(s),J.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(Q));else n=a;n!==a?(47===t.charCodeAt(le)?(s="/",le++):(s=a,be(K)),s!==a?((o=function(){var e,r,n=30*le+19,s=he[n];if(s)return le=s.nextPos,s.result;if(e=[],G.test(t.charAt(le))?(r=t.charAt(le),le++):(r=a,be(H)),r!==a)for(;r!==a;)e.push(r),G.test(t.charAt(le))?(r=t.charAt(le),le++):(r=a,be(H));else e=a;return he[n]={nextPos:le,result:e},e}())===a&&(o=null),o!==a?(i=o,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(le=e,e=a)):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;return he[c]={nextPos:le,result:e},e}()),s!==a?e=r=T(r,n,s):(le=e,e=a)):(le=e,e=a),e===a&&(e=le,(r=Fe())!==a&&Ee()!==a&&(n=function(){var e,r,n,s=30*le+11,o=he[s];return o?(le=o.nextPos,o.result):(e=le,C.test(t.charAt(le))?(r=t.charAt(le),le++):(r=a,be(S)),r===a&&(r=null),r!==a?(61===t.charCodeAt(le)?(n="=",le++):(n=a,be(k)),n!==a?e=r=A(r):(le=e,e=a)):(le=e,e=a),e===a&&(D.test(t.charAt(le))?(e=t.charAt(le),le++):(e=a,be(w))),he[s]={nextPos:le,result:e},e)}())!==a&&Ee()!==a?((s=function(){var e,r,n,s,o,i,c=30*le+15,u=he[c];if(u)return le=u.nextPos,u.result;if(e=le,34===t.charCodeAt(le)?(r='"',le++):(r=a,be(P)),r!==a){for(n=[],I.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(_)),s===a&&(s=le,92===t.charCodeAt(le)?(o="\\",le++):(o=a,be(B)),o!==a?(t.length>le?(i=t.charAt(le),le++):(i=a,be(O)),i!==a?s=o=L(o,i):(le=s,s=a)):(le=s,s=a));s!==a;)n.push(s),I.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(_)),s===a&&(s=le,92===t.charCodeAt(le)?(o="\\",le++):(o=a,be(B)),o!==a?(t.length>le?(i=t.charAt(le),le++):(i=a,be(O)),i!==a?s=o=L(o,i):(le=s,s=a)):(le=s,s=a));n!==a?(34===t.charCodeAt(le)?(s='"',le++):(s=a,be(P)),s!==a?e=r=j(n):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;if(e===a)if(e=le,39===t.charCodeAt(le)?(r="'",le++):(r=a,be(N)),r!==a){for(n=[],R.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(M)),s===a&&(s=le,92===t.charCodeAt(le)?(o="\\",le++):(o=a,be(B)),o!==a?(t.length>le?(i=t.charAt(le),le++):(i=a,be(O)),i!==a?s=o=L(o,i):(le=s,s=a)):(le=s,s=a));s!==a;)n.push(s),R.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be(M)),s===a&&(s=le,92===t.charCodeAt(le)?(o="\\",le++):(o=a,be(B)),o!==a?(t.length>le?(i=t.charAt(le),le++):(i=a,be(O)),i!==a?s=o=L(o,i):(le=s,s=a)):(le=s,s=a));n!==a?(39===t.charCodeAt(le)?(s="'",le++):(s=a,be(N)),s!==a?e=r=j(n):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;return he[c]={nextPos:le,result:e},e}())===a&&(s=function(){var e,r,n,s,o,i,c,u=30*le+16,l=he[u];if(l)return le=l.nextPos,l.result;for(e=le,r=le,n=[],V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));s!==a;)n.push(s),V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));if(n!==a?(46===t.charCodeAt(le)?(s=".",le++):(s=a,be(F)),s!==a?r=n=[n,s]:(le=r,r=a)):(le=r,r=a),r===a&&(r=null),r!==a){if(n=[],V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($)),s!==a)for(;s!==a;)n.push(s),V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));else n=a;n!==a?(i=n,c=(o=r)?[].concat.apply([],o).join(""):"",e=r={type:"literal",value:parseFloat(c+i.join(""))}):(le=e,e=a)}else le=e,e=a;return he[u]={nextPos:le,result:e},e}())===a&&(s=function(){var e,t,r=30*le+17,n=he[r];return n?(le=n.nextPos,n.result):((t=Ce())!==a&&(t={type:"literal",value:t}),e=t,he[r]={nextPos:le,result:e},e)}()),s!==a?e=r=T(r,n,s):(le=e,e=a)):(le=e,e=a),e===a&&(e=le,(r=Fe())!==a&&(r={type:"attribute",name:r}),e=r)),he[o]={nextPos:le,result:e},e)}())!==a&&Ee()!==a?(93===t.charCodeAt(le)?(s="]",le++):(s=a,be(E)),s!==a?e=r=n:(le=e,e=a)):(le=e,e=a),he[o]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o,i,c,u,l=30*le+21,p=he[l];if(p)return le=p.nextPos,p.result;if(e=le,46===t.charCodeAt(le)?(r=".",le++):(r=a,be(F)),r!==a)if((n=Ce())!==a){for(s=[],o=le,46===t.charCodeAt(le)?(i=".",le++):(i=a,be(F)),i!==a&&(c=Ce())!==a?o=i=[i,c]:(le=o,o=a);o!==a;)s.push(o),o=le,46===t.charCodeAt(le)?(i=".",le++):(i=a,be(F)),i!==a&&(c=Ce())!==a?o=i=[i,c]:(le=o,o=a);s!==a?(u=n,e=r={type:"field",name:s.reduce((function(e,t){return e+t[0]+t[1]}),u)}):(le=e,e=a)}else le=e,e=a;else le=e,e=a;return he[l]={nextPos:le,result:e},e}())===a&&(e=function(){var e,r,n,s,o=30*le+22,i=he[o];return i?(le=i.nextPos,i.result):(e=le,":not("===t.substr(le,5)?(r=":not(",le+=5):(r=a,be(X)),r!==a&&Ee()!==a&&(n=ke())!==a&&Ee()!==a?(41===t.charCodeAt(le)?(s=")",le++):(s=a,be(z)),s!==a?e=r={type:"not",selectors:n}:(le=e,e=a)):(le=e,e=a),he[o]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o=30*le+23,i=he[o];return i?(le=i.nextPos,i.result):(e=le,":matches("===t.substr(le,9)?(r=":matches(",le+=9):(r=a,be(Y)),r!==a&&Ee()!==a&&(n=ke())!==a&&Ee()!==a?(41===t.charCodeAt(le)?(s=")",le++):(s=a,be(z)),s!==a?e=r={type:"matches",selectors:n}:(le=e,e=a)):(le=e,e=a),he[o]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o=30*le+24,i=he[o];return i?(le=i.nextPos,i.result):(e=le,":has("===t.substr(le,5)?(r=":has(",le+=5):(r=a,be(Z)),r!==a&&Ee()!==a&&(n=ke())!==a&&Ee()!==a?(41===t.charCodeAt(le)?(s=")",le++):(s=a,be(z)),s!==a?e=r={type:"has",selectors:n}:(le=e,e=a)):(le=e,e=a),he[o]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n=30*le+25,s=he[n];return s?(le=s.nextPos,s.result):(":first-child"===t.substr(le,12)?(r=":first-child",le+=12):(r=a,be(ee)),r!==a&&(r=Te(1)),e=r,he[n]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n=30*le+26,s=he[n];return s?(le=s.nextPos,s.result):(":last-child"===t.substr(le,11)?(r=":last-child",le+=11):(r=a,be(te)),r!==a&&(r=Pe(1)),e=r,he[n]={nextPos:le,result:e},e)}())===a&&(e=function(){var e,r,n,s,o,i=30*le+27,c=he[i];if(c)return le=c.nextPos,c.result;if(e=le,":nth-child("===t.substr(le,11)?(r=":nth-child(",le+=11):(r=a,be(re)),r!==a)if(Ee()!==a){if(n=[],V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($)),s!==a)for(;s!==a;)n.push(s),V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));else n=a;n!==a&&(s=Ee())!==a?(41===t.charCodeAt(le)?(o=")",le++):(o=a,be(z)),o!==a?e=r=Te(parseInt(n.join(""),10)):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;else le=e,e=a;return he[i]={nextPos:le,result:e},e}())===a&&(e=function(){var e,r,n,s,o,i=30*le+28,c=he[i];if(c)return le=c.nextPos,c.result;if(e=le,":nth-last-child("===t.substr(le,16)?(r=":nth-last-child(",le+=16):(r=a,be(ne)),r!==a)if(Ee()!==a){if(n=[],V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($)),s!==a)for(;s!==a;)n.push(s),V.test(t.charAt(le))?(s=t.charAt(le),le++):(s=a,be($));else n=a;n!==a&&(s=Ee())!==a?(41===t.charCodeAt(le)?(o=")",le++):(o=a,be(z)),o!==a?e=r=Pe(parseInt(n.join(""),10)):(le=e,e=a)):(le=e,e=a)}else le=e,e=a;else le=e,e=a;return he[i]={nextPos:le,result:e},e}())===a&&(e=function(){var e,r,n,s=30*le+29,o=he[s];return o?(le=o.nextPos,o.result):(e=le,58===t.charCodeAt(le)?(r=":",le++):(r=a,be(se)),r!==a?("statement"===t.substr(le,9).toLowerCase()?(n=t.substr(le,9),le+=9):(n=a,be(oe)),n===a&&("expression"===t.substr(le,10).toLowerCase()?(n=t.substr(le,10),le+=10):(n=a,be(ie)),n===a&&("declaration"===t.substr(le,11).toLowerCase()?(n=t.substr(le,11),le+=11):(n=a,be(ae)),n===a&&("function"===t.substr(le,8).toLowerCase()?(n=t.substr(le,8),le+=8):(n=a,be(ce)),n===a&&("pattern"===t.substr(le,7).toLowerCase()?(n=t.substr(le,7),le+=7):(n=a,be(ue)))))),n!==a?e=r={type:"class",name:n}:(le=e,e=a)):(le=e,e=a),he[s]={nextPos:le,result:e},e)}()),he[r]={nextPos:le,result:e},e)}function Fe(){var e,r,n,s,o,i,c,u,l=30*le+13,p=he[l];if(p)return le=p.nextPos,p.result;if(e=le,(r=Ce())!==a){for(n=[],s=le,46===t.charCodeAt(le)?(o=".",le++):(o=a,be(F)),o!==a&&(i=Ce())!==a?s=o=[o,i]:(le=s,s=a);s!==a;)n.push(s),s=le,46===t.charCodeAt(le)?(o=".",le++):(o=a,be(F)),o!==a&&(i=Ce())!==a?s=o=[o,i]:(le=s,s=a);n!==a?(c=r,u=n,e=r=[].concat.apply([c],u).join("")):(le=e,e=a)}else le=e,e=a;return he[l]={nextPos:le,result:e},e}function Te(e){return{type:"nth-child",index:{type:"literal",value:e}}}function Pe(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((n=u())!==a&&le===t.length)return n;throw n!==a&&le<t.length&&be({type:"end"}),s=fe,o=de<t.length?t.charAt(de):null,i=de<t.length?xe(de,de+1):xe(de,de),new e(e.buildMessage(s,o),s,o,i)}}}())}));function cp(e,t,r,n){if(!t)return!0;if(!e)return!1;switch(r||(r=[]),t.type){case"wildcard":return!0;case"identifier":return t.value.toLowerCase()===e.type.toLowerCase();case"field":var s=t.name.split("."),o=r[s.length-1];return function e(t,r,n){if(0===n.length)return t===r;if(null==r)return!1;var s=r[n[0]],o=n.slice(1);if(Array.isArray(s)){var i,a=sp(s);try{for(a.s();!(i=a.n()).done;)if(e(t,i.value,o))return!0}catch(e){a.e(e)}finally{a.f()}return!1}return e(t,s,o)}(e,o,s);case"matches":var i,a=sp(t.selectors);try{for(a.s();!(i=a.n()).done;){var c=i.value;if(cp(e,c,r,n))return!0}}catch(e){a.e(e)}finally{a.f()}return!1;case"compound":var u,l=sp(t.selectors);try{for(l.s();!(u=l.n()).done;){var p=u.value;if(!cp(e,p,r,n))return!1}}catch(e){l.e(e)}finally{l.f()}return!0;case"not":var d,f=sp(t.selectors);try{for(f.s();!(d=f.n()).done;){var h=d.value;if(cp(e,h,r,n))return!1}}catch(e){f.e(e)}finally{f.f()}return!0;case"has":var m=function(){var r,s=[],o=sp(t.selectors);try{var i=function(){var t=r.value,o=[];ip.traverse(e,{enter:function(e,r){null!=r&&o.unshift(r),cp(e,t,o,n)&&s.push(e)},leave:function(){o.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})};for(o.s();!(r=o.n()).done;)i()}catch(r){o.e(r)}finally{o.f()}return{v:0!==s.length}}();if("object"===Zl(m))return m.v;case"child":return!!cp(e,t.right,r,n)&&cp(r[0],t.left,r.slice(1),n);case"descendant":if(cp(e,t.right,r,n))for(var g=0,y=r.length;g<y;++g)if(cp(r[g],t.left,r.slice(g+1),n))return!0;return!1;case"attribute":var x=function(e,t){var r,n=sp(t.split("."));try{for(n.s();!(r=n.n()).done;){var s=r.value;if(null==e)return e;e=e[s]}}catch(e){n.e(e)}finally{n.f()}return e}(e,t.name);switch(t.operator){case void 0:return null!=x;case"=":switch(t.value.type){case"regexp":return"string"==typeof x&&t.value.value.test(x);case"literal":return"".concat(t.value.value)==="".concat(x);case"type":return t.value.value===Zl(x)}throw new Error("Unknown selector value type: ".concat(t.value.type));case"!=":switch(t.value.type){case"regexp":return!t.value.value.test(x);case"literal":return"".concat(t.value.value)!=="".concat(x);case"type":return t.value.value!==Zl(x)}throw new Error("Unknown selector value type: ".concat(t.value.type));case"<=":return x<=t.value.value;case"<":return x<t.value.value;case">":return x>t.value.value;case">=":return x>=t.value.value}throw new Error("Unknown operator: ".concat(t.operator));case"sibling":return cp(e,t.right,r,n)&&pp(e,t.left,r,"LEFT_SIDE",n)||t.left.subject&&cp(e,t.left,r,n)&&pp(e,t.right,r,"RIGHT_SIDE",n);case"adjacent":return cp(e,t.right,r,n)&&dp(e,t.left,r,"LEFT_SIDE",n)||t.right.subject&&cp(e,t.left,r,n)&&dp(e,t.right,r,"RIGHT_SIDE",n);case"nth-child":return cp(e,t.right,r,n)&&fp(e,r,(function(){return t.index.value-1}),n);case"nth-last-child":return cp(e,t.right,r,n)&&fp(e,r,(function(e){return e-t.index.value}),n);case"class":switch(t.name.toLowerCase()){case"statement":if("Statement"===e.type.slice(-9))return!0;case"declaration":return"Declaration"===e.type.slice(-11);case"pattern":if("Pattern"===e.type.slice(-7))return!0;case"expression":return"Expression"===e.type.slice(-10)||"Literal"===e.type.slice(-7)||"Identifier"===e.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===e.type;case"function":return"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}throw new Error("Unknown class name: ".concat(t.name))}throw new Error("Unknown selector type: ".concat(t.type))}function up(e,t){var r=e.type;return t&&t.visitorKeys&&t.visitorKeys[r]?t.visitorKeys[r]:ip.VisitorKeys[r]?ip.VisitorKeys[r]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter((function(e){return"type"!==e}))}function lp(e){return null!==e&&"object"===Zl(e)&&"string"==typeof e.type}function pp(e,t,r,n,s){var o=ep(r,1)[0];if(!o)return!1;var i,a=sp(up(o,s));try{for(a.s();!(i=a.n()).done;){var c=o[i.value];if(Array.isArray(c)){var u=c.indexOf(e);if(u<0)continue;var l=void 0,p=void 0;"LEFT_SIDE"===n?(l=0,p=u):(l=u+1,p=c.length);for(var d=l;d<p;++d)if(lp(c[d])&&cp(c[d],t,r,s))return!0}}}catch(e){a.e(e)}finally{a.f()}return!1}function dp(e,t,r,n,s){var o=ep(r,1)[0];if(!o)return!1;var i,a=sp(up(o,s));try{for(a.s();!(i=a.n()).done;){var c=o[i.value];if(Array.isArray(c)){var u=c.indexOf(e);if(u<0)continue;if("LEFT_SIDE"===n&&u>0&&lp(c[u-1])&&cp(c[u-1],t,r,s))return!0;if("RIGHT_SIDE"===n&&u<c.length-1&&lp(c[u+1])&&cp(c[u+1],t,r,s))return!0}}}catch(e){a.e(e)}finally{a.f()}return!1}function fp(e,t,r,n){var s=ep(t,1)[0];if(!s)return!1;var o,i=sp(up(s,n));try{for(i.s();!(o=i.n()).done;){var a=s[o.value];if(Array.isArray(a)){var c=a.indexOf(e);if(c>=0&&c===r(a.length))return!0}}}catch(e){i.e(e)}finally{i.f()}return!1}function hp(e,t){if(null==e||"object"!=Zl(e))return[];null==t&&(t=e);for(var r=e.subject?[t]:[],n=0,s=function(e){for(var t=[],r=Object.keys(e),n=0;n<r.length;n++)t.push([r[n],e[r[n]]]);return t}(e);n<s.length;n++){var o=ep(s[n],2),i=o[0],a=o[1];r.push.apply(r,tp(hp(a,"left"===i?a:t)))}return r}function mp(e,t,r,n){if(t){var s=[],o=hp(t);ip.traverse(e,{enter:function(e,i){if(null!=i&&s.unshift(i),cp(e,t,s,n))if(o.length)for(var a=0,c=o.length;a<c;++a){cp(e,o[a],s,n)&&r(e,i,s);for(var u=0,l=s.length;u<l;++u){var p=s.slice(u+1);cp(s[u],o[a],p,n)&&r(s[u],i,p)}}else r(e,i,s)},leave:function(){s.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function gp(e,t,r){var n=[];return mp(e,t,(function(e){n.push(e)}),r),n}function yp(e){return ap.parse(e)}function xp(e,t,r){return gp(e,yp(t),r)}xp.parse=yp,xp.match=gp,xp.traverse=mp,xp.matches=cp,xp.query=xp;const bp=xp;function vp(e){switch(e.type){case"identifier":return[e.value];case"matches":{const t=e.selectors.map(vp);return t.every(Boolean)?function(...e){return[...new Set(e.flat())]}(...t):null}case"compound":{const t=e.selectors.map(vp).filter((e=>e));return t.length?function(...e){if(0===e.length)return[];let t=[...new Set(e[0])];for(const r of e.slice(1))t=t.filter((e=>r.includes(e)));return t}(...t):null}case"child":case"descendant":case"sibling":case"adjacent":return vp(e.right);case"class":return"function"===e.name?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}function Ep(e){switch(e.type){case"child":case"descendant":case"sibling":case"adjacent":return Ep(e.left)+Ep(e.right);case"compound":case"not":case"matches":return e.selectors.reduce(((e,t)=>e+Ep(t)),0);case"attribute":case"field":case"nth-child":case"nth-last-child":return 1;default:return 0}}function Cp(e){switch(e.type){case"child":case"descendant":case"sibling":case"adjacent":return Cp(e.left)+Cp(e.right);case"compound":case"not":case"matches":return e.selectors.reduce(((e,t)=>e+Cp(t)),0);case"identifier":return 1;default:return 0}}function Sp(e,t){return e.attributeCount-t.attributeCount||e.identifierCount-t.identifierCount||(e.rawSelector<=t.rawSelector?-1:1)}const kp=new Map;function Ap(e){if(kp.has(e))return kp.get(e);const t=function(e){try{return bp.parse(e.replace(/:exit$/u,""))}catch(t){if(t.location&&t.location.start&&"number"==typeof t.location.start.offset)throw new SyntaxError(`Syntax error in selector "${e}" at position ${t.location.start.offset}: ${t.message}`);throw t}}(e),r={rawSelector:e,isExit:e.endsWith(":exit"),parsedSelector:t,listenerTypes:vp(t),attributeCount:Ep(t),identifierCount:Cp(t)};return kp.set(e,r),r}var Dp=class{constructor(e,t){this.emitter=e,this.esqueryOptions=t,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],e.eventNames().forEach((e=>{const t=Ap(e);if(t.listenerTypes){const e=t.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;return void t.listenerTypes.forEach((r=>{e.has(r)||e.set(r,[]),e.get(r).push(t)}))}(t.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(t)})),this.anyTypeEnterSelectors.sort(Sp),this.anyTypeExitSelectors.sort(Sp),this.enterSelectorsByNodeType.forEach((e=>e.sort(Sp))),this.exitSelectorsByNodeType.forEach((e=>e.sort(Sp)))}applySelector(e,t){bp.matches(e,t.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(t.rawSelector,e)}applySelectors(e,t){const r=(t?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e.type)||[],n=t?this.anyTypeExitSelectors:this.anyTypeEnterSelectors;let s=0,o=0;for(;s<r.length||o<n.length;)s>=r.length||o<n.length&&Sp(n[o],r[s])<0?this.applySelector(e,n[o++]):this.applySelector(e,r[s++])}enterNode(e){e.parent&&this.currentAncestry.unshift(e.parent),this.applySelectors(e,!1)}leaveNode(e){this.applySelectors(e,!0),this.currentAncestry.shift()}};function wp(e,t){return{range:[e,e],text:t}}const Fp=Object.freeze({insertTextAfter(e,t){return this.insertTextAfterRange(e.range,t)},insertTextAfterRange:(e,t)=>wp(e[1],t),insertTextBefore(e,t){return this.insertTextBeforeRange(e.range,t)},insertTextBeforeRange:(e,t)=>wp(e[0],t),replaceText(e,t){return this.replaceTextRange(e.range,t)},replaceTextRange:(e,t)=>({range:e,text:t}),remove(e){return this.removeRange(e.range)},removeRange:e=>({range:e,text:""})});const Tp=he,Pp=Fp,Ip=(e,t)=>t?e.replace(/\{\{([^{}]+?)\}\}/gu,((e,r)=>{const n=r.trim();return n in t?t[n]:e})):e;function _p(e){return e.loc?e.loc.start?e.loc:{start:e.loc,end:null}:e.node.loc}function Bp(e){e&&Tp(e.range&&"number"==typeof e.range[0]&&"number"==typeof e.range[1],"Fix has invalid range: "+JSON.stringify(e,null,2))}function Op(e,t){return e.range[0]-t.range[0]||e.range[1]-t.range[1]}function Lp(e,t){if("function"!=typeof e.fix)return null;const r=e.fix(Pp);return r&&Symbol.iterator in r?function(e,t){for(const t of e)Bp(t);if(0===e.length)return null;if(1===e.length)return e[0];e.sort(Op);const r=t.text,n=e[0].range[0],s=e[e.length-1].range[1];let o="",i=Number.MIN_SAFE_INTEGER;for(const t of e)Tp(t.range[0]>=i,"Fix objects must not be overlapped in a report."),t.range[0]>=0&&(o+=r.slice(Math.max(0,n,i),t.range[0])),o+=t.text,i=t.range[1];return o+=r.slice(Math.max(0,n,i),s),{range:[n,s],text:o}}(Array.from(r),t):(Bp(r),r)}function jp(e,t,r){return e.suggest&&Array.isArray(e.suggest)?e.suggest.map((e=>{const n=e.desc||r[e.messageId];return{...e,desc:Ip(n,e.data),fix:Lp(e,t)}})).filter((({fix:e})=>e)):[]}const Np=Ys.exports("eslint:rules");class Rp extends Map{constructor(e){let t=e.length;super(Np.enabled?e.map((([e,r])=>{let n=null;return[e,()=>(n||(Np("Loading rule %o (remaining=%d)",e,--t),n=r()),n)]})):e),Object.defineProperty(Rp.prototype,"set",{configurable:!0,value:void 0})}get(e){const t=super.get(e);return t&&t()}*values(){for(const e of super.values())yield e()}*entries(){for(const[e,t]of super.entries())yield[e,t()]}forEach(e,t){for(const[r,n]of super.entries())e.call(t,n(),r,this)}}Object.defineProperties(Rp.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:Rp.prototype.entries}});var Mp={LazyLoadingRuleMap:Rp},Vp={exports:{}},$p={},Up={exports:{}};!function(){function e(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function t(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}Up.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(t){return e(t)||null!=t&&"FunctionDeclaration"===t.type},isProblematicIfStatement:function(e){var r;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;r=e.consequent;do{if("IfStatement"===r.type&&null==r.alternate)return!0;r=t(r)}while(r);return!1},trailingStatement:t}}();var qp={exports:{}};!function(){var e,t,r,n,s,o;function i(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],n=new Array(128),o=0;o<128;++o)n[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(s=new Array(128),o=0;o<128;++o)s[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;qp.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?n[e]:t.NonAsciiIdentifierStart.test(i(e))},isIdentifierPartES5:function(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(i(e))},isIdentifierStartES6:function(t){return t<128?n[t]:e.NonAsciiIdentifierStart.test(i(t))},isIdentifierPartES6:function(t){return t<128?s[t]:e.NonAsciiIdentifierPart.test(i(t))}}}();var Wp={exports:{}};!function(){var e=qp.exports;function t(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function n(e,r){return"null"===e||"true"===e||"false"===e||t(e,r)}function s(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function o(t){var r,n,s;if(0===t.length)return!1;if(s=t.charCodeAt(0),!e.isIdentifierStartES5(s))return!1;for(r=1,n=t.length;r<n;++r)if(s=t.charCodeAt(r),!e.isIdentifierPartES5(s))return!1;return!0}function i(t){var r,n,s,o,i;if(0===t.length)return!1;for(i=e.isIdentifierStartES6,r=0,n=t.length;r<n;++r){if(55296<=(s=t.charCodeAt(r))&&s<=56319){if(++r>=n)return!1;if(!(56320<=(o=t.charCodeAt(r))&&o<=57343))return!1;s=1024*(s-55296)+(o-56320)+65536}if(!i(s))return!1;i=e.isIdentifierPartES6}return!0}Wp.exports={isKeywordES5:t,isKeywordES6:r,isReservedWordES5:n,isReservedWordES6:s,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:i,isIdentifierES5:function(e,t){return o(e)&&!n(e,t)},isIdentifierES6:function(e,t){return i(e)&&!s(e,t)}}}(),$p.ast=Up.exports,$p.code=qp.exports,$p.keyword=Wp.exports,function(e){const t=$p,r=dt,n=gc,{breakableTypePattern:s,createGlobalLinebreakMatcher:o,lineBreakPattern:i,shebangPattern:a}=Xt,c=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,u=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,l=/Array$/u,p=/^(?:every|filter|find|findIndex|forEach|map|some)$/u,d=/^(?:bind|call|apply)$/u,f=/^[\s*]*@this/mu,h=new Set(["\r\n","\r","\n","\u2028","\u2029"]),m=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),g=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,y=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/us,x=new Set(["&&=","||=","??="]);function b(e,t,r){const n=e.identifier,s=0===t||r[t-1].identifier!==n;return n&&!1===e.init&&e.isWrite()&&s}function v(e){return e[0]!==e[0].toLocaleLowerCase()}function E(e){return e.id&&v(e.id.name)}function C(e){for(let t=e;t;t=t.parent)if(c.test(t.type))return t;return null}function S(e){return Boolean(e&&c.test(e.type))}function k(e){return Boolean(e&&u.test(e.type))}function A(e){return"Literal"===e.type&&null===e.value&&!e.regex&&!e.bigint}function D(e){return A(e)||"Identifier"===e.type&&"undefined"===e.name||"UnaryExpression"===e.type&&"void"===e.operator}function w(e){return"CallExpression"===e.parent.type&&e.parent.callee===e}function F(e){switch(e.type){case"Literal":if(null!==e.value)return String(e.value);if(A(e))return String(e.value);if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint;break;case"TemplateLiteral":if(0===e.expressions.length&&1===e.quasis.length)return e.quasis[0].value.cooked}return null}function T(e){let t;switch(e&&e.type){case"ChainExpression":return T(e.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":t=e.key;break;case"MemberExpression":t=e.property}return t?"Identifier"!==t.type||e.computed?F(t):t.name:null}function P(e){return e&&"ChainExpression"===e.type?e.expression:e}function I(e,t){return"string"==typeof t?e===t:t.test(e)}function _(e,t){return"Identifier"===e.type&&I(e.name,t)}function B(e,t,r){const n=P(e);if("MemberExpression"!==n.type)return!1;if(t&&!_(n.object,t))return!1;if(r){const e=T(n);if("string"!=typeof e||!I(e,r))return!1}return!0}function O(e,t){return e.regex||t.regex?Boolean(e.regex&&t.regex&&e.regex.pattern===t.regex.pattern&&e.regex.flags===t.regex.flags):e.bigint||t.bigint?e.bigint===t.bigint:e.value===t.value}function L(e){return B(e,"Reflect","apply")}function j(e){return B(e,l,"from")}function N(e){return B(e,null,p)}function R(e){return t=>!e(t)}function M(e){return"=>"===e.value&&"Punctuator"===e.type}function V(e){return","===e.value&&"Punctuator"===e.type}function $(e){return"."===e.value&&"Punctuator"===e.type}function U(e){return"?."===e.value&&"Punctuator"===e.type}function q(e){return";"===e.value&&"Punctuator"===e.type}function W(e){return":"===e.value&&"Punctuator"===e.type}function z(e){return"("===e.value&&"Punctuator"===e.type}function G(e){return")"===e.value&&"Punctuator"===e.type}function H(e){return"["===e.value&&"Punctuator"===e.type}function K(e){return"]"===e.value&&"Punctuator"===e.type}function J(e){return"{"===e.value&&"Punctuator"===e.type}function Q(e){return"}"===e.value&&"Punctuator"===e.type}function X(e,t){if("ArrowFunctionExpression"===e.type&&1===e.params.length){const r=t.getFirstToken(e.params[0]),n=t.getTokenBefore(r);return z(n)?n:r}return e.id?t.getTokenAfter(e.id,z):t.getFirstToken(e,z)}function Y(e){return"LogicalExpression"===e.type&&("&&"===e.operator||"||"===e.operator)}function Z(e){return"LogicalExpression"===e.type&&"??"===e.operator}e.exports={COMMENTS_IGNORE_PATTERN:/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,LINEBREAKS:h,LINEBREAK_MATCHER:i,SHEBANG_MATCHER:a,STATEMENT_LIST_PARENTS:m,isTokenOnSameLine:(e,t)=>e.loc.end.line===t.loc.start.line,isNullOrUndefined:D,isCallee:w,isES5Constructor:E,getUpperFunction:C,isFunction:S,isLoop:k,isInLoop:function(e){for(let t=e;t&&!S(t);t=t.parent)if(k(t))return!0;return!1},isArrayFromMethod:j,isParenthesised:function(e,t){const r=e.getTokenBefore(t),n=e.getTokenAfter(t);return Boolean(r&&n)&&"("===r.value&&r.range[1]<=t.range[0]&&")"===n.value&&n.range[0]>=t.range[1]},createGlobalLinebreakMatcher:o,equalTokens:function(e,t,r){const n=r.getTokens(e),s=r.getTokens(t);if(n.length!==s.length)return!1;for(let e=0;e<n.length;++e)if(n[e].type!==s[e].type||n[e].value!==s[e].value)return!1;return!0},isArrowToken:M,isClosingBraceToken:Q,isClosingBracketToken:K,isClosingParenToken:G,isColonToken:W,isCommaToken:V,isCommentToken:function(e){return"Line"===e.type||"Block"===e.type||"Shebang"===e.type},isDotToken:$,isQuestionDotToken:U,isKeywordToken:function(e){return"Keyword"===e.type},isNotClosingBraceToken:R(Q),isNotClosingBracketToken:R(K),isNotClosingParenToken:R(G),isNotColonToken:R(W),isNotCommaToken:R(V),isNotDotToken:R($),isNotQuestionDotToken:R(U),isNotOpeningBraceToken:R(J),isNotOpeningBracketToken:R(H),isNotOpeningParenToken:R(z),isNotSemicolonToken:R(q),isOpeningBraceToken:J,isOpeningBracketToken:H,isOpeningParenToken:z,isSemicolonToken:q,isEqToken:function(e){return"="===e.value&&"Punctuator"===e.type},isStringLiteral:e=>"Literal"===e.type&&"string"==typeof e.value||"TemplateLiteral"===e.type,isBreakableStatement:e=>s.test(e.type),getModifyingReferences:e=>e.filter(b),isSurroundedBy:(e,t)=>e[0]===t&&e[e.length-1]===t,isDirectiveComment(e){const t=e.value.trim();return"Line"===e.type&&0===t.indexOf("eslint-")||"Block"===e.type&&(0===t.indexOf("global ")||0===t.indexOf("eslint ")||0===t.indexOf("eslint-"))},getTrailingStatement:t.ast.trailingStatement,getVariableByName(e,t){let r=e;for(;r;){const e=r.set.get(t);if(e)return e;r=r.upper}return null},isDefaultThisBinding(e,t,{capIsConstructor:r=!0}={}){if("PropertyDefinition"===e.parent.type&&e.parent.value===e)return!1;if("StaticBlock"===e.type)return!1;if(r&&E(e)||function(e,t){const r=t.getJSDocComment(e);return!(!r||!f.test(r.value))||t.getCommentsBefore(e).some((e=>f.test(e.value)))}(e,t))return!1;const n=null===e.id;let s=e;for(;s;){const e=s.parent;switch(e.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":s=e;break;case"ReturnStatement":{const t=C(e);if(null===t||!w(t))return!0;s=t.parent;break}case"ArrowFunctionExpression":if(s!==e.body||!w(e))return!0;s=e.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return e.value!==s;case"AssignmentExpression":case"AssignmentPattern":return"MemberExpression"!==e.left.type&&!(r&&n&&"Identifier"===e.left.type&&v(e.left.name));case"VariableDeclarator":return!(r&&n&&e.init===s&&"Identifier"===e.id.type&&v(e.id.name));case"MemberExpression":if(e.object===s&&B(e,null,d)){const t="ChainExpression"===e.parent.type?e.parent:e;return!(w(t)&&t.parent.arguments.length>=1&&!D(t.parent.arguments[0]))}return!0;case"CallExpression":return L(e.callee)?3!==e.arguments.length||e.arguments[0]!==s||D(e.arguments[1]):j(e.callee)?3!==e.arguments.length||e.arguments[1]!==s||D(e.arguments[2]):!N(e.callee)||(2!==e.arguments.length||e.arguments[0]!==s||D(e.arguments[1]));default:return!0}}return!0},getPrecedence(e){switch(e.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(e.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(e.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return 20}},isEmptyBlock:e=>Boolean(e&&"BlockStatement"===e.type&&0===e.body.length),isEmptyFunction:t=>S(t)&&e.exports.isEmptyBlock(t.body),getDirectivePrologue(e){const t=[];if("Program"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type){const r="Program"===e.type?e.body:e.body.body;for(const e of r){if("ExpressionStatement"!==e.type||"Literal"!==e.expression.type)break;t.push(e)}}return t},isDecimalInteger:e=>"Literal"===e.type&&"number"==typeof e.value&&g.test(e.raw),isDecimalIntegerNumericToken:e=>"Numeric"===e.type&&g.test(e.value),getFunctionNameWithKind(e){const t=e.parent,r=[];if("MethodDefinition"!==t.type&&"PropertyDefinition"!==t.type||(t.static&&r.push("static"),t.computed||"PrivateIdentifier"!==t.key.type||r.push("private")),e.async&&r.push("async"),e.generator&&r.push("generator"),"Property"===t.type||"MethodDefinition"===t.type){if("constructor"===t.kind)return"constructor";"get"===t.kind?r.push("getter"):"set"===t.kind?r.push("setter"):r.push("method")}else"PropertyDefinition"===t.type?r.push("method"):("ArrowFunctionExpression"===e.type&&r.push("arrow"),r.push("function"));if("Property"===t.type||"MethodDefinition"===t.type||"PropertyDefinition"===t.type)if(t.computed||"PrivateIdentifier"!==t.key.type){const n=T(t);null!==n?r.push(`'${n}'`):e.id&&r.push(`'${e.id.name}'`)}else r.push("#"+t.key.name);else e.id&&r.push(`'${e.id.name}'`);return r.join(" ")},getFunctionHeadLoc(e,t){const r=e.parent;let n=null,s=null;if("Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type)n=r.loc.start,s=X(e,t).loc.start;else if("ArrowFunctionExpression"===e.type){const r=t.getTokenBefore(e.body,M);n=r.loc.start,s=r.loc.end}else n=e.loc.start,s=X(e,t).loc.start;return{start:Object.assign({},n),end:Object.assign({},s)}},getNextLocation:(e,{line:t,column:r})=>r<e.lines[t-1].length?{line:t,column:r+1}:t<e.lines.length?{line:t+1,column:0}:null,getParenthesisedText(e,t){let r=e.getFirstToken(t),n=e.getLastToken(t);for(;e.getTokenBefore(r)&&"Punctuator"===e.getTokenBefore(r).type&&"("===e.getTokenBefore(r).value&&e.getTokenAfter(n)&&"Punctuator"===e.getTokenAfter(n).type&&")"===e.getTokenAfter(n).value;)r=e.getTokenBefore(r),n=e.getTokenAfter(n);return e.getText().slice(r.range[0],n.range[1])},couldBeError(t){switch(t.type){case"Identifier":case"CallExpression":case"NewExpression":case"MemberExpression":case"TaggedTemplateExpression":case"YieldExpression":case"AwaitExpression":case"ChainExpression":return!0;case"AssignmentExpression":return["=","&&="].includes(t.operator)?e.exports.couldBeError(t.right):!!["||=","??="].includes(t.operator)&&(e.exports.couldBeError(t.left)||e.exports.couldBeError(t.right));case"SequenceExpression":{const r=t.expressions;return 0!==r.length&&e.exports.couldBeError(r[r.length-1])}case"LogicalExpression":return"&&"===t.operator?e.exports.couldBeError(t.right):e.exports.couldBeError(t.left)||e.exports.couldBeError(t.right);case"ConditionalExpression":return e.exports.couldBeError(t.consequent)||e.exports.couldBeError(t.alternate);default:return!1}},isNumericLiteral:e=>"Literal"===e.type&&("number"==typeof e.value||Boolean(e.bigint)),canTokensBeAdjacent(e,t){const n={ecmaVersion:r.latestEcmaVersion,comment:!0,range:!0};let s,o;if("string"==typeof e){let t;try{t=r.tokenize(e,n)}catch{return!1}const o=t.comments;if(s=t[t.length-1],o.length){const e=o[o.length-1];e.range[0]>s.range[0]&&(s=e)}}else s=e;if("Shebang"===s.type)return!1;if("string"==typeof t){let e;try{e=r.tokenize(t,n)}catch{return!1}const s=e.comments;if(o=e[0],s.length){const e=s[0];e.range[0]<o.range[0]&&(o=e)}}else o=t;if("Punctuator"===s.type||"Punctuator"===o.type){if("Punctuator"===s.type&&"Punctuator"===o.type){const e=new Set(["+","++"]),t=new Set(["-","--"]);return!(e.has(s.value)&&e.has(o.value)||t.has(s.value)&&t.has(o.value))}return"Punctuator"!==s.type||"/"!==s.value||!["Block","Line","RegularExpression"].includes(o.type)}return"String"===s.type||"String"===o.type||"Template"===s.type||"Template"===o.type||(!("Numeric"===s.type||"Numeric"!==o.type||!o.value.startsWith("."))||("Block"===s.type||"Block"===o.type||"Line"===o.type||"PrivateIdentifier"===o.type))},getNameLocationInGlobalDirectiveComment(e,t,r){const s=new RegExp(`[\\s,]${n(r)}(?:$|[\\s,:])`,"gu");s.lastIndex=t.value.indexOf("global")+6;const o=s.exec(t.value),i=e.getLocFromIndex(t.range[0]+"/*".length+(o?o.index+1:0));return{start:i,end:{line:i.line,column:i.column+(o?r.length:1)}}},hasOctalOrNonOctalDecimalEscapeSequence:e=>y.test(e),isLogicalExpression:Y,isCoalesceExpression:Z,isMixedLogicalAndCoalesceExpressions:function(e,t){return Y(e)&&Z(t)||Z(e)&&Y(t)},isNullLiteral:A,getStaticStringValue:F,getStaticPropertyName:T,skipChainExpression:P,isSpecificId:_,isSpecificMemberAccess:B,equalLiteralValue:O,isSameReference:function e(t,r,n=!1){if(t.type!==r.type)return"ChainExpression"===t.type?e(t.expression,r,n):"ChainExpression"===r.type&&e(t,r.expression,n);switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===r.name;case"Literal":return O(t,r);case"ChainExpression":return e(t.expression,r.expression,n);case"MemberExpression":if(!n){const s=T(t);if(null!==s)return e(t.object,r.object,n)&&s===T(r)}return t.computed===r.computed&&e(t.object,r.object,n)&&e(t.property,r.property,n);default:return!1}},isLogicalAssignmentOperator:function(e){return x.has(e)},getSwitchCaseColonToken:function(e,t){return e.test?t.getTokenAfter(e.test,W):t.getFirstToken(e,1)}}}(Vp);const zp=Vp.exports;function Gp(e){return"get"===e.kind||"set"===e.kind}function Hp(e,t,r,n){const s=e.parent;return"CallExpression"===s.type&&zp.isSpecificMemberAccess(s.callee,r,n)&&s.arguments[t]===e}var Kp={meta:{type:"suggestion",docs:{description:"enforce getter and setter pairs in objects and classes",recommended:!1,url:"https://eslint.org/docs/rules/accessor-pairs"},schema:[{type:"object",properties:{getWithoutSet:{type:"boolean",default:!1},setWithoutGet:{type:"boolean",default:!0},enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:"Getter is not present in property descriptor.",missingSetterInPropertyDescriptor:"Setter is not present in property descriptor.",missingGetterInObjectLiteral:"Getter is not present for {{ name }}.",missingSetterInObjectLiteral:"Setter is not present for {{ name }}.",missingGetterInClass:"Getter is not present for class {{ name }}.",missingSetterInClass:"Setter is not present for class {{ name }}."}},create(e){const t=e.options[0]||{},r=!0===t.getWithoutSet,n=!1!==t.setWithoutGet,s=!1!==t.enforceForClassMembers,o=e.getSourceCode();function i(t,r){"Property"===t.type?e.report({node:t,messageId:r+"InObjectLiteral",loc:zp.getFunctionHeadLoc(t.value,o),data:{name:zp.getFunctionNameWithKind(t.value)}}):"MethodDefinition"===t.type?e.report({node:t,messageId:r+"InClass",loc:zp.getFunctionHeadLoc(t.value,o),data:{name:zp.getFunctionNameWithKind(t.value)}}):e.report({node:t,messageId:r+"InPropertyDescriptor"})}function a(e,t){for(const r of e)i(r,t)}function c(e){const t=zp.getStaticPropertyName(e);return{key:null!==t?t:o.getTokens(e.key),getters:"get"===e.kind?[e]:[],setters:"set"===e.kind?[e]:[]}}function u(e,t){const r=e.find((e=>{return r=e.key,n=t.key,"string"==typeof r&&"string"==typeof n?r===n:!(!Array.isArray(r)||!Array.isArray(n))&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const n=e[r],s=t[r];if(n.type!==s.type||n.value!==s.value)return!1}return!0}(r,n);var r,n}));return r?(r.getters.push(...t.getters),r.setters.push(...t.setters)):e.push(t),e}function l(e){const t=e.filter(Gp).map(c).reduce(u,[]);for(const{getters:e,setters:s}of t)n&&s.length&&!e.length&&a(s,"missingGetter"),r&&e.length&&!s.length&&a(e,"missingSetter")}const p={};return(n||r)&&(p.ObjectExpression=function(e){!function(e){l(e.properties.filter((e=>"Property"===e.type)))}(e),function(e){if(Hp(e,2,"Object","defineProperty")||Hp(e,2,"Reflect","defineProperty"))return!0;const t=e.parent.parent;return"ObjectExpression"===t.type&&(Hp(t,1,"Object","create")||Hp(t,1,"Object","defineProperties"))}(e)&&function(e){const t=e.properties.filter((e=>"Property"===e.type&&"init"===e.kind&&!e.computed)).map((({key:e})=>e.name)),s=t.includes("get"),o=t.includes("set");n&&o&&!s&&i(e,"missingGetter"),r&&s&&!o&&i(e,"missingSetter")}(e)},s&&(p.ClassBody=function(e){const t=e.body.filter((e=>"MethodDefinition"===e.type));l(t.filter((e=>e.static))),l(t.filter((e=>!e.static)))})),p}};const Jp=Vp.exports;var Qp={meta:{type:"layout",docs:{description:"enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){const t=e.getSourceCode();function r(e){const t=function(e){let t=!1,r=!1,n=0;return e?"consistent"===e?(t=!0,n=Number.POSITIVE_INFINITY):"always"===e||0===e.minItems?n=0:"never"===e?n=Number.POSITIVE_INFINITY:(r=Boolean(e.multiline),n=e.minItems||Number.POSITIVE_INFINITY):(t=!1,r=!0,n=Number.POSITIVE_INFINITY),{consistent:t,multiline:r,minItems:n}}(e);return{ArrayExpression:t,ArrayPattern:t}}function n(n){const s=n.elements,o=r(e.options[0])[n.type],i=t.getFirstToken(n),a=t.getLastToken(n),c=t.getTokenAfter(i,{includeComments:!0}),u=t.getTokenBefore(a,{includeComments:!0}),l=t.getTokenAfter(i),p=t.getTokenBefore(a);s.length>=o.minItems||o.multiline&&s.length>0&&c.loc.start.line!==u.loc.end.line||0===s.length&&"Block"===c.type&&c.loc.start.line!==u.loc.end.line&&c===u||o.consistent&&i.loc.end.line!==l.loc.start.line?(Jp.isTokenOnSameLine(i,l)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingOpeningLinebreak",fix:e=>e.insertTextAfter(r,"\n")})}(n,i),Jp.isTokenOnSameLine(p,a)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingClosingLinebreak",fix:e=>e.insertTextBefore(r,"\n")})}(n,a)):(Jp.isTokenOnSameLine(i,l)||function(r,n){e.report({node:r,loc:n.loc,messageId:"unexpectedOpeningLinebreak",fix(e){const r=t.getTokenAfter(n,{includeComments:!0});return Jp.isCommentToken(r)?null:e.removeRange([n.range[1],r.range[0]])}})}(n,i),Jp.isTokenOnSameLine(p,a)||function(r,n){e.report({node:r,loc:n.loc,messageId:"unexpectedClosingLinebreak",fix(e){const r=t.getTokenBefore(n,{includeComments:!0});return Jp.isCommentToken(r)?null:e.removeRange([r.range[1],n.range[0]])}})}(n,a))}return{ArrayPattern:n,ArrayExpression:n}}};const Xp=Vp.exports;var Yp={meta:{type:"layout",docs:{description:"enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e){const t="always"===e.options[0],r=e.getSourceCode();function n(r){return!!e.options[1]&&e.options[1][r]===!t}const s={spaced:t,singleElementException:n("singleValue"),objectsInArraysException:n("objectsInArrays"),arraysInArraysException:n("arraysInArrays")};function o(e){return e&&("ObjectExpression"===e.type||"ObjectPattern"===e.type)}function i(e){return e&&("ArrayExpression"===e.type||"ArrayPattern"===e.type)}function a(t){if(s.spaced&&0===t.elements.length)return;const n=r.getFirstToken(t),a=r.getFirstToken(t,1),c=t.typeAnnotation?r.getTokenBefore(t.typeAnnotation):r.getLastToken(t),u=r.getTokenBefore(c),l=t.elements[0],p=t.elements[t.elements.length-1],d=s.objectsInArraysException&&o(l)||s.arraysInArraysException&&i(l)||s.singleElementException&&1===t.elements.length?!s.spaced:s.spaced,f=s.objectsInArraysException&&o(p)||s.arraysInArraysException&&i(p)||s.singleElementException&&1===t.elements.length?!s.spaced:s.spaced;Xp.isTokenOnSameLine(n,a)&&(d&&!r.isSpaceBetweenTokens(n,a)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceAfter",data:{tokenValue:r.value},fix:e=>e.insertTextAfter(r," ")})}(t,n),!d&&r.isSpaceBetweenTokens(n,a)&&function(t,n){const s=r.getTokenAfter(n);e.report({node:t,loc:{start:n.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:n.value},fix:e=>e.removeRange([n.range[1],s.range[0]])})}(t,n)),n!==u&&Xp.isTokenOnSameLine(u,c)&&(f&&!r.isSpaceBetweenTokens(u,c)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceBefore",data:{tokenValue:r.value},fix:e=>e.insertTextBefore(r," ")})}(t,c),!f&&r.isSpaceBetweenTokens(u,c)&&function(t,n){const s=r.getTokenBefore(n);e.report({node:t,loc:{start:s.loc.end,end:n.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:n.value},fix:e=>e.removeRange([s.range[1],n.range[0]])})}(t,c))}return{ArrayPattern:a,ArrayExpression:a}}};const Zp=Vp.exports,ed=/^(?:Arrow)?FunctionExpression$/u,td=/^(?:every|filter|find(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort)$/u;function rd(e){return e.reachable}function nd(e){return Zp.isSpecificMemberAccess(e,null,td)}function sd(e){return["from","of","isArray"].includes(e)?"Array.".concat(e):"Array.prototype.".concat(e)}var od={meta:{type:"problem",docs:{description:"enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/rules/array-callback-return"},schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1},checkForEach:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}."}},create(e){const t=e.options[0]||{allowImplicit:!1,checkForEach:!1},r=e.getSourceCode();let n={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function s(s){if(!n.shouldCheck)return;let o=null;if("forEach"===n.arrayMethodName?t.checkForEach&&"ArrowFunctionExpression"===s.type&&s.expression&&(o="expectedNoReturnValue"):"BlockStatement"===s.body.type&&n.codePath.currentSegments.some(rd)&&(o=n.hasReturn?"expectedAtEnd":"expectedInside"),o){const t=Zp.getFunctionNameWithKind(s);e.report({node:s,loc:Zp.getFunctionHeadLoc(s,r),messageId:o,data:{name:t,arrayMethodName:sd(n.arrayMethodName)}})}}return{onCodePathStart(e,t){let r=null;ed.test(t.type)&&(r=function(e){let t=e;for(;t;){const e=t.parent;switch(e.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":t=e;break;case"ReturnStatement":{const r=Zp.getUpperFunction(e);if(null===r||!Zp.isCallee(r))return null;t=r.parent;break}case"CallExpression":return Zp.isArrayFromMethod(e.callee)&&e.arguments.length>=2&&e.arguments[1]===t?"from":nd(e.callee)&&e.arguments.length>=1&&e.arguments[0]===t?Zp.getStaticPropertyName(e.callee):null;default:return null}}return null}(t)),n={arrayMethodName:r,upper:n,codePath:e,hasReturn:!1,shouldCheck:r&&!t.async&&!t.generator,node:t}},onCodePathEnd(){n=n.upper},ReturnStatement(r){if(!n.shouldCheck)return;n.hasReturn=!0;let s=null;"forEach"===n.arrayMethodName?t.checkForEach&&r.argument&&(s="expectedNoReturnValue"):t.allowImplicit||r.argument||(s="expectedReturnValue"),s&&e.report({node:r,messageId:s,data:{name:Zp.getFunctionNameWithKind(n.node),arrayMethodName:sd(n.arrayMethodName)}})},"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}};const id=Vp.exports;var ad={meta:{type:"layout",docs:{description:"enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){const t=e.getSourceCode();function r(e){let t,r=!1,n=!1;const s=e||"always";return s&&"always"!==s&&0!==s.minItems?"never"===s?t=Number.POSITIVE_INFINITY:"consistent"===s?(r=!0,t=Number.POSITIVE_INFINITY):(n=Boolean(s.multiline),t=s.minItems||Number.POSITIVE_INFINITY):t=0,{consistent:r,multiline:n,minItems:t}}function n(n){const s=n.elements,o=function(e){if(e&&(e.ArrayExpression||e.ArrayPattern)){let t,n;return e.ArrayExpression&&(t=r(e.ArrayExpression)),e.ArrayPattern&&(n=r(e.ArrayPattern)),{ArrayExpression:t,ArrayPattern:n}}const t=r(e);return{ArrayExpression:t,ArrayPattern:t}}(e.options[0])[n.type];if(!o)return;let i=!1;o.multiline&&(i=s.filter((e=>null!==e)).some((e=>e.loc.start.line!==e.loc.end.line)));const a=n.elements.map(((e,r)=>{const n=s[r-1];if(0===r||null===e||null===n)return!1;const o=t.getFirstTokenBetween(n,e,id.isCommaToken),i=t.getTokenBefore(o),a=t.getTokenAfter(o);return!id.isTokenOnSameLine(i,a)})).filter((e=>!0===e)).length,c=s.length>=o.minItems||o.multiline&&i||o.consistent&&a>0&&a<n.elements.length;s.forEach(((r,n)=>{const o=s[n-1];if(0===n||null===r||null===o)return;const i=t.getFirstTokenBetween(o,r,id.isCommaToken),a=t.getTokenBefore(i),u=t.getTokenAfter(i);c?id.isTokenOnSameLine(a,u)&&function(r){const n=t.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:n.loc.end,end:r.loc.start},messageId:"missingLineBreak",fix:e=>e.replaceTextRange([n.range[1],r.range[0]],"\n")})}(u):id.isTokenOnSameLine(a,u)||function(r){const n=t.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:n.loc.end,end:r.loc.start},messageId:"unexpectedLineBreak",fix(e){if(id.isCommentToken(n))return null;if(!id.isTokenOnSameLine(n,r))return e.replaceTextRange([n.range[1],r.range[0]]," ");const s=t.getTokenBefore(n,{includeComments:!0});return id.isCommentToken(s)?null:e.replaceTextRange([s.range[1],n.range[0]],"")}})}(u)}))}return{ArrayPattern:n,ArrayExpression:n}}};const cd=Vp.exports;var ud={meta:{type:"suggestion",docs:{description:"require braces around arrow function bodies",recommended:!1,url:"https://eslint.org/docs/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(e){const t=e.options,r="always"===t[0],n=!t[0]||"as-needed"===t[0],s="never"===t[0],o=t[1]&&t[1].requireReturnForObjectLiteral,i=e.getSourceCode();let a=null;function c(e){return!(!e||!e.parent)&&("ForStatement"===e.parent.type&&e.parent.init===e||c(e.parent))}function u(t){const u=t.body;if("BlockStatement"===u.type){const r=u.body;if(1!==r.length&&!s)return;if(n&&o&&"ReturnStatement"===r[0].type&&r[0].argument&&"ObjectExpression"===r[0].argument.type)return;if(s||n&&"ReturnStatement"===r[0].type){let n;n=0===r.length?"unexpectedEmptyBlock":r.length>1?"unexpectedOtherBlock":null===r[0].argument?"unexpectedSingleBlock":cd.isOpeningBraceToken(i.getFirstToken(r[0],{skip:1}))?"unexpectedObjectBlock":"unexpectedSingleBlock",e.report({node:t,loc:u.loc,messageId:n,fix(e){const n=[];if(1!==r.length||"ReturnStatement"!==r[0].type||!r[0].argument||(s=i.getTokenAfter(u))&&"Punctuator"===s.type&&/^[([/`+-]/u.test(s.value))return n;var s;const o=i.getFirstToken(u),l=i.getLastToken(u),p=i.getFirstToken(r[0],1),d=i.getLastToken(r[0]);return i.commentsExistBetween(o,p)||i.commentsExistBetween(d,l)?n.push(e.remove(o),e.remove(l),e.remove(i.getTokenAfter(o))):n.push(e.removeRange([o.range[0],p.range[0]]),e.removeRange([d.range[1],l.range[1]])),(cd.isOpeningBraceToken(p)||"SequenceExpression"===r[0].argument.type||a.hasInOperator&&c(t))&&(cd.isParenthesised(i,r[0].argument)||n.push(e.insertTextBefore(p,"("),e.insertTextAfter(d,")"))),cd.isSemicolonToken(d)&&n.push(e.remove(d)),n}})}}else(r||n&&o&&"ObjectExpression"===u.type)&&e.report({node:t,loc:u.loc,messageId:"expectedBlock",fix(e){const r=[],n=i.getTokenBefore(u,cd.isArrowToken),[s,o]=i.getTokensAfter(n,{count:2}),a=i.getLastToken(t);let c=null;if(cd.isOpeningParenToken(s)&&cd.isOpeningBraceToken(o)){const e=i.getNodeByRangeIndex(o.range[0]);"ObjectExpression"===e.type&&(c=e)}if(c){const t=s,n=o;cd.isTokenOnSameLine(t,n)?r.push(e.replaceText(t,"{return ")):r.push(e.replaceText(t,"{"),e.insertTextBefore(n,"return ")),r.push(e.remove(function(e){let t=e;for(;!cd.isParenthesised(i,t);)t=t.parent;return i.getTokenAfter(t)}(c))),r.push(e.insertTextAfter(a,"}"))}else r.push(e.insertTextBefore(s,"{return ")),r.push(e.insertTextAfter(a,"}"));return r}})}return{"BinaryExpression[operator='in']"(){let e=a;for(;e;)e.hasInOperator=!0,e=e.upper},ArrowFunctionExpression(){a={upper:a,hasInOperator:!1}},"ArrowFunctionExpression:exit"(e){u(e),a=a.upper}}}};const ld=Vp.exports;var pd={meta:{type:"layout",docs:{description:"require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(e){const t="as-needed"===e.options[0],r=t&&e.options[1]&&!0===e.options[1].requireForBlockBody,n=e.getSourceCode();function s(e){return n.getTokenAfter(e.params[0],ld.isClosingParenToken)}return{"ArrowFunctionExpression[params.length=1]"(o){const i=!t||r&&function(e){return"BlockStatement"===e.body.type}(o),a=function(e){const t=n.getTokenBefore(e.params[0]);return t&&ld.isOpeningParenToken(t)&&e.range[0]<=t.range[0]?t:null}(o),c=null!==a,[u]=o.params;i&&!c&&e.report({node:o,messageId:r?"expectedParensBlock":"expectedParens",loc:u.loc,*fix(e){yield e.insertTextBefore(u,"("),yield e.insertTextAfter(u,")")}}),i||!c||"Identifier"!==u.type||u.typeAnnotation||o.returnType||function(e,t){return n.commentsExistBetween(t,s(e))}(o,a)||function(e,t){const r=e.async?1:0;return n.getFirstToken(e,{skip:r})!==t}(o,a)||e.report({node:o,messageId:r?"unexpectedParensInline":"unexpectedParens",loc:u.loc,*fix(e){const t=n.getTokenBefore(a),r=s(o);t&&t.range[1]===a.range[0]&&!ld.canTokensBeAdjacent(t,n.getFirstToken(u))&&(yield e.insertTextBefore(a," ")),yield e.removeRange([a.range[0],u.range[0]]),yield e.removeRange([u.range[1],r.range[1]])}})}}}};const dd=Vp.exports;var fd={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e){const t=Object.assign({},e.options[0]);t.before=!1!==t.before,t.after=!1!==t.after;const r=e.getSourceCode();return{ArrowFunctionExpression:function(n){const s=function(e){const t=r.getTokenBefore(e.body,dd.isArrowToken);return{before:r.getTokenBefore(t),arrow:t,after:r.getTokenAfter(t)}}(n),o=function(e){return{before:e.arrow.range[0]-e.before.range[1],after:e.after.range[0]-e.arrow.range[1]}}(s);t.before?0===o.before&&e.report({node:s.before,messageId:"expectedBefore",fix:e=>e.insertTextBefore(s.arrow," ")}):o.before>0&&e.report({node:s.before,messageId:"unexpectedBefore",fix:e=>e.removeRange([s.before.range[1],s.arrow.range[0]])}),t.after?0===o.after&&e.report({node:s.after,messageId:"expectedAfter",fix:e=>e.insertTextAfter(s.arrow," ")}):o.after>0&&e.report({node:s.after,messageId:"unexpectedAfter",fix:e=>e.removeRange([s.arrow.range[1],s.after.range[0]])})}}}},hd={meta:{type:"suggestion",docs:{description:"enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' used outside of binding context."}},create(e){let t=[];function r(e){t.push(e.range)}function n(){t.pop()}function s(t){const r=t.identifier;e.report({node:r,messageId:"outOfScope",data:{name:r.name}})}return{Program(e){t=[e.range]},BlockStatement:r,"BlockStatement:exit":n,ForStatement:r,"ForStatement:exit":n,ForInStatement:r,"ForInStatement:exit":n,ForOfStatement:r,"ForOfStatement:exit":n,SwitchStatement:r,"SwitchStatement:exit":n,CatchClause:r,"CatchClause:exit":n,StaticBlock:r,"StaticBlock:exit":n,VariableDeclaration:function(r){if("var"!==r.kind)return;const n=t[t.length-1];function o(e){const t=e.identifier.range;return t[0]<n[0]||t[1]>n[1]}const i=e.getDeclaredVariables(r);for(let e=0;e<i.length;++e)i[e].references.filter(o).forEach(s)}}}};const md=Vp.exports;var gd={meta:{type:"layout",docs:{description:"disallow or enforce spaces inside of blocks after opening block and before closing block",recommended:!1,url:"https://eslint.org/docs/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){const t="never"!==e.options[0],r=t?"missing":"extra",n=e.getSourceCode();function s(e,r){return!md.isTokenOnSameLine(e,r)||n.isSpaceBetweenTokens(e,r)===t}function o(o){const i=function(e){return"SwitchStatement"===e.type?e.cases.length>0?n.getTokenBefore(e.cases[0]):n.getLastToken(e,1):"StaticBlock"===e.type?n.getFirstToken(e,{skip:1}):n.getFirstToken(e)}(o),a=n.getLastToken(o),c=n.getTokenAfter(i,{includeComments:!0}),u=n.getTokenBefore(a,{includeComments:!0});if("Punctuator"===i.type&&"{"===i.value&&"Punctuator"===a.type&&"}"===a.value&&c!==a&&(t||"Line"!==c.type)){if(!s(i,c)){let n=i.loc;"extra"===r&&(n={start:i.loc.end,end:c.loc.start}),e.report({node:o,loc:n,messageId:r,data:{location:"after",token:i.value},fix:e=>t?e.insertTextBefore(c," "):e.removeRange([i.range[1],c.range[0]])})}if(!s(u,a)){let n=a.loc;"extra"===r&&(n={start:u.loc.end,end:a.loc.start}),e.report({node:o,loc:n,messageId:r,data:{location:"before",token:a.value},fix:e=>t?e.insertTextAfter(u," "):e.removeRange([u.range[1],a.range[0]])})}}}return{BlockStatement:o,StaticBlock:o,SwitchStatement:o}}};const yd=Vp.exports;var xd={meta:{type:"layout",docs:{description:"enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e){const t=e.options[0]||"1tbs",r=e.options[1]||{},n=e.getSourceCode();function s(e,t){const r=[e.range[1],t.range[0]];return n.text.slice(r[0],r[1]).trim()?null:e=>e.replaceTextRange(r," ")}function o(o,i){const a=n.getTokenBefore(o),c=n.getTokenAfter(o),u=n.getTokenBefore(i),l=r.allowSingleLine&&yd.isTokenOnSameLine(o,i);"allman"===t||yd.isTokenOnSameLine(a,o)||e.report({node:o,messageId:"nextLineOpen",fix:s(a,o)}),"allman"===t&&yd.isTokenOnSameLine(a,o)&&!l&&e.report({node:o,messageId:"sameLineOpen",fix:e=>e.insertTextBefore(o,"\n")}),yd.isTokenOnSameLine(o,c)&&c!==i&&!l&&e.report({node:o,messageId:"blockSameLine",fix:e=>e.insertTextAfter(o,"\n")}),u!==o&&!l&&yd.isTokenOnSameLine(u,i)&&e.report({node:i,messageId:"singleLineClose",fix:e=>e.insertTextBefore(i,"\n")})}function i(r){const o=n.getTokenAfter(r);"1tbs"!==t||yd.isTokenOnSameLine(r,o)||e.report({node:r,messageId:"nextLineClose",fix:s(r,o)}),"1tbs"!==t&&yd.isTokenOnSameLine(r,o)&&e.report({node:r,messageId:"sameLineClose",fix:e=>e.insertTextAfter(r,"\n")})}return{BlockStatement(e){yd.STATEMENT_LIST_PARENTS.has(e.parent.type)||o(n.getFirstToken(e),n.getLastToken(e))},StaticBlock(e){o(n.getFirstToken(e,{skip:1}),n.getLastToken(e))},ClassBody(e){o(n.getFirstToken(e),n.getLastToken(e))},SwitchStatement(e){const t=n.getLastToken(e);o(n.getTokenBefore(e.cases.length?e.cases[0]:t),t)},IfStatement(e){"BlockStatement"===e.consequent.type&&e.alternate&&i(n.getLastToken(e.consequent))},TryStatement(e){i(n.getLastToken(e.block)),e.handler&&e.finalizer&&i(n.getLastToken(e.handler.body))}}}},bd={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(e){const t=e.options[0]||["callback","cb","next"],r=e.getSourceCode();function n(e,t){return e.parent?-1===t.indexOf(e.parent.type)?n(e.parent,t):e.parent:null}function s(e){if("Identifier"===e.type)return!0;if("MemberExpression"===e.type){if("Identifier"===e.object.type)return!0;if("MemberExpression"===e.object.type)return s(e.object)}return!1}function o(e){return s(e.callee)&&t.indexOf(r.getText(e.callee))>-1}function i(e,t){return!(!t||"ExpressionStatement"!==t.type)&&(t.expression===e||("BinaryExpression"===t.expression.type||"LogicalExpression"===t.expression.type)&&t.expression.right===e)}return{CallExpression(t){if(!o(t))return;const r=n(t,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if("ReturnStatement"!==r.type&&"ArrowFunctionExpression"!==r.type){if("BlockStatement"===r.type){const e=r.body[r.body.length-1];if(i(t,e)){const e=r.parent.type;if("FunctionExpression"===e||"FunctionDeclaration"===e||"ArrowFunctionExpression"===e)return}if("ReturnStatement"===e.type&&i(t,r.body[r.body.length-2]))return}n(t,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&e.report({node:t,messageId:"missingReturn"})}}}}},vd={meta:{type:"suggestion",docs:{description:"enforce camelcase naming convention",recommended:!1,url:"https://eslint.org/docs/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImports:{type:"boolean",default:!1},ignoreGlobals:{type:"boolean",default:!1},properties:{enum:["always","never"]},allow:{type:"array",items:[{type:"string"}],minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(e){const t=e.options[0]||{},r="never"===t.properties?"never":"always",n=t.ignoreDestructuring,s=t.ignoreImports,o=t.ignoreGlobals,i=t.allow||[],a=new Set;function c(e){return!function(e){const t=e.replace(/^_+|_+$/gu,"");return t.includes("_")&&t!==t.toUpperCase()}(e)||function(e){return i.some((t=>e===t||e.match(new RegExp(t,"u"))))}(e)}function u(e){const t=e.name,r="AssignmentPattern"===e.parent.type?e.parent:e,n=r.parent;switch(n.type){case"Property":return"ObjectPattern"===n.parent.type&&n.value===r&&!n.computed&&"Identifier"===n.key.type&&n.key.name===t;case"ImportSpecifier":return n.local===e&&n.imported.name===t;default:return!1}}function l(t){a.has(t.range[0])||(a.add(t.range[0]),e.report({node:t,messageId:"PrivateIdentifier"===t.type?"notCamelCasePrivate":"notCamelCase",data:{name:t.name}}))}function p(e){"CallExpression"!==e.parent.type&&"NewExpression"!==e.parent.type&&("AssignmentPattern"===e.parent.type&&e.parent.right===e||n&&u(e)||l(e))}return{Program(){const t=e.getScope();if(!o)for(const e of t.variables)if(!(e.identifiers.length>0||c(e.name)))for(const t of e.references)p(t.identifier);for(const e of t.through){const t=e.identifier;c(t.name)||p(t)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](t){for(const r of e.getDeclaredVariables(t)){if(c(r.name))continue;const e=r.identifiers[0];n&&u(e)||l(e);for(const e of r.references)e.init||p(e.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](e){"never"===r||c(e.name)||l(e)},"MemberExpression[computed!=true] > Identifier.property"(e){"never"!==r&&function(e){const t=e.parent;switch(t.type){case"AssignmentExpression":case"AssignmentPattern":return t.left===e;case"Property":return"ObjectPattern"===t.parent.type&&t.value===e;case"ArrayPattern":case"RestElement":return!0;default:return!1}}(e.parent)&&!c(e.name)&&l(e)},ImportDeclaration(t){for(const r of e.getDeclaredVariables(t)){if(c(r.name))continue;const e=r.identifiers[0];s&&u(e)||l(e);for(const e of r.references)p(e.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](e){c(e.name)||l(e)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](e){c(e.name)||l(e)}}}};const Ed=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/u,Cd=Vp.exports.COMMENTS_IGNORE_PATTERN,Sd=/\s/gu,kd=/^\s*[^:/?#\s]+:\/\/[^?#]/u,Ad={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},Dd={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function wd(e,t){return Object.assign({},Dd,e[t]||e)}var Fd={meta:{type:"suggestion",docs:{description:"enforce or disallow capitalization of the first letter of a comment",recommended:!1,url:"https://eslint.org/docs/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[Ad,{type:"object",properties:{line:Ad,block:Ad},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(e){const t=e.options[0]||"always",r=function(e={}){return{Line:wd(e,"line"),Block:wd(e,"block")}}(e.options[1]),n=e.getSourceCode();function s(e,r){if(Cd.test(e.value))return!0;const s=e.value.replace(/\*/gu,"");if(r.ignorePatternRegExp&&r.ignorePatternRegExp.test(s))return!0;if(r.ignoreInlineComments&&function(e){const t=n.getTokenBefore(e,{includeComments:!0}),r=n.getTokenAfter(e,{includeComments:!0});return Boolean(t&&r&&e.loc.start.line===t.loc.end.line&&e.loc.end.line===r.loc.start.line)}(e))return!0;if(r.ignoreConsecutiveComments&&function(e){const t=n.getTokenBefore(e,{includeComments:!0});return Boolean(t&&-1!==["Block","Line"].indexOf(t.type))}(e))return!0;if(kd.test(s))return!0;const o=s.replace(Sd,"");if(0===o.length)return!0;const i=o[0];if(!Ed.test(i))return!0;const a=i!==i.toLocaleLowerCase(),c=i!==i.toLocaleUpperCase();return("always"!==t||!c)&&("never"!==t||!a)}function o(n){const o=r[n.type];if(!s(n,o)){const r="always"===t?"unexpectedLowercaseComment":"unexpectedUppercaseComment";e.report({node:null,loc:n.loc,messageId:r,fix(e){const r=n.value.match(Ed);return e.replaceTextRange([n.range[0]+r.index+2,n.range[0]+r.index+3],"always"===t?r[0].toLocaleUpperCase():r[0].toLocaleLowerCase())}})}}return function(e){Object.keys(e).forEach((t=>{const r=e[t].ignorePattern;if(r){const n=RegExp(`^\\s*(?:${r})`,"u");e[t].ignorePatternRegExp=n}}))}(r),{Program(){n.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(o)}}}};const Td=Vp.exports;var Pd={meta:{type:"suggestion",docs:{description:"enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(e){const t=Object.assign({},e.options[0]),r=!1!==t.enforceForClassFields,n=new Set(t.exceptMethods||[]),s=[];function o(){s.push(!1)}function i(){return s.pop()}function a(){o()}function c(e){if(function(e){switch(e.type){case"MethodDefinition":return!e.static&&"constructor"!==e.kind;case"PropertyDefinition":return!e.static&&r;default:return!1}}(e)){if(e.computed)return!0;const t="PrivateIdentifier"===e.key.type?"#":"",r="Literal"===e.key.type?Td.getStaticStringValue(e.key):e.key.name||"";return!n.has(t+r)}return!1}function u(t){const r=i();c(t.parent)&&!r&&e.report({node:t,loc:Td.getFunctionHeadLoc(t,e.getSourceCode()),messageId:"missingThis",data:{name:Td.getFunctionNameWithKind(t)}})}function l(){s.length&&(s[s.length-1]=!0)}return{FunctionDeclaration:a,"FunctionDeclaration:exit":u,FunctionExpression:a,"FunctionExpression:exit":u,"PropertyDefinition > *.key:exit":o,"PropertyDefinition:exit":i,StaticBlock:o,"StaticBlock:exit":i,ThisExpression:l,Super:l,...r&&{"PropertyDefinition > ArrowFunctionExpression.value":a,"PropertyDefinition > ArrowFunctionExpression.value:exit":u}}}};const Id=Vp.exports,_d=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});var Bd={meta:{type:"layout",docs:{description:"require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(e){const t=(r=e.options[0],n=e.parserOptions.ecmaVersion,"string"==typeof r?{arrays:r,objects:r,imports:r,exports:r,functions:!n||n<8?"ignore":r}:"object"==typeof r&&null!==r?{arrays:r.arrays||_d.arrays,objects:r.objects||_d.objects,imports:r.imports||_d.imports,exports:r.exports||_d.exports,functions:r.functions||_d.functions}:_d);var r,n;const s=e.getSourceCode();function o(e){function t(e){return e[e.length-1]}switch(e.type){case"ObjectExpression":case"ObjectPattern":return t(e.properties);case"ArrayExpression":case"ArrayPattern":return t(e.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return t(e.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return t(e.params);case"CallExpression":case"NewExpression":return t(e.arguments);default:return null}}function i(e,t){switch(e.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return s.getLastToken(e,1);default:{const e=s.getTokenAfter(t);return Id.isCommaToken(e)?e:s.getLastToken(t)}}}function a(e){const t=o(e);if(!t)return!1;const r=i(e,t);return s.getTokenAfter(r).loc.end.line!==r.loc.end.line}function c(t){const r=o(t);if(!r||"ImportDeclaration"===t.type&&"ImportSpecifier"!==r.type)return;const n=i(t,r);Id.isCommaToken(n)&&e.report({node:r,loc:n.loc,messageId:"unexpected",fix:e=>e.remove(n)})}function u(t){const r=o(t);if(!r||"ImportDeclaration"===t.type&&"ImportSpecifier"!==r.type)return;if(!function(e){return!("RestElement"===e.type||"RestProperty"===e.type||"ExperimentalRestProperty"===e.type)}(r))return void c(t);const n=i(t,r);","!==n.value&&e.report({node:r,loc:{start:n.loc.end,end:Id.getNextLocation(s,n.loc.end)},messageId:"missing",fix:e=>e.insertTextAfter(n,",")})}const l={always:u,"always-multiline":function(e){a(e)?u(e):c(e)},"only-multiline":function(e){a(e)||c(e)},never:c,ignore:()=>{}};return{ObjectExpression:l[t.objects],ObjectPattern:l[t.objects],ArrayExpression:l[t.arrays],ArrayPattern:l[t.arrays],ImportDeclaration:l[t.imports],ExportNamedDeclaration:l[t.exports],FunctionDeclaration:l[t.functions],FunctionExpression:l[t.functions],ArrowFunctionExpression:l[t.functions],CallExpression:l[t.functions],NewExpression:l[t.functions]}}};const Od=Vp.exports;var Ld={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(e){const t=e.getSourceCode(),r=t.tokensAndComments,n={before:!!e.options[0]&&e.options[0].before,after:!e.options[0]||e.options[0].after},s=[];function o(t,r,s){e.report({node:t,fix(e){if(n[r])return"before"===r?e.insertTextBefore(t," "):e.insertTextAfter(t," ");let o,i;return"before"===r?(o=s.range[1],i=t.range[0]):(o=t.range[1],i=s.range[0]),e.replaceTextRange([o,i],"")},messageId:n[r]?"missing":"unexpected",data:{loc:r}})}function i(e){let r=t.getFirstToken(e);e.elements.forEach((e=>{let n;null===e?(n=t.getTokenAfter(r),Od.isCommaToken(n)&&s.push(n)):n=t.getTokenAfter(e),r=n}))}return{"Program:exit"(){r.forEach(((e,i)=>{if(!Od.isCommaToken(e))return;if(e&&"JSXText"===e.type)return;const a=r[i-1],c=r[i+1];var u,l;u={comma:e,left:Od.isCommaToken(a)||s.includes(e)?null:a,right:Od.isCommaToken(c)?null:c},l=e,u.left&&Od.isTokenOnSameLine(u.left,u.comma)&&n.before!==t.isSpaceBetweenTokens(u.left,u.comma)&&o(l,"before",u.left),u.right&&Od.isClosingParenToken(u.right)||u.right&&!n.after&&"Line"===u.right.type||u.right&&Od.isTokenOnSameLine(u.comma,u.right)&&n.after!==t.isSpaceBetweenTokens(u.comma,u.right)&&o(l,"after",u.right)}))},ArrayExpression:i,ArrayPattern:i}}};const jd=Vp.exports;var Nd={meta:{type:"layout",docs:{description:"enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){const t=e.options[0]||"last",r=e.getSourceCode(),n={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(2===e.options.length&&Object.prototype.hasOwnProperty.call(e.options[1],"exceptions")){const t=Object.keys(e.options[1].exceptions);for(let r=0;r<t.length;r++)n[t[r]]=e.options[1].exceptions[t[r]]}function s(e,t,n,s){const o=r.text.slice(t.range[1],n.range[0])+r.text.slice(n.range[1],s.range[0]),i=[t.range[1],s.range[0]];return function(t){return t.replaceTextRange(i,function(e,t){switch(e){case"between":return","+t.replace(jd.LINEBREAK_MATCHER,"");case"first":return t+",";case"last":return","+t;default:return""}}(e,o))}}function o(n,o,i,a){if(jd.isTokenOnSameLine(o,i)&&jd.isTokenOnSameLine(n,o));else if(jd.isTokenOnSameLine(o,i)||jd.isTokenOnSameLine(n,o))"first"!==t||jd.isTokenOnSameLine(o,i)?"last"===t&&jd.isTokenOnSameLine(o,i)&&e.report({node:a,loc:o.loc,messageId:"expectedCommaLast",fix:s(t,n,o,i)}):e.report({node:a,loc:o.loc,messageId:"expectedCommaFirst",fix:s(t,n,o,i)});else{const c=r.getCommentsAfter(o)[0],u=c&&"Block"===c.type&&jd.isTokenOnSameLine(o,c)?t:"between";e.report({node:a,loc:o.loc,messageId:"unexpectedLineBeforeAndAfterComma",fix:s(u,n,o,i)})}}function i(e,t){const n=e[t],s="ArrayExpression"===e.type||"ArrayPattern"===e.type;if(n.length>1||s){let t=r.getFirstToken(e);if(n.forEach((e=>{const n=e?r.getTokenBefore(e):t,s=e?r.getFirstToken(e):r.getTokenAfter(n),i=e||s;if(jd.isCommaToken(n)&&o(t,n,s,i),e){const n=r.getTokenAfter(e,jd.isNotClosingParenToken);t=n?r.getTokenBefore(n):r.ast.tokens[r.ast.tokens.length-1]}else t=s})),s){const t=r.getLastToken(e),n=r.getTokenBefore(t);jd.isCommaToken(n)&&o(r.getTokenBefore(n),n,t,t)}}}const a={};return n.VariableDeclaration||(a.VariableDeclaration=function(e){i(e,"declarations")}),n.ObjectExpression||(a.ObjectExpression=function(e){i(e,"properties")}),n.ObjectPattern||(a.ObjectPattern=function(e){i(e,"properties")}),n.ArrayExpression||(a.ArrayExpression=function(e){i(e,"elements")}),n.ArrayPattern||(a.ArrayPattern=function(e){i(e,"elements")}),n.FunctionDeclaration||(a.FunctionDeclaration=function(e){i(e,"params")}),n.FunctionExpression||(a.FunctionExpression=function(e){i(e,"params")}),n.ArrowFunctionExpression||(a.ArrowFunctionExpression=function(e){i(e,"params")}),n.CallExpression||(a.CallExpression=function(e){i(e,"arguments")}),n.ImportDeclaration||(a.ImportDeclaration=function(e){i(e,"specifiers")}),n.NewExpression||(a.NewExpression=function(e){i(e,"arguments")}),a}};var Rd={upperCaseFirst:function(e){return e.length<=1?e.toUpperCase():e[0].toUpperCase()+e.slice(1)}};const Md=Vp.exports,{upperCaseFirst:Vd}=Rd;var $d={meta:{type:"suggestion",docs:{description:"enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=20;"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"maximum")||Object.prototype.hasOwnProperty.call(t,"max"))?r=t.maximum||t.max:"number"==typeof t&&(r=t);const n=[];function s(){n[n.length-1]++}return{onCodePathStart(){n.push(1)},CatchClause:s,ConditionalExpression:s,LogicalExpression:s,ForStatement:s,ForInStatement:s,ForOfStatement:s,IfStatement:s,WhileStatement:s,DoWhileStatement:s,"SwitchCase[test]":s,AssignmentExpression(e){Md.isLogicalAssignmentOperator(e.operator)&&s()},onCodePathEnd(t,s){const o=n.pop();if(("function"===t.origin||"class-field-initializer"===t.origin||"class-static-block"===t.origin)&&o>r){let n;n="class-field-initializer"===t.origin?"class field initializer":"class-static-block"===t.origin?"class static block":Md.getFunctionNameWithKind(s),e.report({node:s,messageId:"complex",data:{name:Vd(n),complexity:o,max:r}})}}}}};const Ud=Vp.exports;var qd={meta:{type:"layout",docs:{description:"enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){const t=e.getSourceCode(),r="always"===e.options[0],n=!e.options[1]||e.options[1].enforceForClassMembers;function s(n){return function(s){if(!s.computed)return;const o=s[n],i=t.getTokenBefore(o,Ud.isOpeningBracketToken),a=t.getTokenAfter(i,{includeComments:!0}),c=t.getTokenAfter(o,Ud.isClosingBracketToken),u=t.getTokenBefore(c,{includeComments:!0});Ud.isTokenOnSameLine(i,a)&&(r?!t.isSpaceBetweenTokens(i,a)&&Ud.isTokenOnSameLine(i,a)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceAfter",data:{tokenValue:r.value},fix:e=>e.insertTextAfter(r," ")})}(s,i):t.isSpaceBetweenTokens(i,a)&&function(t,r,n){e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:r.value},fix:e=>e.removeRange([r.range[1],n.range[0]])})}(s,i,a)),Ud.isTokenOnSameLine(u,c)&&(r?!t.isSpaceBetweenTokens(u,c)&&Ud.isTokenOnSameLine(u,c)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceBefore",data:{tokenValue:r.value},fix:e=>e.insertTextBefore(r," ")})}(s,c):t.isSpaceBetweenTokens(u,c)&&function(t,r,n){e.report({node:t,loc:{start:n.loc.end,end:r.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:r.value},fix:e=>e.removeRange([n.range[1],r.range[0]])})}(s,c,u))}}const o={Property:s("key"),MemberExpression:s("property")};return n&&(o.MethodDefinition=o.PropertyDefinition=o.Property),o}};const Wd=Vp.exports,{upperCaseFirst:zd}=Rd;function Gd(e){return!e.reachable}var Hd={meta:{type:"suggestion",docs:{description:"require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(e){const t=!0===(e.options[0]||{}).treatUndefinedAsUnspecified;let r=null;function n(t){let n,s;!r.hasReturnValue||r.codePath.currentSegments.every(Gd)||Wd.isES5Constructor(t)||function(e){return"FunctionExpression"===e.type&&e.parent&&"MethodDefinition"===e.parent.type&&"constructor"===e.parent.kind}(t)||("Program"===t.type?(n={line:1,column:0},s="program"):n="ArrowFunctionExpression"===t.type?e.getSourceCode().getTokenBefore(t.body,Wd.isArrowToken).loc:"MethodDefinition"===t.parent.type||"Property"===t.parent.type&&t.parent.method?t.parent.key.loc:(t.id||e.getSourceCode().getFirstToken(t)).loc,s||(s=Wd.getFunctionNameWithKind(t)),e.report({node:t,loc:n,messageId:"missingReturn",data:{name:s}}))}return{onCodePathStart(e,t){r={upper:r,codePath:e,hasReturn:!1,hasReturnValue:!1,messageId:"",node:t}},onCodePathEnd(){r=r.upper},ReturnStatement(n){const s=n.argument;let o=Boolean(s);t&&o&&(o=!Wd.isSpecificId(s,"undefined")&&"void"!==s.operator),r.hasReturn?r.hasReturnValue!==o&&e.report({node:n,messageId:r.messageId,data:r.data}):(r.hasReturn=!0,r.hasReturnValue=o,r.messageId=o?"missingReturnValue":"unexpectedReturnValue",r.data={name:"Program"===r.node.type?"Program":zd(Wd.getFunctionNameWithKind(r.node))})},"Program:exit":n,"FunctionDeclaration:exit":n,"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n}}},Kd={meta:{type:"suggestion",docs:{description:"enforce consistent naming when capturing the current execution context",recommended:!1,url:"https://eslint.org/docs/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(e){let t=[];function r(t,r){e.report({node:t,messageId:"aliasNotAssignedToThis",data:{name:r}})}function n(n,s,o){const i="ThisExpression"===o.type;-1!==t.indexOf(s)?(!i||n.operator&&"="!==n.operator)&&r(n,s):i&&e.report({node:n,messageId:"unexpectedAlias",data:{name:s}})}function s(){const n=e.getScope();t.forEach((e=>{!function(e,t){const n=t.set.get(e);n&&(n.defs.some((e=>"VariableDeclarator"===e.node.type&&null!==e.node.init))||n.references.some((e=>{const r=e.writeExpr;return e.from===t&&r&&"ThisExpression"===r.type&&"="===r.parent.operator}))||n.defs.map((e=>e.node)).forEach((t=>{r(t,e)})))}(e,n)}))}return 0===e.options.length?t.push("that"):t=e.options,{"Program:exit":s,"FunctionExpression:exit":s,"FunctionDeclaration:exit":s,VariableDeclarator(e){const t=e.id,r="ArrayPattern"===t.type||"ObjectPattern"===t.type;null===e.init||r||n(e,t.name,e.init)},AssignmentExpression(e){"Identifier"===e.left.type&&n(e,e.left.name,e.right)}}}};function Jd(e){return e.reachable}function Qd(e){if(!e)return!1;switch(e.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return"undefined"!==e.name;case"AssignmentExpression":return["=","&&="].includes(e.operator)?Qd(e.right):!!["||=","??="].includes(e.operator)&&(Qd(e.left)||Qd(e.right));case"LogicalExpression":return"&&"===e.operator?Qd(e.right):Qd(e.left)||Qd(e.right);case"ConditionalExpression":return Qd(e.alternate)||Qd(e.consequent);case"SequenceExpression":return Qd(e.expressions[e.expressions.length-1]);default:return!1}}var Xd={meta:{type:"problem",docs:{description:"require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor.",unexpected:"Unexpected 'super()'."}},create(e){let t=null,r=Object.create(null);function n(e){return e.reachable&&r[e.id].calledInSomePaths}function s(e){return!(1!==e.nextSegments.length||!e.nextSegments[0].isLoopedPrevSegment(e))||e.reachable&&r[e.id].calledInEveryPaths}return{onCodePathStart(e,r){if(function(e){return"FunctionExpression"===e.type&&"MethodDefinition"===e.parent.type&&"constructor"===e.parent.kind}(r)){const n=r.parent.parent.parent.superClass;t={upper:t,isConstructor:!0,hasExtends:Boolean(n),superIsConstructor:Qd(n),codePath:e}}else t={upper:t,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:e}},onCodePathEnd(r,o){const i=t.hasExtends;if(t=t.upper,!i)return;const a=r.returnedSegments,c=a.every(s),u=a.some(n);c||e.report({messageId:u?"missingSome":"missingAll",node:o.parent})},onCodePathSegmentStart(e){if(!(t&&t.isConstructor&&t.hasExtends))return;const o=r[e.id]={calledInSomePaths:!1,calledInEveryPaths:!1,validNodes:[]},i=e.prevSegments;i.length>0&&(o.calledInSomePaths=i.some(n),o.calledInEveryPaths=i.every(s))},onCodePathSegmentLoop(o,i){if(!(t&&t.isConstructor&&t.hasExtends))return;const a=i.prevSegments.length>=2;t.codePath.traverseSegments({first:i,last:o},(t=>{const o=r[t.id],i=t.prevSegments;if(o.calledInSomePaths=i.some(n),o.calledInEveryPaths=i.every(s),o.calledInSomePaths||a){const t=o.validNodes;o.validNodes=[];for(let r=0;r<t.length;++r){const n=t[r];e.report({messageId:"duplicate",node:n})}}}))},"CallExpression:exit"(n){if(t&&t.isConstructor&&"Super"===n.callee.type)if(t.hasExtends){const s=t.codePath.currentSegments;let o=!1,i=null;for(let e=0;e<s.length;++e){const t=s[e];t.reachable&&(i=r[t.id],o=o||i.calledInSomePaths,i.calledInSomePaths=i.calledInEveryPaths=!0)}i&&(o?e.report({messageId:"duplicate",node:n}):t.superIsConstructor?i.validNodes.push(n):e.report({messageId:"badSuper",node:n}))}else t.codePath.currentSegments.some(Jd)&&e.report({messageId:"unexpected",node:n})},ReturnStatement(e){if(!(t&&t.isConstructor&&t.hasExtends))return;if(!e.argument)return;const n=t.codePath.currentSegments;for(let e=0;e<n.length;++e){const t=n[e];if(t.reachable){const e=r[t.id];e.calledInSomePaths=e.calledInEveryPaths=!0}}},"Program:exit"(){r=Object.create(null)}}}};const Yd=Vp.exports;var Zd={meta:{type:"suggestion",docs:{description:"enforce consistent brace style for all control statements",recommended:!1,url:"https://eslint.org/docs/rules/curly"},schema:{anyOf:[{type:"array",items:[{enum:["all"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["multi","multi-line","multi-or-nest"]},{enum:["consistent"]}],minItems:0,maxItems:2}]},fixable:"code",messages:{missingCurlyAfter:"Expected { after '{{name}}'.",missingCurlyAfterCondition:"Expected { after '{{name}}' condition.",unexpectedCurlyAfter:"Unnecessary { after '{{name}}'.",unexpectedCurlyAfterCondition:"Unnecessary { after '{{name}}' condition."}},create(e){const t="multi"===e.options[0],r="multi-line"===e.options[0],n="multi-or-nest"===e.options[0],s="consistent"===e.options[1],o=e.getSourceCode();function i(e){if("EmptyStatement"===e.type)return!0;const t=o.getFirstToken(e),r=o.getLastToken(e),n=Yd.isSemicolonToken(r)?o.getTokenBefore(r):r;return t.loc.start.line===n.loc.end.line}function a(e){switch(e.type){case"IfStatement":return!e.alternate||a(e.alternate);case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return a(e.body);default:return!1}}function c(e){const t=e.body[0];return function(e){return"VariableDeclaration"===e.type?"const"===e.kind||"let"===e.kind:"FunctionDeclaration"===e.type||"ClassDeclaration"===e.type}(t)||a(t)&&function(e){const t=o.getTokenAfter(e);return Boolean(t)&&"else"===(r=t).value&&"Keyword"===r.type;var r}(e)}function u(s,a,u,l){const p="BlockStatement"===a.type;let d=null;if(p&&(1!==a.body.length||c(a)))d=!0;else if(t)d=!1;else if(r)(function(e){const t=o.getTokenBefore(e),r=o.getLastToken(e),n=Yd.isSemicolonToken(r)?o.getTokenBefore(r):r;return t.loc.start.line===n.loc.end.line})(a)||(d=!0);else if(n)if(p){const e=a.body[0],t=o.getCommentsBefore(e);d=!i(e)||t.length>0}else d=!i(a);else d=!0;return{actual:p,expected:d,check(){null!==this.expected&&this.expected!==this.actual&&(this.expected?e.report({node:s,loc:a.loc,messageId:l&&l.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:u},fix:e=>e.replaceText(a,`{${o.getText(a)}}`)}):e.report({node:s,loc:a.loc,messageId:l&&l.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:u},fix(e){const t="DoWhileStatement"===s.type&&o.getTokenBefore(a).range[1]===a.range[0]&&!Yd.canTokensBeAdjacent("do",o.getFirstToken(a,{skip:1})),r=o.getFirstToken(a),n=o.getLastToken(a),i=o.getTokenBefore(n);if(function(e){const t=o.getTokenBefore(e),r=o.getTokenAfter(e),n=o.getNodeByRangeIndex(t.range[0]);return!(Yd.isSemicolonToken(t)||!r||"BlockStatement"===n.type&&"FunctionExpression"!==n.parent.type&&"ArrowFunctionExpression"!==n.parent.type||t.loc.end.line!==r.loc.start.line&&!/^[([/`+-]/u.test(r.value)&&("Punctuator"!==t.type||"++"!==t.value&&"--"!==t.value))}(n))return null;const c=o.getText().slice(r.range[1],i.range[0])+o.getText(i)+o.getText().slice(i.range[1],n.range[0]);return e.replaceText(a,(t?" ":"")+c)}}))}}}return{IfStatement(e){const t=e.parent;"IfStatement"===t.type&&t.alternate===e||function(e){const t=[];for(let r=e;r;r=r.alternate)if(t.push(u(r,r.consequent,"if",{condition:!0})),r.alternate&&"IfStatement"!==r.alternate.type){t.push(u(r,r.alternate,"else"));break}if(s){const e=t.some((e=>null!==e.expected?e.expected:e.actual));t.forEach((t=>{t.expected=e}))}return t}(e).forEach((e=>{e.check()}))},WhileStatement(e){u(e,e.body,"while",{condition:!0}).check()},DoWhileStatement(e){u(e,e.body,"do").check()},ForStatement(e){u(e,e.body,"for",{condition:!0}).check()},ForInStatement(e){u(e,e.body,"for-in").check()},ForOfStatement(e){u(e,e.body,"for-of").check()}}}};const ef=/^no default$/iu;var tf={meta:{type:"suggestion",docs:{description:"require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){const t=e.options[0]||{},r=t.commentPattern?new RegExp(t.commentPattern,"u"):ef,n=e.getSourceCode();function s(e){return e[e.length-1]}return{SwitchStatement(t){if(!t.cases.length)return;if(!t.cases.some((e=>null===e.test))){let o;const i=s(t.cases),a=n.getCommentsAfter(i);a.length&&(o=s(a)),o&&r.test(o.value.trim())||e.report({node:t,messageId:"missingDefaultCase"})}}}}},rf={meta:{type:"suggestion",docs:{description:"enforce default clauses in switch statements to be last",recommended:!1,url:"https://eslint.org/docs/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create:e=>({SwitchStatement(t){const r=t.cases,n=r.findIndex((e=>null===e.test));if(-1!==n&&n!==r.length-1){const t=r[n];e.report({node:t,messageId:"notLast"})}}})},nf={meta:{type:"suggestion",docs:{description:"enforce default parameters to be last",recommended:!1,url:"https://eslint.org/docs/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(e){function t(t){let r=!1;for(let n=t.params.length-1;n>=0;n-=1){const s=t.params[n];"AssignmentPattern"===s.type||"RestElement"===s.type?r&&"AssignmentPattern"===s.type&&e.report({node:s,messageId:"shouldBeLast"}):r=!0}}return{FunctionDeclaration:t,FunctionExpression:t,ArrowFunctionExpression:t}}};const sf=Vp.exports;var of={meta:{type:"layout",docs:{description:"enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){const t=e.options[0],r="object"===t||!t,n=e.getSourceCode();return{MemberExpression:function(t){t.computed||function(t){const s=t.property,o=n.getTokenBefore(s);if(r){const r=n.getTokenBefore(o);sf.isTokenOnSameLine(r,o)||e.report({node:t,loc:o.loc,messageId:"expectedDotAfterObject",*fix(e){o.value.startsWith(".")&&sf.isDecimalIntegerNumericToken(r)?yield e.insertTextAfter(r," "+o.value):yield e.insertTextAfter(r,o.value),yield e.remove(o)}})}else sf.isTokenOnSameLine(o,s)||e.report({node:t,loc:o.loc,messageId:"expectedDotBeforeProperty",*fix(e){yield e.remove(o),yield e.insertTextBefore(s,o.value)}})}(t)}}}},af=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"];const cf=Vp.exports,uf=af,lf=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,pf=new Set(["string","boolean"]);var df={meta:{type:"suggestion",docs:{description:"enforce dot notation whenever possible",recommended:!1,url:"https://eslint.org/docs/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean",default:!0},allowPattern:{type:"string",default:""}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(e){const t=e.options[0]||{},r=void 0===t.allowKeywords||t.allowKeywords,n=e.getSourceCode();let s;function o(t,o){if(lf.test(o)&&(r||-1===uf.indexOf(String(o)))&&(!s||!s.test(o))){const r="Literal"===t.property.type?JSON.stringify(o):`\`${o}\``;e.report({node:t.property,messageId:"useDot",data:{key:r},*fix(e){const r=n.getTokenAfter(t.object,cf.isOpeningBracketToken),s=n.getLastToken(t),i=n.getTokenAfter(t);n.commentsExistBetween(r,s)||(t.optional||(yield e.insertTextBefore(r,cf.isDecimalInteger(t.object)?" .":".")),yield e.replaceTextRange([r.range[0],s.range[1]],o),i&&s.range[1]===i.range[0]&&!cf.canTokensBeAdjacent(String(o),i)&&(yield e.insertTextAfter(t," ")))}})}}return t.allowPattern&&(s=new RegExp(t.allowPattern,"u")),{MemberExpression(t){t.computed&&"Literal"===t.property.type&&(pf.has(typeof t.property.value)||cf.isNullLiteral(t.property))&&o(t,t.property.value),t.computed&&"TemplateLiteral"===t.property.type&&0===t.property.expressions.length&&o(t,t.property.quasis[0].value.cooked),r||t.computed||"Identifier"!==t.property.type||-1===uf.indexOf(String(t.property.name))||e.report({node:t.property,messageId:"useBrackets",data:{key:t.property.name},*fix(e){const r=n.getTokenBefore(t.property);("Identifier"!==t.object.type||"let"!==t.object.name||t.optional)&&(n.commentsExistBetween(r,t.property)||(t.optional||(yield e.remove(r)),yield e.replaceText(t.property,`["${t.property.name}"]`)))}})}}}},ff={meta:{type:"layout",docs:{description:"require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create:e=>({Program:function(t){const r=e.getSourceCode(),n=r.getText(),s={column:r.lines[r.lines.length-1].length,line:r.lines.length},o=n.endsWith("\n");if(!n.length)return;let i=e.options[0]||"always",a=!1;if("unix"===i&&(i="always"),"windows"===i&&(i="always",a=!0),"always"!==i||o){if("never"===i&&o){const n=r.lines[r.lines.length-2];e.report({node:t,loc:{start:{line:r.lines.length-1,column:n.length},end:{line:r.lines.length,column:0}},messageId:"unexpected",fix(e){const t=/(?:\r?\n)+$/u.exec(r.text).index,n=r.text.length;return e.replaceTextRange([t,n],"")}})}}else e.report({node:t,loc:s,messageId:"missing",fix:e=>e.insertTextAfterRange([0,n.length],a?"\r\n":"\n")})}})};const hf=Vp.exports;var mf={meta:{type:"suggestion",docs:{description:"require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'."}},create(e){const t=e.options[0]||"always",r=e.options[1]||{},n=e.getSourceCode(),s="always"===t?r.null||"always":"ignore",o="always"===s,i="never"===s;function a(e){return"UnaryExpression"===e.type&&"typeof"===e.operator}function c(e){return a(e.left)||a(e.right)}function u(e){return"Literal"===e.left.type&&"Literal"===e.right.type&&typeof e.left.value==typeof e.right.value}function l(t,r){const s=n.getFirstTokenBetween(t.left,t.right,(e=>e.value===t.operator));e.report({node:t,loc:s.loc,messageId:"unexpected",data:{expectedOperator:r,actualOperator:t.operator},fix:e=>c(t)||u(t)?e.replaceText(s,r):null})}return{BinaryExpression(e){const r=function(e){return hf.isNullLiteral(e.right)||hf.isNullLiteral(e.left)}(e);"=="===e.operator||"!="===e.operator?"smart"===t&&(c(e)||u(e)||r)||!o&&r||l(e,e.operator+"="):i&&r&&l(e,e.operator.slice(0,-1))}}}},gf={meta:{type:"problem",docs:{description:'enforce "for" loop update clause moving the counter in the right direction.',recommended:!0,url:"https://eslint.org/docs/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){function t(t){e.report({node:t,messageId:"incorrectDirection"})}function r(e,t){if("UnaryExpression"===e.right.type){if("-"===e.right.operator)return-t}else if("Identifier"===e.right.type)return 0;return t}return{ForStatement(e){if(e.test&&"BinaryExpression"===e.test.type&&"Identifier"===e.test.left.type&&e.update){const n=e.test.left.name,s=e.test.operator,o=e.update;let i;if("<"===s||"<="===s)i=-1;else{if(">"!==s&&">="!==s)return;i=1}"UpdateExpression"===o.type?function(e,t){if("Identifier"===e.argument.type&&e.argument.name===t){if("++"===e.operator)return 1;if("--"===e.operator)return-1}return 0}(o,n)===i&&t(e):"AssignmentExpression"===o.type&&function(e,t){if(e.left.name===t){if("+="===e.operator)return r(e,1);if("-="===e.operator)return r(e,-1)}return 0}(o,n)===i&&t(e)}}}}};const yf=Vp.exports;var xf={meta:{type:"layout",docs:{description:"require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(e){const t="always"!==e.options[0],r=!t&&e.options[1]&&e.options[1].allowNewlines,n=e.getSourceCode(),s=n.getText();function o(o,i,a){const c=s.slice(i.range[1],a.range[0]).replace(/\/\*.*?\*\//gu,""),u=/\s/u.test(c),l=u&&yf.LINEBREAK_MATCHER.test(c);t&&u?e.report({node:o,loc:{start:i.loc.end,end:{line:a.loc.start.line,column:a.loc.start.column-1}},messageId:"unexpectedWhitespace",fix:e=>n.commentsExistBetween(i,a)?null:o.optional?e.replaceTextRange([i.range[1],a.range[0]],"?."):l?null:e.removeRange([i.range[1],a.range[0]])}):t||u?t||r||!l||e.report({node:o,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpectedNewline",fix(e){if(!o.optional)return null;if(n.commentsExistBetween(i,a))return null;const t=[i.range[1],a.range[0]],r=n.getTokenAfter(i);return r.range[0]===i.range[1]?e.replaceTextRange(t,"?. "):r.range[1]===a.range[0]?e.replaceTextRange(t," ?."):e.replaceTextRange(t," ?. ")}}):e.report({node:o,loc:{start:{line:i.loc.end.line,column:i.loc.end.column-1},end:a.loc.start},messageId:"missing",fix:e=>o.optional?null:e.insertTextBefore(a," ")})}return{"CallExpression, NewExpression"(e){const t=n.getLastToken(e),r=n.getLastToken(e.callee),s=n.getFirstTokenBetween(r,t,yf.isOpeningParenToken),i=s&&n.getTokenBefore(s,yf.isNotQuestionDotToken);s&&s.range[1]<e.range[1]&&o(e,i,s)},ImportExpression(e){const t=n.getFirstToken(e);o(e,t,n.getTokenAfter(t))}}}};const bf=Vp.exports,vf=$p;function Ef(e,t){return t>=6?vf.keyword.isIdentifierES6(e):vf.keyword.isIdentifierES5(e)}const Cf={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};var Sf={meta:{type:"suggestion",docs:{description:"require function names to match the name of the variable or property to which they are assigned",recommended:!1,url:"https://eslint.org/docs/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[{enum:["always","never"]},Cf]},{type:"array",additionalItems:!1,items:[Cf]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(e){const t=("object"==typeof e.options[0]?e.options[0]:e.options[1])||{},r="string"==typeof e.options[0]?e.options[0]:"always",n=t.considerPropertyDescriptor,s=t.includeCommonJSModuleExports,o=e.parserOptions&&e.parserOptions.ecmaVersion?e.parserOptions.ecmaVersion:5;function i(e,t,r){return!!r&&("CallExpression"===r.type&&bf.isSpecificMemberAccess(r.callee,e,t))}function a(e,t){return"always"===r&&e!==t||"never"===r&&e===t}function c(t,n,s,o){let i;i="always"===r&&o?"matchProperty":"always"===r?"matchVariable":o?"notMatchProperty":"notMatchVariable",e.report({node:t,messageId:i,data:{name:n,funcName:s}})}function u(e){return"Literal"===e.type&&"string"==typeof e.value}return{VariableDeclarator(e){e.init&&"FunctionExpression"===e.init.type&&"Identifier"===e.id.type&&e.init.id&&a(e.id.name,e.init.id.name)&&c(e,e.id.name,e.init.id.name,!1)},AssignmentExpression(e){if("FunctionExpression"!==e.right.type||e.left.computed&&"Literal"!==e.left.property.type||!s&&function(e){if("MemberExpression"===e.type&&"Identifier"===e.object.type&&"module"===e.object.name){if("Identifier"===e.property.type&&"exports"===e.property.name)return!0;if("Literal"===e.property.type&&"exports"===e.property.value)return!0}return!1}(e.left)||"Identifier"!==e.left.type&&"MemberExpression"!==e.left.type)return;const t="MemberExpression"===e.left.type,r=t?bf.getStaticPropertyName(e.left):e.left.name;e.right.id&&r&&Ef(r)&&a(r,e.right.id.name)&&c(e,r,e.right.id.name,t)},"Property, PropertyDefinition[value]"(e){if("FunctionExpression"===e.value.type&&e.value.id)if("Identifier"!==e.key.type||e.computed)u(e.key)&&Ef(e.key.value,o)&&a(e.key.value,e.value.id.name)&&c(e,e.key.value,e.value.id.name,!0);else{const t=e.value.id.name;let r=e.key.name;if(n&&"value"===r&&"ObjectExpression"===e.parent.type)if(i("Object","defineProperty",e.parent.parent)||i("Reflect","defineProperty",e.parent.parent)){const r=e.parent.parent.arguments[1];u(r)&&a(r.value,t)&&c(e,r.value,t,!0)}else i("Object","defineProperties",e.parent.parent.parent.parent)||i("Object","create",e.parent.parent.parent.parent)?(r=e.parent.parent.key.name,!e.parent.parent.computed&&a(r,t)&&c(e,r,t,!0)):a(r,t)&&c(e,r,t,!0);else a(r,t)&&c(e,r,t,!0)}}}}};const kf=Vp.exports;var Af={meta:{type:"suggestion",docs:{description:"require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(e){const t=e.getSourceCode();function r(e){const t=e.parent;return"MethodDefinition"===t.type||"Property"===t.type&&(t.method||"get"===t.kind||"set"===t.kind)}function n(r){e.report({node:r,messageId:"unnamed",loc:kf.getFunctionHeadLoc(r,t),data:{name:kf.getFunctionNameWithKind(r)}})}function s(s){const o=e.getDeclaredVariables(s)[0];if((i=o)&&"FunctionName"===i.defs[0].type&&o.references.length>0)return;var i;const a=Boolean(s.id&&s.id.name),c=function(t){return t.generator&&e.options.length>1&&e.options[1].generators?e.options[1].generators:e.options[0]||"always"}(s);"never"===c?a&&"FunctionDeclaration"!==s.type&&function(r){e.report({node:r,messageId:"named",loc:kf.getFunctionHeadLoc(r,t),data:{name:kf.getFunctionNameWithKind(r)}})}(s):"as-needed"===c?a||function(e){const t=e.parent;return r(e)||"VariableDeclarator"===t.type&&"Identifier"===t.id.type&&t.init===e||"Property"===t.type&&t.value===e||"PropertyDefinition"===t.type&&t.value===e||"AssignmentExpression"===t.type&&"Identifier"===t.left.type&&t.right===e||"AssignmentPattern"===t.type&&"Identifier"===t.left.type&&t.right===e}(s)||n(s):a||r(s)||n(s)}return{"FunctionExpression:exit":s,"ExportDefaultDeclaration > FunctionDeclaration":s}}},Df={meta:{type:"suggestion",docs:{description:"enforce the consistent use of either `function` declarations or expressions",recommended:!1,url:"https://eslint.org/docs/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(e){const t=e.options[0],r=e.options[1]&&e.options[1].allowArrowFunctions,n="declaration"===t,s=[],o={FunctionDeclaration(t){s.push(!1),n||"ExportDefaultDeclaration"===t.parent.type||e.report({node:t,messageId:"expression"})},"FunctionDeclaration:exit"(){s.pop()},FunctionExpression(t){s.push(!1),n&&"VariableDeclarator"===t.parent.type&&e.report({node:t.parent,messageId:"declaration"})},"FunctionExpression:exit"(){s.pop()},ThisExpression(){s.length>0&&(s[s.length-1]=!0)}};return r||(o.ArrowFunctionExpression=function(){s.push(!1)},o["ArrowFunctionExpression:exit"]=function(t){const r=s.pop();n&&!r&&"VariableDeclarator"===t.parent.type&&e.report({node:t.parent,messageId:"declaration"})}),o}},wf={meta:{type:"layout",docs:{description:"enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(e){const t=e.getSourceCode(),r={messageId:"unexpectedLineBreak",check:(e,t)=>e.loc.end.line!==t.loc.start.line,createFix:(e,t)=>r=>r.replaceTextRange([t.range[1],e.range[0]]," ")},n={messageId:"missingLineBreak",check:(e,t)=>e.loc.end.line===t.loc.start.line,createFix:(e,t)=>r=>r.replaceTextRange([t.range[1],e.range[0]],"\n")};function s(r,n){for(let s=1;s<r.arguments.length;s++){const o=t.getLastToken(r.arguments[s-1]),i=t.getFirstToken(r.arguments[s]);if(n.check(o,i)){const s=t.getTokenBefore(i,{includeComments:!0}),o="Line"===s.type;e.report({node:r,loc:{start:s.loc.end,end:i.loc.start},messageId:n.messageId,fix:o?null:n.createFix(i,s)})}}}function o(o){if(o.arguments.length<2)return;const i=e.options[0]||"always";if("never"===i)s(o,r);else if("always"===i)s(o,n);else if("consistent"===i){const e=t.getLastToken(o.arguments[0]),i=t.getFirstToken(o.arguments[1]);e.loc.end.line===i.loc.start.line?s(o,r):s(o,n)}}return{CallExpression:o,NewExpression:o}}};const Ff=Vp.exports;var Tf={meta:{type:"layout",docs:{description:"enforce consistent line breaks inside function parentheses",recommended:!1,url:"https://eslint.org/docs/rules/function-paren-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"multiline",n="multiline"===r,s="multiline-arguments"===r,o="consistent"===r;let i;function a(e,t){return s&&1===e.length?t:n||s?e.some(((t,r)=>r!==e.length-1&&t.loc.end.line!==e[r+1].loc.start.line)):o?t:e.length>=i}return i="object"==typeof r?r.minItems:"always"===r?0:"never"===r?1/0:null,{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](r){const n=function(e){switch(e.type){case"NewExpression":if(!(e.arguments.length||Ff.isOpeningParenToken(t.getLastToken(e,{skip:1}))&&Ff.isClosingParenToken(t.getLastToken(e))))return null;case"CallExpression":return{leftParen:t.getTokenAfter(e.callee,Ff.isOpeningParenToken),rightParen:t.getLastToken(e)};case"FunctionDeclaration":case"FunctionExpression":{const r=t.getFirstToken(e,Ff.isOpeningParenToken);return{leftParen:r,rightParen:e.params.length?t.getTokenAfter(e.params[e.params.length-1],Ff.isClosingParenToken):t.getTokenAfter(r)}}case"ArrowFunctionExpression":{const r=t.getFirstToken(e,{skip:e.async?1:0});return Ff.isOpeningParenToken(r)?{leftParen:r,rightParen:t.getTokenBefore(e.body,Ff.isClosingParenToken)}:null}case"ImportExpression":return{leftParen:t.getFirstToken(e,1),rightParen:t.getLastToken(e)};default:throw new TypeError("unexpected node with type "+e.type)}}(r);let o;o="ImportExpression"===r.type?[r.source]:Ff.isFunction(r)?r.params:r.arguments,n&&(function(r,n){const s=r.leftParen,o=r.rightParen,i=t.getTokenAfter(s),c=t.getTokenBefore(o),u=!Ff.isTokenOnSameLine(s,i),l=!Ff.isTokenOnSameLine(c,o),p=a(n,u);u&&!p?e.report({node:s,messageId:"unexpectedAfter",fix:e=>t.getText().slice(s.range[1],i.range[0]).trim()?null:e.removeRange([s.range[1],i.range[0]])}):!u&&p&&e.report({node:s,messageId:"expectedAfter",fix:e=>e.insertTextAfter(s,"\n")}),l&&!p?e.report({node:o,messageId:"unexpectedBefore",fix:e=>t.getText().slice(c.range[1],o.range[0]).trim()?null:e.removeRange([c.range[1],o.range[0]])}):!l&&p&&e.report({node:o,messageId:"expectedBefore",fix:e=>e.insertTextBefore(o,"\n")})}(n,o),s&&function(r,n){const s=r.leftParen,o=t.getTokenAfter(s),i=a(n,!Ff.isTokenOnSameLine(s,o));for(let t=0;t<=n.length-2;t++){const r=n[t],s=n[t+1];r.loc.end.line===s.loc.start.line&&i&&e.report({node:r,messageId:"expectedBetween",fix:e=>e.insertTextBefore(s,"\n")})}}(n,o))}}}};const Pf={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};var If={meta:{type:"layout",docs:{description:"enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:"https://eslint.org/docs/rules/generator-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:Pf,anonymous:Pf,method:Pf},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const t={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function r(e,r){return e?"string"==typeof e?t[e]:Object.assign({},r,e):r}const n=function(e){const n=r(e,t.before);return{named:r(e.named,n),anonymous:r(e.anonymous,n),method:r(e.method,n)}}(e.options[0]||{}),s=e.getSourceCode();function o(e){return"*"===e.value&&"Punctuator"===e.type}function i(t,r,s,o){if(!!(o.range[0]-s.range[1])!==n[t][r]){const a="*"===s.value,c=n[t][r],u=a?s:o,l=`${c?"missing":"unexpected"}${i=r,i[0].toUpperCase()+i.slice(1)}`;e.report({node:u,messageId:l,fix:e=>c?a?e.insertTextAfter(u," "):e.insertTextBefore(u," "):e.removeRange([s.range[1],o.range[0]])})}var i}function a(e){if(!e.generator)return;const t=function(e){return s.getFirstToken(e.parent.method||"MethodDefinition"===e.parent.type?e.parent:e,o)}(e),r=s.getTokenBefore(t),n=s.getTokenAfter(t);let a="named";"MethodDefinition"===e.parent.type||"Property"===e.parent.type&&e.parent.method?a="method":e.id||(a="anonymous"),"method"===a&&t===s.getFirstToken(e.parent)||i(a,"before",r,t),i(a,"after",t,n)}return{FunctionDeclaration:a,FunctionExpression:a}}};const _f=Vp.exports,Bf=/^(?:Arrow)?FunctionExpression$/u;function Of(e){return e.reachable}var Lf={meta:{type:"problem",docs:{description:"enforce `return` statements in getters",recommended:!0,url:"https://eslint.org/docs/rules/getter-return"},fixable:null,schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expected:"Expected to return a value in {{name}}.",expectedAlways:"Expected {{name}} to always return a value."}},create(e){const t=e.options[0]||{allowImplicit:!1},r=e.getSourceCode();let n={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function s(t){n.shouldCheck&&n.codePath.currentSegments.some(Of)&&e.report({node:t,loc:_f.getFunctionHeadLoc(t,r),messageId:n.hasReturn?"expectedAlways":"expected",data:{name:_f.getFunctionNameWithKind(n.node)}})}function o(e){const t=e.parent;if(Bf.test(e.type)&&"BlockStatement"===e.body.type){if("get"===t.kind)return!0;if("Property"===t.type&&"get"===_f.getStaticPropertyName(t)&&"ObjectExpression"===t.parent.type){if("CallExpression"===t.parent.parent.type&&"defineProperty"===_f.getStaticPropertyName(t.parent.parent.callee))return!0;if("Property"===t.parent.parent.type&&"ObjectExpression"===t.parent.parent.parent.type&&"CallExpression"===t.parent.parent.parent.parent.type&&"defineProperties"===_f.getStaticPropertyName(t.parent.parent.parent.parent.callee))return!0}}return!1}return{onCodePathStart(e,t){n={upper:n,codePath:e,hasReturn:!1,shouldCheck:o(t),node:t}},onCodePathEnd(){n=n.upper},ReturnStatement(r){n.shouldCheck&&(n.hasReturn=!0,t.allowImplicit||r.argument||e.report({node:r,messageId:"expected",data:{name:_f.getFunctionNameWithKind(n.node)}}))},"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}};const jf=["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"];var Nf={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create:e=>({CallExpression(t){const r=e.getScope();if("require"===t.callee.name&&!function(e,t){const r=function(e,t){const r=e.references.filter((e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]));return 1===r.length?r[0]:null}(e,t);return r&&r.resolved&&r.resolved.defs.length>0}(r,t.callee)){e.getAncestors().every((e=>jf.indexOf(e.type)>-1))||e.report({node:t,messageId:"unexpected"})}}})};const Rf=Vp.exports;function Mf(e){return"get"===e.kind||"set"===e.kind}var Vf={meta:{type:"suggestion",docs:{description:"require grouped accessor pairs in object literals and classes",recommended:!1,url:"https://eslint.org/docs/rules/grouped-accessor-pairs"},schema:[{enum:["anyOrder","getBeforeSet","setBeforeGet"]}],messages:{notGrouped:"Accessor pair {{ formerName }} and {{ latterName }} should be grouped.",invalidOrder:"Expected {{ latterName }} to be before {{ formerName }}."}},create(e){const t=e.options[0]||"anyOrder",r=e.getSourceCode();function n(t,n,s){e.report({node:s,messageId:t,loc:Rf.getFunctionHeadLoc(s.value,r),data:{formerName:Rf.getFunctionNameWithKind(n.value),latterName:Rf.getFunctionNameWithKind(s.value)}})}function s(e){const t=Rf.getStaticPropertyName(e);return{key:null!==t?t:r.getTokens(e.key),getters:"get"===e.kind?[e]:[],setters:"set"===e.kind?[e]:[]}}function o(e,t){const r=e.find((e=>{return r=e.key,n=t.key,"string"==typeof r&&"string"==typeof n?r===n:!(!Array.isArray(r)||!Array.isArray(n))&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const n=e[r],s=t[r];if(n.type!==s.type||n.value!==s.value)return!1}return!0}(r,n);var r,n}));return r?(r.getters.push(...t.getters),r.setters.push(...t.setters)):e.push(t),e}function i(e,r){const i=e.filter(r).filter(Mf).map(s).reduce(o,[]);for(const{getters:r,setters:s}of i)if(1===r.length&&1===s.length){const[o]=r,[i]=s,a=e.indexOf(o),c=e.indexOf(i),u=a<c?o:i,l=a<c?i:o;Math.abs(a-c)>1?n("notGrouped",u,l):("getBeforeSet"===t&&a>c||"setBeforeGet"===t&&a<c)&&n("invalidOrder",u,l)}}return{ObjectExpression(e){i(e.properties,(e=>"Property"===e.type))},ClassBody(e){i(e.body,(e=>"MethodDefinition"===e.type&&!e.static)),i(e.body,(e=>"MethodDefinition"===e.type&&e.static))}}}},$f={meta:{type:"suggestion",docs:{description:"require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create:e=>({ForInStatement(t){const r=t.body;if("EmptyStatement"!==r.type&&"IfStatement"!==r.type&&!("BlockStatement"===r.type&&0===r.body.length||"BlockStatement"===r.type&&1===r.body.length&&"IfStatement"===r.body[0].type)){if("BlockStatement"===r.type&&r.body.length>=1&&"IfStatement"===r.body[0].type){const e=r.body[0];if("ContinueStatement"===e.consequent.type)return;if("BlockStatement"===e.consequent.type&&1===e.consequent.body.length&&"ContinueStatement"===e.consequent.body[0].type)return}e.report({node:t,messageId:"wrap"})}}})},Uf={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(e){const t=e.options[0]||"err";function r(r){const n=function(e){return e.variables.filter((e=>e.defs[0]&&"Parameter"===e.defs[0].type))}(e.getScope())[0];n&&function(e){if("^"===t[0])return new RegExp(t,"u").test(e);return e===t}(n.name)&&0===n.references.length&&e.report({node:r,messageId:"expected"})}return{FunctionDeclaration:r,FunctionExpression:r,ArrowFunctionExpression:r}}};var qf={meta:{deprecated:!0,replacedBy:["id-denylist"],type:"suggestion",docs:{description:"disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(e){const t=new Set(e.options),r=new Set;let n;function s(e){const t=e.parent;return"MemberExpression"!==t.type||t.property!==e||t.computed?!("CallExpression"===t.type||"NewExpression"===t.type||function(e){const t=e.parent;return"ImportSpecifier"===t.type&&t.imported!==t.local&&t.imported===e||"ExportSpecifier"===t.type&&t.parent.source&&t.local!==t.exported&&t.local===e}(e)||function(e){const t=e.parent;return!t.computed&&"Property"===t.type&&"ObjectPattern"===t.parent.type&&t.value!==e&&t.key===e}(e)||function(e){const t=n.set.get(e.name);return t&&0===t.defs.length&&t.references.some((t=>t.identifier===e))}(e)&&!function(e){const t=e.parent;return"Property"===t.type&&"ObjectExpression"===t.parent.type&&t.shorthand}(e)):function(e){const t=e.parent;return"AssignmentExpression"===t.type&&t.left===e||"ArrayPattern"===t.type||"RestElement"===t.type||"Property"===t.type&&t.value===e&&"ObjectPattern"===t.parent.type||"AssignmentPattern"===t.type&&t.left===e}(t)}return{Program(){n=e.getScope()},Identifier(n){(function(e){return t.has(e)})(n.name)&&s(n)&&function(t){r.has(t.range.toString())||(e.report({node:t,messageId:"restricted",data:{name:t.name}}),r.add(t.range.toString()))}(n)}}}};var Wf={meta:{type:"suggestion",docs:{description:"disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(e){const t=new Set(e.options),r=new Set;let n;function s(e){const t=e.parent;return"MemberExpression"!==t.type||t.property!==e||t.computed?"CallExpression"!==t.type&&"NewExpression"!==t.type&&!function(e){const t=e.parent;return"ImportSpecifier"===t.type&&t.imported!==t.local&&t.imported===e||"ExportSpecifier"===t.type&&t.parent.source&&t.local!==t.exported&&t.local===e}(e)&&!function(e){const t=e.parent;return!t.computed&&"Property"===t.type&&"ObjectPattern"===t.parent.type&&t.key===e}(e)&&!function(e){const t=n.set.get(e.name);return t&&0===t.defs.length&&t.references.some((t=>t.identifier===e))}(e):function(e){const t=e.parent;return"AssignmentExpression"===t.type&&t.left===e||"ArrayPattern"===t.type||"RestElement"===t.type||"Property"===t.type&&t.value===e&&"ObjectPattern"===t.parent.type||"AssignmentPattern"===t.type&&t.left===e}(t)}return{Program(){n=e.getScope()},[["Identifier","PrivateIdentifier"]](n){(function(e){return t.has(e)})(n.name)&&s(n)&&function(t){if(!r.has(t.range.toString())){const n="PrivateIdentifier"===t.type;e.report({node:t,messageId:n?"restrictedPrivate":"restricted",data:{name:t.name}}),r.add(t.range.toString())}}(n)}}}},zf={meta:{type:"suggestion",docs:{description:"enforce minimum and maximum identifier lengths",recommended:!1,url:"https://eslint.org/docs/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer",default:2},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name #'{{name}}' is too long (> {{max}})."}},create(e){const t=e.options[0]||{},r=void 0!==t.min?t.min:2,n=void 0!==t.max?t.max:1/0,s="never"!==t.properties,o=new Set(t.exceptions),i=(t.exceptionPatterns||[]).map((e=>new RegExp(e,"u"))),a=new Set;const c={MemberExpression:s&&function(e){return!e.computed&&(e.parent.left===e&&"AssignmentExpression"===e.parent.type||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.parent.left===e.parent.parent)},AssignmentPattern:(e,t)=>e.left===t,VariableDeclarator:(e,t)=>e.id===t,Property(e,t){if("ObjectPattern"===e.parent.type){const r=e.value.name===e.key.name;return!r&&e.value===t||r&&e.key===t&&s}return s&&!e.computed&&e.key.name===t.name},ImportDefaultSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](t){const s=t.name,u=t.parent,l=s.length<r,p=s.length>n;if(!l&&!p||o.has(s)||function(e){return i.some((t=>t.test(e)))}(s))return;const d=c[u.type];if(d&&!a.has(t.range.toString())&&(!0===d||d(u,t))){a.add(t.range.toString());let o=l?"tooShort":"tooLong";"PrivateIdentifier"===t.type&&(o+="Private"),e.report({node:t,messageId:o,data:{name:s,min:r,max:n}})}}}}},Gf={meta:{type:"suggestion",docs:{description:"require identifiers to match a specified regular expression",recommended:!1,url:"https://eslint.org/docs/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean",default:!1},classFields:{type:"boolean",default:!1},onlyDeclarations:{type:"boolean",default:!1},ignoreDestructuring:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(e){const t=e.options[0]||"^.+$",r=new RegExp(t,"u"),n=e.options[1]||{},s=!!n.properties,o=!!n.classFields,i=!!n.onlyDeclarations,a=!!n.ignoreDestructuring,c=new Set,u=new Set(["CallExpression","NewExpression"]),l=new Set(["FunctionDeclaration","VariableDeclarator"]),p=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function d(e){return!r.test(e)}function f(e,t){return(!i||l.has(e.type))&&!u.has(e.type)&&d(t)}function h(r){if(!c.has(r.range.toString())){const n="PrivateIdentifier"===r.type?"notMatchPrivate":"notMatch";e.report({node:r,messageId:n,data:{name:r.name,pattern:t}}),c.add(r.range.toString())}}return{Identifier(e){const t=e.name,r=e.parent,n="MemberExpression"===r.type?r.parent:r;if("MemberExpression"===r.type){if(!s)return;"Identifier"===r.object.type&&r.object.name===t||"AssignmentExpression"===n.type&&"MemberExpression"===n.left.type&&n.left.property.name===e.name?d(t)&&h(e):"AssignmentExpression"===n.type&&"MemberExpression"!==n.right.type&&d(t)&&h(e)}else if("Property"===r.type||"AssignmentPattern"===r.type){if(r.parent&&"ObjectPattern"===r.parent.type){!a&&r.shorthand&&r.value.left&&d(t)&&h(e);const n=r.key.name===r.value.name;if(!n&&r.key===e)return;!(r.value.name&&d(t))||n&&a||h(e)}if(!s||a&&function(e){let{parent:t}=e;for(;t;){if("ObjectPattern"===t.type)return!0;t=t.parent}return!1}(e))return;r.right!==e&&f(n,t)&&h(e)}else p.has(r.type)?r.local&&r.local.name===e.name&&d(t)&&h(e):"PropertyDefinition"===r.type?o&&d(t)&&h(e):f(n,t)&&h(e)},PrivateIdentifier(e){"PropertyDefinition"===e.parent.type&&!o||d(e.name)&&h(e)}}}};const{isCommentToken:Hf,isNotOpeningParenToken:Kf}=Vp.exports;var Jf={meta:{type:"layout",docs:{description:"enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"beside";return{ArrowFunctionExpression:n=>function(n){if("BlockStatement"===n.body.type)return;const s=t.getTokenBefore(n.body,Kf),o=t.getTokenAfter(s);s.loc.end.line===o.loc.start.line&&"below"===r?e.report({node:o,messageId:"expected",fix:e=>e.insertTextBefore(o,"\n")}):s.loc.end.line!==o.loc.start.line&&"beside"===r&&e.report({node:o,messageId:"unexpected",fix:e=>t.getFirstTokenBetween(s,o,{includeComments:!0,filter:Hf})?null:e.replaceTextRange([s.range[1],o.range[0]]," ")})}(n)}}},Qf=function(e){return new th(e||uh,null)};function Xf(e,t,r,n,s,o){this._color=e,this.key=t,this.value=r,this.left=n,this.right=s,this._count=o}function Yf(e){return new Xf(e._color,e.key,e.value,e.left,e.right,e._count)}function Zf(e,t){return new Xf(e,t.key,t.value,t.left,t.right,t._count)}function eh(e){e._count=1+(e.left?e.left._count:0)+(e.right?e.right._count:0)}function th(e,t){this._compare=e,this.root=t}var rh=th.prototype;function nh(e,t){var r;if(t.left&&(r=nh(e,t.left)))return r;return(r=e(t.key,t.value))||(t.right?nh(e,t.right):void 0)}function sh(e,t,r,n){if(t(e,n.key)<=0){var s;if(n.left)if(s=sh(e,t,r,n.left))return s;if(s=r(n.key,n.value))return s}if(n.right)return sh(e,t,r,n.right)}function oh(e,t,r,n,s){var o,i=r(e,s.key),a=r(t,s.key);if(i<=0){if(s.left&&(o=oh(e,t,r,n,s.left)))return o;if(a>0&&(o=n(s.key,s.value)))return o}if(a>0&&s.right)return oh(e,t,r,n,s.right)}function ih(e,t){this.tree=e,this._stack=t}Object.defineProperty(rh,"keys",{get:function(){var e=[];return this.forEach((function(t,r){e.push(t)})),e}}),Object.defineProperty(rh,"values",{get:function(){var e=[];return this.forEach((function(t,r){e.push(r)})),e}}),Object.defineProperty(rh,"length",{get:function(){return this.root?this.root._count:0}}),rh.insert=function(e,t){for(var r=this._compare,n=this.root,s=[],o=[];n;){var i=r(e,n.key);s.push(n),o.push(i),n=i<=0?n.left:n.right}s.push(new Xf(0,e,t,null,null,1));for(var a=s.length-2;a>=0;--a){n=s[a];o[a]<=0?s[a]=new Xf(n._color,n.key,n.value,s[a+1],n.right,n._count+1):s[a]=new Xf(n._color,n.key,n.value,n.left,s[a+1],n._count+1)}for(a=s.length-1;a>1;--a){var c=s[a-1];n=s[a];if(1===c._color||1===n._color)break;var u=s[a-2];if(u.left===c)if(c.left===n){if(!(l=u.right)||0!==l._color){if(u._color=0,u.left=c.right,c._color=1,c.right=u,s[a-2]=c,s[a-1]=n,eh(u),eh(c),a>=3)(p=s[a-3]).left===u?p.left=c:p.right=c;break}c._color=1,u.right=Zf(1,l),u._color=0,a-=1}else{if(!(l=u.right)||0!==l._color){if(c.right=n.left,u._color=0,u.left=n.right,n._color=1,n.left=c,n.right=u,s[a-2]=n,s[a-1]=c,eh(u),eh(c),eh(n),a>=3)(p=s[a-3]).left===u?p.left=n:p.right=n;break}c._color=1,u.right=Zf(1,l),u._color=0,a-=1}else if(c.right===n){if(!(l=u.left)||0!==l._color){if(u._color=0,u.right=c.left,c._color=1,c.left=u,s[a-2]=c,s[a-1]=n,eh(u),eh(c),a>=3)(p=s[a-3]).right===u?p.right=c:p.left=c;break}c._color=1,u.left=Zf(1,l),u._color=0,a-=1}else{var l;if(!(l=u.left)||0!==l._color){var p;if(c.left=n.right,u._color=0,u.right=n.left,n._color=1,n.right=c,n.left=u,s[a-2]=n,s[a-1]=c,eh(u),eh(c),eh(n),a>=3)(p=s[a-3]).right===u?p.right=n:p.left=n;break}c._color=1,u.left=Zf(1,l),u._color=0,a-=1}}return s[0]._color=1,new th(r,s[0])},rh.forEach=function(e,t,r){if(this.root)switch(arguments.length){case 1:return nh(e,this.root);case 2:return sh(t,this._compare,e,this.root);case 3:if(this._compare(t,r)>=0)return;return oh(t,r,this._compare,e,this.root)}},Object.defineProperty(rh,"begin",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.left;return new ih(this,e)}}),Object.defineProperty(rh,"end",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.right;return new ih(this,e)}}),rh.at=function(e){if(e<0)return new ih(this,[]);for(var t=this.root,r=[];;){if(r.push(t),t.left){if(e<t.left._count){t=t.left;continue}e-=t.left._count}if(!e)return new ih(this,r);if(e-=1,!t.right)break;if(e>=t.right._count)break;t=t.right}return new ih(this,[])},rh.ge=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var o=t(e,r.key);n.push(r),o<=0&&(s=n.length),r=o<=0?r.left:r.right}return n.length=s,new ih(this,n)},rh.gt=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var o=t(e,r.key);n.push(r),o<0&&(s=n.length),r=o<0?r.left:r.right}return n.length=s,new ih(this,n)},rh.lt=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var o=t(e,r.key);n.push(r),o>0&&(s=n.length),r=o<=0?r.left:r.right}return n.length=s,new ih(this,n)},rh.le=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var o=t(e,r.key);n.push(r),o>=0&&(s=n.length),r=o<0?r.left:r.right}return n.length=s,new ih(this,n)},rh.find=function(e){for(var t=this._compare,r=this.root,n=[];r;){var s=t(e,r.key);if(n.push(r),0===s)return new ih(this,n);r=s<=0?r.left:r.right}return new ih(this,[])},rh.remove=function(e){var t=this.find(e);return t?t.remove():this},rh.get=function(e){for(var t=this._compare,r=this.root;r;){var n=t(e,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var ah=ih.prototype;function ch(e,t){e.key=t.key,e.value=t.value,e.left=t.left,e.right=t.right,e._color=t._color,e._count=t._count}function uh(e,t){return e<t?-1:e>t?1:0}Object.defineProperty(ah,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(ah,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),ah.clone=function(){return new ih(this.tree,this._stack.slice())},ah.remove=function(){var e=this._stack;if(0===e.length)return this.tree;var t=new Array(e.length),r=e[e.length-1];t[t.length-1]=new Xf(r._color,r.key,r.value,r.left,r.right,r._count);for(var n=e.length-2;n>=0;--n){(r=e[n]).left===e[n+1]?t[n]=new Xf(r._color,r.key,r.value,t[n+1],r.right,r._count):t[n]=new Xf(r._color,r.key,r.value,r.left,t[n+1],r._count)}if((r=t[t.length-1]).left&&r.right){var s=t.length;for(r=r.left;r.right;)t.push(r),r=r.right;var o=t[s-1];t.push(new Xf(r._color,o.key,o.value,r.left,r.right,r._count)),t[s-1].key=r.key,t[s-1].value=r.value;for(n=t.length-2;n>=s;--n)r=t[n],t[n]=new Xf(r._color,r.key,r.value,r.left,t[n+1],r._count);t[s-1].left=t[s]}if(0===(r=t[t.length-1])._color){var i=t[t.length-2];i.left===r?i.left=null:i.right===r&&(i.right=null),t.pop();for(n=0;n<t.length;++n)t[n]._count--;return new th(this.tree._compare,t[0])}if(r.left||r.right){r.left?ch(r,r.left):r.right&&ch(r,r.right),r._color=1;for(n=0;n<t.length-1;++n)t[n]._count--;return new th(this.tree._compare,t[0])}if(1===t.length)return new th(this.tree._compare,null);for(n=0;n<t.length;++n)t[n]._count--;var a=t[t.length-2];return function(e){for(var t,r,n,s,o=e.length-1;o>=0;--o){if(t=e[o],0===o)return void(t._color=1);if((r=e[o-1]).left===t){if((n=r.right).right&&0===n.right._color)return s=(n=r.right=Yf(n)).right=Yf(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,t._color=1,r._color=1,s._color=1,eh(r),eh(n),o>1&&((i=e[o-2]).left===r?i.left=n:i.right=n),void(e[o-1]=n);if(n.left&&0===n.left._color)return s=(n=r.right=Yf(n)).left=Yf(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,t._color=1,eh(r),eh(n),eh(s),o>1&&((i=e[o-2]).left===r?i.left=s:i.right=s),void(e[o-1]=s);if(1===n._color){if(0===r._color)return r._color=1,void(r.right=Zf(0,n));r.right=Zf(0,n);continue}n=Yf(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,eh(r),eh(n),o>1&&((i=e[o-2]).left===r?i.left=n:i.right=n),e[o-1]=n,e[o]=r,o+1<e.length?e[o+1]=t:e.push(t),o+=2}else{if((n=r.left).left&&0===n.left._color)return s=(n=r.left=Yf(n)).left=Yf(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,t._color=1,r._color=1,s._color=1,eh(r),eh(n),o>1&&((i=e[o-2]).right===r?i.right=n:i.left=n),void(e[o-1]=n);if(n.right&&0===n.right._color)return s=(n=r.left=Yf(n)).right=Yf(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,t._color=1,eh(r),eh(n),eh(s),o>1&&((i=e[o-2]).right===r?i.right=s:i.left=s),void(e[o-1]=s);if(1===n._color){if(0===r._color)return r._color=1,void(r.left=Zf(0,n));r.left=Zf(0,n);continue}var i;n=Yf(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,eh(r),eh(n),o>1&&((i=e[o-2]).right===r?i.right=n:i.left=n),e[o-1]=n,e[o]=r,o+1<e.length?e[o+1]=t:e.push(t),o+=2}}}(t),a.left===r?a.left=null:a.right=null,new th(this.tree._compare,t[0])},Object.defineProperty(ah,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(ah,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(ah,"index",{get:function(){var e=0,t=this._stack;if(0===t.length){var r=this.tree.root;return r?r._count:0}t[t.length-1].left&&(e=t[t.length-1].left._count);for(var n=t.length-2;n>=0;--n)t[n+1]===t[n].right&&(++e,t[n].left&&(e+=t[n].left._count));return e},enumerable:!0}),ah.next=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.right)for(t=t.right;t;)e.push(t),t=t.left;else for(e.pop();e.length>0&&e[e.length-1].right===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(ah,"hasNext",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].right)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].left===e[t])return!0;return!1}}),ah.update=function(e){var t=this._stack;if(0===t.length)throw new Error("Can't update empty node!");var r=new Array(t.length),n=t[t.length-1];r[r.length-1]=new Xf(n._color,n.key,e,n.left,n.right,n._count);for(var s=t.length-2;s>=0;--s)(n=t[s]).left===t[s+1]?r[s]=new Xf(n._color,n.key,n.value,r[s+1],n.right,n._count):r[s]=new Xf(n._color,n.key,n.value,n.left,r[s+1],n._count);return new th(this.tree._compare,r[0])},ah.prev=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.left)for(t=t.left;t;)e.push(t),t=t.right;else for(e.pop();e.length>0&&e[e.length-1].left===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(ah,"hasPrev",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].left)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].right===e[t])return!0;return!1}});const lh=Qf,ph=Vp.exports,dh=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]);class fh{constructor(){this._rbTree=lh()}insert(e,t){const r=this._rbTree.find(e);r.valid?this._rbTree=r.update(t):this._rbTree=this._rbTree.insert(e,t)}findLe(e){const t=this._rbTree.le(e);return t&&{key:t.key,value:t.value}}deleteRange(e,t){if(e===t)return;const r=this._rbTree.ge(e);for(;r.valid&&r.key<t;)this._rbTree=this._rbTree.remove(r.key),r.next()}}class hh{constructor(e){this.sourceCode=e,this.firstTokensByLineNumber=e.tokensAndComments.reduce(((t,r)=>(t.has(r.loc.start.line)||t.set(r.loc.start.line,r),!t.has(r.loc.end.line)&&e.text.slice(r.range[1]-r.loc.end.column,r.range[1]).trim()&&t.set(r.loc.end.line,r),t)),new Map)}getFirstTokenOfLine(e){return this.firstTokensByLineNumber.get(e.loc.start.line)}isFirstTokenOfLine(e){return this.getFirstTokenOfLine(e)===e}getTokenIndent(e){return this.sourceCode.text.slice(e.range[0]-e.loc.start.column,e.range[0])}}class mh{constructor(e,t,r){this._tokenInfo=e,this._indentSize=t,this._indentType=r,this._tree=new fh,this._tree.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(e){return this._tree.findLe(e.range[0]).value}matchOffsetOf(e,t){this._lockedFirstTokens.set(t,e)}setDesiredOffset(e,t,r){return this.setDesiredOffsets(e.range,t,r)}setDesiredOffsets(e,t,r,n){const s={offset:r,from:t,force:n},o=this._tree.findLe(e[1]).value,i=t&&t.range[0]>=e[0]&&t.range[1]<=e[1],a=i&&this._getOffsetDescriptor(t);this._tree.deleteRange(e[0]+1,e[1]),this._tree.insert(e[0],s),i&&(this._tree.insert(t.range[0],a),this._tree.insert(t.range[1],s)),this._tree.insert(e[1],o)}getDesiredIndent(e){if(!this._desiredIndentCache.has(e))if(this._ignoredTokens.has(e))this._desiredIndentCache.set(e,this._tokenInfo.getTokenIndent(e));else if(this._lockedFirstTokens.has(e)){const t=this._lockedFirstTokens.get(e);this._desiredIndentCache.set(e,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(t))+this._indentType.repeat(t.loc.start.column-this._tokenInfo.getFirstTokenOfLine(t).loc.start.column))}else{const t=this._getOffsetDescriptor(e),r=!t.from||t.from.loc.start.line!==e.loc.start.line||/^\s*?\n/u.test(e.value)||t.force?t.offset*this._indentSize:0;this._desiredIndentCache.set(e,(t.from?this.getDesiredIndent(t.from):"")+this._indentType.repeat(r))}return this._desiredIndentCache.get(e)}ignoreToken(e){this._tokenInfo.isFirstTokenOfLine(e)&&this._ignoredTokens.add(e)}getFirstDependency(e){return this._getOffsetDescriptor(e).from}}const gh={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};var yh={meta:{type:"layout",docs:{description:"enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[gh,{type:"object",properties:{var:gh,let:gh,const:gh},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:gh,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:gh,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:gh},additionalProperties:!1},ArrayExpression:gh,ObjectExpression:gh,ImportDeclaration:gh,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){let t="space",r=4;const n={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};e.options.length&&("tab"===e.options[0]?(r=1,t="tab"):(r=e.options[0],t="space"),e.options[1]&&(Object.assign(n,e.options[1]),"number"!=typeof n.VariableDeclarator&&"first"!==n.VariableDeclarator||(n.VariableDeclarator={var:n.VariableDeclarator,let:n.VariableDeclarator,const:n.VariableDeclarator})));const s=e.getSourceCode(),o=new hh(s),i=new mh(o,r,"space"===t?" ":"\t"),a=new WeakSet;function c(e,r,n){let s;return s=r>0?"space"===t?r:`${r} ${"space"+(1===r?"":"s")}`:n>0?"tab"===t?n:`${n} ${"tab"+(1===n?"":"s")}`:"0",{expected:`${e} ${t}${1===e?"":"s"}`,actual:s}}function u(e,t){const r=o.getTokenIndent(e);return r===t||r.includes(" ")&&r.includes("\t")}function l(e,t,r,n){function a(e){let r=s.getTokenBefore(e);for(;ph.isOpeningParenToken(r)&&r!==t;)r=s.getTokenBefore(r);return s.getTokenAfter(r)}i.setDesiredOffsets([t.range[1],r.range[0]],t,"number"==typeof n?n:1),i.setDesiredOffset(r,t,0),"first"===n&&e.length&&!e[0]||e.forEach(((r,c)=>{if(r&&("off"===n&&i.ignoreToken(a(r)),0!==c))if("first"===n&&o.isFirstTokenOfLine(a(r)))i.matchOffsetOf(a(e[0]),a(r));else{const n=e[c-1],o=n&&a(n),u=n&&s.getLastToken(n);n&&u.loc.end.line-function(e){const t=e.match(/\s*$/u)[0].match(ph.createGlobalLinebreakMatcher());return null===t?0:t.length}(u.value)>t.loc.end.line&&i.setDesiredOffsets([n.range[1],r.range[1]],o,0)}}))}function p(e){if("BlockStatement"!==e.type){const t=s.getTokenBefore(e,ph.isNotOpeningParenToken);let r=s.getFirstToken(e),n=s.getLastToken(e);for(;ph.isOpeningParenToken(s.getTokenBefore(r))&&ph.isClosingParenToken(s.getTokenAfter(n));)r=s.getTokenBefore(r),n=s.getTokenAfter(n);i.setDesiredOffsets([r.range[0],n.range[1]],t,1);const o=s.getLastToken(e);"EmptyStatement"!==e.type&&ph.isSemicolonToken(o)&&i.setDesiredOffset(o,t,0)}}function d(e){let t;t=e.arguments.length?s.getFirstTokenBetween(e.callee,e.arguments[0],ph.isOpeningParenToken):s.getLastToken(e,1);const r=s.getLastToken(e);if(a.add(t),a.add(r),e.optional){const r=s.getTokenAfter(e.callee,ph.isQuestionDotToken),n=s.getTokensBetween(e.callee,r,{filter:ph.isClosingParenToken}).length,o=n?s.getTokenBefore(e.callee,{skip:n-1}):s.getFirstToken(e.callee),a=s.getTokenBefore(r),c=a.loc.end.line===t.loc.start.line?a:o;i.setDesiredOffset(r,c,1)}const o="TaggedTemplateExpression"===e.callee.type?s.getFirstToken(e.callee.quasi):t,c=s.getTokenBefore(o);i.setDesiredOffset(t,c,0),l(e.arguments,t,r,n.CallExpression.arguments)}function f(e){const t=new Set(s.getTokens(e,{includeComments:!0}));t.forEach((e=>{if(!t.has(i.getFirstDependency(e))){const t=o.getFirstTokenOfLine(e);e===t?i.ignoreToken(e):i.setDesiredOffset(e,t,0)}}))}function h(e,t){const r=e.loc.end.line,n=t.loc.start.line;if(r===n||r===n-1)return!1;for(let e=r+1;e<n;++e)if(!o.firstTokensByLineNumber.has(e))return!0;return!1}const m=new Set,g={"ArrayExpression, ArrayPattern"(e){const t=s.getFirstToken(e),r=s.getTokenAfter([...e.elements].reverse().find((e=>e))||t,ph.isClosingBracketToken);l(e.elements,t,r,n.ArrayExpression)},"ObjectExpression, ObjectPattern"(e){const t=s.getFirstToken(e),r=s.getTokenAfter(e.properties.length?e.properties[e.properties.length-1]:t,ph.isClosingBraceToken);l(e.properties,t,r,n.ObjectExpression)},ArrowFunctionExpression(e){const t=s.getFirstToken(e,{skip:e.async?1:0});if(ph.isOpeningParenToken(t)){const r=t,o=s.getTokenBefore(e.body,ph.isClosingParenToken);a.add(r),a.add(o),l(e.params,r,o,n.FunctionExpression.parameters)}p(e.body)},AssignmentExpression(e){const t=s.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator));i.setDesiredOffsets([t.range[0],e.range[1]],s.getLastToken(e.left),1),i.ignoreToken(t),i.ignoreToken(s.getTokenAfter(t))},"BinaryExpression, LogicalExpression"(e){const t=s.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator)),r=s.getTokenAfter(t);i.ignoreToken(t),i.ignoreToken(r),i.setDesiredOffset(r,t,0)},"BlockStatement, ClassBody"(e){let t;t=e.parent&&function(e){if(!e.parent||"CallExpression"!==e.parent.type||e.parent.callee!==e)return!1;let t=e.parent&&e.parent.parent;for(;"UnaryExpression"===t.type&&["!","~","+","-"].indexOf(t.operator)>-1||"AssignmentExpression"===t.type||"LogicalExpression"===t.type||"SequenceExpression"===t.type||"VariableDeclarator"===t.type;)t=t.parent;return("ExpressionStatement"===t.type||"VariableDeclaration"===t.type)&&"Program"===t.parent.type}(e.parent)?n.outerIIFEBody:!e.parent||"FunctionExpression"!==e.parent.type&&"ArrowFunctionExpression"!==e.parent.type?e.parent&&"FunctionDeclaration"===e.parent.type?n.FunctionDeclaration.body:1:n.FunctionExpression.body,ph.STATEMENT_LIST_PARENTS.has(e.parent.type)||i.setDesiredOffset(s.getFirstToken(e),s.getFirstToken(e.parent),0),l(e.body,s.getFirstToken(e),s.getLastToken(e),t)},CallExpression:d,"ClassDeclaration[superClass], ClassExpression[superClass]"(e){const t=s.getFirstToken(e),r=s.getTokenBefore(e.superClass,ph.isNotOpeningParenToken);i.setDesiredOffsets([r.range[0],e.body.range[0]],t,1)},ConditionalExpression(e){const t=s.getFirstToken(e);if(!n.flatTernaryExpressions||!ph.isTokenOnSameLine(e.test,e.consequent)||function(e,t){let r=t;for(;r.parent&&!r.parent.type.endsWith("Statement")&&!r.parent.type.endsWith("Declaration");)r=r.parent;return r=r.parent,!r||r.loc.start.line===e.loc.start.line}(t,e)){const r=s.getFirstTokenBetween(e.test,e.consequent,(e=>"Punctuator"===e.type&&"?"===e.value)),o=s.getFirstTokenBetween(e.consequent,e.alternate,(e=>"Punctuator"===e.type&&":"===e.value)),a=s.getTokenAfter(r),c=s.getTokenBefore(o),u=s.getTokenAfter(o);i.setDesiredOffset(r,t,1),i.setDesiredOffset(o,t,1),i.setDesiredOffset(a,t,"Punctuator"===a.type&&n.offsetTernaryExpressions?2:1),c.loc.end.line===u.loc.start.line?i.setDesiredOffset(u,a,0):i.setDesiredOffset(u,t,"Punctuator"===u.type&&n.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement":e=>p(e.body),ExportNamedDeclaration(e){if(null===e.declaration){const t=s.getLastToken(e,ph.isClosingBraceToken);l(e.specifiers,s.getFirstToken(e,{skip:1}),t,1),e.source&&i.setDesiredOffsets([t.range[1],e.range[1]],s.getFirstToken(e),1)}},ForStatement(e){const t=s.getFirstToken(e,1);e.init&&i.setDesiredOffsets(e.init.range,t,1),e.test&&i.setDesiredOffsets(e.test.range,t,1),e.update&&i.setDesiredOffsets(e.update.range,t,1),p(e.body)},"FunctionDeclaration, FunctionExpression"(e){const t=s.getTokenBefore(e.body),r=s.getTokenBefore(e.params.length?e.params[0]:t);a.add(r),a.add(t),l(e.params,r,t,n[e.type].parameters)},IfStatement(e){p(e.consequent),e.alternate&&"IfStatement"!==e.alternate.type&&p(e.alternate)},ImportDeclaration(e){if(e.specifiers.some((e=>"ImportSpecifier"===e.type))){const t=s.getFirstToken(e,ph.isOpeningBraceToken),r=s.getLastToken(e,ph.isClosingBraceToken);l(e.specifiers.filter((e=>"ImportSpecifier"===e.type)),t,r,n.ImportDeclaration)}const t=s.getLastToken(e,(e=>"Identifier"===e.type&&"from"===e.value)),r=s.getLastToken(e,(e=>"String"===e.type)),o=s.getLastToken(e,(e=>"Punctuator"===e.type&&";"===e.value));if(t){const n=o&&o.range[1]===r.range[1]?e.range[1]:r.range[1];i.setDesiredOffsets([t.range[0],n],s.getFirstToken(e),1)}},ImportExpression(e){const t=s.getFirstToken(e,1),r=s.getLastToken(e);a.add(t),a.add(r),i.setDesiredOffset(t,s.getTokenBefore(t),0),l([e.source],t,r,n.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(e){const t="MetaProperty"===e.type?e.meta:e.object,r=s.getFirstTokenBetween(t,e.property,ph.isNotClosingParenToken),o=s.getTokenAfter(r),a=s.getTokensBetween(t,e.property,{filter:ph.isClosingParenToken}).length,c=a?s.getTokenBefore(t,{skip:a-1}):s.getFirstToken(t),u=s.getTokenBefore(r),l=e.computed?r:o;e.computed&&(i.setDesiredOffset(s.getLastToken(e),r,0),i.setDesiredOffsets(e.property.range,r,1));const p=u.loc.end.line===l.loc.start.line?u:c;"number"==typeof n.MemberExpression?(i.setDesiredOffset(r,p,n.MemberExpression),i.setDesiredOffset(o,e.computed?r:p,n.MemberExpression)):(i.ignoreToken(r),i.ignoreToken(o),i.setDesiredOffset(r,p,0),i.setDesiredOffset(o,r,0))},NewExpression(e){(e.arguments.length>0||ph.isClosingParenToken(s.getLastToken(e))&&ph.isOpeningParenToken(s.getLastToken(e,1)))&&d(e)},Property(e){if(!e.shorthand&&!e.method&&"init"===e.kind){const t=s.getFirstTokenBetween(e.key,e.value,ph.isColonToken);i.ignoreToken(s.getTokenAfter(t))}},PropertyDefinition(e){const t=s.getFirstToken(e),r=s.getLastToken(e);let n=null;if(e.computed){const r=s.getTokenBefore(e.key,ph.isOpeningBracketToken),o=n=s.getTokenAfter(e.key,ph.isClosingBracketToken),a=[r.range[1],o.range[0]];r!==t&&i.setDesiredOffset(r,t,0),i.setDesiredOffsets(a,r,1),i.setDesiredOffset(o,r,0)}else{const r=n=s.getFirstToken(e.key);r!==t&&i.setDesiredOffset(r,t,1)}if(e.value){const t=s.getTokenBefore(e.value,ph.isEqToken),o=s.getTokenAfter(t);i.setDesiredOffset(t,n,1),i.setDesiredOffset(o,t,1),ph.isSemicolonToken(r)&&i.setDesiredOffset(r,t,1)}else ph.isSemicolonToken(r)&&i.setDesiredOffset(r,n,1)},StaticBlock(e){const t=s.getFirstToken(e,{skip:1}),r=s.getLastToken(e);l(e.body,t,r,n.StaticBlock.body)},SwitchStatement(e){const t=s.getTokenAfter(e.discriminant,ph.isOpeningBraceToken),r=s.getLastToken(e);i.setDesiredOffsets([t.range[1],r.range[0]],t,n.SwitchCase),e.cases.length&&s.getTokensBetween(e.cases[e.cases.length-1],r,{includeComments:!0,filter:ph.isCommentToken}).forEach((e=>i.ignoreToken(e)))},SwitchCase(e){if(1!==e.consequent.length||"BlockStatement"!==e.consequent[0].type){const t=s.getFirstToken(e),r=s.getTokenAfter(e);i.setDesiredOffsets([t.range[1],r.range[0]],t,1)}},TemplateLiteral(e){e.expressions.forEach(((t,r)=>{const n=e.quasis[r],o=e.quasis[r+1],a=n.loc.start.line===n.loc.end.line?s.getFirstToken(n):null;i.setDesiredOffsets([n.range[1],o.range[0]],a,1),i.setDesiredOffset(s.getFirstToken(o),a,0)}))},VariableDeclaration(e){let t=Object.prototype.hasOwnProperty.call(n.VariableDeclarator,e.kind)?n.VariableDeclarator[e.kind]:1;const r=s.getFirstToken(e),o=s.getLastToken(e);if("first"===n.VariableDeclarator[e.kind]){if(e.declarations.length>1)return void l(e.declarations,r,o,"first");t=1}e.declarations[e.declarations.length-1].loc.start.line>e.loc.start.line?i.setDesiredOffsets(e.range,r,t,!0):i.setDesiredOffsets(e.range,r,t),ph.isSemicolonToken(o)&&i.ignoreToken(o)},VariableDeclarator(e){if(e.init){const t=s.getTokenBefore(e.init,ph.isNotOpeningParenToken),r=s.getTokenAfter(t);i.ignoreToken(t),i.ignoreToken(r),i.setDesiredOffsets([r.range[0],e.range[1]],t,1),i.setDesiredOffset(t,s.getLastToken(e.id),0)}},"JSXAttribute[value]"(e){const t=s.getFirstTokenBetween(e.name,e.value,(e=>"Punctuator"===e.type&&"="===e.value));i.setDesiredOffsets([t.range[0],e.value.range[1]],s.getFirstToken(e.name),1)},JSXElement(e){e.closingElement&&l(e.children,s.getFirstToken(e.openingElement),s.getFirstToken(e.closingElement),1)},JSXOpeningElement(e){const t=s.getFirstToken(e);let r;e.selfClosing?(r=s.getLastToken(e,{skip:1}),i.setDesiredOffset(s.getLastToken(e),r,0)):r=s.getLastToken(e),i.setDesiredOffsets(e.name.range,s.getFirstToken(e)),l(e.attributes,t,r,1)},JSXClosingElement(e){const t=s.getFirstToken(e);i.setDesiredOffsets(e.name.range,t,1)},JSXFragment(e){const t=s.getFirstToken(e.openingFragment),r=s.getFirstToken(e.closingFragment);l(e.children,t,r,1)},JSXOpeningFragment(e){const t=s.getFirstToken(e),r=s.getLastToken(e);i.setDesiredOffsets(e.range,t,1),i.matchOffsetOf(t,r)},JSXClosingFragment(e){const t=s.getFirstToken(e),r=s.getLastToken(e,{skip:1}),n=s.getLastToken(e),o=ph.isTokenOnSameLine(r,n)?r:n;i.setDesiredOffsets(e.range,t,1),i.matchOffsetOf(t,o)},JSXExpressionContainer(e){const t=s.getFirstToken(e),r=s.getLastToken(e);i.setDesiredOffsets([t.range[1],r.range[0]],t,1)},JSXSpreadAttribute(e){const t=s.getFirstToken(e),r=s.getLastToken(e);i.setDesiredOffsets([t.range[1],r.range[0]],t,1)},"*"(e){const t=s.getFirstToken(e);t&&!m.has(t)&&i.setDesiredOffsets(e.range,t,0)}},y=[],x={};for(const[e,t]of Object.entries(g))x[e]=e=>y.push({listener:t,node:e});const b=new Set;function v(e){b.add(e),m.add(s.getFirstToken(e))}const E=n.ignoredNodes.reduce(((e,t)=>Object.assign(e,{[t]:v})),{});return Object.assign(x,E,{"*:exit"(e){dh.has(e.type)||v(e)},"Program:exit"(){n.ignoreComments&&s.getAllComments().forEach((e=>i.ignoreToken(e))),y.filter((e=>!b.has(e.node))).forEach((e=>e.listener(e.node))),b.forEach(f),function(e){const t=[],r=[];e.forEach((e=>{ph.isOpeningParenToken(e)?t.push(e):ph.isClosingParenToken(e)&&r.unshift({left:t.pop(),right:e})})),r.forEach((e=>{const t=e.left,r=e.right;if(!a.has(t)&&!a.has(r)){const e=new Set(s.getTokensBetween(t,r));e.forEach((r=>{e.has(i.getFirstDependency(r))||i.setDesiredOffset(r,t,1)}))}i.setDesiredOffset(r,t,0)}))}(s.ast.tokens);const t=s.ast.comments.reduce(((e,t)=>{const r=s.getTokenBefore(t,{includeComments:!0});return e.set(t,e.has(r)?e.get(r):r)}),new WeakMap);s.lines.forEach(((r,n)=>{const a=n+1;if(!o.firstTokensByLineNumber.has(a))return;const l=o.firstTokensByLineNumber.get(a);if(l.loc.start.line===a){if(ph.isCommentToken(l)){const e=t.get(l),r=e?s.getTokenAfter(e):s.ast.tokens[0],n=e&&!h(e,l),o=r&&!h(l,r);if(r&&ph.isSemicolonToken(r)&&!ph.isTokenOnSameLine(l,r)&&i.setDesiredOffset(l,r,0),n&&u(l,i.getDesiredIndent(e))||o&&u(l,i.getDesiredIndent(r)))return}u(l,i.getDesiredIndent(l))||function(t,r){const n=Array.from(o.getTokenIndent(t)),s=n.filter((e=>" "===e)).length,i=n.filter((e=>"\t"===e)).length;e.report({node:t,messageId:"wrongIndentation",data:c(r.length,s,i),loc:{start:{line:t.loc.start.line,column:0},end:{line:t.loc.start.line,column:t.loc.start.column}},fix(e){const n=[t.range[0]-t.loc.start.column,t.range[0]],s=r;return e.replaceTextRange(n,s)}})}(l,i.getDesiredIndent(l))}}))}})}};const xh=Vp.exports;var bh={meta:{type:"layout",docs:{description:"enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/rules/indent-legacy"},deprecated:!0,replacedBy:["indent"],fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{var:{type:"integer",minimum:0},let:{type:"integer",minimum:0},const:{type:"integer",minimum:0}}}]},outerIIFEBody:{type:"integer",minimum:0},MemberExpression:{type:"integer",minimum:0},FunctionDeclaration:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},FunctionExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},CallExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}}},ArrayExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},ObjectExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}},additionalProperties:!1}],messages:{expected:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){const t=null;let r="space",n=4;const s={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:t,body:1},FunctionExpression:{parameters:t,body:1},CallExpression:{arguments:t},ArrayExpression:1,ObjectExpression:1},o=e.getSourceCode();if(e.options.length&&("tab"===e.options[0]?(n=1,r="tab"):"number"==typeof e.options[0]&&(n=e.options[0],r="space"),e.options[1])){const t=e.options[1];s.SwitchCase=t.SwitchCase||0;const r=t.VariableDeclarator;"number"==typeof r?s.VariableDeclarator={var:r,let:r,const:r}:"object"==typeof r&&Object.assign(s.VariableDeclarator,r),"number"==typeof t.outerIIFEBody&&(s.outerIIFEBody=t.outerIIFEBody),"number"==typeof t.MemberExpression&&(s.MemberExpression=t.MemberExpression),"object"==typeof t.FunctionDeclaration&&Object.assign(s.FunctionDeclaration,t.FunctionDeclaration),"object"==typeof t.FunctionExpression&&Object.assign(s.FunctionExpression,t.FunctionExpression),"object"==typeof t.CallExpression&&Object.assign(s.CallExpression,t.CallExpression),"number"!=typeof t.ArrayExpression&&"string"!=typeof t.ArrayExpression||(s.ArrayExpression=t.ArrayExpression),"number"!=typeof t.ObjectExpression&&"string"!=typeof t.ObjectExpression||(s.ObjectExpression=t.ObjectExpression)}const i={};function a(e,t,n){const s="space"+(1===t?"":"s"),o="tab"+(1===n?"":"s");let i;return i=t>0&&n>0?`${t} ${s} and ${n} ${o}`:t>0?"space"===r?t:`${t} ${s}`:n>0?"tab"===r?n:`${n} ${o}`:"0",{expected:`${e} ${r}${1===e?"":"s"}`,actual:i}}function c(t,n,s,o,i,c){if(s&&o)return;const u=("space"===r?" ":"\t").repeat(n),l=c?[t.range[1]-t.loc.end.column,t.range[1]-t.loc.end.column+s+o]:[t.range[0]-t.loc.start.column,t.range[0]-t.loc.start.column+s+o];e.report({node:t,loc:i,messageId:"expected",data:a(n,s,o),fix:e=>e.replaceTextRange(l,u)})}function u(e,t){const n=t?o.getLastToken(e):o.getFirstToken(e),s=o.getText(n,n.loc.start.column).split(""),i=s.slice(0,s.findIndex((e=>" "!==e&&"\t"!==e))),a=i.filter((e=>" "===e)).length,c=i.filter((e=>"\t"===e)).length;return{space:a,tab:c,goodChar:"space"===r?a:c,badChar:"space"===r?c:a}}function l(e,t){const r=!0===t?o.getLastToken(e,1):o.getTokenBefore(e);return(!0===t?e.loc.end.line:e.loc.start.line)!==(r?r.loc.end.line:-1)}function p(e,t){const r=u(e,!1);if("ArrayExpression"===e.type||"ObjectExpression"===e.type||r.goodChar===t&&0===r.badChar||!l(e)||c(e,t,r.space,r.tab),"IfStatement"===e.type&&e.alternate){p(o.getTokenBefore(e.alternate),t),l(e.alternate)||p(e.alternate,t)}if("TryStatement"===e.type&&e.handler){p(o.getFirstToken(e.handler),t)}if("TryStatement"===e.type&&e.finalizer){p(o.getTokenBefore(e.finalizer),t)}if("DoWhileStatement"===e.type){p(o.getTokenAfter(e.body),t)}}function d(e,t){e.forEach((e=>p(e,t)))}function f(e,t){const r=o.getLastToken(e),n=u(r,!0);n.goodChar===t&&0===n.badChar||!l(e,!0)||c(e,t,n.space,n.tab,{line:r.loc.start.line,column:r.loc.start.column},!0)}function h(e,t,r){let n=e.parent;const s=new Set(r||["Program"]);for(;n.type!==t&&!s.has(n.type)&&"Program"!==n.type;)n=n.parent;return n.type===t?n:null}function m(e){return h(e,"VariableDeclarator")}function g(e,t){return t&&t.parent.loc.start.line===e.loc.start.line&&t.parent.declarations.length>1}function y(e){const t=o.getLastToken(e);return e.loc.start.line===t.loc.end.line}function x(e){if(y(e))return;let t,r,o="ArrayExpression"===e.type?e.elements:e.properties;o=o.filter((e=>null!==e));const i=m(e);if(l(e)){const r=e.parent;if(t=u(r).goodChar,!(i&&i.loc.start.line===e.loc.start.line||"VariableDeclarator"===r.type&&i!==i.parent.declarations[0]))if("VariableDeclarator"===r.type&&i.loc.start.line===r.loc.start.line)t+=n*s.VariableDeclarator[i.parent.kind];else if("ObjectExpression"===r.type||"ArrayExpression"===r.type){const o="ObjectExpression"===e.parent.type?e.parent.properties:e.parent.elements;o[0]&&o[0].loc.start.line===r.loc.start.line&&o[0].loc.end.line!==r.loc.start.line||("number"==typeof s[r.type]?t+=s[r.type]*n:t=o[0].loc.start.column)}else"CallExpression"===r.type||"NewExpression"===r.type?"number"==typeof s.CallExpression.arguments?t+=s.CallExpression.arguments*n:"first"===s.CallExpression.arguments?-1!==r.arguments.indexOf(e)&&(t=r.arguments[0].loc.start.column):t+=n:"LogicalExpression"!==r.type&&"ArrowFunctionExpression"!==r.type||(t+=n);!function(e,t){const r=u(e,!1);r.goodChar===t&&0===r.badChar||!l(e)||c(e,t,r.space,r.tab,{line:e.loc.start.line,column:e.loc.start.column})}(e,t)}else t=u(e).goodChar;r="first"===s[e.type]?o.length?o[0].loc.start.column:0:t+n*s[e.type],g(e,i)&&(r+=n*s.VariableDeclarator[i.parent.kind]),d(o,r),o.length>0&&o[o.length-1].loc.end.line===e.loc.end.line||f(e,t+(g(e,i)?s.VariableDeclarator[i.parent.kind]*n:0))}function b(e){if(y(e))return;if(e.parent&&("FunctionExpression"===e.parent.type||"FunctionDeclaration"===e.parent.type||"ArrowFunctionExpression"===e.parent.type))return void function(e){const t=e.parent;let r;if(r=!t.parent||"Property"!==t.parent.type&&"ArrayExpression"!==t.parent.type?u(t).goodChar:u(t,!1).goodChar,"CallExpression"===t.parent.type){const n=t.parent;"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type?n&&n.loc.start.line<e.loc.start.line&&(r=u(n).goodChar):function(e){const t=e.parent;return t.arguments.length>=2&&t.arguments[1]===e&&t.arguments[0].loc.end.line>t.arguments[0].loc.start.line}(t)&&n.callee.loc.start.line===n.callee.loc.end.line&&!l(t)&&(r=u(n).goodChar)}let o=n;null!==s.outerIIFEBody&&function(e){const t=e.parent;let r=t.parent;if("CallExpression"!==t.type||t.callee!==e)return!1;for(;"UnaryExpression"===r.type&&("!"===r.operator||"~"===r.operator||"+"===r.operator||"-"===r.operator)||"AssignmentExpression"===r.type||"LogicalExpression"===r.type||"SequenceExpression"===r.type||"VariableDeclarator"===r.type;)r=r.parent;return("ExpressionStatement"===r.type||"VariableDeclaration"===r.type)&&r.parent&&"Program"===r.parent.type}(t)?o=s.outerIIFEBody*n:"FunctionExpression"===t.type?o=s.FunctionExpression.body*n:"FunctionDeclaration"===t.type&&(o=s.FunctionDeclaration.body*n),r+=o;const i=m(e);i&&g(e,i)&&(r+=n*s.VariableDeclarator[i.parent.kind]),e.body.length>0&&d(e.body,r),f(e,r-o)}(e);let t,r=[];t=e.parent&&-1!==["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"].indexOf(e.parent.type)&&function(e){return"BlockStatement"===e.type||"ClassBody"===e.type||e.body&&"BlockStatement"===e.body.type||e.consequent&&"BlockStatement"===e.consequent.type}(e)?u(e.parent).goodChar:e.parent&&"CatchClause"===e.parent.type?u(e.parent.parent).goodChar:u(e).goodChar,r="IfStatement"===e.type&&"BlockStatement"!==e.consequent.type?[e.consequent]:Array.isArray(e.body)?e.body:[e.body],r.length>0&&d(r,t+n),"BlockStatement"===e.type&&f(e,t)}function v(e){"BlockStatement"!==e.body.type&&b(e)}function E(e,t){const r="SwitchStatement"===e.type?e:e.parent,o=void 0===t?u(r).goodChar:t;let a;return i[r.loc.start.line]?i[r.loc.start.line]:(a=r.cases.length>0&&0===s.SwitchCase?o:o+n*s.SwitchCase,i[r.loc.start.line]=a,a)}return{Program(e){e.body.length>0&&d(e.body,u(e).goodChar)},ClassBody:b,BlockStatement:b,WhileStatement:v,ForStatement:v,ForInStatement:v,ForOfStatement:v,DoWhileStatement:v,IfStatement(e){"BlockStatement"!==e.consequent.type&&e.consequent.loc.start.line>e.loc.start.line&&b(e)},VariableDeclaration(e){e.declarations[e.declarations.length-1].loc.start.line>e.declarations[0].loc.start.line&&function(e){const t=function(e){return e.declarations.reduce(((t,r)=>{const n=t[t.length-1];return(r.loc.start.line!==e.loc.start.line&&!n||n&&n.loc.start.line!==r.loc.start.line)&&t.push(r),t}),[])}(e),r=u(e).goodChar,i=t[t.length-1],a=r+n*s.VariableDeclarator[e.kind];if(d(t,a),o.getLastToken(e).loc.end.line<=i.loc.end.line)return;const c=o.getTokenBefore(i);","===c.value?f(e,u(c).goodChar):f(e,a-n)}(e)},ObjectExpression(e){x(e)},ArrayExpression(e){x(e)},MemberExpression(e){if(void 0===s.MemberExpression)return;if(y(e))return;if(h(e,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"]))return;if(h(e,"AssignmentExpression",["FunctionExpression"]))return;const t=u(e).goodChar+n*s.MemberExpression,r=[e.property],i=o.getTokenBefore(e.property);"Punctuator"===i.type&&"."===i.value&&r.push(i),d(r,t)},SwitchStatement(e){const t=u(e).goodChar,r=E(e,t);d(e.cases,r),f(e,t)},SwitchCase(e){if(y(e))return;const t=E(e);d(e.consequent,t+n)},FunctionDeclaration(e){y(e)||("first"===s.FunctionDeclaration.parameters&&e.params.length?d(e.params.slice(1),e.params[0].loc.start.column):null!==s.FunctionDeclaration.parameters&&d(e.params,u(e).goodChar+n*s.FunctionDeclaration.parameters))},FunctionExpression(e){y(e)||("first"===s.FunctionExpression.parameters&&e.params.length?d(e.params.slice(1),e.params[0].loc.start.column):null!==s.FunctionExpression.parameters&&d(e.params,u(e).goodChar+n*s.FunctionExpression.parameters))},ReturnStatement(e){if(y(e))return;const t=u(e).goodChar;!function(e){const t=o.getText(e).replace(o.getText(e.argument),"");return/^return\s*?\(\s*?\);*?/u.test(t)}(e)?p(e,t):function(e,t){const r=o.getLastToken(e,xh.isClosingParenToken);if(o.getText(r,r.loc.start.column).slice(0,-1).trim())return;const n=u(r,!0);n.goodChar!==t&&c(e,t,n.space,n.tab,{line:r.loc.start.line,column:r.loc.start.column},!0)}(e,t)},CallExpression(e){y(e)||("first"===s.CallExpression.arguments&&e.arguments.length?d(e.arguments.slice(1),e.arguments[0].loc.start.column):null!==s.CallExpression.arguments&&d(e.arguments,u(e).goodChar+n*s.CallExpression.arguments))}}}};function vh(e){return"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type}function Eh(e){const t=e.parent,r=t.parent;return vh(r)?"ForStatement"===r.type?r.init===t:r.left===t:Boolean(e.init)}var Ch={meta:{type:"suggestion",docs:{description:"require or disallow initialization in variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(e){const t="always",r=e.options[0]||t,n=e.options[1]||{};return{"VariableDeclaration:exit"(s){const o=s.kind,i=s.declarations;for(let a=0;a<i.length;++a){const c=i[a],u=c.id,l=Eh(c),p=n.ignoreForLoopInit&&vh(s.parent);let d="";r!==t||l?"never"===r&&"const"!==o&&l&&!p&&(d="notInitialized"):d="initialized","Identifier"===u.type&&d&&e.report({node:c,messageId:d,data:{idName:u.name}})}}}}};const Sh=Vp.exports,kh={"prefer-double":{quote:'"',description:"singlequote",convert:e=>e.replace(/'/gu,'"')},"prefer-single":{quote:"'",description:"doublequote",convert:e=>e.replace(/"/gu,"'")}};var Ah={meta:{type:"layout",docs:{description:"enforce the consistent use of either double or single quotes in JSX attributes",recommended:!1,url:"https://eslint.org/docs/rules/jsx-quotes"},fixable:"whitespace",schema:[{enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(e){const t=e.options[0]||"prefer-double",r=kh[t];return{JSXAttribute(t){const n=t.value;n&&Sh.isStringLiteral(n)&&!function(e){return-1!==e.value.indexOf(r.quote)||Sh.isSurroundedBy(e.raw,r.quote)}(n)&&e.report({node:n,messageId:"unexpected",data:{description:r.description},fix:e=>e.replaceText(n,r.convert(n.raw))})}}}};const Dh=Vp.exports;function wh(e){return e[e.length-1]}function Fh(e){return e.loc.end.line===e.loc.start.line}function Th(e,t){return e.mode=t.mode||"strict",void 0!==t.beforeColon?e.beforeColon=+t.beforeColon:e.beforeColon=0,void 0!==t.afterColon?e.afterColon=+t.afterColon:e.afterColon=1,void 0!==t.align&&("object"==typeof t.align?e.align=t.align:e.align={on:t.align,mode:e.mode,beforeColon:e.beforeColon,afterColon:e.afterColon}),e}var Ph={meta:{type:"layout",docs:{description:"enforce consistent spacing between keys and values in object literal properties",recommended:!1,url:"https://eslint.org/docs/rules/key-spacing"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},create(e){const t=e.options[0]||{},r=(i={},"object"==typeof(a=t).align?(i.align=Th({},a.align),i.align.on=a.align.on||"colon",i.align.mode=a.align.mode||"strict",i.multiLine=Th({},a.multiLine||a),i.singleLine=Th({},a.singleLine||a)):(i.multiLine=Th({},a.multiLine||a),i.singleLine=Th({},a.singleLine||a),i.multiLine.align&&(i.align={on:i.multiLine.align.on,mode:i.multiLine.align.mode||i.multiLine.mode,beforeColon:i.multiLine.align.beforeColon,afterColon:i.multiLine.align.afterColon})),i),n=r.multiLine,s=r.singleLine,o=r.align||null;var i,a;const c=e.getSourceCode();function u(e){return!(e.method||e.shorthand||"init"!==e.kind||"Property"!==e.type)}function l(e){const t=e.key;return e.computed?c.getText().slice(t.range[0],t.range[1]):Dh.getStaticPropertyName(e)}function p(t,r,n,s,o){const i=n.length-s;if((i&&"strict"===o||i<0&&"minimum"===o||i>0&&!s&&"minimum"===o)&&(!s||(a=n,!Dh.LINEBREAK_MATCHER.test(a)))){const n=function(e){return c.getTokenAfter(e,Dh.isColonToken)}(t.key),s=c.getTokenBefore(n,{includeComments:!0}),o=c.getTokenAfter(n,{includeComments:!0}),a="key"===r,u=i>0,p=Math.abs(i),d=Array(p+1).join(" "),f=a?s.loc.end:n.loc.start,h=a?n.loc.start:o.loc.start,m=a?s.loc:o.loc,g=u?{start:f,end:h}:m;let y;if(u){let e;e=a?[s.range[1],s.range[1]+p]:[o.range[0]-p,o.range[0]],y=function(t){return t.removeRange(e)}}else y=a?function(e){return e.insertTextAfter(s,d)}:function(e){return e.insertTextBefore(o,d)};let x="";x=u?"key"===r?"extraKey":"extraValue":"key"===r?"missingKey":"missingValue",e.report({node:t[r],loc:g,messageId:x,data:{computed:t.computed?"computed ":"",key:l(t)},fix:y})}var a}function d(e){const t=c.getFirstToken(e);return function(e){const t=c.getTokenAfter(e,Dh.isColonToken);return c.getTokenBefore(t)}(e.key).range[1]-t.range[0]}function f(e){const t=/(\s*):(\s*)/u.exec(c.getText().slice(e.key.range[1],e.value.range[0]));return t?{beforeColon:t[1],afterColon:t[2]}:null}function h(e){return 1===e.properties.length?[e.properties]:e.properties.reduce(((e,t)=>{const r=wh(e),n=wh(r);return!n||function(e,t){const r=e.loc.start.line,n=t.loc.start.line;if(n-r<=1)return!0;const s=c.getCommentsBefore(t);if(s.length&&s[0].loc.start.line-r<=1&&n-wh(s).loc.end.line<=1){for(let e=1;e<s.length;e++)if(s[e].loc.start.line-s[e-1].loc.end.line>1)return!1;return!0}return!1}(n,t)?r.push(t):e.push([t]),e}),[[]])}function m(e,t){const r=f(e);r&&(p(e,"key",r.beforeColon,t.beforeColon,t.mode),p(e,"value",r.afterColon,t.afterColon,t.mode))}function g(e,t){const r=e.length;for(let n=0;n<r;n++)m(e[n],t)}function y(e){h(e).forEach((e=>{const t=e.filter(u);t.length>0&&function(e){const[t]=e,r=wh(e);return t.loc.start.line===r.loc.end.line}(t)?g(t,n):function(e){const t=e.length,r=e.map(d),s=o.on;let i,a,c,u=Math.max(...r);o&&t>1?(i=o.beforeColon,a=o.afterColon,c=o.mode):(i=n.beforeColon,a=n.afterColon,c=o.mode),u+="colon"===s?i:a;for(let n=0;n<t;n++){const t=e[n],o=f(t);if(o){const e=r[n];"value"===s?(p(t,"key",o.beforeColon,i,c),p(t,"value",o.afterColon,u-e,c)):(p(t,"key",o.beforeColon,u-e,c),p(t,"value",o.afterColon,a,c))}}}(t)}))}return o?{ObjectExpression(e){Fh(e)?g(e.properties.filter(u),s):y(e)}}:{Property(e){m(e,Fh(e.parent)?s:n)}}}};const Ih=Vp.exports,_h=/^[)\]}>]$/u,Bh=/^(?:[([{<~!]|\+\+?|--?)$/u,Oh=/^[)\]}>*]$/u,Lh=/^[{*]$/u,jh=/\$\{$/u,Nh=/^\}/u,Rh=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,Mh=af.concat(["as","async","await","from","get","let","of","set","yield"]);function Vh(e){return"Template"===e.type&&jh.test(e.value)}function $h(e){return"Template"===e.type&&Nh.test(e.value)}!function(){Mh.sort();for(let e=1;e<Mh.length;++e)if(Mh[e]===Mh[e-1])throw new Error("Duplication was found in the keyword list: "+Mh[e])}();var Uh={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after keywords",recommended:!1,url:"https://eslint.org/docs/rules/keyword-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0},overrides:{type:"object",properties:Mh.reduce(((e,t)=>(e[t]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},e)),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(e){const t=e.getSourceCode(),r=new WeakSet;function n(n,s){const o=t.getTokenBefore(n);!o||!Rh.test(o.type)&&!s.test(o.value)||Vh(o)||r.has(o)||!Ih.isTokenOnSameLine(o,n)||t.isSpaceBetweenTokens(o,n)||e.report({loc:n.loc,messageId:"expectedBefore",data:n,fix:e=>e.insertTextBefore(n," ")})}function s(n,s){const o=t.getTokenBefore(n);o&&(Rh.test(o.type)||s.test(o.value))&&!Vh(o)&&!r.has(o)&&Ih.isTokenOnSameLine(o,n)&&t.isSpaceBetweenTokens(o,n)&&e.report({loc:{start:o.loc.end,end:n.loc.start},messageId:"unexpectedBefore",data:n,fix:e=>e.removeRange([o.range[1],n.range[0]])})}function o(n,s){const o=t.getTokenAfter(n);!o||!Rh.test(o.type)&&!s.test(o.value)||$h(o)||r.has(o)||!Ih.isTokenOnSameLine(n,o)||t.isSpaceBetweenTokens(n,o)||e.report({loc:n.loc,messageId:"expectedAfter",data:n,fix:e=>e.insertTextAfter(n," ")})}function i(n,s){const o=t.getTokenAfter(n);o&&(Rh.test(o.type)||s.test(o.value))&&!$h(o)&&!r.has(o)&&Ih.isTokenOnSameLine(n,o)&&t.isSpaceBetweenTokens(n,o)&&e.report({loc:{start:n.loc.end,end:o.loc.start},messageId:"unexpectedAfter",data:n,fix:e=>e.removeRange([n.range[1],o.range[0]])})}const a=function(e={}){const t=!1!==e.before,r=!1!==e.after,a={before:t?n:s,after:r?o:i},c=e&&e.overrides||{},u=Object.create(null);for(let e=0;e<Mh.length;++e){const l=Mh[e],p=c[l];if(p){const e="before"in p?p.before:t,a="after"in p?p.after:r;u[l]={before:e?n:s,after:a?o:i}}else u[l]=a}return u}(e.options[0]);function c(e,t){a[e.value].before(e,t||_h)}function u(e,t){a[e.value].after(e,t||Bh)}function l(e){c(e),u(e)}function p(e){const r=e&&t.getFirstToken(e);r&&"Keyword"===r.type&&l(r)}function d(e){const r=e&&t.getFirstToken(e);r&&"Keyword"===r.type&&c(r)}function f(e){if(e){l(t.getTokenBefore(e,Ih.isKeywordToken))}}function h(e){const r=e&&t.getFirstToken(e);r&&("Keyword"===r.type&&"function"===r.value||"async"===r.value)&&c(r)}function m(e){p(e),f(e.superClass)}function g(e){const r=t.getFirstToken(e);if(c(r,Oh),u(r,Lh),"ExportDefaultDeclaration"===e.type&&l(t.getTokenAfter(r)),"ExportAllDeclaration"===e.type&&e.exported){c(t.getTokenBefore(e.exported),Oh)}if(e.source){const r=t.getTokenBefore(e.source);c(r,Oh),u(r,Lh)}}function y(e){if(e.static&&p(e),"get"===e.kind||"set"===e.kind||(e.method||"MethodDefinition"===e.type)&&e.value.async){const r=t.getTokenBefore(e.key,(e=>{switch(e.value){case"get":case"set":case"async":return!0;default:return!1}}));if(!r)throw new Error("Failed to find token get, set, or async beside method name");l(r)}}return{DebuggerStatement:p,WithStatement:p,BreakStatement:p,ContinueStatement:p,ReturnStatement:p,ThrowStatement:p,TryStatement:function(e){p(e),p(e.handler),f(e.finalizer)},IfStatement:function(e){p(e),f(e.alternate)},SwitchStatement:p,SwitchCase:p,DoWhileStatement:function(e){p(e),f(e.test)},ForInStatement:function(e){p(e);const r=t.getTokenBefore(e.right,Ih.isNotOpeningParenToken);"PrivateIdentifier"!==t.getTokenBefore(r).type&&c(r),u(r)},ForOfStatement:function(e){e.await?(c(t.getFirstToken(e,0)),u(t.getFirstToken(e,1))):p(e);const r=t.getTokenBefore(e.right,Ih.isNotOpeningParenToken);"PrivateIdentifier"!==t.getTokenBefore(r).type&&c(r),u(r)},ForStatement:p,WhileStatement:p,ClassDeclaration:m,ExportNamedDeclaration:g,ExportDefaultDeclaration:g,ExportAllDeclaration:g,FunctionDeclaration:h,ImportDeclaration:g,VariableDeclaration:p,ArrowFunctionExpression:h,AwaitExpression:function(e){c(t.getFirstToken(e))},ClassExpression:m,FunctionExpression:h,NewExpression:d,Super:d,ThisExpression:d,UnaryExpression:d,YieldExpression:d,ImportNamespaceSpecifier:function(e){c(t.getFirstToken(e,1),Oh)},MethodDefinition:y,PropertyDefinition:y,StaticBlock:p,Property:y,"BinaryExpression[operator='>']"(e){const n=t.getTokenBefore(e.right,Ih.isNotOpeningParenToken);r.add(n)}}}};const qh=Vp.exports;var Wh={meta:{type:"layout",docs:{description:"enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){const t=e.options[0];let r,n,s=!0;t&&"string"!=typeof t?(r=!t.position||"above"===t.position,n=t.ignorePattern,s=Object.prototype.hasOwnProperty.call(t,"applyDefaultIgnorePatterns")?t.applyDefaultIgnorePatterns:!1!==t.applyDefaultPatterns):r=!t||"above"===t;const o=qh.COMMENTS_IGNORE_PATTERN,i=/^\s*falls?\s?through/u,a=new RegExp(n,"u"),c=e.getSourceCode();return{Program(){c.getAllComments().filter((e=>"Line"===e.type)).forEach((t=>{if(s&&(o.test(t.value)||i.test(t.value)))return;if(n&&a.test(t.value))return;const u=c.getTokenBefore(t,{includeComments:!0}),l=u&&u.loc.end.line===t.loc.start.line;r?l&&e.report({node:t,messageId:"above"}):l||e.report({node:t,messageId:"beside"})}))}}}};const zh=Vp.exports;var Gh={meta:{type:"layout",docs:{description:"enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){const t=e.getSourceCode();function r(e,t){return function(r){return r.replaceTextRange(e,t)}}return{Program:function(n){const s="unix"===(e.options[0]||"unix"),o=s?"\n":"\r\n",i=t.getText(),a=zh.createGlobalLinebreakMatcher();let c,u=0;for(;null!==(c=a.exec(i));){if(u++,c[0]===o)continue;const i=c.index,a=[i,i+c[0].length];e.report({node:n,loc:{start:{line:u,column:t.lines[u-1].length},end:{line:u+1,column:0}},messageId:s?"expectedLF":"expectedCRLF",fix:r(a,o)})}}}}};const Hh=Vp.exports;var Kh={meta:{type:"layout",docs:{description:"require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(e){const t=Object.assign({},e.options[0]),r=t.ignorePattern,n=Hh.COMMENTS_IGNORE_PATTERN,s=new RegExp(r,"u"),o=!1!==t.applyDefaultIgnorePatterns;t.beforeBlockComment=void 0===t.beforeBlockComment||t.beforeBlockComment;const i=e.getSourceCode(),a=i.lines,c=a.length+1,u=i.getAllComments(),l=function(e){const t=[];return e.forEach((e=>{const r=e.loc.start.line,n=e.loc.end.line;t.push(r,n)})),t}(u),p=function(e){return e.map(((e,t)=>({code:e.trim(),num:t+1}))).filter((e=>!e.code)).map((e=>e.num))}(a),d=l.concat(p);function f(e,t){return e.type===t||e.body&&e.body.type===t||e.consequent&&e.consequent.type===t}function h(e){const t=i.getNodeByRangeIndex(e.range[0]);if(t&&"StaticBlock"===t.type){const r=i.getFirstToken(t,{skip:1});return e.range[0]>=r.range[0]?t:null}return t}function m(e,t){const r=h(e);if(r&&f(r,t)){const t="StaticBlock"===r.type?i.getFirstToken(r,{skip:1}):r;return e.loc.start.line-t.loc.start.line==1}return!1}function g(e,t){const r=h(e);return!!r&&f(r,t)&&r.loc.end.line-e.loc.end.line==1}function y(e){return m(e,"ClassBody")}function x(e){return g(e,"ClassBody")}function b(a,u){if(o&&n.test(a.value))return;if(r&&s.test(a.value))return;let l=u.after,p=u.before;const f=a.loc.start.line-1,h=a.loc.end.line+1,b=function(e){let t=e;do{t=i.getTokenBefore(t,{includeComments:!0})}while(t&&Hh.isCommentToken(t));if(t&&Hh.isTokenOnSameLine(t,e))return!0;t=e;do{t=i.getTokenAfter(t,{includeComments:!0})}while(t&&Hh.isCommentToken(t));return!(!t||!Hh.isTokenOnSameLine(e,t))}(a),v=t.allowBlockStart&&function(e){return m(e,"ClassBody")||m(e,"BlockStatement")||m(e,"StaticBlock")||m(e,"SwitchCase")}(a)&&!(!1===t.allowClassStart&&y(a)),E=t.allowBlockEnd&&function(e){return g(e,"ClassBody")||g(e,"BlockStatement")||g(e,"StaticBlock")||g(e,"SwitchCase")||g(e,"SwitchStatement")}(a)&&!(!1===t.allowClassEnd&&x(a)),C=t.allowClassStart&&y(a),S=t.allowClassEnd&&x(a),k=t.allowObjectStart&&function(e){return m(e,"ObjectExpression")||m(e,"ObjectPattern")}(a),A=t.allowObjectEnd&&function(e){return g(e,"ObjectExpression")||g(e,"ObjectPattern")}(a),D=t.allowArrayStart&&function(e){return m(e,"ArrayExpression")||m(e,"ArrayPattern")}(a),w=t.allowArrayEnd&&function(e){return g(e,"ArrayExpression")||g(e,"ArrayPattern")}(a),F=v||C||k||D,T=E||S||A||w;if(f<1&&(p=!1),h>=c&&(l=!1),b)return;const P=i.getTokenBefore(a,{includeComments:!0}),I=i.getTokenAfter(a,{includeComments:!0});if(!F&&p&&!d.includes(f)&&(!Hh.isCommentToken(P)||!Hh.isTokenOnSameLine(P,a))){const t=a.range[0]-a.loc.start.column,r=[t,t];e.report({node:a,messageId:"before",fix:e=>e.insertTextBeforeRange(r,"\n")})}T||!l||d.includes(h)||Hh.isCommentToken(I)&&Hh.isTokenOnSameLine(a,I)||e.report({node:a,messageId:"after",fix:e=>e.insertTextAfter(a,"\n")})}return{Program(){u.forEach((e=>{"Line"===e.type?(t.beforeLineComment||t.afterLineComment)&&b(e,{after:t.afterLineComment,before:t.beforeLineComment}):"Block"===e.type&&(t.beforeBlockComment||t.afterBlockComment)&&b(e,{after:t.afterBlockComment,before:t.beforeBlockComment})}))}}}};const Jh=Vp.exports;var Qh={meta:{type:"layout",docs:{description:"require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/rules/lines-around-directive"},schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{before:{enum:["always","never"]},after:{enum:["always","never"]}},additionalProperties:!1,minProperties:2}]}],fixable:"whitespace",messages:{expected:'Expected newline {{location}} "{{value}}" directive.',unexpected:'Unexpected newline {{location}} "{{value}}" directive.'},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode(),r=e.options[0]||"always",n="string"==typeof r?r:r.before,s="string"==typeof r?r:r.after;function o(e){const r=t.getTokenBefore(e,{includeComments:!0}),n=r?r.loc.end.line:0;return e.loc.start.line-n>=2}function i(e){const r=t.getLastToken(e),n=t.getTokenBefore(r);return Jh.isSemicolonToken(r)&&r.loc.start.line>n.loc.end.line?n:r}function a(e){const r=i(e);return t.getTokenAfter(r,{includeComments:!0}).loc.start.line-r.loc.end.line>=2}function c(t,r,n){e.report({node:t,messageId:n?"expected":"unexpected",data:{value:t.expression.value,location:r},fix(e){const s=i(t);return n?"before"===r?e.insertTextBefore(t,"\n"):e.insertTextAfter(s,"\n"):e.removeRange("before"===r?[t.range[0]-1,t.range[0]]:[s.range[1],s.range[1]+1])}})}function u(e){const r=Jh.getDirectivePrologue(e);if(!r.length)return;const i=r[0],u=t.getCommentsBefore(i);u.length?("always"!==n||o(i)||c(i,"before",!0),"never"===n&&o(i)&&c(i,"before",!1)):"Program"===e.type&&"never"===n&&!u.length&&o(i)&&c(i,"before",!1);const l=r[r.length-1],p="Program"===e.type?e.body:e.body.body;(l!==p[p.length-1]||l.trailingComments)&&("always"!==s||a(l)||c(l,"after",!0),"never"===s&&a(l)&&c(l,"after",!1))}return{Program:u,FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u}}};const Xh=Vp.exports;var Yh={meta:{type:"layout",docs:{description:"require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/rules/lines-between-class-members"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},create(e){const t=[];t[0]=e.options[0]||"always",t[1]=e.options[1]||{exceptAfterSingleLine:!1};const r=e.getSourceCode();function n(e,t){const n=r.getLastToken(e),s=r.getTokenBefore(n),o=r.getFirstToken(t);return Xh.isSemicolonToken(n)&&!Xh.isTokenOnSameLine(s,n)&&Xh.isTokenOnSameLine(n,o)?{curLast:s,nextFirst:n}:{curLast:n,nextFirst:o}}function s(e,t,n){const o=r.getTokenAfter(e,{includeComments:!0});return o!==t&&o.loc.start.line-e.loc.end.line<=n?s(o,t,n):e}function o(e,t,n){const s=r.getTokenBefore(e,{includeComments:!0});return s!==t&&e.loc.start.line-s.loc.end.line<=n?o(s,t,n):e}return{ClassBody(i){const a=i.body;for(let i=0;i<a.length-1;i++){const l=r.getFirstToken(a[i]),{curLast:p,nextFirst:d}=n(a[i],a[i+1]),f=!!Xh.isTokenOnSameLine(l,p)&&t[1].exceptAfterSingleLine,h=s(p,d,1),m=o(d,p,1),g=m.loc.start.line-h.loc.end.line>1,y=(c=h,u=m,0!==r.getTokensBetween(c,u,{includeComments:!0}).length),x=s(p,d,0);("always"===t[0]&&!f&&!g||"never"===t[0]&&g)&&e.report({node:a[i+1],messageId:g?"never":"always",fix:e=>y?null:g?e.replaceTextRange([h.range[1],m.range[0]],"\n"):e.insertTextAfter(x,"\n")})}var c,u}}}},Zh={meta:{type:"suggestion",docs:{description:"enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/rules/max-classes-per-file"},schema:[{oneOf:[{type:"integer",minimum:1},{type:"object",properties:{ignoreExpressions:{type:"boolean"},max:{type:"integer",minimum:1}},additionalProperties:!1}]}],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(e){const[t={}]=e.options,[r,n]="number"==typeof t?[!1,t||1]:[t.ignoreExpressions,t.max||1];let s=0;return{Program(){s=0},"Program:exit"(t){s>n&&e.report({node:t,messageId:"maximumExceeded",data:{classCount:s,max:n}})},ClassDeclaration(){s++},ClassExpression(){r||s++}}}},em={meta:{type:"suggestion",docs:{description:"enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/rules/max-depth"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(e){const t=[],r=e.options[0];let n=4;function s(){t.push(0)}function o(){t.pop()}function i(r){const s=++t[t.length-1];s>n&&e.report({node:r,messageId:"tooDeeply",data:{depth:s,maxDepth:n}})}function a(){t[t.length-1]--}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))&&(n=r.maximum||r.max),"number"==typeof r&&(n=r),{Program:s,FunctionDeclaration:s,FunctionExpression:s,ArrowFunctionExpression:s,StaticBlock:s,IfStatement(e){"IfStatement"!==e.parent.type&&i(e)},SwitchStatement:i,TryStatement:i,DoWhileStatement:i,WhileStatement:i,WithStatement:i,ForStatement:i,ForInStatement:i,ForOfStatement:i,"IfStatement:exit":a,"SwitchStatement:exit":a,"TryStatement:exit":a,"DoWhileStatement:exit":a,"WhileStatement:exit":a,"WithStatement:exit":a,"ForStatement:exit":a,"ForInStatement:exit":a,"ForOfStatement:exit":a,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o,"StaticBlock:exit":o,"Program:exit":o}}};const tm={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},rm={anyOf:[tm,{type:"integer",minimum:0}]};var nm={meta:{type:"layout",docs:{description:"enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/rules/max-len"},schema:[rm,rm,tm],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(e){const t=/[^:/?#]:\/\/[^?#]/u,r=e.getSourceCode();const n=Object.assign({},e.options[e.options.length-1]);"number"==typeof e.options[0]&&(n.code=e.options[0]),"number"==typeof e.options[1]&&(n.tabWidth=e.options[1]);const s="number"==typeof n.code?n.code:80,o="number"==typeof n.tabWidth?n.tabWidth:4,i=!!n.ignoreComments,a=!!n.ignoreStrings,c=!!n.ignoreTemplateLiterals,u=!!n.ignoreRegExpLiterals,l=!!n.ignoreTrailingComments||!!n.ignoreComments,p=!!n.ignoreUrls,d=n.comments;let f=n.ignorePattern||null;function h(e,t,r){return r&&r.loc.start.line===t&&t<=r.loc.end.line&&(r.loc.end.line>t||r.loc.end.column===e.length)}function m(e,t){return e.slice(0,t.loc.start.column).replace(/\s+$/u,"")}function g(e,t){for(let o=t.loc.start.line;o<=t.loc.end.line;++o)r=e,n=o,s=t,Array.isArray(r[n])||(r[n]=[]),r[n].push(s);var r,n,s;return e}return f&&(f=new RegExp(f,"u")),{Program:function(n){const y=r.lines,x=i||d||l?function(){const e=[];return r.getAllComments().forEach((t=>{const n=r.getNodeByRangeIndex(t.range[0]);!function(e){if(!e||!e.parent||"JSXEmptyExpression"!==e.type||"JSXExpressionContainer"!==e.parent.type)return!1;const t=e.parent;return t.loc.start.line===t.loc.end.line}(n)?e.push(t):e[e.length-1]!==n.parent&&e.push(n.parent)})),e}():[];let b=0;const v=r.ast.tokens.filter((e=>"String"===e.type||"JSXText"===e.type&&"JSXAttribute"===r.getNodeByRangeIndex(e.range[0]-1).type)).reduce(g,{}),E=r.ast.tokens.filter((e=>"Template"===e.type)).reduce(g,{}),C=r.ast.tokens.filter((e=>"RegularExpression"===e.type)).reduce(g,{});y.forEach(((r,g)=>{const y=g+1;let S,k=!1;if(b<x.length){let e=null;do{e=x[++b]}while(e&&e.loc.start.line<=y);if(e=x[--b],function(e,t,r){const n=r.loc.start,s=r.loc.end,o=!e.slice(0,r.loc.start.column).trim();return r&&(n.line<t||n.line===t&&o)&&(s.line>t||s.line===t&&s.column===e.length)}(r,y,e))k=!0,S=r;else if(l&&h(r,y,e)){S=m(r,e);let t=b;for(;h(S,y,x[--t]);)S=m(S,x[t])}else S=r}else S=r;if(f&&f.test(S)||p&&t.test(S)||a&&v[y]||c&&E[y]||u&&C[y])return;const A=function(e,t){let r=0;return e.replace(/\t/gu,((e,n)=>{r+=t-(t?(n+r)%t:0)-1})),Array.from(e).length+r}(S,o),D=k&&d;if(k&&i)return;const w={start:{line:y,column:0},end:{line:y,column:S.length}};D?A>d&&e.report({node:n,loc:w,messageId:"maxComment",data:{lineLength:A,maxCommentLength:d}}):A>s&&e.report({node:n,loc:w,messageId:"max",data:{lineLength:A,maxLength:s}})}))}}}};const sm=Vp.exports;var om={meta:{type:"suggestion",docs:{description:"enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/rules/max-lines"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"}},additionalProperties:!1}]}],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=300;"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"max")?r=t.max:"number"==typeof t&&(r=t);const n=t&&t.skipComments,s=t&&t.skipBlankLines,o=e.getSourceCode();function i(e){return e&&("Block"===e.type||"Line"===e.type)}function a(e){let t,r=e.loc.start.line,n=e.loc.end.line;t=e;do{t=o.getTokenBefore(t,{includeComments:!0})}while(i(t));t&&sm.isTokenOnSameLine(t,e)&&(r+=1),t=e;do{t=o.getTokenAfter(t,{includeComments:!0})}while(i(t));return t&&sm.isTokenOnSameLine(e,t)&&(n-=1),r<=n?function(e,t){return[...Array(t-e).keys()].map((t=>t+e))}(r,n+1):[]}return{"Program:exit"(){let t=o.lines.map(((e,t)=>({lineNumber:t+1,text:e})));if(t.length>1&&""===t[t.length-1].text&&t.pop(),s&&(t=t.filter((e=>""!==e.text.trim()))),n){const e=o.getAllComments().flatMap(a);t=t.filter((t=>!e.includes(t.lineNumber)))}if(t.length>r){const n={start:{line:t[r].lineNumber,column:0},end:{line:o.lines.length,column:o.lines[o.lines.length-1].length}};e.report({loc:n,messageId:"exceed",data:{max:r,actual:t.length}})}}}}};const im=Vp.exports,{upperCaseFirst:am}=Rd;var cm={meta:{type:"suggestion",docs:{description:"enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/rules/max-lines-per-function"},schema:[{oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]}],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(e){const t=e.getSourceCode(),r=t.lines,n=e.options[0];let s=50,o=!1,i=!1,a=!1;"object"==typeof n?(s="number"==typeof n.max?n.max:50,o=!!n.skipComments,i=!!n.skipBlankLines,a=!!n.IIFEs):"number"==typeof n&&(s=n);const c=function(e){const t=new Map;return e.forEach((e=>{for(let r=e.loc.start.line;r<=e.loc.end.line;r++)t.set(r,e)})),t}(t.getAllComments());function u(e,t,r){const n=r.loc.start,s=r.loc.end,o=n.line===t&&!e.slice(0,n.column).trim(),i=s.line===t&&!e.slice(s.column).trim();return r&&(n.line<t||o)&&(s.line>t||i)}function l(t){const n=function(e){return!!e.parent&&e===e.parent.value&&("MethodDefinition"===e.parent.type||"Property"===e.parent.type&&(!0===e.parent.method||"get"===e.parent.kind||"set"===e.parent.kind))}(t)?t.parent:t;if(!a&&function(e){return("FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type)&&e.parent&&"CallExpression"===e.parent.type&&e.parent.callee===e}(n))return;let l=0;for(let e=n.loc.start.line-1;e<n.loc.end.line;++e){const t=r[e];o&&c.has(e+1)&&u(t,e+1,c.get(e+1))||(i&&t.match(/^\s*$/u)||l++)}if(l>s){const r=am(im.getFunctionNameWithKind(t));e.report({node:n,messageId:"exceed",data:{name:r,lineCount:l,maxLines:s}})}}return{FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l}}},um={meta:{type:"suggestion",docs:{description:"enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/rules/max-nested-callbacks"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=10;"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"maximum")||Object.prototype.hasOwnProperty.call(t,"max"))?r=t.maximum||t.max:"number"==typeof t&&(r=t);const n=[];function s(t){if("CallExpression"===t.parent.type&&n.push(t),n.length>r){const s={num:n.length,max:r};e.report({node:t,messageId:"exceed",data:s})}}function o(){n.pop()}return{ArrowFunctionExpression:s,"ArrowFunctionExpression:exit":o,FunctionExpression:s,"FunctionExpression:exit":o}}};const lm=Vp.exports,{upperCaseFirst:pm}=Rd;var dm={meta:{type:"suggestion",docs:{description:"enforce a maximum number of parameters in function definitions",recommended:!1,url:"https://eslint.org/docs/rules/max-params"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(e){const t=e.getSourceCode(),r=e.options[0];let n=3;function s(r){r.params.length>n&&e.report({loc:lm.getFunctionHeadLoc(r,t),node:r,messageId:"exceed",data:{name:pm(lm.getFunctionNameWithKind(r)),count:r.params.length,max:n}})}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))&&(n=r.maximum||r.max),"number"==typeof r&&(n=r),{FunctionDeclaration:s,ArrowFunctionExpression:s,FunctionExpression:s}}};const fm=Vp.exports,{upperCaseFirst:hm}=Rd;var mm={meta:{type:"suggestion",docs:{description:"enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/rules/max-statements"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]},{type:"object",properties:{ignoreTopLevelFunctions:{type:"boolean"}},additionalProperties:!1}],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(e){const t=[],r=e.options[0],n=e.options[1]&&e.options[1].ignoreTopLevelFunctions||!1,s=[];let o=10;function i(t,r,n){if(r>n){const s=hm(fm.getFunctionNameWithKind(t));e.report({node:t,messageId:"exceed",data:{name:s,count:r,max:n}})}}function a(){t.push(0)}function c(e){const r=t.pop();"StaticBlock"!==e.type&&(n&&0===t.length?s.push({node:e,count:r}):i(e,r,o))}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))?o=r.maximum||r.max:"number"==typeof r&&(o=r),{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,StaticBlock:a,BlockStatement:function(e){t[t.length-1]+=e.body.length},"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c,"StaticBlock:exit":c,"Program:exit"(){1!==s.length&&s.forEach((e=>{const t=e.count;i(e.node,t,o)}))}}}};const gm=Vp.exports;var ym={meta:{type:"layout",docs:{description:"enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/rules/max-statements-per-line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},n=void 0!==r.max?r.max:1;let s,o=0,i=0;const a=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function c(){s&&e.report({node:s,messageId:"exceed",data:{numberOfStatementsOnThisLine:i,maxStatementsPerLine:n,statements:1===i?"statement":"statements"}}),s=null}function u(e){const t=e.loc.start.line;a.test(e.parent.type)&&e.parent.alternate!==e||(t===o?i+=1:(c(),i=1,o=t),i===n+1&&(s=s||e))}function l(e){const r=function(e){return t.getLastToken(e,gm.isNotSemicolonToken)}(e).loc.end.line;r!==o&&(c(),i=1,o=r)}return{BreakStatement:u,ClassDeclaration:u,ContinueStatement:u,DebuggerStatement:u,DoWhileStatement:u,ExpressionStatement:u,ForInStatement:u,ForOfStatement:u,ForStatement:u,FunctionDeclaration:u,IfStatement:u,ImportDeclaration:u,LabeledStatement:u,ReturnStatement:u,SwitchStatement:u,ThrowStatement:u,TryStatement:u,VariableDeclaration:u,WhileStatement:u,WithStatement:u,ExportNamedDeclaration:u,ExportDefaultDeclaration:u,ExportAllDeclaration:u,"BreakStatement:exit":l,"ClassDeclaration:exit":l,"ContinueStatement:exit":l,"DebuggerStatement:exit":l,"DoWhileStatement:exit":l,"ExpressionStatement:exit":l,"ForInStatement:exit":l,"ForOfStatement:exit":l,"ForStatement:exit":l,"FunctionDeclaration:exit":l,"IfStatement:exit":l,"ImportDeclaration:exit":l,"LabeledStatement:exit":l,"ReturnStatement:exit":l,"SwitchStatement:exit":l,"ThrowStatement:exit":l,"TryStatement:exit":l,"VariableDeclaration:exit":l,"WhileStatement:exit":l,"WithStatement:exit":l,"ExportNamedDeclaration:exit":l,"ExportDefaultDeclaration:exit":l,"ExportAllDeclaration:exit":l,"Program:exit":c}}};const xm=Vp.exports;var bm={meta:{type:"suggestion",docs:{description:"enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/rules/multiline-comment-style"},fixable:"whitespace",schema:[{enum:["starred-block","separate-lines","bare-block"]}],messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"starred-block";function n([e]){if("Block"!==e.type)return!1;const t=e.value.split(xm.LINEBREAK_MATCHER);return t.length>0&&t.every(((e,r)=>(0===r||r===t.length-1?/^\s*$/u:/^\s*\*/u).test(e)))}function s([e]){if("Block"!==e.type)return!1;const t=e.value.split(xm.LINEBREAK_MATCHER);return/^\*\s*$/u.test(t[0])&&t.slice(1,-1).every((e=>/^\s* /u.test(e)))&&/^\s*$/u.test(t[t.length-1])}function o(e){const[r]=e;return"Line"===r.type?function(e){const t=e.map((({value:e})=>e)).filter((e=>e.trim().length)).every((e=>e.startsWith(" ")));return e.map((({value:e})=>t?e.replace(/^ /u,""):e))}(e):n(e)?function(e){const t=e.value.split(xm.LINEBREAK_MATCHER).filter(((e,t,r)=>!(0===t||t===r.length-1))).map((e=>e.replace(/^\s*$/u,""))),r=t.map((e=>e.replace(/\s*\*/u,""))).filter((e=>e.trim().length)).every((e=>e.startsWith(" ")));return t.map((e=>e.replace(r?/\s*\* ?/u:/\s*\*/u,"")))}(r):function(e){const r=e.value.split(xm.LINEBREAK_MATCHER).map((e=>e.replace(/^\s*$/u,""))),n=t.text.slice(e.range[0]-e.loc.start.column,e.range[0])+" ";let s="";for(const[e,t]of r.entries()){if(!t.trim().length||0===e)continue;const[,r]=t.match(/^(\s*\*?\s*)/u);if(r.length<n.length){const e=n.slice(r.length-n.length);e.length>s.length&&(s=e)}}return r.map((e=>{const t=e.match(/^(\s*\*?\s*)(.*)/u),[,r,o]=t;return r.length>n.length?`${r.slice(n.length-(s.length+r.length))}${o}`:r.length<n.length?`${r.slice(n.length)}${o}`:o}))}(r)}function i(e){return t.text.slice(e.range[0]-e.loc.start.column,e.range[0])}function a(e,t){return`/* ${t.join(`\n${i(e)} `)} */`}const c={"starred-block"(r){const[n]=r,s=o(r);if(!s.some((e=>e.includes("*/"))))if(r.length>1)e.report({loc:{start:n.loc.start,end:r[r.length-1].loc.end},messageId:"expectedBlock",fix(e){const t=[n.range[0],r[r.length-1].range[1]];return s.some((e=>e.startsWith("/")))?null:e.replaceTextRange(t,function(e,t){const r=i(e);return`/*\n${t.map((e=>`${r} * ${e}`)).join("\n")}\n${r} */`}(n,s))}});else{const r=n.value.split(xm.LINEBREAK_MATCHER),s=i(n)+" *";if(!/^\*?\s*$/u.test(r[0])){const t=n.value.startsWith("*")?n.range[0]+1:n.range[0];e.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+2}},messageId:"startNewline",fix:e=>e.insertTextAfterRange([t,t+2],"\n"+s)})}/^\s*$/u.test(r[r.length-1])||e.report({loc:{start:{line:n.loc.end.line,column:n.loc.end.column-2},end:n.loc.end},messageId:"endNewline",fix:e=>e.replaceTextRange([n.range[1]-2,n.range[1]],`\n${s}/`)});for(let o=n.loc.start.line+1;o<=n.loc.end.line;o++){const i=t.lines[o-1],a=/^\s*\*/u.test(i)?"alignment":"missingStar";i.startsWith(s)||e.report({loc:{start:{line:o,column:0},end:{line:o,column:i.length}},messageId:a,fix(e){const c=t.getIndexFromLoc({line:o,column:0});if("alignment"===a){const[,t=""]=i.match(/^(\s*\*)/u)||[],r=c+t.length;return e.replaceTextRange([c,r],s)}const[,u=""]=i.match(/^(\s*)/u)||[],l=c+u.length;let p;for(const[e,s]of r.entries()){if(!/\S+/u.test(s))continue;const r=t.lines[n.loc.start.line-1+e],[,o="",a=""]=r.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];p=`${u.slice(o.length)}${a}`,/^\s*\//u.test(i)&&0===p.length&&(p+=" ");break}return e.replaceTextRange([c,l],`${s}${p}`)}})}}},"separate-lines"(r){const[n]=r;if("Block"!==n.type||s(r))return;const a=o(r),c=t.getTokenAfter(n,{includeComments:!0});c&&n.loc.end.line===c.loc.start.line||e.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+2}},messageId:"expectedLines",fix:e=>e.replaceText(n,function(e,t){return t.map((e=>"// "+e)).join("\n"+i(e))}(n,a))})},"bare-block"(t){if(s(t))return;const[r]=t,i=o(t);"Line"===r.type&&i.length>1&&!i.some((e=>e.includes("*/")))&&e.report({loc:{start:r.loc.start,end:t[t.length-1].loc.end},messageId:"expectedBlock",fix:e=>e.replaceTextRange([r.range[0],t[t.length-1].range[1]],a(r,i))}),n(t)&&e.report({loc:{start:r.loc.start,end:{line:r.loc.start.line,column:r.loc.start.column+2}},messageId:"expectedBareBlock",fix:e=>e.replaceText(r,a(r,i))})}};return{Program:()=>t.getAllComments().filter((e=>"Shebang"!==e.type)).filter((e=>!xm.COMMENTS_IGNORE_PATTERN.test(e.value))).filter((e=>{const r=t.getTokenBefore(e,{includeComments:!0});return!r||r.loc.end.line<e.loc.start.line})).reduce(((e,r,n,s)=>{const o=t.getTokenBefore(r,{includeComments:!0});return"Line"===r.type&&n&&"Line"===s[n-1].type&&o&&o.loc.end.line===r.loc.start.line-1&&o===s[n-1]?e[e.length-1].push(r):e.push([r]),e}),[]).filter((e=>!(1===e.length&&e[0].loc.start.line===e[0].loc.end.line))).forEach(c[r])}}};const vm=Vp.exports;var Em={meta:{type:"layout",docs:{description:"enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/rules/multiline-ternary"},schema:[{enum:["always","always-multiline","never"]}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(e){const t=e.getSourceCode(),r=e.options[0],n="never"!==r,s="always-multiline"===r;return{ConditionalExpression(r){const o=t.getTokenAfter(r.test,vm.isNotClosingParenToken),i=t.getTokenAfter(r.consequent,vm.isNotClosingParenToken),a=t.getFirstToken(r),c=t.getTokenBefore(o),u=t.getTokenAfter(o),l=t.getTokenBefore(i),p=t.getTokenAfter(i),d=vm.isTokenOnSameLine(c,u),f=vm.isTokenOnSameLine(l,p),h=!!t.getCommentsInside(r).length;if(n){if(s&&r.loc.start.line===r.loc.end.line)return;d&&e.report({node:r.test,loc:{start:a.loc.start,end:c.loc.end},messageId:"expectedTestCons",fix:e=>h?null:e.replaceTextRange([c.range[1],o.range[0]],"\n")}),f&&e.report({node:r.consequent,loc:{start:u.loc.start,end:l.loc.end},messageId:"expectedConsAlt",fix:e=>h?null:e.replaceTextRange([l.range[1],i.range[0]],"\n")})}else d||e.report({node:r.test,loc:{start:a.loc.start,end:c.loc.end},messageId:"unexpectedTestCons",fix:e=>{if(h)return null;const t=[],r=vm.isTokenOnSameLine(c,o),n=vm.isTokenOnSameLine(o,u);return r||t.push(e.removeRange([c.range[1],o.range[0]])),n||t.push(e.removeRange([o.range[1],u.range[0]])),t}}),f||e.report({node:r.consequent,loc:{start:u.loc.start,end:l.loc.end},messageId:"unexpectedConsAlt",fix:e=>{if(h)return null;const t=[],r=vm.isTokenOnSameLine(l,i),n=vm.isTokenOnSameLine(i,p);return r||t.push(e.removeRange([l.range[1],i.range[0]])),n||t.push(e.removeRange([i.range[1],p.range[0]])),t}})}}}};const Cm=Vp.exports,Sm=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function km(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)&&!Array.isArray(e[t]))throw new TypeError(t+", if provided, must be an Array");return e[t]||r}function Am(e,t){return e[t]=!0,e}var Dm={meta:{type:"suggestion",docs:{description:"require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/rules/new-cap"},schema:[{type:"object",properties:{newIsCap:{type:"boolean",default:!0},capIsNew:{type:"boolean",default:!0},newIsCapExceptions:{type:"array",items:{type:"string"}},newIsCapExceptionPattern:{type:"string"},capIsNewExceptions:{type:"array",items:{type:"string"}},capIsNewExceptionPattern:{type:"string"},properties:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{upper:"A function with a name starting with an uppercase letter should only be used as a constructor.",lower:"A constructor name should not start with a lowercase letter."}},create(e){const t=Object.assign({},e.options[0]);t.newIsCap=!1!==t.newIsCap,t.capIsNew=!1!==t.capIsNew;const r=!1===t.properties,n=km(t,"newIsCapExceptions",[]).reduce(Am,{}),s=t.newIsCapExceptionPattern?new RegExp(t.newIsCapExceptionPattern,"u"):null,o=function(e){let t=km(e,"capIsNewExceptions",Sm);return t!==Sm&&(t=t.concat(Sm)),t.reduce(Am,{})}(t),i=t.capIsNewExceptionPattern?new RegExp(t.capIsNewExceptionPattern,"u"):null,a={},c=e.getSourceCode();function u(e){return"Identifier"===e.callee.type?e.callee.name:Cm.getStaticPropertyName(e.callee)||""}function l(e){const t=e.charAt(0),r=t.toLowerCase();return r===t.toUpperCase()?"non-alpha":t===r?"lower":"upper"}function p(e,t,n,s){const o=c.getText(t.callee);if(e[n]||e[o])return!0;if(s&&s.test(o))return!0;const i=Cm.skipChainExpression(t.callee);return"UTC"===n&&"MemberExpression"===i.type?"Identifier"===i.object.type&&"Date"===i.object.name:r&&"MemberExpression"===i.type}function d(t,r){let n=Cm.skipChainExpression(t.callee);"MemberExpression"===n.type&&(n=n.property),e.report({node:t,loc:n.loc,messageId:r})}return t.newIsCap&&(a.NewExpression=function(e){const t=u(e);if(t){"lower"!==l(t)||p(n,e,t,s)||d(e,"lower")}}),t.capIsNew&&(a.CallExpression=function(e){const t=u(e);if(t){"upper"!==l(t)||p(o,e,t,i)||d(e,"upper")}}),a}};const wm=Vp.exports;var Fm={meta:{type:"layout",docs:{description:"enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/rules/new-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1}]},messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){const t="never"!==e.options[0],r=e.getSourceCode();return{NewExpression(n){if(0!==n.arguments.length)return;const s=r.getLastToken(n),o=s&&wm.isClosingParenToken(s)&&wm.isOpeningParenToken(r.getTokenBefore(s))&&n.callee.range[1]<n.range[1];t?o||e.report({node:n,messageId:"missing",fix:e=>e.insertTextAfter(n,"()")}):o&&e.report({node:n,messageId:"unnecessary",fix:e=>[e.remove(r.getTokenBefore(s)),e.remove(s),e.insertTextBefore(n,"("),e.insertTextAfter(n,")")]})}}}};const Tm=Vp.exports;var Pm={meta:{type:"layout",docs:{description:"require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/newline-after-var"},schema:[{enum:["never","always"]}],fixable:"whitespace",messages:{expected:"Expected blank line after variable declarations.",unexpected:"Unexpected blank line after variable declarations."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode(),r="never"===e.options[0]?"never":"always",n=t.getAllComments().reduce(((e,t)=>(e[t.loc.start.line]=t.loc.end.line,e)),{});function s(e){const t=n[e];return n[t+1]?s(t+1):t}return{VariableDeclaration:function(o){const i=function(e){const r=t.getLastToken(e);if("Punctuator"===r.type&&";"===r.value){const e=t.getTokenBefore(r);if(e.loc.end.line!==r.loc.start.line)return e}return r}(o),a=i===t.getLastToken(o)?t.getTokenAfter(o):t.getLastToken(o),c=i.loc.end.line+1;if(!a)return;if(function(e){return"ForStatement"===e||"ForInStatement"===e||"ForOfStatement"===e}(o.parent.type))return;if("ExportNamedDeclaration"===(u=o.parent.type)||"ExportSpecifier"===u||"ExportDefaultDeclaration"===u||"ExportAllDeclaration"===u)return;var u;if("Keyword"===a.type&&function(e){return"var"===e||"let"===e||"const"===e}(a.value))return;if(function(e){const r=t.getTokenAfter(e);return!r||"Punctuator"===r.type&&"}"===r.value}(o))return;const l=a.loc.start.line>c,p=void 0!==n[c];var d;"never"===r&&l&&!p&&e.report({node:o,messageId:"unexpected",data:{identifier:o.name},fix(e){const r=t.getText().slice(i.range[1],a.range[0]).split(Tm.LINEBREAK_MATCHER);return e.replaceTextRange([i.range[1],a.range[0]],`${r.slice(0,-1).join("")}\n${r[r.length-1]}`)}}),"always"!==r||l&&(!p||(d=c,a.loc.start.line>s(d)+1))||e.report({node:o,messageId:"expected",data:{identifier:o.name},fix:e=>(l?s(c):i.loc.end.line)===a.loc.start.line?e.insertTextBefore(a,"\n\n"):e.insertTextBeforeRange([a.range[0]-a.loc.start.column,a.range[1]],"\n")})}}}},Im={meta:{type:"layout",docs:{description:"require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode();function r(e,r){const n=t.getTokenBefore(e);return r.some((e=>n.value===e))}function n(e){const r=e.loc.start.line,n=function(e){const r=t.getTokenBefore(e);let n;return n=r?r.loc.end.line:0,n}(e);return r-n-function(e,r){const n=t.getCommentsBefore(e);let s=0;return n.length?(n.forEach((t=>{s++,"Block"===t.type&&(s+=t.loc.end.line-t.loc.start.line),t.loc.start.line===r&&s--,t.loc.end.line===e.loc.start.line&&s--})),s):s}(e,n)>1}return{ReturnStatement(s){(function(e){const t=e.parent.type;return e.parent.body?Array.isArray(e.parent.body)?e.parent.body[0]===e:e.parent.body===e:r(e,"IfStatement"===t?["else",")"]:"DoWhileStatement"===t?["do"]:"SwitchCase"===t?[":"]:[")"])})(s)||n(s)||e.report({node:s,messageId:"expected",fix(e){if(function(e){const r=t.getCommentsBefore(e),n=r[r.length-1],s=t.getTokenBefore(e);return 0===r.length||n.loc.end.line===s.loc.end.line&&n.loc.end.line!==e.loc.start.line}(s)){const r=t.getTokenBefore(s),n=s.loc.start.line===r.loc.end.line?"\n\n":"\n";return e.insertTextBefore(s,n)}return null}})}}}};const _m=Vp.exports;var Bm={meta:{type:"layout",docs:{description:"require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(e){const t=(e.options[0]||{}).ignoreChainWithDepth||2,r=e.getSourceCode();function n(e){const t=function(e){return e.computed?e.optional?"?.[":"[":e.optional?"?.":"."}(e),n=r.getText(e.property).split(_m.LINEBREAK_MATCHER),s=e.computed&&1===n.length?"]":"";return t+n[0]+s}return{"CallExpression:exit"(s){const o=_m.skipChainExpression(s.callee);if("MemberExpression"!==o.type)return;let i=_m.skipChainExpression(o.object),a=1;for(;i&&i.callee;)a+=1,i=_m.skipChainExpression(_m.skipChainExpression(i.callee).object);if(a>t&&_m.isTokenOnSameLine(o.object,o.property)){const t=r.getTokenAfter(o.object,_m.isNotClosingParenToken);e.report({node:o.property,loc:{start:t.loc.start,end:o.loc.end},messageId:"expected",data:{callee:n(o)},fix:e=>e.insertTextBefore(t,"\n")})}}}}};const{getStaticPropertyName:Om,getVariableByName:Lm,skipChainExpression:jm}=Vp.exports;function Nm(e){return/^(alert|confirm|prompt)$/u.test(e)}function Rm(e,t){const r=function(e,t){const r=e.references.filter((e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]));return 1===r.length?r[0]:null}(e,t);return r&&r.resolved&&r.resolved.defs.length>0}var Mm={meta:{type:"suggestion",docs:{description:"disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create:e=>({CallExpression(t){const r=jm(t.callee),n=e.getScope();if("Identifier"===r.type){const s=r.name;!Rm(n,r)&&Nm(r.name)&&e.report({node:t,messageId:"unexpected",data:{name:s}})}else if("MemberExpression"===r.type&&function(e,t){return"global"===e.type&&"ThisExpression"===t.type||!("Identifier"!==t.type||!("window"===t.name||"globalThis"===t.name&&Lm(e,"globalThis")))&&!Rm(e,t)}(n,r.object)){const n=Om(r);Nm(n)&&e.report({node:t,messageId:"unexpected",data:{name:n}})}}})},Vm={meta:{type:"suggestion",docs:{description:"disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/rules/no-array-constructor"},schema:[],messages:{preferLiteral:"The array literal notation [] is preferable."}},create(e){function t(t){1!==t.arguments.length&&"Identifier"===t.callee.type&&"Array"===t.callee.name&&e.report({node:t,messageId:"preferLiteral"})}return{CallExpression:t,NewExpression:t}}},$m={meta:{type:"problem",docs:{description:"disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create:e=>({"NewExpression[callee.name='Promise'][arguments.0.async=true]"(t){e.report({node:e.getSourceCode().getFirstToken(t.arguments[0],(e=>"async"===e.value)),messageId:"async"})}})};function Um(e){const t=e.type;return"FunctionDeclaration"===t||"FunctionExpression"===t||"ArrowFunctionExpression"===t||"ForOfStatement"===t&&!0===e.await}function qm(e,t){switch(t.type){case"ForStatement":return e===t.test||e===t.update||e===t.body;case"ForOfStatement":case"ForInStatement":return e===t.body;case"WhileStatement":case"DoWhileStatement":return e===t.test||e===t.body;default:return!1}}var Wm={meta:{type:"problem",docs:{description:"disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(e){function t(t){if("ForOfStatement"===t.type&&!t.await)return;let r=t,n=r.parent;for(;n&&!Um(n);){if(qm(r,n))return void e.report({node:t,messageId:"unexpectedAwait"});r=n,n=n.parent}}return{AwaitExpression:t,ForOfStatement:t}}};const zm=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];var Gm={meta:{type:"suggestion",docs:{description:"disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:zm},uniqueItems:!0},int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){const t=e.options[0]||{},r=t.allow||[],n=!0===t.int32Hint;function s(t){!function(e){return-1!==zm.indexOf(e.operator)}(t)||function(e){return-1!==r.indexOf(e.operator)}(t)||function(e){return n&&"|"===e.operator&&e.right&&"Literal"===e.right.type&&0===e.right.value}(t)||function(t){e.report({node:t,messageId:"unexpected",data:{operator:t.operator}})}(t)}return{AssignmentExpression:s,BinaryExpression:s,UnaryExpression:s}}},Hm={meta:{deprecated:!0,replacedBy:[],type:"problem",docs:{description:"disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create:e=>({"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(t){e.report({node:t,messageId:"deprecated",data:{expr:"CallExpression"===t.type?"Buffer()":"new Buffer()"}})}})},Km={meta:{type:"suggestion",docs:{description:"disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create:e=>({MemberExpression(t){const r=t.object.name,n=t.property.name;"arguments"===r&&!t.computed&&n&&n.match(/^calle[er]$/u)&&e.report({node:t,messageId:"unexpected",data:{prop:n}})}})},Jm={meta:{type:"suggestion",docs:{description:"disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/rules/no-case-declarations"},schema:[],messages:{unexpected:"Unexpected lexical declaration in case block."}},create(e){function t(e){switch(e.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return"var"!==e.kind;default:return!1}}return{SwitchCase(r){for(let n=0;n<r.consequent.length;n++){const s=r.consequent[n];t(s)&&e.report({node:s,messageId:"unexpected"})}}}}};const Qm=Vp.exports;var Xm={meta:{type:"suggestion",docs:{description:"disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:"https://eslint.org/docs/rules/no-catch-shadow"},replacedBy:["no-shadow"],deprecated:!0,schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create:e=>({"CatchClause[param!=null]"(t){let r=e.getScope();r.block===t&&(r=r.upper),function(e,t){return null!==Qm.getVariableByName(e,t)}(r,t.param.name)&&e.report({node:t,messageId:"mutable",data:{name:t.param.name}})}})};const Ym=Vp.exports;var Zm={meta:{type:"problem",docs:{description:"disallow reassigning class members",recommended:!0,url:"https://eslint.org/docs/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(e){function t(t){Ym.getModifyingReferences(t.references).forEach((t=>{e.report({node:t.identifier,messageId:"class",data:{name:t.identifier.name}})}))}function r(r){e.getDeclaredVariables(r).forEach(t)}return{ClassDeclaration:r,ClassExpression:r}}},eg={meta:{type:"problem",docs:{description:"disallow comparing against -0",recommended:!0,url:"https://eslint.org/docs/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(e){function t(e){return"UnaryExpression"===e.type&&"-"===e.operator&&"Literal"===e.argument.type&&0===e.argument.value}const r=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(n){r.has(n.operator)&&(t(n.left)||t(n.right))&&e.report({node:n,messageId:"unexpected",data:{operator:n.operator}})}}}};const tg=Vp.exports,rg=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),ng={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};var sg={meta:{type:"problem",docs:{description:"disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(e){const t=e.options[0]||"except-parens",r=e.getSourceCode();function n(e){return e.parent&&rg.has(e.parent.type)&&e===e.parent.test}function s(t){!t.test||"AssignmentExpression"!==t.test.type||("ForStatement"===t.type?tg.isParenthesised(r,t.test):function(e){const t=r.getTokenBefore(e,1),n=r.getTokenAfter(e,1);return tg.isParenthesised(r,e)&&t&&tg.isOpeningParenToken(t)&&t.range[1]<=e.range[0]&&tg.isClosingParenToken(n)&&n.range[0]>=e.range[1]}(t.test))||e.report({node:t.test,messageId:"missing"})}return"always"===t?{AssignmentExpression:function(t){const r=function(e){let t=e;do{if(n(t))return t.parent}while((t=t.parent)&&!tg.isFunction(t));return null}(t);r&&e.report({node:t,messageId:"unexpected",data:{type:ng[r.type]||r.type}})}}:{DoWhileStatement:s,ForStatement:s,IfStatement:s,WhileStatement:s,ConditionalExpression:s}}};const og=Vp.exports;var ig={meta:{type:"suggestion",docs:{description:"disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(e){const t=e.options[0]||{},r=t.allowParens||void 0===t.allowParens,n=e.getSourceCode();return{ArrowFunctionExpression:function(t){const s=t.body;!function(e){return e&&"ConditionalExpression"===e.type}(s)||r&&og.isParenthesised(n,s)||e.report({node:t,messageId:"confusing",fix:e=>r&&e.replaceText(t.body,`(${n.getText(t.body)})`)})}}}};const ag=Vp.exports;var cg={meta:{type:"suggestion",docs:{description:"disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected console statement."}},create(e){const t=(e.options[0]||{}).allow||[];function r(e){const t=e.identifier;return t&&"console"===t.name}function n(e){const r=e.identifier,n=r.parent;return"MemberExpression"===n.type&&n.object===r&&!function(e){const r=ag.getStaticPropertyName(e);return r&&-1!==t.indexOf(r)}(n)}function s(t){const r=t.identifier.parent;e.report({node:r,loc:r.loc,messageId:"unexpected"})}return{"Program:exit"(){const t=e.getScope(),o=ag.getVariableByName(t,"console"),i=o&&o.defs.length>0,a=o?o.references:t.through.filter(r);i||a.filter(n).forEach(s)}}}};const ug=Vp.exports;var lg={meta:{type:"problem",docs:{description:"disallow reassigning `const` variables",recommended:!0,url:"https://eslint.org/docs/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(e){function t(t){ug.getModifyingReferences(t.references).forEach((t=>{e.report({node:t.identifier,messageId:"const",data:{name:t.identifier.name}})}))}return{VariableDeclaration(r){"const"===r.kind&&e.getDeclaredVariables(r).forEach(t)}}}},pg={meta:{type:"problem",docs:{description:"disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){const t=!1!==(e.options[0]||{}).checkLoops,r=[];let n=new Set;function s(e){return null===e.value?"null"!==e.raw&&("object"==typeof e.regex||null):!!e.value}function o(e,t){switch(e.type){case"Literal":return"||"===t&&!0===s(e)||"&&"===t&&!1===s(e);case"UnaryExpression":return"&&"===t&&"void"===e.operator;case"LogicalExpression":return t===e.operator&&(o(e.left,t)||o(e.right,t));case"AssignmentExpression":return["||=","&&="].includes(e.operator)&&t===e.operator.slice(0,-1)&&o(e.right,t)}return!1}function i(e,t){if(!e)return!0;switch(e.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":case"ObjectExpression":case"ClassExpression":return!0;case"TemplateLiteral":return t&&e.quasis.some((e=>e.value.cooked.length))||e.expressions.every((e=>i(e,t)));case"ArrayExpression":return"BinaryExpression"!==e.parent.type||"+"!==e.parent.operator||e.elements.every((e=>i(e,!1)));case"UnaryExpression":return!!("void"===e.operator||"typeof"===e.operator&&t)||("!"===e.operator?i(e.argument,!0):i(e.argument,!1));case"BinaryExpression":return i(e.left,!1)&&i(e.right,!1)&&"in"!==e.operator;case"LogicalExpression":{const r=i(e.left,t),n=i(e.right,t),s=r&&o(e.left,e.operator),a=t&&n&&o(e.right,e.operator);return r&&n||s||a}case"NewExpression":return t;case"AssignmentExpression":return"="===e.operator?i(e.right,t):!(!["||=","&&="].includes(e.operator)||!t)&&o(e.right,e.operator.slice(0,-1));case"SequenceExpression":return i(e.expressions[e.expressions.length-1],t)}return!1}function a(t){n.has(t)&&(n.delete(t),e.report({node:t.test,messageId:"unexpected"}))}function c(t){t.test&&i(t.test,!0)&&e.report({node:t.test,messageId:"unexpected"})}function u(){r.push(n),n=new Set}function l(){n=r.pop()}function p(e){t&&function(e){e.test&&i(e.test,!0)&&n.add(e)}(e)}return{ConditionalExpression:c,IfStatement:c,WhileStatement:p,"WhileStatement:exit":a,DoWhileStatement:p,"DoWhileStatement:exit":a,ForStatement:p,"ForStatement > .test":e=>p(e.parent),"ForStatement:exit":a,FunctionDeclaration:u,"FunctionDeclaration:exit":l,FunctionExpression:u,"FunctionExpression:exit":l,YieldExpression:()=>n.clear()}}},dg={meta:{type:"problem",docs:{description:"disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/rules/no-constructor-return"},schema:{},fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(e){const t=[];return{onCodePathStart(e,r){t.push(r)},onCodePathEnd(){t.pop()},ReturnStatement(r){const n=t[t.length-1];n.parent&&("MethodDefinition"!==n.parent.type||"constructor"!==n.parent.kind||r.parent.parent!==n&&!r.argument||e.report({node:r,messageId:"unexpected"}))}}}},fg={meta:{type:"suggestion",docs:{description:"disallow `continue` statements",recommended:!1,url:"https://eslint.org/docs/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create:e=>({ContinueStatement(t){e.report({node:t,messageId:"unexpected"})}})},hg={};
12
12
  /*! @author Toru Nagashima <https://github.com/mysticatea> */
13
13
  Object.defineProperty(hg,"__esModule",{value:!0});var mg=Object.freeze({});let gg=void 0,yg=void 0;function xg(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||(95===e||!(e<97)&&(e<123||(bg(e)||function(e){return vg(e,yg||(yg=Eg("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 3c e 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1m 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 h 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 5 3 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 2 u 2 u 1 v 1 1t v a 0 3 9 y 2 3 9 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 1 1s 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1l 2 4 g0 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 n7q 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 ji 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 4a a 4w 2 1i e w 9 g 3 1a a 1i 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 4h b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 ewa 9 3r 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 43r 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 7a 6 a 9 bn d 15j 6 32 6 6 9 3o7 9 gvt3 6n")))}(e))))))}function bg(e){return vg(e,gg||(gg=Eg("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 1i k 2 h 1p 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 6 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 x 0 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 c 2 3 f h f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 6 1k t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 1a 2 1a 2 3o 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t g70 4 wc 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1g 3 8 17 c 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f 4d 8m a l b 7 49 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 2z k s m d 1g 24 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o 2d 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 6e 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 z 1k 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i 5a 0 28 pl 2v 32 i 5f 24d tq 34i g6 6nu fs 8 u 36 t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6wo 7y 1e 2 i 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1th 18 b 6 h 0 aa 17 105 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyl z 378 c 65 3 4g1 f 5rk 2e8 f1 15v 3t6")))}function vg(e,t){let r=0,n=t.length/2|0,s=0,o=0,i=0;for(;r<n;)if(s=(r+n)/2|0,o=t[2*s],i=t[2*s+1],e<o)n=s;else{if(!(e>i))return!0;r=s+1}return!1}function Eg(e){let t=0;return e.split(" ").map((e=>t+=0|parseInt(e,36)))}class Cg{constructor(e,t,r,n){this._raw2018=e,this._raw2019=t,this._raw2020=r,this._raw2021=n}get es2018(){return this._set2018||(this._set2018=new Set(this._raw2018.split(" ")))}get es2019(){return this._set2019||(this._set2019=new Set(this._raw2019.split(" ")))}get es2020(){return this._set2020||(this._set2020=new Set(this._raw2020.split(" ")))}get es2021(){return this._set2021||(this._set2021=new Set(this._raw2021.split(" ")))}}const Sg=new Set(["General_Category","gc"]),kg=new Set(["Script","Script_Extensions","sc","scx"]),Ag=new Cg("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","",""),Dg=new Cg("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"),wg=new Cg("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict");function Fg(e,t,r){return Sg.has(t)?e>=2018&&Ag.es2018.has(r):!!kg.has(t)&&(e>=2018&&Dg.es2018.has(r)||e>=2019&&Dg.es2019.has(r)||e>=2020&&Dg.es2020.has(r)||e>=2021&&Dg.es2021.has(r))}const Tg=40,Pg=41,Ig=48,_g=63,Bg=99,Og=92,Lg=93,jg=123,Ng=125;function Rg(e){return e>=65&&e<=90||e>=97&&e<=122}function Mg(e){return e>=Ig&&e<=57}function Vg(e){return e>=Ig&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function $g(e){return 10===e||13===e||8232===e||8233===e}function Ug(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-Ig}function qg(e){return e>=55296&&e<=56319}function Wg(e){return e>=56320&&e<=57343}function zg(e,t){return 1024*(e-55296)+(t-56320)+65536}const Gg={at:(e,t,r)=>r<t?e.charCodeAt(r):-1,width:e=>1},Hg={at:(e,t,r)=>r<t?e.codePointAt(r):-1,width:e=>e>65535?2:1};class Kg{constructor(){this._impl=Gg,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,r,n){this._impl=n?Hg:Gg,this._s=e,this._end=r,this.rewind(t)}rewind(e){const t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(-1!==this._cp1){const e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,r){return this._cp1===e&&this._cp2===t&&this._cp3===r&&(this.advance(),this.advance(),this.advance(),!0)}}class Jg extends SyntaxError{constructor(e,t,r,n){e&&(e.startsWith("/")||(e=`/${e}/${t?"u":""}`),e=": "+e),super(`Invalid regular expression${e}: ${n}`),this.index=r}}function Qg(e){return 94===e||36===e||e===Og||46===e||42===e||43===e||e===_g||e===Tg||e===Pg||91===e||e===Lg||e===jg||e===Ng||124===e}function Xg(e){return function(e){return!(e<65)&&(e<91||!(e<97)&&(e<123||bg(e)))}(e)||36===e||95===e}function Yg(e){return Rg(e)||95===e}class Zg{constructor(e){this._reader=new Kg,this._uFlag=!1,this._nFlag=!1,this._lastIntValue=0,this._lastMinValue=0,this._lastMaxValue=0,this._lastStrValue="",this._lastKeyValue="",this._lastValValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._groupNames=new Set,this._backreferenceNames=new Set,this._options=e||{}}validateLiteral(e,t=0,r=e.length){if(this._uFlag=this._nFlag=!1,this.reset(e,t,r),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){const n=this.index,s=e.includes("u",n);this.validateFlags(e,n,r),this.validatePattern(e,t+1,n-1,s)}else if(t>=r)this.raise("Empty");else{const e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,r)}validateFlags(e,t=0,r=e.length){const n=new Set;let s=!1,o=!1,i=!1,a=!1,c=!1,u=!1,l=!1;for(let p=t;p<r;++p){const t=e.charCodeAt(p);n.has(t)&&this.raise(`Duplicated flag '${e[p]}'`),n.add(t),103===t?s=!0:105===t?o=!0:109===t?i=!0:117===t&&this.ecmaVersion>=2015?c=!0:121===t&&this.ecmaVersion>=2015?a=!0:115===t&&this.ecmaVersion>=2018?u=!0:100===t&&this.ecmaVersion>=2022?l=!0:this.raise(`Invalid flag '${e[p]}'`)}this.onFlags(t,r,s,o,i,c,a,u,l)}validatePattern(e,t=0,r=e.length,n=!1){this._uFlag=n&&this.ecmaVersion>=2015,this._nFlag=n&&this.ecmaVersion>=2018,this.reset(e,t,r),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&this._groupNames.size>0&&(this._nFlag=!0,this.rewind(t),this.consumePattern())}get strict(){return Boolean(this._options.strict||this._uFlag)}get ecmaVersion(){return this._options.ecmaVersion||2022}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onFlags(e,t,r,n,s,o,i,a,c){this._options.onFlags&&this._options.onFlags(e,t,r,n,s,o,i,a,c)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,r){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,r)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,r){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,r)}onQuantifier(e,t,r,n,s){this._options.onQuantifier&&this._options.onQuantifier(e,t,r,n,s)}onLookaroundAssertionEnter(e,t,r){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,r)}onLookaroundAssertionLeave(e,t,r,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,r,n)}onEdgeAssertion(e,t,r){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,r)}onWordBoundaryAssertion(e,t,r,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,r,n)}onAnyCharacterSet(e,t,r){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,r)}onEscapeCharacterSet(e,t,r,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,r,n)}onUnicodePropertyCharacterSet(e,t,r,n,s,o){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,r,n,s,o)}onCharacter(e,t,r){this._options.onCharacter&&this._options.onCharacter(e,t,r)}onBackreference(e,t,r){this._options.onBackreference&&this._options.onBackreference(e,t,r)}onCharacterClassEnter(e,t){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t)}onCharacterClassLeave(e,t,r){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,r)}onCharacterClassRange(e,t,r,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,r,n)}get source(){return this._reader.source}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,r){this._reader.reset(e,t,r,this._uFlag)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,r){return this._reader.eat3(e,t,r)}raise(e){throw new Jg(this.source,this._uFlag,this.index,e)}eatRegExpBody(){const e=this.index;let t=!1,r=!1;for(;;){const n=this.currentCodePoint;if(-1===n||$g(n)){const e=t?"character class":"regular expression";this.raise("Unterminated "+e)}if(r)r=!1;else if(n===Og)r=!0;else if(91===n)t=!0;else if(n===Lg)t=!1;else if(47===n&&!t||42===n&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){const e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupNames.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();const t=this.currentCodePoint;if(-1!==this.currentCodePoint){t===Pg&&this.raise("Unmatched ')'"),t===Og&&this.raise("\\ at end of pattern"),t!==Lg&&t!==Ng||this.raise("Lone quantifier brackets");const e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(const e of this._backreferenceNames)this._groupNames.has(e)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){const e=this.index;let t=!1,r=!1,n=0,s=0;for(;-1!==(s=this.currentCodePoint);)r?r=!1:s===Og?r=!0:91===s?t=!0:s===Lg?t=!1:s!==Tg||t||this.nextCodePoint===_g&&(60!==this.nextCodePoint2||61===this.nextCodePoint3||33===this.nextCodePoint3)||(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){const e=this.index;let t=0;this.onDisjunctionEnter(e);do{this.consumeAlternative(t++)}while(this.eat(124));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(jg)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index)}consumeAlternative(e){const t=this.index;for(this.onAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._uFlag||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){const e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(Og,66))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(Og,98))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(Tg,_g)){const t=this.ecmaVersion>=2018&&this.eat(60);let r=!1;if(this.eat(61)||(r=this.eat(33))){const n=t?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,r),this.consumeDisjunction(),this.eat(Pg)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,r),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){const t=this.index;let r=0,n=0,s=!1;if(this.eat(42))r=0,n=Number.POSITIVE_INFINITY;else if(this.eat(43))r=1,n=Number.POSITIVE_INFINITY;else if(this.eat(_g))r=0,n=1;else{if(!this.eatBracedQuantifier(e))return!1;r=this._lastMinValue,n=this._lastMaxValue}return s=!this.eat(_g),e||this.onQuantifier(t,this.index,r,n,s),!0}eatBracedQuantifier(e){const t=this.index;if(this.eat(jg)){if(this._lastMinValue=0,this._lastMaxValue=Number.POSITIVE_INFINITY,this.eatDecimalDigits()&&(this._lastMinValue=this._lastMaxValue=this._lastIntValue,this.eat(44)&&(this._lastMaxValue=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(Ng)))return!e&&this._lastMaxValue<this._lastMinValue&&this.raise("numbers out of order in {} quantifier"),!0;e||!this._uFlag&&!this.strict||this.raise("Incomplete quantifier"),this.rewind(t)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()}consumeDot(){return!!this.eat(46)&&(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0)}consumeReverseSolidusAtomEscape(){const e=this.index;if(this.eat(Og)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){const e=this.index;return!!this.eat3(Tg,_g,58)&&(this.onGroupEnter(e),this.consumeDisjunction(),this.eat(Pg)||this.raise("Unterminated group"),this.onGroupLeave(e,this.index),!0)}consumeCapturingGroup(){const e=this.index;if(this.eat(Tg)){let t=null;return this.ecmaVersion>=2018?this.consumeGroupSpecifier()&&(t=this._lastStrValue):this.currentCodePoint===_g&&this.raise("Invalid group"),this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(Pg)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){const e=this.index;return this.currentCodePoint===Og&&this.nextCodePoint===Bg&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,Og),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){const e=this.index,t=this.currentCodePoint;return-1!==t&&!Qg(t)&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){const e=this.index,t=this.currentCodePoint;return-1!==t&&94!==t&&36!==t&&t!==Og&&46!==t&&42!==t&&43!==t&&t!==_g&&t!==Tg&&t!==Pg&&91!==t&&124!==t&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){if(this.eat(_g)){if(this.eatGroupName()){if(!this._groupNames.has(this._lastStrValue))return this._groupNames.add(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return!!(this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName())||((this.strict||this._uFlag)&&this.raise("Invalid escape"),!1)}consumeBackreference(){const e=this.index;if(this.eatDecimalEscape()){const t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._uFlag)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){const e=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"digit",!1),!0;if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"digit",!0),!0;if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"space",!1),!0;if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"space",!0),!0;if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"word",!1),!0;if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"word",!0),!0;let t=!1;if(this._uFlag&&this.ecmaVersion>=2018&&(this.eat(112)||(t=this.eat(80)))){if(this._lastIntValue=-1,this.eat(jg)&&this.eatUnicodePropertyValueExpression()&&this.eat(Ng))return this.onUnicodePropertyCharacterSet(e-1,this.index,"property",this._lastKeyValue,this._lastValValue||null,t),!0;this.raise("Invalid property name")}return!1}consumeCharacterEscape(){const e=this.index;return!!(this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._uFlag&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape())&&(this.onCharacter(e-1,this.index,this._lastIntValue),!0)}consumeKGroupName(){const e=this.index;if(this.eat(107)){if(this.eatGroupName()){const t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){const e=this.index;if(this.eat(91)){const t=this.eat(94);return this.onCharacterClassEnter(e,t),this.consumeClassRanges(),this.eat(Lg)||this.raise("Unterminated character class"),this.onCharacterClassLeave(e,this.index,t),!0}return!1}consumeClassRanges(){const e=this.strict||this._uFlag;for(;;){const t=this.index;if(!this.consumeClassAtom())break;const r=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;const n=this._lastIntValue;-1!==r&&-1!==n?(r>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(t,this.index,r,n)):e&&this.raise("Invalid character class")}}consumeClassAtom(){const e=this.index,t=this.currentCodePoint;if(-1!==t&&t!==Og&&t!==Lg)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(Og)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===Bg)return this._lastIntValue=Og,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._uFlag)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){const e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._uFlag&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return this.strict||this._uFlag||this.currentCodePoint!==Bg||!Mg(t=this.nextCodePoint)&&95!==t?this.consumeCharacterClassEscape()||this.consumeCharacterEscape():(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0)}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){const e=this.index,t=!this._uFlag&&this.ecmaVersion>=2020;let r=this.currentCodePoint;return this.advance(),r===Og&&this.eatRegExpUnicodeEscapeSequence(t)?r=this._lastIntValue:t&&qg(r)&&Wg(this.currentCodePoint)&&(r=zg(r,this.currentCodePoint),this.advance()),Xg(r)?(this._lastIntValue=r,!0):(this.index!==e&&this.rewind(e),!1)}eatRegExpIdentifierPart(){const e=this.index,t=!this._uFlag&&this.ecmaVersion>=2020;let r=this.currentCodePoint;return this.advance(),r===Og&&this.eatRegExpUnicodeEscapeSequence(t)?r=this._lastIntValue:t&&qg(r)&&Wg(this.currentCodePoint)&&(r=zg(r,this.currentCodePoint),this.advance()),function(e){return xg(e)||36===e||95===e||8204===e||8205===e}(r)?(this._lastIntValue=r,!0):(this.index!==e&&this.rewind(e),!1)}eatCControlLetter(){const e=this.index;if(this.eat(Bg)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return this.currentCodePoint===Ig&&!Mg(this.nextCodePoint)&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):!!this.eat(118)&&(this._lastIntValue=11,!0)}eatControlLetter(){const e=this.currentCodePoint;return!!Rg(e)&&(this.advance(),this._lastIntValue=e%32,!0)}eatRegExpUnicodeEscapeSequence(e=!1){const t=this.index,r=e||this._uFlag;if(this.eat(117)){if(r&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||r&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||r)&&this.raise("Invalid unicode escape"),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){const e=this.index;if(this.eatFixedHexDigits(4)){const t=this._lastIntValue;if(qg(t)&&this.eat(Og)&&this.eat(117)&&this.eatFixedHexDigits(4)){const e=this._lastIntValue;if(Wg(e))return this._lastIntValue=zg(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){const e=this.index;return!!(this.eat(jg)&&this.eatHexDigits()&&this.eat(Ng)&&function(e){return e>=0&&e<=1114111}(this._lastIntValue))||(this.rewind(e),!1)}eatIdentityEscape(){const e=this.currentCodePoint;return!!this.isValidIdentityEscape(e)&&(this._lastIntValue=e,this.advance(),!0)}isValidIdentityEscape(e){return-1!==e&&(this._uFlag?Qg(e)||47===e:this.strict?!xg(e):this._nFlag?!(e===Bg||107===e):e!==Bg)}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do{this._lastIntValue=10*this._lastIntValue+(e-Ig),this.advance()}while((e=this.currentCodePoint)>=Ig&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){const e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)&&(this._lastKeyValue=this._lastStrValue,this.eatUnicodePropertyValue())){if(this._lastValValue=this._lastStrValue,Fg(this.ecmaVersion,this._lastKeyValue,this._lastValValue))return!0;this.raise("Invalid property name")}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){const e=this._lastStrValue;if(Fg(this.ecmaVersion,"General_Category",e))return this._lastKeyValue="General_Category",this._lastValValue=e,!0;if(function(e,t){return e>=2018&&wg.es2018.has(t)||e>=2019&&wg.es2019.has(t)||e>=2021&&wg.es2021.has(t)}(this.ecmaVersion,e))return this._lastKeyValue=e,this._lastValValue="",!0;this.raise("Invalid property name")}return!1}eatUnicodePropertyName(){for(this._lastStrValue="";Yg(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){for(this._lastStrValue="";Yg(e=this.currentCodePoint)||Mg(e);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();var e;return""!==this._lastStrValue}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){const e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._uFlag||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){const e=this.index;for(this._lastIntValue=0;Mg(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+Ug(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){const e=this.index;for(this._lastIntValue=0;Vg(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+Ug(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){const e=this._lastIntValue;if(this.eatOctalDigit()){const t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=64*e+8*t+this._lastIntValue:this._lastIntValue=8*e+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){const e=this.currentCodePoint;return function(e){return e>=Ig&&e<=55}(e)?(this.advance(),this._lastIntValue=e-Ig,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){const t=this.index;this._lastIntValue=0;for(let r=0;r<e;++r){const e=this.currentCodePoint;if(!Vg(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+Ug(e),this.advance()}return!0}}const ey={},ty={},ry={};class ny{constructor(e){this._node=ey,this._flags=ty,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=Boolean(e&&e.strict),this.ecmaVersion=e&&e.ecmaVersion||2022}get pattern(){if("Pattern"!==this._node.type)throw new Error("UnknownError");return this._node}get flags(){if("Flags"!==this._flags.type)throw new Error("UnknownError");return this._flags}onFlags(e,t,r,n,s,o,i,a,c){this._flags={type:"Flags",parent:null,start:e,end:t,raw:this.source.slice(e,t),global:r,ignoreCase:n,multiline:s,unicode:o,sticky:i,dotAll:a,hasIndices:c}}onPatternEnter(e){this._node={type:"Pattern",parent:null,start:e,end:e,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,t){this._node.end=t,this._node.raw=this.source.slice(e,t);for(const e of this._backreferences){const t=e.ref,r="number"==typeof t?this._capturingGroups[t-1]:this._capturingGroups.find((e=>e.name===t));e.resolved=r,r.references.push(e)}}onAlternativeEnter(e){const t=this._node;if("Assertion"!==t.type&&"CapturingGroup"!==t.type&&"Group"!==t.type&&"Pattern"!==t.type)throw new Error("UnknownError");this._node={type:"Alternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onGroupEnter(e){const t=this._node;if("Alternative"!==t.type)throw new Error("UnknownError");this._node={type:"Group",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){const r=this._node;if("Group"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCapturingGroupEnter(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:r,start:e,end:e,raw:"",name:t,alternatives:[],references:[]},r.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){const r=this._node;if("CapturingGroup"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onQuantifier(e,t,r,n,s){const o=this._node;if("Alternative"!==o.type)throw new Error("UnknownError");const i=o.elements.pop();if(null==i||"Quantifier"===i.type||"Assertion"===i.type&&"lookahead"!==i.kind)throw new Error("UnknownError");const a={type:"Quantifier",parent:o,start:i.start,end:t,raw:this.source.slice(i.start,t),min:r,max:n,greedy:s,element:i};o.elements.push(a),i.parent=a}onLookaroundAssertionEnter(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");const s=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:t,negate:r,alternatives:[]};n.elements.push(s)}onLookaroundAssertionLeave(e,t){const r=this._node;if("Assertion"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onEdgeAssertion(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onWordBoundaryAssertion(e,t,r,n){const s=this._node;if("Alternative"!==s.type)throw new Error("UnknownError");s.elements.push({type:"Assertion",parent:s,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onAnyCharacterSet(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onEscapeCharacterSet(e,t,r,n){const s=this._node;if("Alternative"!==s.type&&"CharacterClass"!==s.type)throw new Error("UnknownError");s.elements.push({type:"CharacterSet",parent:s,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onUnicodePropertyCharacterSet(e,t,r,n,s,o){const i=this._node;if("Alternative"!==i.type&&"CharacterClass"!==i.type)throw new Error("UnknownError");i.elements.push({type:"CharacterSet",parent:i,start:e,end:t,raw:this.source.slice(e,t),kind:r,key:n,value:s,negate:o})}onCharacter(e,t,r){const n=this._node;if("Alternative"!==n.type&&"CharacterClass"!==n.type)throw new Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:t,raw:this.source.slice(e,t),value:r})}onBackreference(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");const s={type:"Backreference",parent:n,start:e,end:t,raw:this.source.slice(e,t),ref:r,resolved:ry};n.elements.push(s),this._backreferences.push(s)}onCharacterClassEnter(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");this._node={type:"CharacterClass",parent:r,start:e,end:e,raw:"",negate:t,elements:[]},r.elements.push(this._node)}onCharacterClassLeave(e,t){const r=this._node;if("CharacterClass"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCharacterClassRange(e,t){const r=this._node;if("CharacterClass"!==r.type)throw new Error("UnknownError");const n=r.elements,s=n.pop(),o=n.pop(),i=n.pop();if(!i||!s||!o||"Character"!==i.type||"Character"!==s.type||"Character"!==o.type||45!==o.value)throw new Error("UnknownError");const a={type:"CharacterClassRange",parent:r,start:e,end:t,raw:this.source.slice(e,t),min:i,max:s};i.parent=a,s.parent=a,n.push(a)}}class sy{constructor(e){this._state=new ny(e),this._validator=new Zg(this._state)}parseLiteral(e,t=0,r=e.length){this._state.source=e,this._validator.validateLiteral(e,t,r);const n=this._state.pattern,s=this._state.flags,o={type:"RegExpLiteral",parent:null,start:t,end:r,raw:e,pattern:n,flags:s};return n.parent=o,s.parent=o,o}parseFlags(e,t=0,r=e.length){return this._state.source=e,this._validator.validateFlags(e,t,r),this._state.flags}parsePattern(e,t=0,r=e.length,n=!1){return this._state.source=e,this._validator.validatePattern(e,t,r,n),this._state.pattern}}class oy{constructor(e){this._handlers=e}visit(e){switch(e.type){case"Alternative":this.visitAlternative(e);break;case"Assertion":this.visitAssertion(e);break;case"Backreference":this.visitBackreference(e);break;case"CapturingGroup":this.visitCapturingGroup(e);break;case"Character":this.visitCharacter(e);break;case"CharacterClass":this.visitCharacterClass(e);break;case"CharacterClassRange":this.visitCharacterClassRange(e);break;case"CharacterSet":this.visitCharacterSet(e);break;case"Flags":this.visitFlags(e);break;case"Group":this.visitGroup(e);break;case"Pattern":this.visitPattern(e);break;case"Quantifier":this.visitQuantifier(e);break;case"RegExpLiteral":this.visitRegExpLiteral(e);break;default:throw new Error("Unknown type: "+e.type)}}visitAlternative(e){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(e)}visitAssertion(e){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(e),"lookahead"!==e.kind&&"lookbehind"!==e.kind||e.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(e)}visitBackreference(e){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(e),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(e)}visitCapturingGroup(e){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(e)}visitCharacter(e){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(e),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(e)}visitCharacterClass(e){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(e),e.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(e)}visitCharacterClassRange(e){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(e),this.visitCharacter(e.min),this.visitCharacter(e.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(e)}visitCharacterSet(e){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(e),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(e)}visitFlags(e){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(e),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(e)}visitGroup(e){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(e)}visitPattern(e){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(e)}visitQuantifier(e){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(e),this.visit(e.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(e)}visitRegExpLiteral(e){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(e),this.visitPattern(e.pattern),this.visitFlags(e.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(e)}}hg.AST=mg,hg.RegExpParser=sy,hg.RegExpValidator=Zg,hg.parseRegExpLiteral=function(e,t){return new sy(t).parseLiteral(String(e))},hg.validateRegExpLiteral=function(e,t){return new Zg(t).validateLiteral(e)},hg.visitRegExpAST=function(e,t){new oy(t).visit(e)};const iy=hg.RegExpValidator,ay=new class{constructor(){this._source="",this._controlChars=[],this._validator=new iy(this)}onPatternEnter(){this._controlChars=[]}onCharacter(e,t,r){r>=0&&r<=31&&(this._source.codePointAt(e)===r||this._source.slice(e,t).startsWith("\\x")||this._source.slice(e,t).startsWith("\\u"))&&this._controlChars.push("\\x"+("0"+r.toString(16)).slice(-2))}collectControlChars(e){try{this._source=e,this._validator.validatePattern(e)}catch{}return this._controlChars}};var cy={meta:{type:"problem",docs:{description:"disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create:e=>({Literal(t){const r=function(e){return e.regex?e.regex.pattern:"string"!=typeof e.value||"NewExpression"!==e.parent.type&&"CallExpression"!==e.parent.type||"Identifier"!==e.parent.callee.type||"RegExp"!==e.parent.callee.name||e.parent.arguments[0]!==e?null:e.value}(t);if(r){const n=ay.collectControlChars(r);n.length>0&&e.report({node:t,messageId:"unexpected",data:{controlChars:n.join(", ")}})}}})},uy={meta:{type:"problem",docs:{description:"disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create:e=>({DebuggerStatement(t){e.report({node:t,messageId:"unexpected"})}})},ly={meta:{type:"suggestion",docs:{description:"disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create:e=>({UnaryExpression(t){"delete"===t.operator&&"Identifier"===t.argument.type&&e.report({node:t,messageId:"unexpected"})}})},py={meta:{type:"suggestion",docs:{description:"disallow division operators explicitly at the beginning of regular expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(e){const t=e.getSourceCode();return{Literal(r){const n=t.getFirstToken(r);"RegularExpression"===n.type&&"="===n.value[1]&&e.report({node:r,messageId:"unexpected",fix:e=>e.replaceTextRange([n.range[0]+1,n.range[0]+2],"[=]")})}}}},dy={meta:{type:"problem",docs:{description:"disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(e){function t(e){return"Parameter"===e.type}function r(r){const n=e.getDeclaredVariables(r);for(let s=0;s<n.length;++s){const o=n[s];o.defs.filter(t).length>=2&&e.report({node:r,messageId:"unexpected",data:{name:o.name}})}}return{FunctionDeclaration:r,FunctionExpression:r}}};const fy=Vp.exports;var hy={meta:{type:"problem",docs:{description:"disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let t=[];return{Program(){t=[]},ClassBody(){t.push(Object.create(null))},"ClassBody:exit"(){t.pop()},"MethodDefinition, PropertyDefinition"(r){const n=fy.getStaticPropertyName(r),s="MethodDefinition"===r.type?r.kind:"field";if(null===n||"constructor"===s)return;const o=function(e,r){const n=t[t.length-1],s="$"+e;return n[s]||(n[s]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),n[s][r?"static":"nonStatic"]}(n,r.static);let i=!1;"get"===s?(i=o.init||o.get,o.get=!0):"set"===s?(i=o.init||o.set,o.set=!0):(i=o.init||o.get||o.set,o.init=!0),i&&e.report({node:r,messageId:"unexpected",data:{name:n}})}}}};const my=Vp.exports;function gy(e,t,r){return t.every((t=>r.some((r=>e(t,r)))))}function yy(e,t){return"LogicalExpression"===t.type&&t.operator===e?[...yy(e,t.left),...yy(e,t.right)]:[t]}const xy=yy.bind(null,"||"),by=yy.bind(null,"&&");var vy={meta:{type:"problem",docs:{description:"disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(e){const t=e.getSourceCode();const r=gy.bind(null,(function e(r,n){return r.type===n.type&&("LogicalExpression"!==r.type||"||"!==r.operator&&"&&"!==r.operator||r.operator!==n.operator?my.equalTokens(r,n,t):e(r.left,n.left)&&e(r.right,n.right)||e(r.left,n.right)&&e(r.right,n.left))}));return{IfStatement(t){const n=t.test;let s=t,o=("LogicalExpression"===n.type&&"&&"===n.operator?[n,...by(n)]:[n]).map((e=>xy(e).map(by)));for(;s.parent&&"IfStatement"===s.parent.type&&s.parent.alternate===s;){s=s.parent;const t=xy(s.test).map(by);if(o=o.map((e=>e.filter((e=>!t.some((t=>r(t,e))))))),o.some((e=>0===e.length))){e.report({node:n,messageId:"unexpected"});break}}}}}};const Ey=Vp.exports,Cy=/^(?:init|get)$/u,Sy=/^(?:init|set)$/u;class ky{constructor(e,t){this.upper=e,this.node=t,this.properties=new Map}getPropertyInfo(e){const t=Ey.getStaticPropertyName(e);return this.properties.has(t)||this.properties.set(t,{get:!1,set:!1}),this.properties.get(t)}isPropertyDefined(e){const t=this.getPropertyInfo(e);return Cy.test(e.kind)&&t.get||Sy.test(e.kind)&&t.set}defineProperty(e){const t=this.getPropertyInfo(e);Cy.test(e.kind)&&(t.get=!0),Sy.test(e.kind)&&(t.set=!0)}}var Ay={meta:{type:"problem",docs:{description:"disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(e){let t=null;return{ObjectExpression(e){t=new ky(t,e)},"ObjectExpression:exit"(){t=t.upper},Property(r){const n=Ey.getStaticPropertyName(r);"ObjectExpression"===r.parent.type&&null!==n&&(t.isPropertyDefined(r)&&e.report({node:t.node,loc:r.key.loc,messageId:"unexpected",data:{name:n}}),t.defineProperty(r))}}}};const Dy=Vp.exports;var wy={meta:{type:"problem",docs:{description:"disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){const t=e.getSourceCode();function r(e,r){return e.type===r.type&&Dy.equalTokens(e,r,t)}return{SwitchStatement(t){const n=[];for(const s of t.cases)if(s.test){const t=s.test;n.some((e=>r(e,t)))?e.report({node:s,messageId:"unexpected"}):n.push(t)}}}}};const Fy=["ImportSpecifier","ExportSpecifier"],Ty=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function Py(e,t){return("named"===t?Fy:Ty).includes(e)}function Iy(e){if(e.specifiers&&e.specifiers.length>0){const t=e.specifiers,r=t.findIndex((({type:e})=>Py(e,"named")||Py(e,"namespace")));return t[r>-1?r:0].type}return"ExportAllDeclaration"===e.type?e.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function _y(e,t){const r=Iy(e),n=Iy(t);return!("ExportAll"===r&&"ExportAll"!==n&&"SideEffectImport"!==n||"ExportAll"!==r&&"SideEffectImport"!==r&&"ExportAll"===n)&&!(Py(r,"namespace")&&Py(n,"named")||Py(n,"namespace")&&Py(r,"named"))}function By(e,t){let r=0;for(;r<t.length;){if(_y(e,t[r]))return!0;r++}return!1}function Oy(e,t){return e.filter((({declarationType:e})=>e===t)).map((({node:e})=>e))}function Ly(e){return e&&e.source&&e.source.value?e.source.value.trim():""}function jy(e,t,r,n){return function(s){const o=Ly(s);if(o){!function(e,t,r,n,s){const o=Ly(t);if(r.has(o)){const i=r.get(o),a=[],c=Oy(i,"import");let u;s&&(u=Oy(i,"export")),"import"===n?(By(t,c)&&a.push("import"),s&&By(t,u)&&a.push("importAs")):"export"===n&&(By(t,u)&&a.push("export"),By(t,c)&&a.push("exportAs")),a.forEach((r=>e.report({node:t,messageId:r,data:{module:o}})))}}(e,s,t,r,n);const i={node:s,declarationType:r};let a=[i];if(t.has(o)){a=[...t.get(o),i]}t.set(o,a)}}}var Ny={meta:{type:"problem",docs:{description:"disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(e){const t=(e.options[0]||{}).includeExports,r=new Map,n={ImportDeclaration:jy(e,r,"import",t)};return t&&(n.ExportNamedDeclaration=jy(e,r,"export",t),n.ExportAllDeclaration=jy(e,r,"export",t)),n}};const Ry=Vp.exports;var My=class{constructor(e,t){this.fixer=e,this.sourceCode=t,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(e){const t=Ry.getUpperFunction(e);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(e){const t=this.sourceCode.getTokenBefore(e)||e,r=this.sourceCode.getTokenAfter(e)||e;return this.retainRange([t.range[0],r.range[1]])}replaceTextRange(e,t){let r;return r=this.retainedRange?[Math.min(this.retainedRange[0],e[0]),Math.max(this.retainedRange[1],e[1])]:e,this.fixer.replaceTextRange(r,this.sourceCode.text.slice(r[0],e[0])+t+this.sourceCode.text.slice(e[1],r[1]))}remove(e){return this.replaceTextRange(e.range,"")}};const Vy=Vp.exports,$y=My;var Uy={meta:{type:"suggestion",docs:{description:"disallow `else` blocks after `return` statements in `if` statements",recommended:!1,url:"https://eslint.org/docs/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(e){function t(t){const r=e.getScope();e.report({node:t,messageId:"unexpected",fix:n=>{if(!function(e,t){if("FunctionDeclaration"===e.type)return!1;if("BlockStatement"!==e.type)return!0;const r=t.childScopes.find((({block:t})=>t===e));return!r||function(e,t){if(0===e.length)return!0;const r=t.variableScope;if(t.variables.filter((({defs:e})=>e.length>0)).some((({name:t})=>e.includes(t))))return!1;if(t!==r&&"catch"===t.upper.type&&t.upper.variables.some((({name:t})=>e.includes(t))))return!1;if(t.variables.filter((({defs:e,references:t})=>0===e.length&&t.length>0)).some((({name:t})=>e.includes(t))))return!1;if(t.through.some((t=>e.includes(t.identifier.name))))return!1;if(t!==r){const n=t.block.range;if(r.variables.filter((({name:t})=>e.includes(t))).some((e=>e.defs.some((({node:{range:e}})=>n[0]<=e[0]&&e[1]<=n[1])))))return!1}return!0}(r.variables.map((({name:e})=>e)),t)}(t,r))return null;const s=e.getSourceCode(),o=s.getFirstToken(t),i=s.getTokenBefore(o),a=s.getText(t),c=s.getTokenBefore(i);let u,l;l="Punctuator"===o.type&&"{"===o.value?s.getTokenAfter(o):o;const p="BlockStatement"!==t.parent.consequent.type&&";"!==c.value,d=/^[([/+`-]/u.test(l.value);if(p&&d)return null;const f=s.getLastToken(t),h=s.getTokenBefore(f);if(";"!==h.value){const e=s.getTokenAfter(f),t=e&&/^[([/+`-]/u.test(e.value),r=e&&e.loc.start.line===h.loc.start.line;if(t||r&&"}"!==e.value)return null}return u="Punctuator"===o.type&&"{"===o.value?a.slice(1,-1):a,new $y(n,s).retainEnclosingFunction(t).replaceTextRange([i.range[0],t.range[1]],u)}})}function r(e){return"ReturnStatement"===e.type}function n(e){if("BlockStatement"===e.type){const t=e.body,n=t[t.length-1];return n&&r(n)}return r(e)}function s(e){return r(e)||function(e){return"IfStatement"===e.type&&function(e){return e.alternate&&e.consequent}(e)&&n(e.alternate)&&n(e.consequent)}(e)}function o(e){return"BlockStatement"===e.type?e.body.some(s):s(e)}return{"IfStatement:exit":!(e.options[0]&&!1===e.options[0].allowElseIf)?function(e){const r=e.parent;if(!Vy.STATEMENT_LIST_PARENTS.has(r.type))return;const n=[];let s;for(let t=e;"IfStatement"===t.type;t=t.alternate){if(!t.alternate)return;n.push(t.consequent),s=t.alternate}n.every(o)&&t(s)}:function(e){const r=e.parent;if(!Vy.STATEMENT_LIST_PARENTS.has(r.type))return;const n=e.alternate;n&&o(e.consequent)&&t(n)}}}};const qy=Vp.exports;var Wy={meta:{type:"suggestion",docs:{description:"disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement."}},create(e){const t=(e.options[0]||{}).allowEmptyCatch||!1,r=e.getSourceCode();return{BlockStatement(n){0===n.body.length&&(qy.isFunction(n.parent)||t&&"CatchClause"===n.parent.type||r.getCommentsInside(n).length>0||e.report({node:n,messageId:"unexpected",data:{type:"block"}}))},SwitchStatement(t){void 0!==t.cases&&0!==t.cases.length||e.report({node:t,messageId:"unexpected",data:{type:"switch"}})}}}};const zy=/^([^\\[]|\\.|\[([^\\\]]|\\.)+\])*$/u;var Gy={meta:{type:"problem",docs:{description:"disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create:e=>({"Literal[regex]"(t){zy.test(t.regex.pattern)||e.report({node:t,messageId:"unexpected"})}})};const Hy=Vp.exports;var Ky={meta:{type:"suggestion",docs:{description:"disallow empty functions",recommended:!1,url:"https://eslint.org/docs/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods"])},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(e){const t=(e.options[0]||{}).allow||[],r=e.getSourceCode();function n(n){const s=function(e){const t=e.parent;let r="";if("ArrowFunctionExpression"===e.type)return"arrowFunctions";if("Property"===t.type){if("get"===t.kind)return"getters";if("set"===t.kind)return"setters";r=t.method?"methods":"functions"}else if("MethodDefinition"===t.type){if("get"===t.kind)return"getters";if("set"===t.kind)return"setters";if("constructor"===t.kind)return"constructors";r="methods"}else r="functions";let n="";if(e.generator)n="generator";else{if(!e.async)return r;n="async"}return n+r[0].toUpperCase()+r.slice(1)}(n),o=Hy.getFunctionNameWithKind(n),i=r.getTokens(n.body,{includeComments:!0,filter:Hy.isCommentToken});-1===t.indexOf(s)&&"BlockStatement"===n.body.type&&0===n.body.body.length&&0===i.length&&e.report({node:n,loc:n.body.loc,messageId:"unexpected",data:{name:o}})}return{ArrowFunctionExpression:n,FunctionDeclaration:n,FunctionExpression:n}}},Jy={meta:{type:"problem",docs:{description:"disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/rules/no-empty-pattern"},schema:[],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create:e=>({ObjectPattern(t){0===t.properties.length&&e.report({node:t,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(t){0===t.elements.length&&e.report({node:t,messageId:"unexpected",data:{type:"array"}})}})},Qy={meta:{type:"suggestion",docs:{description:"disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create:e=>({BinaryExpression(t){const r="=="===t.operator||"!="===t.operator;("Literal"===t.right.type&&"null"===t.right.raw&&r||"Literal"===t.left.type&&"null"===t.left.raw&&r)&&e.report({node:t,messageId:"unexpected"})}})};const Xy=Vp.exports,Yy=Object.freeze(["global","window","globalThis"]);function Zy(e,t){return Xy.isSpecificMemberAccess(e,null,t)}var ex={meta:{type:"suggestion",docs:{description:"disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(e){const t=Boolean(e.options[0]&&e.options[0].allowIndirect),r=e.getSourceCode();let n=null;function s(t){const r=e.getScope().isStrict;n={upper:n,node:t,strict:r,defaultThis:!1,initialized:r}}function o(){n=n.upper}function i(t){const r=t.parent,n="MemberExpression"===t.type?t.property:t,s="CallExpression"===r.type&&r.callee===t?r:t;e.report({node:s,loc:n.loc,messageId:"unexpected"})}return t?{"CallExpression:exit"(e){const t=e.callee;!e.optional&&Xy.isSpecificId(t,"eval")&&i(t)}}:{"CallExpression:exit"(e){const t=e.callee;Xy.isSpecificId(t,"eval")&&i(t)},Program(t){const r=e.getScope(),s=e.parserOptions.ecmaFeatures||{},o=r.isStrict||"module"===t.sourceType||s.globalReturn&&r.childScopes[0].isStrict;n={upper:null,node:t,strict:o,defaultThis:!0,initialized:!0}},"Program:exit"(){const t=e.getScope();o(),function(e){const t=Xy.getVariableByName(e,"eval");if(!t)return;const r=t.references;for(let e=0;e<r.length;++e){const t=r[e].identifier;"eval"!==t.name||Xy.isCallee(t)||i(t)}}(t),function(e){for(let t=0;t<Yy.length;++t){const r=Yy[t],n=Xy.getVariableByName(e,r);if(!n)continue;const s=n.references;for(let e=0;e<s.length;++e){let t=s[e].identifier.parent;for(;Zy(t,r);)t=t.parent;Zy(t,"eval")&&i(t)}}}(t)},FunctionDeclaration:s,"FunctionDeclaration:exit":o,FunctionExpression:s,"FunctionExpression:exit":o,ArrowFunctionExpression:s,"ArrowFunctionExpression:exit":o,"PropertyDefinition > *.value":s,"PropertyDefinition > *.value:exit":o,StaticBlock:s,"StaticBlock:exit":o,ThisExpression(e){Zy(e.parent,"eval")&&(n.initialized||(n.initialized=!0,n.defaultThis=Xy.isDefaultThisBinding(n.node,r)),!n.strict&&n.defaultThis&&i(e.parent))}}}};const tx=Vp.exports;var rx={meta:{type:"problem",docs:{description:"disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){function t(t){tx.getModifyingReferences(t.references).forEach((t=>{e.report({node:t.identifier,messageId:"unexpected"})}))}return{CatchClause(r){e.getDeclaredVariables(r).forEach(t)}}}};const nx=Vp.exports,sx=xs;var ox={meta:{type:"suggestion",docs:{description:"disallow extending native types",recommended:!1,url:"https://eslint.org/docs/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(e){const t=e.options[0]||{},r=new Set(t.exceptions||[]),n=new Set(Object.keys(sx.builtin).filter((e=>e[0].toUpperCase()===e[0])).filter((e=>!r.has(e))));function s(t,r){e.report({node:t,messageId:"unexpected",data:{builtin:r}})}function o(e){if(!function(e){return Boolean(e&&e.parent&&"MemberExpression"===e.parent.type&&e.parent.object===e&&"prototype"===nx.getStaticPropertyName(e.parent))}(e))return;const t="ChainExpression"===e.parent.parent.type?e.parent.parent:e.parent;!function(e){return"MemberExpression"===e.parent.type&&e.parent.object===e&&"AssignmentExpression"===e.parent.parent.type&&e.parent.parent.left===e.parent}(t)?function(e){return"CallExpression"===e.parent.type&&e.parent.arguments[0]===e&&nx.isSpecificMemberAccess(e.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}(t)&&s(t.parent,e.name):s(t.parent.parent,e.name)}return{"Program:exit"(){const t=e.getScope();n.forEach((e=>{const r=t.set.get(e);r&&r.references&&r.references.map((e=>e.identifier)).forEach(o)}))}}}};const ix=Vp.exports,ax=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);var cx={meta:{type:"suggestion",docs:{description:"disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(e){const t=e.getSourceCode();let r=null;function n(r){const n=r.parent,s="ChainExpression"===n.parent.type?n.parent.parent:n.parent;e.report({node:s,messageId:"unexpected",loc:n.property.loc,fix(e){if(!function(e){return ax.has(e.type)}(s.arguments[0]))return null;const r=[[t.getTokenAfter(n.object,ix.isNotClosingParenToken),t.getLastToken(n)],[t.getTokenAfter(n,ix.isNotClosingParenToken),t.getLastToken(s)]],o=r[0][0],i=r[1][1];return t.commentsExistBetween(o,i)?null:r.map((([t,r])=>e.removeRange([t.range[0],r.range[1]])))}})}function s(e){if(!ix.isSpecificMemberAccess(e.parent,null,"bind"))return!1;const t="ChainExpression"===e.parent.parent.type?e.parent.parent:e.parent;return"CallExpression"===t.parent.type&&t.parent.callee===t&&1===t.parent.arguments.length&&"SpreadElement"!==t.parent.arguments[0].type}function o(e){r={isBound:s(e),thisFound:!1,upper:r}}function i(e){r.isBound&&!r.thisFound&&n(e),r=r.upper}return{"ArrowFunctionExpression:exit":function(e){s(e)&&n(e)},FunctionDeclaration:o,"FunctionDeclaration:exit":i,FunctionExpression:o,"FunctionExpression:exit":i,ThisExpression:function(){r&&(r.thisFound=!0)}}}};const ux=Vp.exports,lx=yo,px=ux.getPrecedence;var dx={meta:{type:"suggestion",docs:{description:"disallow unnecessary boolean casts",recommended:!0,url:"https://eslint.org/docs/rules/no-extra-boolean-cast"},schema:[{type:"object",properties:{enforceForLogicalOperands:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(e){const t=e.getSourceCode(),r=["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"];function n(t){return"ChainExpression"===t.parent.type?n(t.parent):function(e){return function(e){return("CallExpression"===e.type||"NewExpression"===e.type)&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name}(e.parent)&&e===e.parent.arguments[0]||-1!==r.indexOf(e.parent.type)&&e===e.parent.test||"UnaryExpression"===e.parent.type&&"!"===e.parent.operator}(t)||function(t){return"LogicalExpression"===t.type&&("||"===t.operator||"&&"===t.operator)&&e.options.length&&!0===e.options[0].enforceForLogicalOperands}(t.parent)&&n(t.parent)}function s(e){return Boolean(t.getCommentsInside(e).length)}function o(e,r){if("ChainExpression"===e.parent.type)return o(e.parent,r);if(function(e){return lx.isParenthesized(1,e,t)}(e))return!1;const n=e.parent;switch(n.type){case"CallExpression":case"NewExpression":return"SequenceExpression"===r.type;case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":return!1;case"ConditionalExpression":return px(r)<=px(n);case"UnaryExpression":return px(r)<px(n);case"LogicalExpression":return!!ux.isMixedLogicalAndCoalesceExpressions(r,n)||(e===n.left?px(r)<px(n):px(r)<=px(n));default:throw new Error("Unexpected parent type: "+n.type)}}return{UnaryExpression(r){const i=r.parent;"!"===r.operator&&"UnaryExpression"===i.type&&"!"===i.operator&&n(i)&&e.report({node:i,messageId:"unexpectedNegation",fix(e){if(s(i))return null;if(o(i,r.argument))return e.replaceText(i,`(${t.getText(r.argument)})`);let n="";const a=t.getTokenBefore(i),c=t.getFirstToken(r.argument);return a&&a.range[1]===i.range[0]&&!ux.canTokensBeAdjacent(a,c)&&(n=" "),e.replaceText(i,n+t.getText(r.argument))}})},CallExpression(r){"Identifier"===r.callee.type&&"Boolean"===r.callee.name&&n(r)&&e.report({node:r,messageId:"unexpectedCall",fix(e){const n=r.parent;if(0===r.arguments.length){if("UnaryExpression"===n.type&&"!"===n.operator){if(s(n))return null;const r="true";let o="";const i=t.getTokenBefore(n);return i&&i.range[1]===n.range[0]&&!ux.canTokensBeAdjacent(i,r)&&(o=" "),e.replaceText(n,o+r)}return s(r)?null:e.replaceText(r,"false")}if(1===r.arguments.length){const n=r.arguments[0];return"SpreadElement"===n.type||s(r)?null:o(r,n)?e.replaceText(r,`(${t.getText(n)})`):e.replaceText(r,t.getText(n))}return null}})}}}};const fx=Vp.exports;var hx={meta:{type:"suggestion",docs:{description:"disallow unnecessary labels",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-label"},schema:[],fixable:"code",messages:{unexpected:"This label '{{name}}' is unnecessary."}},create(e){const t=e.getSourceCode();let r=null;function n(e){r={label:"LabeledStatement"===e.parent.type?e.parent.label:null,breakable:!0,upper:r}}function s(){r=r.upper}function o(n){if(!n.label)return;const s=n.label;for(let o=r;null!==o;o=o.upper)if(o.breakable||o.label&&o.label.name===s.name)return void(o.breakable&&o.label&&o.label.name===s.name&&e.report({node:s,messageId:"unexpected",data:s,fix(e){const r=t.getFirstToken(n);return t.commentsExistBetween(r,s)?null:e.removeRange([r.range[1],s.range[1]])}}))}return{WhileStatement:n,"WhileStatement:exit":s,DoWhileStatement:n,"DoWhileStatement:exit":s,ForStatement:n,"ForStatement:exit":s,ForInStatement:n,"ForInStatement:exit":s,ForOfStatement:n,"ForOfStatement:exit":s,SwitchStatement:n,"SwitchStatement:exit":s,LabeledStatement:function(e){fx.isBreakableStatement(e.body)||(r={label:e.label,breakable:!1,upper:r})},"LabeledStatement:exit":function(e){fx.isBreakableStatement(e.body)||(r=r.upper)},BreakStatement:o,ContinueStatement:o}}};const{isParenthesized:mx}=yo,gx=Vp.exports;var yx={meta:{type:"layout",docs:{description:"disallow unnecessary parentheses",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["functions"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["all"]},{type:"object",properties:{conditionalAssign:{type:"boolean"},nestedBinaryExpressions:{type:"boolean"},returnAssign:{type:"boolean"},ignoreJSX:{enum:["none","all","single-line","multi-line"]},enforceForArrowConditionals:{type:"boolean"},enforceForSequenceExpressions:{type:"boolean"},enforceForNewInMemberExpressions:{type:"boolean"},enforceForFunctionPrototypeMethods:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:"Unnecessary parentheses around expression."}},create(e){const t=e.getSourceCode(),r=new WeakSet,n=gx.getPrecedence,s="functions"!==e.options[0],o=s&&e.options[1]&&!1===e.options[1].conditionalAssign,i=s&&e.options[1]&&!1===e.options[1].nestedBinaryExpressions,a=s&&e.options[1]&&!1===e.options[1].returnAssign,c=s&&e.options[1]&&e.options[1].ignoreJSX,u=s&&e.options[1]&&!1===e.options[1].enforceForArrowConditionals,l=s&&e.options[1]&&!1===e.options[1].enforceForSequenceExpressions,p=s&&e.options[1]&&!1===e.options[1].enforceForNewInMemberExpressions,d=s&&e.options[1]&&!1===e.options[1].enforceForFunctionPrototypeMethods,f=n({type:"AssignmentExpression"}),h=n({type:"UpdateExpression"});let m;function g(e){const t=gx.skipChainExpression(e);if("CallExpression"!==t.type)return!1;const r=gx.skipChainExpression(t.callee);return"MemberExpression"===r.type&&"FunctionExpression"===r.object.type&&["call","apply"].includes(gx.getStaticPropertyName(r))}function y(e){if("JSXElement"===e.type||"JSXFragment"===e.type){const t=e.loc.start.line===e.loc.end.line;switch(c){case"all":return!1;case"multi-line":return t;case"single-line":return!t}}return("SequenceExpression"!==e.type||!l)&&((!g(e)||!d)&&(s||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type))}function x(e){return mx(1,e,t)}function b(e){return mx(2,e,t)}function v(e){return y(e)&&x(e)}function E(e){return y(e)&&b(e)}function C(e,t){return!!(y(e)&&x(e)&&(n(e)>=t||b(e)))}function S(e){return o&&"AssignmentExpression"===e.test.type}function k(e){const r=t.getLastToken(e),n=t.getTokenBefore(r);return e.arguments.length>0||gx.isOpeningParenToken(n)&&gx.isClosingParenToken(r)&&e.callee.range[1]<e.range[1]}function A(e){return"AssignmentExpression"===e.type||("ConditionalExpression"===e.type&&("AssignmentExpression"===e.consequent.type||"AssignmentExpression"===e.alternate.type)||!!(e.left&&"AssignmentExpression"===e.left.type||e.right&&"AssignmentExpression"===e.right.type))}function D(e){return!(!a||!function(e){for(let t=e;t;t=t.parent)if("ReturnStatement"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"!==t.body.type)return!0;return!1}(e))&&("ReturnStatement"===e.type?e.argument&&A(e.argument):"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?A(e.body):A(e))}function w(e,t){return e.loc.end.line===t.loc.start.line?v(t):E(t)}function F(e){const t=gx.skipChainExpression(e);return"CallExpression"===t.type&&"FunctionExpression"===t.callee.type}function T(e){return e&&("Identifier"===e.type||"MemberExpression"===e.type)}function P(n){const s=t.getTokenBefore(n),o=t.getTokenAfter(n);if(!b(n)){if(r.has(t.getFirstToken(n)))return;if(F(n)&&!x(n.callee))return}function i(){e.report({node:n,loc:s.loc,messageId:"unexpected",fix(e){const r=t.text.slice(s.range[1],o.range[0]);return e.replaceTextRange([s.range[0],o.range[1]],(function(e){const r=t.getTokenBefore(e),n=t.getTokenBefore(r,{includeComments:!0}),s=t.getTokenAfter(r,{includeComments:!0});return n&&n.range[1]===r.range[0]&&r.range[1]===s.range[0]&&!gx.canTokensBeAdjacent(n,s)}(n)?" ":"")+r+(function(e){const r=t.getTokensAfter(e,{count:2}),n=r[0],s=r[1],o=t.getLastToken(e);return n&&s&&!t.isSpaceBetweenTokens(n,s)&&!gx.canTokensBeAdjacent(o,s)}(n)?" ":""))}})}m?m.reports.push({node:n,finishReport:i}):i()}function I(e){C(e.argument,n(e))&&P(e.argument)}function _(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)t=t.object,r=t.type;return"CallExpression"===r}function B(e){const t=e.callee;C(t,n(e))&&(!E(t)&&(F(e)||"NewExpression"===t.type&&!k(t)&&("NewExpression"!==e.type||k(e))||"NewExpression"===e.type&&"MemberExpression"===t.type&&_(t)||!e.optional&&"ChainExpression"===t.type)||P(e.callee)),e.arguments.filter((e=>C(e,f))).forEach(P)}function O(e){const t=n(e),r=n(e.left),s=n(e.right),o="**"===e.operator,a=i&&("BinaryExpression"===e.left.type||"LogicalExpression"===e.left.type),c=i&&("BinaryExpression"===e.right.type||"LogicalExpression"===e.right.type);!a&&v(e.left)&&((["AwaitExpression","UnaryExpression"].includes(e.left.type)&&o||gx.isMixedLogicalAndCoalesceExpressions(e.left,e)||!(r>t||r===t&&!o))&&!b(e.left)||P(e.left)),!c&&v(e.right)&&(!gx.isMixedLogicalAndCoalesceExpressions(e.right,e)&&(s>t||s===t&&o)||b(e.right))&&P(e.right)}function L(e){if(!e.superClass)return;(n(e.superClass)>h?v(e.superClass):E(e.superClass))&&P(e.superClass)}function j(e){C(e.argument,f)&&P(e.argument)}function N(e){const n=x(e)?t.getTokenBefore(e):t.getFirstToken(e),s=t.getTokenAfter(n,gx.isNotOpeningParenToken),o=s?t.getTokenAfter(s):null,i=s?t.getTokenAfter(s,gx.isNotClosingParenToken):null;gx.isOpeningParenToken(n)&&(gx.isOpeningBraceToken(s)||"Keyword"===s.type&&("function"===s.value||"class"===s.value||"let"===s.value&&i&&(gx.isOpeningBracketToken(i)||"Identifier"===i.type))||s&&"Identifier"===s.type&&"async"===s.value&&o&&"Keyword"===o.type&&"function"===o.value)&&r.add(s);("ExportDefaultDeclaration"===e.parent.type?C(e,f):v(e))&&P(e)}function R(e,t){return function(e,t){const r=[e];let n=e;for(;n!==t;){if(n=n.parent,null===n)throw new Error("Nodes are not in the ancestor-descendant relationship.");r.push(n)}return r}(t,e).reverse()}function M(e,t){switch(e.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return e.params.includes(t);case"CallExpression":case"NewExpression":return e.arguments.includes(t);case"MemberExpression":return e.computed&&e.property===t;case"ConditionalExpression":return e.consequent===t;default:return!1}}function V(e){return m.reports.some((t=>t.node===e))}function $(e){return"MemberExpression"===e.type&&("NewExpression"===e.parent.type&&e.parent.callee===e||e.parent.object===e&&$(e.parent))}return{ArrayExpression(e){e.elements.filter((e=>e&&C(e,f))).forEach(P)},ArrayPattern(e){e.elements.filter((e=>T(e)&&v(e))).forEach(P)},ArrowFunctionExpression(e){if(!(D(e)||"ConditionalExpression"===e.body.type&&u||"BlockStatement"===e.body.type)){const n=t.getFirstToken(e.body,gx.isNotOpeningParenToken),s=t.getTokenBefore(n);gx.isOpeningParenToken(s)&&gx.isOpeningBraceToken(n)&&r.add(n),C(e.body,f)&&P(e.body)}},AssignmentExpression(e){T(e.left)&&v(e.left)&&P(e.left),!D(e)&&C(e.right,n(e))&&P(e.right)},BinaryExpression(e){m&&"in"===e.operator&&m.inExpressionNodes.push(e),O(e)},CallExpression:B,ConditionalExpression(e){D(e)||(!S(e)&&C(e.test,n({type:"LogicalExpression",operator:"||"}))&&P(e.test),C(e.consequent,f)&&P(e.consequent),C(e.alternate,f)&&P(e.alternate))},DoWhileStatement(e){v(e.test)&&!S(e)&&P(e.test)},ExportDefaultDeclaration:e=>N(e.declaration),ExpressionStatement:e=>N(e.expression),ForInStatement(e){if("VariableDeclaration"!==e.left.type){const n=t.getFirstToken(e.left,gx.isNotOpeningParenToken);"let"===n.value&&gx.isOpeningBracketToken(t.getTokenAfter(n,gx.isNotClosingParenToken))&&r.add(n)}v(e.left)&&P(e.left),v(e.right)&&P(e.right)},ForOfStatement(e){if("VariableDeclaration"!==e.left.type){const n=t.getFirstToken(e.left,gx.isNotOpeningParenToken);"let"===n.value&&r.add(n)}v(e.left)&&P(e.left),C(e.right,f)&&P(e.right)},ForStatement(e){if(e.test&&v(e.test)&&!S(e)&&P(e.test),e.update&&v(e.update)&&P(e.update),e.init){if("VariableDeclaration"!==e.init.type){const n=t.getFirstToken(e.init,gx.isNotOpeningParenToken);"let"===n.value&&gx.isOpeningBracketToken(t.getTokenAfter(n,gx.isNotClosingParenToken))&&r.add(n)}m={upper:m,inExpressionNodes:[],reports:[]},v(e.init)&&P(e.init)}},"ForStatement > *.init:exit"(e){m.reports.length&&m.inExpressionNodes.forEach((t=>{const r=R(e,t);let n;for(let e=0;e<r.length;e++){const t=r[e];if(e<r.length-1){if(M(t,r[e+1]))return}if(x(t)){if(!V(t))return;if(b(t))return;n||(n=t)}}!function(e){m.reports=m.reports.filter((t=>t.node!==e))}(n)})),function(){const{upper:e,inExpressionNodes:t,reports:r}=m;e?(e.inExpressionNodes.push(...t),e.reports.push(...r)):r.forEach((({finishReport:e})=>e())),m=e}()},IfStatement(e){v(e.test)&&!S(e)&&P(e.test)},ImportExpression(e){const{source:t}=e;"SequenceExpression"===t.type?E(t)&&P(t):v(t)&&P(t)},LogicalExpression:O,MemberExpression(e){const t=$(e)&&_(e)?E(e.object):v(e.object)&&!(g(e.parent)&&e.parent.callee===e&&d);t&&n(e.object)>=n(e)&&(e.computed||!(gx.isDecimalInteger(e.object)||"Literal"===e.object.type&&e.object.regex))&&P(e.object),t&&"CallExpression"===e.object.type&&P(e.object),t&&!p&&"NewExpression"===e.object.type&&k(e.object)&&P(e.object),t&&e.optional&&"ChainExpression"===e.object.type&&P(e.object),e.computed&&v(e.property)&&P(e.property)},"MethodDefinition[computed=true]"(e){C(e.key,f)&&P(e.key)},NewExpression:B,ObjectExpression(e){e.properties.filter((e=>e.value&&C(e.value,f))).forEach((e=>P(e.value)))},ObjectPattern(e){e.properties.filter((e=>{const t=e.value;return T(t)&&v(t)})).forEach((e=>P(e.value)))},Property(e){if(e.computed){const{key:t}=e;t&&C(t,f)&&P(t)}},PropertyDefinition(e){e.computed&&C(e.key,f)&&P(e.key),e.value&&C(e.value,f)&&P(e.value)},RestElement(e){const t=e.argument;T(t)&&v(t)&&P(t)},ReturnStatement(e){const r=t.getFirstToken(e);D(e)||!e.argument||!w(r,e.argument)||"Literal"===e.argument.type&&e.argument.regex||P(e.argument)},SequenceExpression(e){const t=n(e);e.expressions.filter((e=>C(e,t))).forEach(P)},SwitchCase(e){e.test&&v(e.test)&&P(e.test)},SwitchStatement(e){v(e.discriminant)&&P(e.discriminant)},ThrowStatement(e){w(t.getFirstToken(e),e.argument)&&P(e.argument)},UnaryExpression:I,UpdateExpression(e){if(e.prefix)I(e);else{const{argument:r}=e,n=t.getLastToken(e);r.loc.end.line===n.loc.start.line?I(e):E(r)&&P(r)}},AwaitExpression:I,VariableDeclarator(e){!e.init||!C(e.init,f)||"Literal"===e.init.type&&e.init.regex||P(e.init)},WhileStatement(e){v(e.test)&&!S(e)&&P(e.test)},WithStatement(e){v(e.object)&&P(e.object)},YieldExpression(e){if(e.argument){const r=t.getFirstToken(e);(n(e.argument)>=n(e)&&w(r,e.argument)||E(e.argument))&&P(e.argument)}},ClassDeclaration:L,ClassExpression:L,SpreadElement:j,SpreadProperty:j,ExperimentalSpreadProperty:j,TemplateLiteral(e){e.expressions.filter((e=>e&&v(e))).forEach(P)},AssignmentPattern(e){const{left:t,right:r}=e;T(t)&&v(t)&&P(t),r&&C(r,f)&&P(r)}}}};const xx=My,bx=Vp.exports;var vx={meta:{type:"suggestion",docs:{description:"disallow unnecessary semicolons",recommended:!0,url:"https://eslint.org/docs/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(e){const t=e.getSourceCode();function r(t){e.report({node:t,messageId:"unexpected",fix:r=>new xx(r,e.getSourceCode()).retainSurroundingTokens(t).remove(t)})}function n(e){for(let n=e;"Punctuator"===n.type&&!bx.isClosingBraceToken(n);n=t.getTokenAfter(n))bx.isSemicolonToken(n)&&r(n)}return{EmptyStatement(e){const t=e.parent;-1===["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].indexOf(t.type)&&r(e)},ClassBody(e){n(t.getFirstToken(e,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(e){n(t.getTokenAfter(e))}}}};const Ex=/falls?\s?through/iu;function Cx(e){return e.reachable}var Sx={meta:{type:"problem",docs:{description:"disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string",default:""}},additionalProperties:!1}],messages:{case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(e){const t=e.options[0]||{};let r=null;const n=e.getSourceCode();let s=null,o=null;return o=t.commentPattern?new RegExp(t.commentPattern,"u"):Ex,{onCodePathStart(e){r=e},onCodePathEnd(){r=r.upper},SwitchCase(t){s&&!function(e,t,r,n){const s=r.getSourceCode();if(1===e.consequent.length&&"BlockStatement"===e.consequent[0].type){const t=s.getLastToken(e.consequent[0]),r=s.getCommentsBefore(t).pop();if(r&&n.test(r.value))return!0}const o=s.getCommentsBefore(t).pop();return Boolean(o&&n.test(o.value))}(s,t,e,o)&&e.report({messageId:t.test?"case":"default",node:t}),s=null},"SwitchCase:exit"(e){const t=n.getTokenAfter(e);r.currentSegments.some(Cx)&&(e.consequent.length>0||function(e,t){return t.loc.start.line>e.loc.end.line+1}(e,t))&&e.parent.cases[e.parent.cases.length-1]!==e&&(s=e)}}}};const kx=Vp.exports;var Ax={meta:{type:"suggestion",docs:{description:"disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(e){const t=e.getSourceCode();return{Literal(r){"number"==typeof r.value&&(r.raw.startsWith(".")&&e.report({node:r,messageId:"leading",fix(e){const n=t.getTokenBefore(r),s=n&&n.range[1]===r.range[0]&&!kx.canTokensBeAdjacent(n,"0"+r.raw);return e.insertTextBefore(r,s?" 0":"0")}}),r.raw.indexOf(".")===r.raw.length-1&&e.report({node:r,messageId:"trailing",fix:e=>e.insertTextAfter(r,"0")}))}}}};const Dx=Vp.exports;var wx={meta:{type:"problem",docs:{description:"disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){function t(t){var r;"FunctionName"===t.defs[0].type&&(r=t.references,Dx.getModifyingReferences(r).forEach((t=>{e.report({node:t.identifier,messageId:"isAFunction",data:{name:t.identifier.name}})})))}function r(r){e.getDeclaredVariables(r).forEach(t)}return{FunctionDeclaration:r,FunctionExpression:r}}},Fx={meta:{type:"suggestion",docs:{description:"disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(e){const t=e.options[0],r=t&&t.exceptions||[];function n(t,r,n){const s=t.identifier;!1!==t.init||!t.isWrite()||0!==r&&n[r-1].identifier===s||e.report({node:s,messageId:"globalShouldNotBeModified",data:{name:s.name}})}function s(e){!1===e.writeable&&-1===r.indexOf(e.name)&&e.references.forEach(n)}return{Program(){e.getScope().variables.forEach(s)}}}};const Tx=Vp.exports,Px=/^(?:i|lastI)ndexOf$/u;function Ix(e){return"Literal"===e.type&&"number"==typeof e.value||"CallExpression"===e.type&&("Number"===e.callee.name||"parseInt"===e.callee.name||"parseFloat"===e.callee.name)}function _x(e){return Tx.isStringLiteral(e)||"CallExpression"===e.type&&"Identifier"===e.callee.type&&"String"===e.callee.name}function Bx(e){return Tx.isStringLiteral(e)&&(""===e.value||"TemplateLiteral"===e.type&&1===e.quasis.length&&""===e.quasis[0].value.cooked)}function Ox(e){return Bx(e.left)?e.right:e.left}var Lx={meta:{type:"suggestion",docs:{description:"disallow shorthand type conversions",recommended:!1,url:"https://eslint.org/docs/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean",default:!0},number:{type:"boolean",default:!0},string:{type:"boolean",default:!0},disallowTemplateShorthand:{type:"boolean",default:!1},allow:{type:"array",items:{enum:["~","!!","+","*"]},uniqueItems:!0}},additionalProperties:!1}],messages:{useRecommendation:"use `{{recommendation}}` instead."}},create(e){const t=function(e){return{boolean:!("boolean"in e)||e.boolean,number:!("number"in e)||e.number,string:!("string"in e)||e.string,disallowTemplateShorthand:"disallowTemplateShorthand"in e&&e.disallowTemplateShorthand,allow:e.allow||[]}}(e.options[0]||{}),r=e.getSourceCode();function n(t,n,s){e.report({node:t,messageId:"useRecommendation",data:{recommendation:n},fix(e){if(!s)return null;const o=r.getTokenBefore(t);return o&&o.range[1]===t.range[0]&&!Tx.canTokensBeAdjacent(o,n)?e.replaceText(t," "+n):e.replaceText(t,n)}})}return{UnaryExpression(e){let s;if(s=t.allow.indexOf("!!")>=0,!s&&t.boolean&&function(e){return"!"===e.operator&&"UnaryExpression"===e.argument.type&&"!"===e.argument.operator}(e)){n(e,`Boolean(${r.getText(e.argument.argument)})`,!0)}if(s=t.allow.indexOf("~")>=0,!s&&t.boolean&&function(e){if("~"!==e.operator)return!1;const t=Tx.skipChainExpression(e.argument);return"CallExpression"===t.type&&Tx.isSpecificMemberAccess(t.callee,null,Px)}(e)){const t="ChainExpression"===e.argument.type?">= 0":"!== -1";n(e,`${r.getText(e.argument)} ${t}`,!1)}if(s=t.allow.indexOf("+")>=0,!s&&t.number&&"+"===e.operator&&!Ix(e.argument)){n(e,`Number(${r.getText(e.argument)})`,!0)}},"BinaryExpression:exit"(e){let s;s=t.allow.indexOf("*")>=0;const o=!s&&t.number&&function(e){return"*"===e.operator&&("Literal"===e.left.type&&1===e.left.value||"Literal"===e.right.type&&1===e.right.value)}(e)&&function(e){const t=e.left,r=e.right;return"BinaryExpression"===r.type||Ix(r)?"BinaryExpression"===t.type||Ix(t)?null:t:r}(e);if(o){n(e,`Number(${r.getText(o)})`,!0)}if(s=t.allow.indexOf("+")>=0,!s&&t.string&&function(e){return"+"===e.operator&&(Bx(e.left)&&!_x(e.right)||Bx(e.right)&&!_x(e.left))}(e)){n(e,`String(${r.getText(Ox(e))})`,!0)}},AssignmentExpression(e){if(!(t.allow.indexOf("+")>=0)&&t.string&&function(e){return"+="===e.operator&&Bx(e.right)}(e)){const t=r.getText(Ox(e));n(e,`${t} = String(${t})`,!0)}},TemplateLiteral(e){if(!t.disallowTemplateShorthand)return;if("TaggedTemplateExpression"===e.parent.type)return;if(1!==e.expressions.length)return;if(""!==e.quasis[0].value.cooked)return;if(""!==e.quasis[1].value.cooked)return;if(_x(e.expressions[0]))return;n(e,`String(${r.getText(e.expressions[0])})`,!0)}}}},jx={meta:{type:"suggestion",docs:{description:"disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(e){const t=e.options[0]&&!0===e.options[0].lexicalBindings;function r(t,r,n){e.report({node:t,messageId:r,data:{kind:n}})}return{Program(){const n=e.getScope();n.variables.forEach((e=>{const n=!1===e.writeable;!0===e.writeable||e.defs.forEach((e=>{const s=e.node;("FunctionName"===e.type||"Variable"===e.type&&"var"===e.parent.kind)&&(n?r(s,"redeclarationOfReadonlyGlobal"):r(s,"globalNonLexicalBinding","FunctionName"===e.type?"function":`'${e.parent.kind}'`)),t&&("ClassName"!==e.type&&("Variable"!==e.type||"let"!==e.parent.kind&&"const"!==e.parent.kind)||(n?r(s,"redeclarationOfReadonlyGlobal"):r(s,"globalLexicalBinding","ClassName"===e.type?"class":`'${e.parent.kind}'`)))}))})),n.implicit.variables.forEach((e=>{const t=n.set.get(e.name);let s;if(t){if(t.writeable)return;s="assignmentToReadonlyGlobal"}else s="globalVariableLeak";e.defs.forEach((e=>{r(e.node,s)}))}))}}}};const Nx=Vp.exports,{getStaticValue:Rx}=yo;var Mx={meta:{type:"suggestion",docs:{description:"disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string."}},create(e){const t=Object.freeze(["global","window","globalThis"]),r=/^(?:set(?:Interval|Timeout)|execScript)$/u;function n(e){return"Literal"===e.type&&"string"==typeof e.value||"TemplateLiteral"===e.type||"BinaryExpression"===e.type&&"+"===e.operator&&(n(e.left)||n(e.right))}function s(t){const[r]=t.arguments;if(r){const s=Rx(r,e.getScope());(s&&"string"==typeof s.value||n(r))&&e.report({node:t,messageId:"impliedEval"})}}function o(e){const{references:t,name:n}=e;t.forEach((e=>{let t=e.identifier.parent;for(;Nx.isSpecificMemberAccess(t,null,n);)t=t.parent;if(Nx.isSpecificMemberAccess(t,null,r)){const e="ChainExpression"===t.parent.type?t.parent:t,r=e.parent;"CallExpression"===r.type&&r.callee===e&&s(r)}}))}return{CallExpression(e){Nx.isSpecificId(e.callee,r)&&s(e)},"Program:exit"(){const r=e.getScope();t.map((e=>Nx.getVariableByName(r,e))).filter((e=>!!e&&0===e.defs.length)).forEach(o)}}}};const{findVariable:Vx}=yo,$x=Vp.exports,Ux=/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,qx=/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u;function Wx(e,t){const{parent:r}=e;return"MemberExpression"===r.type&&r.object===e&&(function(e){const{parent:t}=e;return"AssignmentExpression"===t.type&&t.left===e||"ArrayPattern"===t.type||"Property"===t.type&&t.value===e&&"ObjectPattern"===t.parent.type||"RestElement"===t.type||"AssignmentPattern"===t.type&&t.left===e}(r)||function(e){const t="ChainExpression"===e.parent.type?e.parent:e,{parent:r}=t;return"UpdateExpression"===r.type&&r.argument===t||"UnaryExpression"===r.type&&"delete"===r.operator&&r.argument===t}(r)||function(e){const{parent:t}=e;return"ForInStatement"===t.type&&t.left===e||"ForOfStatement"===t.type&&t.left===e}(r))||function(e,t){const{parent:r}=e;if("CallExpression"!==r.type||r.arguments[0]!==e)return!1;const n=$x.skipChainExpression(r.callee);if(!$x.isSpecificMemberAccess(n,"Object",Ux)&&!$x.isSpecificMemberAccess(n,"Reflect",qx))return!1;const s=Vx(t,n.object);return null!==s&&"global"===s.scope.type}(e,t)}function zx(e){let t=e.parent;for(;t&&"AssignmentExpression"!==t.type&&"UpdateExpression"!==t.type&&"UnaryExpression"!==t.type&&"CallExpression"!==t.type&&"ForInStatement"!==t.type&&"ForOfStatement"!==t.type;)t=t.parent;return t||e}var Gx={meta:{type:"problem",docs:{description:"disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create:e=>({ImportDeclaration(t){const r=e.getScope();for(const n of e.getDeclaredVariables(t)){const t=n.defs.some((e=>"ImportNamespaceSpecifier"===e.node.type));let s=null;for(const o of n.references){const n=o.identifier;n!==s&&(s=n,o.isWrite()?e.report({node:zx(n),messageId:"readonly",data:{name:n.name}}):t&&Wx(n,r)&&e.report({node:zx(n),messageId:"readonlyMember",data:{name:n.name}}))}}}})};const Hx=Vp.exports;var Kx={meta:{type:"suggestion",docs:{description:"disallow inline comments after code",recommended:!1,url:"https://eslint.org/docs/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){const t=e.getSourceCode(),r=e.options[0];let n;function s(r){const s=String(t.lines[r.loc.start.line-1]),o=String(t.lines[r.loc.end.line-1]),i=s.slice(0,r.loc.start.column).trim(),a=o.slice(r.loc.end.column).trim(),c=!i,u=!a;if(!(c&&u||n&&n.test(r.value))){if((c||"{"===i)&&(u||"}"===a)){const e=t.getNodeByRangeIndex(r.range[0]);if(e&&"JSXEmptyExpression"===e.type)return}Hx.isDirectiveComment(r)||e.report({node:r,messageId:"unexpectedInlineComment"})}}return r&&r.ignorePattern&&(n=new RegExp(r.ignorePattern,"u")),{Program(){t.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(s)}}}};const Jx=Vp.exports,Qx=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),Xx=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function Yx(e){let{parent:t}=e;for(;t;){if("StaticBlock"===t.type)return"class static block body";if(Jx.isFunction(t))return"function body";({parent:t}=t)}return"program"}var Zx={meta:{type:"problem",docs:{description:"disallow variable or `function` declarations in nested blocks",recommended:!0,url:"https://eslint.org/docs/rules/no-inner-declarations"},schema:[{enum:["functions","both"]}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(e){function t(t){const r=t.parent;"BlockStatement"===r.type&&Xx.has(r.parent.type)||Qx.has(r.type)||e.report({node:t,messageId:"moveDeclToRoot",data:{type:"FunctionDeclaration"===t.type?"function":"variable",body:Yx(t)}})}return{FunctionDeclaration:t,VariableDeclaration(r){"both"===e.options[0]&&"var"===r.kind&&t(r)}}}};const eb=new(0,hg.RegExpValidator),tb=/[dgimsuy]/gu,rb=void 0;var nb={meta:{type:"problem",docs:{description:"disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(e){const t=e.options[0];let r=null;if(t&&t.allowConstructorFlags){const e=t.allowConstructorFlags.join("").replace(tb,"");e&&(r=new RegExp(`[${e}]`,"giu"))}function n(e){return e&&"Literal"===e.type&&"string"==typeof e.value}function s(e,t){try{return eb.validatePattern(e,rb,rb,t),null}catch(e){return e.message}}return{"CallExpression, NewExpression"(t){if("Identifier"!==t.callee.type||"RegExp"!==t.callee.name||!n(t.arguments[0]))return;const o=t.arguments[0].value;let i=function(e){return e.arguments.length<2?"":n(e.arguments[1])?e.arguments[1].value:null}(t);i&&r&&(i=i.replace(r,""));const a=i&&function(e){try{return eb.validateFlags(e),null}catch{return`Invalid flags supplied to RegExp constructor '${e}'`}}(i)||(null===i?s(o,!0)&&s(o,!1):s(o,i.includes("u")));a&&e.report({node:t,messageId:"regexMessage",data:{message:a}})}}}};const sb=Vp.exports;var ob={meta:{type:"suggestion",docs:{description:"disallow `this` keywords outside of classes or class-like objects",recommended:!1,url:"https://eslint.org/docs/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(e){const t=!1!==(e.options[0]||{}).capIsConstructor,r=[],n=e.getSourceCode();function s(t){r.push({init:!e.getScope().isStrict,node:t,valid:!0})}function o(){r.pop()}return r.getCurrent=function(){const e=this[this.length-1];return e.init||(e.init=!0,e.valid=!sb.isDefaultThisBinding(e.node,n,{capIsConstructor:t})),e},{Program(t){const n=e.getScope(),s=e.parserOptions.ecmaFeatures||{};r.push({init:!0,node:t,valid:!(n.isStrict||"module"===t.sourceType||s.globalReturn&&n.childScopes[0].isStrict)})},"Program:exit"(){r.pop()},FunctionDeclaration:s,"FunctionDeclaration:exit":o,FunctionExpression:s,"FunctionExpression:exit":o,"PropertyDefinition > *.value":s,"PropertyDefinition > *.value:exit":o,StaticBlock:s,"StaticBlock:exit":o,ThisExpression(t){const n=r.getCurrent();n&&!n.valid&&e.report({node:t,messageId:"unexpectedThis"})}}}};const ib=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,ab=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gmu,cb=/[\u2028\u2029]/gmu,ub=Vp.exports.createGlobalLinebreakMatcher();var lb={meta:{type:"problem",docs:{description:"disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean",default:!1},skipStrings:{type:"boolean",default:!0},skipTemplates:{type:"boolean",default:!1},skipRegExps:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(e){let t=[];const r=e.options[0]||{},n=!!r.skipComments,s=!1!==r.skipStrings,o=!!r.skipRegExps,i=!!r.skipTemplates,a=e.getSourceCode(),c=a.getAllComments();function u(e){const r=e.loc.start,n=e.loc.end;t=t.filter((({loc:{start:e}})=>e.line<r.line||e.line===r.line&&e.column<r.column||e.line===n.line&&e.column>=n.column||e.line>n.line))}function l(e){const t=s&&"string"==typeof e.value,r=o&&Boolean(e.regex);(t||r)&&ib.test(e.raw)&&u(e)}function p(e){ib.test(e.value)&&u(e)}function d(){}const f={};return ib.test(a.getText())?(f.Program=function(e){!function(e){a.lines.forEach(((r,n)=>{const s=n+1;let o;for(;null!==(o=ab.exec(r));)t.push({node:e,messageId:"noIrregularWhitespace",loc:{start:{line:s,column:o.index},end:{line:s,column:o.index+o[0].length}}})}))}(e),function(e){const r=a.getText(),n=a.lines,s=r.match(ub);let o,i=-1;for(;null!==(o=cb.exec(r));){const r=s.indexOf(o[0],i+1)||0;t.push({node:e,messageId:"noIrregularWhitespace",loc:{start:{line:r+1,column:n[r].length},end:{line:r+2,column:0}}}),i=r}}(e)},f.Identifier=l,f.Literal=l,f.TemplateElement=i?function(e){"string"==typeof e.value.raw&&ib.test(e.value.raw)&&u(e)}:d,f["Program:exit"]=function(){n&&c.forEach(p),t.forEach((t=>e.report(t)))}):f.Program=d,f}};const{getStaticPropertyName:pb}=Vp.exports;var db={meta:{type:"suggestion",docs:{description:"disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create:e=>({MemberExpression(t){"__iterator__"===pb(t)&&e.report({node:t,messageId:"noIterator"})}})};const fb=Vp.exports;var hb={meta:{type:"suggestion",docs:{description:"disallow labels that share a name with a variable",recommended:!1,url:"https://eslint.org/docs/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create:e=>({LabeledStatement(t){(function(e,t){return null!==fb.getVariableByName(e,t)})(e.getScope(),t.label.name)&&e.report({node:t,messageId:"identifierClashWithLabel"})}})};const mb=Vp.exports;var gb={meta:{type:"suggestion",docs:{description:"disallow labeled statements",recommended:!1,url:"https://eslint.org/docs/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean",default:!1},allowSwitch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(e){const t=e.options[0],r=t&&t.allowLoop,n=t&&t.allowSwitch;let s=null;function o(e){return mb.isLoop(e)?"loop":"SwitchStatement"===e.type?"switch":"other"}function i(e){switch(e){case"loop":return r;case"switch":return n;default:return!1}}function a(e){let t=s;for(;t;){if(t.label===e)return t.kind;t=t.upper}return"other"}return{LabeledStatement(e){s={label:e.label.name,kind:o(e.body),upper:s}},"LabeledStatement:exit"(t){i(s.kind)||e.report({node:t,messageId:"unexpectedLabel"}),s=s.upper},BreakStatement(t){t.label&&!i(a(t.label.name))&&e.report({node:t,messageId:"unexpectedLabelInBreak"})},ContinueStatement(t){t.label&&!i(a(t.label.name))&&e.report({node:t,messageId:"unexpectedLabelInContinue"})}}}},yb={meta:{type:"suggestion",docs:{description:"disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(e){const t=[];let r;function n(t){const r="BlockStatement"===t.parent.type||"StaticBlock"===t.parent.type?"redundantNestedBlock":"redundantBlock";e.report({node:t,messageId:r})}function s(e){return"BlockStatement"===e.parent.type||"StaticBlock"===e.parent.type||"Program"===e.parent.type||"SwitchCase"===e.parent.type&&!(e.parent.consequent[0]===e&&1===e.parent.consequent.length)}function o(){if(0===t.length)return;const r=e.getAncestors().pop();t[t.length-1]===r&&t.pop()}return r={BlockStatement(e){s(e)&&n(e)}},e.parserOptions.ecmaVersion>=6&&(r={BlockStatement(e){s(e)&&t.push(e)},"BlockStatement:exit"(e){t.length>0&&t[t.length-1]===e?(t.pop(),n(e)):"BlockStatement"!==e.parent.type&&"StaticBlock"!==e.parent.type||1!==e.parent.body.length||n(e)}},r.VariableDeclaration=function(e){"let"!==e.kind&&"const"!==e.kind||o()},r.FunctionDeclaration=function(){e.getScope().isStrict&&o()},r.ClassDeclaration=o),r}},xb={meta:{type:"suggestion",docs:{description:"disallow `if` statements as the only statement in `else` blocks",recommended:!1,url:"https://eslint.org/docs/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(e){const t=e.getSourceCode();return{IfStatement(r){const n=e.getAncestors(),s=n.pop(),o=n.pop();s&&"BlockStatement"===s.type&&1===s.body.length&&o&&"IfStatement"===o.type&&s===o.alternate&&e.report({node:r,messageId:"unexpectedLonelyIf",fix(e){const n=t.getFirstToken(s),o=t.getLastToken(s),i=t.getTokenBefore(n),a=t.getTokenAfter(o),c=t.getLastToken(r.consequent),u=t.getText();return u.slice(n.range[1],r.range[0]).trim()||u.slice(r.range[1],o.range[0]).trim()||"BlockStatement"!==r.consequent.type&&";"!==c.value&&a&&(r.consequent.loc.end.line===a.loc.start.line||/^[([/+`-]/u.test(a.value)||"++"===c.value||"--"===c.value)?null:e.replaceTextRange([n.range[0],o.range[1]],(i.range[1]===n.range[0]?" ":"")+t.getText(r))}})}}}};function bb(e){for(let t=e;t.parent;t=t.parent){const e=t.parent;switch(e.type){case"WhileStatement":case"DoWhileStatement":return e;case"ForStatement":if(e.init!==t)return e;break;case"ForInStatement":case"ForOfStatement":if(e.right!==t)return e;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":return null}}return null}function vb(e,t){const r=t.resolved,n=r&&r.defs[0],s=n&&n.parent,o=s&&"VariableDeclaration"===s.type?s.kind:"";if("const"===o)return!0;if("let"===o&&s.range[0]>e.range[0]&&s.range[1]<e.range[1])return!0;const i=function(e,t){const r=t?t.range[1]:0;let n=e,s=e;for(;s&&s.range[0]>=r;)n=s,s=bb(s);return n}(e,"let"===o?s:null).range[0];return Boolean(r)&&r.references.every((function(e){const t=e.identifier;return!e.isWrite()||r.scope.variableScope===e.from.variableScope&&t.range[0]<i}))}var Eb={meta:{type:"suggestion",docs:{description:"disallow function declarations that contain unsafe references inside loop statements",recommended:!1,url:"https://eslint.org/docs/rules/no-loop-func"},schema:[],messages:{unsafeRefs:"Function declared in a loop contains unsafe references to variable(s) {{ varNames }}."}},create(e){function t(t){const r=bb(t);if(!r)return;const n=e.getScope().through.filter((e=>!vb(r,e))).map((e=>e.identifier.name));n.length>0&&e.report({node:t,messageId:"unsafeRefs",data:{varNames:`'${n.join("', '")}'`}})}return{ArrowFunctionExpression:t,FunctionExpression:t,FunctionDeclaration:t}}},Cb={meta:{type:"problem",docs:{description:"disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(e){function t(e){return e.raw.replace(/_/gu,"")}function r(e){return`${e.slice(0,1)}.${e.slice(1)}`}function n(e){return e.replace(/^0*/u,"")}function s(e){const t=e.replace("E","e").split("e"),s=t[0],o=e.includes(".")?function(e){const t=n(e);if(t.startsWith(".")){const e=t.split(".").pop(),s=n(e);return{magnitude:s.length-e.length-1,coefficient:r(s)}}return{magnitude:t.indexOf(".")-1,coefficient:r(t.replace(".",""))}}(s):function(e){const t=n(e).replace(/0*$/u,"");return{magnitude:e.startsWith("0")?e.length-2:e.length-1,coefficient:r(t)}}(s);return`${o.coefficient}e${t.length>1?parseInt(t[1],10)+o.magnitude:o.magnitude}`}function o(e){return function(e){return["0x","0X","0b","0B","0o","0O"].every((t=>!e.raw.startsWith(t)))&&!/^0[0-7]+$/u.test(e.raw)}(e)?function(e){const r=s(t(e)),n=r.split("e")[0].replace(".","").length;return n>100||r!==s(e.value.toPrecision(n))}(e):function(e){const r=t(e).toUpperCase();let n=0;return n=r.startsWith("0B")?2:r.startsWith("0X")?16:8,!r.endsWith(e.value.toString(n).toUpperCase())}(e)}return{Literal(t){t.value&&function(e){return"number"==typeof e.value}(t)&&o(t)&&e.report({messageId:"noLossOfPrecision",node:t})}}}};const Sb=Vp.exports;function kb(e){return"string"==typeof e?BigInt(e.slice(0,-1)):e}var Ab={meta:{type:"suggestion",docs:{description:"disallow magic numbers",recommended:!1,url:"https://eslint.org/docs/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(e){const t=e.options[0]||{},r=!!t.detectObjects,n=!!t.enforceConst,s=(t.ignore||[]).map(kb),o=!!t.ignoreArrayIndexes,i=!!t.ignoreDefaultValues,a=r?[]:["ObjectExpression","Property","AssignmentExpression"];return{Literal(t){if(!Sb.isNumericLiteral(t))return;let r,c,u;"UnaryExpression"===t.parent.type&&"-"===t.parent.operator?(r=t.parent,c=-t.value,u="-"+t.raw):(r=t,c=t.value,u=t.raw);const l=r.parent;(function(e){return-1!==s.indexOf(e)})(c)||i&&function(e){const t=e.parent;return"AssignmentPattern"===t.type&&t.right===e}(r)||function(e){const t=e.parent;return"CallExpression"===t.type&&e===t.arguments[1]&&(Sb.isSpecificId(t.callee,"parseInt")||Sb.isSpecificMemberAccess(t.callee,"Number","parseInt"))}(r)||function(e){return 0===e.parent.type.indexOf("JSX")}(r)||o&&function(e,t){const r=e.parent;return"MemberExpression"===r.type&&r.property===e&&(Number.isInteger(t)||"bigint"==typeof t)&&t>=0&&t<4294967295}(r,c)||("VariableDeclarator"===l.type?n&&"const"!==l.parent.kind&&e.report({node:r,messageId:"useConst"}):(-1===a.indexOf(l.type)||"AssignmentExpression"===l.type&&"Identifier"===l.left.type)&&e.report({node:r,messageId:"noMagic",data:{raw:u}}))}}}},Db={isCombiningCharacter:function(e){return/^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(e))},isEmojiModifier:function(e){return e>=127995&&e<=127999},isRegionalIndicatorSymbol:function(e){return e>=127462&&e<=127487},isSurrogatePair:function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}};const{CALL:wb,CONSTRUCT:Fb,ReferenceTracker:Tb,getStringIfConstant:Pb}=yo,{RegExpParser:Ib,visitRegExpAST:_b}=hg,{isCombiningCharacter:Bb,isEmojiModifier:Ob,isRegionalIndicatorSymbol:Lb,isSurrogatePair:jb}=Db;const Nb={surrogatePairWithoutUFlag:e=>e.some(((t,r)=>0!==r&&jb(e[r-1],t))),combiningClass:e=>e.some(((t,r)=>0!==r&&Bb(t)&&!Bb(e[r-1]))),emojiModifier:e=>e.some(((t,r)=>0!==r&&Ob(t)&&!Ob(e[r-1]))),regionalIndicatorSymbol:e=>e.some(((t,r)=>0!==r&&Lb(t)&&Lb(e[r-1]))),zwj(e){const t=e.length-1;return e.some(((r,n)=>0!==n&&n!==t&&8205===r&&8205!==e[n-1]&&8205!==e[n+1]))}},Rb=Object.keys(Nb);var Mb={meta:{type:"problem",docs:{description:"disallow characters which are made with multiple code points in character class syntax",recommended:!0,url:"https://eslint.org/docs/rules/no-misleading-character-class"},schema:[],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",combiningClass:"Unexpected combined character in character class.",emojiModifier:"Unexpected modified Emoji in character class.",regionalIndicatorSymbol:"Unexpected national flag in character class.",zwj:"Unexpected joined character sequence in character class."}},create(e){const t=new Ib;function r(r,n,s){const o={surrogatePairWithoutUFlag:!1,combiningClass:!1,variationSelector:!1,emojiModifier:!1,regionalIndicatorSymbol:!1,zwj:!1};let i;try{i=t.parsePattern(n,0,n.length,s.includes("u"))}catch{return}_b(i,{onCharacterClassEnter(e){for(const t of function*(e){let t=[];for(const r of e)switch(r.type){case"Character":t.push(r.value);break;case"CharacterClassRange":t.push(r.min.value),yield t,t=[r.max.value];break;case"CharacterSet":t.length>0&&(yield t,t=[])}t.length>0&&(yield t)}(e.elements))for(const e of Rb)o[e]=o[e]||Nb[e](t)}});for(const t of Rb)o[t]&&e.report({node:r,messageId:t})}return{"Literal[regex]"(e){r(e,e.regex.pattern,e.regex.flags)},Program(){const t=e.getScope(),n=new Tb(t);for(const{node:e}of n.iterateGlobalReferences({RegExp:{[wb]:!0,[Fb]:!0}})){const[n,s]=e.arguments,o=Pb(n,t),i=Pb(s,t);"string"==typeof o&&r(e,o,i||"")}}}}};const Vb=Vp.exports,$b=["+","-","*","/","%","**"],Ub=["&","|","^","~","<<",">>",">>>"],qb=["==","!=","===","!==",">",">=","<","<="],Wb=["&&","||"],zb=["in","instanceof"],Gb=[].concat($b,Ub,qb,Wb,zb,["?:"],["??"]),Hb=[$b,Ub,qb,Wb,zb],Kb=/^(?:Binary|Logical|Conditional)Expression$/u;function Jb(e){return"ConditionalExpression"===e.type?e.test:e.left}var Qb={meta:{type:"suggestion",docs:{description:"disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:Gb},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(e){const t=e.getSourceCode(),r=function(e={}){return{groups:e.groups&&e.groups.length>0?e.groups:Hb,allowSamePrecedence:!1!==e.allowSamePrecedence}}(e.options[0]);function n(e){return t.getTokenAfter(Jb(e),Vb.isNotClosingParenToken)}function s(s){Kb.test(s.parent.type)&&function(e){return e.operator!==e.parent.operator&&!Vb.isParenthesised(t,e)}(s)&&!function(e){const t=e,n=e.parent;return s=r.groups,o=t.operator,i="ConditionalExpression"===n.type?"?:":n.operator,!s.some((e=>-1!==e.indexOf(o)&&-1!==e.indexOf(i)))||r.allowSamePrecedence&&Vb.getPrecedence(t)===Vb.getPrecedence(n);var s,o,i}(s)&&function(t){const r=t.parent,s=Jb(r)===t?t:r,o=Jb(r)!==t?t:r,i={leftOperator:s.operator||"?:",rightOperator:o.operator||"?:"};e.report({node:s,loc:n(s).loc,messageId:"unexpectedMixedOperator",data:i}),e.report({node:o,loc:n(o).loc,messageId:"unexpectedMixedOperator",data:i})}(s)}return{BinaryExpression:s,LogicalExpression:s}}},Xb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/no-mixed-requires"},schema:[{oneOf:[{type:"boolean"},{type:"object",properties:{grouping:{type:"boolean"},allowCall:{type:"boolean"}},additionalProperties:!1}]}],messages:{noMixRequire:"Do not mix 'require' and other declarations.",noMixCoreModuleFileComputed:"Do not mix core, module, file and computed requires."}},create(e){const t=e.options[0];let r=!1,n=!1;"object"==typeof t?(r=t.grouping,n=t.allowCall):r=!!t;const s=["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","repl","smalloc","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"],o="require",i="uninitialized",a="other",c="computed";function u(e){return e?"CallExpression"===e.type&&"Identifier"===e.callee.type&&"require"===e.callee.name?o:n&&"CallExpression"===e.type&&"CallExpression"===e.callee.type?u(e.callee):"MemberExpression"===e.type?u(e.object):a:i}function l(e){if("MemberExpression"===e.type)return l(e.object);if(0===e.arguments.length)return c;const t=e.arguments[0];return"Literal"!==t.type||"string"!=typeof t.value?c:-1!==s.indexOf(t.value)?"core":/^\.{0,2}\//u.test(t.value)?"file":"module"}function p(e){const t={};return e.forEach((e=>{u(e.init)===o&&(t[l(e.init)]=!0)})),Object.keys(t).length<=1}return{VariableDeclaration(t){!function(e){const t={};return e.forEach((e=>{const r=u(e.init);t[r]=!0})),!(!t.require||!t.uninitialized&&!t.other)}(t.declarations)?r&&!p(t.declarations)&&e.report({node:t,messageId:"noMixCoreModuleFileComputed"}):e.report({node:t,messageId:"noMixRequire"})}}}},Yb={meta:{type:"layout",docs:{description:"disallow mixed spaces and tabs for indentation",recommended:!0,url:"https://eslint.org/docs/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(e){const t=e.getSourceCode();let r;switch(e.options[0]){case!0:case"smart-tabs":r=!0;break;default:r=!1}return{"Program:exit"(n){const s=t.lines,o=t.getAllComments(),i=new Set;o.forEach((e=>{for(let t=e.loc.start.line+1;t<=e.loc.end.line;t++)i.add(t)}));let a=/^(?=( +|\t+))\1(?:\t| )/u;r&&(a=/^(?=(\t*))\1(?=( +))\2\t/u),s.forEach(((r,s)=>{const o=a.exec(r);if(o){const r=s+1,a={start:{line:r,column:o[0].length-2},end:{line:r,column:o[0].length}};if(!i.has(r)){const r=t.getNodeByRangeIndex(t.getIndexFromLoc(a.start));r&&["Literal","TemplateElement"].includes(r.type)||e.report({node:n,loc:a,messageId:"mixedSpacesAndTabs"})}}}))}}}},Zb={meta:{type:"suggestion",docs:{description:"disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(e){const t=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return(e.options[0]||{ignoreNonDeclaration:!1}).ignoreNonDeclaration||t.push("AssignmentExpression > AssignmentExpression.right"),{[t](t){e.report({node:t,messageId:"unexpectedChain"})}}}};const ev=Vp.exports;var tv={meta:{type:"layout",docs:{description:"disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},n=r.ignoreEOLComments,s=Object.assign({Property:!0},r.exceptions),o=Object.keys(s).filter((e=>s[e])).length>0;function i(e){const t=e.value.split("\n"),r=t[0],n=r.slice(0,12)+"...";return 1===t.length&&r.length<=12?r:n}return{Program(){t.tokensAndComments.forEach(((r,a,c)=>{if(a===c.length-1)return;const u=c[a+1];if(!t.text.slice(r.range[1],u.range[0]).includes(" ")||r.loc.end.line<u.loc.start.line)return;if(n&&ev.isCommentToken(u)&&(a===c.length-2||u.loc.end.line<c[a+2].loc.start.line))return;if(o){const e=t.getNodeByRangeIndex(u.range[0]-1);if(e&&s[e.type])return}let l;l="Block"===u.type?`/*${i(u)}*/`:"Line"===u.type?"//"+i(u):u.value,e.report({node:u,loc:{start:r.loc.end,end:u.loc.start},messageId:"multipleSpaces",data:{displayValue:l},fix:e=>e.replaceTextRange([r.range[1],u.range[0]]," ")})}))}}}};const rv=Vp.exports;var nv={meta:{type:"suggestion",docs:{description:"disallow multiline strings",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create:e=>({Literal(t){rv.LINEBREAK_MATCHER.test(t.raw)&&!function(e){return 0===e.type.indexOf("JSX")}(t.parent)&&e.report({node:t,messageId:"multilineString"})}})},sv={meta:{type:"layout",docs:{description:"disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(e){let t=2,r=t,n=t;e.options.length&&(t=e.options[0].max,r=void 0!==e.options[0].maxEOF?e.options[0].maxEOF:t,n=void 0!==e.options[0].maxBOF?e.options[0].maxBOF:t);const s=e.getSourceCode(),o=""===s.lines[s.lines.length-1]?s.lines.slice(0,-1):s.lines,i=new Set;return{TemplateLiteral(e){e.quasis.forEach((e=>{for(let t=e.loc.start.line;t<e.loc.end.line;t++)i.add(t)}))},"Program:exit":a=>o.reduce(((e,t,r)=>((t.trim()||i.has(r+1))&&e.push(r+1),e)),[]).concat(o.length+1).reduce(((i,c)=>{let u,l;return 0===i?(u="blankBeginningOfFile",l=n):c===o.length+1?(u="blankEndOfFile",l=r):(u="consecutiveBlank",l=t),c-i-1>l&&e.report({node:a,loc:{start:{line:i+l+1,column:0},end:{line:c,column:0}},messageId:u,data:{max:l,pluralizedLines:1===l?"line":"lines"},fix(e){const t=s.getIndexFromLoc({line:i+1,column:0}),r=c-l,n=r<=o.length?s.getIndexFromLoc({line:r,column:0}):s.text.length;return e.removeRange([t,n])}}),c}),0)}}},ov={meta:{type:"suggestion",docs:{description:"disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/rules/no-native-reassign"},deprecated:!0,replacedBy:["no-global-assign"],schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(e){const t=e.options[0],r=t&&t.exceptions||[];function n(t,r,n){const s=t.identifier;!1!==t.init||!t.isWrite()||0!==r&&n[r-1].identifier===s||e.report({node:s,messageId:"nativeReassign",data:s})}function s(e){!1===e.writeable&&-1===r.indexOf(e.name)&&e.references.forEach(n)}return{Program(){e.getScope().variables.forEach(s)}}}},iv={meta:{type:"suggestion",docs:{description:"disallow negated conditions",recommended:!1,url:"https://eslint.org/docs/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(e){function t(e){return"UnaryExpression"===(t=e.test).type&&"!"===t.operator||function(e){return"BinaryExpression"===e.type&&("!="===e.operator||"!=="===e.operator)}(e.test);var t}return{IfStatement(r){(function(e){return e.alternate&&"IfStatement"!==e.alternate.type})(r)&&t(r)&&e.report({node:r,messageId:"unexpectedNegated"})},ConditionalExpression(r){t(r)&&e.report({node:r,messageId:"unexpectedNegated"})}}}},av={meta:{type:"problem",docs:{description:"disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-negated-in-lhs"},replacedBy:["no-unsafe-negation"],deprecated:!0,schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create:e=>({BinaryExpression(t){"in"===t.operator&&"UnaryExpression"===t.left.type&&"!"===t.left.operator&&e.report({node:t,messageId:"negatedLHS"})}})},cv={meta:{type:"suggestion",docs:{description:"disallow nested ternary expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create:e=>({ConditionalExpression(t){"ConditionalExpression"!==t.alternate.type&&"ConditionalExpression"!==t.consequent.type||e.report({node:t,messageId:"noNestedTernary"})}})},uv={meta:{type:"suggestion",docs:{description:"disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create:e=>({"ExpressionStatement > NewExpression"(t){e.report({node:t.parent,messageId:"noNewStatement"})}})};const lv=Vp.exports,pv=new Set(["apply","bind","call"]);var dv={meta:{type:"suggestion",docs:{description:"disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create:e=>({"Program:exit"(){const t=e.getScope().set.get("Function");t&&0===t.defs.length&&t.references.forEach((t=>{const r=t.identifier,{parent:n}=r;let s;if(n)if(r!==n.callee||"NewExpression"!==n.type&&"CallExpression"!==n.type){if("MemberExpression"===n.type&&r===n.object&&pv.has(lv.getStaticPropertyName(n))){const e="ChainExpression"===n.parent.type?n.parent:n;"CallExpression"===e.parent.type&&e.parent.callee===e&&(s=e.parent)}}else s=n;s&&e.report({node:s,messageId:"noFunctionConstructor"})}))}})};const fv=Vp.exports;var hv={meta:{type:"suggestion",docs:{description:"disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/rules/no-new-object"},schema:[],messages:{preferLiteral:"The object literal notation {} is preferrable."}},create:e=>({NewExpression(t){const r=fv.getVariableByName(e.getScope(),t.callee.name);r&&r.identifiers.length>0||"Object"===t.callee.name&&e.report({node:t,messageId:"preferLiteral"})}})},mv={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create:e=>({NewExpression(t){"Identifier"===t.callee.type&&"require"===t.callee.name&&e.report({node:t,messageId:"noNewRequire"})}})},gv={meta:{type:"problem",docs:{description:"disallow `new` operators with the `Symbol` object",recommended:!0,url:"https://eslint.org/docs/rules/no-new-symbol"},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create:e=>({"Program:exit"(){const t=e.getScope().set.get("Symbol");t&&0===t.defs.length&&t.references.forEach((t=>{const r=t.identifier,n=r.parent;n&&"NewExpression"===n.type&&n.callee===r&&e.report({node:r,messageId:"noNewSymbol"})}))}})},yv={meta:{type:"suggestion",docs:{description:"disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create:e=>({NewExpression(t){["String","Number","Boolean"].indexOf(t.callee.name)>-1&&e.report({node:t,messageId:"noConstructor",data:{fn:t.callee.name}})}})};const xv=/\\[89]/u;function bv(e){return"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0")}var vv={meta:{type:"suggestion",docs:{description:"disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/rules/no-nonoctal-decimal-escape"},hasSuggestions:!0,schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(e){const t=e.getSourceCode();function r(e,r,n){return{messageId:e,data:{original:t.getText().slice(...r),replacement:n},fix:e=>e.replaceTextRange(r,n)}}return{Literal(n){if("string"!=typeof n.value)return;if(!xv.test(n.raw))return;const s=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/uys;let o;for(;o=s.exec(n.raw);){const{previousEscape:s,decimalEscape:i}=o.groups,a=n.range[0]+o.index+o[0].length,c=a-i.length,u=[c,a],l=[];"\\0"===s?l.push(r("refactor",[c-s.length,a],`${bv("\0")}${i[1]}`),r("refactor",u,bv(i[1]))):l.push(r("refactor",u,i[1])),l.push(r("escapeBackslash",u,"\\"+i)),e.report({node:n,loc:{start:t.getLocFromIndex(c),end:t.getLocFromIndex(a)},messageId:"decimalEscape",data:{decimalEscape:i},suggest:l})}}}}};const{CALL:Ev,CONSTRUCT:Cv,ReferenceTracker:Sv}=yo,kv=Vp.exports.getStaticPropertyName,Av=["Atomics","JSON","Math","Reflect"];function Dv(e){return"ChainExpression"===e.type?Dv(e.expression):"MemberExpression"===e.type?kv(e):e.name}var wv={meta:{type:"problem",docs:{description:"disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create:e=>({Program(){const t=e.getScope(),r=new Sv(t),n={};for(const e of Av)n[e]={[Ev]:!0,[Cv]:!0};for(const{node:t,path:s}of r.iterateGlobalReferences(n)){const r=Dv(t.callee),n=s[0],o=r===n?"unexpectedCall":"unexpectedRefCall";e.report({node:t,messageId:o,data:{name:r,ref:n}})}}})},Fv={meta:{type:"suggestion",docs:{description:"disallow octal literals",recommended:!0,url:"https://eslint.org/docs/rules/no-octal"},schema:[],messages:{noOcatal:"Octal literals should not be used."}},create:e=>({Literal(t){"number"==typeof t.value&&/^0[0-9]/u.test(t.raw)&&e.report({node:t,messageId:"noOcatal"})}})},Tv={meta:{type:"suggestion",docs:{description:"disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create:e=>({Literal(t){if("string"!=typeof t.value)return;const r=t.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/us);r&&e.report({node:t,messageId:"octalEscapeSequence",data:{sequence:r[1]}})}})};const Pv=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;var Iv={meta:{type:"suggestion",docs:{description:"disallow reassigning `function` parameters",recommended:!1,url:"https://eslint.org/docs/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(e){const t=e.options[0]&&e.options[0].props,r=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],n=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[];function s(s,o,i){const a=s.identifier;var c;!a||s.init||0!==o&&i[o-1].identifier===a||(s.isWrite()?e.report({node:a,messageId:"assignmentToFunctionParam",data:{name:a.name}}):t&&function(e){let t=e.identifier,r=t.parent;for(;r&&(!Pv.test(r.type)||"ForInStatement"===r.type||"ForOfStatement"===r.type);){switch(r.type){case"AssignmentExpression":return r.left===t;case"UpdateExpression":return!0;case"UnaryExpression":if("delete"===r.operator)return!0;break;case"ForInStatement":case"ForOfStatement":return r.left===t;case"CallExpression":if(r.callee!==t)return!1;break;case"MemberExpression":if(r.property===t)return!1;break;case"Property":if(r.key===t)return!1;break;case"ConditionalExpression":if(r.test===t)return!1}t=r,r=t.parent}return!1}(s)&&(c=a.name,!r.includes(c)&&!n.some((e=>new RegExp(e,"u").test(c))))&&e.report({node:a,messageId:"assignmentToFunctionParamProp",data:{name:a.name}}))}function o(e){"Parameter"===e.defs[0].type&&e.references.forEach(s)}function i(t){e.getDeclaredVariables(t).forEach(o)}return{"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i}}},_v={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(e){const t=/^__(?:dir|file)name$/u;return{BinaryExpression(r){const n=r.left,s=r.right;"+"===r.operator&&("Identifier"===n.type&&t.test(n.name)||"Identifier"===s.type&&t.test(s.name))&&e.report({node:r,messageId:"usePathFunctions"})}}}};function Bv(e){const t=e.parent;return"SequenceExpression"===t.type?Bv(t):function(e){const t=e.parent;return"ForStatement"===t.type&&t.update===e}(e)}var Ov={meta:{type:"suggestion",docs:{description:"disallow the unary operators `++` and `--`",recommended:!1,url:"https://eslint.org/docs/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(e){const t=e.options[0];let r=!1;return"object"==typeof t&&(r=!0===t.allowForLoopAfterthoughts),{UpdateExpression(t){r&&Bv(t)||e.report({node:t,messageId:"unexpectedUnaryOp",data:{operator:t.operator}})}}}},Lv={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create:e=>({MemberExpression(t){const r=t.object.name,n=t.property.name;"process"===r&&!t.computed&&n&&"env"===n&&e.report({node:t,messageId:"unexpectedProcessEnv"})}})},jv={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create:e=>({"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(t){e.report({node:t.parent,messageId:"noProcessExit"})}})};const{findVariable:Nv}=yo,Rv=new Set(["ArrowFunctionExpression","FunctionExpression"]);function Mv(e,t){const r=e.parent;return"NewExpression"===r.type&&r.arguments[0]===e&&"Identifier"===r.callee.type&&"Promise"===r.callee.name&&function(e,t){const r=Nv(t,e);return null!==r&&"global"===r.scope.type&&0===r.defs.length}(r.callee,function(e){const t=e.upper;return"function-expression-name"===t.type?t.upper:t}(t))}var Vv={meta:{type:"problem",docs:{description:"disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/rules/no-promise-executor-return"},schema:[],messages:{returnsValue:"Return values from promise executor functions cannot be read."}},create(e){let t=null;function r(t){e.report({node:t,messageId:"returnsValue"})}return{onCodePathStart(n,s){t={upper:t,shouldCheck:Rv.has(s.type)&&Mv(s,e.getScope())},t.shouldCheck&&"ArrowFunctionExpression"===s.type&&s.expression&&r(s.body)},onCodePathEnd(){t=t.upper},ReturnStatement(e){t.shouldCheck&&e.argument&&r(e)}}}};const{getStaticPropertyName:$v}=Vp.exports;var Uv={meta:{type:"suggestion",docs:{description:"disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create:e=>({MemberExpression(t){"__proto__"===$v(t)&&e.report({node:t,messageId:"unexpectedProto"})}})};const qv=Vp.exports;var Wv={meta:{type:"problem",docs:{description:"disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/rules/no-prototype-builtins"},schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object."}},create(e){const t=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"];return{CallExpression:function(r){const n=qv.skipChainExpression(r.callee);if("MemberExpression"!==n.type)return;const s=qv.getStaticPropertyName(n);null!==s&&t.indexOf(s)>-1&&e.report({messageId:"prototypeBuildIn",loc:n.property.loc,data:{prop:s},node:r})}}}};const zv=Vp.exports;var Gv={meta:{type:"suggestion",docs:{description:"disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!0}},additionalProperties:!1}]},create(e){const t=Boolean(0===e.options.length||e.options[0].builtinGlobals),r=e.getSourceCode();function*n(e){!t||"readonly"!==e.eslintImplicitGlobalSetting&&"writable"!==e.eslintImplicitGlobalSetting||(yield{type:"builtin"});for(const t of e.identifiers)yield{type:"syntax",node:t,loc:t.loc};if(e.eslintExplicitGlobalComments)for(const t of e.eslintExplicitGlobalComments)yield{type:"comment",node:t,loc:zv.getNameLocationInGlobalDirectiveComment(r,t,e.name)}}function s(t){for(const r of t.variables){const[t,...s]=n(r);if(0===s.length)continue;const o="builtin"===t.type?"redeclaredAsBuiltin":"redeclaredBySyntax",i={id:r.name};for(const{type:r,node:n,loc:a}of s){const s=r===t.type?"redeclared":o;e.report({node:n,loc:a,messageId:s,data:i})}}}function o(t){const r=e.getScope();r.block===t&&s(r)}return{Program(){const t=e.getScope();s(t),"global"===t.type&&t.childScopes[0]&&t.block===t.childScopes[0].block&&s(t.childScopes[0])},FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o,StaticBlock:o,BlockStatement:o,ForStatement:o,ForInStatement:o,ForOfStatement:o,SwitchStatement:o}}};const Hv=Vp.exports,Kv=hg,Jv=new Kv.RegExpParser,Qv=/ {2}/u;function Xv(e){return e&&"Literal"===e.type&&"string"==typeof e.value}var Yv={meta:{type:"suggestion",docs:{description:"disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(e){function t(t,r,n,s,o){if(!Qv.test(n))return;const i=[];let a;try{a=Jv.parsePattern(r,0,r.length,o.includes("u"))}catch{return}Kv.visitRegExpAST(a,{onCharacterClassEnter(e){i.push(e)}});const c=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu;let u;for(;u=c.exec(r);){const{1:{length:o},index:a}=u;if(i.every((({start:e,end:t})=>a<e||t<=a)))return void e.report({node:t,messageId:"multipleSpaces",data:{length:o},fix:e=>r!==n?null:e.replaceTextRange([s+a,s+a+o],` {${o}}`)})}}function r(r){const n=e.getScope(),s=Hv.getVariableByName(n,"RegExp"),o=s&&s.defs.length>0,i=r.arguments[0],a=r.arguments[1];if("Identifier"===r.callee.type&&"RegExp"===r.callee.name&&Xv(i)&&!o){t(r,i.value,i.raw.slice(1,-1),i.range[0]+1,Xv(a)?a.value:"")}}return{Literal:function(e){if(e.regex){const r=e.regex.pattern,n=e.raw.slice(1,e.raw.lastIndexOf("/"));t(e,r,n,e.range[0]+1,e.regex.flags)}},CallExpression:r,NewExpression:r}}},Zv={meta:{type:"suggestion",docs:{description:"disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-exports"},schema:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name."}},create(e){const t=new Set(e.options[0]&&e.options[0].restrictedNamedExports);function r(r){const n=r.name;t.has(n)&&e.report({node:r,messageId:"restrictedNamed",data:{name:n}})}return{ExportAllDeclaration(e){e.exported&&r(e.exported)},ExportNamedDeclaration(t){const n=t.declaration;n?"FunctionDeclaration"===n.type||"ClassDeclaration"===n.type?r(n.id):"VariableDeclaration"===n.type&&e.getDeclaredVariables(n).map((e=>e.defs.find((e=>e.parent===n)))).map((e=>e.name)).forEach(r):t.specifiers.map((e=>e.exported)).forEach(r)}}}},eE={meta:{type:"suggestion",docs:{description:"disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-globals"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(e){if(0===e.options.length)return{};const t=e.options.reduce(((e,t)=>("string"==typeof t?e[t]=null:e[t.name]=t.message,e)),{});function r(r){const n=r.identifier.name,s=t[n],o=s?"customMessage":"defaultMessage";e.report({node:r.identifier,messageId:o,data:{name:n,customMessage:s}})}function n(e){return Object.prototype.hasOwnProperty.call(t,e)}return{Program(){const t=e.getScope();t.variables.forEach((e=>{!e.defs.length&&n(e.name)&&e.references.forEach(r)})),t.through.forEach((e=>{n(e.identifier.name)&&r(e)}))}}}};function tE(e){return Array.isArray(e)?e:[e]}const rE=/^\s+$/,nE=/^\\!/,sE=/^\\#/,oE="undefined"!=typeof Symbol?Symbol.for("node-ignore"):"node-ignore",iE=/([0-z])-([0-z])/g,aE=[[/\\?\s+$/,e=>0===e.indexOf("\\")?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,e=>"\\"+e],[/\[([^\]/]*)($|\])/g,(e,t,r)=>"]"===r?`[${(e=>e.replace(iE,((e,t,r)=>t.charCodeAt(0)<=r.charCodeAt(0)?e:"")))(t)}]`:"\\"+e],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"]],cE=[[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(e,t)=>t+"[^\\/]*"],[/(\^|\\\/)?\\\*$/,(e,t)=>(t?t+"[^/]+":"[^/]*")+"(?=$|\\/$)"],[/\\\\\\/g,()=>"\\"]],uE=[...aE,[/(?:[^*/])$/,e=>e+"(?=$|\\/)"],...cE],lE=[...aE,[/(?:[^*])$/,e=>e+"(?=$|\\/$)"],...cE],pE=Object.create(null),dE=(e,t)=>{const r=e;let n=!1;0===e.indexOf("!")&&(n=!0,e=e.substr(1));return{origin:r,pattern:e=e.replace(nE,"!").replace(sE,"#"),negative:n,regex:((e,t,r)=>{const n=pE[e];if(n)return n;const s=(t?lE:uE).reduce(((t,r)=>t.replace(r[0],r[1].bind(e))),e);return pE[e]=r?new RegExp(s,"i"):new RegExp(s)})(e,n,t)}};class fE{constructor({ignorecase:e=!0}={}){var t,r,n;this._rules=[],this._ignorecase=e,t=this,r=oE,n=!0,Object.defineProperty(t,r,{value:n}),this._initCache()}_initCache(){this._cache=Object.create(null)}add(e){return this._added=!1,"string"==typeof e&&(e=e.split(/\r?\n/g)),tE(e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_addPattern(e){if(e&&e[oE])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&"string"==typeof e&&!rE.test(e)&&0!==e.indexOf("#"))(e)){const t=dE(e,this._ignorecase);this._added=!0,this._rules.push(t)}}filter(e){return tE(e).filter((e=>this._filter(e)))}createFilter(){return e=>this._filter(e)}ignores(e){return!this._filter(e)}_filter(e,t){return!!e&&(e in this._cache?this._cache[e]:(t||(t=e.split("/")),t.pop(),this._cache[e]=t.length?this._filter(t.join("/")+"/",t)&&this._test(e):this._test(e)))}_test(e){let t=0;return this._rules.forEach((r=>{t^r.negative||(t=r.negative^r.regex.test(e))})),!t}}if("undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=fE.prototype._filter,t=e=>/^\\\\\?\\/.test(e)||/[^\x00-\x80]+/.test(e)?e:e.replace(/\\/g,"/");fE.prototype._filter=function(r,n){return r=t(r),e.call(this,r,n)}}var hE=e=>new fE(e);const mE=hE,gE={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};var yE={meta:{type:"suggestion",docs:{description:"disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",everything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}"},schema:{anyOf:[gE,{type:"array",items:[{type:"object",properties:{paths:gE,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},message:{type:"string",minLength:1}},additionalProperties:!1,required:["group"]},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(e){const t=e.getSourceCode(),r=Array.isArray(e.options)?e.options:[],n="object"==typeof r[0]&&(Object.prototype.hasOwnProperty.call(r[0],"paths")||Object.prototype.hasOwnProperty.call(r[0],"patterns")),s=(n?r[0].paths:e.options)||[],o=s.reduce(((e,t)=>("string"==typeof t?e[t]={message:null}:e[t.name]={message:t.message,importNames:t.importNames},e)),{}),i=(n?r[0].patterns:[])||[],a=i.length>0&&"string"==typeof i[0]?[{matcher:mE().add(i)}]:i.map((({group:e,message:t})=>({matcher:mE().add(e),customMessage:t})));if(0===Object.keys(s).length&&0===a.length)return{};function c(r){const n=r.source.value.trim(),s=new Map;if("ExportAllDeclaration"===r.type){const e=t.getFirstToken(r,1);s.set("*",[{loc:e.loc}])}else if(r.specifiers)for(const e of r.specifiers){let t;const r={loc:e.loc};"ImportDefaultSpecifier"===e.type?t="default":"ImportNamespaceSpecifier"===e.type?t="*":e.imported?t=e.imported.name:e.local&&(t=e.local.name),t&&(s.has(t)?s.get(t).push(r):s.set(t,[r]))}!function(t,r,n){if(!Object.prototype.hasOwnProperty.call(o,t))return;const s=o[t].message,i=o[t].importNames;if(i){if(r.has("*")){const o=r.get("*")[0];e.report({node:n,messageId:s?"everythingWithCustomMessage":"everything",loc:o.loc,data:{importSource:t,importNames:i,customMessage:s}})}i.forEach((o=>{r.has(o)&&r.get(o).forEach((r=>{e.report({node:n,messageId:s?"importNameWithCustomMessage":"importName",loc:r.loc,data:{importSource:t,customMessage:s,importName:o}})}))}))}else e.report({node:n,messageId:s?"pathWithCustomMessage":"path",data:{importSource:t,customMessage:s}})}(n,s,r),a.forEach((t=>{(function(e,t){return t.matcher.ignores(e)})(n,t)&&function(t,r){const n=t.source.value.trim();e.report({node:t,messageId:r.customMessage?"patternWithCustomMessage":"patterns",data:{importSource:n,customMessage:r.customMessage}})}(r,t)}))}return{ImportDeclaration:c,ExportNamedDeclaration(e){e.source&&c(e)},ExportAllDeclaration:c}}};const xE=hE,bE={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};var vE={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-modules"},schema:{anyOf:[bE,{type:"array",items:{type:"object",properties:{paths:bE,patterns:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(e){const t=Array.isArray(e.options)?e.options:[],r="object"==typeof t[0]&&(Object.prototype.hasOwnProperty.call(t[0],"paths")||Object.prototype.hasOwnProperty.call(t[0],"patterns")),n=(r?t[0].paths:e.options)||[],s=(r?t[0].patterns:[])||[],o=n.reduce(((e,t)=>("string"==typeof t?e[t]=null:e[t.name]=t.message,e)),{});if(0===Object.keys(n).length&&0===s.length)return{};const i=xE().add(s);return{CallExpression(t){if(function(e){return"Identifier"===e.callee.type&&"require"===e.callee.name}(t)&&t.arguments.length){const r=function(e){return function(e){return e&&"Literal"===e.type&&"string"==typeof e.value}(e)?e.value.trim():function(e){return e&&"TemplateLiteral"===e.type&&0===e.expressions.length}(e)?e.quasis[0].value.cooked.trim():null}(t.arguments[0]);r&&(function(e){return Object.prototype.hasOwnProperty.call(o,e)}(r)&&function(t,r){const n=o[r],s=n?"customMessage":"defaultMessage";e.report({node:t,messageId:s,data:{name:r,customMessage:n}})}(t,r),s.length>0&&i.ignores(r)&&e.report({node:t,messageId:"patternMessage",data:{name:r}}))}}}}};const EE=Vp.exports;var CE={meta:{type:"suggestion",docs:{description:"disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-properties"},schema:{type:"array",items:{anyOf:[{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["object"]},{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["property"]}]},uniqueItems:!0},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{message}}"}},create(e){const t=e.options;if(0===t.length)return{};const r=new Map,n=new Map,s=new Map;function o(t,o,i){if(null===i)return;const a=r.get(o),c=a?a.get(i):n.get(o),u=s.get(i);if(c){const r=c.message?" "+c.message:"";e.report({node:t,messageId:"restrictedObjectProperty",data:{objectName:o,propertyName:i,message:r}})}else if(u){const r=u.message?" "+u.message:"";e.report({node:t,messageId:"restrictedProperty",data:{propertyName:i,message:r}})}}function i(e){if("Identifier"===e.right.type){const t=e.right.name;"ObjectPattern"===e.left.type&&e.left.properties.forEach((r=>{o(e.left,t,EE.getStaticPropertyName(r))}))}}return t.forEach((e=>{const t=e.object,o=e.property;void 0===t?s.set(o,{message:e.message}):void 0===o?n.set(t,{message:e.message}):(r.has(t)||r.set(t,new Map),r.get(t).set(o,{message:e.message}))})),{MemberExpression(e){o(e,e.object&&e.object.name,EE.getStaticPropertyName(e))},VariableDeclarator(e){if(e.init&&"Identifier"===e.init.type){const t=e.init.name;"ObjectPattern"===e.id.type&&e.id.properties.forEach((r=>{o(e.id,t,EE.getStaticPropertyName(r))}))}},AssignmentExpression:i,AssignmentPattern:i}}},SE={meta:{type:"suggestion",docs:{description:"disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:"{{message}}"}},create:e=>e.options.reduce(((t,r)=>{const n="string"==typeof r,s=!n&&Boolean(r.message),o=n?r:r.selector,i=s?r.message:`Using '${o}' is not allowed.`;return Object.assign(t,{[o](t){e.report({node:t,messageId:"restrictedSyntax",data:{message:i}})}})}),{})};const kE=Vp.exports,AE=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;var DE={meta:{type:"suggestion",docs:{description:"disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(e){const t="except-parens"!==(e.options[0]||"except-parens"),r=e.getSourceCode();return{AssignmentExpression(n){if(!t&&kE.isParenthesised(r,n))return;let s=n,o=s.parent;for(;o&&!AE.test(o.type);)s=o,o=o.parent;o&&"ReturnStatement"===o.type?e.report({node:o,messageId:"returnAssignment"}):o&&"ArrowFunctionExpression"===o.type&&o.body===s&&e.report({node:o,messageId:"arrowAssignment"})}}}};const wE=Vp.exports;var FE={meta:{type:"suggestion",docs:{description:"disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/rules/no-return-await"},fixable:null,schema:[],messages:{redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function t(e){let t=e;for(;!wE.isFunction(t)&&"Program"!==t.type;){if("TryStatement"===t.parent.type&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function r(e){return"ArrowFunctionExpression"===e.parent.type||("ReturnStatement"===e.parent.type?!t(e.parent):"ConditionalExpression"!==e.parent.type||e!==e.parent.consequent&&e!==e.parent.alternate?("LogicalExpression"===e.parent.type&&e===e.parent.right||"SequenceExpression"===e.parent.type&&e===e.parent.expressions[e.parent.expressions.length-1])&&r(e.parent):r(e.parent))}return{AwaitExpression(n){r(n)&&!t(n)&&function(t){e.report({node:e.getSourceCode().getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait"})}(n)}}}};const TE=Vp.exports;var PE={meta:{type:"suggestion",docs:{description:"disallow `javascript:` urls",recommended:!1,url:"https://eslint.org/docs/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function t(t){const r=TE.getStaticStringValue(t);"string"==typeof r&&0===r.toLowerCase().indexOf("javascript:")&&e.report({node:t,messageId:"unexpectedScriptURL"})}return{Literal(e){e.value&&"string"==typeof e.value&&t(e)},TemplateLiteral(e){e.parent&&"TaggedTemplateExpression"===e.parent.type||t(e)}}}};const IE=Vp.exports,_E=/\s+/gu;function BE(e,t,r,n){if(e&&t)if("Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name)n(t);else if("ArrayPattern"===e.type&&"ArrayExpression"===t.type){const s=Math.min(e.elements.length,t.elements.length);for(let o=0;o<s;++o){const s=e.elements[o],i=t.elements[o];if(s&&"RestElement"===s.type&&o<t.elements.length-1)break;if(BE(s,i,r,n),i&&"SpreadElement"===i.type)break}}else if("RestElement"===e.type&&"SpreadElement"===t.type)BE(e.argument,t.argument,r,n);else if("ObjectPattern"===e.type&&"ObjectExpression"===t.type&&t.properties.length>=1){let s=0;for(let e=t.properties.length-1;e>=0;--e){const r=t.properties[e].type;if("SpreadElement"===r||"ExperimentalSpreadProperty"===r){s=e+1;break}}for(let o=0;o<e.properties.length;++o)for(let i=s;i<t.properties.length;++i)BE(e.properties[o],t.properties[i],r,n)}else if("Property"!==e.type||"Property"!==t.type||"init"!==t.kind||t.method)r&&"MemberExpression"===IE.skipChainExpression(e).type&&"MemberExpression"===IE.skipChainExpression(t).type&&IE.isSameReference(e,t)&&n(t);else{const s=IE.getStaticPropertyName(e);null!==s&&s===IE.getStaticPropertyName(t)&&BE(e.value,t.value,r,n)}else;}var OE={meta:{type:"problem",docs:{description:"disallow assignments where both sides are exactly the same",recommended:!0,url:"https://eslint.org/docs/rules/no-self-assign"},schema:[{type:"object",properties:{props:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{selfAssignment:"'{{name}}' is assigned to itself."}},create(e){const t=e.getSourceCode(),[{props:r=!0}={}]=e.options;function n(r){e.report({node:r,messageId:"selfAssignment",data:{name:t.getText(r).replace(_E,"")}})}return{AssignmentExpression(e){"="===e.operator&&BE(e.left,e.right,r,n)}}}},LE={meta:{type:"problem",docs:{description:"disallow comparisons where both sides are exactly the same",recommended:!1,url:"https://eslint.org/docs/rules/no-self-compare"},schema:[],messages:{comparingToSelf:"Comparing to itself is potentially pointless."}},create(e){const t=e.getSourceCode();return{BinaryExpression(r){new Set(["===","==","!==","!=",">","<",">=","<="]).has(r.operator)&&function(e,r){const n=t.getTokens(e),s=t.getTokens(r);return n.length===s.length&&n.every(((e,t)=>e.type===s[t].type&&e.value===s[t].value))}(r.left,r.right)&&e.report({node:r,messageId:"comparingToSelf"})}}}};const jE=Vp.exports,NE={allowInParentheses:!0};var RE={meta:{type:"suggestion",docs:{description:"disallow comma operators",recommended:!1,url:"https://eslint.org/docs/rules/no-sequences"},schema:[{properties:{allowInParentheses:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(e){const t=Object.assign({},NE,e.options[0]),r=e.getSourceCode(),n={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function s(e){return jE.isParenthesised(r,e)}return{SequenceExpression(o){if("ForStatement"===o.parent.type&&(o===o.parent.init||o===o.parent.update))return;if(t.allowInParentheses)if(function(e){return e.parent&&n[e.parent.type]&&e===e.parent[n[e.parent.type]]}(o)){if(function(e){const t=r.getTokenBefore(e,1),n=r.getTokenAfter(e,1);return s(e)&&t&&n&&jE.isOpeningParenToken(t)&&t.range[1]<=e.range[0]&&jE.isClosingParenToken(n)&&n.range[0]>=e.range[1]}(o))return}else if(s(o))return;const i=r.getTokenAfter(o.expressions[0],jE.isCommaToken);e.report({node:o,loc:i.loc,messageId:"unexpectedCommaExpression"})}}}};const ME=Vp.exports,{findVariable:VE}=yo;function $E(e,t,r,n,s){const o=e.parent;return"CallExpression"===o.type&&o.arguments[s]===e&&ME.isSpecificMemberAccess(o.callee,r,n)&&function(e,t){const r=VE(t,e);return null!==r&&"global"===r.scope.type&&0===r.defs.length}(ME.skipChainExpression(o.callee).object,t)}function UE(e,t){const r=e.parent;return("Property"===r.type||"MethodDefinition"===r.type)&&"set"===r.kind&&r.value===e||!("Property"!==r.type||r.value!==e||"set"!==ME.getStaticPropertyName(r)||"ObjectExpression"!==r.parent.type||!function(e,t){if($E(e,t,"Object","defineProperty",2)||$E(e,t,"Reflect","defineProperty",2))return!0;const r=e.parent;if("Property"===r.type&&r.value===e){const e=r.parent;if("ObjectExpression"===e.type&&($E(e,t,"Object","create",1)||$E(e,t,"Object","defineProperties",1)))return!0}return!1}(r.parent,t))}var qE={meta:{type:"problem",docs:{description:"disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(e){let t=null;function r(r){const n=function(e){const t=e.upper;return"function-expression-name"===t.type?t.upper:t}(e.getScope());t={upper:t,isSetter:UE(r,n)}}function n(){t=t.upper}function s(t){e.report({node:t,messageId:"returnsValue"})}return{FunctionDeclaration:r,FunctionExpression:r,ArrowFunctionExpression(e){r(e),t.isSetter&&e.expression&&s(e.body)},"FunctionDeclaration:exit":n,"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n,ReturnStatement(e){t&&t.isSetter&&e.argument&&s(e)}}}};const WE=Vp.exports;var zE={meta:{type:"suggestion",docs:{description:"disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!1},hoist:{enum:["all","functions","never"],default:"functions"},allow:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(e){const t={builtinGlobals:e.options[0]&&e.options[0].builtinGlobals,hoist:e.options[0]&&e.options[0].hoist||"functions",allow:e.options[0]&&e.options[0].allow||[]};function r(e){return-1!==t.allow.indexOf(e.name)}function n(e){const t=e.scope.block;return"ClassDeclaration"===t.type&&t.id===e.identifiers[0]}function s(e,t){const r=t.scope,n=t.defs[0],s=n&&n.parent&&n.parent.range,o=e.scope,i=e.defs[0],a=i&&i.name.range;return s&&a&&s[0]<a[0]&&a[1]<s[1]&&("FunctionName"===i.type&&"FunctionExpression"===i.node.type||"ClassExpression"===i.node.type)&&r===o.upper}function o(e){const t=e.defs[0];return t&&t.name.range}function i(e){const t=e.identifiers[0];let r;return r=t?{global:!1,line:t.loc.start.line,column:t.loc.start.column+1}:{global:!0},r}function a(e,r){const n=r.defs[0],s=o(e),i=o(r);return s&&i&&s[1]<i[0]&&("functions"!==t.hoist||!n||"FunctionDeclaration"!==n.node.type)}function c(o){const c=o.variables;for(let u=0;u<c.length;++u){const l=c[u];if(0===l.identifiers.length||n(l)||r(l))continue;const p=WE.getVariableByName(o.upper,l.name);if(p&&(p.identifiers.length>0||t.builtinGlobals&&"writeable"in p)&&!s(l,p)&&("all"===t.hoist||!a(l,p))){const t=i(p),r=t.global?"noShadowGlobal":"noShadow",n={name:l.name};t.global||(n.shadowedLine=t.line,n.shadowedColumn=t.column),e.report({node:l.identifiers[0],messageId:r,data:n})}}}return{"Program:exit"(){const t=e.getScope().childScopes.slice();for(;t.length;){const e=t.pop();t.push(...e.childScopes),c(e)}}}}};function GE(e){return"undefined"===e.name&&e.references.every((e=>!e.isWrite()))&&e.defs.every((e=>"VariableDeclarator"===e.node.type&&null===e.node.init))}var HE={meta:{type:"suggestion",docs:{description:"disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/rules/no-shadow-restricted-names"},schema:[],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){const t=new Set(["undefined","NaN","Infinity","arguments","eval"]);return{"VariableDeclaration, :function, CatchClause"(r){for(const n of e.getDeclaredVariables(r))n.defs.length>0&&t.has(n.name)&&!GE(n)&&e.report({node:n.defs[0].name,messageId:"shadowingRestrictedName",data:{name:n.name}})}}}},KE={meta:{type:"layout",docs:{description:"disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/rules/no-spaced-func"},deprecated:!0,replacedBy:["func-call-spacing"],fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(e){const t=e.getSourceCode();function r(r){const n=t.getLastToken(r.callee);let s=n,o=t.getTokenAfter(n);for(;o&&o.range[1]<r.range[1]&&"("!==o.value;)s=o,o=t.getTokenAfter(o);o&&o.range[1]<r.range[1]&&t.isSpaceBetweenTokens(s,o)&&e.report({node:r,loc:n.loc.start,messageId:"noSpacedFunction",fix:e=>e.removeRange([s.range[1],o.range[0]])})}return{CallExpression:r,NewExpression:r}}},JE={meta:{type:"problem",docs:{description:"disallow sparse arrays",recommended:!0,url:"https://eslint.org/docs/rules/no-sparse-arrays"},schema:[],messages:{unexpectedSparseArray:"Unexpected comma in middle of array."}},create:e=>({ArrayExpression(t){t.elements.indexOf(null)>-1&&e.report({node:t,messageId:"unexpectedSparseArray"})}})},QE={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow synchronous methods",recommended:!1,url:"https://eslint.org/docs/rules/no-sync"},schema:[{type:"object",properties:{allowAtRootLevel:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noSync:"Unexpected sync method: '{{propertyName}}'."}},create:e=>({[e.options[0]&&e.options[0].allowAtRootLevel?":function MemberExpression[property.name=/.*Sync$/]":"MemberExpression[property.name=/.*Sync$/]"](t){e.report({node:t,messageId:"noSync",data:{propertyName:t.property.name}})}})};const XE=/\t+/gu,YE=/\S/u;var ZE={meta:{type:"layout",docs:{description:"disallow all tabs",recommended:!1,url:"https://eslint.org/docs/rules/no-tabs"},schema:[{type:"object",properties:{allowIndentationTabs:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedTab:"Unexpected tab character."}},create(e){const t=e.getSourceCode(),r=e.options&&e.options[0]&&e.options[0].allowIndentationTabs;return{Program(n){t.getLines().forEach(((t,s)=>{let o;for(;null!==(o=XE.exec(t));)r&&!YE.test(t.slice(0,o.index))||e.report({node:n,loc:{start:{line:s+1,column:o.index},end:{line:s+1,column:o.index+o[0].length}},messageId:"unexpectedTab"})}))}}}},eC={meta:{type:"problem",docs:{description:"disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(e){const t=/\$\{[^}]+\}/u;return{Literal(r){"string"==typeof r.value&&t.test(r.value)&&e.report({node:r,messageId:"unexpectedTemplateExpression"})}}}},tC={meta:{type:"suggestion",docs:{description:"disallow ternary operators",recommended:!1,url:"https://eslint.org/docs/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create:e=>({ConditionalExpression(t){e.report({node:t,messageId:"noTernaryOperator"})}})};const rC=Vp.exports;var nC={meta:{type:"problem",docs:{description:"disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(e){let t=null,r=Object.create(null);function n(e){return!e.reachable||r[e.id].superCalled}function s(){return Boolean(t&&t.isConstructor&&t.hasExtends)}function o(){return s()&&!t.codePath.currentSegments.every(n)}function i(e){const n=t.codePath.currentSegments;for(let t=0;t<n.length;++t){const s=n[t];s.reachable&&r[s.id].invalidNodes.push(e)}}return{onCodePathStart(e,r){if(function(e){return"FunctionExpression"===e.type&&"MethodDefinition"===e.parent.type&&"constructor"===e.parent.kind}(r)){const n=r.parent.parent.parent;t={upper:t,isConstructor:!0,hasExtends:Boolean(n.superClass&&!rC.isNullOrUndefined(n.superClass)),codePath:e}}else t={upper:t,isConstructor:!1,hasExtends:!1,codePath:e}},onCodePathEnd(n){const s=t.hasExtends;t=t.upper,s&&n.traverseSegments(((t,n)=>{const s=r[t.id];for(let t=0;t<s.invalidNodes.length;++t){const r=s.invalidNodes[t];e.report({messageId:"noBeforeSuper",node:r,data:{kind:"Super"===r.type?"super":"this"}})}s.superCalled&&n.skip()}))},onCodePathSegmentStart(e){s()&&(r[e.id]={superCalled:e.prevSegments.length>0&&e.prevSegments.every(n),invalidNodes:[]})},onCodePathSegmentLoop(e,o){s()&&t.codePath.traverseSegments({first:o,last:e},((e,t)=>{const s=r[e.id];s.superCalled?(s.invalidNodes=[],t.skip()):e.prevSegments.length>0&&e.prevSegments.every(n)&&(s.superCalled=!0,s.invalidNodes=[])}))},ThisExpression(e){o()&&i(e)},Super(e){!rC.isCallee(e)&&o()&&i(e)},"CallExpression:exit"(e){"Super"===e.callee.type&&o()&&function(){const e=t.codePath.currentSegments;for(let t=0;t<e.length;++t){const n=e[t];n.reachable&&(r[n.id].superCalled=!0)}}()},"Program:exit"(){r=Object.create(null)}}}};const sC=Vp.exports;var oC={meta:{type:"suggestion",docs:{description:"disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create:e=>({ThrowStatement(t){sC.couldBeError(t.argument)?"Identifier"===t.argument.type&&"undefined"===t.argument.name&&e.report({node:t,messageId:"undef"}):e.report({node:t,messageId:"object"})}})};const iC=Vp.exports;var aC={meta:{type:"layout",docs:{description:"disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},n=r.skipBlankLines||!1,s=r.ignoreComments||!1;function o(t,r,n){e.report({node:t,loc:r,messageId:"trailingSpace",fix:e=>e.removeRange(n)})}return{Program:function(e){const r=new RegExp("[ \t  -​ ]+$","u"),i=new RegExp("^[ \t  -​ ]*$","u"),a=t.lines,c=t.getText().match(iC.createGlobalLinebreakMatcher()),u=function(e){const t=new Set;return e.forEach((e=>{const r="Block"===e.type?e.loc.end.line-1:e.loc.end.line;for(let n=e.loc.start.line;n<=r;n++)t.add(n)})),t}(t.getAllComments());let l=0,p=[];for(let d=0,f=a.length;d<f;d++){const f=d+1,h=c&&c[d]?c[d].length:1,m=a[d].length+h,g=r.exec(a[d]);if(g){const r={start:{line:f,column:g.index},end:{line:f,column:m-h}},c=l+r.start.column,y=l+r.end.column,x=t.getNodeByRangeIndex(c);if(x&&"TemplateElement"===x.type&&c>x.parent.range[0]&&y<x.parent.range[1]){l+=m;continue}if(n&&i.test(a[d])){l+=m;continue}p=[c,y],s&&u.has(f)||o(e,r,p)}l+=m}}}}};var cC={meta:{type:"problem",docs:{description:"disallow the use of undeclared variables unless mentioned in `/*global */` comments",recommended:!0,url:"https://eslint.org/docs/rules/no-undef"},schema:[{type:"object",properties:{typeof:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{undef:"'{{name}}' is not defined."}},create(e){const t=e.options[0],r=t&&!0===t.typeof||!1;return{"Program:exit"(){e.getScope().through.forEach((t=>{const n=t.identifier;!r&&function(e){const t=e.parent;return"UnaryExpression"===t.type&&"typeof"===t.operator}(n)||e.report({node:n,messageId:"undef",data:n})}))}}}};const uC=Vp.exports;var lC={meta:{type:"suggestion",docs:{description:"disallow initializing variables to `undefined`",recommended:!1,url:"https://eslint.org/docs/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(e){const t=e.getSourceCode();return{VariableDeclarator(r){const n=t.getText(r.id),s=r.init&&r.init.name,o=e.getScope(),i=uC.getVariableByName(o,"undefined"),a=i&&i.defs.length>0,c=t.getLastToken(r);"undefined"!==s||"const"===r.parent.kind||a||e.report({node:r,messageId:"unnecessaryUndefinedInit",data:{name:n},fix:e=>"var"===r.parent.kind||"ArrayPattern"===r.id.type||"ObjectPattern"===r.id.type||t.commentsExistBetween(r.id,c)?null:e.removeRange([r.id.range[1],r.range[1]])})}}}},pC={meta:{type:"suggestion",docs:{description:"disallow the use of `undefined` as an identifier",recommended:!1,url:"https://eslint.org/docs/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(e){function t(t){e.report({node:t,messageId:"unexpectedUndefined"})}function r(e){const r=e.set.get("undefined");if(!r)return;const n=r.references,s=r.defs;n.filter((e=>!e.init)).forEach((e=>t(e.identifier))),s.forEach((e=>t(e.name)))}return{"Program:exit"(){const t=[e.getScope()];for(;t.length;){const e=t.pop();t.push(...e.childScopes),r(e)}}}}},dC={meta:{type:"suggestion",docs:{description:"disallow dangling underscores in identifiers",recommended:!1,url:"https://eslint.org/docs/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean",default:!1},allowAfterSuper:{type:"boolean",default:!1},allowAfterThisConstructor:{type:"boolean",default:!1},enforceInMethodNames:{type:"boolean",default:!1},allowFunctionParams:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(e){const t=e.options[0]||{},r=t.allow?t.allow:[],n=void 0!==t.allowAfterThis&&t.allowAfterThis,s=void 0!==t.allowAfterSuper&&t.allowAfterSuper,o=void 0!==t.allowAfterThisConstructor&&t.allowAfterThisConstructor,i=void 0!==t.enforceInMethodNames&&t.enforceInMethodNames,a=void 0===t.allowFunctionParams||t.allowFunctionParams;function c(e){return r.some((t=>t===e))}function u(e){const t=e.length;return"_"!==e&&("_"===e[0]||"_"===e[t-1])}function l(t){if("FunctionDeclaration"===t.type&&t.id){const r=t.id.name;void 0!==r&&u(r)&&!c(r)&&e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})}!function(t){a||t.params.forEach((t=>{const{type:r}=t;let n;if(n="RestElement"===r?t.argument:"AssignmentPattern"===r?t.left:t,"Identifier"===n.type){const r=n.name;u(r)&&!c(r)&&e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})}}))}(t)}function p(t){const r=t.key.name,n="MethodDefinition"===t.type||"Property"===t.type&&t.method;void 0!==r&&i&&n&&u(r)&&!c(r)&&e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:"PrivateIdentifier"===t.key.type?"#"+r:r}})}return{FunctionDeclaration:l,VariableDeclarator:function(t){const r=t.id.name;void 0===r||!u(r)||function(e){return"_"===e}(r)||c(r)||e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})},MemberExpression:function(t){const r=t.property.name,i="ThisExpression"===t.object.type,a="Super"===t.object.type,l=function(e){return"MemberExpression"===e.object.type&&"constructor"===e.object.property.name&&"ThisExpression"===e.object.object.type}(t);void 0===r||!u(r)||i&&n||a&&s||l&&o||function(e){return"__proto__"===e}(r)||c(r)||e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})},MethodDefinition:p,PropertyDefinition:p,Property:p,FunctionExpression:l,ArrowFunctionExpression:l}}};const fC=Vp.exports;var hC={meta:{type:"problem",docs:{description:"disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(e){const t=/^[gimsuy]+$/u,r=e.getSourceCode();function n(t,n){const s=r.getTokenAfter(t,fC.isNotClosingParenToken),o=r.getTokenBefore(s);s.loc.start.line!==o.loc.end.line&&e.report({node:t,loc:s.loc,messageId:n})}return{MemberExpression(e){e.computed&&!e.optional&&n(e.object,"property")},TaggedTemplateExpression(t){const{quasi:n}=t;r.getTokenBefore(n).loc.end.line!==n.loc.start.line&&e.report({node:t,loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(e){0===e.arguments.length||e.optional||n(e.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(e){const s=r.getTokenAfter(e,(e=>"/"===e.value)),o=r.getTokenAfter(s);"Identifier"===o.type&&t.test(o.value)&&s.range[1]===o.range[0]&&n(e.left,"division")}}}};const mC=go,gC=Vp.exports,yC=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,xC=/^(?:DoWhile|For|While)Statement$/u,bC=/^(?:BinaryExpression|ConditionalExpression)$/u,vC=/^(?:ArrowFunction|Class|Function)Expression$/u,EC=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function CC(e){if(e.init){const t=e.resolved&&e.resolved.defs[0];if(!t||"Variable"!==t.type||"var"!==t.parent.kind)return!1}return e.isWrite()}function SC(e){return!e.modified}function kC(e){return!(e.modified||e.group)}function AC(e,t){const r=e.range,n=t.identifier.range;return r[0]<=n[0]&&n[1]<=r[1]}const DC={WhileStatement:AC,DoWhileStatement:AC,ForStatement:(e,t)=>AC(e,t)&&!(e.init&&AC(e.init,t))};function wC(e){let t=e.identifier;for(;t;){if("FunctionDeclaration"===t.type)return t.id?t:null;t=t.parent}return null}var FC={meta:{type:"problem",docs:{description:"disallow unmodified loop conditions",recommended:!1,url:"https://eslint.org/docs/rules/no-unmodified-loop-condition"},schema:[],messages:{loopConditionNotModified:"'{{name}}' is not modified in this loop."}},create(e){const t=e.getSourceCode();let r=null;function n(t){const r=t.reference.identifier;e.report({node:r,messageId:"loopConditionNotModified",data:r})}function s(e){e.every(SC)&&e.forEach(n)}function o(e){let r=!1;return mC.traverse(e,{visitorKeys:t.visitorKeys,enter(e){EC.test(e.type)?(r=!0,this.break()):vC.test(e.type)&&this.skip()}}),r}function i(e){if(e.init)return null;let t=null,r=e.identifier,n=r.parent;for(;n;){if(yC.test(n.type)){if(xC.test(n.type)&&n.test===r)return{reference:e,group:t,isInLoop:DC[n.type].bind(null,n),modified:!1};break}if(bC.test(n.type)){if(o(n))break;t=n}r=n,n=n.parent}return null}function a(e){const t=e.references.map(i).filter(Boolean);if(0===t.length)return;!function(e){for(let t=0;t<e.length;++t){const n=e[t];if(n.group){let e=r.get(n.group);e||(e=[],r.set(n.group,e)),e.push(n)}}}(t);const s=e.references.filter(CC);s.length>0&&function(e,t){for(let r=0;r<e.length;++r){const n=e[r];for(let e=0;!n.modified&&e<t.length;++e){const r=t[e];let s,o;const i=n.isInLoop(r)||Boolean((s=wC(r))&&(o=gC.getVariableByName(r.from.upper,s.id.name))&&o.references.some(n.isInLoop));n.modified=i}}}(t,s),t.filter(kC).forEach(n)}return{"Program:exit"(){const t=[e.getScope()];let n;for(r=new Map;n=t.pop();)t.push(...n.childScopes),n.variables.forEach(a);r.forEach(s),r=null}}}};const TC=Vp.exports,PC=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),IC={"==":"!=","!=":"==","===":"!==","!==":"==="},_C=TC.getPrecedence({type:"LogicalExpression",operator:"||"});var BC={meta:{type:"suggestion",docs:{description:"disallow ternary operators when simpler alternatives exist",recommended:!1,url:"https://eslint.org/docs/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(e){const t=!1!==(e.options[0]||{}).defaultAssignment,r=e.getSourceCode();function n(e){return"Literal"===e.type&&"boolean"==typeof e.value}function s(e){if("BinaryExpression"===e.type&&Object.prototype.hasOwnProperty.call(IC,e.operator)){const t=r.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator)),n=r.getText();return n.slice(e.range[0],t.range[0])+IC[e.operator]+n.slice(t.range[1],e.range[1])}return TC.getPrecedence(e)<TC.getPrecedence({type:"UnaryExpression"})?`!(${TC.getParenthesisedText(r,e)})`:"!"+TC.getParenthesisedText(r,e)}return{ConditionalExpression(o){n(o.alternate)&&n(o.consequent)?e.report({node:o,messageId:"unnecessaryConditionalExpression",fix:e=>o.consequent.value===o.alternate.value?"Identifier"===o.test.type?e.replaceText(o,o.consequent.value.toString()):null:o.alternate.value?e.replaceText(o,s(o.test)):e.replaceText(o,function(e){return"BinaryExpression"===e.type&&PC.has(e.operator)||"UnaryExpression"===e.type&&"!"===e.operator}(o.test)?TC.getParenthesisedText(r,o.test):"!"+s(o.test))}):!t&&function(e){return"Identifier"===e.test.type&&"Identifier"===e.consequent.type&&e.test.name===e.consequent.name}(o)&&e.report({node:o,messageId:"unnecessaryConditionalAssignment",fix:e=>{const t=(TC.getPrecedence(o.alternate)<_C||TC.isCoalesceExpression(o.alternate))&&!TC.isParenthesised(r,o.alternate)?`(${r.getText(o.alternate)})`:TC.getParenthesisedText(r,o.alternate),n=TC.getParenthesisedText(r,o.test);return e.replaceText(o,`${n} || ${t}`)}})}}}};function OC(e){return Boolean(e.init)}function LC(e){return!e.reachable}class jC{constructor(e){this.sourceCode=e,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(e){return e.range[0]>=this.startNode.range[0]&&e.range[1]<=this.endNode.range[1]}isConsecutive(e){return this.contains(this.sourceCode.getTokenBefore(e))}merge(e){this.endNode=e}reset(e){this.startNode=this.endNode=e}}var NC={meta:{type:"problem",docs:{description:"disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(e){let t=null,r=null;const n=new jC(e.getSourceCode());function s(r){let s=null;if(r&&("PropertyDefinition"===r.type||t.currentSegments.every(LC))){if(n.isEmpty)return void n.reset(r);if(n.contains(r))return;if(n.isConsecutive(r))return void n.merge(r);s=r}n.isEmpty||e.report({messageId:"unreachableCode",loc:n.location,node:n.startNode}),n.reset(s)}return{onCodePathStart(e){t=e},onCodePathEnd(){t=t.upper},BlockStatement:s,BreakStatement:s,ClassDeclaration:s,ContinueStatement:s,DebuggerStatement:s,DoWhileStatement:s,ExpressionStatement:s,ForInStatement:s,ForOfStatement:s,ForStatement:s,IfStatement:s,ImportDeclaration:s,LabeledStatement:s,ReturnStatement:s,SwitchStatement:s,ThrowStatement:s,TryStatement:s,VariableDeclaration(e){("var"!==e.kind||e.declarations.some(OC))&&s(e)},WhileStatement:s,WithStatement:s,ExportNamedDeclaration:s,ExportDefaultDeclaration:s,ExportAllDeclaration:s,"Program:exit"(){s()},"MethodDefinition[kind='constructor']"(){r={upper:r,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(e){const{hasSuperCall:t}=r;if(r=r.upper,!e.value.body)return;const n=e.parent.parent;if(n.superClass&&!t)for(const e of n.body.body)"PropertyDefinition"!==e.type||e.static||s(e)},"CallExpression > Super.callee"(){r&&(r.hasSuperCall=!0)}}}};const RC=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];var MC={meta:{type:"problem",docs:{description:"disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:RC},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(e){const t=e.options[0]&&e.options[0].ignore||[],r=(o=t,RC.filter((e=>!o.includes(e)))).join(","),n=new Map,s=new Set;var o;let i=null;return{onCodePathStart(e){i=e},onCodePathEnd(){i=i.upper},[r](e){i.currentSegments.some((e=>e.reachable))&&s.add(e)},onCodePathSegmentStart(e,t){if(function(e){const t=e.parent;if(t)switch(t.type){case"WhileStatement":return e===t.test;case"DoWhileStatement":return e===t.body;case"ForStatement":return e===(t.update||t.test||t.body);case"ForInStatement":case"ForOfStatement":return e===t.left}return!1}(t)){const r=t.parent;n.set(e,r)}},onCodePathSegmentLoop(e,t,r){const o=n.get(t);r!==o&&"ContinueStatement"!==r.type||s.delete(o)},"Program:exit"(){s.forEach((t=>e.report({node:t,messageId:"invalid"})))}}}};const VC=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,$C=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,UC=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;var qC={meta:{type:"problem",docs:{description:"disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(e){function t(e){return"TryStatement"===e.parent.type&&e.parent.finalizer===e}function r(r){(function(e,r){let n,s=!1;n="BreakStatement"!==e.type||e.label?"ContinueStatement"===e.type?UC:VC:$C;for(let o=e;o&&!n.test(o.type);o=o.parent)if(o.parent.label&&r&&o.parent.label.name===r.name&&(s=!0),t(o))return!r||!s;return!1})(r,r.label)&&e.report({messageId:"unsafeUsage",data:{nodeType:r.type},node:r,line:r.loc.line,column:r.loc.column})}return{ReturnStatement:r,ThrowStatement:r,BreakStatement:r,ContinueStatement:r}}};const WC=Vp.exports;var zC={meta:{type:"problem",docs:{description:"disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/rules/no-unsafe-negation"},hasSuggestions:!0,schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(e){const t=e.getSourceCode(),r=!0===(e.options[0]||{}).enforceForOrderingRelations;return{BinaryExpression(n){const s=n.operator,o=r&&("<"===(i=s)||">"===i||">="===i||"<="===i);var i;(function(e){return"in"===e||"instanceof"===e}(s)||o)&&function(e){return"UnaryExpression"===e.type&&"!"===e.operator}(n.left)&&!WC.isParenthesised(t,n.left)&&e.report({node:n,loc:n.left.loc,messageId:"unexpected",data:{operator:s},suggest:[{messageId:"suggestNegatedExpression",data:{operator:s},fix(e){const r=[t.getFirstToken(n.left).range[1],n.range[1]],s=t.text.slice(r[0],r[1]);return e.replaceTextRange(r,`(${s})`)}},{messageId:"suggestParenthesisedNegation",fix:e=>e.replaceText(n.left,`(${t.getText(n.left)})`)}]})}}}};const GC=new Set(["+","-","/","*","%","**"]),HC=new Set(["+=","-=","/=","*=","%=","**="]),KC=new Set(["in","instanceof"]);function JC(e){return"ObjectPattern"===e.type||"ArrayPattern"===e.type}var QC={meta:{type:"problem",docs:{description:"disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:"https://eslint.org/docs/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(e){const t=(e.options[0]||{}).disallowArithmeticOperators||!1;function r(t){e.report({messageId:"unsafeOptionalChain",node:t})}function n(t){e.report({messageId:"unsafeArithmetic",node:t})}function s(e,t){if(e)switch(e.type){case"LogicalExpression":"||"===e.operator||"??"===e.operator?s(e.right,t):"&&"===e.operator&&(s(e.left,t),s(e.right,t));break;case"SequenceExpression":s(e.expressions[e.expressions.length-1],t);break;case"ConditionalExpression":s(e.consequent,t),s(e.alternate,t);break;case"AwaitExpression":s(e.argument,t);break;case"ChainExpression":t(e)}}function o(e){s(e,r)}function i(e){s(e,n)}return{"AssignmentExpression, AssignmentPattern"(e){JC(e.left)&&o(e.right)},"ClassDeclaration, ClassExpression"(e){o(e.superClass)},CallExpression(e){e.optional||o(e.callee)},NewExpression(e){o(e.callee)},VariableDeclarator(e){JC(e.id)&&o(e.init)},MemberExpression(e){e.optional||o(e.object)},TaggedTemplateExpression(e){o(e.tag)},ForOfStatement(e){o(e.right)},SpreadElement(e){e.parent&&"ObjectExpression"!==e.parent.type&&o(e.argument)},BinaryExpression(e){KC.has(e.operator)&&o(e.right),t&&GC.has(e.operator)&&(i(e.right),i(e.left))},WithStatement(e){o(e.object)},UnaryExpression(e){t&&GC.has(e.operator)&&i(e.argument)},AssignmentExpression(e){t&&HC.has(e.operator)&&i(e.right)}}}};function XC(){return!0}function YC(){return!1}var ZC={meta:{type:"suggestion",docs:{description:"disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean",default:!1},allowTernary:{type:"boolean",default:!1},allowTaggedTemplates:{type:"boolean",default:!1},enforceForJSX:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(e){const t=e.options[0]||{},r=t.allowShortCircuit||!1,n=t.allowTernary||!1,s=t.allowTaggedTemplates||!1,o=t.enforceForJSX||!1;function i(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value}function a(e,t){const r=t[t.length-1],n=t[t.length-2];return("Program"===r.type||"BlockStatement"===r.type&&/Function/u.test(n.type))&&function(e){return function(e,t){for(let r=0;r<t.length;++r)if(!e(t[r]))return t.slice(0,r);return t.slice()}(i,e.body)}(r).indexOf(e)>=0}const c=Object.assign(Object.create(null),{isDisallowed:e=>(c[e.type]||YC)(e),ArrayExpression:XC,ArrowFunctionExpression:XC,BinaryExpression:XC,ChainExpression:e=>c.isDisallowed(e.expression),ClassExpression:XC,ConditionalExpression:e=>!n||(c.isDisallowed(e.consequent)||c.isDisallowed(e.alternate)),FunctionExpression:XC,Identifier:XC,JSXElement:()=>o,JSXFragment:()=>o,Literal:XC,LogicalExpression:e=>!r||c.isDisallowed(e.right),MemberExpression:XC,MetaProperty:XC,ObjectExpression:XC,SequenceExpression:XC,TaggedTemplateExpression:()=>!s,TemplateLiteral:XC,ThisExpression:XC,UnaryExpression:e=>"void"!==e.operator&&"delete"!==e.operator});return{ExpressionStatement(t){c.isDisallowed(t.expression)&&!a(t,e.getAncestors())&&e.report({node:t,messageId:"unusedExpression"})}}}},eS={meta:{type:"suggestion",docs:{description:"disallow unused labels",recommended:!0,url:"https://eslint.org/docs/rules/no-unused-labels"},schema:[],fixable:"code",messages:{unused:"'{{name}}:' is defined but never used."}},create(e){const t=e.getSourceCode();let r=null;function n(e){if(!e.label)return;const t=e.label.name;let n=r;for(;n;){if(n.label===t){n.used=!0;break}n=n.upper}}return{LabeledStatement:function(e){r={label:e.label.name,used:!1,upper:r}},"LabeledStatement:exit":function(n){r.used||e.report({node:n.label,messageId:"unused",data:n.label,fix:e=>t.getTokenAfter(n.label,{includeComments:!0})===t.getTokenBefore(n.body,{includeComments:!0})?e.removeRange([n.range[0],n.body.range[0]]):null}),r=r.upper},BreakStatement:n,ContinueStatement:n}}},tS={meta:{type:"problem",docs:{description:"disallow unused private class members",recommended:!1,url:"https://eslint.org/docs/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(e){const t=[];return{ClassBody(e){const r=new Map;t.unshift(r);for(const t of e.body)"PropertyDefinition"!==t.type&&"MethodDefinition"!==t.type||"PrivateIdentifier"===t.key.type&&r.set(t.key.name,{declaredNode:t,isAccessor:"MethodDefinition"===t.type&&("set"===t.kind||"get"===t.kind)})},PrivateIdentifier(e){const r=t.find((t=>t.has(e.name)));if(!r)return;const n=r.get(e.name);if(n.isUsed)return;if("PropertyDefinition"===e.parent.type||"MethodDefinition"===e.parent.type)return;if(n.isAccessor)return void(n.isUsed=!0);if(function(e){const t=e.parent.parent,r="AssignmentExpression"===t.type;return!(!r&&"ForInStatement"!==t.type&&"ForOfStatement"!==t.type&&"AssignmentPattern"!==t.type||t.left!==e.parent||r&&"="!==t.operator&&"ExpressionStatement"!==t.parent.type)}(e))return;const s=e.parent.parent.type,o=e.parent.parent.parent.type;"UpdateExpression"===s&&"ExpressionStatement"===o||"Property"===s&&"ObjectPattern"===o&&e.parent.parent.value===e.parent||"RestElement"!==s&&"ArrayPattern"!==s&&(n.isUsed=!0)},"ClassBody:exit"(){const r=t.shift();for(const[t,{declaredNode:n,isUsed:s}]of r.entries())s||e.report({node:n,loc:n.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:"#"+t}})}}}};const rS=Vp.exports;var nS={meta:{type:"problem",docs:{description:"disallow unused variables",recommended:!0,url:"https://eslint.org/docs/rules/no-unused-vars"},schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}."}},create(e){const t=e.getSourceCode(),r=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,n={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"none"},s=e.options[0];function o(e){const t=e.defs&&e.defs[0]&&e.defs[0].type;let r,s;"CatchClause"===t&&n.caughtErrorsIgnorePattern?(r="args",s=n.caughtErrorsIgnorePattern.toString()):"Parameter"===t&&n.argsIgnorePattern?(r="args",s=n.argsIgnorePattern.toString()):"Parameter"!==t&&n.varsIgnorePattern&&(r="vars",s=n.varsIgnorePattern.toString());const o=r?`. Allowed unused ${r} must match ${s}`:"";return{varName:e.name,action:"defined",additional:o}}function i(e){const t=n.varsIgnorePattern?". Allowed unused vars must match "+n.varsIgnorePattern.toString():"";return{varName:e.name,action:"assigned a value",additional:t}}s&&("string"==typeof s?n.vars=s:(n.vars=s.vars||n.vars,n.args=s.args||n.args,n.ignoreRestSiblings=s.ignoreRestSiblings||n.ignoreRestSiblings,n.caughtErrors=s.caughtErrors||n.caughtErrors,s.varsIgnorePattern&&(n.varsIgnorePattern=new RegExp(s.varsIgnorePattern,"u")),s.argsIgnorePattern&&(n.argsIgnorePattern=new RegExp(s.argsIgnorePattern,"u")),s.caughtErrorsIgnorePattern&&(n.caughtErrorsIgnorePattern=new RegExp(s.caughtErrorsIgnorePattern,"u"))));const a=/(?:Statement|Declaration)$/u;function c(e){const t=e.defs[0];if(t){let e=t.node;if("VariableDeclarator"===e.type)e=e.parent;else if("Parameter"===t.type)return!1;return 0===e.parent.type.indexOf("Export")}return!1}function u(e){return"Property"===e.type&&"ObjectPattern"===e.parent.type&&r.test(e.parent.properties[e.parent.properties.length-1].type)}function l(e){if(n.ignoreRestSiblings){const t=e.defs.some((e=>u(e.name.parent))),r=e.references.some((e=>u(e.identifier.parent)));return t||r}return!1}function p(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}function d(e){const t=e.parent;if("ExpressionStatement"===t.type)return!0;if("SequenceExpression"===t.type){return!(t.expressions[t.expressions.length-1]===e)||d(t)}return!1}function f(e,t){const r=rS.getUpperFunction(e);return r&&p(r,t)&&function(e,t){let r=e,n=e.parent;for(;n&&p(n,t);){switch(n.type){case"SequenceExpression":if(n.expressions[n.expressions.length-1]!==r)return!1;break;case"CallExpression":case"NewExpression":return n.callee!==r;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(a.test(n.type))return!0}r=n,n=n.parent}return!1}(r,t)}function h(e){const t=function(e){const t=[];return e.defs.forEach((e=>{const{type:r,node:n}=e;"FunctionName"===r&&t.push(n),"Variable"!==r||!n.init||"FunctionExpression"!==n.init.type&&"ArrowFunctionExpression"!==n.init.type||t.push(n.init)})),t}(e),r=t.length>0;let n=null;return e.references.some((e=>{if(function(e){let t=e.identifier.parent;return"VariableDeclarator"===t.type&&(t=t.parent.parent),"ForInStatement"===t.type&&(t="BlockStatement"===t.body.type?t.body.body[0]:t.body,!!t&&"ReturnStatement"===t.type)}(e))return!0;const s=function(e,t){const r=e.identifier,n=r.parent;return e.isRead()&&("AssignmentExpression"===n.type&&n.left===r&&d(n)||"UpdateExpression"===n.type&&d(n)||t&&p(r,t)&&!f(r,t))}(e,n);return n=function(e,t){const r=e.identifier,n=r.parent,s=e.from.variableScope!==e.resolved.scope.variableScope||rS.isInLoop(r);return t&&p(r,t)?t:"AssignmentExpression"===n.type&&d(n)&&r===n.left&&!s?n.right:null}(e,n),function(e){return e.isRead()}(e)&&!s&&!(r&&function(e,t){let r=e.from;for(;r;){if(t.indexOf(r.block)>=0)return!0;r=r.upper}return!1}(e,t))}))}function m(t){const r=t.defs[0],n=e.getDeclaredVariables(r.node);return!n.slice(n.indexOf(t)+1).some((e=>e.references.length>0||e.eslintUsed))}function g(e,t){const r=e.variables,s=e.childScopes;let o,i;if("global"!==e.type||"all"===n.vars)for(o=0,i=r.length;o<i;++o){const s=r[o];if("class"===e.type&&e.block.id===s.identifiers[0])continue;if(e.functionExpressionScope||s.eslintUsed)continue;if("function"===e.type&&"arguments"===s.name&&0===s.identifiers.length)continue;const i=s.defs[0];if(i){const e=i.type;if("CatchClause"===e){if("none"===n.caughtErrors)continue;if(n.caughtErrorsIgnorePattern&&n.caughtErrorsIgnorePattern.test(i.name.name))continue}if("Parameter"===e){if(("Property"===i.node.parent.type||"MethodDefinition"===i.node.parent.type)&&"set"===i.node.parent.kind)continue;if("none"===n.args)continue;if(n.argsIgnorePattern&&n.argsIgnorePattern.test(i.name.name))continue;if("after-used"===n.args&&rS.isFunction(i.name.parent)&&!m(s))continue}else if(n.varsIgnorePattern&&n.varsIgnorePattern.test(i.name.name))continue}h(s)||c(s)||l(s)||t.push(s)}for(o=0,i=s.length;o<i;++o)g(s[o],t);return t}return{"Program:exit"(r){const n=g(e.getScope(),[]);for(let s=0,a=n.length;s<a;++s){const a=n[s];if(a.defs.length>0){const t=a.references.filter((e=>e.isWrite()&&e.from.variableScope===a.scope.variableScope));let r;t.length>0&&(r=t[t.length-1]),e.report({node:r?r.identifier:a.identifiers[0],messageId:"unusedVar",data:a.references.some((e=>e.isWrite()))?i(a):o(a)})}else if(a.eslintExplicitGlobalComments){const n=a.eslintExplicitGlobalComments[0];e.report({node:r,loc:rS.getNameLocationInGlobalDirectiveComment(t,n,a.name),messageId:"unusedVar",data:o(a)})}}}}}};const sS=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,oS=/^For(?:In|Of)Statement$/u;function iS(e,t){return e&&e.range[0]<=t&&t<=e.range[1]}function aS(e){if("class-static-block"===e.type)return!0;if("class-field-initializer"===e.type){return e.block.parent.static}return!1}function cS(e){const t=e.resolved;let r=e.from;for(;t.scope.variableScope!==r.variableScope;){if(!aS(r.variableScope))return!0;r=r.variableScope.upper}return!1}function uS(e){if(cS(e))return!1;const t=e.identifier.range[1],r=e.resolved.defs[0];if("ClassName"===r.type){const e=r.node;return iS(e,t)&&!function(e,t){return e.body.some((e=>"StaticBlock"===e.type&&iS(e,t)||"PropertyDefinition"===e.type&&e.static&&e.value&&iS(e.value,t)))}(e.body,t)}let n=r.name.parent;for(;n;){if("VariableDeclarator"===n.type){if(iS(n.init,t))return!0;if(oS.test(n.parent.parent.type)&&iS(n.parent.parent.right,t))return!0;break}if("AssignmentPattern"===n.type){if(iS(n.right,t))return!0}else if(sS.test(n.type))break;n=n.parent}return!1}var lS={meta:{type:"problem",docs:{description:"disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"}},additionalProperties:!1}]}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(e){const t=function(e){let t=!0,r=!0,n=!0;return"string"==typeof e?t="nofunc"!==e:"object"==typeof e&&null!==e&&(t=!1!==e.functions,r=!1!==e.classes,n=!1!==e.variables),{functions:t,classes:r,variables:n}}(e.options[0]);function r(e){if(e.init)return!1;const r=e.resolved;if(!r||0===r.defs.length)return!1;const n=r.defs[0].type;return!(!t.functions&&"FunctionName"===n)&&!((!t.variables&&"Variable"===n||!t.classes&&"ClassName"===n)&&cS(e))}function n(t){t.references.filter(r).forEach((t=>{const r=t.resolved.defs[0].name;(t.identifier.range[1]<r.range[1]||uS(t))&&e.report({node:t.identifier,messageId:"usedBeforeDefined",data:t.identifier})})),t.childScopes.forEach(n)}return{Program(){n(e.getScope())}}}};const{CALL:pS,CONSTRUCT:dS,ReferenceTracker:fS,getStringIfConstant:hS}=yo,{RegExpParser:mS,visitRegExpAST:gS}=hg,yS=new mS;function xS(e){const t=[];let r=e;do{t.push(r),r=r.parent}while(r);return t}function bS(e){return"Assertion"===e.type&&("lookahead"===e.kind||"lookbehind"===e.kind)}function vS(e){return bS(e)&&e.negate}var ES={meta:{type:"problem",docs:{description:"disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in a negative lookaround."}},create(e){function t(t,r,n){let s;try{s=yS.parsePattern(r,0,r.length,n.includes("u"))}catch{return}gS(s,{onBackreferenceEnter(r){const n=r.resolved,s=xS(r),o=xS(n);let i=null;if(s.includes(n))i="nested";else{let e=s.length-1,t=o.length-1;do{e--,t--}while(s[e]===o[t]);const a=t+1,c=o.slice(0,a),u=o.slice(a).find(bS),l=u&&"lookbehind"===u.kind;!l&&r.end<=n.start?i="forward":l&&n.end<=r.start?i="backward":"Alternative"===c[c.length-1].type?i="disjunctive":c.some(vS)&&(i="intoNegativeLookaround")}i&&e.report({node:t,messageId:i,data:{bref:r.raw,group:n.raw}})}})}return{"Literal[regex]"(e){const{pattern:r,flags:n}=e.regex;t(e,r,n)},Program(){const r=e.getScope(),n=new fS(r),s={RegExp:{[pS]:!0,[dS]:!0}};for(const{node:e}of n.iterateGlobalReferences(s)){const[n,s]=e.arguments,o=hS(n,r),i=hS(s,r);"string"==typeof o&&t(e,o,i||"")}}}}};const CS=Vp.exports;var SS={meta:{type:"suggestion",docs:{description:"disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(e){const t=e.getSourceCode();return{CallExpression(r){if(!function(e){const t=CS.skipChainExpression(e.callee);return"MemberExpression"===t.type&&"Identifier"===t.property.type&&!1===t.computed&&("call"===t.property.name&&e.arguments.length>=1||"apply"===t.property.name&&2===e.arguments.length&&"ArrayExpression"===e.arguments[1].type)}(r))return;const n=CS.skipChainExpression(r.callee),s=CS.skipChainExpression(n.object);(function(e,t,r){return e?CS.equalTokens(e,t,r):CS.isNullOrUndefined(t)})("MemberExpression"===s.type?s.object:null,r.arguments[0],t)&&e.report({node:r,messageId:"unnecessaryCall",data:{name:n.property.name}})}}}},kS={meta:{type:"suggestion",docs:{description:"disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create:e=>({CatchClause(t){t.param&&"Identifier"===t.param.type&&t.body.body.length&&"ThrowStatement"===t.body.body[0].type&&"Identifier"===t.body.body[0].argument.type&&t.body.body[0].argument.name===t.param.name&&(t.parent.finalizer?e.report({node:t,messageId:"unnecessaryCatchClause"}):e.report({node:t.parent,messageId:"unnecessaryCatch"}))}})};const AS=Vp.exports;var DS={meta:{type:"suggestion",docs:{description:"disallow unnecessary computed property keys in objects and classes",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(e){const t=e.getSourceCode(),r=e.options[0]&&e.options[0].enforceForClassMembers;function n(r){if(function(e){if(!e.computed)return!1;const{key:t}=e;if("Literal"!==t.type)return!1;const{value:r}=t;if("number"!=typeof r&&"string"!=typeof r)return!1;switch(e.type){case"Property":return"__proto__"!==r;case"PropertyDefinition":return e.static?"constructor"!==r&&"prototype"!==r:"constructor"!==r;case"MethodDefinition":return e.static?"prototype"!==r:"constructor"!==r;default:throw new Error("Unexpected node type: "+e.type)}}(r)){const{key:n}=r;e.report({node:r,messageId:"unnecessarilyComputedProperty",data:{property:t.getText(n)},fix(e){const r=t.getTokenBefore(n,AS.isOpeningBracketToken),s=t.getTokenAfter(n,AS.isClosingBracketToken);if(t.commentsExistBetween(r,s))return null;const o=t.getTokenBefore(r),i=(o.range[1]===r.range[0]&&!AS.canTokensBeAdjacent(o,t.getFirstToken(n))?" ":"")+n.raw;return e.replaceTextRange([r.range[0],s.range[1]],i)}})}}function s(){}return{Property:n,MethodDefinition:r?n:s,PropertyDefinition:r?n:s}}};const wS=Vp.exports;function FS(e){return"BinaryExpression"===e.type&&"+"===e.operator}function TS(e){return"+"===e.value&&"Punctuator"===e.type}var PS={meta:{type:"suggestion",docs:{description:"disallow unnecessary concatenation of literals or template literals",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(e){const t=e.getSourceCode();return{BinaryExpression(r){if("+"!==r.operator)return;const n=function(e){let t=e.left;for(;FS(t);)t=t.right;return t}(r),s=function(e){let t=e.right;for(;FS(t);)t=t.left;return t}(r);if(wS.isStringLiteral(n)&&wS.isStringLiteral(s)&&wS.isTokenOnSameLine(n,s)){const o=t.getFirstTokenBetween(n,s,TS);e.report({node:r,loc:o.loc,messageId:"unexpectedConcat"})}}}}};function IS(e){return"Identifier"===e.type||"RestElement"===e.type}function _S(e,t){return"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name}function BS(e,t){return _S(e,t)||function(e,t){return"RestElement"===e.type&&"SpreadElement"===t.type&&_S(e.argument,t.argument)}(e,t)}function OS(e,t){return function(e){return 1===e.length&&"ExpressionStatement"===e[0].type&&"CallExpression"===e[0].expression.type&&"Super"===e[0].expression.callee.type}(e)&&t.every(IS)&&(1===(r=e[0].expression.arguments).length&&"SpreadElement"===r[0].type&&"Identifier"===r[0].argument.type&&"arguments"===r[0].argument.name||function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!BS(e[r],t[r]))return!1;return!0}(t,e[0].expression.arguments));var r}var LS={meta:{type:"suggestion",docs:{description:"disallow unnecessary constructors",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-constructor"},schema:[],messages:{noUselessConstructor:"Useless constructor."}},create:e=>({MethodDefinition:function(t){if("constructor"!==t.kind)return;if(!t.value.body)return;const r=t.value.body.body,n=t.value.params;(t.parent.parent.superClass?OS(r,n):0===r.length)&&e.report({node:t,messageId:"noUselessConstructor"})}})};const jS=Vp.exports;function NS(e,t){return new Set(function*(){yield*e,yield*t}())}const RS=NS(new Set("\\nrvtbfux"),jS.LINEBREAKS),MS=new Set("\\bcdDfnpPrsStvwWxu0123456789]"),VS=NS(MS,new Set("^/.$*+?[{}|()Bk"));var $S={meta:{type:"suggestion",docs:{description:"disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[]},create(e){const t=e.getSourceCode();function r(r,n,s){const o=r.range[0]+n,i=[o,o+1],a=t.getLocFromIndex(o);e.report({node:r,loc:{start:a,end:{line:a.line,column:a.column+1}},messageId:"unnecessaryEscape",data:{character:s},suggest:[{messageId:"removeEscape",fix:e=>e.removeRange(i)},{messageId:"escapeBackslash",fix:e=>e.insertTextBeforeRange(i,"\\")}]})}function n(e,t){const n="TemplateElement"===e.type,s=t[0][1];let o,i=!RS.has(s);n?(o="`"===s,"$"===s?i="{"!==t.input[t.index+2]:"{"===s&&(i="$"!==t.input[t.index-1])):o=s===e.raw[0],i&&!o&&r(e,t.index,t[0].slice(1))}function s(e){const s="TemplateElement"===e.type;if(!(s&&e.parent&&e.parent.parent&&"TaggedTemplateExpression"===e.parent.parent.type&&e.parent===e.parent.parent.quasi))if("string"==typeof e.value||s){if("JSXAttribute"===e.parent.type||"JSXElement"===e.parent.type||"JSXFragment"===e.parent.type)return;const r=s?t.getText(e):e.raw,o=/\\[^\d]/gu;let i;for(;i=o.exec(r);)n(e,i)}else e.regex&&function(e){const t=[];return e.split("").reduce(((e,r,n)=>{if(!e.escapeNextChar){if("\\"===r)return Object.assign(e,{escapeNextChar:!0});if("["===r&&!e.inCharClass)return Object.assign(e,{inCharClass:!0,startingCharClass:!0});if("]"===r&&e.inCharClass)return t.length&&t[t.length-1].inCharClass&&(t[t.length-1].endsCharClass=!0),Object.assign(e,{inCharClass:!1,startingCharClass:!1})}return t.push({text:r,index:n,escaped:e.escapeNextChar,inCharClass:e.inCharClass,startsCharClass:e.startingCharClass,endsCharClass:!1}),Object.assign(e,{escapeNextChar:!1,startingCharClass:!1})}),{escapeNextChar:!1,inCharClass:!1,startingCharClass:!1}),t}(e.regex.pattern).filter((e=>!("-"===e.text&&e.inCharClass&&!e.startsCharClass&&!e.endsCharClass))).filter((e=>!("^"===e.text&&e.startsCharClass))).filter((e=>e.escaped)).filter((e=>!(e.inCharClass?MS:VS).has(e.text))).forEach((t=>r(e,t.index,t.text)))}return{Literal:s,TemplateElement:s}}};const US=Vp.exports;var qS={meta:{type:"suggestion",docs:{description:"disallow renaming import, export, and destructured assignments to the same name",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-rename"},fixable:"code",schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImport:{type:"boolean",default:!1},ignoreExport:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unnecessarilyRenamed:"{{type}} {{name}} unnecessarily renamed."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},n=!0===r.ignoreDestructuring,s=!0===r.ignoreImport,o=!0===r.ignoreExport;function i(r,n,s){const o="Identifier"===n.type?n.name:n.value;return e.report({node:r,messageId:"unnecessarilyRenamed",data:{name:o,type:s},fix(e){const n="Property"===r.type?r.value:r.local;return t.getCommentsInside(r).length>t.getCommentsInside(n).length||"AssignmentPattern"===n.type&&US.isParenthesised(t,n.left)?null:e.replaceText(r,t.getText(n))}})}return{ObjectPattern:function(e){if(!n)for(const t of e.properties){if("Property"!==t.type||t.shorthand||t.computed)continue;("Identifier"===t.key.type&&t.key.name||"Literal"===t.key.type&&t.key.value)===("AssignmentPattern"===t.value.type?t.value.left.name:t.value.name)&&i(t,t.key,"Destructuring assignment")}},ImportSpecifier:function(e){s||e.imported.name===e.local.name&&e.imported.range[0]!==e.local.range[0]&&i(e,e.imported,"Import")},ExportSpecifier:function(e){o||e.local.name===e.exported.name&&e.local.range[0]!==e.exported.range[0]&&i(e,e.local,"Export")}}}};const WS=Vp.exports,zS=My;function GS(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}function HS(e){return WS.STATEMENT_LIST_PARENTS.has(e.parent.type)}var KS={meta:{type:"suggestion",docs:{description:"disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(e){const t=new WeakMap,r=new WeakSet,n=e.getSourceCode();let s=null;function o(e){const r=t.get(e);return!r||r.returned}function i(e,r,n){const s=n||new WeakSet;for(const n of r)n.reachable?e.push(...t.get(n).uselessReturns):s.has(n)||(s.add(n),i(e,n.allPrevSegments.filter(o),s));return e}function a(e){if(!e.reachable)return r.add(e),void e.allPrevSegments.filter(o).filter((e=>!r.has(e))).forEach(a);const n=t.get(e);for(const e of n.uselessReturns)GS(s.uselessReturns,e);n.uselessReturns=[]}function c(){s.codePath.currentSegments.forEach(a)}return{onCodePathStart(e){s={upper:s,uselessReturns:[],codePath:e}},onCodePathEnd(){for(const t of s.uselessReturns)e.report({node:t,loc:t.loc,messageId:"unnecessaryReturn",fix:e=>HS(t)&&!n.getCommentsInside(t).length?new zS(e,n).retainEnclosingFunction(t).remove(t):null});s=s.upper},onCodePathSegmentStart(e){const r={uselessReturns:i([],e.allPrevSegments),returned:!1};t.set(e,r)},ReturnStatement(e){if(e.argument&&c(),!(e.argument||WS.isInLoop(e)||function(e){for(let t=e;t&&t.parent&&!WS.isFunction(t);t=t.parent)if("TryStatement"===t.parent.type&&t.parent.finalizer===t)return!0;return!1}(e))&&s.codePath.currentSegments.some((e=>e.reachable))){for(const r of s.codePath.currentSegments){const n=t.get(r);n&&(n.uselessReturns.push(e),n.returned=!0)}s.uselessReturns.push(e)}},ClassDeclaration:c,ContinueStatement:c,DebuggerStatement:c,DoWhileStatement:c,EmptyStatement:c,ExpressionStatement:c,ForInStatement:c,ForOfStatement:c,ForStatement:c,IfStatement:c,ImportDeclaration:c,LabeledStatement:c,SwitchStatement:c,ThrowStatement:c,TryStatement:c,VariableDeclaration:c,WhileStatement:c,WithStatement:c,ExportNamedDeclaration:c,ExportDefaultDeclaration:c,ExportAllDeclaration:c}}};const JS=Vp.exports;function QS(e){return Boolean(e.scope)&&"global"===e.scope.type}function XS(e){let t=e;for(;"function"!==t.type&&"global"!==t.type;)t=t.upper;return t}function YS(e){const t=XS(e.scope);return e.references.some((e=>XS(e.from)!==t))}function ZS(e){return("ForOfStatement"===e.parent.type||"ForInStatement"===e.parent.type)&&e===e.parent.left}const ek=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function tk(e){return e.defs.length>=2}function rk(e){return"let"===e.name}var nk={meta:{type:"suggestion",docs:{description:"require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(e){const t=e.getSourceCode();function r(t){if(!t.init)return!1;return e.getDeclaredVariables(t).some(function(e){const t=e.range[0],r=e.range[1];return e=>{const n=e.defs[0].name,s=n.range[0],o="AssignmentPattern"===n.parent.type?n.parent.right:null,i=o&&o.range[0],a=o&&o.range[1];return e.references.some((e=>{const n=e.identifier.range[0],c=e.identifier.range[1];return!e.init&&(n<s||null!==o&&n>=i&&c<=a||n>=t&&c<=r)}))}}(t.init))}function n(t){const n=e.getDeclaredVariables(t),s=function(e){for(let t=e;t;t=t.parent)if(ek.test(t.type))return t;return null}(t);if("SwitchCase"===t.parent.type||t.declarations.some(r)||n.some(QS)||n.some(tk)||n.some(function(e){function t(t){const r=e.range,n=t.identifier.range;return n[0]<r[0]||n[1]>r[1]}return function(e){return e.references.some(t)}}(s))||n.some(rk))return!1;if(JS.isInLoop(t)){if(n.some(YS))return!1;if(!ZS(t)&&!function(e){return e.declarations.every((e=>null!==e.init))}(t))return!1}return!!(ZS(t)||"ForStatement"===t.parent.type&&t.parent.init===t||JS.STATEMENT_LIST_PARENTS.has(t.parent.type))}return{"VariableDeclaration:exit"(r){"var"===r.kind&&function(r){e.report({node:r,messageId:"unexpectedVar",fix(e){const s=t.getFirstToken(r,{filter:e=>"var"===e.value});return n(r)?e.replaceText(s,"let"):null}})}(r)}}}},sk={meta:{type:"suggestion",docs:{description:"disallow `void` operators",recommended:!1,url:"https://eslint.org/docs/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean",default:!1}},additionalProperties:!1}]},create(e){const t=e.options[0]&&e.options[0].allowAsStatement;return{'UnaryExpression[operator="void"]'(r){t&&r.parent&&"ExpressionStatement"===r.parent.type||e.report({node:r,messageId:"noVoid"})}}}};const ok=gc,ik=Vp.exports;var ak={meta:{type:"suggestion",docs:{description:"disallow specified warning terms in comments",recommended:!1,url:"https://eslint.org/docs/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},n=r.terms||["todo","fixme","xxx"],s=r.location||"start",o=/\bno-warning-comments\b/u;const i=n.map((function(e){const t=ok(e),r="\\b";let n;const o=/\w$/u.test(e)?"\\b":"";return n="start"===s?"^\\s*":/^\w/u.test(e)?r:"","start"===s?new RegExp(n+t+o,"iu"):new RegExp(n+t+o+"|\\b"+e+r,"iu")}));function a(t){const r=t.value;if(ik.isDirectiveComment(t)&&o.test(r))return;(function(e){const t=[];return i.forEach(((r,s)=>{r.test(e)&&t.push(n[s])})),t})(r).forEach((n=>{let s="",o=!1;for(const e of r.trim().split(/\s+/u)){const t=s?`${s} ${e}`:e;if(!(t.length<=40)){o=!0;break}s=t}e.report({node:t,messageId:"unexpectedComment",data:{matchedTerm:n,comment:`${s}${o?"...":""}`}})}))}return{Program(){t.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(a)}}}};const ck=Vp.exports;var uk={meta:{type:"layout",docs:{description:"disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){const t=e.getSourceCode();return{MemberExpression(r){let n,s;ck.isTokenOnSameLine(r.object,r.property)&&(r.computed?(n=t.getTokenBefore(r.property,ck.isOpeningBracketToken),s=t.getTokenBefore(n,r.optional?1:0)):(n=t.getFirstToken(r.property),s=t.getTokenBefore(n,1)),t.isSpaceBetweenTokens(s,n)&&function(r,n,s){e.report({node:r,messageId:"unexpectedWhitespace",data:{propName:t.getText(r.property)},fix(e){let o="";return r.computed||r.optional||!ck.isDecimalInteger(r.object)?t.commentsExistBetween(n,s)?null:(r.optional?o="?.":r.computed||(o="."),e.replaceTextRange([n.range[1],s.range[0]],o)):null}})}(r,s,n))}}}},lk={meta:{type:"suggestion",docs:{description:"disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create:e=>({WithStatement(t){e.report({node:t,messageId:"unexpectedWith"})}})};const pk={enum:["beside","below","any"]};var dk={meta:{type:"layout",docs:{description:"enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[pk,{properties:{overrides:{properties:{if:pk,else:pk,while:pk,do:pk,for:pk},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){const t=e.getSourceCode();function r(r,n){const s=function(t){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[t]||e.options[0]||"beside"}(n);if("BlockStatement"===r.type||"any"===s)return;const o=t.getTokenBefore(r);o.loc.end.line===r.loc.start.line&&"below"===s?e.report({node:r,messageId:"expectLinebreak",fix:e=>e.insertTextBefore(r,"\n")}):o.loc.end.line!==r.loc.start.line&&"beside"===s&&e.report({node:r,messageId:"expectNoLinebreak",fix:e=>t.getText().slice(o.range[1],r.range[0]).trim()?null:e.replaceTextRange([o.range[1],r.range[0]]," ")})}return{IfStatement(e){r(e.consequent,"if"),e.alternate&&"IfStatement"!==e.alternate.type&&r(e.alternate,"else")},WhileStatement:e=>r(e.body,"while"),DoWhileStatement:e=>r(e.body,"do"),ForStatement:e=>r(e.body,"for"),ForInStatement:e=>r(e.body,"for"),ForOfStatement:e=>r(e.body,"for")}}};const fk=Vp.exports,hk={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function mk(e){let t=!1,r=Number.POSITIVE_INFINITY,n=!1;return e?"always"===e?r=0:"never"===e?r=Number.POSITIVE_INFINITY:(t=Boolean(e.multiline),r=e.minProperties||Number.POSITIVE_INFINITY,n=Boolean(e.consistent)):n=!0,{multiline:t,minProperties:r,consistent:n}}function gk(e){return"object"==typeof e&&null!==e}function yk(e){return gk(e)||"string"==typeof e}var xk={meta:{type:"layout",docs:{description:"enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[hk,{type:"object",properties:{ObjectExpression:hk,ObjectPattern:hk,ImportDeclaration:hk,ExportDeclaration:hk},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(e){const t=e.getSourceCode(),r=function(e){if(gk(e)&&Object.values(e).some(yk))return{ObjectExpression:mk(e.ObjectExpression),ObjectPattern:mk(e.ObjectPattern),ImportDeclaration:mk(e.ImportDeclaration),ExportNamedDeclaration:mk(e.ExportDeclaration)};const t=mk(e);return{ObjectExpression:t,ObjectPattern:t,ImportDeclaration:t,ExportNamedDeclaration:t}}(e.options[0]);function n(n){const s=r[n.type];if("ImportDeclaration"===n.type&&!n.specifiers.some((e=>"ImportSpecifier"===e.type))||"ExportNamedDeclaration"===n.type&&!n.specifiers.some((e=>"ExportSpecifier"===e.type)))return;const o=t.getFirstToken(n,(e=>"{"===e.value));let i;i=n.typeAnnotation?t.getTokenBefore(n.typeAnnotation):t.getLastToken(n,(e=>"}"===e.value));let a=t.getTokenAfter(o,{includeComments:!0}),c=t.getTokenBefore(i,{includeComments:!0});const u=function(e,t,r,n){let s;return s="ObjectExpression"===e.type||"ObjectPattern"===e.type?e.properties:e.specifiers.filter((e=>"ImportSpecifier"===e.type||"ExportSpecifier"===e.type)),s.length>=t.minProperties||t.multiline&&s.length>0&&r.loc.start.line!==n.loc.end.line}(n,s,a,c),l=fk.isCommentToken(a),p=fk.isCommentToken(c);if(a=t.getTokenAfter(o),c=t.getTokenBefore(i),u)fk.isTokenOnSameLine(o,a)&&e.report({messageId:"expectedLinebreakAfterOpeningBrace",node:n,loc:o.loc,fix:e=>l?null:e.insertTextAfter(o,"\n")}),fk.isTokenOnSameLine(c,i)&&e.report({messageId:"expectedLinebreakBeforeClosingBrace",node:n,loc:i.loc,fix:e=>p?null:e.insertTextBefore(i,"\n")});else{const t=s.consistent,r=!fk.isTokenOnSameLine(o,a),u=!fk.isTokenOnSameLine(c,i);(!t&&r||t&&r&&!u)&&e.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:n,loc:o.loc,fix:e=>l?null:e.removeRange([o.range[1],a.range[0]])}),(!t&&u||t&&!r&&u)&&e.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:n,loc:i.loc,fix:e=>p?null:e.removeRange([c.range[1],i.range[0]])})}}return{ObjectExpression:n,ObjectPattern:n,ImportDeclaration:n,ExportNamedDeclaration:n}}};const bk=Vp.exports;var vk={meta:{type:"layout",docs:{description:"enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/rules/object-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},create(e){const t="always"===e.options[0],r=e.getSourceCode();function n(r){return!!e.options[1]&&e.options[1][r]===!t}const s={spaced:t,arraysInObjectsException:n("arraysInObjects"),objectsInObjectsException:n("objectsInObjects")};function o(t,n,o,i,a){if(bk.isTokenOnSameLine(n,o)){const i=r.isSpaceBetweenTokens(n,o);s.spaced&&!i&&function(t,r){e.report({node:t,loc:r.loc,messageId:"requireSpaceAfter",data:{token:r.value},fix:e=>e.insertTextAfter(r," ")})}(t,n),!s.spaced&&i&&"Line"!==o.type&&function(t,r){const n=e.getSourceCode().getTokenAfter(r,{includeComments:!0});e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"unexpectedSpaceAfter",data:{token:r.value},fix:e=>e.removeRange([r.range[1],n.range[0]])})}(t,n)}if(bk.isTokenOnSameLine(i,a)){const n=(s.arraysInObjectsException&&bk.isClosingBracketToken(i)||s.objectsInObjectsException&&bk.isClosingBraceToken(i))&&r.getNodeByRangeIndex(i.range[0]).type,o=s.arraysInObjectsException&&"ArrayExpression"===n||s.objectsInObjectsException&&("ObjectExpression"===n||"ObjectPattern"===n)?!s.spaced:s.spaced,c=r.isSpaceBetweenTokens(i,a);o&&!c&&function(t,r){e.report({node:t,loc:r.loc,messageId:"requireSpaceBefore",data:{token:r.value},fix:e=>e.insertTextBefore(r," ")})}(t,a),!o&&c&&function(t,r){const n=e.getSourceCode().getTokenBefore(r,{includeComments:!0});e.report({node:t,loc:{start:n.loc.end,end:r.loc.start},messageId:"unexpectedSpaceBefore",data:{token:r.value},fix:e=>e.removeRange([n.range[1],r.range[0]])})}(t,a)}}function i(e){if(0===e.properties.length)return;const t=r.getFirstToken(e),n=function(e){const t=e.properties[e.properties.length-1];return r.getTokenAfter(t,bk.isClosingBraceToken)}(e);o(e,t,r.getTokenAfter(t,{includeComments:!0}),r.getTokenBefore(n,{includeComments:!0}),n)}return{ObjectPattern:i,ObjectExpression:i,ImportDeclaration:function(e){if(0===e.specifiers.length)return;let t=e.specifiers[0];const n=e.specifiers[e.specifiers.length-1];if("ImportSpecifier"!==n.type)return;"ImportSpecifier"!==t.type&&(t=e.specifiers[1]);const s=r.getTokenBefore(t),i=r.getTokenAfter(n,bk.isNotCommaToken);o(e,s,r.getTokenAfter(s,{includeComments:!0}),r.getTokenBefore(i,{includeComments:!0}),i)},ExportNamedDeclaration:function(e){if(0===e.specifiers.length)return;const t=e.specifiers[0],n=e.specifiers[e.specifiers.length-1],s=r.getTokenBefore(t),i=r.getTokenAfter(n,bk.isNotCommaToken);o(e,s,r.getTokenAfter(s,{includeComments:!0}),r.getTokenBefore(i,{includeComments:!0}),i)}}}},Ek={meta:{type:"layout",docs:{description:"enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/rules/object-property-newline"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1},allowMultiplePropertiesPerLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},create(e){const t=e.options[0]&&(e.options[0].allowAllPropertiesOnSameLine||e.options[0].allowMultiplePropertiesPerLine),r=t?"propertiesOnNewlineAll":"propertiesOnNewline",n=e.getSourceCode();return{ObjectExpression(s){if(t&&s.properties.length>1){const e=n.getFirstToken(s.properties[0]),t=n.getLastToken(s.properties[s.properties.length-1]);if(e.loc.end.line===t.loc.start.line)return}for(let t=1;t<s.properties.length;t++){const o=n.getLastToken(s.properties[t-1]),i=n.getFirstToken(s.properties[t]);o.loc.end.line===i.loc.start.line&&e.report({node:s,loc:i.loc,messageId:r,fix(e){const t=[n.getTokenBefore(i).range[1],i.range[0]];return n.text.slice(t[0],t[1]).trim()?null:e.replaceTextRange(t,"\n")}})}}}}};const Ck="always",Sk="never",kk="methods",Ak="properties",Dk="consistent",wk="consistent-as-needed",Fk=Vp.exports;var Tk={meta:{type:"suggestion",docs:{description:"require or disallow method and property shorthand syntax for object literals",recommended:!1,url:"https://eslint.org/docs/rules/object-shorthand"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","methods","properties","never","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","methods","properties"]},{type:"object",properties:{avoidQuotes:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always","methods"]},{type:"object",properties:{ignoreConstructors:{type:"boolean"},avoidQuotes:{type:"boolean"},avoidExplicitReturnArrows:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{expectedAllPropertiesShorthanded:"Expected shorthand for all properties.",expectedLiteralMethodLongform:"Expected longform method syntax for string literal keys.",expectedPropertyShorthand:"Expected property shorthand.",expectedPropertyLongform:"Expected longform property syntax.",expectedMethodShorthand:"Expected method shorthand.",expectedMethodLongform:"Expected longform method syntax.",unexpectedMix:"Unexpected mix of shorthand and non-shorthand properties."}},create(e){const t=e.options[0]||Ck,r=t===kk||t===Ck,n=t===Ak||t===Ck,s=t===Sk,o=t===Dk,i=t===wk,a=e.options[1]||{},c=a.ignoreConstructors,u=a.avoidQuotes,l=!!a.avoidExplicitReturnArrows,p=e.getSourceCode(),d=/[^_$0-9]/u;function f(e){return"set"!==e.kind&&"get"!==e.kind&&"SpreadElement"!==e.type&&"SpreadProperty"!==e.type&&"ExperimentalSpreadProperty"!==e.type}function h(e){return"Literal"===e.type&&"string"==typeof e.value}function m(e){return e.shorthand||e.method}function g(e){const t=e.value;return"FunctionExpression"===t.type?!t.id:"Identifier"===t.type&&Fk.getStaticPropertyName(e)===t.name}function y(t,r){const n=t.properties.filter(f);if(n.length>0){const s=n.filter(m);if(s.length!==n.length)if(s.length>0)e.report({node:t,messageId:"unexpectedMix"});else if(r){n.every(g)&&e.report({node:t,messageId:"expectedAllPropertiesShorthanded"})}}}const x=[],b=new WeakSet,v=new WeakSet;function E(){x.unshift(new Set),e.getScope().variables.filter((e=>"arguments"===e.name)).forEach((e=>{e.references.map((e=>e.identifier)).forEach((e=>v.add(e)))}))}function C(){x.shift()}function S(){x[0].forEach((e=>b.add(e)))}return{Program:E,FunctionDeclaration:E,FunctionExpression:E,"Program:exit":C,"FunctionDeclaration:exit":C,"FunctionExpression:exit":C,ArrowFunctionExpression(e){x[0].add(e)},"ArrowFunctionExpression:exit"(e){x[0].delete(e)},ThisExpression:S,Super:S,MetaProperty(e){"new"===e.meta.name&&"target"===e.property.name&&S()},Identifier(e){v.has(e)&&S()},ObjectExpression(e){o?y(e,!1):i&&y(e,!0)},"Property:exit"(t){const o=t.method||t.shorthand;if("ObjectPattern"!==t.parent.type&&"get"!==t.kind&&"set"!==t.kind&&(!t.computed||"FunctionExpression"===t.value.type||"ArrowFunctionExpression"===t.value.type))if(o)if(t.method&&(s||u&&h(t.key))){const r=s?"expectedMethodLongform":"expectedLiteralMethodLongform";e.report({node:t,messageId:r,fix:e=>function(e,t){const r=t.computed?p.getTokens(t).find((e=>"["===e.value)):p.getFirstToken(t.key),n=t.computed?p.getTokensBetween(t.key,t.value).find((e=>"]"===e.value)):p.getLastToken(t.key),s=p.text.slice(r.range[0],n.range[1]);let o="function";return t.value.async&&(o="async "+o),t.value.generator&&(o+="*"),e.replaceTextRange([t.range[0],n.range[1]],`${s}: ${o}`)}(e,t)})}else s&&e.report({node:t,messageId:"expectedPropertyLongform",fix:e=>e.insertTextAfter(t.key,": "+t.key.name)});else if(!r||t.value.id||"FunctionExpression"!==t.value.type&&"ArrowFunctionExpression"!==t.value.type){if("Identifier"===t.value.type&&t.key.name===t.value.name&&n)e.report({node:t,messageId:"expectedPropertyShorthand",fix:e=>e.replaceText(t,t.value.name)});else if("Identifier"===t.value.type&&"Literal"===t.key.type&&t.key.value===t.value.name&&n){if(u)return;e.report({node:t,messageId:"expectedPropertyShorthand",fix:e=>e.replaceText(t,t.value.name)})}}else{if(c&&"Identifier"===t.key.type&&function(e){const t=d.exec(e);if(!t)return!1;const r=e.charAt(t.index);return r===r.toUpperCase()}(t.key.name))return;if(u&&h(t.key))return;("FunctionExpression"===t.value.type||"ArrowFunctionExpression"===t.value.type&&"BlockStatement"===t.value.body.type&&l&&!b.has(t.value))&&e.report({node:t,messageId:"expectedMethodShorthand",fix:e=>function(e,t){const r=t.computed?p.getFirstToken(t,Fk.isOpeningBracketToken):p.getFirstToken(t.key),n=t.computed?p.getFirstTokenBetween(t.key,t.value,Fk.isClosingBracketToken):p.getLastToken(t.key),s=p.text.slice(r.range[0],n.range[1]);let o="";if(p.commentsExistBetween(n,t.value))return null;t.value.async&&(o+="async "),t.value.generator&&(o+="*");const i=[r.range[0],t.range[1]],a=o+s;if("FunctionExpression"===t.value.type){const r=p.getTokens(t.value).find((e=>"Keyword"===e.type&&"function"===e.value)),n=t.value.generator?p.getTokenAfter(r):r;return e.replaceTextRange(i,a+p.text.slice(n.range[1],t.value.range[1]))}const c=p.getTokenBefore(t.value.body,Fk.isArrowToken),u=p.text.slice(c.range[1],t.value.range[1]);let l,d=!1;if(l=0===t.value.params.length?p.getFirstToken(t.value,Fk.isOpeningParenToken):p.getTokenBefore(t.value.params[0]),1===t.value.params.length){const e=Fk.isOpeningParenToken(l),r=l.range[0]<t.range[0];d=!e||r}const f=d?t.value.params[0].range[0]:l.range[0],h=p.getTokenBefore(c).range[1],m=p.text.slice(f,h),g=d?`(${m})`:m;return e.replaceTextRange(i,a+g+u)}(e,t)})}}}}};const Pk=Vp.exports;var Ik={meta:{type:"suggestion",docs:{description:"enforce variables to be declared either together or separately in functions",recommended:!1,url:"https://eslint.org/docs/rules/one-var"},fixable:"code",schema:[{oneOf:[{enum:["always","never","consecutive"]},{type:"object",properties:{separateRequires:{type:"boolean"},var:{enum:["always","never","consecutive"]},let:{enum:["always","never","consecutive"]},const:{enum:["always","never","consecutive"]}},additionalProperties:!1},{type:"object",properties:{initialized:{enum:["always","never","consecutive"]},uninitialized:{enum:["always","never","consecutive"]}},additionalProperties:!1}]}],messages:{combineUninitialized:"Combine this with the previous '{{type}}' statement with uninitialized variables.",combineInitialized:"Combine this with the previous '{{type}}' statement with initialized variables.",splitUninitialized:"Split uninitialized '{{type}}' declarations into multiple statements.",splitInitialized:"Split initialized '{{type}}' declarations into multiple statements.",splitRequires:"Split requires to be separated into a single block.",combine:"Combine this with the previous '{{type}}' statement.",split:"Split '{{type}}' declarations into multiple statements."}},create(e){const t="always",r="never",n="consecutive",s=e.options[0]||t,o={};"string"==typeof s?(o.var={uninitialized:s,initialized:s},o.let={uninitialized:s,initialized:s},o.const={uninitialized:s,initialized:s}):"object"==typeof s&&(o.separateRequires=!!s.separateRequires,o.var={uninitialized:s.var,initialized:s.var},o.let={uninitialized:s.let,initialized:s.let},o.const={uninitialized:s.const,initialized:s.const},Object.prototype.hasOwnProperty.call(s,"uninitialized")&&(o.var.uninitialized=s.uninitialized,o.let.uninitialized=s.uninitialized,o.const.uninitialized=s.uninitialized),Object.prototype.hasOwnProperty.call(s,"initialized")&&(o.var.initialized=s.initialized,o.let.initialized=s.initialized,o.const.initialized=s.initialized));const i=e.getSourceCode(),a=[],c=[];function u(){c.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1}})}function l(){a.push({initialized:!1,uninitialized:!1}),u()}function p(){c.pop()}function d(){a.pop(),p()}function f(e){return e.init&&"CallExpression"===e.init.type&&"require"===e.init.callee.name}function h(e){const t={uninitialized:0,initialized:0};for(let r=0;r<e.length;r++)null===e[r].init?t.uninitialized++:t.initialized++;return t}function m(e,r){const n=h(r),s=o[e]||{},i=function(e){let t;return"var"===e?t=a[a.length-1]:"let"===e?t=c[c.length-1].let:"const"===e&&(t=c[c.length-1].const),t}(e),u=r.some(f);return!(s.uninitialized===t&&s.initialized===t&&(i.uninitialized||i.initialized)&&!u)&&(!(n.uninitialized>0&&s.uninitialized===t&&i.uninitialized)&&(!(n.initialized>0&&s.initialized===t&&i.initialized&&!u)&&((!i.required||!u)&&(function(e,r,n){for(let s=0;s<r.length;s++)null===r[s].init?o[e]&&o[e].uninitialized===t&&(n.uninitialized=!0):o[e]&&o[e].initialized===t&&(o.separateRequires&&f(r[s])?n.required=!0:n.initialized=!0)}(e,r,i),!0))))}function g(e){const t=e[0],r=Array.isArray(t.parent.parent.body)?t.parent.parent.body:[],n=r.findIndex((e=>e.range[0]===t.parent.range[0])),s=r[n-1];return e=>{const r=i.getTokenBefore(t),n=i.getTokenBefore(r),o=[];return s&&s.kind===i.getText(r)&&(";"===n.value?o.push(e.replaceText(n,",")):o.push(e.insertTextAfter(n,",")),o.push(e.replaceText(r,""))),o}}function y(e){const{parent:t}=e;return function(e){return Pk.STATEMENT_LIST_PARENTS.has(e.parent.type)}("ExportNamedDeclaration"===t.type?t:e)?t=>e.declarations.map((r=>{const n=i.getTokenAfter(r);if(null===n)return null;const s=i.getTokenAfter(n,{includeComments:!0});if(","!==n.value)return null;const o="ExportNamedDeclaration"===e.parent.type?"export ":"";if(s.range[0]===n.range[1])return t.replaceText(n,`; ${o}${e.kind} `);if(s.loc.start.line>n.loc.end.line||"Line"===s.type||"Block"===s.type){let r=s;for(;"Line"===r.type||"Block"===r.type;)r=i.getTokenAfter(r,{includeComments:!0});return t.replaceTextRange([n.range[0],r.range[0]],`;${i.text.slice(n.range[1],r.range[0])}${o}${e.kind} `)}return t.replaceText(n,`; ${o}${e.kind}`)})).filter((e=>e)):null}return{Program:l,FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l,StaticBlock:l,BlockStatement:u,ForStatement:u,ForInStatement:u,ForOfStatement:u,SwitchStatement:u,VariableDeclaration:function(s){const i=s.parent,a=s.kind;if(!o[a])return;const c=s.declarations,u=h(c),l=c.some(f)&&!c.every(f);o[a].initialized===t&&o.separateRequires&&l&&e.report({node:s,messageId:"splitRequires"});const p=i.body&&i.body.length>0&&i.body.indexOf(s)||0;if(p>0){const t=i.body[p-1],r="VariableDeclaration"===t.type,l=c.concat(t.declarations||[]);if(r&&t.kind===a&&(!l.some(f)||l.every(f))){const r=h(t.declarations);o[a].initialized===n&&o[a].uninitialized===n?e.report({node:s,messageId:"combine",data:{type:a},fix:g(c)}):o[a].initialized===n&&u.initialized>0&&r.initialized>0?e.report({node:s,messageId:"combineInitialized",data:{type:a},fix:g(c)}):o[a].uninitialized===n&&u.uninitialized>0&&r.uninitialized>0&&e.report({node:s,messageId:"combineUninitialized",data:{type:a},fix:g(c)})}}if(!m(a,c))if(o[a].initialized===t&&o[a].uninitialized===t)e.report({node:s,messageId:"combine",data:{type:a},fix:g(c)});else if(o[a].initialized===t&&u.initialized>0&&e.report({node:s,messageId:"combineInitialized",data:{type:a},fix:g(c)}),o[a].uninitialized===t&&u.uninitialized>0){if(s.parent.left===s&&("ForInStatement"===s.parent.type||"ForOfStatement"===s.parent.type))return;e.report({node:s,messageId:"combineUninitialized",data:{type:a},fix:g(c)})}if("ForStatement"!==i.type||i.init!==s){u.uninitialized+u.initialized>1&&(o[a].initialized===r&&o[a].uninitialized===r?e.report({node:s,messageId:"split",data:{type:a},fix:y(s)}):o[a].initialized===r&&u.initialized>0?e.report({node:s,messageId:"splitInitialized",data:{type:a},fix:y(s)}):o[a].uninitialized===r&&u.uninitialized>0&&e.report({node:s,messageId:"splitUninitialized",data:{type:a},fix:y(s)}))}},"ForStatement:exit":p,"ForOfStatement:exit":p,"ForInStatement:exit":p,"SwitchStatement:exit":p,"BlockStatement:exit":p,"Program:exit":d,"FunctionDeclaration:exit":d,"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d,"StaticBlock:exit":d}}},_k={meta:{type:"suggestion",docs:{description:"require or disallow newlines around variable declarations",recommended:!1,url:"https://eslint.org/docs/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(e){const t="always"===e.options[0];return{VariableDeclaration:function(r){if(function(e){return"ForStatement"===e||"ForInStatement"===e||"ForOfStatement"===e}(r.parent.type))return;let n;r.declarations.forEach((s=>{n&&n.loc.end.line===s.loc.start.line&&(t||n.init||s.init)&&e.report({node:r,messageId:"expectVarOnNewline",loc:s.loc,fix:e=>e.insertTextBefore(s,"\n")}),n=s}))}}}};const Bk=Vp.exports;function Ok(e){return["*","&","^","|"].indexOf(e)>=0}function Lk(e){return"Identifier"===e.type||"MemberExpression"===e.type&&("Identifier"===e.object.type||"ThisExpression"===e.object.type)&&(!e.computed||"Literal"===e.property.type)}var jk={meta:{type:"suggestion",docs:{description:"require or disallow assignment operator shorthand where possible",recommended:!1,url:"https://eslint.org/docs/rules/operator-assignment"},schema:[{enum:["always","never"]}],fixable:"code",messages:{replaced:"Assignment (=) can be replaced with operator assignment ({{operator}}=).",unexpected:"Unexpected operator assignment ({{operator}}=) shorthand."}},create(e){const t=e.getSourceCode();function r(e){return t.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator))}return{AssignmentExpression:"never"!==e.options[0]?function(n){if("="!==n.operator||"BinaryExpression"!==n.right.type)return;const s=n.left,o=n.right,i=o.operator;(Ok(i)||function(e){return["+","-","/","%","<<",">>",">>>","**"].indexOf(e)>=0}(i))&&(Bk.isSameReference(s,o.left,!0)?e.report({node:n,messageId:"replaced",data:{operator:i},fix(e){if(Lk(s)&&Lk(o.left)){const s=r(n),i=r(o),a=t.getText().slice(n.range[0],s.range[0]),c=t.getText().slice(i.range[1],n.right.range[1]);return t.commentsExistBetween(s,i)?null:e.replaceText(n,`${a}${o.operator}=${c}`)}return null}}):Bk.isSameReference(s,o.right,!0)&&Ok(i)&&e.report({node:n,messageId:"replaced",data:{operator:i}}))}:function(n){"="===n.operator||Bk.isLogicalAssignmentOperator(n.operator)||e.report({node:n,messageId:"unexpected",data:{operator:n.operator},fix(e){if(Lk(n.left)){const s=t.getFirstToken(n),o=r(n),i=t.getText().slice(n.range[0],o.range[0]),a=n.operator.slice(0,-1);let c;if(t.commentsExistBetween(s,o))return null;if(Bk.getPrecedence(n.right)<=Bk.getPrecedence({type:"BinaryExpression",operator:a})&&!Bk.isParenthesised(t,n.right))c=`${t.text.slice(o.range[1],n.right.range[0])}(${t.getText(n.right)})`;else{const e=t.getTokenAfter(o,{includeComments:!0});let r="";o.range[1]!==e.range[0]||Bk.canTokensBeAdjacent({type:"Punctuator",value:a},e)||(r=" "),c=`${r}${t.text.slice(o.range[1],n.range[1])}`}return e.replaceText(n,`${i}= ${i}${a}${c}`)}return null}})}}}};const Nk=Vp.exports;var Rk={meta:{type:"layout",docs:{description:"enforce consistent linebreak style for operators",recommended:!1,url:"https://eslint.org/docs/rules/operator-linebreak"},schema:[{enum:["after","before","none",null]},{type:"object",properties:{overrides:{type:"object",additionalProperties:{enum:["after","before","none","ignore"]}}},additionalProperties:!1}],fixable:"code",messages:{operatorAtBeginning:"'{{operator}}' should be placed at the beginning of the line.",operatorAtEnd:"'{{operator}}' should be placed at the end of the line.",badLinebreak:"Bad line breaking before and after '{{operator}}'.",noLinebreak:"There should be no line break before or after '{{operator}}'."}},create(e){const t=!e.options[0],r=e.options[0]||"after",n=e.options[1]||{},s=n.overrides?Object.assign({},n.overrides):{};t&&!s["?"]&&(s["?"]="before"),t&&!s[":"]&&(s[":"]="before");const o=e.getSourceCode();function i(t,n,i){const a=o.getTokenBefore(n,(e=>e.value===i)),c=o.getTokenBefore(a),u=o.getTokenAfter(a),l=s[i],p=l||r,d=function(e,t){return r=>{const n=o.getTokenBefore(e),s=o.getTokenAfter(e),i=o.text.slice(n.range[1],e.range[0]),a=o.text.slice(e.range[1],s.range[0]);let c,u;if(!Nk.isTokenOnSameLine(n,e)!=!Nk.isTokenOnSameLine(e,s)&&"none"!==t){if(o.getTokenBefore(e,{includeComments:!0})!==n&&o.getTokenAfter(e,{includeComments:!0})!==s)return null;c=a,u=i}else{const e=Nk.createGlobalLinebreakMatcher();if(c="before"===t||i.trim()?i:i.replace(e,""),u="after"===t||a.trim()?a:a.replace(e,""),c===i&&u===a)return null}return""===u&&"Punctuator"===s.type&&"+-".includes(e.value)&&s.value===e.value&&(u+=" "),r.replaceTextRange([n.range[1],s.range[0]],c+e.value+u)}}(a,p);Nk.isTokenOnSameLine(c,a)&&Nk.isTokenOnSameLine(a,u)||("ignore"===l||Nk.isTokenOnSameLine(c,a)||Nk.isTokenOnSameLine(a,u)?"before"===p&&Nk.isTokenOnSameLine(c,a)?e.report({node:t,loc:a.loc,messageId:"operatorAtBeginning",data:{operator:i},fix:d}):"after"===p&&Nk.isTokenOnSameLine(a,u)?e.report({node:t,loc:a.loc,messageId:"operatorAtEnd",data:{operator:i},fix:d}):"none"===p&&e.report({node:t,loc:a.loc,messageId:"noLinebreak",data:{operator:i},fix:d}):e.report({node:t,loc:a.loc,messageId:"badLinebreak",data:{operator:i},fix:d}))}function a(e){i(e,e.right,e.operator)}return{BinaryExpression:a,LogicalExpression:a,AssignmentExpression:a,VariableDeclarator(e){e.init&&i(e,e.init,"=")},PropertyDefinition(e){e.value&&i(e,e.value,"=")},ConditionalExpression(e){i(e,e.consequent,"?"),i(e,e.alternate,":")}}}};const Mk=Vp.exports;var Vk={meta:{type:"layout",docs:{description:"require or disallow padding within blocks",recommended:!1,url:"https://eslint.org/docs/rules/padded-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{blocks:{enum:["always","never"]},switches:{enum:["always","never"]},classes:{enum:["always","never"]}},additionalProperties:!1,minProperties:1}]},{type:"object",properties:{allowSingleLineBlocks:{type:"boolean"}},additionalProperties:!1}],messages:{alwaysPadBlock:"Block must be padded by blank lines.",neverPadBlock:"Block must not be padded by blank lines."}},create(e){const t={},r=e.options[0]||"always",n=e.options[1]||{};if("string"==typeof r){const e="always"===r;t.blocks=e,t.switches=e,t.classes=e}else Object.prototype.hasOwnProperty.call(r,"blocks")&&(t.blocks="always"===r.blocks),Object.prototype.hasOwnProperty.call(r,"switches")&&(t.switches="always"===r.switches),Object.prototype.hasOwnProperty.call(r,"classes")&&(t.classes="always"===r.classes);Object.prototype.hasOwnProperty.call(n,"allowSingleLineBlocks")&&(t.allowSingleLineBlocks=!0===n.allowSingleLineBlocks);const s=e.getSourceCode();function o(e){return"Line"===e.type||"Block"===e.type}function i(e,t){return t.loc.start.line-e.loc.end.line>=2}function a(r){const n=function(e){let t,r=e;do{t=r,r=s.getTokenAfter(r,{includeComments:!0})}while(o(r)&&r.loc.start.line===t.loc.end.line);return r}(function(e){return"SwitchStatement"===e.type?s.getTokenBefore(e.cases[0]):"StaticBlock"===e.type?s.getFirstToken(e,{skip:1}):s.getFirstToken(e)}(r)),a=s.getTokenBefore(n,{includeComments:!0}),c=function(e){let t,r=e;do{t=r,r=s.getTokenBefore(r,{includeComments:!0})}while(o(r)&&r.loc.end.line===t.loc.start.line);return r}(s.getLastToken(r)),u=s.getTokenAfter(c,{includeComments:!0}),l=i(a,n),p=i(c,u);t.allowSingleLineBlocks&&Mk.isTokenOnSameLine(a,u)||(!function(e){switch(e.type){case"BlockStatement":case"StaticBlock":return t.blocks;case"SwitchStatement":return t.switches;case"ClassBody":return t.classes;default:throw new Error("unreachable")}}(r)?(l&&e.report({node:r,loc:{start:a.loc.start,end:n.loc.start},fix:e=>e.replaceTextRange([a.range[1],n.range[0]-n.loc.start.column],"\n"),messageId:"neverPadBlock"}),p&&e.report({node:r,loc:{end:u.loc.start,start:c.loc.end},messageId:"neverPadBlock",fix:e=>e.replaceTextRange([c.range[1],u.range[0]-u.loc.start.column],"\n")})):(l||e.report({node:r,loc:{start:a.loc.start,end:n.loc.start},fix:e=>e.insertTextAfter(a,"\n"),messageId:"alwaysPadBlock"}),p||e.report({node:r,loc:{end:u.loc.start,start:c.loc.end},fix:e=>e.insertTextBefore(u,"\n"),messageId:"alwaysPadBlock"})))}const c={};return Object.prototype.hasOwnProperty.call(t,"switches")&&(c.SwitchStatement=function(e){0!==e.cases.length&&a(e)}),Object.prototype.hasOwnProperty.call(t,"blocks")&&(c.BlockStatement=function(e){0!==e.body.length&&a(e)},c.StaticBlock=c.BlockStatement),Object.prototype.hasOwnProperty.call(t,"classes")&&(c.ClassBody=function(e){0!==e.body.length&&a(e)}),c}};const $k=Vp.exports,Uk=`[${Array.from($k.LINEBREAKS).join("")}]`,qk=new RegExp(String.raw`^(\s*?${Uk})\s*${Uk}(\s*;?)$`,"u"),Wk=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,zk=/^require\(/u;function Gk(e){return{test:(t,r)=>r.getFirstToken(t).value===e}}function Hk(e){return{test:(t,r)=>t.loc.start.line===t.loc.end.line&&r.getFirstToken(t).value===e}}function Kk(e){return{test:(t,r)=>t.loc.start.line!==t.loc.end.line&&r.getFirstToken(t).value===e}}function Jk(e){return{test:t=>t.type===e}}function Qk(e){if("ExpressionStatement"===e.type){let t=$k.skipChainExpression(e.expression);return"UnaryExpression"===t.type&&(t=$k.skipChainExpression(t.argument)),"CallExpression"===t.type&&$k.isFunction(t.callee)}return!1}function Xk(e,t){if("DoWhileStatement"===t.type&&"BlockStatement"===t.body.type)return!0;if(Qk(t))return!0;const r=e.getLastToken(t,$k.isNotSemicolonToken),n=r&&$k.isClosingBraceToken(r)?e.getNodeByRangeIndex(r.range[0]):null;return Boolean(n)&&("BlockStatement"===n.type||"SwitchStatement"===n.type)}function Yk(e,t){return"ExpressionStatement"===e.type&&("Program"===e.parent.type||"BlockStatement"===e.parent.type&&$k.isFunction(e.parent.parent))&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!$k.isParenthesised(t,e.expression)}function Zk(e,t){if(Yk(e,t)){for(const r of e.parent.body){if(r===e)break;if(!Yk(r,t))return!1}return!0}return!1}function eA(e,t){const r=e.getLastToken(t),n=e.getTokenBefore(r),s=e.getTokenAfter(r);return Boolean(n&&s&&n.range[0]>=t.range[0]&&$k.isSemicolonToken(r)&&r.loc.start.line!==n.loc.end.line&&r.loc.end.line===s.loc.start.line)?n:r}function tA(e,t,r){return t+r}const rA={any:{verify:function(){}},never:{verify:function(e,t,r,n){0!==n.length&&e.report({node:r,messageId:"unexpectedBlankLine",fix(t){if(n.length>=2)return null;const r=n[0][0],s=n[0][1],o=r.range[1],i=s.range[0],a=e.getSourceCode().text.slice(o,i).replace(qk,tA);return t.replaceTextRange([o,i],a)}})}},always:{verify:function(e,t,r,n){n.length>0||e.report({node:r,messageId:"expectedBlankLine",fix(n){const s=e.getSourceCode();let o=eA(s,t);const i=s.getFirstTokenBetween(o,r,{includeComments:!0,filter:e=>!$k.isTokenOnSameLine(o,e)||(o=e,!1)})||r,a=$k.isTokenOnSameLine(o,i)?"\n\n":"\n";return n.insertTextAfter(o,a)}})}}},nA={"*":{test:()=>!0},"block-like":{test:(e,t)=>Xk(t,e)},"cjs-export":{test:(e,t)=>"ExpressionStatement"===e.type&&"AssignmentExpression"===e.expression.type&&Wk.test(t.getText(e.expression.left))},"cjs-import":{test:(e,t)=>"VariableDeclaration"===e.type&&e.declarations.length>0&&Boolean(e.declarations[0].init)&&zk.test(t.getText(e.declarations[0].init))},directive:{test:Zk},expression:{test:(e,t)=>"ExpressionStatement"===e.type&&!Zk(e,t)},iife:{test:Qk},"multiline-block-like":{test:(e,t)=>e.loc.start.line!==e.loc.end.line&&Xk(t,e)},"multiline-expression":{test:(e,t)=>e.loc.start.line!==e.loc.end.line&&"ExpressionStatement"===e.type&&!Zk(e,t)},"multiline-const":Kk("const"),"multiline-let":Kk("let"),"multiline-var":Kk("var"),"singleline-const":Hk("const"),"singleline-let":Hk("let"),"singleline-var":Hk("var"),block:Jk("BlockStatement"),empty:Jk("EmptyStatement"),function:Jk("FunctionDeclaration"),break:Gk("break"),case:Gk("case"),class:Gk("class"),const:Gk("const"),continue:Gk("continue"),debugger:Gk("debugger"),default:Gk("default"),do:Gk("do"),export:Gk("export"),for:Gk("for"),if:Gk("if"),import:Gk("import"),let:Gk("let"),return:Gk("return"),switch:Gk("switch"),throw:Gk("throw"),try:Gk("try"),var:Gk("var"),while:Gk("while"),with:Gk("with")};var sA={meta:{type:"layout",docs:{description:"require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(rA)},statementType:{anyOf:[{enum:Object.keys(nA)},{type:"array",items:{enum:Object.keys(nA)},minItems:1,uniqueItems:!0,additionalItems:!1}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]},additionalItems:!1},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(e){const t=e.getSourceCode(),r=e.options||[];let n=null;function s(){n={upper:n,prevNode:null}}function o(){n=n.upper}function i(e,r){let n=e;for(;"LabeledStatement"===n.type;)n=n.body;return Array.isArray(r)?r.some(i.bind(null,n)):nA[r].test(n,t)}function a(s){const o=s.parent.type;if(!($k.STATEMENT_LIST_PARENTS.has(o)||"SwitchStatement"===o))return;const a=n.prevNode;if(a){const n=function(e,t){for(let n=r.length-1;n>=0;--n){const s=r[n];if(i(e,s.prev)&&i(t,s.next))return rA[s.blankLine]}return rA.any}(a,s),o=function(e,r){const n=[];let s=eA(t,e);if(r.loc.start.line-s.loc.end.line>=2)do{const e=t.getTokenAfter(s,{includeComments:!0});e.loc.start.line-s.loc.end.line>=2&&n.push([s,e]),s=e}while(s.range[0]<r.range[0]);return n}(a,s);n.verify(e,a,s,o)}n.prevNode=s}return{Program:s,BlockStatement:s,SwitchStatement:s,StaticBlock:s,"Program:exit":o,"BlockStatement:exit":o,"SwitchStatement:exit":o,"StaticBlock:exit":o,":statement":a,SwitchCase:function(e){a(e),s()},"SwitchCase:exit":o}}};const oA=Vp.exports;var iA={meta:{type:"suggestion",docs:{description:"require using arrow functions for callbacks",recommended:!1,url:"https://eslint.org/docs/rules/prefer-arrow-callback"},schema:[{type:"object",properties:{allowNamedFunctions:{type:"boolean",default:!1},allowUnboundThis:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{preferArrowCallback:"Unexpected function expression."}},create(e){const t=e.options[0]||{},r=!1!==t.allowUnboundThis,n=t.allowNamedFunctions,s=e.getSourceCode();let o=[];function i(){o.push({this:!1,super:!1,meta:!1})}function a(){return o.pop()}return{Program(){o=[]},ThisExpression(){const e=o[o.length-1];e&&(e.this=!0)},Super(){const e=o[o.length-1];e&&(e.super=!0)},MetaProperty(e){const t=o[o.length-1];t&&function(e,t,r){return e.meta.name===t&&e.property.name===r}(e,"new","target")&&(t.meta=!0)},FunctionDeclaration:i,"FunctionDeclaration:exit":a,FunctionExpression:i,"FunctionExpression:exit"(t){const o=a();if(n&&t.id&&t.id.name)return;if(t.generator)return;const i=e.getDeclaredVariables(t)[0];if(function(e){return e&&"FunctionName"===e.defs[0].type}(i)&&i.references.length>0)return;const c=function(e){const t=e.variables;for(let e=0;e<t.length;++e){const r=t[e];if("arguments"===r.name)return 0===r.identifiers.length?r:null}return null}(e.getScope());if(c&&c.references.length>0)return;const u=function(e){const t={isCallback:!1,isLexicalThis:!1};let r=e,n=e.parent,s=!1;for(;r;){switch(n.type){case"LogicalExpression":case"ChainExpression":case"ConditionalExpression":break;case"MemberExpression":if(n.object!==r||n.property.computed||"Identifier"!==n.property.type||"bind"!==n.property.name)return t;{const e="ChainExpression"===n.parent.type?n.parent:n;if(!oA.isCallee(e))return t;s||(s=!0,t.isLexicalThis=1===e.parent.arguments.length&&"ThisExpression"===e.parent.arguments[0].type),n=e.parent}break;case"CallExpression":case"NewExpression":return n.callee!==r&&(t.isCallback=!0),t;default:return t}r=n,n=n.parent}throw new Error("unreachable")}(t);!u.isCallback||r&&o.this&&!u.isLexicalThis||o.super||o.meta||e.report({node:t,messageId:"preferArrowCallback",*fix(e){if(!u.isLexicalThis&&o.this||(r=t.params).every((e=>"Identifier"===e.type))&&r.length!==new Set(r.map((e=>e.name))).size)return;var r;if(u.isLexicalThis){const r=t.parent;if("MemberExpression"!==r.type)return;const n=r.parent,o=s.getTokenAfter(r.object,oA.isNotClosingParenToken),i=s.getLastToken(n);if(oA.isParenthesised(s,r))return;if(s.commentsExistBetween(o,i))return;yield e.removeRange([o.range[0],i.range[1]])}const n=s.getFirstToken(t,t.async?1:0),i=s.getTokenAfter(n,oA.isOpeningParenToken);s.commentsExistBetween(n,i)?(yield e.remove(n),t.id&&(yield e.remove(t.id))):yield e.removeRange([n.range[0],i.range[0]]),yield e.insertTextBefore(t.body,"=> ");let a=u.isLexicalThis?t.parent.parent:t;"ChainExpression"===a.type&&(a=a.parent),"CallExpression"===a.parent.type||"ConditionalExpression"===a.parent.type||oA.isParenthesised(s,a)||oA.isParenthesised(s,t)||(yield e.insertTextBefore(a,"("),yield e.insertTextAfter(a,")"))}})}}}};const aA=My,cA=Vp.exports,uA=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,lA=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,pA=/^(?:VariableDeclarator|AssignmentExpression)$/u;function dA(e,t){if(t.through.find((t=>t.resolved&&t.resolved.name===e)))return!0;const r=cA.getVariableByName(t,e);return null!==r&&r.defs.some((e=>"Parameter"===e.type))}function fA(e){if(!e.isWrite())return null;let t=e.identifier.parent;for(;uA.test(t.type);)t=t.parent;return pA.test(t.type)?t:null}function hA(e){switch(e.type){case"ObjectPattern":return e.properties.some((e=>!!e&&hA(e.argument||e.value)));case"ArrayPattern":return e.elements.some((e=>!!e&&hA(e)));case"AssignmentPattern":return hA(e.left);case"MemberExpression":return!0}return!1}function mA(e,t){if(e.eslintUsed&&"global"===e.scope.type)return null;let r=null,n=!1;const s=e.references;for(let o=0;o<s.length;++o){const i=s[o];if(i.isWrite()){if(null!==r&&r.identifier!==i.identifier)return null;const t=fA(i);if(null!==t&&void 0!==t.left){const r=t.left;let n=!1,s=!1;if("ObjectPattern"===r.type){n=r.properties.filter((e=>e.value)).map((e=>e.value.name)).some((t=>dA(t,e.scope))),s=hA(r)}else if("ArrayPattern"===r.type){n=r.elements.map((e=>e&&e.name)).some((t=>dA(t,e.scope))),s=hA(r)}if(n||s)return null}r=i}else if(i.isRead()&&null===r){if(t)return null;n=!0}}return null!==r&&r.from===e.scope&&function(e){let t=e.parent;for(;uA.test(t.type);)t=t.parent;return"VariableDeclarator"===t.type||"AssignmentExpression"===t.type&&"ExpressionStatement"===t.parent.type&&lA.test(t.parent.parent.type)}(r.identifier)?n?e.defs[0].name:r.identifier:null}function gA(e,t,r){return!e||r(e)?null:e.type===t?e:gA(e.parent,t,r)}var yA={meta:{type:"suggestion",docs:{description:"require `const` declarations for variables that are never reassigned after declared",recommended:!1,url:"https://eslint.org/docs/rules/prefer-const"},fixable:"code",schema:[{type:"object",properties:{destructuring:{enum:["any","all"],default:"any"},ignoreReadBeforeAssign:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"'{{name}}' is never reassigned. Use 'const' instead."}},create(e){const t=e.options[0]||{},r=e.getSourceCode(),n="all"!==t.destructuring,s=!0===t.ignoreReadBeforeAssign,o=[];let i=0,a=null,c="";function u(t){const s=t.filter(Boolean);if(t.length&&(n||s.length===t.length)){const n=gA(t[0],"VariableDeclaration",(e=>e.type.endsWith("Statement"))),o=null===n;if(!o&&n.declarations.length>0){const e=n.declarations[0];if(e.init){const t=e.init.parent;"VariableDeclarator"===t.type&&(t.id.name!==c&&(c=t.id.name,i=0),"ObjectPattern"===t.id.type&&t.init.name!==c&&(c=t.init.name,i=0),t.id!==a&&(a=t.id,i=0))}}let u=n&&("ForInStatement"===n.parent.type||"ForOfStatement"===n.parent.type||n.declarations.every((e=>e.init)))&&s.length===t.length;!o&&n.declarations&&1!==n.declarations.length&&n&&n.declarations&&n.declarations.length>=1&&(i+=s.length,u=u&&i===n.declarations.length),s.forEach((t=>{e.report({node:t,messageId:"useConst",data:t,fix:u?e=>{const t=r.getFirstToken(n,(e=>e.value===n.kind));return new aA(e,r).retainRange(n.range).replaceTextRange(t.range,"const")}:null})}))}}return{"Program:exit"(){(function(e,t){const r=new Map;for(let n=0;n<e.length;++n){const s=e[n],o=s.references,i=mA(s,t);let a=null;for(let e=0;e<o.length;++e){const t=o[e],n=t.identifier;if(n===a)continue;a=n;const s=fA(t);s&&(r.has(s)?r.get(s).push(i):r.set(s,[i]))}}return r})(o,s).forEach(u)},VariableDeclaration(t){"let"!==t.kind||function(e){return"ForStatement"===e.parent.type&&e.parent.init===e}(t)||o.push(...e.getDeclaredVariables(t))}}}};const xA=Vp.exports,bA=xA.getPrecedence({type:"AssignmentExpression"});var vA={meta:{type:"suggestion",docs:{description:"require destructuring from arrays and/or objects",recommended:!1,url:"https://eslint.org/docs/rules/prefer-destructuring"},fixable:"code",schema:[{oneOf:[{type:"object",properties:{VariableDeclarator:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1},AssignmentExpression:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}]},{type:"object",properties:{enforceForRenamedProperties:{type:"boolean"}},additionalProperties:!1}],messages:{preferDestructuring:"Use {{type}} destructuring."}},create(e){const t=e.options[0],r=e.options[1]&&e.options[1].enforceForRenamedProperties;let n={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};function s(e,t){return n&&n[e]&&n[e][t]}function o(t,r,n){e.report({node:t,messageId:"preferDestructuring",data:{type:r},fix:n})}function i(t,n,i){if("MemberExpression"!==n.type||"Super"===n.object.type||"PrivateIdentifier"===n.property.type)return;if(function(e){return Number.isInteger(e.property.value)}(n))return void(s(i.type,"array")&&o(i,"array",null));const a=function(e){return"VariableDeclarator"===e.type&&"Identifier"===e.id.type&&"MemberExpression"===e.init.type&&!e.init.computed&&"Identifier"===e.init.property.type&&e.id.name===e.init.property.name}(i)?t=>function(t,r){const n=r.init,s=e.getSourceCode();if(s.getCommentsInside(r).length>s.getCommentsInside(n.object).length)return null;let o=s.getText(n.object);return xA.getPrecedence(n.object)<bA&&(o=`(${o})`),t.replaceText(r,`{${n.property.name}} = ${o}`)}(t,i):null;if(s(i.type,"object")&&r)o(i,"object",a);else if(s(i.type,"object")){const e=n.property;("Literal"===e.type&&t.name===e.value||"Identifier"===e.type&&t.name===e.name&&!n.computed)&&o(i,"object",a)}}return t&&(n=void 0!==t.array||void 0!==t.object?{VariableDeclarator:t,AssignmentExpression:t}:t),{VariableDeclarator:function(e){e.init&&"MemberExpression"===e.init.type&&i(e.id,e.init,e)},AssignmentExpression:function(e){"="===e.operator&&i(e.left,e.right,e)}}}};const EA=Vp.exports,{CALL:CA,ReferenceTracker:SA}=yo,kA=EA.getPrecedence({type:"BinaryExpression",operator:"**"});function AA(e,t){return t?`(${e})`:e}var DA={meta:{type:"suggestion",docs:{description:"disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,url:"https://eslint.org/docs/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(e){const t=e.getSourceCode();function r(r){e.report({node:r,messageId:"useExponentiation",fix(e){if(2!==r.arguments.length||r.arguments.some((e=>"SpreadElement"===e.type))||t.getCommentsInside(r).length>0)return null;const n=r.arguments[0],s=r.arguments[1],o=t.getText(n),i=t.getText(s),a=function(e){return EA.getPrecedence(e)<=kA||"AwaitExpression"===e.type||"UnaryExpression"===e.type}(n),c=function(e){return EA.getPrecedence(e)<kA}(s),u=function(e,t){const r="ChainExpression"===e.parent.type?e.parent.parent:e.parent;return("ClassDeclaration"===r.type||r.type.endsWith("Expression")&&EA.getPrecedence(r)>=kA&&!("BinaryExpression"===r.type&&"**"===r.operator&&r.right===e)&&!(("CallExpression"===r.type||"NewExpression"===r.type)&&r.arguments.includes(e))&&!("MemberExpression"===r.type&&r.computed&&r.property===e)&&!("ArrayExpression"===r.type))&&!EA.isParenthesised(t,e)}(r,t);let l="",p="";if(!u){if(!a){const e=t.getFirstToken(n),s=t.getTokenBefore(r);s&&s.range[1]===r.range[0]&&!EA.canTokensBeAdjacent(s,e)&&(l=" ")}if(!c){const e=t.getLastToken(s),n=t.getTokenAfter(r);n&&r.range[1]===n.range[0]&&!EA.canTokensBeAdjacent(e,n)&&(p=" ")}}const d=AA(o,a),f=AA(i,c),h=AA(`${d}**${f}`,u);return e.replaceText(r,`${l}${h}${p}`)}})}return{Program(){const t=e.getScope(),n=new SA(t),s={Math:{pow:{[CA]:!0}}};for(const{node:e}of n.iterateGlobalReferences(s))r(e)}}}};const{CALL:wA,CONSTRUCT:FA,ReferenceTracker:TA,getStringIfConstant:PA}=yo,IA=hg,_A=new IA.RegExpParser;var BA={meta:{type:"suggestion",docs:{description:"enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/rules/prefer-named-capture-group"},schema:[],messages:{required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(e){function t(t,r,n){let s;try{s=_A.parsePattern(t,0,t.length,n)}catch{return}IA.visitRegExpAST(s,{onCapturingGroupEnter(t){t.name||e.report({node:r,messageId:"required",data:{group:t.raw}})}})}return{Literal(e){e.regex&&t(e.regex.pattern,e,e.regex.flags.includes("u"))},Program(){const r=e.getScope(),n=new TA(r),s={RegExp:{[wA]:!0,[FA]:!0}};for(const{node:e}of n.iterateGlobalReferences(s)){const r=PA(e.arguments[0]),n=PA(e.arguments[1]);r&&t(r,e,n&&n.includes("u"))}}}}};const OA=Vp.exports,LA=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);var jA={meta:{type:"suggestion",docs:{description:"disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,url:"https://eslint.org/docs/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(e){const t=e.getSourceCode();return{"CallExpression[arguments.length=2]"(r){const[n,s]=r.arguments,o=OA.getStaticStringValue(n),i=s.value;if(null!==o&&OA.isStringLiteral(n)&&"Literal"===s.type&&"number"==typeof i&&LA.has(i)&&(a=r.callee,OA.isSpecificId(a,"parseInt")||OA.isSpecificMemberAccess(a,"Number","parseInt"))){const{system:n,literalPrefix:s}=LA.get(i);e.report({node:r,messageId:"useLiteral",data:{system:n,functionName:t.getText(r.callee)},fix(e){if(t.getCommentsInside(r).length)return null;const n=`${s}${o}`;if(+n!==parseInt(o,i))return null;const a=t.getTokenBefore(r),c=t.getTokenAfter(r);let u="",l="";return a&&a.range[1]===r.range[0]&&!OA.canTokensBeAdjacent(a,n)&&(u=" "),c&&r.range[1]===c.range[0]&&!OA.canTokensBeAdjacent(n,c)&&(l=" "),e.replaceText(r,`${u}${n}${l}`)}})}var a}}}};const{CALL:NA,ReferenceTracker:RA}=yo,{isCommaToken:MA,isOpeningParenToken:VA,isClosingParenToken:$A,isParenthesised:UA}=Vp.exports,qA=/\s/u;function WA(e){return e.arguments.some((e=>"SpreadElement"===e.type))}function zA(e){return"Property"===e.type&&("get"===e.kind||"set"===e.kind)}function GA(e){return e.properties.some(zA)}function HA(e){return e.arguments.filter((e=>"ObjectExpression"===e.type)).some(GA)}function KA(e,t){switch(e.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!UA(t,e);default:return!1}}function JA(e,t,r){const n=[r.getFirstToken(e),r.getLastToken(e)];let s=r.getTokenBefore(e),o=r.getTokenAfter(e);for(;s&&o&&s.range[0]>t.range[0]&&VA(s)&&$A(o);)n.push(s,o),s=r.getTokenBefore(s),o=r.getTokenAfter(o);return n.sort(((e,t)=>e.range[0]-t.range[0]))}function QA(e,t){const r=t.text;let n=e.range[0];{const r=t.getTokenBefore(e,{includeComments:!0});if(r&&"Line"===r.type)return n}for(;qA.test(r[n-1]||"");)n-=1;return n}function XA(e,t){const r=t.text;let n=e.range[1];for(;qA.test(r[n]||"");)n+=1;return n}function YA(e,t){return function*(r){const n=t.getTokenAfter(e.callee,VA),s=t.getLastToken(e);yield r.removeRange([e.range[0],n.range[0]]),!function(e,t){const r=e.parent;switch(r.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return r.left===e&&!UA(t,e);default:return!UA(t,e)}}(e,t)?(yield r.replaceText(n,"{"),yield r.replaceText(s,"}")):(yield r.replaceText(n,"({"),yield r.replaceText(s,"})"));for(const s of e.arguments){const e=JA(s,n,t),o=e.shift(),i=e.pop();if("ObjectExpression"===s.type){const n=t.getLastToken(s,1),a=t.getTokenAfter(i);for(const t of e)yield r.remove(t);const c=[o.range[0],XA(o,t)],u=[Math.max(QA(i,t),c[1]),i.range[1]];yield r.removeRange(c),yield r.removeRange(u),(0===s.properties.length||MA(n))&&MA(a)&&(yield r.remove(a))}else KA(s,t)?(yield r.insertTextBefore(o,"...("),yield r.insertTextAfter(i,")")):yield r.insertTextBefore(o,"...")}}}var ZA={meta:{type:"suggestion",docs:{description:"disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead.",recommended:!1,url:"https://eslint.org/docs/rules/prefer-object-spread"},schema:[],fixable:"code",messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(e){const t=e.getSourceCode();return{Program(){const r=e.getScope(),n=new RA(r),s={Object:{assign:{[NA]:!0}}};for(const{node:r}of n.iterateGlobalReferences(s))if(r.arguments.length>=1&&"ObjectExpression"===r.arguments[0].type&&!WA(r)&&!(r.arguments.length>1&&HA(r))){const n=1===r.arguments.length?"useLiteralMessage":"useSpreadMessage",s=YA(r,t);e.report({node:r,messageId:n,fix:s})}}}}};const eD=Vp.exports;var tD={meta:{type:"suggestion",docs:{description:"require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/rules/prefer-promise-reject-errors"},fixable:null,schema:[{type:"object",properties:{allowEmptyReject:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{rejectAnError:"Expected the Promise rejection reason to be an Error."}},create(e){const t=e.options.length&&e.options[0].allowEmptyReject;function r(r){!r.arguments.length&&t||r.arguments.length&&eD.couldBeError(r.arguments[0])&&("Identifier"!==r.arguments[0].type||"undefined"!==r.arguments[0].name)||e.report({node:r,messageId:"rejectAnError"})}return{CallExpression(e){(function(e){return eD.isSpecificMemberAccess(e.callee,"Promise","reject")})(e)&&r(e)},"NewExpression:exit"(t){"Identifier"===t.callee.type&&"Promise"===t.callee.name&&t.arguments.length&&eD.isFunction(t.arguments[0])&&t.arguments[0].params.length>1&&"Identifier"===t.arguments[0].params[1].type&&e.getDeclaredVariables(t.arguments[0]).find((e=>e.name===t.arguments[0].params[1].name)).references.filter((e=>e.isRead())).filter((e=>"CallExpression"===e.identifier.parent.type&&e.identifier===e.identifier.parent.callee)).forEach((e=>r(e.identifier.parent)))}}}},rD={meta:{type:"suggestion",docs:{description:"require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/rules/prefer-reflect"},deprecated:!0,replacedBy:[],schema:[{type:"object",properties:{exceptions:{type:"array",items:{enum:["apply","call","delete","defineProperty","getOwnPropertyDescriptor","getPrototypeOf","setPrototypeOf","isExtensible","getOwnPropertyNames","preventExtensions"]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:"Avoid using {{existing}}, instead use {{substitute}}."}},create(e){const t={apply:"Function.prototype.apply",call:"Function.prototype.call",defineProperty:"Object.defineProperty",getOwnPropertyDescriptor:"Object.getOwnPropertyDescriptor",getPrototypeOf:"Object.getPrototypeOf",setPrototypeOf:"Object.setPrototypeOf",isExtensible:"Object.isExtensible",getOwnPropertyNames:"Object.getOwnPropertyNames",preventExtensions:"Object.preventExtensions"},r={apply:"Reflect.apply",call:"Reflect.apply",defineProperty:"Reflect.defineProperty",getOwnPropertyDescriptor:"Reflect.getOwnPropertyDescriptor",getPrototypeOf:"Reflect.getPrototypeOf",setPrototypeOf:"Reflect.setPrototypeOf",isExtensible:"Reflect.isExtensible",getOwnPropertyNames:"Reflect.getOwnPropertyNames",preventExtensions:"Reflect.preventExtensions"},n=(e.options[0]||{}).exceptions||[];function s(t,r,n){e.report({node:t,messageId:"preferReflect",data:{existing:r,substitute:n}})}return{CallExpression(e){const o=(e.callee.property||{}).name,i="Reflect"===(e.callee.object||{}).name,a=Object.prototype.hasOwnProperty.call(r,o),c=-1!==n.indexOf(o);!a||i||c||s(e,t[o],r[o])},UnaryExpression(e){const t="delete"===e.operator,r="Identifier"===e.argument.type,o=-1!==n.indexOf("delete");!t||r||o||s(e,"the delete keyword","Reflect.deleteProperty")}}}};const nD=Vp.exports,{CALL:sD,CONSTRUCT:oD,ReferenceTracker:iD,findVariable:aD}=yo;function cD(e){return"Literal"===e.type&&Object.prototype.hasOwnProperty.call(e,"regex")}function uD(e){return"TemplateLiteral"===e.type&&0===e.expressions.length}var lD={meta:{type:"suggestion",docs:{description:"disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/rules/prefer-regex-literals"},schema:[{type:"object",properties:{disallowRedundantWrapping:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedRegExp:"Use a regular expression literal instead of the 'RegExp' constructor.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(e){const[{disallowRedundantWrapping:t=!1}={}]=e.options;function r(t){return"TaggedTemplateExpression"===t.type&&nD.isSpecificMemberAccess(t.tag,"String","raw")&&function(t){const r=e.getScope(),n=aD(r,t);return null!==n&&"global"===n.scope.type&&0===n.defs.length}(nD.skipChainExpression(t.tag).object)&&uD(t.quasi)}function n(e){return function(e){return"Literal"===e.type&&"string"==typeof e.value}(e)||uD(e)||r(e)}function s(e){const t=e.arguments;return!(1!==t.length&&2!==t.length||!t.every(n))}function o(e){const t=e.arguments;return!(1!==t.length||!cD(t[0]))||!(2!==t.length||!cD(t[0])||!n(t[1]))}return{Program(){const r=e.getScope(),n=new iD(r),i={RegExp:{[sD]:!0,[oD]:!0}};for(const{node:r}of n.iterateGlobalReferences(i))t&&o(r)?2===r.arguments.length?e.report({node:r,messageId:"unexpectedRedundantRegExpWithFlags"}):e.report({node:r,messageId:"unexpectedRedundantRegExp"}):s(r)&&e.report({node:r,messageId:"unexpectedRegExp"})}}}};function pD(e){const t=e.identifier,r=t.parent;return!("MemberExpression"===r.type&&r.object===t&&!r.computed)}var dD={meta:{type:"suggestion",docs:{description:"require rest parameters instead of `arguments`",recommended:!1,url:"https://eslint.org/docs/rules/prefer-rest-params"},schema:[],messages:{preferRestParams:"Use the rest parameters instead of 'arguments'."}},create(e){function t(t){e.report({node:t.identifier,loc:t.identifier.loc,messageId:"preferRestParams"})}function r(){const r=function(e){const t=e.variables;for(let e=0;e<t.length;++e){const r=t[e];if("arguments"===r.name)return 0===r.identifiers.length?r:null}return null}(e.getScope());r&&r.references.filter(pD).forEach(t)}return{"FunctionDeclaration:exit":r,"FunctionExpression:exit":r}}};const fD=Vp.exports;var hD={meta:{type:"suggestion",docs:{description:"require spread operators instead of `.apply()`",recommended:!1,url:"https://eslint.org/docs/rules/prefer-spread"},schema:[],fixable:null,messages:{preferSpread:"Use the spread operator instead of '.apply()'."}},create(e){const t=e.getSourceCode();return{CallExpression(r){if(!function(e){return fD.isSpecificMemberAccess(e.callee,null,"apply")&&2===e.arguments.length&&"ArrayExpression"!==e.arguments[1].type&&"SpreadElement"!==e.arguments[1].type}(r))return;const n=fD.skipChainExpression(fD.skipChainExpression(r.callee).object);(function(e,t,r){return e?fD.equalTokens(e,t,r):fD.isNullOrUndefined(t)})("MemberExpression"===n.type?n.object:null,r.arguments[0],t)&&e.report({node:r,messageId:"preferSpread"})}}}};const mD=Vp.exports;function gD(e){return"BinaryExpression"===e.type&&"+"===e.operator}function yD(e){let t=e;for(;gD(t.parent);)t=t.parent;return t}function xD(e){return gD(e)?xD(e.left)||xD(e.right):"Literal"===e.type&&"string"==typeof e.value&&mD.hasOctalOrNonOctalDecimalEscapeSequence(e.raw)}function bD(e){return gD(e)?bD(e.right)||bD(e.left):mD.isStringLiteral(e)}function vD(e){return gD(e)?vD(e.right)||vD(e.left):!mD.isStringLiteral(e)}function ED(e){return"BinaryExpression"===e.type?ED(e.left):"TemplateLiteral"===e.type?e.expressions.length&&e.quasis.length&&e.quasis[0].range[0]===e.quasis[0].range[1]:"Literal"!==e.type||"string"!=typeof e.value}var CD={meta:{type:"suggestion",docs:{description:"require template literals instead of string concatenation",recommended:!1,url:"https://eslint.org/docs/rules/prefer-template"},schema:[],fixable:"code",messages:{unexpectedStringConcatenation:"Unexpected string concatenation."}},create(e){const t=e.getSourceCode();let r=Object.create(null);function n(e,r){const n=[e].concat(t.getTokensBetween(e,r)).concat(r),s=t.getText();return n.slice(0,-1).reduce(((e,t,r)=>e+s.slice(t.range[1],n[r+1].range[0])),"")}function s(e,r,o){if("Literal"===e.type&&"string"==typeof e.value)return`\`${e.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,(e=>e.lastIndexOf("\\")%2?"\\"+e:e)).replace(new RegExp("\\\\"+e.raw[0],"gu"),e.raw[0])}\``;if("TemplateLiteral"===e.type)return t.getText(e);if(gD(e)&&bD(e)&&vD(e)){const i=t.getFirstTokenBetween(e.left,e.right,(e=>"+"===e.value)),a=n(e.left,i),c=n(i,e.right),u=function(e){return"BinaryExpression"===e.type?ED(e.right):"TemplateLiteral"===e.type?e.expressions.length&&e.quasis.length&&e.quasis[e.quasis.length-1].range[0]===e.quasis[e.quasis.length-1].range[1]:"Literal"!==e.type||"string"!=typeof e.value}(e.left),l=ED(e.right);return u?s(e.left,r,a+c).slice(0,-1)+s(e.right,null,o).slice(1):l?s(e.left,r,null).slice(0,-1)+s(e.right,a+c,o).slice(1):`${s(e.left,r,null)}${a}+${c}${s(e.right,o,null)}`}return`\`\${${r||""}${t.getText(e)}${o||""}}\``}function o(e,t){const r=yD(t.parent);return xD(r)?null:e.replaceText(r,s(r,null,null))}function i(t){if(!mD.isStringLiteral(t)||!gD(t.parent))return;const n=yD(t.parent);r[n.range[0]]||(r[n.range[0]]=!0,vD(n)&&e.report({node:n,messageId:"unexpectedStringConcatenation",fix:e=>o(e,t)}))}return{Program(){r=Object.create(null)},Literal:i,TemplateLiteral:i}}};const SD=dt,kD=Vp.exports,AD=af;var DD={meta:{type:"suggestion",docs:{description:"require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(e){const t=e.options[0],r=e.options[1]&&e.options[1].keywords,n=!e.options[1]||!1!==e.options[1].unnecessary,s=e.options[1]&&e.options[1].numbers,o=e.getSourceCode();function i(e){return AD.indexOf(e)>=0}function a(e,t,r){return 1===t.length&&0===t[0].start&&t[0].end===e.length&&(["Identifier","Keyword","Null","Boolean"].indexOf(t[0].type)>=0||"Numeric"===t[0].type&&!r&&String(+t[0].value)===t[0].value)}function c(e){return"Identifier"===e.type?e.name:e.value}function u(e){return"Literal"===e.type&&"string"==typeof e.value?o.getText(e):`"${"Identifier"===e.type?e.name:e.value}"`}function l(t,n){const s=[],o=[];let l=null,p=!1;t.properties.forEach((e=>{const t=e.key;if(t&&!e.method&&!e.computed&&!e.shorthand)if("Literal"===t.type&&"string"==typeof t.value){if(s.push(e),n){let e;try{e=SD.tokenize(t.value)}catch{return void(p=!0)}p=p||!a(t.value,e)||r&&i(e[0].value)}}else r&&n&&"Identifier"===t.type&&i(t.name)?(o.push(e),p=!0,l=t.name):o.push(e)})),n&&s.length&&!p?s.forEach((t=>{e.report({node:t,messageId:"redundantQuoting",fix:e=>e.replaceText(t.key,c(t.key))})})):o.length&&l?o.forEach((t=>{e.report({node:t,messageId:"requireQuotesDueToReservedWord",data:{property:l},fix:e=>e.replaceText(t.key,u(t.key))})})):s.length&&o.length&&o.forEach((t=>{e.report({node:t,messageId:"inconsistentlyQuotedProperty",data:{key:t.key.name||t.key.value},fix:e=>e.replaceText(t.key,u(t.key))})}))}return{Property(o){"always"!==t&&t||function(t){const r=t.key;t.method||t.computed||t.shorthand||"Literal"===r.type&&"string"==typeof r.value||e.report({node:t,messageId:"unquotedPropertyFound",data:{property:r.name||r.value},fix:e=>e.replaceText(r,u(r))})}(o),"as-needed"===t&&function(t){const o=t.key;if(!(t.method||t.computed||t.shorthand))if("Literal"===o.type&&"string"==typeof o.value){let u;try{u=SD.tokenize(o.value)}catch{return}if(1!==u.length)return;if(i(u[0].value)&&r)return;n&&a(o.value,u,s)&&e.report({node:t,messageId:"unnecessarilyQuotedProperty",data:{property:o.value},fix:e=>e.replaceText(o,c(o))})}else r&&"Identifier"===o.type&&i(o.name)?e.report({node:t,messageId:"unquotedReservedProperty",data:{property:o.name},fix:e=>e.replaceText(o,u(o))}):s&&"Literal"===o.type&&kD.isNumericLiteral(o)&&e.report({node:t,messageId:"unquotedNumericProperty",data:{property:o.value},fix:e=>e.replaceText(o,u(o))})}(o)},ObjectExpression(e){"consistent"===t&&l(e,!1),"consistent-as-needed"===t&&l(e,!0)}}}};const wD=Vp.exports,FD={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},TD=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(wD.LINEBREAKS).join("")}]`,"u");FD.double.convert=FD.single.convert=FD.backtick.convert=function(e){const t=this.quote,r=e[0];return t===r?e:t+e.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,((e,n,s)=>n===r||"`"===r&&"${"===n?n:e===t||"`"===t&&"${"===e?"\\"+e:s&&"`"===r?"\\n":e))+t};var PD={meta:{type:"layout",docs:{description:"enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(e){const t=e.options[0],r=FD[t||"double"],n=e.options[1],s=n&&!0===n.allowTemplateLiterals,o=e.getSourceCode();let i=n&&!0===n.avoidEscape;function a(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value}function c(e){const t=e.parent.parent;if("Program"!==t.type&&("BlockStatement"!==t.type||!wD.isFunction(t.parent)))return!1;for(let r=0;r<t.body.length;++r){const n=t.body[r];if(n===e.parent)return!0;if(!a(n))break}return!1}return"avoid-escape"===n&&(i=!0),{Literal(n){const s=n.value,o=n.raw;if(r&&"string"==typeof s){let s="backtick"===t&&function(e){const t=e.parent;switch(t.type){case"ExpressionStatement":return c(e);case"Property":case"PropertyDefinition":case"MethodDefinition":return t.key===e&&!t.computed;case"ImportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return t.source===e;default:return!1}}(n)||function(e){return"JSXAttribute"===e.parent.type||"JSXElement"===e.parent.type||"JSXFragment"===e.parent.type}(n)||wD.isSurroundedBy(o,r.quote);!s&&i&&(s=wD.isSurroundedBy(o,r.alternateQuote)&&o.indexOf(r.quote)>=0),s||e.report({node:n,messageId:"wrongQuotes",data:{description:r.description},fix:e=>"backtick"===t&&wD.hasOctalOrNonOctalDecimalEscapeSequence(o)?null:e.replaceText(n,r.convert(n.raw))})}},TemplateLiteral(n){s||"backtick"===t||function(e){return"TaggedTemplateExpression"===e.parent.type&&e===e.parent.quasi||(e.expressions.length>0||!!(e.quasis.length>=1&&TD.test(e.quasis[0].value.raw)))}(n)||e.report({node:n,messageId:"wrongQuotes",data:{description:r.description},fix:e=>c(n)?null:e.replaceText(n,r.convert(o.getText(n)))})}}}};const ID=Vp.exports,_D="always",BD=new Set(Array.from({length:35},((e,t)=>t+2)));function OD(e){return e.defs.length>=1}var LD={meta:{type:"suggestion",docs:{description:"enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/rules/radix"},hasSuggestions:!0,schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",redundantRadix:"Redundant radix parameter.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(e){const t=e.options[0]||_D;function r(r){const n=r.arguments;switch(n.length){case 0:e.report({node:r,messageId:"missingParameters"});break;case 1:t===_D&&e.report({node:r,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(t){const n=e.getSourceCode().getTokens(r),s=n[n.length-1],o=n[n.length-2],i="Punctuator"===o.type&&","===o.value;return t.insertTextBefore(s,i?" 10,":", 10")}}]});break;default:"as-needed"===t&&function(e){return"Literal"===e.type&&10===e.value}(n[1])?e.report({node:r,messageId:"redundantRadix"}):function(e){return!("Literal"===e.type&&!BD.has(e.value)||"Identifier"===e.type&&"undefined"===e.name)}(n[1])||e.report({node:r,messageId:"invalidRadix"})}}return{"Program:exit"(){const t=e.getScope();let n;n=ID.getVariableByName(t,"parseInt"),n&&!OD(n)&&n.references.forEach((e=>{const t=e.identifier;ID.isCallee(t)&&r(t.parent)})),n=ID.getVariableByName(t,"Number"),n&&!OD(n)&&n.references.forEach((e=>{const t=e.identifier.parent,n="ChainExpression"===t.parent.type?t.parent:t;(function(e){return"MemberExpression"===e.type&&!e.computed&&"Identifier"===e.property.type&&"parseInt"===e.property.name})(t)&&ID.isCallee(n)&&r(n.parent)}))}}}};function jD(e,t=new Map){for(const r of e.references)null!==r.resolved&&t.set(r.identifier,r);for(const r of e.childScopes)"function"!==r.type&&jD(r,t);return t}class ND{constructor(){this.info=new WeakMap}initialize(e){const t=new Set,r=new Set;for(const n of e.prevSegments){const e=this.info.get(n);e&&(e.outdatedReadVariables.forEach(Set.prototype.add,t),e.freshReadVariables.forEach(Set.prototype.add,r))}this.info.set(e,{outdatedReadVariables:t,freshReadVariables:r})}markAsRead(e,t){for(const r of e){const e=this.info.get(r);e&&(e.freshReadVariables.add(t),e.outdatedReadVariables.delete(t))}}makeOutdated(e){for(const t of e){const e=this.info.get(t);e&&(e.freshReadVariables.forEach(Set.prototype.add,e.outdatedReadVariables),e.freshReadVariables.clear())}}isOutdated(e,t){for(const r of e){const e=this.info.get(r);if(e&&e.outdatedReadVariables.has(t))return!0}return!1}}var RD={meta:{type:"problem",docs:{description:"disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:"https://eslint.org/docs/rules/require-atomic-updates"},fixable:null,schema:[{type:"object",properties:{allowProperties:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(e){const t=!!e.options[0]&&e.options[0].allowProperties,r=e.getSourceCode(),n=new Map,s=new ND;let o=null;return{onCodePathStart(t){const r=e.getScope(),n="function"===r.type&&(r.block.async||r.block.generator);o={upper:o,codePath:t,referenceMap:n?jD(r):null}},onCodePathEnd(){o=o.upper},onCodePathSegmentStart(e){s.initialize(e)},Identifier(e){const{codePath:t,referenceMap:r}=o,i=r&&r.get(e);if(!i)return;const a=i.resolved,c=function(e){if(e.writeExpr)return e.writeExpr;let t=e.identifier;for(;t;){const e=t.parent.type;if("AssignmentExpression"===e&&t.parent.left===t)return t.parent.right;if("MemberExpression"!==e||t.parent.object!==t)break;t=t.parent}return null}(i),u="MemberExpression"===i.identifier.parent.type;if(!i.isRead()||c&&"="===c.parent.operator||s.markAsRead(t.currentSegments,a),c&&c.parent.right===c&&!function(e,t){if(!e)return!1;if(t&&e.defs.some((e=>"Parameter"===e.type)))return!1;const r=e.scope.variableScope;return e.references.every((e=>e.from.variableScope===r))}(a,u)){let e=n.get(c);e||(e=[],n.set(c,e)),e.push(i)}},":expression:exit"(i){const{codePath:a,referenceMap:c}=o;if(!c)return;"AwaitExpression"!==i.type&&"YieldExpression"!==i.type||s.makeOutdated(a.currentSegments);const u=n.get(i);if(u){n.delete(i);for(const n of u){const o=n.resolved;s.isOutdated(a.currentSegments,o)&&(i.parent.left===n.identifier?e.report({node:i.parent,messageId:"nonAtomicUpdate",data:{value:o.name}}):t||e.report({node:i.parent,messageId:"nonAtomicObjectUpdate",data:{value:r.getText(i.parent.left),object:o.name}}))}}}}}};const MD=Vp.exports;var VD={meta:{type:"suggestion",docs:{description:"disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression."}},create(e){const t=e.getSourceCode();let r=null;function n(){r={upper:r,hasAwait:!1}}function s(n){var s;n.generator||!n.async||r.hasAwait||MD.isEmptyFunction(n)||e.report({node:n,loc:MD.getFunctionHeadLoc(n,t),messageId:"missingAwait",data:{name:(s=MD.getFunctionNameWithKind(n),s[0].toUpperCase()+s.slice(1))}}),r=r.upper}return{FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n,"FunctionDeclaration:exit":s,"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s,AwaitExpression(){r&&(r.hasAwait=!0)},ForOfStatement(e){r&&e.await&&(r.hasAwait=!0)}}}},$D={meta:{type:"suggestion",docs:{description:"require JSDoc comments",recommended:!1,url:"https://eslint.org/docs/rules/require-jsdoc"},schema:[{type:"object",properties:{require:{type:"object",properties:{ClassDeclaration:{type:"boolean",default:!1},MethodDefinition:{type:"boolean",default:!1},FunctionDeclaration:{type:"boolean",default:!0},ArrowFunctionExpression:{type:"boolean",default:!1},FunctionExpression:{type:"boolean",default:!1}},additionalProperties:!1,default:{}}},additionalProperties:!1}],deprecated:!0,replacedBy:[],messages:{missingJSDocComment:"Missing JSDoc comment."}},create(e){const t=e.getSourceCode(),r=Object.assign({FunctionDeclaration:!0,MethodDefinition:!1,ClassDeclaration:!1,ArrowFunctionExpression:!1,FunctionExpression:!1},e.options[0]&&e.options[0].require);function n(r){t.getJSDocComment(r)||function(t){e.report({node:t,messageId:"missingJSDocComment"})}(r)}return{FunctionDeclaration(e){r.FunctionDeclaration&&n(e)},FunctionExpression(e){(r.MethodDefinition&&"MethodDefinition"===e.parent.type||r.FunctionExpression&&("VariableDeclarator"===e.parent.type||"Property"===e.parent.type&&e===e.parent.value))&&n(e)},ClassDeclaration(e){r.ClassDeclaration&&n(e)},ArrowFunctionExpression(e){r.ArrowFunctionExpression&&"VariableDeclarator"===e.parent.type&&n(e)}}}};const{CALL:UD,CONSTRUCT:qD,ReferenceTracker:WD,getStringIfConstant:zD}=yo;var GD={meta:{type:"suggestion",docs:{description:"enforce the use of `u` flag on RegExp",recommended:!1,url:"https://eslint.org/docs/rules/require-unicode-regexp"},messages:{requireUFlag:"Use the 'u' flag."},schema:[]},create:e=>({"Literal[regex]"(t){(t.regex.flags||"").includes("u")||e.report({node:t,messageId:"requireUFlag"})},Program(){const t=e.getScope(),r=new WD(t),n={RegExp:{[UD]:!0,[qD]:!0}};for(const{node:s}of r.iterateGlobalReferences(n)){const r=s.arguments[1],n=zD(r,t);r&&("string"!=typeof n||n.includes("u"))||e.report({node:s,messageId:"requireUFlag"})}}})},HD={meta:{type:"suggestion",docs:{description:"require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(e){const t=[];function r(e){e.generator&&t.push(0)}function n(r){if(!r.generator)return;0===t.pop()&&r.body.body.length>0&&e.report({node:r,messageId:"missingYield"})}return{FunctionDeclaration:r,"FunctionDeclaration:exit":n,FunctionExpression:r,"FunctionExpression:exit":n,YieldExpression(){t.length>0&&(t[t.length-1]+=1)}}}},KD={meta:{type:"layout",docs:{description:"enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(e){const t=e.getSourceCode(),r="always"===e.options[0];function n(n){const s=t.getFirstToken(n),o=t.getTokenAfter(s),i=t.isSpaceBetweenTokens(s,o);let a;switch(n.type){case"SpreadElement":a="spread","ObjectExpression"===n.parent.type&&(a+=" property");break;case"RestElement":a="rest","ObjectPattern"===n.parent.type&&(a+=" property");break;case"ExperimentalSpreadProperty":a="spread property";break;case"ExperimentalRestProperty":a="rest property";break;default:return}r&&!i?e.report({node:n,loc:s.loc,messageId:"expectedWhitespace",data:{type:a},fix:e=>e.replaceTextRange([s.range[1],o.range[0]]," ")}):!r&&i&&e.report({node:n,loc:{start:s.loc.end,end:o.loc.start},messageId:"unexpectedWhitespace",data:{type:a},fix:e=>e.removeRange([s.range[1],o.range[0]])})}return{SpreadElement:n,RestElement:n,ExperimentalSpreadProperty:n,ExperimentalRestProperty:n}}};const JD=My,QD=Vp.exports;var XD={meta:{type:"layout",docs:{description:"require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(e){const t=/^[-[(/+`]/u,r=new Set(["get","set","static"]),n=new Set(["*","in","instanceof"]),s=e.options[1],o="never"===e.options[0],i=Boolean(s&&s.omitLastInOneLineBlock),a=s&&s.beforeStatementContinuationChars||"any",c=e.getSourceCode();function u(t,r){const n=c.getLastToken(t);let s,o,i;r?(s="extraSemi",i=n.loc,o=function(e){return new JD(e,c).retainSurroundingTokens(n).remove(n)}):(s="missingSemi",i={start:n.loc.end,end:QD.getNextLocation(c,n.loc.end)},o=function(e){return e.insertTextAfter(n,";")}),e.report({node:t,loc:i,messageId:s,fix:o})}function l(e){const t=e.type;return"DoWhileStatement"!==t&&"BreakStatement"!==t&&"ContinueStatement"!==t&&"DebuggerStatement"!==t&&"ImportDeclaration"!==t&&"ExportAllDeclaration"!==t&&("ReturnStatement"===t?Boolean(e.argument):"ExportNamedDeclaration"===t?Boolean(e.declaration):!function(e){if(!QD.isClosingBraceToken(e))return!1;const t=c.getNodeByRangeIndex(e.range[0]);return"BlockStatement"===t.type&&"ArrowFunctionExpression"===t.parent.type}(c.getLastToken(e,1)))}function p(e){return Boolean(e)&&t.test(e.value)&&"++"!==e.value&&"--"!==e.value}function d(e){return!!function(e){const t=c.getTokenAfter(e);return!t||QD.isClosingBraceToken(t)||QD.isSemicolonToken(t)}(c.getLastToken(e))||!function(e){if("PropertyDefinition"!==e.type)return!1;if(!e.computed&&"Identifier"===e.key.type&&r.has(e.key.name)&&!(e.static&&"static"===e.key.name||e.value))return!0;const t=c.getTokenAfter(e);return n.has(t.value)}(e)&&(!function(e){const t=c.getLastToken(e,1),r=c.getTokenAfter(e);return!!r&&QD.isTokenOnSameLine(t,r)}(e)&&("PropertyDefinition"!==e.type&&"never"===a&&!l(e)||!p(c.getTokenAfter(e))))}function f(e){const t=QD.isSemicolonToken(c.getLastToken(e));if(o)t&&d(e)?u(e,!0):!t&&"always"===a&&"PropertyDefinition"!==e.type&&p(c.getTokenAfter(e))&&u(e);else{const r=i&&function(e){const t=e.parent,r=c.getTokenAfter(e);if(!r||"}"!==r.value)return!1;if("BlockStatement"===t.type)return t.loc.start.line===t.loc.end.line;if("StaticBlock"===t.type)return c.getFirstToken(t,{skip:1}).loc.start.line===t.loc.end.line;return!1}(e);t&&r?u(e,!0):t||r||u(e)}}return{VariableDeclaration:function(e){const t=e.parent;"ForStatement"===t.type&&t.init===e||/^For(?:In|Of)Statement/u.test(t.type)&&t.left===e||f(e)},ExpressionStatement:f,ReturnStatement:f,ThrowStatement:f,DoWhileStatement:f,DebuggerStatement:f,BreakStatement:f,ContinueStatement:f,ImportDeclaration:f,ExportAllDeclaration:f,ExportNamedDeclaration(e){e.declaration||f(e)},ExportDefaultDeclaration(e){/(?:Class|Function)Declaration/u.test(e.declaration.type)||f(e)},PropertyDefinition:f}}};const YD=Vp.exports;var ZD={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(e){const t=e.options[0],r=e.getSourceCode();let n=!1,s=!0;function o(t,o){if(YD.isSemicolonToken(t)){if(function(e){const t=r.getTokenBefore(e);return t&&YD.isTokenOnSameLine(t,e)&&r.isSpaceBetweenTokens(t,e)}(t)){if(!n){const n=r.getTokenBefore(t),s={start:n.loc.end,end:t.loc.start};e.report({node:o,loc:s,messageId:"unexpectedWhitespaceBefore",fix:e=>e.removeRange([n.range[1],t.range[0]])})}}else if(n){const r=t.loc;e.report({node:o,loc:r,messageId:"missingWhitespaceBefore",fix:e=>e.insertTextBefore(t," ")})}if(!function(e){const t=r.getTokenBefore(e);return!(t&&YD.isTokenOnSameLine(e,t))}(t)&&!function(e){const t=r.getTokenAfter(e);return!(t&&YD.isTokenOnSameLine(e,t))}(t)&&!function(e){const t=r.getTokenAfter(e);return t&&YD.isClosingBraceToken(t)||YD.isClosingParenToken(t)}(t))if(function(e){const t=r.getTokenAfter(e);return t&&YD.isTokenOnSameLine(e,t)&&r.isSpaceBetweenTokens(e,t)}(t)){if(!s){const n=r.getTokenAfter(t),s={start:t.loc.end,end:n.loc.start};e.report({node:o,loc:s,messageId:"unexpectedWhitespaceAfter",fix:e=>e.removeRange([t.range[1],n.range[0]])})}}else if(s){const r=t.loc;e.report({node:o,loc:r,messageId:"missingWhitespaceAfter",fix:e=>e.insertTextAfter(t," ")})}}}function i(e){o(r.getLastToken(e),e)}return"object"==typeof t&&(n=t.before,s=t.after),{VariableDeclaration:i,ExpressionStatement:i,BreakStatement:i,ContinueStatement:i,DebuggerStatement:i,DoWhileStatement:i,ReturnStatement:i,ThrowStatement:i,ImportDeclaration:i,ExportNamedDeclaration:i,ExportAllDeclaration:i,ExportDefaultDeclaration:i,ForStatement(e){e.init&&o(r.getTokenAfter(e.init),e),e.test&&o(r.getTokenAfter(e.test),e)},PropertyDefinition:i}}};const ew=Vp.exports,tw=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");var rw={meta:{type:"layout",docs:{description:"enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"last";function n(r,n){const s=t.getTokenBefore(r),o=t.getTokenAfter(r),i=!s||ew.isTokenOnSameLine(s,r),a=!o||ew.isTokenOnSameLine(r,o);("last"===n&&!i||"first"===n&&!a)&&e.report({loc:r.loc,messageId:"expectedSemiColon",data:{pos:"last"===n?"the end of the previous line":"the beginning of the next line"},fix(e){if(s&&o&&t.commentsExistBetween(s,o))return null;const i=s?s.range[1]:r.range[0],a=o?o.range[0]:r.range[1],c="last"===n?";\n":"\n;";return e.replaceTextRange([i,a],c)}})}return{[tw](e){if("first"===r&&function(e){const t=e.parent.type;if("IfStatement"===t&&e.parent.consequent===e&&e.parent.alternate)return!0;if("DoWhileStatement"===t)return!0;const r=function(e){const t=e.type;return"BlockStatement"===t||"StaticBlock"===t||"Program"===t||"ClassBody"===t?e.body:"SwitchCase"===t?e.consequent:null}(e.parent);return null!==r&&r[r.length-1]===e}(e))return;const s=t.getLastToken(e);ew.isSemicolonToken(s)&&n(s,r)},ForStatement(e){const r=e.init&&t.getTokenAfter(e.init,ew.isSemicolonToken),s=e.test&&t.getTokenAfter(e.test,ew.isSemicolonToken);r&&n(r,"last"),s&&n(s,"last")}}}},nw={meta:{type:"suggestion",docs:{description:"enforce sorted import declarations within modules",recommended:!1,url:"https://eslint.org/docs/rules/sort-imports"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean",default:!1},memberSyntaxSortOrder:{type:"array",items:{enum:["none","all","multiple","single"]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:"boolean",default:!1},ignoreMemberSort:{type:"boolean",default:!1},allowSeparatedGroups:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{sortImportsAlphabetically:"Imports should be sorted alphabetically.",sortMembersAlphabetically:"Member '{{memberName}}' of the import declaration should be sorted alphabetically.",unexpectedSyntaxOrder:"Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax."}},create(e){const t=e.options[0]||{},r=t.ignoreCase||!1,n=t.ignoreDeclarationSort||!1,s=t.ignoreMemberSort||!1,o=t.memberSyntaxSortOrder||["none","all","multiple","single"],i=t.allowSeparatedGroups||!1,a=e.getSourceCode();let c=null;function u(e){return o.indexOf(function(e){return 0===e.specifiers.length?"none":"ImportNamespaceSpecifier"===e.specifiers[0].type?"all":1===e.specifiers.length?"single":"multiple"}(e))}function l(e){return e.specifiers[0]?e.specifiers[0].local.name:null}return{ImportDeclaration(t){if(!n){if(c&&i&&(p=c,d=t,Math.max(d.loc.start.line-p.loc.end.line-1,0)>0)&&(c=null),c){const n=u(t),s=u(c);let i=l(t),a=l(c);r&&(a=a&&a.toLowerCase(),i=i&&i.toLowerCase()),n!==s?n<s&&e.report({node:t,messageId:"unexpectedSyntaxOrder",data:{syntaxA:o[n],syntaxB:o[s]}}):a&&i&&i<a&&e.report({node:t,messageId:"sortImportsAlphabetically"})}c=t}var p,d;if(!s){const n=t.specifiers.filter((e=>"ImportSpecifier"===e.type)),s=r?e=>e.local.name.toLowerCase():e=>e.local.name,o=n.map(s).findIndex(((e,t,r)=>r[t-1]>e));-1!==o&&e.report({node:n[o],messageId:"sortMembersAlphabetically",data:{memberName:n[o].local.name},fix:e=>n.some((e=>a.getCommentsBefore(e).length||a.getCommentsAfter(e).length))?null:e.replaceTextRange([n[0].range[0],n[n.length-1].range[1]],n.slice().sort(((e,t)=>s(e)>s(t)?1:-1)).reduce(((e,t,r)=>{const s=r===n.length-1?"":a.getText().slice(n[r].range[1],n[r+1].range[0]);return e+a.getText(t)+s}),""))})}}}}},sw={exports:{}},ow=function(e,t){var r,n,s=1,o=0,i=0,a=String.alphabet;function c(e,t,n){if(n){for(r=t;(n=c(e,r))<76&&n>65;)++r;return+e.slice(t-1,r)}return(n=a&&a.indexOf(e.charAt(t)))>-1?n+76:(n=e.charCodeAt(t)||0)<45||n>127?n:n<46?65:n<48?n-1:n<58?n+18:n<65?n-11:n<91?n+11:n<97?n-37:n<123?n+5:n-63}if((e+="")!=(t+=""))for(;s;)if(n=c(e,o++),s=c(t,i++),n<76&&s<76&&n>66&&s>66&&(n=c(e,o,o),s=c(t,i,o=r),i=r),n!=s)return n<s?-1:1;return 0};try{sw.exports=ow}catch(Zl){String.naturalCompare=ow}const iw=Vp.exports,aw=sw.exports;const cw={asc:(e,t)=>e<=t,ascI:(e,t)=>e.toLowerCase()<=t.toLowerCase(),ascN:(e,t)=>aw(e,t)<=0,ascIN:(e,t)=>aw(e.toLowerCase(),t.toLowerCase())<=0,desc:(e,t)=>cw.asc(t,e),descI:(e,t)=>cw.ascI(t,e),descN:(e,t)=>cw.ascN(t,e),descIN:(e,t)=>cw.ascIN(t,e)};var uw={meta:{type:"suggestion",docs:{description:"require object keys to be sorted",recommended:!1,url:"https://eslint.org/docs/rules/sort-keys"},schema:[{enum:["asc","desc"]},{type:"object",properties:{caseSensitive:{type:"boolean",default:!0},natural:{type:"boolean",default:!1},minKeys:{type:"integer",minimum:2,default:2}},additionalProperties:!1}],messages:{sortKeys:"Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'."}},create(e){const t=e.options[0]||"asc",r=e.options[1],n=r&&!1===r.caseSensitive,s=r&&r.natural,o=r&&r.minKeys,i=cw[t+(n?"I":"")+(s?"N":"")];let a=null;return{ObjectExpression(e){a={upper:a,prevName:null,numKeys:e.properties.length}},"ObjectExpression:exit"(){a=a.upper},SpreadElement(e){"ObjectExpression"===e.parent.type&&(a.prevName=null)},Property(r){if("ObjectPattern"===r.parent.type)return;const c=a.prevName,u=a.numKeys,l=function(e){const t=iw.getStaticPropertyName(e);return null!==t?t:e.key.name||null}(r);null!==l&&(a.prevName=l),null===c||null===l||u<o||i(c,l)||e.report({node:r,loc:r.key.loc,messageId:"sortKeys",data:{thisName:l,prevName:c,order:t,insensitive:n?"insensitive ":"",natural:s?"natural ":""}})}}}},lw={meta:{type:"suggestion",docs:{description:"require variables within the same declaration block to be sorted",recommended:!1,url:"https://eslint.org/docs/rules/sort-vars"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{sortVars:"Variables within the same declaration block should be sorted alphabetically."}},create(e){const t=(e.options[0]||{}).ignoreCase||!1,r=e.getSourceCode();return{VariableDeclaration(n){const s=n.declarations.filter((e=>"Identifier"===e.id.type)),o=t?e=>e.id.name.toLowerCase():e=>e.id.name,i=s.some((e=>null!==e.init&&"Literal"!==e.init.type));let a=!1;s.slice(1).reduce(((t,n)=>{const c=o(t);return o(n)<c?(e.report({node:n,messageId:"sortVars",fix:e=>i||a?null:e.replaceTextRange([s[0].range[0],s[s.length-1].range[1]],s.slice().sort(((e,t)=>o(e)>o(t)?1:-1)).reduce(((e,t,n)=>{const o=n===s.length-1?"":r.getText().slice(s[n].range[1],s[n+1].range[0]);return e+r.getText(t)+o}),""))}),a=!0,t):n}),s[0])}}}};const pw=Vp.exports;function dw(e){const t=e.parent;return"BlockStatement"===e.type&&pw.isFunction(t)&&t.body===e}var fw={meta:{type:"layout",docs:{description:"enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(e){const t=e.options[0],r=e.getSourceCode();let n=!0,s=!0,o=!0,i=!1,a=!1,c=!1;function u(t){const u=r.getTokenBefore(t);if(u&&!function(e,t){return pw.isArrowToken(e)||pw.isKeywordToken(e)&&!dw(t)||pw.isColonToken(e)&&t.parent&&"SwitchCase"===t.parent.type&&e===pw.getSwitchCaseColonToken(t.parent,r)}(u,t)&&pw.isTokenOnSameLine(u,t)){const l=r.isSpaceBetweenTokens(u,t);let p,d;dw(t)?(p=n,d=i):"ClassBody"===t.type?(p=o,d=c):(p=s,d=a),p&&!l?e.report({node:t,messageId:"missingSpace",fix:e=>e.insertTextBefore(t," ")}):d&&l&&e.report({node:t,messageId:"unexpectedSpace",fix:e=>e.removeRange([u.range[1],t.range[0]])})}}return"object"==typeof t?(n="always"===t.functions,s="always"===t.keywords,o="always"===t.classes,i="never"===t.functions,a="never"===t.keywords,c="never"===t.classes):"never"===t&&(n=!1,s=!1,o=!1,i=!0,a=!0,c=!0),{BlockStatement:u,ClassBody:u,SwitchStatement:function(e){const t=e.cases;let n;n=t.length>0?r.getTokenBefore(t[0]):r.getLastToken(e,1),u(n)}}}};const hw=Vp.exports;var mw={meta:{type:"layout",docs:{description:"enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(e){const t=e.getSourceCode(),r="string"==typeof e.options[0]?e.options[0]:"always",n="object"==typeof e.options[0]?e.options[0]:{};function s(s){const o=function(e){if("ArrowFunctionExpression"===e.type){if(e.async&&hw.isOpeningParenToken(t.getFirstToken(e,{skip:1})))return n.asyncArrow||r}else{if(function(e){if(e.id)return!0;const t=e.parent;return"MethodDefinition"===t.type||"Property"===t.type&&("get"===t.kind||"set"===t.kind||t.method)}(e))return n.named||r;if(!e.generator)return n.anonymous||r}return"ignore"}(s);if("ignore"===o)return;const i=t.getFirstToken(s,hw.isOpeningParenToken),a=t.getTokenBefore(i),c=t.isSpaceBetweenTokens(a,i);c&&"never"===o?e.report({node:s,loc:{start:a.loc.end,end:i.loc.start},messageId:"unexpectedSpace",fix(e){const r=t.getCommentsBefore(i);return r.some((e=>"Line"===e.type))?null:e.replaceTextRange([a.range[1],i.range[0]],r.reduce(((e,r)=>e+t.getText(r)),""))}}):c||"always"!==o||e.report({node:s,loc:i.loc,messageId:"missingSpace",fix:e=>e.insertTextAfter(a," ")})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s}}};const gw=Vp.exports;var yw={meta:{type:"layout",docs:{description:"enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(e){const t="always"===e.options[0],r=e.options[1]&&e.options[1].exceptions||[],n={};let s;r.length&&(n.braceException=r.includes("{}"),n.bracketException=r.includes("[]"),n.parenException=r.includes("()"),n.empty=r.includes("empty"));const o=e.getSourceCode();function i(e){return s.openers.includes(e.value)}function a(e){return s.closers.includes(e.value)}return{Program:function(r){s=function(){const e=[],t=[];return n.braceException&&(e.push("{"),t.push("}")),n.bracketException&&(e.push("["),t.push("]")),n.parenException&&(e.push("("),t.push(")")),n.empty&&(e.push(")"),t.push("(")),{openers:e,closers:t}}();const c=o.tokensAndComments;c.forEach(((s,u)=>{const l=c[u-1],p=c[u+1];var d,f,h,m;(gw.isOpeningParenToken(s)||gw.isClosingParenToken(s))&&("("!==s.value||(d=s,f=p,o.isSpaceBetweenTokens(d,f)||!n.empty&&gw.isClosingParenToken(f)||(t?i(f):!i(f)))||e.report({node:r,loc:s.loc,messageId:"missingOpeningSpace",fix:e=>e.insertTextAfter(s," ")}),"("===s.value&&function(e,r){return!!gw.isTokenOnSameLine(e,r)&&"Line"!==r.type&&!!o.isSpaceBetweenTokens(e,r)&&(t?i(r):!i(r))}(s,p)&&e.report({node:r,loc:{start:s.loc.end,end:p.loc.start},messageId:"rejectedOpeningSpace",fix:e=>e.removeRange([s.range[1],p.range[0]])}),")"!==s.value||(h=l,m=s,o.isSpaceBetweenTokens(h,m)||!n.empty&&gw.isOpeningParenToken(h)||(t?a(h):!a(h)))||e.report({node:r,loc:s.loc,messageId:"missingClosingSpace",fix:e=>e.insertTextBefore(s," ")}),")"===s.value&&function(e,r){return!!gw.isTokenOnSameLine(e,r)&&!!o.isSpaceBetweenTokens(e,r)&&(t?a(e):!a(e))}(l,s)&&e.report({node:r,loc:{start:l.loc.end,end:s.loc.start},messageId:"rejectedClosingSpace",fix:e=>e.removeRange([l.range[1],s.range[0]])}))}))}}}};const{isEqToken:xw}=Vp.exports;var bw={meta:{type:"layout",docs:{description:"require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(e){const t=!!e.options[0]&&!0===e.options[0].int32Hint,r=e.getSourceCode();function n(e,t,n){const s=r.getFirstTokenBetween(e,t,(e=>e.value===n)),o=r.getTokenBefore(s),i=r.getTokenAfter(s);return r.isSpaceBetweenTokens(o,s)&&r.isSpaceBetweenTokens(s,i)?null:s}function s(t,n){e.report({node:t,loc:n.loc,messageId:"missingSpace",data:{operator:n.value},fix(e){const t=r.getTokenBefore(n),s=r.getTokenAfter(n);let o="";return n.range[0]-t.range[1]==0&&(o=" "),o+=n.value,s.range[0]-n.range[1]==0&&(o+=" "),e.replaceText(n,o)}})}function o(e){const o=n(e.left.typeAnnotation?e.left.typeAnnotation:e.left,e.right,e.operator||"=");o&&(t&&r.getText(e).endsWith("|0")||s(e,o))}return{AssignmentExpression:o,AssignmentPattern:o,BinaryExpression:o,LogicalExpression:o,ConditionalExpression:function(e){const t=n(e.test,e.consequent,"?"),r=n(e.consequent,e.alternate,":");t&&s(e,t),r&&s(e,r)},VariableDeclarator:function(e){const t=e.id.typeAnnotation?e.id.typeAnnotation:e.id,r=e.init;if(r){const o=n(t,r,"=");o&&s(e,o)}},PropertyDefinition(e){if(!e.value)return;const t=r.getTokenBefore(e.value,xw),n=r.getTokenBefore(t),o=r.getTokenAfter(t);r.isSpaceBetweenTokens(n,t)&&r.isSpaceBetweenTokens(t,o)||s(e,t)}}}};const vw=Vp.exports;var Ew={meta:{type:"layout",docs:{description:"enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(e){const t=e.options[0]||{words:!0,nonwords:!1},r=e.getSourceCode();function n(e){return t.overrides&&Object.prototype.hasOwnProperty.call(t.overrides,e)}function s(e){return t.overrides[e]}function o(t,r,n,s){n.range[0]===r.range[1]&&e.report({node:t,messageId:"wordOperator",data:{word:s},fix:e=>e.insertTextAfter(r," ")})}function i(t,r,n,s){vw.canTokensBeAdjacent(r,n)&&n.range[0]>r.range[1]&&e.report({node:t,messageId:"unexpectedAfterWord",data:{word:s},fix:e=>e.removeRange([r.range[1],n.range[0]])})}function a(e,r,a,c){n(c)?s(c)?o(e,r,a,c):i(e,r,a,c):t.words?o(e,r,a,c):i(e,r,a,c)}function c(t,r,n){if(t.prefix){if(function(e){return e&&"UnaryExpression"===e.type&&"!"===e.argument.operator&&e.argument&&"UnaryExpression"===e.argument.type&&"!"===e.argument.operator}(t))return;r.range[1]===n.range[0]&&e.report({node:t,messageId:"operator",data:{operator:r.value},fix:e=>e.insertTextAfter(r," ")})}else r.range[1]===n.range[0]&&e.report({node:t,messageId:"beforeUnaryExpressions",data:{token:n.value},fix:e=>e.insertTextBefore(n," ")})}function u(t,r,n){t.prefix?n.range[0]>r.range[1]&&e.report({node:t,messageId:"unexpectedAfter",data:{operator:r.value},fix:e=>vw.canTokensBeAdjacent(r,n)?e.removeRange([r.range[1],n.range[0]]):null}):n.range[0]>r.range[1]&&e.report({node:t,messageId:"unexpectedBefore",data:{operator:n.value},fix:e=>e.removeRange([r.range[1],n.range[0]])})}function l(e){const o="UpdateExpression"!==e.type||e.prefix?r.getFirstTokens(e,2):r.getLastTokens(e,2),i=o[0],l=o[1];if(("NewExpression"===e.type||e.prefix)&&"Keyword"===i.type)return void a(e,i,l,i.value);const p=e.prefix?o[0].value:o[1].value;n(p)?s(p)?c(e,i,l):u(e,i,l):t.nonwords?c(e,i,l):u(e,i,l)}return{UnaryExpression:l,UpdateExpression:l,NewExpression:l,YieldExpression:function(e){const t=r.getFirstTokens(e,3);e.argument&&!e.delegate&&a(e,t[0],t[1],"yield")},AwaitExpression:function(e){const t=r.getFirstTokens(e,3);a(e,t[0],t[1],"await")}}}};const Cw=gc,Sw=Vp.exports;function kw(e){return`(?:${Cw(e)})`}function Aw(e){return kw(e)+"+"}function Dw(e){let t="";return 0===e.length?t+="\\s":(t+="(?:\\s|",1===e.length?t+=Aw(e[0]):(t+="(?:",t+=e.map(Aw).join("|"),t+=")"),t+=`(?:$|[${Array.from(Sw.LINEBREAKS).join("")}]))`),t}function ww(e,t){let r="^";return 1===e.length?r+=kw(e[0]):(r+="(?:",r+=e.map(kw).join("|"),r+=")"),r+="?",r+=Dw(t),new RegExp(r,"u")}function Fw(e){const t=`^(${e.map(kw).join("|")})?[ \t]+`;return new RegExp(t,"u")}var Tw={meta:{type:"suggestion",docs:{description:"enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(e){const t=e.getSourceCode(),r="never"!==e.options[0],n=e.options[1]||{},s=n.block&&n.block.balanced,o=["block","line"].reduce(((e,t)=>{const o=function(e){return-1===e.indexOf("*")?e.concat("*"):e}(n[t]&&n[t].markers||n.markers||[]),i=n[t]&&n[t].exceptions||n.exceptions||[];return e[t]={beginRegex:r?ww(o,i):Fw(o),endRegex:s&&r?new RegExp(Dw(i)+"$","u"):new RegExp("[ \t]+$","u"),hasExceptions:i.length>0,captureMarker:new RegExp(`^(${o.map(kw).join("|")})`,"u"),markers:new Set(o)},e}),{});function i(t,n,s,o){const i="block"===t.type.toLowerCase()?"/*":"//";e.report({node:t,fix(e){const n=t.range[0];let o=n+2;return r?(s&&(o+=s[0].length),e.insertTextAfterRange([n,o]," ")):(o+=s[0].length,e.replaceTextRange([n,o],i+(s[1]?s[1]:"")))},messageId:n,data:{refChar:o}})}function a(t,n,s){e.report({node:t,fix(e){if(r)return e.insertTextAfterRange([t.range[0],t.range[1]-2]," ");const n=t.range[1]-2,o=n-s[0].length;return e.replaceTextRange([o,n],"")},messageId:n})}function c(e){const t=e.type.toLowerCase(),n=o[t],c="block"===t?"/*":"//";if(0===e.value.length||n.markers.has(e.value))return;const u=n.beginRegex.exec(e.value),l=n.endRegex.exec(e.value);if(r){if(!u){const t=n.captureMarker.exec(e.value),r=t?c+t[0]:c;n.hasExceptions?i(e,"expectedExceptionAfter",t,r):i(e,"expectedSpaceAfter",t,r)}s&&"block"===t&&!l&&a(e,"expectedSpaceBefore")}else u&&(u[1]?i(e,"unexpectedSpaceAfterMarker",u,u[1]):i(e,"unexpectedSpaceAfter",u,c)),s&&"block"===t&&l&&a(e,"unexpectedSpaceBefore",l)}return{Program(){t.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(c)}}}};const Pw=Vp.exports;function Iw(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];if("ExpressionStatement"!==n.type||"Literal"!==n.expression.type||"use strict"!==n.expression.value)break;t[r]=n}return t}function _w(e){return"Identifier"===e.type}function Bw(e){return e.every(_w)}var Ow={meta:{type:"suggestion",docs:{description:"require or disallow strict mode directives",recommended:!1,url:"https://eslint.org/docs/rules/strict"},schema:[{enum:["never","global","function","safe"]}],fixable:"code",messages:{function:"Use the function form of 'use strict'.",global:"Use the global form of 'use strict'.",multiple:"Multiple 'use strict' directives.",never:"Strict mode is not permitted.",unnecessary:"Unnecessary 'use strict' directive.",module:"'use strict' is unnecessary inside of modules.",implied:"'use strict' is unnecessary when implied strict mode is enabled.",unnecessaryInClasses:"'use strict' is unnecessary inside of classes.",nonSimpleParameterList:"'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.",wrap:"Wrap {{name}} in a function with 'use strict' directive."}},create(e){const t=e.parserOptions.ecmaFeatures||{},r=[],n=[];let s=e.options[0]||"safe";function o(e){return"multiple"===e||"unnecessary"===e||"module"===e||"implied"===e||"unnecessaryInClasses"===e}function i(e){return t=>t.remove(e)}function a(t,r,n,s,o){t.slice(r,n).forEach((t=>{e.report({node:t,messageId:s,fix:o?i(t):null})}))}function c(e,t,r){a(e,0,e.length,t,r)}function u(e,t,r){a(e,1,e.length,t,r)}function l(){r.pop()}function p(t){const a="BlockStatement"===t.body.type?Iw(t.body.body):[];"function"===s?function(t,s){const o=n.length>0,a=0===r.length&&0===n.length,c=r.length>0&&r[r.length-1],l=s.length>0;l?(Bw(t.params)?c?e.report({node:s[0],messageId:"unnecessary",fix:i(s[0])}):o&&e.report({node:s[0],messageId:"unnecessaryInClasses",fix:i(s[0])}):e.report({node:s[0],messageId:"nonSimpleParameterList"}),u(s,"multiple",!0)):a&&(Bw(t.params)?e.report({node:t,messageId:"function"}):e.report({node:t,messageId:"wrap",data:{name:Pw.getFunctionNameWithKind(t)}})),r.push(c||l)}(t,a):a.length>0&&(Bw(t.params)?c(a,s,o(s)):(e.report({node:a[0],messageId:"nonSimpleParameterList"}),u(a,"multiple",!0)))}t.impliedStrict?s="implied":"safe"===s&&(s=t.globalReturn?"global":"function");const d={Program(t){const r=Iw(t.body);"module"===t.sourceType&&(s="module"),"global"===s?(t.body.length>0&&0===r.length&&e.report({node:t,messageId:"global"}),u(r,"multiple",!0)):c(r,s,o(s))},FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p};return"function"===s&&Object.assign(d,{ClassBody(){n.push(!0)},"ClassBody:exit"(){n.pop()},"FunctionDeclaration:exit":l,"FunctionExpression:exit":l,"ArrowFunctionExpression:exit":l}),d}};const Lw=Vp.exports;var jw={meta:{type:"layout",docs:{description:"enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},n=!0===r.before,s=!1!==r.after;function o(e,r,n){return Lw.isClosingBraceToken(r)||!Lw.isTokenOnSameLine(e,r)||t.isSpaceBetweenTokens(e,r)===n}function i(e,r,n,s){return function(e,r){return null!==t.getFirstTokenBetween(e,r,{includeComments:!0,filter:Lw.isCommentToken})}(r,n)?null:s?e.insertTextAfter(r," "):e.removeRange([r.range[1],n.range[0]])}return{SwitchCase(r){const a=Lw.getSwitchCaseColonToken(r,t),c=t.getTokenBefore(a),u=t.getTokenAfter(a);o(c,a,n)||e.report({node:r,loc:a.loc,messageId:n?"expectedBefore":"unexpectedBefore",fix:e=>i(e,c,a,n)}),o(a,u,s)||e.report({node:r,loc:a.loc,messageId:s?"expectedAfter":"unexpectedAfter",fix:e=>i(e,a,u,s)})}}}};const Nw=Vp.exports;var Rw={meta:{type:"suggestion",docs:{description:"require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create:e=>({"Program:exit"(){const t=e.getScope(),r=Nw.getVariableByName(t,"Symbol");r&&0===r.defs.length&&r.references.forEach((t=>{const r=t.identifier;Nw.isCallee(r)&&function(t){0===t.arguments.length&&e.report({node:t,messageId:"expected"})}(r.parent)}))}})};const Mw=Vp.exports;var Vw={meta:{type:"layout",docs:{description:"require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(e){const t=e.getSourceCode(),r="always"===e.options[0];return{TemplateElement(n){const s=t.getFirstToken(n);!function(n){if(!n.value.startsWith("}"))return;const s=t.getTokenBefore(n,{includeComments:!0}),o=t.isSpaceBetween(s,n);Mw.isTokenOnSameLine(s,n)&&(r&&!o&&e.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+1}},messageId:"expectedBefore",fix:e=>e.insertTextBefore(n," ")}),!r&&o&&e.report({loc:{start:s.loc.end,end:n.loc.start},messageId:"unexpectedBefore",fix:e=>e.removeRange([s.range[1],n.range[0]])}))}(s),function(n){if(!n.value.endsWith("${"))return;const s=t.getTokenAfter(n,{includeComments:!0}),o=t.isSpaceBetween(n,s);Mw.isTokenOnSameLine(n,s)&&(r&&!o&&e.report({loc:{start:{line:n.loc.end.line,column:n.loc.end.column-2},end:n.loc.end},messageId:"expectedAfter",fix:e=>e.insertTextAfter(n," ")}),!r&&o&&e.report({loc:{start:n.loc.end,end:s.loc.start},messageId:"unexpectedAfter",fix:e=>e.removeRange([n.range[1],s.range[0]])}))}(s)}}}},$w={meta:{type:"layout",docs:{description:"require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(e){const t="always"!==e.options[0],r=e.getSourceCode();return{TaggedTemplateExpression:function(n){const s=r.getTokenBefore(n.quasi),o=r.getFirstToken(n.quasi),i=r.isSpaceBetweenTokens(s,o);t&&i?e.report({node:n,loc:{start:s.loc.end,end:o.loc.start},messageId:"unexpected",fix(e){const t=r.getCommentsBefore(n.quasi);return t.some((e=>"Line"===e.type))?null:e.replaceTextRange([s.range[1],o.range[0]],t.reduce(((e,t)=>e+r.getText(t)),""))}}):t||i||e.report({node:n,loc:{start:n.loc.start,end:o.loc.start},messageId:"missing",fix:e=>e.insertTextAfter(s," ")})}}}},Uw={meta:{type:"layout",docs:{description:"require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create:e=>({Program:function(t){const r=e.getSourceCode(),n={column:0,line:1},s=e.options[0]||"never";r.hasBOM||"always"!==s?r.hasBOM&&"never"===s&&e.report({node:t,loc:n,messageId:"unexpected",fix:e=>e.removeRange([-1,0])}):e.report({node:t,loc:n,messageId:"expected",fix:e=>e.insertTextBeforeRange([0,1],"\ufeff")})}})};const qw=Vp.exports;function Ww(e){return Boolean(e)&&(qw.isSpecificId(e,"NaN")||qw.isSpecificMemberAccess(e,"Number","NaN"))}var zw={meta:{type:"problem",docs:{description:"require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean",default:!0},enforceForIndexOf:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN."}},create(e){const t=!e.options[0]||e.options[0].enforceForSwitchCase,r=e.options[0]&&e.options[0].enforceForIndexOf;const n={BinaryExpression:function(t){/^(?:[<>]|[!=]=)=?$/u.test(t.operator)&&(Ww(t.left)||Ww(t.right))&&e.report({node:t,messageId:"comparisonWithNaN"})}};return t&&(n.SwitchStatement=function(t){Ww(t.discriminant)&&e.report({node:t,messageId:"switchNaN"});for(const r of t.cases)Ww(r.test)&&e.report({node:r,messageId:"caseNaN"})}),r&&(n.CallExpression=function(t){const r=qw.skipChainExpression(t.callee);if("MemberExpression"===r.type){const n=qw.getStaticPropertyName(r);"indexOf"!==n&&"lastIndexOf"!==n||1!==t.arguments.length||!Ww(t.arguments[0])||e.report({node:t,messageId:"indexOfNaN",data:{methodName:n}})}}),n}},Gw={},Hw={},Kw={},Jw="3.0.0";!function(){var e,t;function r(e){this.name="DoctrineError",this.message=e}e=Jw,Kw.VERSION=e,r.prototype=((t=function(){}).prototype=Error.prototype,new t),r.prototype.constructor=r,Kw.DoctrineError=r,Kw.throwError=function(e){throw new r(e)},Kw.assert=he}(),function(){var e,t,r,n,s,o,i,a,c,u,l,p;function d(e){return-1==="><(){}[],:*|?!=".indexOf(String.fromCharCode(e))&&!c.code.isWhiteSpace(e)&&!c.code.isLineTerminator(e)}function f(e,t,r,n){this._previous=e,this._index=t,this._token=r,this._value=n}function h(e,t){return p&&(e.range=[t[0]+l,t[1]+l]),e}function m(){var e=r.charAt(s);return s+=1,e}function g(e){var t,o,i,a=0;for(o="u"===e?4:2,t=0;t<o;++t){if(!(s<n&&c.code.isHexDigit(r.charCodeAt(s))))return"";i=m(),a=16*a+"0123456789abcdef".indexOf(i.toLowerCase())}return String.fromCharCode(a)}function y(){var e,o;if(e="",46!==(o=r.charCodeAt(s))){if(e=m(),o=r.charCodeAt(s),"0"===e){if(120===o||88===o){for(e+=m();s<n&&(o=r.charCodeAt(s),c.code.isHexDigit(o));)e+=m();return e.length<=2&&u.throwError("unexpected token"),s<n&&(o=r.charCodeAt(s),c.code.isIdentifierStartES5(o)&&u.throwError("unexpected token")),a=parseInt(e,16),t.NUMBER}if(c.code.isOctalDigit(o)){for(e+=m();s<n&&(o=r.charCodeAt(s),c.code.isOctalDigit(o));)e+=m();return s<n&&(o=r.charCodeAt(s),(c.code.isIdentifierStartES5(o)||c.code.isDecimalDigit(o))&&u.throwError("unexpected token")),a=parseInt(e,8),t.NUMBER}c.code.isDecimalDigit(o)&&u.throwError("unexpected token")}for(;s<n&&(o=r.charCodeAt(s),c.code.isDecimalDigit(o));)e+=m()}if(46===o)for(e+=m();s<n&&(o=r.charCodeAt(s),c.code.isDecimalDigit(o));)e+=m();if(101===o||69===o)if(e+=m(),43!==(o=r.charCodeAt(s))&&45!==o||(e+=m()),o=r.charCodeAt(s),c.code.isDecimalDigit(o))for(e+=m();s<n&&(o=r.charCodeAt(s),c.code.isDecimalDigit(o));)e+=m();else u.throwError("unexpected token");return s<n&&(o=r.charCodeAt(s),c.code.isIdentifierStartES5(o)&&u.throwError("unexpected token")),a=parseFloat(e),t.NUMBER}function x(){var e;for(o=s;s<n&&c.code.isWhiteSpace(r.charCodeAt(s));)m();if(s>=n)return i=t.EOF;switch(e=r.charCodeAt(s)){case 39:case 34:return i=function(){var e,o,i,l,p,d="";for(e=r.charAt(s),++s;s<n;){if((o=m())===e){e="";break}if("\\"===o)if(o=m(),c.code.isLineTerminator(o.charCodeAt(0)))"\r"===o&&10===r.charCodeAt(s)&&++s;else switch(o){case"n":d+="\n";break;case"r":d+="\r";break;case"t":d+="\t";break;case"u":case"x":p=s,(l=g(o))?d+=l:(s=p,d+=o);break;case"b":d+="\b";break;case"f":d+="\f";break;case"v":d+="\v";break;default:c.code.isOctalDigit(o.charCodeAt(0))?(i="01234567".indexOf(o),s<n&&c.code.isOctalDigit(r.charCodeAt(s))&&(i=8*i+"01234567".indexOf(m()),"0123".indexOf(o)>=0&&s<n&&c.code.isOctalDigit(r.charCodeAt(s))&&(i=8*i+"01234567".indexOf(m()))),d+=String.fromCharCode(i)):d+=o}else{if(c.code.isLineTerminator(o.charCodeAt(0)))break;d+=o}}return""!==e&&u.throwError("unexpected quote"),a=d,t.STRING}();case 58:return m(),i=t.COLON;case 44:return m(),i=t.COMMA;case 40:return m(),i=t.LPAREN;case 41:return m(),i=t.RPAREN;case 91:return m(),i=t.LBRACK;case 93:return m(),i=t.RBRACK;case 123:return m(),i=t.LBRACE;case 125:return m(),i=t.RBRACE;case 46:if(s+1<n){if(60===(e=r.charCodeAt(s+1)))return m(),m(),i=t.DOT_LT;if(46===e&&s+2<n&&46===r.charCodeAt(s+2))return m(),m(),m(),i=t.REST;if(c.code.isDecimalDigit(e))return i=y()}return i=t.ILLEGAL;case 60:return m(),i=t.LT;case 62:return m(),i=t.GT;case 42:return m(),i=t.STAR;case 124:return m(),i=t.PIPE;case 63:return m(),i=t.QUESTION;case 33:return m(),i=t.BANG;case 61:return m(),i=t.EQUAL;case 45:return i=y();default:return c.code.isDecimalDigit(e)?i=y():(u.assert(d(e)),i=function(){for(a=m();s<n&&d(r.charCodeAt(s));){if(46===r.charCodeAt(s)){if(s+1>=n)return t.ILLEGAL;if(60===r.charCodeAt(s+1))break}a+=m()}return t.NAME}())}}function b(e,t){u.assert(i===e,t||"consumed token not matched"),x()}function v(e,t){i!==e&&u.throwError(t||"unexpected token"),x()}function E(){var r,n=o;return r=function(){var e=a;return i===t.NAME||i===t.STRING?(x(),e):i===t.NUMBER?(b(t.NUMBER),String(e)):void u.throwError("unexpected token")}(),i===t.COLON?(b(t.COLON),h({type:e.FieldType,key:r,value:D()},[n,o])):h({type:e.FieldType,key:r,value:null},[n,o])}function C(){var r,n,c=s-a.length;return r=function(){var r=a,n=s-r.length;return v(t.NAME),i!==t.COLON||"module"!==r&&"external"!==r&&"event"!==r||(b(t.COLON),r+=":"+a,v(t.NAME)),h({type:e.NameExpression,name:r},[n,o])}(),i===t.DOT_LT||i===t.LT?(x(),n=function(){var e=[];for(e.push(w());i===t.COMMA;)b(t.COMMA),e.push(w());return e}(),v(t.GT),h({type:e.TypeApplication,expression:r,applications:n},[c,o])):r}function S(){for(var r,n,a,c=[],l=!1,p=!1,d=s-3;i!==t.RPAREN;)i===t.REST&&(b(t.REST),p=!0),n=o,(r=D()).type===e.NameExpression&&i===t.COLON&&(a=o-r.name.length,b(t.COLON),r=h({type:e.ParameterType,name:r.name,expression:D()},[a,o])),i===t.EQUAL?(b(t.EQUAL),r=h({type:e.OptionalType,expression:r},[n,o]),l=!0):l&&u.throwError("unexpected token"),p&&(r=h({type:e.RestType,expression:r},[d,o])),c.push(r),i!==t.RPAREN&&v(t.COMMA);return c}function k(){var r,n,c,l,p,d=s-a.length;return u.assert(i===t.NAME&&"function"===a,"FunctionType should start with 'function'"),b(t.NAME),v(t.LPAREN),r=!1,c=[],n=null,i!==t.RPAREN&&(i!==t.NAME||"this"!==a&&"new"!==a?c=S():(r="new"===a,b(t.NAME),v(t.COLON),n=C(),i===t.COMMA&&(b(t.COMMA),c=S()))),v(t.RPAREN),l=null,i===t.COLON&&(b(t.COLON,"ResultType should start with :"),l=i===t.NAME&&"void"===a?(b(t.NAME),{type:e.VoidLiteral}):D()),p=h({type:e.FunctionType,params:c,result:l},[d,o]),n&&(p.this=n,r&&(p.new=!0)),p}function A(){var r,n;switch(i){case t.STAR:return b(t.STAR),h({type:e.AllLiteral},[o-1,o]);case t.LPAREN:return function(){var r,n=s-1;if(b(t.LPAREN,"UnionType should start with ("),r=[],i!==t.RPAREN)for(;r.push(D()),i!==t.RPAREN;)v(t.PIPE);return b(t.RPAREN,"UnionType should end with )"),h({type:e.UnionType,elements:r},[n,o])}();case t.LBRACK:return function(){var r,n,a=s-1;for(b(t.LBRACK,"ArrayType should start with ["),r=[];i!==t.RBRACK;){if(i===t.REST){n=s-3,b(t.REST),r.push(h({type:e.RestType,expression:D()},[n,o]));break}r.push(D()),i!==t.RBRACK&&v(t.COMMA)}return v(t.RBRACK),h({type:e.ArrayType,elements:r},[a,o])}();case t.LBRACE:return function(){var r,n,o=s-1;if(b(t.LBRACE,"RecordType should start with {"),r=[],i===t.COMMA)b(t.COMMA);else for(;i!==t.RBRACE;)r.push(E()),i!==t.RBRACE&&v(t.COMMA);return n=s,v(t.RBRACE),h({type:e.RecordType,fields:r},[o,n])}();case t.NAME:if(n=s-a.length,"null"===a)return b(t.NAME),h({type:e.NullLiteral},[n,o]);if("undefined"===a)return b(t.NAME),h({type:e.UndefinedLiteral},[n,o]);if("true"===a||"false"===a)return b(t.NAME),h({type:e.BooleanLiteralType,value:"true"===a},[n,o]);if(r=f.save(),"function"===a)try{return k()}catch(e){r.restore()}return C();case t.STRING:return x(),h({type:e.StringLiteralType,value:a},[o-a.length-2,o]);case t.NUMBER:return x(),h({type:e.NumericLiteralType,value:a},[o-String(a).length,o]);default:u.throwError("unexpected token")}}function D(){var r,n;return i===t.QUESTION?(n=s-1,b(t.QUESTION),h(i===t.COMMA||i===t.EQUAL||i===t.RBRACE||i===t.RPAREN||i===t.PIPE||i===t.EOF||i===t.RBRACK||i===t.GT?{type:e.NullableLiteral}:{type:e.NullableType,expression:A(),prefix:!0},[n,o])):i===t.BANG?(n=s-1,b(t.BANG),h({type:e.NonNullableType,expression:A(),prefix:!0},[n,o])):(n=o,r=A(),i===t.BANG?(b(t.BANG),h({type:e.NonNullableType,expression:r,prefix:!1},[n,o])):i===t.QUESTION?(b(t.QUESTION),h({type:e.NullableType,expression:r,prefix:!1},[n,o])):i===t.LBRACK?(b(t.LBRACK),v(t.RBRACK,"expected an array-style type declaration ("+a+"[])"),h({type:e.TypeApplication,expression:h({type:e.NameExpression,name:"Array"},[n,o]),applications:[r]},[n,o])):r)}function w(){var r,n;if(r=D(),i!==t.PIPE)return r;for(n=[r],b(t.PIPE);n.push(D()),i===t.PIPE;)b(t.PIPE);return h({type:e.UnionType,elements:n},[0,s])}function F(t,r,n){var s,o,i;switch(t.type){case e.NullableLiteral:s="?";break;case e.AllLiteral:s="*";break;case e.NullLiteral:s="null";break;case e.UndefinedLiteral:s="undefined";break;case e.VoidLiteral:s="void";break;case e.UnionType:for(s=n?"":"(",o=0,i=t.elements.length;o<i;++o)s+=F(t.elements[o],r),o+1!==i&&(s+=r?"|":" | ");n||(s+=")");break;case e.ArrayType:for(s="[",o=0,i=t.elements.length;o<i;++o)s+=F(t.elements[o],r),o+1!==i&&(s+=r?",":", ");s+="]";break;case e.RecordType:for(s="{",o=0,i=t.fields.length;o<i;++o)s+=F(t.fields[o],r),o+1!==i&&(s+=r?",":", ");s+="}";break;case e.FieldType:s=t.value?t.key+(r?":":": ")+F(t.value,r):t.key;break;case e.FunctionType:for(s=r?"function(":"function (",t.this&&(t.new?s+=r?"new:":"new: ":s+=r?"this:":"this: ",s+=F(t.this,r),0!==t.params.length&&(s+=r?",":", ")),o=0,i=t.params.length;o<i;++o)s+=F(t.params[o],r),o+1!==i&&(s+=r?",":", ");s+=")",t.result&&(s+=(r?":":": ")+F(t.result,r));break;case e.ParameterType:s=t.name+(r?":":": ")+F(t.expression,r);break;case e.RestType:s="...",t.expression&&(s+=F(t.expression,r));break;case e.NonNullableType:s=t.prefix?"!"+F(t.expression,r):F(t.expression,r)+"!";break;case e.OptionalType:s=F(t.expression,r)+"=";break;case e.NullableType:s=t.prefix?"?"+F(t.expression,r):F(t.expression,r)+"?";break;case e.NameExpression:s=t.name;break;case e.TypeApplication:for(s=F(t.expression,r)+".<",o=0,i=t.applications.length;o<i;++o)s+=F(t.applications[o],r),o+1!==i&&(s+=r?",":", ");s+=">";break;case e.StringLiteralType:s='"'+t.value+'"';break;case e.NumericLiteralType:case e.BooleanLiteralType:s=String(t.value);break;default:u.throwError("Unknown type "+t.type)}return s}c=$p,u=Kw,e={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},t={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21},f.prototype.restore=function(){o=this._previous,s=this._index,i=this._token,a=this._value},f.save=function(){return new f(o,s,i,a)},Hw.parseType=function(e,a){var c;return n=(r=e).length,s=0,o=0,p=a&&a.range,l=a&&a.startIndex||0,x(),c=w(),a&&a.midstream?{expression:c,index:o}:(i!==t.EOF&&u.throwError("not reach to EOF"),c)},Hw.parseParamType=function(a,c){var d;return n=(r=a).length,s=0,o=0,p=c&&c.range,l=c&&c.startIndex||0,x(),d=function(){var r;return i===t.REST?(b(t.REST),h({type:e.RestType,expression:w()},[0,s])):(r=w(),i===t.EQUAL?(b(t.EQUAL),h({type:e.OptionalType,expression:r},[0,s])):r)}(),c&&c.midstream?{expression:d,index:o}:(i!==t.EOF&&u.throwError("not reach to EOF"),d)},Hw.stringify=function(e,t){return null==t&&(t={}),F(e,t.compact,t.topLevel)},Hw.Syntax=e}(),function(e){!function(){var t,r,n,s,o,i;function a(e,t,r){return e.slice(t,r)}function c(e){return"param"===e||"argument"===e||"arg"===e}function u(e){return"return"===e||"returns"===e}function l(e){return"property"===e||"prop"===e}function p(e){return c(e)||l(e)||"alias"===e||"this"===e||"mixes"===e||"requires"===e}function d(e){return l(e)||c(e)}function f(e){return c(e)||u(e)||"define"===e||"enum"===e||"implements"===e||"this"===e||"type"===e||"typedef"===e||l(e)}s=$p,t=Hw,r=Kw,i=Object.prototype.hasOwnProperty,o=function(e,t){return i.call(e,t)};var h="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",m="("+h+"*(?:\\*"+h+"?)?)(.+|[\r\n\u2028\u2029])";function g(e){return e.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(m,"g"),"$2").replace(/\s*$/,"")}!function(e){var n,i,h,y,x,b,v,E,C;function S(){var e=x.charCodeAt(i);return i+=1,!s.code.isLineTerminator(e)||13===e&&10===x.charCodeAt(i)||(h+=1),String.fromCharCode(e)}function k(e,n,o){for(var a,c,u,l,p=!1;i<n;){if(a=x.charCodeAt(i),!s.code.isWhiteSpace(a)){if(123===a){S();break}p=!0;break}S()}if(p)return null;for(c=1,u="";i<n;)if(a=x.charCodeAt(i),s.code.isLineTerminator(a))S();else{if(125===a){if(0===(c-=1)){S();break}}else 123===a&&(c+=1);""===u&&(l=i),u+=S()}return 0!==c?r.throwError("Braces are not balanced"):d(e)?t.parseParamType(u,{startIndex:F(l),range:o}):t.parseType(u,{startIndex:F(l),range:o})}function A(e){var t;if(!s.code.isIdentifierStartES5(x.charCodeAt(i))&&!x[i].match(/[0-9]/))return null;for(t=S();i<e&&s.code.isIdentifierPartES5(x.charCodeAt(i));)t+=S();return t}function D(e){for(;i<e&&(s.code.isWhiteSpace(x.charCodeAt(i))||s.code.isLineTerminator(x.charCodeAt(i)));)S()}function w(e,t,r){var n,o,a="";if(D(e),i>=e)return null;if(91===x.charCodeAt(i)){if(!t)return null;n=!0,a=S()}if(a+=A(e),r)for(58!==x.charCodeAt(i)||"module"!==a&&"external"!==a&&"event"!==a||(a+=S(),a+=A(e)),91===x.charCodeAt(i)&&93===x.charCodeAt(i+1)&&(a+=S(),a+=S());46===x.charCodeAt(i)||47===x.charCodeAt(i)||35===x.charCodeAt(i)||45===x.charCodeAt(i)||126===x.charCodeAt(i);)a+=S(),a+=A(e);if(n){if(D(e),61===x.charCodeAt(i)){var c;a+=S(),D(e);for(var u=1;i<e;){if(c=x.charCodeAt(i),s.code.isWhiteSpace(c)&&(o||(D(e),c=x.charCodeAt(i))),39===c&&(o?"'"===o&&(o=""):o="'"),34===c&&(o?'"'===o&&(o=""):o='"'),91===c)u++;else if(93===c&&0==--u)break;a+=S()}}if(D(e),i>=e||93!==x.charCodeAt(i))return null;a+=S()}return a}function F(e){return x===b?e:function(e,t){for(var r,n=e.replace(/^\/\*\*?/,""),s=0,o=new RegExp(m,"g");r=o.exec(n);)if(s+=r[1].length,r.index+r[0].length>t+s)return t+s+e.length-n.length;return e.replace(/\*\/$/,"").replace(/\s*$/,"").length}(b,e)}function T(e,t){this._options=e,this._title=t.toLowerCase(),this._tag={title:t,description:null},this._options.lineNumbers&&(this._tag.lineNumber=h),this._first=i-t.length-1,this._last=0,this._extra={}}function P(e){var t,n;if(!function(){for(;i<y&&64!==x.charCodeAt(i);)S();return!(i>=y||(r.assert(64===x.charCodeAt(i)),0))}())return null;for(n=(t=new T(e,function(){var e,t="";for(S();i<y&&((e=x.charCodeAt(i))>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57);)t+=S();return t}())).parse();i<t._last;)S();return n}T.prototype.addError=function(e){var t=Array.prototype.slice.call(arguments,1),n=e.replace(/%(\d)/g,(function(e,n){return r.assert(n<t.length,"Message reference must be in range"),t[n]}));return this._tag.errors||(this._tag.errors=[]),C&&r.throwError(n),this._tag.errors.push(n),v},T.prototype.parseType=function(){if(f(this._title))try{if(this._tag.type=k(this._title,this._last,this._options.range),!(this._tag.type||c(this._title)||u(this._title)||this.addError("Missing or invalid tag type")))return!1}catch(e){if(this._tag.type=null,!this.addError(e.message))return!1}else if(function(e){return f(e)||"throws"===e||"const"===e||"constant"===e||"namespace"===e||"member"===e||"var"===e||"module"===e||"constructor"===e||"class"===e||"extends"===e||"augments"===e||"public"===e||"private"===e||"protected"===e}(this._title))try{this._tag.type=k(this._title,this._last,this._options.range)}catch(e){}return!0},T.prototype._parseNamePath=function(e){var t;return!!((t=w(this._last,E&&d(this._title),!0))||e||this.addError("Missing or invalid tag name"))&&(this._tag.name=t,!0)},T.prototype.parseNamePath=function(){return this._parseNamePath(!1)},T.prototype.parseNamePathOptional=function(){return this._parseNamePath(!0)},T.prototype.parseName=function(){var e,t;if(function(e){return p(e)||"const"===e||"constant"===e}(this._title))if(this._tag.name=w(this._last,E&&d(this._title),function(e){return l(e)||c(e)}(this._title)),this._tag.name)"["===(t=this._tag.name).charAt(0)&&"]"===t.charAt(t.length-1)&&((e=t.substring(1,t.length-1).split("=")).length>1&&(this._tag.default=e.slice(1).join("=")),this._tag.name=e[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!p(this._title))return!0;if(c(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},T.prototype.parseDescription=function(){var e=a(x,i,this._last).trim();return e&&(/^-\s+/.test(e)&&(e=e.substring(2)),this._tag.description=e),!0},T.prototype.parseCaption=function(){var e=a(x,i,this._last).trim(),t="<caption>",r="</caption>",n=e.indexOf(t),s=e.indexOf(r);return n>=0&&s>=0?(this._tag.caption=e.substring(n+t.length,s).trim(),this._tag.description=e.substring(s+r.length).trim()):this._tag.description=e,!0},T.prototype.parseKind=function(){var e,t;return t={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},e=a(x,i,this._last).trim(),this._tag.kind=e,!(!o(t,e)&&!this.addError("Invalid kind name '%0'",e))},T.prototype.parseAccess=function(){var e;return e=a(x,i,this._last).trim(),this._tag.access=e,!("private"!==e&&"protected"!==e&&"public"!==e&&!this.addError("Invalid access name '%0'",e))},T.prototype.parseThis=function(){var e=a(x,i,this._last).trim();return e&&"{"===e.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},T.prototype.parseVariation=function(){var e,t;return t=a(x,i,this._last).trim(),e=parseFloat(t,10),this._tag.variation=e,!(isNaN(e)&&!this.addError("Invalid variation '%0'",t))},T.prototype.ensureEnd=function(){var e=a(x,i,this._last).trim();return!(e&&!this.addError("Unknown content '%0'",e))},T.prototype.epilogue=function(){var e;return e=this._tag.description,!(d(this._title)&&!this._tag.type&&e&&"["===e.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!E&&!this.addError("Missing or invalid tag name")))},n={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},T.prototype.parse=function(){var e,t,r;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=function(){var e,t,r=i;for(t=!1;r<y;){if(e=x.charCodeAt(r),!s.code.isLineTerminator(e)||13===e&&10===x.charCodeAt(r+1)){if(t){if(64===e)break;s.code.isWhiteSpace(e)||(t=!1)}}else t=!0;r+=1}return r}(this._title),this._options.range&&(this._tag.range=[this._first,x.slice(0,this._last).replace(/\s*$/,"").length].map(F)),e=0,t=(r=o(n,this._title)?n[this._title]:["parseType","parseName","parseDescription","epilogue"]).length;e<t;++e)if(!this[r[e]]())return null;return this._tag},e.parse=function(e,t){var n,o,a,c,u,l=[];if(void 0===t&&(t={}),x="boolean"==typeof t.unwrap&&t.unwrap?g(e):e,b=e,t.tags)if(Array.isArray(t.tags))for(a={},c=0,u=t.tags.length;c<u;c++)"string"==typeof t.tags[c]?a[t.tags[c]]=!0:r.throwError('Invalid "tags" parameter: '+t.tags);else r.throwError('Invalid "tags" parameter: '+t.tags);for(y=x.length,i=0,h=0,v=t.recoverable,E=t.sloppy,C=t.strict,o=function(e){var t,r,n="";for(r=!0;i<y&&(t=x.charCodeAt(i),!r||64!==t);)s.code.isLineTerminator(t)?r=!0:r&&!s.code.isWhiteSpace(t)&&(r=!1),n+=S();return e?n:n.trim()}(t.preserveWhitespace);n=P(t);)a&&!a.hasOwnProperty(n.title)||l.push(n);return{description:o,tags:l}}}(n={}),e.version=r.VERSION,e.parse=n.parse,e.parseType=t.parseType,e.parseParamType=t.parseParamType,e.unwrapComment=g,e.Syntax=function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}(t.Syntax),e.Error=r.DoctrineError,e.type={Syntax:e.Syntax,parseType:t.parseType,parseParamType:t.parseParamType,stringify:t.stringify}}()}(Gw);const Qw=Gw;var Xw={meta:{type:"suggestion",docs:{description:"enforce valid JSDoc comments",recommended:!1,url:"https://eslint.org/docs/rules/valid-jsdoc"},schema:[{type:"object",properties:{prefer:{type:"object",additionalProperties:{type:"string"}},preferType:{type:"object",additionalProperties:{type:"string"}},requireReturn:{type:"boolean",default:!0},requireParamDescription:{type:"boolean",default:!0},requireReturnDescription:{type:"boolean",default:!0},matchDescription:{type:"string"},requireReturnType:{type:"boolean",default:!0},requireParamType:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unexpectedTag:"Unexpected @{{title}} tag; function has no return statement.",expected:"Expected JSDoc for '{{name}}' but found '{{jsdocName}}'.",use:"Use @{{name}} instead.",useType:"Use '{{expectedTypeName}}' instead of '{{currentTypeName}}'.",syntaxError:"JSDoc syntax error.",missingBrace:"JSDoc type missing brace.",missingParamDesc:"Missing JSDoc parameter description for '{{name}}'.",missingParamType:"Missing JSDoc parameter type for '{{name}}'.",missingReturnType:"Missing JSDoc return type.",missingReturnDesc:"Missing JSDoc return description.",missingReturn:"Missing JSDoc @{{returns}} for function.",missingParam:"Missing JSDoc for parameter '{{name}}'.",duplicateParam:"Duplicate JSDoc parameter '{{name}}'.",unsatisfiedDesc:"JSDoc description does not satisfy the regex pattern."},deprecated:!0,replacedBy:[]},create(e){const t=e.options[0]||{},r=t.prefer||{},n=e.getSourceCode(),s=!1!==t.requireReturn,o=!1!==t.requireParamDescription,i=!1!==t.requireReturnDescription,a=!1!==t.requireReturnType,c=!1!==t.requireParamType,u=t.preferType||{},l=0!==Object.keys(u).length,p=[];function d(e){return"ClassExpression"===e.type||"ClassDeclaration"===e.type}function f(e){p.push({returnPresent:"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type||d(e)||e.async})}function h(e){return null===e.type||"void"===e.type.name||"UndefinedLiteral"===e.type.type}function m(e){let t;return e.name?t=e:e.expression&&(t=e.expression),{currentType:t,expectedTypeName:t&&u[t.name]}}function g(e,t){return{start:n.getLocFromIndex(e.range[0]+2+t.range[0]),end:n.getLocFromIndex(e.range[0]+2+t.range[1])}}function y(t,r){if(!r||!function(e){return"UndefinedLiteral"!==e&&"NullLiteral"!==e&&"NullableLiteral"!==e&&"FunctionType"!==e&&"AllLiteral"!==e}(r.type))return;const n=[];let s=[];switch(r.type){case"TypeApplication":s="UnionType"===r.applications[0].type?r.applications[0].elements:r.applications,n.push(m(r));break;case"RecordType":s=r.fields;break;case"UnionType":case"ArrayType":s=r.elements;break;case"FieldType":r.value&&n.push(m(r.value));break;default:n.push(m(r))}s.forEach(y.bind(null,t)),n.forEach((r=>{r.expectedTypeName&&r.expectedTypeName!==r.currentType.name&&e.report({node:t,messageId:"useType",loc:g(t,r.currentType),data:{currentTypeName:r.currentType.name,expectedTypeName:r.expectedTypeName},fix:e=>e.replaceTextRange(r.currentType.range.map((e=>t.range[0]+2+e)),r.expectedTypeName)})}))}function x(u){const f=n.getJSDocComment(u),m=p.pop(),x=Object.create(null),b=[];let v,E=!1,C=!1,S=!1,k=!1,A=!1;if(f){let n;try{n=Qw.parse(f.value,{strict:!0,unwrap:!0,sloppy:!0,range:!0})}catch(t){return void(/braces/iu.test(t.message)?e.report({node:f,messageId:"missingBrace"}):e.report({node:f,messageId:"syntaxError"}))}n.tags.forEach((t=>{switch(t.title.toLowerCase()){case"param":case"arg":case"argument":b.push(t);break;case"return":case"returns":E=!0,v=t;break;case"constructor":case"class":C=!0;break;case"override":case"inheritdoc":k=!0;break;case"abstract":case"virtual":A=!0;break;case"interface":S=!0}if(Object.prototype.hasOwnProperty.call(r,t.title)&&t.title!==r[t.title]){const n=g(f,t);e.report({node:f,messageId:"use",loc:{start:n.start,end:{line:n.start.line,column:n.start.column+("@"+t.title).length}},data:{name:r[t.title]},fix:e=>e.replaceTextRange([f.range[0]+t.range[0]+3,f.range[0]+t.range[0]+t.title.length+3],r[t.title])})}l&&t.type&&y(f,t.type)})),b.forEach((t=>{c&&!t.type&&e.report({node:f,messageId:"missingParamType",loc:g(f,t),data:{name:t.name}}),!t.description&&o&&e.report({node:f,messageId:"missingParamDesc",loc:g(f,t),data:{name:t.name}}),x[t.name]?e.report({node:f,messageId:"duplicateParam",loc:g(f,t),data:{name:t.name}}):-1===t.name.indexOf(".")&&(x[t.name]=t)})),E&&(s||m.returnPresent||null!==v.type&&h(v)||A?(a&&!v.type&&e.report({node:f,messageId:"missingReturnType"}),h(v)||v.description||!i||e.report({node:f,messageId:"missingReturnDesc"})):e.report({node:f,messageId:"unexpectedTag",loc:g(f,v),data:{title:v.title}})),k||E||C||S||"get"===u.parent.kind||"constructor"===u.parent.kind||"set"===u.parent.kind||d(u)||(s||m.returnPresent&&!u.async)&&e.report({node:f,messageId:"missingReturn",data:{returns:r.returns||"returns"}});const p=Object.keys(x);if(u.params&&u.params.forEach(((t,r)=>{const n="AssignmentPattern"===t.type?t.left:t;if("Identifier"===n.type){const t=n.name;p[r]&&t!==p[r]?e.report({node:f,messageId:"expected",loc:g(f,x[p[r]]),data:{name:t,jsdocName:p[r]}}):x[t]||k||e.report({node:f,messageId:"missingParam",data:{name:t}})}})),t.matchDescription){new RegExp(t.matchDescription,"u").test(n.description)||e.report({node:f,messageId:"unsatisfiedDesc"})}}}return{ArrowFunctionExpression:f,FunctionExpression:f,FunctionDeclaration:f,ClassExpression:f,ClassDeclaration:f,"ArrowFunctionExpression:exit":x,"FunctionExpression:exit":x,"FunctionDeclaration:exit":x,"ClassExpression:exit":x,"ClassDeclaration:exit":x,ReturnStatement:function(e){const t=p[p.length-1];t&&null!==e.argument&&(t.returnPresent=!0)}}}},Yw={meta:{type:"problem",docs:{description:"enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/rules/valid-typeof"},schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals."}},create(e){const t=["symbol","undefined","object","boolean","number","string","function","bigint"],r=["==","===","!=","!=="],n=e.options[0]&&e.options[0].requireStringLiterals;function s(e){return"UnaryExpression"===e.type&&"typeof"===e.operator}return{UnaryExpression(o){if(s(o)){const i=e.getAncestors().pop();if("BinaryExpression"===i.type&&-1!==r.indexOf(i.operator)){const r=i.left===o?i.right:i.left;if("Literal"===r.type||"TemplateLiteral"===r.type&&!r.expressions.length){const n="Literal"===r.type?r.value:r.quasis[0].value.cooked;-1===t.indexOf(n)&&e.report({node:r,messageId:"invalidValue"})}else n&&!s(r)&&e.report({node:r,messageId:"notString"})}}}}}},Zw={meta:{type:"suggestion",docs:{description:"require `var` declarations be placed at the top of their containing scope",recommended:!1,url:"https://eslint.org/docs/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(e){function t(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value}function r(e){return"ImportDeclaration"===e.type||"ImportSpecifier"===e.type||"ImportDefaultSpecifier"===e.type||"ImportNamespaceSpecifier"===e.type}function n(e){return"VariableDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.declaration&&"VariableDeclaration"===e.declaration.type}function s(e,s){const o=s.length;let i=0;if("StaticBlock"!==e.parent.type)for(;i<o&&(t(s[i])||r(s[i]));++i);for(;i<o;++i){if(!n(s[i]))return!1;if(s[i]===e)return!0}return!1}function o(t,r){s(t,r.body)||e.report({node:t,messageId:"top"})}return{"VariableDeclaration[kind='var']"(t){"ExportNamedDeclaration"===t.parent.type?o(t.parent,t.parent.parent):"Program"===t.parent.type?o(t,t.parent):function(t){const{parent:r}=t;"BlockStatement"===r.type&&/Function/u.test(r.parent.type)&&s(t,r.body)||"StaticBlock"===r.type&&s(t,r.body)||e.report({node:t,messageId:"top"})}(t)}}}};const eF=Vp.exports,tF=yo;var rF={meta:{type:"layout",docs:{description:"require parentheses around immediate `function` invocations",recommended:!1,url:"https://eslint.org/docs/rules/wrap-iife"},schema:[{enum:["outside","inside","any"]},{type:"object",properties:{functionPrototypeMethods:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{wrapInvocation:"Wrap an immediate function invocation in parentheses.",wrapExpression:"Wrap only the function expression in parens.",moveInvocation:"Move the invocation into the parens that contain the function."}},create(e){const t=e.options[0]||"outside",r=e.options[1]&&e.options[1].functionPrototypeMethods,n=e.getSourceCode();function s(e){return eF.isParenthesised(n,e)}return{CallExpression(o){const i=function(e){const t=eF.skipChainExpression(e.callee);return"FunctionExpression"===t.type?t:!r||"MemberExpression"!==t.type||"FunctionExpression"!==t.object.type||"call"!==eF.getStaticPropertyName(t)&&"apply"!==eF.getStaticPropertyName(t)?null:t.object}(o);if(!i)return;const a=s(o),c=s(i);a||c?"inside"!==t||c?"outside"!==t||a||e.report({node:o,messageId:"moveInvocation",fix(e){const t=n.getTokenAfter(i);return e.replaceTextRange([t.range[0],o.range[1]],n.getText().slice(t.range[1],o.range[1])+")")}}):e.report({node:o,messageId:"wrapExpression",fix(e){if(function(e){return tF.isParenthesized(1,e,n)}(o)&&!function(e){const t="ChainExpression"===e.parent.type?e.parent:e;return"NewExpression"===t.parent.type&&t.parent.callee===t}(o)){const t=n.getTokenAfter(o);return e.replaceTextRange([i.range[1],t.range[1]],")"+n.getText().slice(i.range[1],t.range[0]))}return e.replaceText(i,`(${n.getText(i)})`)}}):e.report({node:o,messageId:"wrapInvocation",fix(e){const r="inside"===t?i:o;return e.replaceText(r,`(${n.getText(r)})`)}})}}}},nF={meta:{type:"layout",docs:{description:"require parenthesis around regex literals",recommended:!1,url:"https://eslint.org/docs/rules/wrap-regex"},schema:[],fixable:"code",messages:{requireParens:"Wrap the regexp literal in parens to disambiguate the slash."}},create(e){const t=e.getSourceCode();return{Literal(r){if("RegularExpression"===t.getFirstToken(r).type){const n=t.getTokenBefore(r),s=t.getTokenAfter(r),o=e.getAncestors(),i=o[o.length-1];"MemberExpression"!==i.type||i.object!==r||n&&"("===n.value&&s&&")"===s.value||e.report({node:r,messageId:"requireParens",fix:e=>e.replaceText(r,`(${t.getText(r)})`)})}}}}},sF={meta:{type:"layout",docs:{description:"require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const t=e.getSourceCode(),r=(n=e.options[0])&&"string"!=typeof n?n:{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[n||"after"];var n;function s(n,s,o){if(t.isSpaceBetweenTokens(s,o)!==r[n]){const t="*"===s.value,i=r[n],a=t?s:o;let c="";c=i?"before"===n?"missingBefore":"missingAfter":"before"===n?"unexpectedBefore":"unexpectedAfter",e.report({node:a,messageId:c,fix:e=>i?t?e.insertTextAfter(a," "):e.insertTextBefore(a," "):e.removeRange([s.range[1],o.range[0]])})}}return{YieldExpression:function(e){if(!e.delegate)return;const r=t.getFirstTokens(e,3),n=r[0],o=r[1],i=r[2];s("before",n,o),s("after",o,i)}}}};const oF=Vp.exports;function iF(e){return["<","<="].indexOf(e)>=0}function aF(e){return"UnaryExpression"===e.type&&"-"===e.operator&&e.prefix&&oF.isNumericLiteral(e.argument)}function cF(e){return"TemplateLiteral"===e.type&&0===e.expressions.length}function uF(e){return aF(e)||cF(e)}function lF(e){return"Literal"===e.type?e:aF(e)?{type:"Literal",value:-e.argument.value,raw:"-"+e.argument.value}:cF(e)?{type:"Literal",value:e.quasis[0].value.cooked,raw:e.quasis[0].value.raw}:null}var pF={meta:{type:"suggestion",docs:{description:'require or disallow "Yoda" conditions',recommended:!1,url:"https://eslint.org/docs/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean",default:!1},onlyEquality:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(e){const t="always"===e.options[0],r=e.options[1]&&e.options[1].exceptRange,n=e.options[1]&&e.options[1].onlyEquality,s=e.getSourceCode();const o={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};return{BinaryExpression(i){const a=t?i.left:i.right,c=t?i.right:i.left;var u;"Literal"!==c.type&&!uF(c)||"Literal"===a.type||uF(a)||(u=i.operator,!/^(==|===)$/u.test(u)&&n)||!function(e){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(e)}(i.operator)||r&&function(e){const t=e.left,r=e.right;return"LogicalExpression"===e.type&&"BinaryExpression"===t.type&&"BinaryExpression"===r.type&&iF(t.operator)&&iF(r.operator)&&(function(){if("&&"===e.operator&&oF.isSameReference(t.right,r.left)){const e=lF(t.left),n=lF(r.right);if(null===e&&null===n)return!1;if(null===n||null===e)return!0;if(e.value<=n.value)return!0}return!1}()||function(){if("||"===e.operator&&oF.isSameReference(t.left,r.right)){const e=lF(t.right),n=lF(r.left);if(null===e&&null===n)return!1;if(null===n||null===e)return!0;if(e.value<=n.value)return!0}return!1}())&&oF.isParenthesised(s,e)}(e.getAncestors().pop())||e.report({node:i,messageId:"expected",data:{operator:i.operator,expectedSide:t?"left":"right"},fix:e=>e.replaceText(i,function(e){const t=s.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator)),r=s.getTokenBefore(t),n=s.getTokenAfter(t),i=s.getText(),a=i.slice(e.range[0],r.range[1]),c=i.slice(r.range[1],t.range[0]),u=i.slice(t.range[1],n.range[0]),l=i.slice(n.range[0],e.range[1]),p=s.getTokenBefore(e),d=s.getTokenAfter(e);let f="",h="";return p&&p.range[1]===e.range[0]&&!oF.canTokensBeAdjacent(p,n)&&(f=" "),d&&e.range[1]===d.range[0]&&!oF.canTokensBeAdjacent(r,d)&&(h=" "),f+l+c+o[t.value]+u+a+h}(i))})}}}};const{LazyLoadingRuleMap:dF}=Mp;var fF=new dF(Object.entries({"accessor-pairs":()=>Kp,"array-bracket-newline":()=>Qp,"array-bracket-spacing":()=>Yp,"array-callback-return":()=>od,"array-element-newline":()=>ad,"arrow-body-style":()=>ud,"arrow-parens":()=>pd,"arrow-spacing":()=>fd,"block-scoped-var":()=>hd,"block-spacing":()=>gd,"brace-style":()=>xd,"callback-return":()=>bd,camelcase:()=>vd,"capitalized-comments":()=>Fd,"class-methods-use-this":()=>Pd,"comma-dangle":()=>Bd,"comma-spacing":()=>Ld,"comma-style":()=>Nd,complexity:()=>$d,"computed-property-spacing":()=>qd,"consistent-return":()=>Hd,"consistent-this":()=>Kd,"constructor-super":()=>Xd,curly:()=>Zd,"default-case":()=>tf,"default-case-last":()=>rf,"default-param-last":()=>nf,"dot-location":()=>of,"dot-notation":()=>df,"eol-last":()=>ff,eqeqeq:()=>mf,"for-direction":()=>gf,"func-call-spacing":()=>xf,"func-name-matching":()=>Sf,"func-names":()=>Af,"func-style":()=>Df,"function-call-argument-newline":()=>wf,"function-paren-newline":()=>Tf,"generator-star-spacing":()=>If,"getter-return":()=>Lf,"global-require":()=>Nf,"grouped-accessor-pairs":()=>Vf,"guard-for-in":()=>$f,"handle-callback-err":()=>Uf,"id-blacklist":()=>qf,"id-denylist":()=>Wf,"id-length":()=>zf,"id-match":()=>Gf,"implicit-arrow-linebreak":()=>Jf,indent:()=>yh,"indent-legacy":()=>bh,"init-declarations":()=>Ch,"jsx-quotes":()=>Ah,"key-spacing":()=>Ph,"keyword-spacing":()=>Uh,"line-comment-position":()=>Wh,"linebreak-style":()=>Gh,"lines-around-comment":()=>Kh,"lines-around-directive":()=>Qh,"lines-between-class-members":()=>Yh,"max-classes-per-file":()=>Zh,"max-depth":()=>em,"max-len":()=>nm,"max-lines":()=>om,"max-lines-per-function":()=>cm,"max-nested-callbacks":()=>um,"max-params":()=>dm,"max-statements":()=>mm,"max-statements-per-line":()=>ym,"multiline-comment-style":()=>bm,"multiline-ternary":()=>Em,"new-cap":()=>Dm,"new-parens":()=>Fm,"newline-after-var":()=>Pm,"newline-before-return":()=>Im,"newline-per-chained-call":()=>Bm,"no-alert":()=>Mm,"no-array-constructor":()=>Vm,"no-async-promise-executor":()=>$m,"no-await-in-loop":()=>Wm,"no-bitwise":()=>Gm,"no-buffer-constructor":()=>Hm,"no-caller":()=>Km,"no-case-declarations":()=>Jm,"no-catch-shadow":()=>Xm,"no-class-assign":()=>Zm,"no-compare-neg-zero":()=>eg,"no-cond-assign":()=>sg,"no-confusing-arrow":()=>ig,"no-console":()=>cg,"no-const-assign":()=>lg,"no-constant-condition":()=>pg,"no-constructor-return":()=>dg,"no-continue":()=>fg,"no-control-regex":()=>cy,"no-debugger":()=>uy,"no-delete-var":()=>ly,"no-div-regex":()=>py,"no-dupe-args":()=>dy,"no-dupe-class-members":()=>hy,"no-dupe-else-if":()=>vy,"no-dupe-keys":()=>Ay,"no-duplicate-case":()=>wy,"no-duplicate-imports":()=>Ny,"no-else-return":()=>Uy,"no-empty":()=>Wy,"no-empty-character-class":()=>Gy,"no-empty-function":()=>Ky,"no-empty-pattern":()=>Jy,"no-eq-null":()=>Qy,"no-eval":()=>ex,"no-ex-assign":()=>rx,"no-extend-native":()=>ox,"no-extra-bind":()=>cx,"no-extra-boolean-cast":()=>dx,"no-extra-label":()=>hx,"no-extra-parens":()=>yx,"no-extra-semi":()=>vx,"no-fallthrough":()=>Sx,"no-floating-decimal":()=>Ax,"no-func-assign":()=>wx,"no-global-assign":()=>Fx,"no-implicit-coercion":()=>Lx,"no-implicit-globals":()=>jx,"no-implied-eval":()=>Mx,"no-import-assign":()=>Gx,"no-inline-comments":()=>Kx,"no-inner-declarations":()=>Zx,"no-invalid-regexp":()=>nb,"no-invalid-this":()=>ob,"no-irregular-whitespace":()=>lb,"no-iterator":()=>db,"no-label-var":()=>hb,"no-labels":()=>gb,"no-lone-blocks":()=>yb,"no-lonely-if":()=>xb,"no-loop-func":()=>Eb,"no-loss-of-precision":()=>Cb,"no-magic-numbers":()=>Ab,"no-misleading-character-class":()=>Mb,"no-mixed-operators":()=>Qb,"no-mixed-requires":()=>Xb,"no-mixed-spaces-and-tabs":()=>Yb,"no-multi-assign":()=>Zb,"no-multi-spaces":()=>tv,"no-multi-str":()=>nv,"no-multiple-empty-lines":()=>sv,"no-native-reassign":()=>ov,"no-negated-condition":()=>iv,"no-negated-in-lhs":()=>av,"no-nested-ternary":()=>cv,"no-new":()=>uv,"no-new-func":()=>dv,"no-new-object":()=>hv,"no-new-require":()=>mv,"no-new-symbol":()=>gv,"no-new-wrappers":()=>yv,"no-nonoctal-decimal-escape":()=>vv,"no-obj-calls":()=>wv,"no-octal":()=>Fv,"no-octal-escape":()=>Tv,"no-param-reassign":()=>Iv,"no-path-concat":()=>_v,"no-plusplus":()=>Ov,"no-process-env":()=>Lv,"no-process-exit":()=>jv,"no-promise-executor-return":()=>Vv,"no-proto":()=>Uv,"no-prototype-builtins":()=>Wv,"no-redeclare":()=>Gv,"no-regex-spaces":()=>Yv,"no-restricted-exports":()=>Zv,"no-restricted-globals":()=>eE,"no-restricted-imports":()=>yE,"no-restricted-modules":()=>vE,"no-restricted-properties":()=>CE,"no-restricted-syntax":()=>SE,"no-return-assign":()=>DE,"no-return-await":()=>FE,"no-script-url":()=>PE,"no-self-assign":()=>OE,"no-self-compare":()=>LE,"no-sequences":()=>RE,"no-setter-return":()=>qE,"no-shadow":()=>zE,"no-shadow-restricted-names":()=>HE,"no-spaced-func":()=>KE,"no-sparse-arrays":()=>JE,"no-sync":()=>QE,"no-tabs":()=>ZE,"no-template-curly-in-string":()=>eC,"no-ternary":()=>tC,"no-this-before-super":()=>nC,"no-throw-literal":()=>oC,"no-trailing-spaces":()=>aC,"no-undef":()=>cC,"no-undef-init":()=>lC,"no-undefined":()=>pC,"no-underscore-dangle":()=>dC,"no-unexpected-multiline":()=>hC,"no-unmodified-loop-condition":()=>FC,"no-unneeded-ternary":()=>BC,"no-unreachable":()=>NC,"no-unreachable-loop":()=>MC,"no-unsafe-finally":()=>qC,"no-unsafe-negation":()=>zC,"no-unsafe-optional-chaining":()=>QC,"no-unused-expressions":()=>ZC,"no-unused-labels":()=>eS,"no-unused-private-class-members":()=>tS,"no-unused-vars":()=>nS,"no-use-before-define":()=>lS,"no-useless-backreference":()=>ES,"no-useless-call":()=>SS,"no-useless-catch":()=>kS,"no-useless-computed-key":()=>DS,"no-useless-concat":()=>PS,"no-useless-constructor":()=>LS,"no-useless-escape":()=>$S,"no-useless-rename":()=>qS,"no-useless-return":()=>KS,"no-var":()=>nk,"no-void":()=>sk,"no-warning-comments":()=>ak,"no-whitespace-before-property":()=>uk,"no-with":()=>lk,"nonblock-statement-body-position":()=>dk,"object-curly-newline":()=>xk,"object-curly-spacing":()=>vk,"object-property-newline":()=>Ek,"object-shorthand":()=>Tk,"one-var":()=>Ik,"one-var-declaration-per-line":()=>_k,"operator-assignment":()=>jk,"operator-linebreak":()=>Rk,"padded-blocks":()=>Vk,"padding-line-between-statements":()=>sA,"prefer-arrow-callback":()=>iA,"prefer-const":()=>yA,"prefer-destructuring":()=>vA,"prefer-exponentiation-operator":()=>DA,"prefer-named-capture-group":()=>BA,"prefer-numeric-literals":()=>jA,"prefer-object-spread":()=>ZA,"prefer-promise-reject-errors":()=>tD,"prefer-reflect":()=>rD,"prefer-regex-literals":()=>lD,"prefer-rest-params":()=>dD,"prefer-spread":()=>hD,"prefer-template":()=>CD,"quote-props":()=>DD,quotes:()=>PD,radix:()=>LD,"require-atomic-updates":()=>RD,"require-await":()=>VD,"require-jsdoc":()=>$D,"require-unicode-regexp":()=>GD,"require-yield":()=>HD,"rest-spread-spacing":()=>KD,semi:()=>XD,"semi-spacing":()=>ZD,"semi-style":()=>rw,"sort-imports":()=>nw,"sort-keys":()=>uw,"sort-vars":()=>lw,"space-before-blocks":()=>fw,"space-before-function-paren":()=>mw,"space-in-parens":()=>yw,"space-infix-ops":()=>bw,"space-unary-ops":()=>Ew,"spaced-comment":()=>Tw,strict:()=>Ow,"switch-colon-spacing":()=>jw,"symbol-description":()=>Rw,"template-curly-spacing":()=>Vw,"template-tag-spacing":()=>$w,"unicode-bom":()=>Uw,"use-isnan":()=>zw,"valid-jsdoc":()=>Xw,"valid-typeof":()=>Yw,"vars-on-top":()=>Zw,"wrap-iife":()=>rF,"wrap-regex":()=>nF,"yield-star-spacing":()=>sF,yoda:()=>pF}));const hF=fF;class mF{constructor(){this._rules=Object.create(null)}define(e,t){var r;this._rules[e]="function"==typeof(r=t)?Object.assign({create:r},r):r}get(e){return"string"==typeof this._rules[e]&&this.define(e,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(this._rules[e])),this._rules[e]?this._rules[e]:hF.has(e)?hF.get(e):null}*[Symbol.iterator](){yield*hF;for(const e of Object.keys(this._rules))yield[e,this.get(e)]}}var gF=mF;const yF=Ys.exports("eslint:source-code-fixer");function xF(e,t){return e.fix.range[0]-t.fix.range[0]||e.fix.range[1]-t.fix.range[1]}function bF(e,t){return e.line-t.line||e.column-t.column}function vF(){Object.freeze(this)}vF.applyFixes=function(e,t,r){if(yF("Applying fixes"),!1===r)return yF("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:t,output:e};const n=[],s=[],o=e.startsWith("\ufeff")?"\ufeff":"",i=o?e.slice(1):e;let a=Number.NEGATIVE_INFINITY,c=o;function u(e){const t=e.fix,r=t.range[0],s=t.range[1];return a>=r||r>s?(n.push(e),!1):((r<0&&s>=0||0===r&&t.text.startsWith("\ufeff"))&&(c=""),c+=i.slice(Math.max(0,a),Math.max(0,r)),c+=t.text,a=s,!0)}if(t.forEach((e=>{Object.prototype.hasOwnProperty.call(e,"fix")?s.push(e):n.push(e)})),s.length){yF("Found fixes to apply");let e=!1;for(const t of s.sort(xF))"function"!=typeof r||r(t)?(u(t),e=!0):n.push(t);return c+=i.slice(Math.max(0,a)),{fixed:e,messages:n.sort(bF),output:c}}return yF("No fixes to apply"),{fixed:!1,messages:t,output:o+i}};var EF=vF;function CF(e,t,r){return new Array(t-e.length+1).join(r||" ")+e}const SF=!!process.env.TIMING,kF=["Rule","Time (ms)","Relative"],AF=[function(e,t,r){return e+new Array(t-e.length+1).join(r||" ")},CF,CF];function DF(){if("string"!=typeof process.env.TIMING)return 10;if("all"===process.env.TIMING.toLowerCase())return Number.POSITIVE_INFINITY;const e=Number.parseInt(process.env.TIMING,10);return e>10?e:10}var wF=function(){const e=Object.create(null);return SF&&process.on("exit",(()=>{!function(e){let t=0;const r=Object.keys(e).map((r=>{const n=e[r];return t+=n,[r,n]})).sort(((e,t)=>t[1]-e[1])).slice(0,DF());r.forEach((e=>{e.push((100*e[1]/t).toFixed(1)+"%"),e[1]=e[1].toFixed(3)})),r.unshift(kF);const n=[];r.forEach((e=>{const t=e.length;for(let r=0;r<t;r++){const t=e[r].length;(!n[r]||t>n[r])&&(n[r]=t)}}));const s=r.map((e=>e.map(((e,t)=>AF[t](e,n[t]))).join(" | ")));s.splice(1,0,n.map(((e,t)=>{const r=0!==t&&t!==n.length-1?2:1;return AF[t](":",e+r,"-")})).join("|")),console.log(s.join("\n"))}(e)})),{time:function(t,r){return void 0===e[t]&&(e[t]=0),function(...n){let s=process.hrtime();r(...n),s=process.hrtime(s),e[t]+=1e3*s[0]+s[1]/1e6}},enabled:SF,getListSize:DF}}(),FF={rules:{"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-arrow-condition":["no-confusing-arrow","no-constant-condition"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-empty-label":["no-labels"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-after-keywords":["keyword-spacing"],"space-before-function-parentheses":["space-before-function-paren"],"space-before-keywords":["keyword-spacing"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-return-throw-case":["keyword-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]}};function TF(e){let t,r;return e.includes("/")?(t=e.slice(0,e.lastIndexOf("/")),r=e.slice(t.length+1)):(t="@",r=e),{pluginName:t,ruleName:r}}var PF={parseRuleId:TF,getRuleFromConfig:function(e,t){const{pluginName:r,ruleName:n}=TF(e),s=t.plugins&&t.plugins[r];let o=s&&s.rules&&s.rules[n];return o&&"function"==typeof o&&(o={create:o}),o}},IF={},_F={},BF=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},OF=LF;function LF(e,t,r){e instanceof RegExp&&(e=jF(e,r)),t instanceof RegExp&&(t=jF(t,r));var n=NF(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function jF(e,t){var r=t.match(e);return r?r[0]:null}function NF(e,t,r){var n,s,o,i,a,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(n=[],o=r.length;l>=0&&!a;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?a=[n.pop(),u]:((s=n.pop())<o&&(o=s,i=u),u=r.indexOf(t,l+1)),l=c<u&&c>=0?c:u;n.length&&(a=[o,i])}return a}LF.range=NF;var RF=function(e,t){for(var r=[],n=0;n<e.length;n++){var s=t(e[n],n);BF(s)?r.push.apply(r,s):r.push(s)}return r},MF=OF,VF=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return ZF(function(e){return e.split("\\\\").join($F).split("\\{").join(UF).split("\\}").join(qF).split("\\,").join(WF).split("\\.").join(zF)}(e),!0).map(HF)},$F="\0SLASH"+Math.random()+"\0",UF="\0OPEN"+Math.random()+"\0",qF="\0CLOSE"+Math.random()+"\0",WF="\0COMMA"+Math.random()+"\0",zF="\0PERIOD"+Math.random()+"\0";function GF(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function HF(e){return e.split($F).join("\\").split(UF).join("{").split(qF).join("}").split(WF).join(",").split(zF).join(".")}function KF(e){if(!e)return[""];var t=[],r=MF("{","}",e);if(!r)return e.split(",");var n=r.pre,s=r.body,o=r.post,i=n.split(",");i[i.length-1]+="{"+s+"}";var a=KF(o);return o.length&&(i[i.length-1]+=a.shift(),i.push.apply(i,a)),t.push.apply(t,i),t}function JF(e){return"{"+e+"}"}function QF(e){return/^-?0\d/.test(e)}function XF(e,t){return e<=t}function YF(e,t){return e>=t}function ZF(e,t){var r=[],n=MF("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var s,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),i=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),a=o||i,c=n.body.indexOf(",")>=0;if(!a&&!c)return n.post.match(/,.*\}/)?ZF(e=n.pre+"{"+n.body+qF+n.post):[e];if(a)s=n.body.split(/\.\./);else if(1===(s=KF(n.body)).length&&1===(s=ZF(s[0],!1).map(JF)).length)return(p=n.post.length?ZF(n.post,!1):[""]).map((function(e){return n.pre+s[0]+e}));var u,l=n.pre,p=n.post.length?ZF(n.post,!1):[""];if(a){var d=GF(s[0]),f=GF(s[1]),h=Math.max(s[0].length,s[1].length),m=3==s.length?Math.abs(GF(s[2])):1,g=XF;f<d&&(m*=-1,g=YF);var y=s.some(QF);u=[];for(var x=d;g(x,f);x+=m){var b;if(i)"\\"===(b=String.fromCharCode(x))&&(b="");else if(b=String(x),y){var v=h-b.length;if(v>0){var E=new Array(v+1).join("0");b=x<0?"-"+E+b.slice(1):E+b}}u.push(b)}}else u=RF(s,(function(e){return ZF(e,!1)}));for(var C=0;C<u.length;C++)for(var S=0;S<p.length;S++){var k=l+u[C]+p[S];(!t||a||k)&&r.push(k)}return r}var eT=lT;lT.Minimatch=pT;var tT={sep:"/"};try{tT=require("path")}catch(e){}var rT=lT.GLOBSTAR=pT.GLOBSTAR={},nT=VF,sT={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},oT="[^/]",iT="[^/]*?",aT=function(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var cT=/\/+/;function uT(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function lT(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new pT(t,r).match(e))}function pT(e,t){if(!(this instanceof pT))return new pT(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==tT.sep&&(e=e.split(tT.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function dT(e,t){if(t||(t=this instanceof pT?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:nT(e)}lT.filter=function(e,t){return t=t||{},function(r,n,s){return lT(r,e,t)}},lT.defaults=function(e){if(!e||!Object.keys(e).length)return lT;var t=lT,r=function(r,n,s){return t.minimatch(r,n,uT(e,s))};return r.Minimatch=function(r,n){return new t.Minimatch(r,uT(e,n))},r},pT.defaults=function(e){return e&&Object.keys(e).length?lT.defaults(e).Minimatch:pT},pT.prototype.debug=function(){},pT.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(cT)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},pT.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var s=0,o=e.length;s<o&&"!"===e.charAt(s);s++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},lT.braceExpand=function(e,t){return dT(e,t)},pT.prototype.braceExpand=dT,pT.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return rT;if(""===e)return"";var n,s="",o=!!r.nocase,i=!1,a=[],c=[],u=!1,l=-1,p=-1,d="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",f=this;function h(){if(n){switch(n){case"*":s+=iT,o=!0;break;case"?":s+=oT,o=!0;break;default:s+="\\"+n}f.debug("clearStateChar %j %j",n,s),n=!1}}for(var m,g=0,y=e.length;g<y&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,s,m),i&&aT[m])s+="\\"+m,i=!1;else switch(m){case"/":return!1;case"\\":h(),i=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,s,m),u){this.debug(" in class"),"!"===m&&g===p+1&&(m="^"),s+=m;continue}f.debug("call clearStateChar %j",n),h(),n=m,r.noext&&h();continue;case"(":if(u){s+="(";continue}if(!n){s+="\\(";continue}a.push({type:n,start:g-1,reStart:s.length,open:sT[n].open,close:sT[n].close}),s+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,s),n=!1;continue;case")":if(u||!a.length){s+="\\)";continue}h(),o=!0;var x=a.pop();s+=x.close,"!"===x.type&&c.push(x),x.reEnd=s.length;continue;case"|":if(u||!a.length||i){s+="\\|",i=!1;continue}h(),s+="|";continue;case"[":if(h(),u){s+="\\"+m;continue}u=!0,p=g,l=s.length,s+=m;continue;case"]":if(g===p+1||!u){s+="\\"+m,i=!1;continue}if(u){var b=e.substring(p+1,g);try{RegExp("["+b+"]")}catch(e){var v=this.parse(b,fT);s=s.substr(0,l)+"\\["+v[0]+"\\]",o=o||v[1],u=!1;continue}}o=!0,u=!1,s+=m;continue;default:h(),i?i=!1:!aT[m]||"^"===m&&u||(s+="\\"),s+=m}u&&(b=e.substr(p+1),v=this.parse(b,fT),s=s.substr(0,l)+"\\["+v[0],o=o||v[1]);for(x=a.pop();x;x=a.pop()){var E=s.slice(x.reStart+x.open.length);this.debug("setting tail",s,x),E=E.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",E,E,x,s);var C="*"===x.type?iT:"?"===x.type?oT:"\\"+x.type;o=!0,s=s.slice(0,x.reStart)+C+"\\("+E}h(),i&&(s+="\\\\");var S=!1;switch(s.charAt(0)){case".":case"[":case"(":S=!0}for(var k=c.length-1;k>-1;k--){var A=c[k],D=s.slice(0,A.reStart),w=s.slice(A.reStart,A.reEnd-8),F=s.slice(A.reEnd-8,A.reEnd),T=s.slice(A.reEnd);F+=T;var P=D.split("(").length-1,I=T;for(g=0;g<P;g++)I=I.replace(/\)[+*?]?/,"");var _="";""===(T=I)&&t!==fT&&(_="$"),s=D+w+T+_+F}""!==s&&o&&(s="(?=.)"+s);S&&(s=d+s);if(t===fT)return[s,o];if(!o)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var B=r.nocase?"i":"";try{var O=new RegExp("^"+s+"$",B)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=s,O};var fT={};lT.makeRe=function(e,t){return new pT(e,t||{}).makeRe()},pT.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?iT:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",s=e.map((function(e){return e.map((function(e){return e===rT?r:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=!1}return this.regexp},lT.match=function(e,t,r){var n=new pT(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},pT.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==tT.sep&&(e=e.split(tT.sep).join("/"));e=e.split(cT),this.debug(this.pattern,"split",e);var n,s,o=this.set;for(this.debug(this.pattern,"set",o),s=e.length-1;s>=0&&!(n=e[s]);s--);for(s=0;s<o.length;s++){var i=o[s],a=e;if(r.matchBase&&1===i.length&&(a=[n]),this.matchOne(a,i,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},pT.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var s=0,o=0,i=e.length,a=t.length;s<i&&o<a;s++,o++){this.debug("matchOne loop");var c,u=t[o],l=e[s];if(this.debug(t,u,l),!1===u)return!1;if(u===rT){this.debug("GLOBSTAR",[t,u,l]);var p=s,d=o+1;if(d===a){for(this.debug("** at the end");s<i;s++)if("."===e[s]||".."===e[s]||!n.dot&&"."===e[s].charAt(0))return!1;return!0}for(;p<i;){var f=e[p];if(this.debug("\nglobstar while",e,p,t,d,f),this.matchOne(e.slice(p),t.slice(d),r))return this.debug("globstar found match!",p,i,f),!0;if("."===f||".."===f||!n.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,p,t,d);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!r||(this.debug("\n>>> no match, partial?",e,p,t,d),p!==i))}if("string"==typeof u?(c=n.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(s===i&&o===a)return!0;if(s===i)return r;if(o===a)return s===i-1&&""===e[s];throw new Error("wtf?")};var hT={},mT={},gT={};gT.MergeStrategy=class{static overwrite(e,t){return t}static replace(e,t){return void 0!==t?t:e}static assign(e,t){return Object.assign({},e,t)}};var yT={};yT.ValidationStrategy=class{static array(e){if(!Array.isArray(e))throw new TypeError("Expected an array.")}static boolean(e){if("boolean"!=typeof e)throw new TypeError("Expected a Boolean.")}static number(e){if("number"!=typeof e)throw new TypeError("Expected a number.")}static object(e){if(!e||"object"!=typeof e)throw new TypeError("Expected an object.")}static"object?"(e){if("object"!=typeof e)throw new TypeError("Expected an object or null.")}static string(e){if("string"!=typeof e)throw new TypeError("Expected a string.")}static"string!"(e){if("string"!=typeof e||0===e.length)throw new TypeError("Expected a non-empty string.")}};const{MergeStrategy:xT}=gT,{ValidationStrategy:bT}=yT,vT=Symbol("strategies"),ET=Symbol("requiredKeys");function CT(e,t){let r=!1;if(t.schema){if("object"!=typeof t.schema)throw new TypeError("Schema must be an object.");r=!0}if("string"==typeof t.merge){if(!(t.merge in xT))throw new TypeError(`Definition for key "${e}" missing valid merge strategy.`)}else if(!r&&"function"!=typeof t.merge)throw new TypeError(`Definition for key "${e}" must have a merge property.`);if("string"==typeof t.validate){if(!(t.validate in bT))throw new TypeError(`Definition for key "${e}" missing valid validation strategy.`)}else if(!r&&"function"!=typeof t.validate)throw new TypeError(`Definition for key "${e}" must have a validate() method.`)}class ST{constructor(e){if(!e)throw new Error("Schema definitions missing.");this[vT]=new Map,this[ET]=new Map;for(const t of Object.keys(e)){if(CT(t,e[t]),"object"==typeof e[t].schema){const r=new ST(e[t].schema);e[t]={...e[t],merge:(e={},t={})=>r.merge(e,t),validate(e){bT.object(e),r.validate(e)}}}"string"==typeof e[t].merge&&(e[t]={...e[t],merge:xT[e[t].merge]}),"string"==typeof e[t].validate&&(e[t]={...e[t],validate:bT[e[t].validate]}),this[vT].set(t,e[t]),e[t].required&&this[ET].set(t,e[t])}}hasKey(e){return this[vT].has(e)}merge(...e){if(e.length<2)throw new Error("merge() requires at least two arguments.");if(e.some((e=>null==e||"object"!=typeof e)))throw new Error("All arguments must be objects.");return e.reduce(((e,t)=>{this.validate(t);for(const[r,n]of this[vT])try{if(r in e||r in t){const s=n.merge.call(this,e[r],t[r]);void 0!==s&&(e[r]=s)}}catch(e){throw e.message=`Key "${r}": `+e.message,e}return e}),{})}validate(e){for(const t of Object.keys(e)){if(!this.hasKey(t))throw new Error(`Unexpected key "${t}" found.`);const r=this[vT].get(t);if(Array.isArray(r.requires)&&!r.requires.every((t=>t in e)))throw new Error(`Key "${t}" requires keys "${r.requires.join('", "')}".`);try{r.validate.call(r,e[t])}catch(e){throw e.message=`Key "${t}": `+e.message,e}}for(const[t]of this[ET])if(!(t in e))throw new Error(`Missing required key "${t}".`)}}function kT(e){return e&&"object"==typeof e&&"default"in e?e.default:e}mT.ObjectSchema=ST,hT.ObjectSchema=mT.ObjectSchema,hT.MergeStrategy=gT.MergeStrategy,hT.ValidationStrategy=yT.ValidationStrategy,Object.defineProperty(_F,"__esModule",{value:!0});var AT=kT(S),DT=kT(eT),wT=kT(Ys.exports),FT=hT;function TT(e){if(!Array.isArray(e))throw new TypeError("Expected value to be an array.")}function PT(e,t){if(TT(e),e.some((e=>"string"!=typeof e&&"function"!=typeof e)))throw new TypeError("Expected array to only contain strings.")}const IT=Object.freeze({name:{required:!1,merge(){},validate(e){if("string"!=typeof e)throw new TypeError("Property must be a string.")}},files:{required:!1,merge(){},validate(e){TT(e),e.forEach((e=>{if(Array.isArray(e))PT(e);else if("string"!=typeof e&&"function"!=typeof e)throw new TypeError("Items must be a string, a function, or an array of strings and functions.")}))}},ignores:{required:!1,merge(){},validate:PT}}),_T=wT("@hwc/config-array"),BT={matchBase:!0},OT=new Set(["array","function"]);function LT(e,t,r){return"function"==typeof e?e(t):DT(r,e,BT)}function jT(e,t,r){if(!r.files)return!0;const n=AT.relative(t,e);if(!Array.isArray(r.files)||0===r.files.length)throw new TypeError("The files key must be a non-empty array.");const s=t=>{if("string"==typeof t)return DT(n,t,BT);if("function"==typeof t)return t(e);throw new TypeError(`Unexpected matcher type ${t}.`)},o=t=>LT(t,e,n);let i=r.files.some((e=>Array.isArray(e)?e.every(s):s(e)));return i&&r.ignores&&(i=!r.ignores.some(o)),i}function NT(e){if(!e.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}const RT={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},MT=new WeakMap;class VT extends Array{constructor(e,{basePath:t="",normalized:r=!1,schema:n,extraConfigTypes:s=[]}={}){super(),this[RT.isNormalized]=r,this[RT.schema]=new FT.ObjectSchema({...n,...IT}),this.basePath=t,function(e){if(e.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(const t of e)if(!OT.has(t))throw new TypeError(`Unexpected config type "${t}" found. Expected one of: "object", "array", "function".`)}(s),this.extraConfigTypes=Object.freeze([...s]),this[RT.configCache]=new Map,MT.set(this,{}),Array.isArray(e)?this.push(...e):this.push(e)}static get[Symbol.species](){return Array}get files(){NT(this);const e=MT.get(this);if(e.files)return e.files;const t=[];for(const e of this)e.files&&e.files.forEach((e=>{t.push(e)}));return e.files=t,MT.set(this,e),t}get ignores(){NT(this);const e=MT.get(this);if(e.ignores)return e.ignores;const t=[];for(const e of this)e.ignores&&!e.files&&t.push(...e.ignores);return e.ignores=t,MT.set(this,e),t}isNormalized(){return this[RT.isNormalized]}async normalize(e={}){if(!this.isNormalized()){const t=await async function(e,t,r){const n=r.includes("function"),s=r.includes("array"),o=await async function*e(r){for(let o of r){if("function"==typeof o){if(!n)throw new TypeError("Unexpected function.");o=o(t),o.then&&(o=await o)}if(Array.isArray(o)){if(!s)throw new TypeError("Unexpected array.");yield*e(o)}else{if("function"==typeof o)throw new TypeError("A config function can only return an object or array.");yield o}}}(e),i=[];for await(const e of o)i.push(e);return i}(this,e,this.extraConfigTypes);this.length=0,this.push(...t.map(this[RT.preprocessConfig])),this[RT.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(e={}){if(!this.isNormalized()){const t=function(e,t,r){const n=r.includes("function"),s=r.includes("array");return[...function*e(r){for(let o of r){if("function"==typeof o){if(!n)throw new TypeError("Unexpected function.");if(o=o(t),o.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(o)){if(!s)throw new TypeError("Unexpected array.");yield*e(o)}else{if("function"==typeof o)throw new TypeError("A config function can only return an object or array.");yield o}}}(e)]}(this,e,this.extraConfigTypes);this.length=0,this.push(...t.map(this[RT.preprocessConfig])),this[RT.isNormalized]=!0,Object.freeze(this)}return this}[RT.finalizeConfig](e){return e}[RT.preprocessConfig](e){return e}getConfig(e){NT(this);let t=this[RT.configCache].get(e);if(t)return t;const r=AT.relative(this.basePath,e);for(const n of this.ignores)if(LT(n,e,r))return this[RT.configCache].set(e,t),t;const n=[];for(const t of this)jT(e,this.basePath,t)?(_T("Matching config found for "+e),n.push(t)):_T("No matching config found for "+e);return 0===n.length?(this[RT.configCache].set(e,t),t):(t=n.reduce(((e,t)=>this[RT.schema].merge(e,t)),{},this),t=this[RT.finalizeConfig](t),this[RT.configCache].set(e,t),t)}isIgnored(e){return void 0===this.getConfig(e)}}_F.ConfigArray=VT,_F.ConfigArraySymbol=RT;var $T={};const UT=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]),qT=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function WT(e){return"object"==typeof e&&null!==e}function zT(e){return void 0===e}function GT(e={},t={}){if(Array.isArray(t))return t;const r={...e,...t};for(const n of Object.keys(t)){if("__proto__"===n)continue;const s=e[n],o=t[n];WT(s)?r[n]=GT(s,o):zT(s)&&(WT(o)?r[n]=GT(Array.isArray(o)?[]:{},o):zT(o)||(r[n]=o))}return r}function HT(e){const t=Array.isArray(e)?e.slice(0):[e];return t[0]=UT.get(t[0]),t}function KT(e){if("string"!=typeof e&&"number"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected a string, number, or array.")}function JT(e){if(void 0===("string"==typeof e?UT.get(e.toLowerCase()):UT.get(e)))throw new TypeError('Expected severity of "off", 0, "warn", 1, "error", or 2.')}function QT(e){if(!/[@a-z0-9-_$]+(?:\/(?:[a-z0-9-_$]+))+$/iu.test(e))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${e}".`)}function XT(e){if(!WT(e))throw new TypeError("Expected an object.")}const YT={merge:"replace",validate:"boolean"},ZT={merge:(e={},t={})=>GT(e,t),validate:"object"},eP={merge:"assign",validate(e){XT(e);for(const t of Object.keys(e))if("__proto__"!==t){if(t!==t.trim())throw new TypeError(`Global "${t}" has leading or trailing whitespace.`);if(!qT.has(e[t]))throw new TypeError(`Key "${t}": Expected "readonly", "writable", or "off".`)}}},tP={merge:"replace",validate(e){if(function(e){if((!e||"object"!=typeof e)&&"string"!=typeof e)throw new TypeError("Expected an object or string.")}(e),"object"==typeof e&&"function"!=typeof e.parse&&"function"!=typeof e.parseForESLint)throw new TypeError("Expected object to have a parse() or parseForESLint() method.");"string"==typeof e&&QT(e)}},rP={merge(e={},t={}){const r=new Set([...Object.keys(e),...Object.keys(t)]),n={};for(const s of r)if("__proto__"!==s){if(s in e&&s in t&&e[s]!==t[s])throw new TypeError(`Cannot redefine plugin "${s}".`);n[s]=t[s]||e[s]}return n},validate(e){if(null===e||"object"!=typeof e)throw new TypeError("Expected an object.");for(const t of Object.keys(e))if("__proto__"!==t&&(null===e[t]||"object"!=typeof e[t]))throw new TypeError(`Key "${t}": Expected an object.`)}},nP={merge:"replace",validate(e){if("string"==typeof e)QT(e);else{if(!e||"object"!=typeof e)throw new TypeError("Expected an object or a string.");if("function"!=typeof e.preprocess||"function"!=typeof e.postprocess)throw new TypeError("Object must have a preprocess() and a postprocess() method.")}}},sP={merge(e={},t={}){const r={...e,...t};for(const n of Object.keys(r)){if("__proto__"===n){delete r.__proto__;continue}if(r[n]=HT(r[n]),!(n in e)||!(n in t))continue;const s=HT(e[n]),o=HT(t[n]);1!==o.length||(r[n]=[o[0],...s.slice(1)])}return r},validate(e){let t;XT(e);try{for(const r of Object.keys(e)){if("__proto__"===r)continue;t=r;const n=e[r];KT(n),Array.isArray(n)?JT(n[0]):JT(n)}}catch(e){throw e.message=`Key "${t}": ${e.message}`,e}}},oP={merge:"replace",validate(e){if("number"!=typeof e&&"latest"!==e)throw new TypeError('Expected a number or "latest".')}},iP={merge:"replace",validate(e){if("string"!=typeof e||!/^(?:script|module|commonjs)$/u.test(e))throw new TypeError('Expected "script", "module", or "commonjs".')}};$T.flatConfigSchema={settings:ZT,linterOptions:{schema:{noInlineConfig:YT,reportUnusedDisableDirectives:YT}},languageOptions:{schema:{ecmaVersion:oP,sourceType:iP,globals:eP,parser:tP,parserOptions:ZT}},processor:nP,plugins:rP,rules:sP};var aP={};const cP=ss,uP={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};const lP=((e={})=>{const t=new cP({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...e});return t.addMetaSchema(uP),t._opts.defaultMeta=uP.id,t})(),{parseRuleId:pP,getRuleFromConfig:dP}=PF,fP=FF;function hP({pluginName:e,ruleName:t},r){const n=`Key "rules": Key "${"@"===e?t:`${e}/${t}`}"`;let s=`${n}: Could not find plugin "${e}".`;if(r.plugins&&r.plugins[e]){const o=fP.rules[t];if("@"===e&&o)s=`${n}: Rule "${t}" was removed and replaced by "${o}".`;else{s=`${n}: Could not find "${t}" in plugin "${e}".`;for(const[e,n]of Object.entries(r.plugins))if(n.rules&&n.rules[t]){s+=` Did you mean "${e}/${t}"?`;break}}}throw new TypeError(s)}function mP(e){if(!e)return null;const t=e.schema||e.meta&&e.meta.schema;return Array.isArray(t)?t.length?{type:"array",items:t,minItems:0,maxItems:t.length}:{type:"array",minItems:0,maxItems:0}:t||null}aP.RuleValidator=class{constructor(){this.validators=new WeakMap}validate(e){if(e.rules)for(const[t,r]of Object.entries(e.rules)){if("__proto__"===t)continue;if(0===r[0])continue;const n=dP(t,e);if(n||hP(pP(t),e),!this.validators.has(n)){const e=mP(n);e&&this.validators.set(n,lP.compile(e))}const s=this.validators.get(n);if(s&&(s(r.slice(1)),s.errors))throw new Error(`Key "rules": Key "${t}": ${s.errors.map((e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`)).join("")}`)}}};var gP={};const yP=fF;gP.defaultConfig=[{plugins:{"@":{parsers:{espree:dt},rules:new Proxy({},{get:(e,t)=>yP.get(t),has:(e,t)=>yP.has(t)})}},ignores:["**/node_modules/**",".git/**"],languageOptions:{ecmaVersion:"latest",sourceType:"module",parser:"@/espree",parserOptions:{}}},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs"}}];const xP=fF,bP={};for(const[e,t]of xP)t.meta.deprecated||(bP[e]="error");var vP={rules:bP};const{ConfigArray:EP,ConfigArraySymbol:CP}=_F,{flatConfigSchema:SP}=$T,{RuleValidator:kP}=aP,{defaultConfig:AP}=gP,DP={rules:{"constructor-super":"error","for-direction":"error","getter-return":"error","no-async-promise-executor":"error","no-case-declarations":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":"error","no-const-assign":"error","no-constant-condition":"error","no-control-regex":"error","no-debugger":"error","no-delete-var":"error","no-dupe-args":"error","no-dupe-class-members":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-empty-pattern":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-extra-semi":"error","no-fallthrough":"error","no-func-assign":"error","no-global-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"error","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-mixed-spaces-and-tabs":"error","no-new-symbol":"error","no-nonoctal-decimal-escape":"error","no-obj-calls":"error","no-octal":"error","no-prototype-builtins":"error","no-redeclare":"error","no-regex-spaces":"error","no-self-assign":"error","no-setter-return":"error","no-shadow-restricted-names":"error","no-sparse-arrays":"error","no-this-before-super":"error","no-undef":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":"error","no-unused-labels":"error","no-unused-vars":"error","no-useless-backreference":"error","no-useless-catch":"error","no-useless-escape":"error","no-with":"error","require-yield":"error","use-isnan":"error","valid-typeof":"error"}},wP=vP,FP=new kP;function TP(e){const t=e.split("/");return{objectName:t.pop(),pluginName:t.join("/")}}class PP extends EP{constructor(e,{basePath:t,baseConfig:r=AP}={}){super(e,{basePath:t,schema:SP}),this.unshift(...r)}[CP.preprocessConfig](e){return"eslint:recommended"===e?DP:"eslint:all"===e?wP:e}[CP.finalizeConfig](e){const{plugins:t,languageOptions:r,processor:n}=e;if(r&&r.parser&&"string"==typeof r.parser){const{pluginName:e,objectName:n}=TP(r.parser);if(!(t&&t[e]&&t[e].parsers&&t[e].parsers[n]))throw new TypeError(`Key "parser": Could not find "${n}" in plugin "${e}".`);r.parser=t[e].parsers[n]}if(n&&"string"==typeof n){const{pluginName:r,objectName:s}=TP(n);if(!(t&&t[r]&&t[r].processors&&t[r].processors[s]))throw new TypeError(`Key "processor": Could not find "${s}" in plugin "${r}".`);e.processor=t[r].processors[s]}return FP.validate(e),e}}IF.FlatConfigArray=PP;const IP={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},_P={...IP,JSON:!1},BP={..._P,ArrayBuffer:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,WeakMap:!1,WeakSet:!1},OP={...BP},LP={...OP,Atomics:!1,SharedArrayBuffer:!1},jP={...LP},NP={...jP},RP={...NP,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},MP={...RP,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var VP={commonjs:{exports:!0,global:!1,module:!1,require:!1},es3:IP,es5:_P,es2015:BP,es2016:OP,es2017:LP,es2018:jP,es2019:NP,es2020:RP,es2021:MP,es2022:{...MP}};const $P=S,UP=D,qP=at,WP=dt,zP=Kt.exports,GP=Jt,HP=Xt,{Legacy:{ConfigOps:KP,ConfigValidator:JP,environments:QP}}=Yt,XP=go,{SourceCode:YP}=Da,ZP=mc,eI=({directives:e,disableFixes:t,problems:r,reportUnusedDisableDirectives:n="off"})=>{const s=e.filter((e=>"disable"===e.type||"enable"===e.type)).map((e=>Object.assign({},e,{unprocessedDirective:e}))).sort(xc),o=e.flatMap((e=>{switch(e.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:e.line,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:"enable",line:e.line+1,column:0,ruleId:e.ruleId,unprocessedDirective:e}];case"disable-next-line":return[{type:"disable",line:e.line+1,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:"enable",line:e.line+2,column:0,ruleId:e.ruleId,unprocessedDirective:e}];default:throw new TypeError(`Unrecognized directive type '${e.type}'`)}})).sort(xc),i=Ec({problems:r,directives:s,disableFixes:t,reportUnusedDisableDirectives:n}),a=Ec({problems:i.problems,directives:o,disableFixes:t,reportUnusedDisableDirectives:n});return"off"!==n?a.problems.concat(i.unusedDisableDirectives).concat(a.unusedDisableDirectives).sort(xc):a.problems},tI=class{parseStringConfig(e,t){Yl("Parsing String config");const r={};return e.replace(/\s*([:,])\s*/gu,"$1").split(/\s|,+/u).forEach((e=>{if(!e)return;const[n,s=null]=e.split(":");r[n]={value:s,comment:t}})),r}parseJsonConfig(e,t){Yl("Parsing JSON config");let r={};try{if(r=Ql.parse("Object",e)||{},Xl.isEverySeverityValid(r))return{success:!0,config:r}}catch{Yl("Levn parsing failed; falling back to manual parsing.")}r={};const n=e.replace(/([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{r=JSON.parse(`{${n}}`)}catch(e){return Yl("Manual parsing failed."),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:`Failed to parse JSON from '${n}': ${e.message}`,line:t.start.line,column:t.start.column+1}}}return{success:!0,config:r}}parseListConfig(e){Yl("Parsing list config");const t={};return e.replace(/\s*,\s*/gu,",").split(/,+/u).forEach((e=>{const r=e.trim();r&&(t[r]=!0)})),t}},rI=Dp,nI=function(e){return(...t)=>{const r=function(...e){return 1===e.length?Object.assign({},e[0]):"string"==typeof e[1]?{node:e[0],message:e[1],data:e[2],fix:e[3]}:{node:e[0],loc:e[1],message:e[2],data:e[3],fix:e[4]}}(...t),n=e.messageIds;let s;if(function(e){e.node?Tp("object"==typeof e.node,"Node must be an object"):Tp(e.loc,"Node must be provided when reporting error if location is not provided")}(r),r.messageId){if(!n)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");const e=r.messageId;if(r.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!n||!Object.prototype.hasOwnProperty.call(n,e))throw new TypeError(`context.report() called with a messageId of '${e}' which is not present in the 'messages' config: ${JSON.stringify(n,null,2)}`);s=n[e]}else{if(!r.message)throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.");s=r.message}return function(e,t){e&&Array.isArray(e)&&e.forEach((e=>{if(e.messageId){const{messageId:r}=e;if(!t)throw new TypeError(`context.report() called with a suggest option with a messageId '${r}', but no messages were present in the rule metadata.`);if(!t[r])throw new TypeError(`context.report() called with a suggest option with a messageId '${r}' which is not present in the 'messages' config: ${JSON.stringify(t,null,2)}`);if(e.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!e.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if("function"!=typeof e.fix)throw new TypeError("context.report() called with a suggest option without a fix function. See: "+e)}))}(r.suggest,n),function(e){const t={ruleId:e.ruleId,severity:e.severity,message:e.message,line:e.loc.start.line,column:e.loc.start.column+1,nodeType:e.node&&e.node.type||null};return e.messageId&&(t.messageId=e.messageId),e.loc.end&&(t.endLine=e.loc.end.line,t.endColumn=e.loc.end.column+1),e.fix&&(t.fix=e.fix),e.suggestions&&e.suggestions.length>0&&(t.suggestions=e.suggestions),t}({ruleId:e.ruleId,severity:e.severity,node:r.node,message:Ip(s,r.data),messageId:r.messageId,loc:_p(r),fix:e.disableFixes?null:Lp(r,e.sourceCode),suggestions:e.disableFixes?[]:jp(r,e.sourceCode,n)})}},sI=gF,oI=()=>{const e=Object.create(null);return Object.freeze({on(t,r){t in e?e[t].push(r):e[t]=[r]},emit(t,...r){t in e&&e[t].forEach((e=>e(...r)))},eventNames:()=>Object.keys(e)})},iI=EF,aI=wF,cI=FF,{getRuleFromConfig:uI}=PF,{FlatConfigArray:lI}=IF,pI=Ys.exports("eslint:linter"),dI=new tI,fI={start:{line:1,column:0},end:{line:1,column:1}},hI=Symbol.for("eslint.RuleTester.parser"),mI=VP;function gI(e){return!(e!==WP&&e[hI]!==WP)}function yI(e){switch(e){case 3:return mI.es3;case 5:return mI.es5;default:return e<2015?mI["es"+(e+2009)]:mI["es"+e]}}function xI(e,t,{exportedVariables:r,enabledGlobals:n}){for(const r of new Set([...Object.keys(t),...Object.keys(n)])){const s=void 0===t[r]?void 0:KP.normalizeConfigGlobal(t[r]),o=n[r]&&n[r].value||s,i=n[r]&&n[r].comments;if("off"===o)continue;let a=e.set.get(r);a||(a=new UP.Variable(r,e),e.variables.push(a),e.set.set(r,a)),a.eslintImplicitGlobalSetting=s,a.eslintExplicitGlobal=void 0!==i,a.eslintExplicitGlobalComments=i,a.writeable="writable"===o}Object.keys(r).forEach((t=>{const r=e.set.get(t);r&&(r.eslintUsed=!0)})),e.through=e.through.filter((t=>{const r=t.identifier.name,n=e.set.get(r);return!n||(t.resolved=n,n.references.push(t),!1)}))}function bI(e){return Object.prototype.hasOwnProperty.call(cI.rules,e)?`Rule '${e}' was removed and replaced by: ${cI.rules[e].join(", ")}`:`Definition for rule '${e}' was not found.`}function vI(e){const{ruleId:t=null,loc:r=fI,message:n=bI(e.ruleId),severity:s=2}=e;return{ruleId:t,message:n,line:r.start.line,column:r.start.column+1,endLine:r.end.line,endColumn:r.end.column+1,severity:s,nodeType:null}}function EI(e){return e.split(/\s-{2,}\s/u)[0].trim()}function CI(e,t,r,n){const s={},o=Object.create(null),i={},a=[],c=[],u=new JP({builtInRules:sI});return t.comments.filter((e=>"Shebang"!==e.type)).forEach((e=>{const t=EI(e.value),l=/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u.exec(t);if(!l)return;const p=l[1],d=/^eslint-disable-(next-)?line$/u.test(p);if("Line"===e.type&&!d)return;if(n){const t="Block"===e.type?`/*${p}*/`:"//"+p;return void a.push(vI({ruleId:null,message:`'${t}' has no effect because you have 'noInlineConfig' setting in ${n}.`,loc:e.loc,severity:1}))}if(d&&e.loc.start.line!==e.loc.end.line){const t=p+" comment should not span multiple lines.";return void a.push(vI({ruleId:null,message:t,loc:e.loc}))}const f=t.slice(l.index+p.length);switch(p){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const t=p.slice("eslint-".length),n={commentToken:e,type:t,value:f,ruleMapper:r},{directives:s,directiveProblems:o}=function(e){const{commentToken:t,type:r,value:n,ruleMapper:s}=e,o=Object.keys(dI.parseListConfig(n)),i=o.length?o:[null],a={directives:[],directiveProblems:[]},c={commentToken:t,ruleIds:o};for(const e of i)null===e||s(e)?a.directives.push({parentComment:c,type:r,line:t.loc.start.line,column:t.loc.start.column+1,ruleId:e}):a.directiveProblems.push(vI({ruleId:e,loc:t.loc}));return a}(n);c.push(...s),a.push(...o);break}case"exported":Object.assign(i,dI.parseStringConfig(f,e));break;case"globals":case"global":for(const[t,{value:r}]of Object.entries(dI.parseStringConfig(f,e))){let n;try{n=KP.normalizeConfigGlobal(r)}catch(t){a.push(vI({ruleId:null,loc:e.loc,message:t.message}));continue}o[t]?(o[t].comments.push(e),o[t].value=n):o[t]={comments:[e],value:n}}break;case"eslint":{const t=dI.parseJsonConfig(f,e.loc);t.success?Object.keys(t.config).forEach((n=>{const o=r(n),i=t.config[n];if(o){try{u.validateRuleOptions(o,n,i)}catch(t){return void a.push(vI({ruleId:n,message:t.message,loc:e.loc}))}s[n]=i}else a.push(vI({ruleId:n,loc:e.loc}))})):a.push(t.error);break}}})),{configuredRules:s,enabledGlobals:o,exportedVariables:i,problems:a,disableDirectives:c}}function SI(e){switch(e){case 3:return 3;case 5:case void 0:return 5;default:if("number"==typeof e)return e>=2015?e:e+2009}return WP.latestEcmaVersion+2009}const kI=/\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gus;function AI(e){const t=e.split($P.sep),r=t.lastIndexOf("<text>");return-1===r?e:t.slice(r).join($P.sep)}function DI(e,t){const r=t.linterOptions||t,n=!0===r.noInlineConfig,s=!1===e.allowInlineConfig,o=t.configNameOfNoInlineConfig?` (${t.configNameOfNoInlineConfig})`:"";let i=e.reportUnusedDisableDirectives;return"boolean"==typeof i&&(i=i?"error":"off"),"string"!=typeof i&&(i=r.reportUnusedDisableDirectives?"warn":"off"),{filename:AI(e.filename||"<input>"),allowInlineConfig:!s,warnInlineConfig:n&&!s?"your config"+o:null,reportUnusedDisableDirectives:i,disableFixes:Boolean(e.disableFixes)}}function wI(e,t,r){const n=r.filter((e=>e.parserOptions)).reduce(((e,t)=>zP(e,t.parserOptions)),{}),s=zP(n,t||{});return"module"===s.sourceType&&(s.ecmaFeatures=Object.assign({},s.ecmaFeatures,{globalReturn:!1})),s.ecmaVersion=function(e,t){return gI(e)&&"latest"===t?WP.latestEcmaVersion:t>=2015?t-2009:t}(e,s.ecmaVersion),s}function FI(e,t,r){const n=t.parserOptions.ecmaFeatures||{},s=t.ecmaVersion||5;return UP.analyze(e,{ignoreEval:!0,nodejsScope:n.globalReturn,impliedStrict:n.impliedStrict,ecmaVersion:"number"==typeof s?s:6,sourceType:t.sourceType||"script",childVisitorKeys:r||qP.KEYS,fallback:XP.getKeys})}function TI(e,t,r){const n=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(e).replace(HP.shebangPattern,((e,t)=>"//"+t)),{ecmaVersion:s,sourceType:o,parser:i}=t,a=Object.assign({ecmaVersion:s,sourceType:o},t.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:r});try{const r="function"==typeof i.parseForESLint?i.parseForESLint(n,a):{ast:i.parse(n,a)},s=r.ast,o=r.services||{},c=r.visitorKeys||qP.KEYS,u=r.scopeManager||FI(s,t,c);return{success:!0,sourceCode:new YP({text:e,ast:s,parserServices:o,scopeManager:u,visitorKeys:c})}}catch(e){const t="Parsing error: "+e.message.replace(/^line \d+:/iu,"").trim();return pI("%s\n%s",t,e.stack),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:t,line:e.lineNumber,column:e.column}}}}function PI(e,t){const r="Program"!==t.type;for(let n=t;n;n=n.parent){const t=e.acquire(n,r);if(t)return"function-expression-name"===t.type?t.childScopes[0]:t}return e.scopes[0]}const II={getSource:"getText",getSourceLines:"getLines",getAllComments:"getAllComments",getNodeByRangeIndex:"getNodeByRangeIndex",getComments:"getComments",getCommentsBefore:"getCommentsBefore",getCommentsAfter:"getCommentsAfter",getCommentsInside:"getCommentsInside",getJSDocComment:"getJSDocComment",getFirstToken:"getFirstToken",getFirstTokens:"getFirstTokens",getLastToken:"getLastToken",getLastTokens:"getLastTokens",getTokenAfter:"getTokenAfter",getTokenBefore:"getTokenBefore",getTokenByRangeStart:"getTokenByRangeStart",getTokens:"getTokens",getTokensAfter:"getTokensAfter",getTokensBefore:"getTokensBefore",getTokensBetween:"getTokensBetween"},_I=Object.freeze(Object.keys(II).reduce(((e,t)=>Object.assign(e,{[t](...e){return this.getSourceCode()[II[t]](...e)}})),{}));function BI(e,t,r,n,s,o,i,a,c,u){const l=oI(),p=[];let d=e.ast;XP.traverse(e.ast,{enter(e,t){e.parent=t,p.push({isEntering:!0,node:e})},leave(e){p.push({isEntering:!1,node:e})},visitorKeys:e.visitorKeys});const f=Object.freeze(Object.assign(Object.create(_I),{getAncestors:()=>function(e){const t=[];for(let r=e.parent;r;r=r.parent)t.push(r);return t.reverse()}(d),getDeclaredVariables:e.scopeManager.getDeclaredVariables.bind(e.scopeManager),getCwd:()=>c,getFilename:()=>i,getPhysicalFilename:()=>u||i,getScope:()=>PI(e.scopeManager,d),getSourceCode:()=>e,markVariableAsUsed:t=>function(e,t,r,n){const s=r.parserOptions,o=r.sourceType,i=s.ecmaFeatures&&s.ecmaFeatures.globalReturn||"commonjs"===o||"module"===o,a=PI(e,t);for(let e="global"===a.type&&i?a.childScopes[0]:a;e;e=e.upper){const t=e.variables.find((e=>e.name===n));if(t)return t.eslintUsed=!0,!0}return!1}(e.scopeManager,d,s,t),parserOptions:{...s.parserOptions},parserPath:n,languageOptions:s,parserServices:e.parserServices,settings:o})),h=[];Object.keys(t).forEach((n=>{const s=KP.getRuleSeverity(t[n]);if(0===s)return;const o=r(n);if(!o)return void h.push(vI({ruleId:n}));const i=o.meta&&o.meta.messages;let c=null;const u=Object.freeze(Object.assign(Object.create(f),{id:n,options:(p=t[n],Array.isArray(p)?p.slice(1):[]),report(...t){null===c&&(c=nI({ruleId:n,severity:s,sourceCode:e,messageIds:i,disableFixes:a}));const r=c(...t);if(r.fix&&(!o.meta||!o.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(r.suggestions&&(!o.meta||!0!==o.meta.hasSuggestions)){if(o.meta&&o.meta.docs&&void 0!==o.meta.docs.suggestion)throw new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint.");throw new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.")}h.push(r)}}));var p;const d=function(e,t){try{return e.create(t)}catch(e){throw e.message=`Error while loading rule '${t.id}': ${e.message}`,e}}(o,u);Object.keys(d).forEach((e=>{const t=aI.enabled?aI.time(n,d[e]):d[e];l.on(e,function(e){return function(...t){try{return e(...t)}catch(e){throw e.ruleId=n,e}}}(t))}))}));const m="Program"===p[0].node.type?new ZP(new rI(l,{visitorKeys:e.visitorKeys,fallback:XP.getKeys})):new rI(l,{visitorKeys:e.visitorKeys,fallback:XP.getKeys});return p.forEach((e=>{d=e.node;try{e.isEntering?m.enterNode(d):m.leaveNode(d)}catch(e){throw e.currentNode=d,e}})),h}function OI(e){if("object"==typeof e){const{hasBOM:t,text:r}=e;return(t?"\ufeff":"")+r}return String(e)}function LI(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginRules.get(t)||e.ruleMap.get(t)}function jI(e){return e||("object"==typeof process?process.cwd():void 0)}const NI=new WeakMap;function RI(e){const{configType:t}=NI.get(e);if("flat"===t)throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}var MI={Linter:class{constructor({cwd:e,configType:t}={}){NI.set(this,{cwd:jI(e),lastConfigArray:null,lastSourceCode:null,configType:t,parserMap:new Map([["espree",WP]]),ruleMap:new sI}),this.version=GP.version}static get version(){return GP.version}_verifyWithoutProcessors(e,t,r){const n=NI.get(this),s=t||{},o=DI(r,s);let i;"string"==typeof e?(n.lastSourceCode=null,i=e):(n.lastSourceCode=e,i=e.text);let a="espree",c=WP;if("object"==typeof s.parser&&null!==s.parser)a=s.parser.filePath,c=s.parser.definition;else if("string"==typeof s.parser){if(!n.parserMap.has(s.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${s.parser}' was not found.`,line:0,column:0}];a=s.parser,c=n.parserMap.get(s.parser)}const u=o.allowInlineConfig&&!o.warnInlineConfig?function(e){let t,r;for(kI.lastIndex=0;null!==(t=kI.exec(e));)t[0].endsWith("*/")&&(r=Object.assign(r||{},dI.parseListConfig(EI(t[1]))));return r}(i):{},l=Object.assign({builtin:!0},s.env,u),p=Object.keys(l).filter((e=>l[e])).map((e=>function(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginEnvironments.get(t)||QP.get(t)||null}(n,e))).filter((e=>e)),d=wI(c,s.parserOptions||{},p),f=(h=s.globals||{},m=p,Object.assign({},...m.filter((e=>e.globals)).map((e=>e.globals)),h));var h,m;const g=s.settings||{},y=function({globals:e,parser:t,parserOptions:r}){const{ecmaVersion:n,sourceType:s}=r;return{globals:e,ecmaVersion:SI(n),sourceType:s,parser:t,parserOptions:r}}({globals:s.globals,parser:c,parserOptions:d});if(n.lastSourceCode)n.lastSourceCode.scopeManager||(n.lastSourceCode=new YP({text:n.lastSourceCode.text,ast:n.lastSourceCode.ast,parserServices:n.lastSourceCode.parserServices,visitorKeys:n.lastSourceCode.visitorKeys,scopeManager:FI(n.lastSourceCode.ast,y)}));else{const e=TI(i,y,o.filename);if(!e.success)return[e.error];n.lastSourceCode=e.sourceCode}const x=n.lastSourceCode,b=o.allowInlineConfig?CI(o.filename,x.ast,(e=>LI(n,e)),o.warnInlineConfig):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};xI(x.scopeManager.scopes[0],f,{exportedVariables:b.exportedVariables,enabledGlobals:b.enabledGlobals});const v=Object.assign({},s.rules,b.configuredRules);let E;try{E=BI(x,v,(e=>LI(n,e)),a,y,g,o.filename,o.disableFixes,n.cwd,r.physicalFilename)}catch(e){if(e.message+="\nOccurred while linting "+o.filename,pI("An error occurred while traversing"),pI("Filename:",o.filename),e.currentNode){const{line:t}=e.currentNode.loc.start;pI("Line:",t),e.message+=":"+t}throw pI("Parser Options:",d),pI("Parser Path:",a),pI("Settings:",g),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return eI({directives:b.disableDirectives,disableFixes:o.disableFixes,problems:E.concat(b.problems).sort(((e,t)=>e.line-t.line||e.column-t.column)),reportUnusedDisableDirectives:o.reportUnusedDisableDirectives})}verify(e,t,r){pI("Verify");const{configType:n}=NI.get(this),s="string"==typeof r?{filename:r}:r||{};if(t){if("flat"===n){let r=t;return Array.isArray(t)&&"function"==typeof t.getConfig||(r=new lI(t),r.normalizeSync()),this._verifyWithFlatConfigArray(e,r,s,!0)}if("function"==typeof t.extractConfig)return this._verifyWithConfigArray(e,t,s)}return s.preprocess||s.postprocess?this._verifyWithProcessor(e,t,s):this._verifyWithoutProcessors(e,t,s)}_verifyWithFlatConfigArrayAndProcessor(e,t,r,n){const s=r.filename||"<input>",o=AI(s),i=r.physicalFilename||o,a=OI(e),c=r.preprocess||(e=>[e]),u=r.postprocess||(e=>e.flat()),l=r.filterCodeBlock||(e=>e.endsWith(".js")),p=$P.extname(s);return u(c(a,o).map(((e,o)=>{if(pI("A code block was found: %o",e.filename||"(unnamed)"),"string"==typeof e)return this._verifyWithFlatConfigArrayAndWithoutProcessors(e,t,r);const c=e.text,u=$P.join(s,`${o}_${e.filename}`);return l(u,c)?!n||a===c&&$P.extname(u)===p?this._verifyWithFlatConfigArrayAndWithoutProcessors(c,t,{...r,filename:u,physicalFilename:i}):(pI("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(c,n,{...r,filename:u,physicalFilename:i})):(pI("This code block was skipped."),[])})),o)}_verifyWithFlatConfigArrayAndWithoutProcessors(e,t,r){const n=NI.get(this),s=t||{},o=DI(r,s);let i;"string"==typeof e?(n.lastSourceCode=null,i=e):(n.lastSourceCode=e,i=e.text);const a=s.languageOptions;a.ecmaVersion=SI(a.ecmaVersion);const c={...yI(a.ecmaVersion),..."commonjs"===a.sourceType?mI.commonjs:void 0,...a.globals};if(gI(a.parser)){const e=a.parserOptions;a.sourceType&&(e.sourceType=a.sourceType,"module"===e.sourceType&&e.ecmaFeatures&&e.ecmaFeatures.globalReturn&&(e.ecmaFeatures.globalReturn=!1))}const u=s.settings||{};if(n.lastSourceCode)n.lastSourceCode.scopeManager||(n.lastSourceCode=new YP({text:n.lastSourceCode.text,ast:n.lastSourceCode.ast,parserServices:n.lastSourceCode.parserServices,visitorKeys:n.lastSourceCode.visitorKeys,scopeManager:FI(n.lastSourceCode.ast,a)}));else{const e=TI(i,a,o.filename);if(!e.success)return[e.error];n.lastSourceCode=e.sourceCode}const l=n.lastSourceCode,p=o.allowInlineConfig?CI(o.filename,l.ast,(e=>uI(e,s)),o.warnInlineConfig):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};xI(l.scopeManager.scopes[0],c,{exportedVariables:p.exportedVariables,enabledGlobals:p.enabledGlobals});const d=Object.assign({},s.rules,p.configuredRules);let f;try{f=BI(l,d,(e=>uI(e,s)),void 0,a,u,o.filename,o.disableFixes,n.cwd,r.physicalFilename)}catch(e){if(e.message+="\nOccurred while linting "+o.filename,pI("An error occurred while traversing"),pI("Filename:",o.filename),e.currentNode){const{line:t}=e.currentNode.loc.start;pI("Line:",t),e.message+=":"+t}throw pI("Parser Options:",a.parserOptions),pI("Settings:",u),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return eI({directives:p.disableDirectives,disableFixes:o.disableFixes,problems:f.concat(p.problems).sort(((e,t)=>e.line-t.line||e.column-t.column)),reportUnusedDisableDirectives:o.reportUnusedDisableDirectives})}_verifyWithConfigArray(e,t,r){pI("With ConfigArray: %s",r.filename),NI.get(this).lastConfigArray=t;const n=t.extractConfig(r.filename),s=n.processor&&t.pluginProcessors.get(n.processor);if(s){pI("Apply the processor: %o",n.processor);const{preprocess:o,postprocess:i,supportsAutofix:a}=s,c=r.disableFixes||!a;return this._verifyWithProcessor(e,n,{...r,disableFixes:c,postprocess:i,preprocess:o},t)}return this._verifyWithoutProcessors(e,n,r)}_verifyWithFlatConfigArray(e,t,r,n=!1){pI("With flat config: %s",r.filename);const s=r.filename||"<input>";NI.get(this).lastConfigArray=t;const o=t.getConfig(s);if(o.processor){pI("Apply the processor: %o",o.processor);const{preprocess:n,postprocess:i,supportsAutofix:a}=o.processor,c=r.disableFixes||!a;return this._verifyWithFlatConfigArrayAndProcessor(e,o,{...r,filename:s,disableFixes:c,postprocess:i,preprocess:n},t)}return n&&(r.preprocess||r.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(e,o,r):this._verifyWithFlatConfigArrayAndWithoutProcessors(e,o,r)}_verifyWithProcessor(e,t,r,n){const s=r.filename||"<input>",o=AI(s),i=r.physicalFilename||o,a=OI(e),c=r.preprocess||(e=>[e]),u=r.postprocess||(e=>e.flat()),l=r.filterCodeBlock||(e=>e.endsWith(".js")),p=$P.extname(s);return u(c(a,o).map(((e,o)=>{if(pI("A code block was found: %o",e.filename||"(unnamed)"),"string"==typeof e)return this._verifyWithoutProcessors(e,t,r);const c=e.text,u=$P.join(s,`${o}_${e.filename}`);return l(u,c)?!n||a===c&&$P.extname(u)===p?this._verifyWithoutProcessors(c,t,{...r,filename:u,physicalFilename:i}):(pI("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(c,n,{...r,filename:u,physicalFilename:i})):(pI("This code block was skipped."),[])})),o)}getSourceCode(){return NI.get(this).lastSourceCode}defineRule(e,t){RI(this),NI.get(this).ruleMap.define(e,t)}defineRules(e){RI(this),Object.getOwnPropertyNames(e).forEach((t=>{this.defineRule(t,e[t])}))}getRules(){RI(this);const{lastConfigArray:e,ruleMap:t}=NI.get(this);return new Map(function*(){yield*t,e&&(yield*e.pluginRules)}())}defineParser(e,t){RI(this),NI.get(this).parserMap.set(e,t)}verifyAndFix(e,t,r){let n,s=[],o=!1,i=0,a=e;const c=r&&r.filename||e.slice(0,10)+"...",u=!r||void 0===r.fix||r.fix;do{if(i++,pI(`Linting code for ${c} (pass ${i})`),s=this.verify(a,t,r),pI(`Generating fixed text for ${c} (pass ${i})`),n=iI.applyFixes(a,s,u),1===s.length&&s[0].fatal)break;o=o||n.fixed,a=n.output}while(n.fixed&&i<10);return n.fixed&&(n.messages=this.verify(a,t,r)),n.fixed=o,n.output=a,n}},getLinterInternalSlots:e=>NI.get(e)};"object"==typeof window&&(window.process=s.exports);const{Linter:VI}=MI;var $I=n.Linter=VI;e.Linter=$I,e.default=n,Object.defineProperty(e,"__esModule",{value:!0})}));