eslint-config-sukka 6.1.11-beta.1 → 6.1.11
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.
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +4 -4
- package/dist/vendor-BoZ9pZii.cjs +19 -0
- package/dist/vendor-zdKhn6PL.mjs +19 -0
- package/package.json +17 -17
- package/dist/vendor-BNyGe7gX.cjs +0 -20
- package/dist/vendor-BnxXllVU.mjs +0 -20
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";let e;const t=e=>Promise.resolve(require(e));var s,r=require("@eslint-sukka/shared"),i=require("node:fs"),n=require("node:process");require("node:fs/promises");var a=require("node:url"),o=require("node:path"),l=require("./vendor-BoZ9pZii.cjs"),c=require("fs"),p=require("@eslint-community/eslint-plugin-eslint-comments"),h=require("eslint-plugin-sukka"),u=require("eslint-plugin-promise"),f=require("@eslint/js"),d=require("@stylistic/eslint-plugin-js"),m=require("@stylistic/eslint-plugin-plus"),g=require("eslint-plugin-unused-imports"),y=require("eslint-plugin-import-x"),x=require("eslint-plugin-autofix"),v=require("eslint-plugin-jsonc"),k=require("jsonc-eslint-parser"),b=require("eslint-plugin-sukka-ts"),w=require("typescript-eslint"),_=require("@stylistic/eslint-plugin-ts"),S=require("eslint-plugin-deprecation"),E=require("@eslint/compat"),C=require("url"),P=require("node:module"),I=require("node:assert"),A=require("node:v8"),R=require("node:util"),T=require("picocolors"),L=require("defu"),N=require("ci-info"),j="undefined"!=typeof document?document.currentScript:null,O=(s=Object.create(null),c&&Object.keys(c).forEach(function(e){if("default"!==e){var t=Object.getOwnPropertyDescriptor(c,e);Object.defineProperty(s,e,t.get?t:{enumerable:!0,get:function(){return c[e]}})}}),s.default=c,Object.freeze(s));const V=e=>e instanceof URL?a.fileURLToPath(e):e;var D=/*@__PURE__*/l.g(O);const U=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),M=/[<>:"|?*\n\r\t\f\x00-\x1F]/,F=/(?:^|\/)[*]{2}($|\/)/,B=e=>"string"==typeof e&&e.length<=248&&!M.test(e),$=e=>String(e).split(/\r\n?|\n/),q=e=>e.startsWith("#"),W=e=>U(e)&&e.patterns&&e.sections,G=(e,t={})=>{let s,r=t.path;if(W(e))return e;B(e)&&D.existsSync(e)&&(r=e,e=D.readFileSync(e));let i=$(e),n=new Map,a={sections:[],patterns:[]},o={name:"default",patterns:[]};for(let e of i){let t=e.trim();if(t.startsWith("#")){let[,e]=/^#+\s*(.*)\s*$/.exec(t);if(s){n.delete(s.name),s.comment+=t?`
|
|
2
2
|
${t}`:"",s.name=e?`${s.name.trim()}
|
|
3
|
-
${e.trim()}`:s.name.trim(),n.set(s.name.toLowerCase().trim(),s);continue}o={name:e.trim(),comment:t,patterns:[]},n.set(o.name.toLowerCase(),o),a.sections.push(o),s=o;continue}""!==t&&(o.patterns.push(t),a.patterns.push(t)),s=null}return(!0===t.dedupe||!0===t.unique)&&(a=
|
|
4
|
-
`).globs())"ignore"===e.type?t.push(...e.patterns):"unignore"===e.type&&t.push(...e.patterns.map(e=>`!${e}`))}if(o&&0===l.length)throw Error("No .gitignore file found");return{ignores:t}}const J=(e={})=>{let{customGlobs:t=null,gitignore:i=[".gitignore"]}=e,r=[],n=[];return!1===t||null===t?n=s.constants.GLOB_EXCLUDE:"function"==typeof t?n=t(s.constants.GLOB_EXCLUDE):"string"==typeof t?n.push(...s.constants.GLOB_EXCLUDE,t):Array.isArray(t)&&n.push(...s.constants.GLOB_EXCLUDE,...t),r.push({ignores:n}),!1===i||null===i||(!0===i?r.push(X({files:[".gitignore"],strict:!1})):("string"==typeof i||Array.isArray(i))&&r.push(X({files:i,strict:!1}))),r},Y=()=>[{name:"sukka/eslint-comments",plugins:{"@eslint-community/eslint-comments":l,sukka:s.memo(c,"eslint-plugin-sukka")},rules:{"sukka/ban-eslint-disable":["error","allow-with-description"],"@eslint-community/eslint-comments/disable-enable-pair":["error",{allowWholeFile:!0}],"@eslint-community/eslint-comments/no-aggregating-enable":"error","@eslint-community/eslint-comments/no-duplicate-disable":"error","@eslint-community/eslint-comments/no-unlimited-disable":"error","@eslint-community/eslint-comments/no-unused-disable":"error","@eslint-community/eslint-comments/no-unused-enable":"error"}}],Z=({typescript:e})=>[{name:"sukka/promise",plugins:{promise:p},rules:{"promise/always-return":e?"off":["error",{ignoreLastCallback:!0}],"promise/no-return-wrap":"error","promise/param-names":"error","promise/catch-or-return":["error",{allowFinally:!0,terminationMethod:["catch","asCallback","finally"]}],"promise/no-native":"off","promise/no-nesting":"warn","promise/no-promise-in-callback":"warn","promise/no-callback-in-promise":"warn","promise/avoid-new":"off","promise/no-new-statics":"error","promise/no-return-in-finally":"warn","promise/valid-params":"warn"}}],ee=[".js",".jsx",".mjs",".cjs"],et=(e={})=>{let{files:t,disableNoConsoleInCLI:i=!0,env:r={}}=e,{browser:n=!0,webextensions:a=!1,greasemonkey:o=!1,customGlobals:l={}}=r,p=e.module??s.getPackageJson()?.type==="module",y=[h.configs.recommended,{linterOptions:{reportUnusedDisableDirectives:!0}},{name:"@eslint-sukka/js base",...t?{files:t}:{},languageOptions:{ecmaVersion:"latest",sourceType:p?"module":"commonjs",parserOptions:{ecmaVersion:"latest",sourceType:p?"module":"commonjs",ecmaFeatures:{jsx:!0}},globals:{...s.globals.es2025,...n&&s.globals.browser,...a&&s.globals.webextensions,...o&&s.globals.greasemonkey,...l}},settings:{"import-x/parsers":{espree:ee},"import-x/extensions":ee},plugins:{"unused-imports":s.memo(d,"eslint-plugin-unused-imports"),"@stylistic/js":s.memo(u,"@stylistic/eslint-plugin-js"),"@stylistic/plus":s.memo(f,"@stylistic/eslint-plugin-plus"),sukka:s.memo(c,"eslint-plugin-sukka"),"import-x":s.memo(m,"eslint-plugin-import-x"),autofix:g},rules:{...m.configs.recommended.rules,"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-notation":["error",{allowKeywords:!0}],"@stylistic/js/dot-location":["error","property"],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","no-alert":"warn","no-caller":"off","autofix/no-caller":"error","no-constructor-return":"error","no-else-return":["error",{allowElseIf:!1}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":["off",{boolean:!1,number:!0,string:!0,allow:[]}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","@stylistic/js/no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-octal-escape":"error","no-proto":"off","autofix/no-proto":"error","no-restricted-properties":["error",...[["isFinite","Number.isFinite"],["isNaN","Number.isNaN"]].flatMap(([e,t])=>["global","globalThis","window","self"].map(s=>({object:s,property:e,message:`Please use ${t} instead`}))),{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."},{object:"Math",property:"pow",message:"Use the exponentiation operator (**) instead."}],"no-return-assign":["error","always"],"no-return-await":"off","sukka/no-return-await":"error","no-self-compare":"off","no-sequences":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"no-useless-call":"off","no-useless-catch":"off","autofix/no-useless-catch":"error","no-useless-concat":"off","autofix/no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":["error",{allowAsStatement:!0}],"no-with":"error","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-object-has-own":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],radix:"off","autofix/radix":"error","require-await":"error","require-yield":"error","require-unicode-regexp":"off","vars-on-top":"error","@stylistic/js/wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error","no-await-in-loop":"warn","no-console":"warn","no-constant-condition":"warn","no-empty-function":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-constant-binary-expression":"error","@stylistic/js/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-loss-of-precision":"warn","no-promise-executor-return":"error","no-template-curly-in-string":"error","no-unreachable-loop":["error",{ignore:[]}],"no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-vars":"off","unused-imports/no-unused-imports":"off","no-unused-private-class-members":"error","no-useless-backreference":"error","no-negated-in-lhs":"off","require-atomic-updates":"off","use-isnan":["error",{enforceForIndexOf:!0}],"valid-typeof":"off","autofix/valid-typeof":["error",{requireStringLiterals:!0}],"no-new-native-nonconstructor":"off","autofix/no-new-native-nonconstructor":"error","@stylistic/js/arrow-spacing":["error",{before:!0,after:!0}],"@stylistic/js/generator-star-spacing":["error",{before:!0,after:!1}],"@stylistic/js/no-confusing-arrow":["error",{allowParens:!0}],"no-duplicate-imports":"off","no-restricted-exports":["error",{restrictedNamedExports:["then"]}],"no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],"no-var":"warn","object-shorthand":["error","always",{ignoreConstructors:!1,avoidQuotes:!0,avoidExplicitReturnArrows:!0}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{ignoreReadBeforeAssign:!0}],"prefer-numeric-literals":"error","prefer-rest-params":"error","prefer-template":"off","symbol-description":"error","@stylistic/js/template-curly-spacing":["error","never"],"@stylistic/js/yield-star-spacing":["error","before"],"@stylistic/js/array-bracket-newline":["off","consistent"],"@stylistic/js/array-bracket-spacing":["error","never"],"@stylistic/js/array-element-newline":["off",{multiline:!0,minItems:5}],"@stylistic/js/block-spacing":["error","always"],"@stylistic/js/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["warn",{properties:"never",ignoreDestructuring:!1,ignoreImports:!0,ignoreGlobals:!0,allow:["^UNSAFE_","^experimental_","^__DEV__"]}],"@stylistic/js/comma-dangle":["error","never"],"@stylistic/js/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/js/comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"@stylistic/js/computed-property-spacing":["error","never"],"consistent-this":"off","@stylistic/js/eol-last":["error","always"],"@stylistic/js/func-call-spacing":["error","never"],"@stylistic/js/function-call-argument-newline":["off","consistent"],"@stylistic/js/function-paren-newline":["error","consistent"],"@stylistic/js/implicit-arrow-linebreak":["error","beside"],"@stylistic/js/indent":["error",2,{SwitchCase:1}],"@stylistic/plus/indent-binary-ops":["error",2],"@stylistic/js/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/js/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/js/linebreak-style":"error","@stylistic/js/lines-around-comment":"off","@stylistic/js/lines-around-directive":"off","@stylistic/js/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"@stylistic/js/multiline-ternary":"off","new-cap":["error",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"@stylistic/js/newline-per-chained-call":["error",{ignoreChainWithDepth:6}],"@stylistic/js/new-parens":"error","no-bitwise":"off","no-lonely-if":"error","@stylistic/js/no-mixed-operators":["error",{groups:[["**","+"],["**","-"],["**","*"],["**","/"],["%","+"],["%","-"],["%","*"],["%","/"],["%","**"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!0}],"@stylistic/js/no-mixed-spaces-and-tabs":"error","no-multi-assign":"error","@stylistic/js/no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","no-nested-ternary":"off","sukka/unicorn/no-nested-ternary":"warn","no-new-object":"off","no-object-constructor":"error","no-array-constructor":"error","@stylistic/js/no-spaced-func":"off","@stylistic/js/no-tabs":"error","no-ternary":"off","@stylistic/js/no-trailing-spaces":"error","no-unneeded-ternary":"error","@stylistic/js/no-whitespace-before-property":"error","@stylistic/js/nonblock-statement-body-position":"error","@stylistic/js/object-curly-newline":"off","@stylistic/js/object-curly-spacing":["error","always"],"@stylistic/js/object-property-newline":"off","@stylistic/js/one-var-declaration-per-line":"off","prefer-exponentiation-operator":"error","@stylistic/js/operator-linebreak":["error","before"],"@stylistic/js/padded-blocks":["error","never"],"@stylistic/js/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/js/quotes":["error","single"],"@stylistic/js/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/js/jsx-quotes":["error","prefer-double"],"@stylistic/js/rest-spread-spacing":["error","never"],"@stylistic/js/semi":["error","always"],"@stylistic/js/semi-spacing":["error",{before:!1,after:!0}],"@stylistic/js/semi-style":["error","last"],"@stylistic/js/space-before-blocks":"error","@stylistic/js/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/js/space-in-parens":["error","never"],"@stylistic/js/space-infix-ops":"error","@stylistic/js/space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"@stylistic/js/spaced-comment":["error","always",{line:{exceptions:["-","+"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"@stylistic/js/switch-colon-spacing":["error",{after:!0,before:!1}],"@stylistic/js/template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"@stylistic/js/wrap-regex":"off","no-label-var":"error","no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-globals":["error",{name:"isFinite",message:"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite"},{name:"isNaN",message:"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan"}],"no-undef-init":"error","sukka/array/no-unneeded-flat-map":"error","sukka/browser/prefer-location-assign":"warn","sukka/jsx/no-template-literal":"error","sukka/jsx/no-unneeded-nested":"error","sukka/string/no-locale-case":"warn","sukka/string/no-simple-template-literal":"error","sukka/type/no-instanceof-wrapper":"error","sukka/unicode/no-bidi":"warn","sukka/unicode/no-invisible":"warn","sukka/no-redundant-variable":"error","sukka/no-single-return":"error","sukka/prefer-early-return":["error",{maximumStatements:16}],"sukka/prefer-fetch":"error","sukka/prefer-timer-id":"warn","sukka/unicorn/require-array-join-separator":"warn","sukka/unicorn/no-thenable":"error","sukka/unicorn/no-invalid-remove-event-listener":"error","sukka/unicorn/consistent-function-scoping":"warn","sukka/unicorn/prefer-event-target":"warn","sukka/unicorn/prefer-keyboard-event-key":"warn","sukka/unicorn/prefer-text-content":"warn","sukka/unicorn/no-console-spaces":"warn","sukka/unicorn/no-empty-file":"warn","sukka/unicorn/no-useless-fallback-in-spread":"warn","sukka/unicorn/no-useless-length-check":"warn","sukka/unicorn/no-useless-promise-resolve-reject":"warn","sukka/unicorn/no-zero-fractions":"warn","sukka/unicorn/prefer-export-from":["warn",{ignoreUsedVariables:!0}],"sukka/unicorn/prefer-native-coercion-functions":"warn","sukka/unicorn/no-document-cookie":"error","sukka/unicorn/prefer-add-event-listener":"warn","sukka/unicorn/prefer-array-index-of":"warn","sukka/unicorn/prefer-blob-reading-methods":"warn","sukka/unicorn/prefer-date-now":"warn","sukka/unicorn/prefer-dom-node-dataset":"warn","sukka/unicorn/prefer-modern-math-apis":"warn","sukka/unicorn/number-literal-case":"error","sukka/unicorn/prefer-number-properties":["warn",{checkInfinity:!1}],"sukka/unicorn/prefer-reflect-apply":"warn","sukka/unicorn/prefer-set-size":"warn","sukka/unicorn/prefer-string-replace-all":"warn","sukka/unicorn/prefer-string-slice":"warn","sukka/unicorn/prefer-string-trim-start-end":"warn","sukka/unicorn/no-unreadable-iife":"warn","sukka/unicorn/throw-new-error":"warn","sukka/unicorn/better-regex":"error","sukka/unicorn/escape-case":"warn","sukka/unicorn/no-hex-escape":"warn","sukka/unicorn/prefer-prototype-methods":"warn","sukka/unicorn/error-message":"error","sukka/unicorn/no-instanceof-array":"error","sukka/unicorn/prefer-type-error":"error","sukka/unicorn/consistent-destructuring":"warn","sukka/unicorn/new-for-builtins":"warn","sukka/unicorn/no-array-push-push":"warn","sukka/unicorn/no-static-only-class":"warn","sukka/unicorn/no-unreadable-array-destructuring":"error","sukka/unicorn/no-useless-spread":"warn","sukka/unicorn/no-useless-switch-case":"warn","sukka/unicorn/no-useless-undefined":["error",{checkArguments:!1}],"sukka/unicorn/numeric-separators-style":["warn",{onlyIfContainsSeparator:!1,number:{minimumDigits:7,groupLength:3},binary:{minimumDigits:9,groupLength:4},octal:{minimumDigits:9,groupLength:4},hexadecimal:{minimumDigits:5,groupLength:2}}],"sukka/unicorn/prefer-array-find":"warn","sukka/unicorn/prefer-array-flat-map":"warn","sukka/unicorn/prefer-array-flat":"warn","sukka/unicorn/prefer-array-some":"warn","sukka/unicorn/prefer-code-point":"warn","sukka/unicorn/prefer-default-parameters":"warn","sukka/unicorn/prefer-logical-operator-over-ternary":"warn","sukka/unicorn/prefer-optional-catch-binding":"error","sukka/unicorn/prefer-regexp-test":"warn","sukka/unicorn/prefer-set-has":"error","sukka/unicorn/prefer-switch":"warn","sukka/unicorn/require-number-to-fixed-digits-argument":"warn","sukka/import-dedupe":"error","sukka/unicorn/prefer-string-raw":"warn","sukka/unicorn/no-single-promise-in-promise-methods":"error","sukka/unicorn/no-await-in-promise-methods":"error","sukka/unicorn/template-indent":["warn",{tags:["outdent","dedent","gql","sql","html","styled","css"],functions:["dedent","stripIndent","strip_indent","stripTags","striptags","strip_tags","stripHtml","stripHTML","strip_html"],selectors:[],comments:["HTML","html","CSS","css","indent"]}],"sukka/unicorn/no-negation-in-equality-check":"error","sukka/unicorn/no-length-as-slice-end":"error","no-restricted-imports":["error",{paths:s.RESTRICTED_IMPORT_JS}],"no-prototype-builtins":"off","autofix/no-prototype-builtins":"error"}}];if(!1!==i){let e="boolean"!=typeof i?Array.isArray(i)?i:[i]:null;y.push({name:"@eslint-sukka/js cli specific",files:e??[`**/scripts/${s.constants.GLOB_SRC}`,`**/cli/${s.constants.GLOB_SRC}`,`**/cli.${s.constants.GLOB_SRC_EXT}`],rules:{"no-console":"off"}})}return y},es={plugins:{jsonc:s.memo(y,"eslint-plugin-jsonc")},languageOptions:{parser:x}},ei={"jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","never"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"jsonc/object-curly-newline":"off","jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error"},er=()=>[...y.configs["flat/base"],{name:"@eslint-sukka/json json",files:[s.constants.GLOB_JSON],rules:{...y.configs["flat/recommended-with-json"].reduce((e,t)=>({...e,...t.rules}),{}),...ei}},{name:"@eslint-sukka/json json5",...es,files:[s.constants.GLOB_JSON5],rules:{...y.configs["flat/recommended-with-json5"].reduce((e,t)=>({...e,...t.rules}),{}),...ei}},{name:"@eslint-sukka/json jsonc",...es,files:[s.constants.GLOB_JSONC],rules:{...y.configs["flat/recommended-with-jsonc"].reduce((e,t)=>({...e,...t.rules}),{}),...ei}},{name:"@eslint-sukka/json package.json",...es,files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["$schema","publisher","name","displayName","version","private","description","funding","homepage","repository","bugs","categories","type","main","module","types","typesVersions","bin","files","exports","icon","unpkg","jsdelivr","sideEffects","activationEvents","contributes","scripts","keywords","author","license","dependencies","devDependencies","peerDependencies","peerDependenciesMeta","optionalDependencies","packageManager","engines","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:["types","import","module","require","default"],pathPattern:"^exports.*$"}]}},{name:"@eslint-sukka/json tsconfig.json",...es,files:["**/tsconfig.json","**/tsconfig.*.json","**/tsconfig-*.json","**/jsconfig.json","**/jsconfig.*.json","**/jsconfig-*.json"],rules:{"jsonc/sort-keys":["error",{order:["$schema","extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","lib","jsx","experimentalDecorators","emitDecoratorMetadata","jsxFactory","jsxFragmentFactory","jsxImportSource","reactNamespace","noLib","useDefineForClassFields","moduleDetection","module","rootDir","moduleResolution","baseUrl","paths","rootDirs","typeRoots","types","allowUmdGlobalAccess","moduleSuffixes","allowImportingTsExtensions","resolvePackageJsonExports","resolvePackageJsonImports","customConditions","resolveJsonModule","allowArbitraryExtensions","noResolve","allowJs","checkJs","maxNodeModuleJsDepth","declaration","declarationMap","emitDeclarationOnly","sourceMap","inlineSourceMap","outFile","outDir","removeComments","noEmit","importHelpers","importsNotUsedAsValues","downlevelIteration","sourceRoot","mapRoot","inlineSources","emitBOM","newLine","stripInternal","noEmitHelpers","noEmitOnError","preserveConstEnums","declarationDir","preserveValueImports","isolatedModules","verbatimModuleSyntax","allowSyntheticDefaultImports","esModuleInterop","preserveSymlinks","forceConsistentCasingInFileNames","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}],en={"no-dupe-class-members":"off","@typescript-eslint/no-dupe-class-members":"error","no-redeclare":"off","@typescript-eslint/no-redeclare":"error","no-unused-vars":"off","@typescript-eslint/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"class-methods-use-this":"off","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:[]}],"default-param-last":"off","@typescript-eslint/default-param-last":"error","dot-notation":"off","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"no-implied-eval":"off","@typescript-eslint/no-implied-eval":"error","no-invalid-this":"off","@typescript-eslint/no-invalid-this":"off","no-loop-func":"off","@typescript-eslint/no-loop-func":"error","no-return-await":"off","@typescript-eslint/return-await":"error","sukka/no-return-await":"off","no-unused-expressions":"off","@typescript-eslint/no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"prefer-promise-reject-errors":"off","@typescript-eslint/prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"require-await":"off","@typescript-eslint/require-await":"error","no-empty-function":"off","@typescript-eslint/no-empty-function":"error","@stylistic/js/no-extra-parens":"off","@stylistic/ts/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":"error","@stylistic/js/block-spacing":"off","@stylistic/ts/block-spacing":["error","always"],"@stylistic/js/brace-style":"off","@stylistic/ts/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:"off","@stylistic/js/comma-dangle":"off","@stylistic/ts/comma-dangle":["error","never"],"@stylistic/js/comma-spacing":"off","@stylistic/ts/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/js/func-call-spacing":"off","@stylistic/ts/func-call-spacing":["error","never"],"@stylistic/js/indent":"off","@stylistic/ts/indent":["error",2,{SwitchCase:1}],"@stylistic/js/key-spacing":"off","@stylistic/ts/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/js/keyword-spacing":"off","@stylistic/ts/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/js/lines-around-comment":"off","@stylistic/ts/lines-around-comment":"off","@stylistic/js/lines-between-class-members":"off","@stylistic/ts/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"no-array-constructor":"off","@typescript-eslint/no-array-constructor":"error","@stylistic/js/object-curly-newline":"off","@stylistic/ts/object-curly-newline":"off","@stylistic/js/object-curly-spacing":"off","@stylistic/ts/object-curly-spacing":["error","always"],"@stylistic/js/object-property-newline":"off","@stylistic/ts/object-property-newline":"off","@stylistic/js/padding-line-between-statements":"off","@stylistic/ts/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/js/quotes":"off","@stylistic/ts/quotes":["error","single"],"@stylistic/js/quote-props":"off","@stylistic/ts/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/js/semi":"off","@stylistic/ts/semi":["error","always"],"@stylistic/js/space-before-blocks":"off","@stylistic/ts/space-before-blocks":"error","@stylistic/js/space-before-function-paren":"off","@stylistic/ts/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/js/space-infix-ops":"off","@stylistic/ts/space-infix-ops":"error","no-use-before-define":"off","@typescript-eslint/no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-imports":"off"},ea=[".js",".jsx",".mjs",".cjs"],eo=[".ts",".cts",".mts",".tsx",".d.ts"],el=[...eo,...ea],ec=[".ts",".cts",".mts",".tsx",...ea],ep=(e={})=>{let{tsconfigPath:t=!0,tsconfigRootDir:i=process.cwd(),componentExtentions:r=[]}=e,n="string"==typeof __dirname?S.pathToFileURL(__dirname).href:"undefined"==typeof document?require("url").pathToFileURL(__filename).href:L&&L.src||new URL("index.cjs",document.baseURI).href,a=S.fileURLToPath(s.importMetaResolve("@typescript-eslint/parser",n)),o=S.fileURLToPath(s.importMetaResolve("eslint-import-resolver-ts-bundled",n));return[{name:"@eslint-sukka/ts base",files:[s.constants.GLOB_TS,s.constants.GLOB_TSX,...r.map(e=>`**/*.${e}`)],plugins:{...k.configs.base.plugins,"@stylistic/ts":s.memo(b,"@stylistic/eslint-plugin-ts"),"sukka-ts":s.memo(v,"eslint-plugin-sukka-ts"),"@stylistic/plus":s.memo(f,"@stylistic/eslint-plugin-plus"),"import-x":s.memo(m,"eslint-plugin-import-x"),deprecation:_.fixupPluginRules(w)},languageOptions:{parser:k.configs.base.languageOptions.parser,sourceType:"module",parserOptions:{sourceType:"module",ecmaVersion:"latest",...!0===t?{projectService:!0,allowDefaultProject:[]}:{project:t},tsconfigRootDir:i,ecmaFeatures:{jsx:!0},jsxPragma:void 0,warnOnUnsupportedTypeScriptVersion:!0}},settings:{"import-x/extensions":el,"import-x/external-module-folders":["node_modules","node_modules/@types"],"import-x/resolver":{node:{extensions:ec},[o]:{alwaysTryTypes:!0,...!0===t?{}:{project:t}}},"import-x/parsers":{espree:ea,[a]:eo}},rules:{...k.configs.base.rules,...k.configs.recommendedTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...k.configs.stylisticTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...m.configs.typescript.rules,...en,"@typescript-eslint/ban-ts-comment":["error",{"ts-expect-error":"allow-with-description","ts-ignore":!0,"ts-nocheck":!0,"ts-check":!1,minimumDescriptionLength:10}],"@typescript-eslint/naming-convention":["warn",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE","snake_case"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"function",format:["camelCase","PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"typeLike",format:["PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"}],"@typescript-eslint/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"@typescript-eslint/require-await":"error","@typescript-eslint/await-thenable":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0,allowAny:!0,allowBoolean:!0,allowNever:!0}],"@typescript-eslint/unbound-method":"error","@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",disallowTypeAnnotations:!1,fixStyle:"separate-type-imports"}],"@typescript-eslint/no-import-type-side-effects":"warn","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-definitions":"warn","@typescript-eslint/consistent-generic-constructors":["error","constructor"],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["Error","RegExp","URL","URLSearchParams"]}],"@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extraneous-class":["warn",{allowConstructorOnly:!0,allowEmpty:!0,allowWithDecorator:!0}],"@typescript-eslint/no-invalid-void-type":["off",{allowInGenericTypeArguments:!0,allowAsThisParameter:!0}],"@typescript-eslint/no-non-null-asserted-nullish-coalescing":"error","@typescript-eslint/no-unnecessary-boolean-literal-compare":"error","@typescript-eslint/no-unnecessary-condition":["warn",{allowConstantLoopConditions:!0}],"@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/non-nullable-type-assertion-style":"error","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-literal-enum-member":["error",{allowBitwiseExpressions:!0}],"@typescript-eslint/prefer-nullish-coalescing":"off","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/unified-signatures":["error",{ignoreDifferentlyNamedParameters:!0}],"@typescript-eslint/prefer-for-of":"off","@typescript-eslint/prefer-function-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/prefer-enum-initializers":"warn","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-meaningless-void-operator":"warn","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/array-type":["warn",{default:"array-simple"}],"@typescript-eslint/no-restricted-imports":["error",{paths:s.RESTRICTED_IMPORT_TS}],"@typescript-eslint/no-empty-object-type":["error",{allowInterfaces:"with-single-extends",allowObjectTypes:"never",allowWithName:"Props$"}],"@typescript-eslint/no-unsafe-function-type":"warn","@typescript-eslint/no-restricted-types":["error",{types:{FC:{message:"To declare a component, you don't have to use FC to annotate it. To type something that accepts/is a React Component, use ComponentType<T>.",fixWith:"ComponentType"},"React.FC":{message:"To declare a component, you don't have to use React.FC to annotate it. To type something that accepts/is a React Component, use React.ComponentType<T>.",fixWith:"React.ComponentType"},ReactElement:{message:"In most cases, you want ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"ReactNode"},"React.ReactElement":{message:"In most cases, you want React.ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"React.ReactNode"}}}],"@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-loop-func":"warn","@typescript-eslint/no-redundant-type-constituents":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-enum-comparison":"warn","@typescript-eslint/prefer-regexp-exec":"off","@stylistic/ts/member-delimiter-style":["error",{multiline:{delimiter:"comma",requireLast:!1},singleline:{delimiter:"comma",requireLast:!1}}],"@stylistic/ts/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0,exceptAfterOverload:!0}],"@stylistic/ts/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"},{blankLine:"any",prev:["interface","type"],next:["interface","type"]}],"@stylistic/ts/type-annotation-spacing":["error",{before:!1,after:!0,overrides:{arrow:{before:!0,after:!0}}}],"@typescript-eslint/no-namespace":"off","@typescript-eslint/prefer-string-starts-ends-with":"off","sukka-ts/string/prefer-string-starts-ends-with":"error","@typescript-eslint/switch-exhaustiveness-check":"error","sukka-ts/string/no-unneeded-to-string":"error","sukka-ts/type/no-force-cast-via-top-type":"error","sukka-ts/type/no-wrapper-type-reference":"error","sukka-ts/no-default-error":"off","sukka-ts/no-const-enum":"error","@stylistic/plus/type-generic-spacing":"error","@stylistic/plus/type-named-tuple-spacing":"error","deprecation/deprecation":"error","@typescript-eslint/no-unused-vars":"off","unused-imports/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-imports":"error","import-x/named":"off","import-x/no-duplicates":"off","import-x/namespace":"off","import-x/default":"off","import-x/no-named-as-default-member":"off"}},{name:"@eslint-sukka/ts dts",files:["**/*.d.ts"],plugins:{"import-x":s.memo(m,"eslint-plugin-import-x")},rules:{"import-x/no-duplicates":"off","unused-imports/no-unused-vars":"off"}},{name:"@eslint-sukka/ts jest/mocha",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{name:"@eslint-sukka/ts commonjs",files:["**/*.js","**/*.cjs"],plugins:k.configs.base.plugins,rules:{"@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-var-requires":"off"}}]},eh=(e={})=>[{name:"@eslint-sukka/legacy base",...e.files?{files:e.files}:{},plugins:{sukka:s.memo(c,"eslint-plugin-sukka")},rules:{"prefer-numeric-literals":"off","no-restricted-properties":["error",{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."}],"no-var":"off","prefer-object-spread":"off",strict:["error","safe"],"sukka/unicorn/prefer-default-parameters":"off","sukka/unicorn/prefer-logical-operator-over-ternary":"off","sukka/unicorn/prefer-optional-catch-binding":"off"},languageOptions:{globals:{...e.browser??!0?s.globals.browser:{},...e.node?s.globals.node:{}}}}];var eu=[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,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],ef=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,38,6,186,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,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,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,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ed="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",em={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"},eg="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",ey={5:eg,"5module":eg+" export import",6:eg+" const class extends export import super"},ex=/^in(stanceof)?$/,ev=RegExp("["+ed+"]"),ek=RegExp("["+ed+"\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function eb(e,t){for(var s=65536,i=0;i<t.length&&!((s+=t[i])>e);i+=2)if((s+=t[i+1])>=e)return!0;return!1}function ew(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ev.test(String.fromCharCode(e)):!1!==t&&eb(e,ef)))}function e_(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ek.test(String.fromCharCode(e)):!1!==t&&(eb(e,ef)||eb(e,eu)))))}var eS=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 eE(e,t){return new eS(e,{beforeExpr:!0,binop:t})}var eC={beforeExpr:!0},eP={startsExpr:!0},eI={};function eA(e,t){return void 0===t&&(t={}),t.keyword=e,eI[e]=new eS(e,t)}var eR={num:new eS("num",eP),regexp:new eS("regexp",eP),string:new eS("string",eP),name:new eS("name",eP),privateId:new eS("privateId",eP),eof:new eS("eof"),bracketL:new eS("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new eS("]"),braceL:new eS("{",{beforeExpr:!0,startsExpr:!0}),braceR:new eS("}"),parenL:new eS("(",{beforeExpr:!0,startsExpr:!0}),parenR:new eS(")"),comma:new eS(",",eC),semi:new eS(";",eC),colon:new eS(":",eC),dot:new eS("."),question:new eS("?",eC),questionDot:new eS("?."),arrow:new eS("=>",eC),template:new eS("template"),invalidTemplate:new eS("invalidTemplate"),ellipsis:new eS("...",eC),backQuote:new eS("`",eP),dollarBraceL:new eS("${",{beforeExpr:!0,startsExpr:!0}),eq:new eS("=",{beforeExpr:!0,isAssign:!0}),assign:new eS("_=",{beforeExpr:!0,isAssign:!0}),incDec:new eS("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new eS("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:eE("||",1),logicalAND:eE("&&",2),bitwiseOR:eE("|",3),bitwiseXOR:eE("^",4),bitwiseAND:eE("&",5),equality:eE("==/!=/===/!==",6),relational:eE("</>/<=/>=",7),bitShift:eE("<</>>/>>>",8),plusMin:new eS("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:eE("%",10),star:eE("*",10),slash:eE("/",10),starstar:new eS("**",{beforeExpr:!0}),coalesce:eE("??",1),_break:eA("break"),_case:eA("case",eC),_catch:eA("catch"),_continue:eA("continue"),_debugger:eA("debugger"),_default:eA("default",eC),_do:eA("do",{isLoop:!0,beforeExpr:!0}),_else:eA("else",eC),_finally:eA("finally"),_for:eA("for",{isLoop:!0}),_function:eA("function",eP),_if:eA("if"),_return:eA("return",eC),_switch:eA("switch"),_throw:eA("throw",eC),_try:eA("try"),_var:eA("var"),_const:eA("const"),_while:eA("while",{isLoop:!0}),_with:eA("with"),_new:eA("new",{beforeExpr:!0,startsExpr:!0}),_this:eA("this",eP),_super:eA("super",eP),_class:eA("class",eP),_extends:eA("extends",eC),_export:eA("export"),_import:eA("import",eP),_null:eA("null",eP),_true:eA("true",eP),_false:eA("false",eP),_in:eA("in",{beforeExpr:!0,binop:7}),_instanceof:eA("instanceof",{beforeExpr:!0,binop:7}),_typeof:eA("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:eA("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:eA("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},eT=/\r\n?|\n|\u2028|\u2029/,eL=RegExp(eT.source,"g");function eN(e){return 10===e||13===e||8232===e||8233===e}function ej(e,t,s){void 0===s&&(s=e.length);for(var i=t;i<s;i++){var r=e.charCodeAt(i);if(eN(r))return i<s-1&&13===r&&10===e.charCodeAt(i+1)?i+2:i+1}return -1}var eO=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,eV=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,eD=Object.prototype,eU=eD.hasOwnProperty,eM=eD.toString,eF=Object.hasOwn||function(e,t){return eU.call(e,t)},eB=Array.isArray||function(e){return"[object Array]"===eM.call(e)},e$=Object.create(null);function eq(e){return e$[e]||(e$[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function eW(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var eG=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,eH=function(e,t){this.line=e,this.column=t};eH.prototype.offset=function(e){return new eH(this.line,this.column+e)};var ez=function(e,t,s){this.start=t,this.end=s,null!==e.sourceFile&&(this.source=e.sourceFile)};function eK(e,t){for(var s=1,i=0;;){var r=ej(e,i,t);if(r<0)return new eH(s,t-i);++s,i=r}}var eQ={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},eX=!1;function eJ(e,t){return 2|(e?4:0)|(t?8:0)}var eY=function(e,t,s){this.options=e=function(e){var t,s={};for(var i in eQ)s[i]=e&&eF(e,i)?e[i]:eQ[i];if("latest"===s.ecmaVersion?s.ecmaVersion=1e8:null==s.ecmaVersion?(!eX&&"object"==typeof console&&console.warn&&(eX=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),s.ecmaVersion=11):s.ecmaVersion>=2015&&(s.ecmaVersion-=2009),null==s.allowReserved&&(s.allowReserved=s.ecmaVersion<5),e&&null!=e.allowHashBang||(s.allowHashBang=s.ecmaVersion>=14),eB(s.onToken)){var r=s.onToken;s.onToken=function(e){return r.push(e)}}return eB(s.onComment)&&(s.onComment=(t=s.onComment,function(e,i,r,n,a,o){var l={type:e?"Block":"Line",value:i,start:r,end:n};s.locations&&(l.loc=new ez(this,a,o)),s.ranges&&(l.range=[r,n]),t.push(l)})),s}(e),this.sourceFile=e.sourceFile,this.keywords=eq(ey[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var i="";!0!==e.allowReserved&&(i=em[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(i+=" await")),this.reservedWords=eq(i);var r=(i?i+" ":"")+em.strict;this.reservedWordsStrict=eq(r),this.reservedWordsStrictBind=eq(r+" "+em.strictBind),this.input=String(t),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(eT).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=eR.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(1),this.regexpState=null,this.privateNameStack=[]},eZ={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}};eY.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},eZ.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},eZ.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},eZ.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},eZ.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},eZ.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(64&t)>0||s||this.options.allowSuperOutsideMethod},eZ.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},eZ.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},eZ.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(258&t)>0||s},eZ.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},eY.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var s=this,i=0;i<e.length;i++)s=e[i](s);return s},eY.parse=function(e,t){return new this(t,e).parse()},eY.parseExpressionAt=function(e,t,s){var i=new this(s,e,t);return i.nextToken(),i.parseExpression()},eY.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(eY.prototype,eZ);var e1=eY.prototype,e0=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;e1.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){eV.lastIndex=e,e+=eV.exec(this.input)[0].length;var t=e0.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){eV.lastIndex=e+t[0].length;var s=eV.exec(this.input),i=s.index+s[0].length,r=this.input.charAt(i);return";"===r||"}"===r||eT.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(i+1))}e+=t[0].length,eV.lastIndex=e,e+=eV.exec(this.input)[0].length,";"===this.input[e]&&e++}},e1.eat=function(e){return this.type===e&&(this.next(),!0)},e1.isContextual=function(e){return this.type===eR.name&&this.value===e&&!this.containsEsc},e1.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},e1.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},e1.canInsertSemicolon=function(){return this.type===eR.eof||this.type===eR.braceR||eT.test(this.input.slice(this.lastTokEnd,this.start))},e1.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},e1.semicolon=function(){this.eat(eR.semi)||this.insertSemicolon()||this.unexpected()},e1.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},e1.expect=function(e){this.eat(e)||this.unexpected()},e1.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var e2=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};e1.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=t?e.parenthesizedAssign:e.parenthesizedBind;s>-1&&this.raiseRecoverable(s,t?"Assigning to rvalue":"Parenthesized pattern")}},e1.checkExpressionErrors=function(e,t){if(!e)return!1;var s=e.shorthandAssign,i=e.doubleProto;if(!t)return s>=0||i>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},e1.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")},e1.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var e3=eY.prototype;e3.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==eR.eof;){var s=this.parseStatement(null,!0,t);e.body.push(s)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var n=r[i];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var e4={kind:"loop"},e6={kind:"switch"};e3.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;eV.lastIndex=this.pos;var t=eV.exec(this.input),s=this.pos+t[0].length,i=this.input.charCodeAt(s);if(91===i||92===i)return!0;if(e)return!1;if(123===i||i>55295&&i<56320)return!0;if(ew(i,!0)){for(var r=s+1;e_(i=this.input.charCodeAt(r),!0);)++r;if(92===i||i>55295&&i<56320)return!0;var n=this.input.slice(s,r);if(!ex.test(n))return!0}return!1},e3.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;eV.lastIndex=this.pos;var e,t=eV.exec(this.input),s=this.pos+t[0].length;return!eT.test(this.input.slice(this.pos,s))&&"function"===this.input.slice(s,s+8)&&(s+8===this.input.length||!(e_(e=this.input.charCodeAt(s+8))||e>55295&&e<56320))},e3.parseStatement=function(e,t,s){var i,r=this.type,n=this.startNode();switch(this.isLet(e)&&(r=eR._var,i="let"),r){case eR._break:case eR._continue:return this.parseBreakContinueStatement(n,r.keyword);case eR._debugger:return this.parseDebuggerStatement(n);case eR._do:return this.parseDoStatement(n);case eR._for:return this.parseForStatement(n);case eR._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case eR._class:return e&&this.unexpected(),this.parseClass(n,!0);case eR._if:return this.parseIfStatement(n);case eR._return:return this.parseReturnStatement(n);case eR._switch:return this.parseSwitchStatement(n);case eR._throw:return this.parseThrowStatement(n);case eR._try:return this.parseTryStatement(n);case eR._const:case eR._var:return i=i||this.value,e&&"var"!==i&&this.unexpected(),this.parseVarStatement(n,i);case eR._while:return this.parseWhileStatement(n);case eR._with:return this.parseWithStatement(n);case eR.braceL:return this.parseBlock(!0,n);case eR.semi:return this.parseEmptyStatement(n);case eR._export:case eR._import:if(this.options.ecmaVersion>10&&r===eR._import){eV.lastIndex=this.pos;var a=eV.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(n,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'")),r===eR._import?this.parseImport(n):this.parseExport(n,s);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var c=this.value,p=this.parseExpression();if(r===eR.name&&"Identifier"===p.type&&this.eat(eR.colon))return this.parseLabeledStatement(n,c,p,e);return this.parseExpressionStatement(n,p)}},e3.parseBreakContinueStatement=function(e,t){var s="break"===t;this.next(),this.eat(eR.semi)||this.insertSemicolon()?e.label=null:this.type!==eR.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if((null==e.label||r.name===e.label.name)&&(null!=r.kind&&(s||"loop"===r.kind)||e.label&&s))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,s?"BreakStatement":"ContinueStatement")},e3.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},e3.parseDoStatement=function(e){return this.next(),this.labels.push(e4),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(eR._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(eR.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},e3.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(e4),this.enterScope(0),this.expect(eR.parenL),this.type===eR.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var s=this.isLet();if(this.type===eR._var||this.type===eR._const||s){var i=this.startNode(),r=s?"let":this.value;return(this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),(this.type===eR._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===i.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===eR._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var n=this.isContextual("let"),a=!1,o=new e2,l=this.parseExpression(!(t>-1)||"await",o);return this.type===eR._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===eR._in?t>-1&&this.unexpected(t):e.await=t>-1),n&&a&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,o),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},e3.parseFunctionStatement=function(e,t,s){return this.next(),this.parseFunction(e,e9|(s?0:e8),!1,t)},e3.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(eR._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},e3.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(eR.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},e3.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(eR.braceL),this.labels.push(e6),this.enterScope(0);for(var t,s=!1;this.type!==eR.braceR;)if(this.type===eR._case||this.type===eR._default){var i=this.type===eR._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,t.test=null),this.expect(eR.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")},e3.parseThrowStatement=function(e){return this.next(),eT.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 e5=[];e3.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(eR.parenR),e},e3.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===eR._catch){var t=this.startNode();this.next(),this.eat(eR.parenL)?t.param=this.parseCatchClauseParam():(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(eR._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},e3.parseVarStatement=function(e,t,s){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")},e3.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(e4),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},e3.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")},e3.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},e3.parseLabeledStatement=function(e,t,s,i){for(var r=0,n=this.labels;r<n.length;r+=1)n[r].name===t&&this.raise(s.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===eR._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")},e3.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},e3.parseBlock=function(e,t,s){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(eR.braceL),e&&this.enterScope(0);this.type!==eR.braceR;){var i=this.parseStatement(null);t.body.push(i)}return s&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},e3.parseFor=function(e,t){return e.init=t,this.expect(eR.semi),e.test=this.type===eR.semi?null:this.parseExpression(),this.expect(eR.semi),e.update=this.type===eR.parenR?null:this.parseExpression(),this.expect(eR.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},e3.parseForIn=function(e,t){var s=this.type===eR._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(eR.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")},e3.parseVar=function(e,t,s,i){for(e.declarations=[],e.kind=s;;){var r=this.startNode();if(this.parseVarId(r,s),this.eat(eR.eq)?r.init=this.parseMaybeAssign(t):i||"const"!==s||this.type===eR._in||this.options.ecmaVersion>=6&&this.isContextual("of")?i||"Identifier"===r.id.type||t&&(this.type===eR._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(eR.comma))break}return e},e3.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var e9=1,e8=2;function e7(e,t){var s=e.computed,i=e.key;return!s&&("Identifier"===i.type&&i.name===t||"Literal"===i.type&&i.value===t)}e3.parseFunction=function(e,t,s,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===eR.star&&t&e8&&this.unexpected(),e.generator=this.eat(eR.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&e9&&(e.id=4&t&&this.type!==eR.name?null:this.parseIdent(),e.id&&!(t&e8)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(eJ(e.async,e.generator)),t&e9||(e.id=this.type===eR.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,r),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&e9?"FunctionDeclaration":"FunctionExpression")},e3.parseFunctionParams=function(e){this.expect(eR.parenL),e.params=this.parseBindingList(eR.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},e3.parseClass=function(e,t){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(eR.braceL);this.type!==eR.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(e,t){var s=t.key.name,i=e[s],r="true";return("MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(r=(t.static?"s":"i")+t.kind),"iget"===i&&"iset"===r||"iset"===i&&"iget"===r||"sget"===i&&"sset"===r||"sset"===i&&"sget"===r)?(e[s]="true",!1):!!i||(e[s]=r,!1)}(i,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=s,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},e3.parseClassElement=function(e){if(this.eat(eR.semi))return null;var t=this.options.ecmaVersion,s=this.startNode(),i="",r=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(eR.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===eR.star?o=!0:i="static"}if(s.static=o,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===eR.star)&&!this.canInsertSemicolon()?n=!0:i="async"),!i&&(t>=9||!n)&&this.eat(eR.star)&&(r=!0),!i&&!n&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:i=l)}if(i?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=i,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),t<13||this.type===eR.parenL||"method"!==a||r||n){var c=!s.static&&e7(s,"constructor");c&&"method"!==a&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=c?"constructor":a,this.parseClassMethod(s,r,n,c&&e)}else this.parseClassField(s);return s},e3.isClassElementNameStart=function(){return this.type===eR.name||this.type===eR.privateId||this.type===eR.num||this.type===eR.string||this.type===eR.bracketL||this.type.keyword},e3.parseClassElementName=function(e){this.type===eR.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)},e3.parseClassMethod=function(e,t,s,i){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),s&&this.raise(r.start,"Constructor can't be an async method")):e.static&&e7(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,s,i);return"get"===e.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===e.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},e3.parseClassField=function(e){if(e7(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&e7(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(eR.eq)){var t=this.currentThisScope(),s=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=s}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},e3.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==eR.braceR;){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},e3.parseClassId=function(e,t){this.type===eR.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},e3.parseClassSuper=function(e){e.superClass=this.eat(eR._extends)?this.parseExprSubscripts(null,!1):null},e3.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},e3.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,s=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=0===i?null:this.privateNameStack[i-1],n=0;n<s.length;++n){var a=s[n];eF(t,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},e3.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==eR.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},e3.parseExport=function(e,t){if(this.next(),this.eat(eR.star))return this.parseExportAllDeclaration(e,t);if(this.eat(eR._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==eR.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,i=e.specifiers;s<i.length;s+=1){var r=i[s];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},e3.parseExportDeclaration=function(e){return this.parseStatement(null)},e3.parseExportDefaultDeclaration=function(){if(this.type===eR._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|e9,!1,e)}if(this.type===eR._class){var s=this.startNode();return this.parseClass(s,"nullableID")}var i=this.parseMaybeAssign();return this.semicolon(),i},e3.checkExport=function(e,t,s){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),eF(e,t)&&this.raiseRecoverable(s,"Duplicate export '"+t+"'"),e[t]=!0)},e3.checkPatternExport=function(e,t){var s=t.type;if("Identifier"===s)this.checkExport(e,t,t.start);else if("ObjectPattern"===s)for(var i=0,r=t.properties;i<r.length;i+=1){var n=r[i];this.checkPatternExport(e,n)}else if("ArrayPattern"===s)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===s?this.checkPatternExport(e,t.value):"AssignmentPattern"===s?this.checkPatternExport(e,t.left):"RestElement"===s&&this.checkPatternExport(e,t.argument)},e3.checkVariableExport=function(e,t){if(e)for(var s=0;s<t.length;s+=1){var i=t[s];this.checkPatternExport(e,i.id)}},e3.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},e3.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},e3.parseExportSpecifiers=function(e){var t=[],s=!0;for(this.expect(eR.braceL);!this.eat(eR.braceR);){if(s)s=!1;else if(this.expect(eR.comma),this.afterTrailingComma(eR.braceR))break;t.push(this.parseExportSpecifier(e))}return t},e3.parseImport=function(e){return this.next(),this.type===eR.string?(e.specifiers=e5,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===eR.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},e3.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},e3.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},e3.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},e3.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===eR.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(eR.comma)))return e;if(this.type===eR.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(eR.braceL);!this.eat(eR.braceR);){if(t)t=!1;else if(this.expect(eR.comma),this.afterTrailingComma(eR.braceR))break;e.push(this.parseImportSpecifier())}return e},e3.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===eR.string){var e=this.parseLiteral(this.value);return eG.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},e3.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)},e3.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var te=eY.prototype;te.toAssignable=function(e,t,s){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",s&&this.checkPatternErrors(s,!0);for(var i=0,r=e.properties;i<r.length;i+=1){var n=r[i];this.toAssignable(n,t),"RestElement"===n.type&&("ArrayPattern"===n.argument.type||"ObjectPattern"===n.argument.type)&&this.raise(n.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",s&&this.checkPatternErrors(s,!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,s);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 s&&this.checkPatternErrors(s,!0);return e},te.toAssignableList=function(e,t){for(var s=e.length,i=0;i<s;i++){var r=e[i];r&&this.toAssignable(r,t)}if(s){var n=e[s-1];6===this.options.ecmaVersion&&t&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return e},te.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},te.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==eR.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},te.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case eR.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(eR.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case eR.braceL:return this.parseObj(!0)}return this.parseIdent()},te.parseBindingList=function(e,t,s,i){for(var r=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(eR.comma),t&&this.type===eR.comma)r.push(null);else if(s&&this.afterTrailingComma(e))break;else if(this.type===eR.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===eR.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(i));return r},te.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},te.parseBindingListItem=function(e){return e},te.parseMaybeDefault=function(e,t,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(eR.eq))return s;var i=this.startNodeAt(e,t);return i.left=s,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},te.checkLValSimple=function(e,t,s){void 0===t&&(t=0);var i=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),s&&(eF(s,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),s[e.name]=!0),5!==t&&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":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,s);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}},te.checkLValPattern=function(e,t,s){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var i=0,r=e.properties;i<r.length;i+=1){var n=r[i];this.checkLValInnerPattern(n,t,s)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,s)}break;default:this.checkLValSimple(e,t,s)}},te.checkLValInnerPattern=function(e,t,s){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,s);break;case"RestElement":this.checkLValPattern(e.argument,t,s);break;default:this.checkLValPattern(e,t,s)}};var tt=function(e,t,s,i,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!s,this.override=i,this.generator=!!r},ts={b_stat:new tt("{",!1),b_expr:new tt("{",!0),b_tmpl:new tt("${",!1),p_stat:new tt("(",!1),p_expr:new tt("(",!0),q_tmpl:new tt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new tt("function",!1),f_expr:new tt("function",!0),f_expr_gen:new tt("function",!0,!1,null,!0),f_gen:new tt("function",!1,!1,null,!0)},ti=eY.prototype;ti.initialContext=function(){return[ts.b_stat]},ti.curContext=function(){return this.context[this.context.length-1]},ti.braceIsBlock=function(e){var t=this.curContext();return t===ts.f_expr||t===ts.f_stat||(e===eR.colon&&(t===ts.b_stat||t===ts.b_expr)?!t.isExpr:e===eR._return||e===eR.name&&this.exprAllowed?eT.test(this.input.slice(this.lastTokEnd,this.start)):e===eR._else||e===eR.semi||e===eR.eof||e===eR.parenR||e===eR.arrow||(e===eR.braceL?t===ts.b_stat:e!==eR._var&&e!==eR._const&&e!==eR.name&&!this.exprAllowed))},ti.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},ti.updateContext=function(e){var t,s=this.type;s.keyword&&e===eR.dot?this.exprAllowed=!1:(t=s.updateContext)?t.call(this,e):this.exprAllowed=s.beforeExpr},ti.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},eR.parenR.updateContext=eR.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===ts.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},eR.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ts.b_stat:ts.b_expr),this.exprAllowed=!0},eR.dollarBraceL.updateContext=function(){this.context.push(ts.b_tmpl),this.exprAllowed=!0},eR.parenL.updateContext=function(e){var t=e===eR._if||e===eR._for||e===eR._with||e===eR._while;this.context.push(t?ts.p_stat:ts.p_expr),this.exprAllowed=!0},eR.incDec.updateContext=function(){},eR._function.updateContext=eR._class.updateContext=function(e){!e.beforeExpr||e===eR._else||e===eR.semi&&this.curContext()!==ts.p_stat||e===eR._return&&eT.test(this.input.slice(this.lastTokEnd,this.start))||(e===eR.colon||e===eR.braceL)&&this.curContext()===ts.b_stat?this.context.push(ts.f_stat):this.context.push(ts.f_expr),this.exprAllowed=!1},eR.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},eR.backQuote.updateContext=function(){this.curContext()===ts.q_tmpl?this.context.pop():this.context.push(ts.q_tmpl),this.exprAllowed=!1},eR.star.updateContext=function(e){if(e===eR._function){var t=this.context.length-1;this.context[t]===ts.f_expr?this.context[t]=ts.f_expr_gen:this.context[t]=ts.f_gen}this.exprAllowed=!0},eR.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==eR.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var tr=eY.prototype;tr.checkPropClash=function(e,t,s){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==e.type)&&(!(this.options.ecmaVersion>=6)||!e.computed&&!e.method&&!e.shorthand)){var i,r=e.key;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===i&&"init"===n&&(t.proto&&(s?s.doubleProto<0&&(s.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}var a=t[i="$"+i];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=t[i]={init:!1,get:!1,set:!1},a[n]=!0}},tr.parseExpression=function(e,t){var s=this.start,i=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===eR.comma){var n=this.startNodeAt(s,i);for(n.expressions=[r];this.eat(eR.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return r},tr.parseMaybeAssign=function(e,t,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,r=-1,n=-1,a=-1;t?(r=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new e2,i=!0);var o=this.start,l=this.startLoc;(this.type===eR.parenL||this.type===eR.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(s&&(c=s.call(this,c,o,l)),this.type.isAssign){var p=this.startNodeAt(o,l);return p.operator=this.value,this.type===eR.eq&&(c=this.toAssignable(c,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===eR.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return i&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),n>-1&&(t.trailingComma=n),c},tr.parseMaybeConditional=function(e,t){var s=this.start,i=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(eR.question)){var n=this.startNodeAt(s,i);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(eR.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return r},tr.parseExprOps=function(e,t){var s=this.start,i=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)?r:r.start===s&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,s,i,-1,e)},tr.parseExprOp=function(e,t,s,i,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==eR._in)&&n>i){var a=this.type===eR.logicalOR||this.type===eR.logicalAND,o=this.type===eR.coalesce;o&&(n=eR.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,p,n,r),u=this.buildBinary(t,s,e,h,l,a||o);return(a&&this.type===eR.coalesce||o&&(this.type===eR.logicalOR||this.type===eR.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,s,i,r)}return e},tr.buildBinary=function(e,t,s,i,r,n){"PrivateIdentifier"===i.type&&this.raise(i.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=s,a.operator=r,a.right=i,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},tr.parseMaybeUnary=function(e,t,s,i){var r,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(i),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===eR.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,i),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,r=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==eR.privateId){if(r=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(i||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==eR._in&&this.unexpected();return!s&&this.eat(eR.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,r,this.parseMaybeUnary(null,!1,!1,i),"**",!1):r},tr.parseExprSubscripts=function(e,t){var s=this.start,i=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,s,i,!1,t);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},tr.parseSubscripts=function(e,t,s,i,r){for(var n=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,a=!1;;){var o=this.parseSubscript(e,t,s,i,n,a,r);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,s);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},tr.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(eR.arrow)},tr.parseSubscriptAsyncArrow=function(e,t,s,i){return this.parseArrowExpression(this.startNodeAt(e,t),s,!0,i)},tr.parseSubscript=function(e,t,s,i,r,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(eR.questionDot);i&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(eR.bracketL);if(c||l&&this.type!==eR.parenL&&this.type!==eR.backQuote||this.eat(eR.dot)){var p=this.startNodeAt(t,s);p.object=e,c?(p.property=this.parseExpression(),this.expect(eR.bracketR)):this.type===eR.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!i&&this.eat(eR.parenL)){var h=new e2,u=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(eR.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=f,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(t,s,m,a);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(t,s);g.callee=e,g.arguments=m,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===eR.backQuote){(l||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,s);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},tr.parseExprAtom=function(e,t,s){this.type===eR.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case eR._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type!==eR.parenL||this.allowDirectSuper||this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==eR.dot&&this.type!==eR.bracketL&&this.type!==eR.parenL&&this.unexpected(),this.finishNode(i,"Super");case eR._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case eR.name:var n=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(eR._function))return this.overrideContext(ts.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(eR.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===eR.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(eR.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[l],!0,t)}return l;case eR.regexp:var c=this.value;return(i=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},i;case eR.num:case eR.string:return this.parseLiteral(this.value);case eR._null:case eR._true:case eR._false:return(i=this.startNode()).value=this.type===eR._null?null:this.type===eR._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case eR.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case eR.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(eR.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case eR.braceL:return this.overrideContext(ts.b_expr),this.parseObj(!1,e);case eR._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case eR._class:return this.parseClass(this.startNode(),!1);case eR._new:return this.parseNew();case eR.backQuote:return this.parseTemplate();case eR._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(s);return this.unexpected();default:return this.parseExprAtomDefault()}},tr.parseExprAtomDefault=function(){this.unexpected()},tr.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===eR.parenL&&!e)return this.parseDynamicImport(t);if(this.type===eR.dot){var s=this.startNodeAt(t.start,t.loc&&t.loc.start);return s.name="import",t.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(t)}this.unexpected()},tr.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(eR.parenR)){var t=this.start;this.eat(eR.comma)&&this.eat(eR.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},tr.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")},tr.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")},tr.parseParenExpression=function(){this.expect(eR.parenL);var e=this.parseExpression();return this.expect(eR.parenR),e},tr.shouldParseArrow=function(e){return!this.canInsertSemicolon()},tr.parseParenAndDistinguishExpression=function(e,t){var s,i=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,h=!1,u=new e2,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==eR.parenR;){if(p?p=!1:this.expect(eR.comma),n&&this.afterTrailingComma(eR.parenR,!0)){h=!0;break}if(this.type===eR.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===eR.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(eR.parenR),e&&this.shouldParseArrow(c)&&this.eat(eR.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(i,r,c,t);(!c.length||h)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?((s=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(s,"SequenceExpression",m,g)):s=c[0]}else s=this.parseParenExpression();if(!this.options.preserveParens)return s;var y=this.startNodeAt(i,r);return y.expression=s,this.finishNode(y,"ParenthesizedExpression")},tr.parseParenItem=function(e){return e},tr.parseParenArrowList=function(e,t,s,i){return this.parseArrowExpression(this.startNodeAt(e,t),s,!1,i)};var tn=[];tr.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===eR.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var s=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'"),s&&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 i=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(eR.parenL)?e.arguments=this.parseExprList(eR.parenR,this.options.ecmaVersion>=8,!1):e.arguments=tn,this.finishNode(e,"NewExpression")},tr.parseTemplateElement=function(e){var t=e.isTagged,s=this.startNode();return this.type===eR.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===eR.backQuote,this.finishNode(s,"TemplateElement")},tr.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var s=this.startNode();this.next(),s.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(s.quasis=[i];!i.tail;)this.type===eR.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(eR.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(eR.braceR),s.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(s,"TemplateLiteral")},tr.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===eR.name||this.type===eR.num||this.type===eR.string||this.type===eR.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===eR.star)&&!eT.test(this.input.slice(this.lastTokEnd,this.start))},tr.parseObj=function(e,t){var s=this.startNode(),i=!0,r={};for(s.properties=[],this.next();!this.eat(eR.braceR);){if(i)i=!1;else if(this.expect(eR.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(eR.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),s.properties.push(n)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")},tr.parseProperty=function(e,t){var s,i,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(eR.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===eR.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===eR.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(r=this.start,n=this.startLoc),e||(s=this.eat(eR.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(a)?(i=!0,s=this.options.ecmaVersion>=9&&this.eat(eR.star),this.parsePropertyName(a)):i=!1,this.parsePropertyValue(a,e,s,i,r,n,t,o),this.finishNode(a,"Property")},tr.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var s=e.value.start;"get"===e.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")},tr.parsePropertyValue=function(e,t,s,i,r,n,a,o){(s||i)&&this.type===eR.colon&&this.unexpected(),this.eat(eR.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===eR.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(s,i)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===eR.comma||this.type===eR.braceR||this.type===eR.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((s||i)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===eR.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((s||i)&&this.unexpected(),this.parseGetterSetter(e))},tr.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(eR.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(eR.bracketR),e.key;e.computed=!1}return e.key=this.type===eR.num||this.type===eR.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tr.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},tr.parseMethod=function(e,t,s){var i=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|eJ(t,i.generator)|(s?128:0)),this.expect(eR.parenL),i.params=this.parseBindingList(eR.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")},tr.parseArrowExpression=function(e,t,s,i){var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|eJ(s,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},tr.parseFunctionBody=function(e,t,s,i){var r=t&&this.type!==eR.braceL,n=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},tr.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},tr.checkParams=function(e,t){for(var s=Object.create(null),i=0,r=e.params;i<r.length;i+=1){var n=r[i];this.checkLValInnerPattern(n,1,t?null:s)}},tr.parseExprList=function(e,t,s,i){for(var r=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(eR.comma),t&&this.afterTrailingComma(e))break;var a=void 0;s&&this.type===eR.comma?a=null:this.type===eR.ellipsis?(a=this.parseSpread(i),i&&this.type===eR.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):a=this.parseMaybeAssign(!1,i),r.push(a)}return r},tr.checkUnreserved=function(e){var t=e.start,s=e.end,i=e.name;this.inGenerator&&"yield"===i&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===i&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===i&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===i||"await"===i)&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(t,s).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(i)&&(this.inAsync||"await"!==i||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))},tr.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},tr.parseIdentNode=function(){var e=this.startNode();return this.type===eR.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=eR.name):this.unexpected(),e},tr.parsePrivateIdent=function(){var e=this.startNode();return this.type===eR.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(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},tr.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===eR.semi||this.canInsertSemicolon()||this.type!==eR.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(eR.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},tr.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 ta=eY.prototype;ta.raise=function(e,t){var s=eK(this.input,e),i=SyntaxError(t+=" ("+s.line+":"+s.column+")");throw i.pos=e,i.loc=s,i.raisedAt=this.pos,i},ta.raiseRecoverable=ta.raise,ta.curPosition=function(){if(this.options.locations)return new eH(this.curLine,this.pos-this.lineStart)};var to=eY.prototype,tl=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};to.enterScope=function(e){this.scopeStack.push(new tl(e))},to.exitScope=function(){this.scopeStack.pop()},to.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},to.declareName=function(e,t,s){var i=!1;if(2===t){var r=this.currentScope();i=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&1&r.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var n=this.currentScope();i=this.treatFunctionsAsVar?n.lexical.indexOf(e)>-1:n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){i=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}i&&this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")},to.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},to.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},to.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},to.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var tc=function(e,t,s){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new ez(e,s)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},tp=eY.prototype;function th(e,t,s,i){return e.type=t,e.end=s,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=s),e}tp.startNode=function(){return new tc(this,this.start,this.startLoc)},tp.startNodeAt=function(e,t){return new tc(this,e,t)},tp.finishNode=function(e,t){return th.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},tp.finishNodeAt=function(e,t,s,i){return th.call(this,e,t,s,i)},tp.copyNode=function(e){var t=new tc(this,e.start,this.startLoc);for(var s in e)t[s]=e[s];return t};for(var tu="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",tf=tu+" Extended_Pictographic",td=tf+" EBase EComp EMod EPres ExtPict",tm={9:tu,10:tf,11:tf,12:td,13:td,14:td},tg={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},ty="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",tx="Adlam Adlm 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 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",tv=tx+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tk=tv+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tb=tk+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tw=tb+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",t_={9:tx,10:tv,11:tk,12:tb,13:tw,14:tw+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},tS={},tE=0,tC=[9,10,11,12,13,14];tE<tC.length;tE+=1)!function(e){var t=tS[e]={binary:eq(tm[e]+" "+ty),binaryOfStrings:eq(tg[e]),nonBinary:{General_Category:eq(ty),Script:eq(t_[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}(tC[tE]);var tP=eY.prototype,tI=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tS[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!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 tA(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function tR(e){return e>=65&&e<=90||e>=97&&e<=122}function tT(e){return tR(e)||95===e}function tL(e){return e>=48&&e<=57}function tN(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function tj(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function tO(e){return e>=48&&e<=55}tI.prototype.reset=function(e,t,s){var i=-1!==s.indexOf("v"),r=-1!==s.indexOf("u");this.start=0|e,this.source=t+"",this.flags=s,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},tI.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},tI.prototype.at=function(e,t){void 0===t&&(t=!1);var s=this.source,i=s.length;if(e>=i)return -1;var r=s.charCodeAt(e);if(!(t||this.switchU)||r<=55295||r>=57344||e+1>=i)return r;var n=s.charCodeAt(e+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},tI.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var s=this.source,i=s.length;if(e>=i)return i;var r,n=s.charCodeAt(e);return!(t||this.switchU)||n<=55295||n>=57344||e+1>=i||(r=s.charCodeAt(e+1))<56320||r>57343?e+1:e+2},tI.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},tI.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},tI.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},tI.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},tI.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var s=this.pos,i=0;i<e.length;i+=1){var r=e[i],n=this.at(s,t);if(-1===n||n!==r)return!1;s=this.nextIndex(s,t)}return this.pos=s,!0},tP.validateRegExpFlags=function(e){for(var t=e.validFlags,s=e.flags,i=!1,r=!1,n=0;n<s.length;n++){var a=s.charAt(n);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),s.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(i=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(e.start,"Invalid regular expression flag")},tP.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},tP.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,s=e.backReferenceNames;t<s.length;t+=1){var i=s[t];-1===e.groupNames.indexOf(i)&&e.raise("Invalid named capture referenced")}},tP.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")},tP.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},tP.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)},tP.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 s=!1;if(this.options.ecmaVersion>=9&&(s=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!s,!0}return e.pos=t,!1},tP.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},tP.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},tP.regexp_eatBracedQuantifier=function(e,t){var s=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return -1!==r&&r<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=s}return!1},tP.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)},tP.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},tP.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},tP.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},tP.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)},tP.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},tP.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!tA(t)&&(e.lastIntValue=t,e.advance(),!0)},tP.regexp_eatPatternCharacters=function(e){for(var t=e.pos,s=0;-1!==(s=e.current())&&!tA(s);)e.advance();return e.pos!==t},tP.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)},tP.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},tP.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},tP.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=eW(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=eW(e.lastIntValue);return!0}return!1},tP.regexp_eatRegExpIdentifierStart=function(e){var t,s=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return(e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),ew(t=r,!0)||36===t||95===t)?(e.lastIntValue=r,!0):(e.pos=s,!1)},tP.regexp_eatRegExpIdentifierPart=function(e){var t,s=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return(e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),e_(t=r,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=r,!0):(e.pos=s,!1)},tP.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)},tP.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var s=e.lastIntValue;if(e.switchU)return s>e.maxBackReference&&(e.maxBackReference=s),!0;if(s<=e.numCapturingParens)return!0;e.pos=t}return!1},tP.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},tP.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)},tP.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},tP.regexp_eatZero=function(e){return!(48!==e.current()||tL(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},tP.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)},tP.regexp_eatControlLetter=function(e){var t=e.current();return!!tR(t)&&(e.lastIntValue=t%32,e.advance(),!0)},tP.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var s=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r,n=e.lastIntValue;if(i&&n>=55296&&n<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=n}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(r=e.lastIntValue)>=0&&r<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=s}return!1},tP.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)},tP.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},tP.regexp_eatCharacterClassEscape=function(e){var t,s=e.current();if(100===s||68===s||115===s||83===s||119===s||87===s)return e.lastIntValue=-1,e.advance(),1;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===s)||112===s)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(t=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===t&&e.raise("Invalid property name"),t;e.raise("Invalid property name")}return 0},tP.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var s=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,s,i),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return 0},tP.regexp_validateUnicodePropertyNameAndValue=function(e,t,s){eF(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(s)||e.raise("Invalid property value")},tP.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},tP.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";tT(t=e.current());)e.lastStringValue+=eW(t),e.advance();return""!==e.lastStringValue},tP.regexp_eatUnicodePropertyValue=function(e){var t,s=0;for(e.lastStringValue="";tT(t=s=e.current())||tL(t);)e.lastStringValue+=eW(s),e.advance();return""!==e.lastStringValue},tP.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},tP.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),s=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===s&&e.raise("Negated character class may contain strings"),!0}return!1},tP.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},tP.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var s=e.lastIntValue;e.switchU&&(-1===t||-1===s)&&e.raise("Invalid character class"),-1!==t&&-1!==s&&t>s&&e.raise("Range out of order in character class")}}},tP.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var s=e.current();(99===s||tO(s))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return 93!==i&&(e.lastIntValue=i,e.advance(),!0)},tP.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)},tP.regexp_classSetExpression=function(e){var t,s=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(s=2);for(var i=e.pos;e.eatChars([38,38]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){2!==t&&(s=1);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return s;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return s}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return s;2===t&&(s=2)}},tP.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return -1!==s&&-1!==i&&s>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},tP.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},tP.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var s=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return s&&2===i&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},tP.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var s=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return s}else e.raise("Invalid escape");e.pos=t}return null},tP.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},tP.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},tP.regexp_eatClassSetCharacter=function(e){var t,s=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=s,!1));var i=e.current();return!(i<0||i===e.lookahead()&&(33===i||i>=35&&i<=38||i>=42&&i<=44||46===i||i>=58&&i<=64||94===i||96===i||126===i)||40===(t=i)||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125)&&(e.advance(),e.lastIntValue=i,!0)},tP.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!(33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=t,e.advance(),!0)},tP.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!tL(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},tP.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},tP.regexp_eatDecimalDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tL(s=e.current());)e.lastIntValue=10*e.lastIntValue+(s-48),e.advance();return e.pos!==t},tP.regexp_eatHexDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tN(s=e.current());)e.lastIntValue=16*e.lastIntValue+tj(s),e.advance();return e.pos!==t},tP.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var s=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*s+e.lastIntValue:e.lastIntValue=8*t+s}else e.lastIntValue=t;return!0}return!1},tP.regexp_eatOctalDigit=function(e){var t=e.current();return tO(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},tP.regexp_eatFixedHexDigits=function(e,t){var s=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var r=e.current();if(!tN(r))return e.pos=s,!1;e.lastIntValue=16*e.lastIntValue+tj(r),e.advance()}return!0};var tV=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ez(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},tD=eY.prototype;function tU(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}tD.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 tV(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},tD.getToken=function(){return this.next(),new tV(this)},"undefined"!=typeof Symbol&&(tD[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===eR.eof,value:t}}}}),tD.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(eR.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},tD.readToken=function(e){return ew(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},tD.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},tD.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var i=void 0,r=t;(i=ej(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,s),t,this.pos,e,this.curPosition())},tD.skipLineComment=function(e){for(var t=this.pos,s=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!eN(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,s,this.curPosition())},tD.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&&eO.test(String.fromCharCode(e)))++this.pos;else break e}}},tD.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=e,this.value=t,this.updateContext(s)},tD.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(eR.ellipsis)):(++this.pos,this.finishToken(eR.dot))},tD.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(eR.assign,2):this.finishOp(eR.slash,1)},tD.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),s=1,i=42===e?eR.star:eR.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++s,i=eR.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(eR.assign,s+1):this.finishOp(i,s)},tD.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(eR.assign,3):this.finishOp(124===e?eR.logicalOR:eR.logicalAND,2):61===t?this.finishOp(eR.assign,2):this.finishOp(124===e?eR.bitwiseOR:eR.bitwiseAND,1)},tD.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(eR.assign,2):this.finishOp(eR.bitwiseXOR,1)},tD.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||eT.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(eR.incDec,2):61===t?this.finishOp(eR.assign,2):this.finishOp(eR.plusMin,1)},tD.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),s=1;return t===e?(s=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s))?this.finishOp(eR.assign,s+1):this.finishOp(eR.bitShift,s):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(s=2),this.finishOp(eR.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tD.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(eR.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(eR.arrow)):this.finishOp(61===e?eR.eq:eR.prefix,1)},tD.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(eR.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(eR.assign,3):this.finishOp(eR.coalesce,2)}return this.finishOp(eR.question,1)},tD.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,ew(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(eR.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+eW(t)+"'")},tD.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(eR.parenL);case 41:return++this.pos,this.finishToken(eR.parenR);case 59:return++this.pos,this.finishToken(eR.semi);case 44:return++this.pos,this.finishToken(eR.comma);case 91:return++this.pos,this.finishToken(eR.bracketL);case 93:return++this.pos,this.finishToken(eR.bracketR);case 123:return++this.pos,this.finishToken(eR.braceL);case 125:return++this.pos,this.finishToken(eR.braceR);case 58:return++this.pos,this.finishToken(eR.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(eR.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(eR.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+eW(e)+"'")},tD.finishOp=function(e,t){var s=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,s)},tD.readRegexp=function(){for(var e,t,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(eT.test(i)&&this.raise(s,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++this.pos}var r=this.input.slice(s,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new tI(this));o.reset(s,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(r,a)}catch(e){}return this.finishToken(eR.regexp,{pattern:r,flags:a,value:l})},tD.readInt=function(e,t,s){for(var i=this.options.ecmaVersion>=12&&void 0===t,r=s&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(i&&95===p){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;continue}if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}return(i&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=t&&this.pos-n!==t)?null:a},tD.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var s=this.readInt(e);return null==s&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s=tU(this.input.slice(t,this.pos)),++this.pos):ew(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(eR.num,s)},tD.readNumber=function(e){var t,s=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(s,"Invalid number");var i=this.pos-s>=2&&48===this.input.charCodeAt(s);i&&this.strict&&this.raise(s,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===r){var n=tU(this.input.slice(s,this.pos));return++this.pos,ew(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(eR.num,n)}i&&/[89]/.test(this.input.slice(s,this.pos))&&(i=!1),46!==r||i||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||i||((43===(r=this.input.charCodeAt(++this.pos))||45===r)&&++this.pos,null===this.readInt(10)&&this.raise(s,"Invalid number")),ew(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(t=this.input.slice(s,this.pos),i?parseInt(t,8):parseFloat(t.replace(/_/g,"")));return this.finishToken(eR.num,a)},tD.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},tD.readString=function(e){for(var t="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;92===i?(t+=this.input.slice(s,this.pos)+this.readEscapedChar(!1),s=this.pos):8232===i||8233===i?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(eN(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(s,this.pos++),this.finishToken(eR.string,t)};var tM={};tD.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===tM)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},tD.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tM;this.raise(e,t)},tD.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===eR.template||this.type===eR.invalidTemplate)){if(36===s)return this.pos+=2,this.finishToken(eR.dollarBraceL);return++this.pos,this.finishToken(eR.backQuote)}return e+=this.input.slice(t,this.pos),this.finishToken(eR.template,e)}if(92===s)e+=this.input.slice(t,this.pos)+this.readEscapedChar(!0),t=this.pos;else if(eN(s)){switch(e+=this.input.slice(t,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},tD.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(eR.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},tD.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 eW(this.readCodePoint());case 116:return" ";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 s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(r=parseInt(i=i.slice(0,-1),8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),("0"!==i||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}if(eN(t))return"";return String.fromCharCode(t)}},tD.readHexChar=function(e){var t=this.pos,s=this.readInt(16,e);return null===s&&this.invalidStringToken(t,"Bad character escape sequence"),s},tD.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,s=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(e_(r,i))this.pos+=r<=65535?1:2;else if(92===r){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?ew:e_)(a,i)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=eW(a),s=this.pos}else break;t=!1}return e+this.input.slice(s,this.pos)},tD.readWord=function(){var e=this.readWord1(),t=eR.name;return this.keywords.test(e)&&(t=eI[e]),this.finishToken(t,e)},eY.acorn={Parser:eY,version:"8.11.3",defaultOptions:eQ,Position:eH,SourceLocation:ez,getLineInfo:eK,Node:tc,TokenType:eS,tokTypes:eR,keywordTypes:eI,TokContext:tt,tokContexts:ts,isIdentifierChar:e_,isIdentifierStart:ew,Token:tV,isNewLine:eN,lineBreak:eT,lineBreakG:eL,nonASCIIwhitespace:eO};const tF=/^\.?\//;var tB=function(e,...t){let s=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(s){let t=e.replace(tF,"");s=function(e="",t){return e.endsWith("/")?e:e+"/"}(s)+t}else s=e;return s};const t$=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,tq=new Set(E.builtinModules);function tW(e){return e.replace(/\\/g,"/")}const tG={}.hasOwnProperty,tH=/^([A-Z][a-z\d]*)+$/,tz=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),tK={};function tQ(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const tX=new Map;function tJ(e,t,s){return tX.set(e,t),function(...t){let i=Error.stackTraceLimit;tY()&&(Error.stackTraceLimit=0);let r=new s;tY()&&(Error.stackTraceLimit=i);let n=function(e,t,s){let i=tX.get(e);if(C(void 0!==i,"expected `message` to be found"),"function"==typeof i)return C(i.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i.length}).`),Reflect.apply(i,s,t);let r=/%[dfijoOs]/g,n=0;for(;null!==r.exec(i);)n++;return(C(n===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n}).`),0===t.length)?i:(t.unshift(i),Reflect.apply(I.format,null,t))}(e,t,r);return Object.defineProperties(r,{message:{value:n,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),tZ(r),r.code=e,r}}function tY(){try{if(P.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):tG.call(e,"writable")&&void 0!==e.writable?e.writable:void 0!==e.set}tK.ERR_INVALID_ARG_TYPE=tJ("ERR_INVALID_ARG_TYPE",(e,t,s)=>{C("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";if(e.endsWith(" argument"))i+=`${e} `;else{let t=e.includes(".")?"property":"argument";i+=`"${e}" ${t} `}i+="must be ";let r=[],n=[],a=[];for(let e of t)C("string"==typeof e,"All expected entries have to be of type string"),tz.has(e)?r.push(e.toLowerCase()):null===tH.exec(e)?(C("object"!==e,'The value "object" should be written as "Object"'),a.push(e)):n.push(e);if(n.length>0){let e=r.indexOf("object");-1!==e&&(r.slice(e,1),n.push("Object"))}return r.length>0&&(i+=`${r.length>1?"one of type":"of type"} ${tQ(r,"or")}`,(n.length>0||a.length>0)&&(i+=" or ")),n.length>0&&(i+=`an instance of ${tQ(n,"or")}`,a.length>0&&(i+=" or ")),a.length>0&&(a.length>1?i+=`one of ${tQ(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`)),i+=`. Received ${function(e){if(null==e)return String(e);if("function"==typeof e&&e.name)return`function ${e.name}`;if("object"==typeof e)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${I.inspect(e,{depth:-1})}`;let t=I.inspect(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(s)}`},TypeError),tK.ERR_INVALID_MODULE_SPECIFIER=tJ("ERR_INVALID_MODULE_SPECIFIER",(e,t,s)=>`Invalid module "${e}" ${t}${s?` imported from ${s}`:""}`,TypeError),tK.ERR_INVALID_PACKAGE_CONFIG=tJ("ERR_INVALID_PACKAGE_CONFIG",(e,t,s)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${s?`. ${s}`:""}`,Error),tK.ERR_INVALID_PACKAGE_TARGET=tJ("ERR_INVALID_PACKAGE_TARGET",(e,t,s,i=!1,r)=>{let n="string"==typeof s&&!i&&s.length>0&&!s.startsWith("./");return"."===t?(C(!1===i),`Invalid "exports" main target ${JSON.stringify(s)} defined in the package config ${e}package.json${r?` imported from ${r}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${i?"imports":"exports"}" target ${JSON.stringify(s)} defined for '${t}' in the package config ${e}package.json${r?` imported from ${r}`:""}${n?'; targets must start with "./"':""}`},Error),tK.ERR_MODULE_NOT_FOUND=tJ("ERR_MODULE_NOT_FOUND",(e,t,s=!1)=>`Cannot find ${s?"module":"package"} '${e}' imported from ${t}`,Error),tK.ERR_NETWORK_IMPORT_DISALLOWED=tJ("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),tK.ERR_PACKAGE_IMPORT_NOT_DEFINED=tJ("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,s)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${s}`,TypeError),tK.ERR_PACKAGE_PATH_NOT_EXPORTED=tJ("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,s)=>"."===t?`No "exports" main defined in ${e}package.json${s?` imported from ${s}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${s?` imported from ${s}`:""}`,Error),tK.ERR_UNSUPPORTED_DIR_IMPORT=tJ("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),tK.ERR_UNSUPPORTED_RESOLVE_REQUEST=tJ("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),tK.ERR_UNKNOWN_FILE_EXTENSION=tJ("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),tK.ERR_INVALID_ARG_VALUE=tJ("ERR_INVALID_ARG_VALUE",(e,t,s="is invalid")=>{let i=I.inspect(t);i.length>128&&(i=`${i.slice(0,128)}...`);let r=e.includes(".")?"property":"argument";return`The ${r} '${e}' ${s}. Received ${i}`},TypeError);const tZ=function(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}(function(t){let s=tY();return s&&(e=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),s&&(Error.stackTraceLimit=e),t}),t1={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:t0}=tK,t2=new Map;function t3(e,{base:t,specifier:s}){let r;let o=t2.get(e);if(o)return o;try{r=i.readFileSync(a.toNamespacedPath(e),"utf8")}catch(e){if("ENOENT"!==e.code)throw e}let l={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(void 0!==r){let i;try{i=JSON.parse(r)}catch(r){let i=new t0(e,(t?`"${s}" from `:"")+n.fileURLToPath(t||s),r.message);throw i.cause=r,i}l.exists=!0,t1.call(i,"name")&&"string"==typeof i.name&&(l.name=i.name),t1.call(i,"main")&&"string"==typeof i.main&&(l.main=i.main),t1.call(i,"exports")&&(l.exports=i.exports),t1.call(i,"imports")&&(l.imports=i.imports),t1.call(i,"type")&&("commonjs"===i.type||"module"===i.type)&&(l.type=i.type)}return t2.set(e,l),l}function t4(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=t3(n.fileURLToPath(t),{specifier:e});if(s.exists)return s;let i=t;if((t=new URL("../package.json",t)).pathname===i.pathname)break}return{pjsonPath:n.fileURLToPath(t),exists:!1,type:"none"}}const{ERR_UNKNOWN_FILE_EXTENSION:t6}=tK,t5={}.hasOwnProperty,t9={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},t8={__proto__:null,"data:":function(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return t&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(t)?"module":"application/json"===t?"json":null},"file:":function(e,t,s){let i=function(e){let t=e.pathname,s=t.length;for(;s--;){let e=t.codePointAt(s);if(47===e)break;if(46===e)return 47===t.codePointAt(s-1)?"":t.slice(s)}return""}(e);if(".js"===i){let t=t4(e).type;return"none"!==t?t:"commonjs"}if(""===i){let t=t4(e).type;return"none"===t||"commonjs"===t?"commonjs":"module"}let r=t9[i];if(r)return r;if(!s)throw new t6(i,n.fileURLToPath(e))},"http:":t7,"https:":t7,"node:":()=>"builtin"};function t7(){}const se=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:st,ERR_INVALID_MODULE_SPECIFIER:ss,ERR_INVALID_PACKAGE_CONFIG:si,ERR_INVALID_PACKAGE_TARGET:sr,ERR_MODULE_NOT_FOUND:sn,ERR_PACKAGE_IMPORT_NOT_DEFINED:sa,ERR_PACKAGE_PATH_NOT_EXPORTED:so,ERR_UNSUPPORTED_DIR_IMPORT:sl,ERR_UNSUPPORTED_RESOLVE_REQUEST:sc}=tK,sp={}.hasOwnProperty,sh=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,su=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,sf=/^\.|%|\\/,sd=/\*/g,sm=/%2f|%5c/i,sg=new Set,sy=/[/\\]{2}/;function sx(e,t,s,i,a,o,l){if(r.noDeprecation)return;let c=n.fileURLToPath(i),p=null!==sy.exec(l?e:t);r.emitWarning(`Use of deprecated ${p?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===s?"":`matched to "${s}" `}in the "${a?"imports":"exports"}" field module resolution of the package at ${c}${o?` imported from ${n.fileURLToPath(o)}`:""}.`,"DeprecationWarning","DEP0166")}function sv(e,t,s,i){if(r.noDeprecation||"module"!==function(e,t){let s=e.protocol;return t5.call(t8,s)&&t8[s](e,t,!0)||null}(e,{parentURL:s.href}))return;let o=n.fileURLToPath(e.href),l=n.fileURLToPath(new n.URL(".",t)),c=n.fileURLToPath(s);i?a.resolve(l,i)!==o&&r.emitWarning(`Package ${l} has a "main" field set to "${i}", excluding the full filename and extension to the resolved file at "${o.slice(l.length)}", imported from ${c}.
|
|
5
|
-
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):
|
|
6
|
-
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function sk(e){try{return i.statSync(e)}catch{}}function sb(e){let t=i.statSync(e,{throwIfNoEntry:!1}),s=t?t.isFile():void 0;return null!=s&&s}function sw(e,t,s){return new so(n.fileURLToPath(new n.URL(".",t)),e,s&&n.fileURLToPath(s))}function s_(e,t,s,i,r){return t="object"==typeof t&&null!==t?JSON.stringify(t,null,""):`${t}`,new sr(n.fileURLToPath(new n.URL(".",s)),e,t,i,r&&n.fileURLToPath(r))}function sS(e,t,s,i,r,a,o,l,c){if("string"==typeof t)return function(e,t,s,i,r,a,o,l,c){if(""!==t&&!a&&"/"!==e[e.length-1])throw s_(s,e,i,o,r);if(!e.startsWith("./")){if(o&&!e.startsWith("../")&&!e.startsWith("/")){let s=!1;try{new n.URL(e),s=!0}catch{}if(!s)return sP(a?se.call(sd,e,()=>t):e+t,i,c)}throw s_(s,e,i,o,r)}if(null!==sh.exec(e.slice(2))){if(null===su.exec(e.slice(2))){if(!l){let n=a?s.replace("*",()=>t):s+t;sx(a?se.call(sd,e,()=>t):e,n,s,i,o,r,!0)}}else throw s_(s,e,i,o,r)}let p=new n.URL(e,i),h=p.pathname,u=new n.URL(".",i).pathname;if(!h.startsWith(u))throw s_(s,e,i,o,r);if(""===t)return p;if(null!==sh.exec(t)){let c=a?s.replace("*",()=>t):s+t;null===su.exec(t)?l||sx(a?se.call(sd,e,()=>t):e,c,s,i,o,r,!1):function(e,t,s,i,r){throw new ss(e,`request is not a valid match in pattern "${t}" for the "${i?"imports":"exports"}" resolution of ${n.fileURLToPath(s)}`,r&&n.fileURLToPath(r))}(c,s,i,o,r)}return a?new n.URL(se.call(sd,p.href,()=>t)):new n.URL(t,p)}(t,s,i,e,r,a,o,l,c);if(Array.isArray(t)){let n;if(0===t.length)return null;let p=-1;for(;++p<t.length;){let h;let u=t[p];try{h=sS(e,u,s,i,r,a,o,l,c)}catch(e){if(n=e,"ERR_INVALID_PACKAGE_TARGET"===e.code)continue;throw e}if(void 0!==h){if(null===h){n=null;continue}return h}}if(null==n)return null;throw n}if("object"==typeof t&&null!==t){let p=Object.getOwnPropertyNames(t),h=-1;for(;++h<p.length;)if(function(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}(p[h]))throw new si(n.fileURLToPath(e),r,'"exports" cannot contain numeric property keys.');for(h=-1;++h<p.length;){let n=p[h];if("default"===n||c&&c.has(n)){let p=sS(e,t[n],s,i,r,a,o,l,c);if(void 0===p)continue;return p}}return null}if(null===t)return null;throw s_(i,t,e,o,r)}function sE(e,t,s,i,a){let o=s.exports;if(function(e,t,s){if("string"==typeof e||Array.isArray(e))return!0;if("object"!=typeof e||null===e)return!1;let i=Object.getOwnPropertyNames(e),r=!1,a=0,o=-1;for(;++o<i.length;){let e=i[o],l=""===e||"."!==e[0];if(0==a++)r=l;else if(r!==l)throw new si(n.fileURLToPath(t),s,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return r}(o,e,i)&&(o={".":o}),sp.call(o,t)&&!t.includes("*")&&!t.endsWith("/")){let s=sS(e,o[t],"",t,i,!1,!1,!1,a);if(null==s)throw sw(t,e,i);return s}let l="",c="",p=Object.getOwnPropertyNames(o),h=-1;for(;++h<p.length;){let s=p[h],a=s.indexOf("*");if(-1!==a&&t.startsWith(s.slice(0,a))){t.endsWith("/")&&function(e,t,s){if(r.noDeprecation)return;let i=n.fileURLToPath(t);sg.has(i+"|"+e)||(sg.add(i+"|"+e),r.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${i}${s?` imported from ${n.fileURLToPath(s)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}(t,e,i);let o=s.slice(a+1);t.length>=s.length&&t.endsWith(o)&&1===sC(l,s)&&s.lastIndexOf("*")===a&&(l=s,c=t.slice(a,t.length-o.length))}}if(l){let s=sS(e,o[l],c,l,i,!0,!1,t.endsWith("/"),a);if(null==s)throw sw(t,e,i);return s}throw sw(t,e,i)}function sC(e,t){let s=e.indexOf("*"),i=t.indexOf("*"),r=-1===s?e.length:s+1,n=-1===i?t.length:i+1;return r>n?-1:n>r||-1===s?1:-1===i||e.length>t.length?-1:t.length>e.length?1:0}function sP(e,t,s){let i;if(E.builtinModules.includes(e))return new n.URL("node:"+e);let{packageName:r,packageSubpath:a,isScoped:o}=function(e,t){let s=e.indexOf("/"),i=!0,r=!1;"@"===e[0]&&(r=!0,-1===s||0===e.length?i=!1:s=e.indexOf("/",s+1));let a=-1===s?e:e.slice(0,s);if(null!==sf.exec(a)&&(i=!1),!i)throw new ss(e,"is not a valid package name",n.fileURLToPath(t));return{packageName:a,packageSubpath:"."+(-1===s?"":e.slice(s)),isScoped:r}}(e,t),l=t4(t);if(l.exists){let e=n.pathToFileURL(l.pjsonPath);if(l.name===r&&void 0!==l.exports&&null!==l.exports)return sE(e,a,l,t,s)}let c=new n.URL("./node_modules/"+r+"/package.json",t),p=n.fileURLToPath(c);do{let l=sk(p.slice(0,-13));if(!l||!l.isDirectory()){i=p,c=new n.URL((o?"../../../../node_modules/":"../../../node_modules/")+r+"/package.json",c),p=n.fileURLToPath(c);continue}let h=t3(p,{base:t,specifier:e});if(void 0!==h.exports&&null!==h.exports)return sE(c,a,h,t,s);if("."===a)return function(e,t,s){let i;if(void 0!==t.main){if(sb(i=new n.URL(t.main,e)))return i;let r=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<r.length&&!sb(i=new n.URL(r[a],e));)i=void 0;if(i)return sv(i,e,s,t.main),i}let r=["./index.js","./index.json","./index.node"],a=-1;for(;++a<r.length&&!sb(i=new n.URL(r[a],e));)i=void 0;if(i)return sv(i,e,s,t.main),i;throw new sn(n.fileURLToPath(new n.URL(".",e)),n.fileURLToPath(s))}(c,h,t);return new n.URL(a,c)}while(p.length!==i.length);throw new sn(r,n.fileURLToPath(t),!1)}function sI(e){return"string"!=typeof e||e.startsWith("file://")?tW(n.fileURLToPath(e)):tW(e)}function sA(e){return n.pathToFileURL(sI(e)).toString()}const sR=/* @__PURE__ */new Set(["node","import"]),sT=[".mjs",".cjs",".js",".json"],sL=/* @__PURE__ */new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function sN(e,t,s){try{return function(e,t,s,r){var o;let l;let c=t.protocol;if(o=e,""!==o&&("/"===o[0]||"."===o[0]&&(1===o.length||"/"===o[1]||"."===o[1]&&(2===o.length||"/"===o[2]))))try{l=new n.URL(e,t)}catch(i){let s=new sc(e,t);throw s.cause=i,s}else if("file:"===c&&"#"===e[0])l=function(e,t,s){var i;let r;if("#"===e||e.startsWith("#/")||e.endsWith("/"))throw new ss(e,"is not a valid internal imports specifier name",n.fileURLToPath(t));let a=t4(t);if(a.exists){r=n.pathToFileURL(a.pjsonPath);let i=a.imports;if(i){if(sp.call(i,e)&&!e.includes("*")){let n=sS(r,i[e],"",e,t,!1,!0,!1,s);if(null!=n)return n}else{let n="",a="",o=Object.getOwnPropertyNames(i),l=-1;for(;++l<o.length;){let t=o[l],s=t.indexOf("*");if(-1!==s&&e.startsWith(t.slice(0,-1))){let i=t.slice(s+1);e.length>=t.length&&e.endsWith(i)&&1===sC(n,t)&&t.lastIndexOf("*")===s&&(n=t,a=e.slice(s,e.length-i.length))}}if(n){let e=sS(r,i[n],a,n,t,!0,!0,!1,s);if(null!=e)return e}}}}throw i=r,new sa(e,i&&n.fileURLToPath(new n.URL(".",i)),n.fileURLToPath(t))}(e,t,s);else try{l=new n.URL(e)}catch(i){if(("data:"===c||"http:"===c||"https:"===c)&&!E.builtinModules.includes(e)){let s=new sc(e,t);throw s.cause=i,s}l=sP(e,t,s)}return(C(void 0!==l,"expected to be defined"),"file:"!==l.protocol)?l:function(e,t,s){let r;if(null!==sm.exec(e.pathname))throw new ss(e.pathname,'must not include encoded "/" or "\\" characters',n.fileURLToPath(t));try{r=n.fileURLToPath(e)}catch(s){throw Object.defineProperty(s,"input",{value:String(e)}),Object.defineProperty(s,"module",{value:String(t)}),s}let o=sk(r.endsWith("/")?r.slice(-1):r);if(o&&o.isDirectory()){let s=new sl(r,n.fileURLToPath(t));throw s.url=String(e),s}if(!o||!o.isFile()){let s=new sn(r||e.pathname,t&&n.fileURLToPath(t),!0);throw s.url=String(e),s}{let t=i.realpathSync(r),{search:s,hash:o}=e;(e=n.pathToFileURL(t+(r.endsWith(a.sep)?"/":""))).search=s,e.hash=o}return e}(l,t)}(e,t,s)}catch(e){if(!sL.has(e?.code))throw e}}function sj(e,t={}){"auto"!==t.platform&&t.platform||(t.platform="win32"===r.platform?"win32":"posix");let s=sI(function(e,t={}){var s;let r;if("string"!=typeof e){if(e instanceof URL)e=sI(e);else throw TypeError("input must be a `string` or `URL`")}if(/(node|data|http|https):/.test(e))return e;if(tq.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=sI(e)),s=e,t$.test(s))try{if(i.statSync(e).isFile())return sA(e)}catch(e){if(e?.code!=="ENOENT")throw e}let n=t.conditions?new Set(t.conditions):sR,a=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(e=>{var t;return new URL(("string"!=typeof(t=e.toString())&&(t=t.toString()),/(node|data|http|https|file):/.test(t))?t:tq.has(t)?"node:"+t:"file://"+encodeURI(tW(t)))});0===a.length&&a.push(new URL(sA(process.cwd())));let o=[...a];for(let e of a)"file:"===e.protocol&&o.push(new URL("./",e),new URL(tB(e.pathname,"_index.js"),e),new URL("node_modules",e));for(let s of o){if(r=sN(e,s,n))break;for(let i of["","/index"]){for(let a of t.extensions||sT)if(r=sN(e+i+a,s,n))break;if(r)break}if(r)break}if(!r){let t=Error(`Cannot find module ${e} imported from ${o.join(", ")}`);throw t.code="ERR_MODULE_NOT_FOUND",t}return sA(r)}(e,{url:t.paths}));return"win32"===t.platform?a.win32.normalize(s):s}function sO(e,t={}){return!!function(e,t={}){try{return sj(`${e}/package.json`,t)}catch{}try{return sj(e,t)}catch(e){return"MODULE_NOT_FOUND"!==e.code&&"ERR_MODULE_NOT_FOUND"!==e.code&&console.error(e),!1}}(e,t)}const sV=async e=>{if(!T.isCI&&process.stdout.isTTY&&!sO(e)){let{confirm:t}=await Promise.resolve().then(function(){return require("./vendor-BNyGe7gX.cjs")}).then(function(e){return e.i});await t({message:`Package is required for this config: ${e}. Do you want to install it?`})&&await Promise.resolve().then(function(){return require("./vendor-BNyGe7gX.cjs")}).then(function(e){return e.a}).then(t=>t.installPackage(e,{dev:!0}))}return t(e)};function sD(e,t=!1){return"boolean"==typeof e?e:e?.enable??t}function sU(e,...t){if("boolean"==typeof e||void 0===e)return;let{enable:s,...i}=e;return t.length?R.defu(i,...t):i}function sM(e){sO(e)&&console.error(A.yellow(`[eslint-config-sukka] "${e}" is deprecated and you should uninstall it`))}const sF=async(e,...t)=>{let s=[];sM("@eslint-sukka/js"),sM("@eslint-sukka/json"),sM("@eslint-sukka/ts"),sM("@eslint-sukka/legacy");let i=sD(e?.ts,sO("typescript"));s.push(J(e?.ignores),Y()),sD(e?.js,!0)&&s.push(et(sU(e?.js)),Z({typescript:i})),sD(e?.json,!0)&&s.push(er()),i&&s.push(ep(sU(e?.ts)));let r=sO("next");if(sD(e?.react,sO("react")||r)){if(i){let t=await sV("@eslint-sukka/react"),i=sO("@remix-run/node")||sO("@remix-run/react")||sO("@remix-run/serve")||sO("@remix-run/dev");s.push(t.react(sU(e?.react,{nextjs:r,remix:i,reactRefresh:{allowConstantExport:sO("vite")},reactCompiler:sO("babel-plugin-react-compiler")||sO("react-compiler-webpack")?"error":"off"}))),sD(e?.next,r)&&s.push(t.next()),sD(e?.stylex,sO("@stylexjs/stylex")||sO("stylex-webpack"))&&s.push(t.stylex(sU(e?.stylex)))}else console.warn("[eslint-config-sukka] React preset will not be enabled when TypeScript is missing.")}return sD(e?.node,sO("@types/node")||sO("@types/bun"))&&s.push((await sV("@eslint-sukka/node")).node(sU(e?.node))),sD(e?.legacy)&&s.push(eh(sU(e?.legacy))),s.push(t),s.flat()};Object.defineProperty(exports,"constants",{enumerable:!0,get:function(){return s.constants}}),exports.ignores=J,exports.sukka=sF;
|
|
3
|
+
${e.trim()}`:s.name.trim(),n.set(s.name.toLowerCase().trim(),s);continue}o={name:e.trim(),comment:t,patterns:[]},n.set(o.name.toLowerCase(),o),a.sections.push(o),s=o;continue}""!==t&&(o.patterns.push(t),a.patterns.push(t)),s=null}return(!0===t.dedupe||!0===t.unique)&&(a=H(a,{...t,format:!1})),a.path=r,a.input=Buffer.from(e),a.format=e=>X(a,{...t,...e}),a.dedupe=e=>H(a,{...t,...e}),a.globs=e=>K(a,{path:r,...t,...e}),a},H=(e,t)=>{let s;let r=G(e,{...t,dedupe:!1}),i=new Map,n={sections:[],patterns:new Set};for(let e of r.sections){let{name:t="",comment:r,patterns:a}=e,o=t.trim().toLowerCase();for(let e of a)n.patterns.add(e);t&&i.has(o)?(s=i.get(o)).patterns=[...s.patterns,...a]:(s={name:t,comment:r,patterns:a},n.sections.push(s),i.set(o,s))}for(let e of n.sections)e.patterns=[...new Set(e.patterns)];return n.patterns=[...n.patterns],n},z=(e,t)=>{if(F.test(e))return e;let s=!1;return e.startsWith("/")?(e=e.slice(1),s=!0):e.slice(1,e.length-1).includes("/")&&(s=!0),e+=e.endsWith("/")?"**/":"/**",s?e:`**/${e}`},K=(e,t={})=>{let s=G(e,t),r=[],i=0,n=s.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(e=>e.startsWith("!")?e:"!"+e)),a=(e,s)=>{let n=r[r.length-1],a=e?"unignore":"ignore";n&&n.type===a?n.patterns.includes(s)||n.patterns.push(s):(r.push({type:a,path:t.path||null,patterns:[s],index:i}),i++)};for(let e of n){let t="";e.startsWith("!")&&(e=e.slice(1),t="!"),a(t,e.startsWith("/")?e.slice(1):e),a(t,z(e))}return r},Q=(e={})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join("\n")),t.push("")),t.join("\n")},X=(e,t={})=>{let s=G(e,t),r=t.formatSection||Q,i=s.sections||s,n=[];for(let e of[].concat(i))n.push(r(e));return n.join("\n")};G.file=(e,t)=>G(D.readFileSync(e,"utf8"),t),G.parse=G,G.dedupe=H,G.format=X,G.globs=K,G.formatSection=Q,G.patterns=e=>$(e).map(e=>e.trim()).filter(e=>""!==e&&!q(e));var J=/*@__PURE__*/l.a(G);const Y=".gitignore";function Z(e={}){let t=[],{root:s=!1,files:r=s?Y:function(e,{cwd:t=n.cwd(),type:s="file",stopAt:r}={}){let a=o.resolve(V(t)??""),{root:l}=o.parse(a);for(r=o.resolve(a,V(r)??l);a&&a!==r&&a!==l;){let t=o.isAbsolute(e)?e:o.join(a,e);try{let e=i.statSync(t,{throwIfNoEntry:!1});if("file"===s&&e?.isFile()||"directory"===s&&e?.isDirectory())return t}catch{}a=o.dirname(a)}}(Y)||[],strict:a=!0}=e,l=Array.isArray(r)?r:[r];for(let e of l){let s="";try{s=i.readFileSync(e,"utf8")}catch(e){if(a)throw e;continue}for(let e of J(`${s}
|
|
4
|
+
`).globs())"ignore"===e.type?t.push(...e.patterns):"unignore"===e.type&&t.push(...e.patterns.map(e=>`!${e}`))}if(a&&0===l.length)throw Error("No .gitignore file found");return{ignores:t}}const ee=(e={})=>{let{customGlobs:t=null,gitignore:s=[".gitignore"]}=e,i=[],n=[];return!1===t||null===t?n=r.constants.GLOB_EXCLUDE:"function"==typeof t?n=t(r.constants.GLOB_EXCLUDE):"string"==typeof t?n.push(...r.constants.GLOB_EXCLUDE,t):Array.isArray(t)&&n.push(...r.constants.GLOB_EXCLUDE,...t),i.push({ignores:n}),!1===s||null===s||(!0===s?i.push(Z({files:[".gitignore"],strict:!1})):("string"==typeof s||Array.isArray(s))&&i.push(Z({files:s,strict:!1}))),i},et=()=>[{name:"sukka/eslint-comments",plugins:{"@eslint-community/eslint-comments":p,sukka:r.memo(h,"eslint-plugin-sukka")},rules:{"sukka/ban-eslint-disable":["error","allow-with-description"],"@eslint-community/eslint-comments/disable-enable-pair":["error",{allowWholeFile:!0}],"@eslint-community/eslint-comments/no-aggregating-enable":"error","@eslint-community/eslint-comments/no-duplicate-disable":"error","@eslint-community/eslint-comments/no-unlimited-disable":"error","@eslint-community/eslint-comments/no-unused-disable":"error","@eslint-community/eslint-comments/no-unused-enable":"error"}}],es=({typescript:e})=>[{name:"sukka/promise",plugins:{promise:u},rules:{"promise/always-return":e?"off":["error",{ignoreLastCallback:!0}],"promise/no-return-wrap":"error","promise/param-names":"error","promise/catch-or-return":["error",{allowFinally:!0,terminationMethod:["catch","asCallback","finally"]}],"promise/no-native":"off","promise/no-nesting":"warn","promise/no-promise-in-callback":"warn","promise/no-callback-in-promise":"warn","promise/avoid-new":"off","promise/no-new-statics":"error","promise/no-return-in-finally":"warn","promise/valid-params":"warn"}}],er=[".js",".jsx",".mjs",".cjs"],ei=(e={})=>{let{files:t,disableNoConsoleInCLI:s=!0,env:i={}}=e,{browser:n=!0,webextensions:a=!1,greasemonkey:o=!1,customGlobals:l={}}=i,c=e.module??r.getPackageJson()?.type==="module",p=[f.configs.recommended,{linterOptions:{reportUnusedDisableDirectives:!0}},{name:"@eslint-sukka/js base",...t?{files:t}:{},languageOptions:{ecmaVersion:"latest",sourceType:c?"module":"commonjs",parserOptions:{ecmaVersion:"latest",sourceType:c?"module":"commonjs",ecmaFeatures:{jsx:!0}},globals:{...r.globals.es2025,...n&&r.globals.browser,...a&&r.globals.webextensions,...o&&r.globals.greasemonkey,...l}},settings:{"import-x/parsers":{espree:er},"import-x/extensions":er},plugins:{"unused-imports":r.memo(g,"eslint-plugin-unused-imports"),"@stylistic/js":r.memo(d,"@stylistic/eslint-plugin-js"),"@stylistic/plus":r.memo(m,"@stylistic/eslint-plugin-plus"),sukka:r.memo(h,"eslint-plugin-sukka"),"import-x":r.memo(y,"eslint-plugin-import-x"),autofix:x},rules:{...y.configs.recommended.rules,"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-notation":["error",{allowKeywords:!0}],"@stylistic/js/dot-location":["error","property"],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","no-alert":"warn","no-caller":"off","autofix/no-caller":"error","no-constructor-return":"error","no-else-return":["error",{allowElseIf:!1}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":["off",{boolean:!1,number:!0,string:!0,allow:[]}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","@stylistic/js/no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-octal-escape":"error","no-proto":"off","autofix/no-proto":"error","no-restricted-properties":["error",...[["isFinite","Number.isFinite"],["isNaN","Number.isNaN"]].flatMap(([e,t])=>["global","globalThis","window","self"].map(s=>({object:s,property:e,message:`Please use ${t} instead`}))),{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."},{object:"Math",property:"pow",message:"Use the exponentiation operator (**) instead."}],"no-return-assign":["error","always"],"no-return-await":"off","sukka/no-return-await":"error","no-self-compare":"off","no-sequences":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"no-useless-call":"off","no-useless-catch":"off","autofix/no-useless-catch":"error","no-useless-concat":"off","autofix/no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":["error",{allowAsStatement:!0}],"no-with":"error","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-object-has-own":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],radix:"off","autofix/radix":"error","require-await":"error","require-yield":"error","require-unicode-regexp":"off","vars-on-top":"error","@stylistic/js/wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error","no-await-in-loop":"warn","no-console":"warn","no-constant-condition":"warn","no-empty-function":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-constant-binary-expression":"error","@stylistic/js/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-loss-of-precision":"warn","no-promise-executor-return":"error","no-template-curly-in-string":"error","no-unreachable-loop":["error",{ignore:[]}],"no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-vars":"off","unused-imports/no-unused-imports":"off","no-unused-private-class-members":"error","no-useless-backreference":"error","no-negated-in-lhs":"off","require-atomic-updates":"off","use-isnan":["error",{enforceForIndexOf:!0}],"valid-typeof":"off","autofix/valid-typeof":["error",{requireStringLiterals:!0}],"no-new-native-nonconstructor":"off","autofix/no-new-native-nonconstructor":"error","@stylistic/js/arrow-spacing":["error",{before:!0,after:!0}],"@stylistic/js/generator-star-spacing":["error",{before:!0,after:!1}],"@stylistic/js/no-confusing-arrow":["error",{allowParens:!0}],"no-duplicate-imports":"off","no-restricted-exports":["error",{restrictedNamedExports:["then"]}],"no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],"no-var":"warn","object-shorthand":["error","always",{ignoreConstructors:!1,avoidQuotes:!0,avoidExplicitReturnArrows:!0}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{ignoreReadBeforeAssign:!0}],"prefer-numeric-literals":"error","prefer-rest-params":"error","prefer-template":"off","symbol-description":"error","@stylistic/js/template-curly-spacing":["error","never"],"@stylistic/js/yield-star-spacing":["error","before"],"@stylistic/js/array-bracket-newline":["off","consistent"],"@stylistic/js/array-bracket-spacing":["error","never"],"@stylistic/js/array-element-newline":["off",{multiline:!0,minItems:5}],"@stylistic/js/block-spacing":["error","always"],"@stylistic/js/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["warn",{properties:"never",ignoreDestructuring:!1,ignoreImports:!0,ignoreGlobals:!0,allow:["^UNSAFE_","^experimental_","^__DEV__"]}],"@stylistic/js/comma-dangle":["error","never"],"@stylistic/js/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/js/comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"@stylistic/js/computed-property-spacing":["error","never"],"consistent-this":"off","@stylistic/js/eol-last":["error","always"],"@stylistic/js/func-call-spacing":["error","never"],"@stylistic/js/function-call-argument-newline":["off","consistent"],"@stylistic/js/function-paren-newline":["error","consistent"],"@stylistic/js/implicit-arrow-linebreak":["error","beside"],"@stylistic/js/indent":["error",2,{SwitchCase:1}],"@stylistic/plus/indent-binary-ops":["error",2],"@stylistic/js/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/js/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/js/linebreak-style":"error","@stylistic/js/lines-around-comment":"off","@stylistic/js/lines-around-directive":"off","@stylistic/js/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"@stylistic/js/multiline-ternary":"off","new-cap":["error",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"@stylistic/js/newline-per-chained-call":["error",{ignoreChainWithDepth:6}],"@stylistic/js/new-parens":"error","no-bitwise":"off","no-lonely-if":"error","@stylistic/js/no-mixed-operators":["error",{groups:[["**","+"],["**","-"],["**","*"],["**","/"],["%","+"],["%","-"],["%","*"],["%","/"],["%","**"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!0}],"@stylistic/js/no-mixed-spaces-and-tabs":"error","no-multi-assign":"error","@stylistic/js/no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","no-nested-ternary":"off","sukka/unicorn/no-nested-ternary":"warn","no-new-object":"off","no-object-constructor":"error","no-array-constructor":"error","@stylistic/js/no-spaced-func":"off","@stylistic/js/no-tabs":"error","no-ternary":"off","@stylistic/js/no-trailing-spaces":"error","no-unneeded-ternary":"error","@stylistic/js/no-whitespace-before-property":"error","@stylistic/js/nonblock-statement-body-position":"error","@stylistic/js/object-curly-newline":"off","@stylistic/js/object-curly-spacing":["error","always"],"@stylistic/js/object-property-newline":"off","@stylistic/js/one-var-declaration-per-line":"off","prefer-exponentiation-operator":"error","@stylistic/js/operator-linebreak":["error","before"],"@stylistic/js/padded-blocks":["error","never"],"@stylistic/js/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/js/quotes":["error","single"],"@stylistic/js/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/js/jsx-quotes":["error","prefer-double"],"@stylistic/js/rest-spread-spacing":["error","never"],"@stylistic/js/semi":["error","always"],"@stylistic/js/semi-spacing":["error",{before:!1,after:!0}],"@stylistic/js/semi-style":["error","last"],"@stylistic/js/space-before-blocks":"error","@stylistic/js/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/js/space-in-parens":["error","never"],"@stylistic/js/space-infix-ops":"error","@stylistic/js/space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"@stylistic/js/spaced-comment":["error","always",{line:{exceptions:["-","+"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"@stylistic/js/switch-colon-spacing":["error",{after:!0,before:!1}],"@stylistic/js/template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"@stylistic/js/wrap-regex":"off","no-label-var":"error","no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-globals":["error",{name:"isFinite",message:"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite"},{name:"isNaN",message:"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan"}],"no-undef-init":"error","sukka/array/no-unneeded-flat-map":"error","sukka/browser/prefer-location-assign":"warn","sukka/jsx/no-template-literal":"error","sukka/jsx/no-unneeded-nested":"error","sukka/string/no-locale-case":"warn","sukka/string/no-simple-template-literal":"error","sukka/type/no-instanceof-wrapper":"error","sukka/unicode/no-bidi":"warn","sukka/unicode/no-invisible":"warn","sukka/no-redundant-variable":"error","sukka/no-single-return":"error","sukka/prefer-early-return":["error",{maximumStatements:16}],"sukka/prefer-fetch":"error","sukka/prefer-timer-id":"warn","sukka/unicorn/require-array-join-separator":"warn","sukka/unicorn/no-thenable":"error","sukka/unicorn/no-invalid-remove-event-listener":"error","sukka/unicorn/consistent-function-scoping":"warn","sukka/unicorn/prefer-event-target":"warn","sukka/unicorn/prefer-keyboard-event-key":"warn","sukka/unicorn/prefer-text-content":"warn","sukka/unicorn/no-console-spaces":"warn","sukka/unicorn/no-empty-file":"warn","sukka/unicorn/no-useless-fallback-in-spread":"warn","sukka/unicorn/no-useless-length-check":"warn","sukka/unicorn/no-useless-promise-resolve-reject":"warn","sukka/unicorn/no-zero-fractions":"warn","sukka/unicorn/prefer-export-from":["warn",{ignoreUsedVariables:!0}],"sukka/unicorn/prefer-native-coercion-functions":"warn","sukka/unicorn/no-document-cookie":"error","sukka/unicorn/prefer-add-event-listener":"warn","sukka/unicorn/prefer-array-index-of":"warn","sukka/unicorn/prefer-blob-reading-methods":"warn","sukka/unicorn/prefer-date-now":"warn","sukka/unicorn/prefer-dom-node-dataset":"warn","sukka/unicorn/prefer-modern-math-apis":"warn","sukka/unicorn/number-literal-case":"error","sukka/unicorn/prefer-number-properties":["warn",{checkInfinity:!1}],"sukka/unicorn/prefer-reflect-apply":"warn","sukka/unicorn/prefer-set-size":"warn","sukka/unicorn/prefer-string-replace-all":"warn","sukka/unicorn/prefer-string-slice":"warn","sukka/unicorn/prefer-string-trim-start-end":"warn","sukka/unicorn/no-unreadable-iife":"warn","sukka/unicorn/throw-new-error":"warn","sukka/unicorn/better-regex":"error","sukka/unicorn/escape-case":"warn","sukka/unicorn/no-hex-escape":"warn","sukka/unicorn/prefer-prototype-methods":"warn","sukka/unicorn/error-message":"error","sukka/unicorn/no-instanceof-array":"error","sukka/unicorn/prefer-type-error":"error","sukka/unicorn/consistent-destructuring":"warn","sukka/unicorn/new-for-builtins":"warn","sukka/unicorn/no-array-push-push":"warn","sukka/unicorn/no-static-only-class":"warn","sukka/unicorn/no-unreadable-array-destructuring":"error","sukka/unicorn/no-useless-spread":"warn","sukka/unicorn/no-useless-switch-case":"warn","sukka/unicorn/no-useless-undefined":["error",{checkArguments:!1}],"sukka/unicorn/numeric-separators-style":["warn",{onlyIfContainsSeparator:!1,number:{minimumDigits:7,groupLength:3},binary:{minimumDigits:9,groupLength:4},octal:{minimumDigits:9,groupLength:4},hexadecimal:{minimumDigits:5,groupLength:2}}],"sukka/unicorn/prefer-array-find":"warn","sukka/unicorn/prefer-array-flat-map":"warn","sukka/unicorn/prefer-array-flat":"warn","sukka/unicorn/prefer-array-some":"warn","sukka/unicorn/prefer-code-point":"warn","sukka/unicorn/prefer-default-parameters":"warn","sukka/unicorn/prefer-logical-operator-over-ternary":"warn","sukka/unicorn/prefer-optional-catch-binding":"error","sukka/unicorn/prefer-regexp-test":"warn","sukka/unicorn/prefer-set-has":"error","sukka/unicorn/prefer-switch":"warn","sukka/unicorn/require-number-to-fixed-digits-argument":"warn","sukka/import-dedupe":"error","sukka/unicorn/prefer-string-raw":"warn","sukka/unicorn/no-single-promise-in-promise-methods":"error","sukka/unicorn/no-await-in-promise-methods":"error","sukka/unicorn/template-indent":["warn",{tags:["outdent","dedent","gql","sql","html","styled","css"],functions:["dedent","stripIndent","strip_indent","stripTags","striptags","strip_tags","stripHtml","stripHTML","strip_html"],selectors:[],comments:["HTML","html","CSS","css","indent"]}],"sukka/unicorn/no-negation-in-equality-check":"error","sukka/unicorn/no-length-as-slice-end":"error","no-restricted-imports":["error",{paths:r.RESTRICTED_IMPORT_JS}],"no-prototype-builtins":"off","autofix/no-prototype-builtins":"error"}}];if(!1!==s){let e="boolean"!=typeof s?Array.isArray(s)?s:[s]:null;p.push({name:"@eslint-sukka/js cli specific",files:e??[`**/scripts/${r.constants.GLOB_SRC}`,`**/cli/${r.constants.GLOB_SRC}`,`**/cli.${r.constants.GLOB_SRC_EXT}`],rules:{"no-console":"off"}})}return p},en={plugins:{jsonc:r.memo(v,"eslint-plugin-jsonc")},languageOptions:{parser:k}},ea={"jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","never"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"jsonc/object-curly-newline":"off","jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error"},eo=()=>[...v.configs["flat/base"],{name:"@eslint-sukka/json json",files:[r.constants.GLOB_JSON],rules:{...v.configs["flat/recommended-with-json"].reduce((e,t)=>({...e,...t.rules}),{}),...ea}},{name:"@eslint-sukka/json json5",...en,files:[r.constants.GLOB_JSON5],rules:{...v.configs["flat/recommended-with-json5"].reduce((e,t)=>({...e,...t.rules}),{}),...ea}},{name:"@eslint-sukka/json jsonc",...en,files:[r.constants.GLOB_JSONC],rules:{...v.configs["flat/recommended-with-jsonc"].reduce((e,t)=>({...e,...t.rules}),{}),...ea}},{name:"@eslint-sukka/json package.json",...en,files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["$schema","publisher","name","displayName","version","private","description","funding","homepage","repository","bugs","categories","type","main","module","types","typesVersions","bin","files","exports","icon","unpkg","jsdelivr","sideEffects","activationEvents","contributes","scripts","keywords","author","license","dependencies","devDependencies","peerDependencies","peerDependenciesMeta","optionalDependencies","packageManager","engines","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:["types","import","module","require","default"],pathPattern:"^exports.*$"}]}},{name:"@eslint-sukka/json tsconfig.json",...en,files:["**/tsconfig.json","**/tsconfig.*.json","**/tsconfig-*.json","**/jsconfig.json","**/jsconfig.*.json","**/jsconfig-*.json"],rules:{"jsonc/sort-keys":["error",{order:["$schema","extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","lib","jsx","experimentalDecorators","emitDecoratorMetadata","jsxFactory","jsxFragmentFactory","jsxImportSource","reactNamespace","noLib","useDefineForClassFields","moduleDetection","module","rootDir","moduleResolution","baseUrl","paths","rootDirs","typeRoots","types","allowUmdGlobalAccess","moduleSuffixes","allowImportingTsExtensions","resolvePackageJsonExports","resolvePackageJsonImports","customConditions","resolveJsonModule","allowArbitraryExtensions","noResolve","allowJs","checkJs","maxNodeModuleJsDepth","declaration","declarationMap","emitDeclarationOnly","sourceMap","inlineSourceMap","outFile","outDir","removeComments","noEmit","importHelpers","importsNotUsedAsValues","downlevelIteration","sourceRoot","mapRoot","inlineSources","emitBOM","newLine","stripInternal","noEmitHelpers","noEmitOnError","preserveConstEnums","declarationDir","preserveValueImports","isolatedModules","verbatimModuleSyntax","allowSyntheticDefaultImports","esModuleInterop","preserveSymlinks","forceConsistentCasingInFileNames","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}],el={"no-dupe-class-members":"off","@typescript-eslint/no-dupe-class-members":"error","no-redeclare":"off","@typescript-eslint/no-redeclare":"error","no-unused-vars":"off","@typescript-eslint/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"class-methods-use-this":"off","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:[]}],"default-param-last":"off","@typescript-eslint/default-param-last":"error","dot-notation":"off","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"no-implied-eval":"off","@typescript-eslint/no-implied-eval":"error","no-invalid-this":"off","@typescript-eslint/no-invalid-this":"off","no-loop-func":"off","@typescript-eslint/no-loop-func":"error","no-return-await":"off","@typescript-eslint/return-await":"error","sukka/no-return-await":"off","no-unused-expressions":"off","@typescript-eslint/no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"prefer-promise-reject-errors":"off","@typescript-eslint/prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"require-await":"off","@typescript-eslint/require-await":"error","no-empty-function":"off","@typescript-eslint/no-empty-function":"error","@stylistic/js/no-extra-parens":"off","@stylistic/ts/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":"error","@stylistic/js/block-spacing":"off","@stylistic/ts/block-spacing":["error","always"],"@stylistic/js/brace-style":"off","@stylistic/ts/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:"off","@stylistic/js/comma-dangle":"off","@stylistic/ts/comma-dangle":["error","never"],"@stylistic/js/comma-spacing":"off","@stylistic/ts/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/js/func-call-spacing":"off","@stylistic/ts/func-call-spacing":["error","never"],"@stylistic/js/indent":"off","@stylistic/ts/indent":["error",2,{SwitchCase:1}],"@stylistic/js/key-spacing":"off","@stylistic/ts/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/js/keyword-spacing":"off","@stylistic/ts/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/js/lines-around-comment":"off","@stylistic/ts/lines-around-comment":"off","@stylistic/js/lines-between-class-members":"off","@stylistic/ts/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"no-array-constructor":"off","@typescript-eslint/no-array-constructor":"error","@stylistic/js/object-curly-newline":"off","@stylistic/ts/object-curly-newline":"off","@stylistic/js/object-curly-spacing":"off","@stylistic/ts/object-curly-spacing":["error","always"],"@stylistic/js/object-property-newline":"off","@stylistic/ts/object-property-newline":"off","@stylistic/js/padding-line-between-statements":"off","@stylistic/ts/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/js/quotes":"off","@stylistic/ts/quotes":["error","single"],"@stylistic/js/quote-props":"off","@stylistic/ts/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/js/semi":"off","@stylistic/ts/semi":["error","always"],"@stylistic/js/space-before-blocks":"off","@stylistic/ts/space-before-blocks":"error","@stylistic/js/space-before-function-paren":"off","@stylistic/ts/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/js/space-infix-ops":"off","@stylistic/ts/space-infix-ops":"error","no-use-before-define":"off","@typescript-eslint/no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-imports":"off"},ec=[".js",".jsx",".mjs",".cjs"],ep=[".ts",".cts",".mts",".tsx",".d.ts"],eh=[...ep,...ec],eu=[".ts",".cts",".mts",".tsx",...ec],ef=(e={})=>{let{tsconfigPath:t=!0,tsconfigRootDir:s=process.cwd(),componentExtentions:i=[]}=e,n="string"==typeof __dirname?C.pathToFileURL(__dirname).href:"undefined"==typeof document?require("url").pathToFileURL(__filename).href:j&&j.src||new URL("index.cjs",document.baseURI).href,a=C.fileURLToPath(r.importMetaResolve("@typescript-eslint/parser",n)),o=C.fileURLToPath(r.importMetaResolve("eslint-import-resolver-ts-bundled",n));return[{name:"@eslint-sukka/ts base",files:[r.constants.GLOB_TS,r.constants.GLOB_TSX,...i.map(e=>`**/*.${e}`)],plugins:{...w.configs.base.plugins,"@stylistic/ts":r.memo(_,"@stylistic/eslint-plugin-ts"),"sukka-ts":r.memo(b,"eslint-plugin-sukka-ts"),"@stylistic/plus":r.memo(m,"@stylistic/eslint-plugin-plus"),"import-x":r.memo(y,"eslint-plugin-import-x"),deprecation:E.fixupPluginRules(S)},languageOptions:{parser:w.configs.base.languageOptions.parser,sourceType:"module",parserOptions:{sourceType:"module",ecmaVersion:"latest",...!0===t?{projectService:!0,allowDefaultProject:[]}:{project:t},tsconfigRootDir:s,ecmaFeatures:{jsx:!0},jsxPragma:void 0,warnOnUnsupportedTypeScriptVersion:!0}},settings:{"import-x/extensions":eh,"import-x/external-module-folders":["node_modules","node_modules/@types"],"import-x/resolver":{node:{extensions:eu},[o]:{alwaysTryTypes:!0,...!0===t?{}:{project:t}}},"import-x/parsers":{espree:ec,[a]:ep}},rules:{...w.configs.base.rules,...w.configs.recommendedTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...w.configs.stylisticTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...y.configs.typescript.rules,...el,"@typescript-eslint/ban-ts-comment":["error",{"ts-expect-error":"allow-with-description","ts-ignore":!0,"ts-nocheck":!0,"ts-check":!1,minimumDescriptionLength:10}],"@typescript-eslint/naming-convention":["warn",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE","snake_case"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"function",format:["camelCase","PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"typeLike",format:["PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"}],"@typescript-eslint/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"@typescript-eslint/require-await":"error","@typescript-eslint/await-thenable":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0,allowAny:!0,allowBoolean:!0,allowNever:!0}],"@typescript-eslint/unbound-method":"error","@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",disallowTypeAnnotations:!1,fixStyle:"separate-type-imports"}],"@typescript-eslint/no-import-type-side-effects":"warn","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-definitions":"warn","@typescript-eslint/consistent-generic-constructors":["error","constructor"],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["Error","RegExp","URL","URLSearchParams"]}],"@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extraneous-class":["warn",{allowConstructorOnly:!0,allowEmpty:!0,allowWithDecorator:!0}],"@typescript-eslint/no-invalid-void-type":["off",{allowInGenericTypeArguments:!0,allowAsThisParameter:!0}],"@typescript-eslint/no-non-null-asserted-nullish-coalescing":"error","@typescript-eslint/no-unnecessary-boolean-literal-compare":"error","@typescript-eslint/no-unnecessary-condition":["warn",{allowConstantLoopConditions:!0}],"@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/non-nullable-type-assertion-style":"error","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-literal-enum-member":["error",{allowBitwiseExpressions:!0}],"@typescript-eslint/prefer-nullish-coalescing":"off","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/unified-signatures":["error",{ignoreDifferentlyNamedParameters:!0}],"@typescript-eslint/prefer-for-of":"off","@typescript-eslint/prefer-function-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/prefer-enum-initializers":"warn","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-meaningless-void-operator":"warn","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/array-type":["warn",{default:"array-simple"}],"@typescript-eslint/no-restricted-imports":["error",{paths:r.RESTRICTED_IMPORT_TS}],"@typescript-eslint/no-empty-object-type":["error",{allowInterfaces:"with-single-extends",allowObjectTypes:"never",allowWithName:"Props$"}],"@typescript-eslint/no-unsafe-function-type":"warn","@typescript-eslint/no-restricted-types":["error",{types:{FC:{message:"To declare a component, you don't have to use FC to annotate it. To type something that accepts/is a React Component, use ComponentType<T>.",fixWith:"ComponentType"},"React.FC":{message:"To declare a component, you don't have to use React.FC to annotate it. To type something that accepts/is a React Component, use React.ComponentType<T>.",fixWith:"React.ComponentType"},ReactElement:{message:"In most cases, you want ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"ReactNode"},"React.ReactElement":{message:"In most cases, you want React.ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"React.ReactNode"}}}],"@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-loop-func":"warn","@typescript-eslint/no-redundant-type-constituents":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-enum-comparison":"warn","@typescript-eslint/prefer-regexp-exec":"off","@stylistic/ts/member-delimiter-style":["error",{multiline:{delimiter:"comma",requireLast:!1},singleline:{delimiter:"comma",requireLast:!1}}],"@stylistic/ts/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0,exceptAfterOverload:!0}],"@stylistic/ts/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"},{blankLine:"any",prev:["interface","type"],next:["interface","type"]}],"@stylistic/ts/type-annotation-spacing":["error",{before:!1,after:!0,overrides:{arrow:{before:!0,after:!0}}}],"@typescript-eslint/no-namespace":"off","@typescript-eslint/prefer-string-starts-ends-with":"off","sukka-ts/string/prefer-string-starts-ends-with":"error","@typescript-eslint/switch-exhaustiveness-check":"error","sukka-ts/string/no-unneeded-to-string":"error","sukka-ts/type/no-force-cast-via-top-type":"error","sukka-ts/type/no-wrapper-type-reference":"error","sukka-ts/no-default-error":"off","sukka-ts/no-const-enum":"error","@stylistic/plus/type-generic-spacing":"error","@stylistic/plus/type-named-tuple-spacing":"error","deprecation/deprecation":"error","@typescript-eslint/no-unused-vars":"off","unused-imports/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-imports":"error","import-x/named":"off","import-x/no-duplicates":"off","import-x/namespace":"off","import-x/default":"off","import-x/no-named-as-default-member":"off"}},{name:"@eslint-sukka/ts dts",files:["**/*.d.ts"],plugins:{"import-x":r.memo(y,"eslint-plugin-import-x")},rules:{"import-x/no-duplicates":"off","unused-imports/no-unused-vars":"off"}},{name:"@eslint-sukka/ts jest/mocha",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{name:"@eslint-sukka/ts commonjs",files:["**/*.js","**/*.cjs"],plugins:w.configs.base.plugins,rules:{"@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-var-requires":"off"}}]},ed=(e={})=>[{name:"@eslint-sukka/legacy base",...e.files?{files:e.files}:{},plugins:{sukka:r.memo(h,"eslint-plugin-sukka")},rules:{"prefer-numeric-literals":"off","no-restricted-properties":["error",{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."}],"no-var":"off","prefer-object-spread":"off",strict:["error","safe"],"sukka/unicorn/prefer-default-parameters":"off","sukka/unicorn/prefer-logical-operator-over-ternary":"off","sukka/unicorn/prefer-optional-catch-binding":"off"},languageOptions:{globals:{...e.browser??!0?r.globals.browser:{},...e.node?r.globals.node:{}}}}];var em=[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,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],eg=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,38,6,186,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,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,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,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ey="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ex={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"},ev="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",ek={5:ev,"5module":ev+" export import",6:ev+" const class extends export import super"},eb=/^in(stanceof)?$/,ew=RegExp("["+ey+"]"),e_=RegExp("["+ey+"\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function eS(e,t){for(var s=65536,r=0;r<t.length&&!((s+=t[r])>e);r+=2)if((s+=t[r+1])>=e)return!0;return!1}function eE(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ew.test(String.fromCharCode(e)):!1!==t&&eS(e,eg)))}function eC(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&e_.test(String.fromCharCode(e)):!1!==t&&(eS(e,eg)||eS(e,em)))))}var eP=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 eI(e,t){return new eP(e,{beforeExpr:!0,binop:t})}var eA={beforeExpr:!0},eR={startsExpr:!0},eT={};function eL(e,t){return void 0===t&&(t={}),t.keyword=e,eT[e]=new eP(e,t)}var eN={num:new eP("num",eR),regexp:new eP("regexp",eR),string:new eP("string",eR),name:new eP("name",eR),privateId:new eP("privateId",eR),eof:new eP("eof"),bracketL:new eP("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new eP("]"),braceL:new eP("{",{beforeExpr:!0,startsExpr:!0}),braceR:new eP("}"),parenL:new eP("(",{beforeExpr:!0,startsExpr:!0}),parenR:new eP(")"),comma:new eP(",",eA),semi:new eP(";",eA),colon:new eP(":",eA),dot:new eP("."),question:new eP("?",eA),questionDot:new eP("?."),arrow:new eP("=>",eA),template:new eP("template"),invalidTemplate:new eP("invalidTemplate"),ellipsis:new eP("...",eA),backQuote:new eP("`",eR),dollarBraceL:new eP("${",{beforeExpr:!0,startsExpr:!0}),eq:new eP("=",{beforeExpr:!0,isAssign:!0}),assign:new eP("_=",{beforeExpr:!0,isAssign:!0}),incDec:new eP("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new eP("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:eI("||",1),logicalAND:eI("&&",2),bitwiseOR:eI("|",3),bitwiseXOR:eI("^",4),bitwiseAND:eI("&",5),equality:eI("==/!=/===/!==",6),relational:eI("</>/<=/>=",7),bitShift:eI("<</>>/>>>",8),plusMin:new eP("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:eI("%",10),star:eI("*",10),slash:eI("/",10),starstar:new eP("**",{beforeExpr:!0}),coalesce:eI("??",1),_break:eL("break"),_case:eL("case",eA),_catch:eL("catch"),_continue:eL("continue"),_debugger:eL("debugger"),_default:eL("default",eA),_do:eL("do",{isLoop:!0,beforeExpr:!0}),_else:eL("else",eA),_finally:eL("finally"),_for:eL("for",{isLoop:!0}),_function:eL("function",eR),_if:eL("if"),_return:eL("return",eA),_switch:eL("switch"),_throw:eL("throw",eA),_try:eL("try"),_var:eL("var"),_const:eL("const"),_while:eL("while",{isLoop:!0}),_with:eL("with"),_new:eL("new",{beforeExpr:!0,startsExpr:!0}),_this:eL("this",eR),_super:eL("super",eR),_class:eL("class",eR),_extends:eL("extends",eA),_export:eL("export"),_import:eL("import",eR),_null:eL("null",eR),_true:eL("true",eR),_false:eL("false",eR),_in:eL("in",{beforeExpr:!0,binop:7}),_instanceof:eL("instanceof",{beforeExpr:!0,binop:7}),_typeof:eL("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:eL("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:eL("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ej=/\r\n?|\n|\u2028|\u2029/,eO=RegExp(ej.source,"g");function eV(e){return 10===e||13===e||8232===e||8233===e}function eD(e,t,s){void 0===s&&(s=e.length);for(var r=t;r<s;r++){var i=e.charCodeAt(r);if(eV(i))return r<s-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return -1}var eU=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,eM=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,eF=Object.prototype,eB=eF.hasOwnProperty,e$=eF.toString,eq=Object.hasOwn||function(e,t){return eB.call(e,t)},eW=Array.isArray||function(e){return"[object Array]"===e$.call(e)},eG=Object.create(null);function eH(e){return eG[e]||(eG[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function ez(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var eK=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,eQ=function(e,t){this.line=e,this.column=t};eQ.prototype.offset=function(e){return new eQ(this.line,this.column+e)};var eX=function(e,t,s){this.start=t,this.end=s,null!==e.sourceFile&&(this.source=e.sourceFile)};function eJ(e,t){for(var s=1,r=0;;){var i=eD(e,r,t);if(i<0)return new eQ(s,t-r);++s,r=i}}var eY={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},eZ=!1;function e1(e,t){return 2|(e?4:0)|(t?8:0)}var e0=function(e,t,s){this.options=e=function(e){var t,s={};for(var r in eY)s[r]=e&&eq(e,r)?e[r]:eY[r];if("latest"===s.ecmaVersion?s.ecmaVersion=1e8:null==s.ecmaVersion?(!eZ&&"object"==typeof console&&console.warn&&(eZ=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),s.ecmaVersion=11):s.ecmaVersion>=2015&&(s.ecmaVersion-=2009),null==s.allowReserved&&(s.allowReserved=s.ecmaVersion<5),e&&null!=e.allowHashBang||(s.allowHashBang=s.ecmaVersion>=14),eW(s.onToken)){var i=s.onToken;s.onToken=function(e){return i.push(e)}}return eW(s.onComment)&&(s.onComment=(t=s.onComment,function(e,r,i,n,a,o){var l={type:e?"Block":"Line",value:r,start:i,end:n};s.locations&&(l.loc=new eX(this,a,o)),s.ranges&&(l.range=[i,n]),t.push(l)})),s}(e),this.sourceFile=e.sourceFile,this.keywords=eH(ek[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=ex[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=eH(r);var i=(r?r+" ":"")+ex.strict;this.reservedWordsStrict=eH(i),this.reservedWordsStrictBind=eH(i+" "+ex.strictBind),this.input=String(t),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(ej).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=eN.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(1),this.regexpState=null,this.privateNameStack=[]},e2={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}};e0.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},e2.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},e2.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},e2.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},e2.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},e2.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(64&t)>0||s||this.options.allowSuperOutsideMethod},e2.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},e2.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},e2.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(258&t)>0||s},e2.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},e0.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var s=this,r=0;r<e.length;r++)s=e[r](s);return s},e0.parse=function(e,t){return new this(t,e).parse()},e0.parseExpressionAt=function(e,t,s){var r=new this(s,e,t);return r.nextToken(),r.parseExpression()},e0.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(e0.prototype,e2);var e3=e0.prototype,e4=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;e3.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){eM.lastIndex=e,e+=eM.exec(this.input)[0].length;var t=e4.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){eM.lastIndex=e+t[0].length;var s=eM.exec(this.input),r=s.index+s[0].length,i=this.input.charAt(r);return";"===i||"}"===i||ej.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,eM.lastIndex=e,e+=eM.exec(this.input)[0].length,";"===this.input[e]&&e++}},e3.eat=function(e){return this.type===e&&(this.next(),!0)},e3.isContextual=function(e){return this.type===eN.name&&this.value===e&&!this.containsEsc},e3.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},e3.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},e3.canInsertSemicolon=function(){return this.type===eN.eof||this.type===eN.braceR||ej.test(this.input.slice(this.lastTokEnd,this.start))},e3.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},e3.semicolon=function(){this.eat(eN.semi)||this.insertSemicolon()||this.unexpected()},e3.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},e3.expect=function(e){this.eat(e)||this.unexpected()},e3.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var e6=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};e3.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=t?e.parenthesizedAssign:e.parenthesizedBind;s>-1&&this.raiseRecoverable(s,t?"Assigning to rvalue":"Parenthesized pattern")}},e3.checkExpressionErrors=function(e,t){if(!e)return!1;var s=e.shorthandAssign,r=e.doubleProto;if(!t)return s>=0||r>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},e3.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")},e3.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var e5=e0.prototype;e5.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==eN.eof;){var s=this.parseStatement(null,!0,t);e.body.push(s)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var n=i[r];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var e9={kind:"loop"},e8={kind:"switch"};e5.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;eM.lastIndex=this.pos;var t=eM.exec(this.input),s=this.pos+t[0].length,r=this.input.charCodeAt(s);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(eE(r,!0)){for(var i=s+1;eC(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var n=this.input.slice(s,i);if(!eb.test(n))return!0}return!1},e5.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;eM.lastIndex=this.pos;var e,t=eM.exec(this.input),s=this.pos+t[0].length;return!ej.test(this.input.slice(this.pos,s))&&"function"===this.input.slice(s,s+8)&&(s+8===this.input.length||!(eC(e=this.input.charCodeAt(s+8))||e>55295&&e<56320))},e5.parseStatement=function(e,t,s){var r,i=this.type,n=this.startNode();switch(this.isLet(e)&&(i=eN._var,r="let"),i){case eN._break:case eN._continue:return this.parseBreakContinueStatement(n,i.keyword);case eN._debugger:return this.parseDebuggerStatement(n);case eN._do:return this.parseDoStatement(n);case eN._for:return this.parseForStatement(n);case eN._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case eN._class:return e&&this.unexpected(),this.parseClass(n,!0);case eN._if:return this.parseIfStatement(n);case eN._return:return this.parseReturnStatement(n);case eN._switch:return this.parseSwitchStatement(n);case eN._throw:return this.parseThrowStatement(n);case eN._try:return this.parseTryStatement(n);case eN._const:case eN._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(n,r);case eN._while:return this.parseWhileStatement(n);case eN._with:return this.parseWithStatement(n);case eN.braceL:return this.parseBlock(!0,n);case eN.semi:return this.parseEmptyStatement(n);case eN._export:case eN._import:if(this.options.ecmaVersion>10&&i===eN._import){eM.lastIndex=this.pos;var a=eM.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(n,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'")),i===eN._import?this.parseImport(n):this.parseExport(n,s);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var c=this.value,p=this.parseExpression();if(i===eN.name&&"Identifier"===p.type&&this.eat(eN.colon))return this.parseLabeledStatement(n,c,p,e);return this.parseExpressionStatement(n,p)}},e5.parseBreakContinueStatement=function(e,t){var s="break"===t;this.next(),this.eat(eN.semi)||this.insertSemicolon()?e.label=null:this.type!==eN.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((null==e.label||i.name===e.label.name)&&(null!=i.kind&&(s||"loop"===i.kind)||e.label&&s))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,s?"BreakStatement":"ContinueStatement")},e5.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},e5.parseDoStatement=function(e){return this.next(),this.labels.push(e9),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(eN._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(eN.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},e5.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(e9),this.enterScope(0),this.expect(eN.parenL),this.type===eN.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var s=this.isLet();if(this.type===eN._var||this.type===eN._const||s){var r=this.startNode(),i=s?"let":this.value;return(this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===eN._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===eN._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var n=this.isContextual("let"),a=!1,o=new e6,l=this.parseExpression(!(t>-1)||"await",o);return this.type===eN._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===eN._in?t>-1&&this.unexpected(t):e.await=t>-1),n&&a&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,o),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},e5.parseFunctionStatement=function(e,t,s){return this.next(),this.parseFunction(e,te|(s?0:tt),!1,t)},e5.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(eN._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},e5.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(eN.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},e5.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(eN.braceL),this.labels.push(e8),this.enterScope(0);for(var t,s=!1;this.type!==eN.braceR;)if(this.type===eN._case||this.type===eN._default){var r=this.type===eN._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,t.test=null),this.expect(eN.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")},e5.parseThrowStatement=function(e){return this.next(),ej.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 e7=[];e5.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(eN.parenR),e},e5.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===eN._catch){var t=this.startNode();this.next(),this.eat(eN.parenL)?t.param=this.parseCatchClauseParam():(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(eN._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},e5.parseVarStatement=function(e,t,s){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")},e5.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(e9),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},e5.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")},e5.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},e5.parseLabeledStatement=function(e,t,s,r){for(var i=0,n=this.labels;i<n.length;i+=1)n[i].name===t&&this.raise(s.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===eN._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")},e5.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},e5.parseBlock=function(e,t,s){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(eN.braceL),e&&this.enterScope(0);this.type!==eN.braceR;){var r=this.parseStatement(null);t.body.push(r)}return s&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},e5.parseFor=function(e,t){return e.init=t,this.expect(eN.semi),e.test=this.type===eN.semi?null:this.parseExpression(),this.expect(eN.semi),e.update=this.type===eN.parenR?null:this.parseExpression(),this.expect(eN.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},e5.parseForIn=function(e,t){var s=this.type===eN._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(eN.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")},e5.parseVar=function(e,t,s,r){for(e.declarations=[],e.kind=s;;){var i=this.startNode();if(this.parseVarId(i,s),this.eat(eN.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==s||this.type===eN._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===eN._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(eN.comma))break}return e},e5.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var te=1,tt=2;function ts(e,t){var s=e.computed,r=e.key;return!s&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}e5.parseFunction=function(e,t,s,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===eN.star&&t&tt&&this.unexpected(),e.generator=this.eat(eN.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&te&&(e.id=4&t&&this.type!==eN.name?null:this.parseIdent(),e.id&&!(t&tt)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(e1(e.async,e.generator)),t&te||(e.id=this.type===eN.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,i),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&te?"FunctionDeclaration":"FunctionExpression")},e5.parseFunctionParams=function(e){this.expect(eN.parenL),e.params=this.parseBindingList(eN.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},e5.parseClass=function(e,t){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),n=!1;for(i.body=[],this.expect(eN.braceL);this.type!==eN.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(e,t){var s=t.key.name,r=e[s],i="true";return("MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i)?(e[s]="true",!1):!!r||(e[s]=i,!1)}(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=s,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},e5.parseClassElement=function(e){if(this.eat(eN.semi))return null;var t=this.options.ecmaVersion,s=this.startNode(),r="",i=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(eN.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===eN.star?o=!0:r="static"}if(s.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===eN.star)&&!this.canInsertSemicolon()?n=!0:r="async"),!r&&(t>=9||!n)&&this.eat(eN.star)&&(i=!0),!r&&!n&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:r=l)}if(r?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=r,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),t<13||this.type===eN.parenL||"method"!==a||i||n){var c=!s.static&&ts(s,"constructor");c&&"method"!==a&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=c?"constructor":a,this.parseClassMethod(s,i,n,c&&e)}else this.parseClassField(s);return s},e5.isClassElementNameStart=function(){return this.type===eN.name||this.type===eN.privateId||this.type===eN.num||this.type===eN.string||this.type===eN.bracketL||this.type.keyword},e5.parseClassElementName=function(e){this.type===eN.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)},e5.parseClassMethod=function(e,t,s,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),s&&this.raise(i.start,"Constructor can't be an async method")):e.static&&ts(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,s,r);return"get"===e.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===e.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},e5.parseClassField=function(e){if(ts(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ts(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(eN.eq)){var t=this.currentThisScope(),s=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=s}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},e5.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==eN.braceR;){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},e5.parseClassId=function(e,t){this.type===eN.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},e5.parseClassSuper=function(e){e.superClass=this.eat(eN._extends)?this.parseExprSubscripts(null,!1):null},e5.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},e5.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,s=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],n=0;n<s.length;++n){var a=s[n];eq(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},e5.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==eN.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},e5.parseExport=function(e,t){if(this.next(),this.eat(eN.star))return this.parseExportAllDeclaration(e,t);if(this.eat(eN._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==eN.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,r=e.specifiers;s<r.length;s+=1){var i=r[s];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},e5.parseExportDeclaration=function(e){return this.parseStatement(null)},e5.parseExportDefaultDeclaration=function(){if(this.type===eN._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|te,!1,e)}if(this.type===eN._class){var s=this.startNode();return this.parseClass(s,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},e5.checkExport=function(e,t,s){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),eq(e,t)&&this.raiseRecoverable(s,"Duplicate export '"+t+"'"),e[t]=!0)},e5.checkPatternExport=function(e,t){var s=t.type;if("Identifier"===s)this.checkExport(e,t,t.start);else if("ObjectPattern"===s)for(var r=0,i=t.properties;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n)}else if("ArrayPattern"===s)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===s?this.checkPatternExport(e,t.value):"AssignmentPattern"===s?this.checkPatternExport(e,t.left):"RestElement"===s&&this.checkPatternExport(e,t.argument)},e5.checkVariableExport=function(e,t){if(e)for(var s=0;s<t.length;s+=1){var r=t[s];this.checkPatternExport(e,r.id)}},e5.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},e5.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},e5.parseExportSpecifiers=function(e){var t=[],s=!0;for(this.expect(eN.braceL);!this.eat(eN.braceR);){if(s)s=!1;else if(this.expect(eN.comma),this.afterTrailingComma(eN.braceR))break;t.push(this.parseExportSpecifier(e))}return t},e5.parseImport=function(e){return this.next(),this.type===eN.string?(e.specifiers=e7,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===eN.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},e5.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},e5.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},e5.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},e5.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===eN.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(eN.comma)))return e;if(this.type===eN.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(eN.braceL);!this.eat(eN.braceR);){if(t)t=!1;else if(this.expect(eN.comma),this.afterTrailingComma(eN.braceR))break;e.push(this.parseImportSpecifier())}return e},e5.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===eN.string){var e=this.parseLiteral(this.value);return eK.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},e5.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)},e5.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var tr=e0.prototype;tr.toAssignable=function(e,t,s){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",s&&this.checkPatternErrors(s,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var n=i[r];this.toAssignable(n,t),"RestElement"===n.type&&("ArrayPattern"===n.argument.type||"ObjectPattern"===n.argument.type)&&this.raise(n.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",s&&this.checkPatternErrors(s,!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,s);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 s&&this.checkPatternErrors(s,!0);return e},tr.toAssignableList=function(e,t){for(var s=e.length,r=0;r<s;r++){var i=e[r];i&&this.toAssignable(i,t)}if(s){var n=e[s-1];6===this.options.ecmaVersion&&t&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return e},tr.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},tr.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==eN.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},tr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case eN.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(eN.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case eN.braceL:return this.parseObj(!0)}return this.parseIdent()},tr.parseBindingList=function(e,t,s,r){for(var i=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(eN.comma),t&&this.type===eN.comma)i.push(null);else if(s&&this.afterTrailingComma(e))break;else if(this.type===eN.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===eN.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},tr.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},tr.parseBindingListItem=function(e){return e},tr.parseMaybeDefault=function(e,t,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(eN.eq))return s;var r=this.startNodeAt(e,t);return r.left=s,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},tr.checkLValSimple=function(e,t,s){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),s&&(eq(s,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),s[e.name]=!0),5!==t&&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":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,s);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},tr.checkLValPattern=function(e,t,s){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var n=i[r];this.checkLValInnerPattern(n,t,s)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,s)}break;default:this.checkLValSimple(e,t,s)}},tr.checkLValInnerPattern=function(e,t,s){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,s);break;case"RestElement":this.checkLValPattern(e.argument,t,s);break;default:this.checkLValPattern(e,t,s)}};var ti=function(e,t,s,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!s,this.override=r,this.generator=!!i},tn={b_stat:new ti("{",!1),b_expr:new ti("{",!0),b_tmpl:new ti("${",!1),p_stat:new ti("(",!1),p_expr:new ti("(",!0),q_tmpl:new ti("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new ti("function",!1),f_expr:new ti("function",!0),f_expr_gen:new ti("function",!0,!1,null,!0),f_gen:new ti("function",!1,!1,null,!0)},ta=e0.prototype;ta.initialContext=function(){return[tn.b_stat]},ta.curContext=function(){return this.context[this.context.length-1]},ta.braceIsBlock=function(e){var t=this.curContext();return t===tn.f_expr||t===tn.f_stat||(e===eN.colon&&(t===tn.b_stat||t===tn.b_expr)?!t.isExpr:e===eN._return||e===eN.name&&this.exprAllowed?ej.test(this.input.slice(this.lastTokEnd,this.start)):e===eN._else||e===eN.semi||e===eN.eof||e===eN.parenR||e===eN.arrow||(e===eN.braceL?t===tn.b_stat:e!==eN._var&&e!==eN._const&&e!==eN.name&&!this.exprAllowed))},ta.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},ta.updateContext=function(e){var t,s=this.type;s.keyword&&e===eN.dot?this.exprAllowed=!1:(t=s.updateContext)?t.call(this,e):this.exprAllowed=s.beforeExpr},ta.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},eN.parenR.updateContext=eN.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===tn.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},eN.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?tn.b_stat:tn.b_expr),this.exprAllowed=!0},eN.dollarBraceL.updateContext=function(){this.context.push(tn.b_tmpl),this.exprAllowed=!0},eN.parenL.updateContext=function(e){var t=e===eN._if||e===eN._for||e===eN._with||e===eN._while;this.context.push(t?tn.p_stat:tn.p_expr),this.exprAllowed=!0},eN.incDec.updateContext=function(){},eN._function.updateContext=eN._class.updateContext=function(e){!e.beforeExpr||e===eN._else||e===eN.semi&&this.curContext()!==tn.p_stat||e===eN._return&&ej.test(this.input.slice(this.lastTokEnd,this.start))||(e===eN.colon||e===eN.braceL)&&this.curContext()===tn.b_stat?this.context.push(tn.f_stat):this.context.push(tn.f_expr),this.exprAllowed=!1},eN.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},eN.backQuote.updateContext=function(){this.curContext()===tn.q_tmpl?this.context.pop():this.context.push(tn.q_tmpl),this.exprAllowed=!1},eN.star.updateContext=function(e){if(e===eN._function){var t=this.context.length-1;this.context[t]===tn.f_expr?this.context[t]=tn.f_expr_gen:this.context[t]=tn.f_gen}this.exprAllowed=!0},eN.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==eN.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var to=e0.prototype;to.checkPropClash=function(e,t,s){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==e.type)&&(!(this.options.ecmaVersion>=6)||!e.computed&&!e.method&&!e.shorthand)){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===r&&"init"===n&&(t.proto&&(s?s.doubleProto<0&&(s.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}var a=t[r="$"+r];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(i.start,"Redefinition of property"):a=t[r]={init:!1,get:!1,set:!1},a[n]=!0}},to.parseExpression=function(e,t){var s=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===eN.comma){var n=this.startNodeAt(s,r);for(n.expressions=[i];this.eat(eN.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return i},to.parseMaybeAssign=function(e,t,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,n=-1,a=-1;t?(i=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new e6,r=!0);var o=this.start,l=this.startLoc;(this.type===eN.parenL||this.type===eN.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(s&&(c=s.call(this,c,o,l)),this.type.isAssign){var p=this.startNodeAt(o,l);return p.operator=this.value,this.type===eN.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===eN.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),n>-1&&(t.trailingComma=n),c},to.parseMaybeConditional=function(e,t){var s=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(eN.question)){var n=this.startNodeAt(s,r);return n.test=i,n.consequent=this.parseMaybeAssign(),this.expect(eN.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return i},to.parseExprOps=function(e,t){var s=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)?i:i.start===s&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,s,r,-1,e)},to.parseExprOp=function(e,t,s,r,i){var n=this.type.binop;if(null!=n&&(!i||this.type!==eN._in)&&n>r){var a=this.type===eN.logicalOR||this.type===eN.logicalAND,o=this.type===eN.coalesce;o&&(n=eN.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,p,n,i),u=this.buildBinary(t,s,e,h,l,a||o);return(a&&this.type===eN.coalesce||o&&(this.type===eN.logicalOR||this.type===eN.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,s,r,i)}return e},to.buildBinary=function(e,t,s,r,i,n){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=s,a.operator=i,a.right=r,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},to.parseMaybeUnary=function(e,t,s,r){var i,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===eN.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==eN.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(c,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==eN._in&&this.unexpected();return!s&&this.eat(eN.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1):i},to.parseExprSubscripts=function(e,t){var s=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var n=this.parseSubscripts(i,s,r,!1,t);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},to.parseSubscripts=function(e,t,s,r,i){for(var n=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,a=!1;;){var o=this.parseSubscript(e,t,s,r,n,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,s);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},to.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(eN.arrow)},to.parseSubscriptAsyncArrow=function(e,t,s,r){return this.parseArrowExpression(this.startNodeAt(e,t),s,!0,r)},to.parseSubscript=function(e,t,s,r,i,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(eN.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(eN.bracketL);if(c||l&&this.type!==eN.parenL&&this.type!==eN.backQuote||this.eat(eN.dot)){var p=this.startNodeAt(t,s);p.object=e,c?(p.property=this.parseExpression(),this.expect(eN.bracketR)):this.type===eN.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!r&&this.eat(eN.parenL)){var h=new e6,u=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(eN.parenR,this.options.ecmaVersion>=8,!1,h);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=f,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(t,s,m,a);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(t,s);g.callee=e,g.arguments=m,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===eN.backQuote){(l||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,s);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},to.parseExprAtom=function(e,t,s){this.type===eN.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case eN._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==eN.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==eN.dot&&this.type!==eN.bracketL&&this.type!==eN.parenL&&this.unexpected(),this.finishNode(r,"Super");case eN._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case eN.name:var n=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(eN._function))return this.overrideContext(tn.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(eN.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===eN.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(eN.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[l],!0,t)}return l;case eN.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case eN.num:case eN.string:return this.parseLiteral(this.value);case eN._null:case eN._true:case eN._false:return(r=this.startNode()).value=this.type===eN._null?null:this.type===eN._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case eN.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case eN.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(eN.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case eN.braceL:return this.overrideContext(tn.b_expr),this.parseObj(!1,e);case eN._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case eN._class:return this.parseClass(this.startNode(),!1);case eN._new:return this.parseNew();case eN.backQuote:return this.parseTemplate();case eN._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(s);return this.unexpected();default:return this.parseExprAtomDefault()}},to.parseExprAtomDefault=function(){this.unexpected()},to.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===eN.parenL&&!e)return this.parseDynamicImport(t);if(this.type===eN.dot){var s=this.startNodeAt(t.start,t.loc&&t.loc.start);return s.name="import",t.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(t)}this.unexpected()},to.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(eN.parenR)){var t=this.start;this.eat(eN.comma)&&this.eat(eN.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},to.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")},to.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")},to.parseParenExpression=function(){this.expect(eN.parenL);var e=this.parseExpression();return this.expect(eN.parenR),e},to.shouldParseArrow=function(e){return!this.canInsertSemicolon()},to.parseParenAndDistinguishExpression=function(e,t){var s,r=this.start,i=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,h=!1,u=new e6,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==eN.parenR;){if(p?p=!1:this.expect(eN.comma),n&&this.afterTrailingComma(eN.parenR,!0)){h=!0;break}if(this.type===eN.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===eN.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(eN.parenR),e&&this.shouldParseArrow(c)&&this.eat(eN.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(r,i,c,t);(!c.length||h)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?((s=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(s,"SequenceExpression",m,g)):s=c[0]}else s=this.parseParenExpression();if(!this.options.preserveParens)return s;var y=this.startNodeAt(r,i);return y.expression=s,this.finishNode(y,"ParenthesizedExpression")},to.parseParenItem=function(e){return e},to.parseParenArrowList=function(e,t,s,r){return this.parseArrowExpression(this.startNodeAt(e,t),s,!1,r)};var tl=[];to.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===eN.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var s=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'"),s&&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 r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(eN.parenL)?e.arguments=this.parseExprList(eN.parenR,this.options.ecmaVersion>=8,!1):e.arguments=tl,this.finishNode(e,"NewExpression")},to.parseTemplateElement=function(e){var t=e.isTagged,s=this.startNode();return this.type===eN.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===eN.backQuote,this.finishNode(s,"TemplateElement")},to.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var s=this.startNode();this.next(),s.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(s.quasis=[r];!r.tail;)this.type===eN.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(eN.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(eN.braceR),s.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(s,"TemplateLiteral")},to.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===eN.name||this.type===eN.num||this.type===eN.string||this.type===eN.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===eN.star)&&!ej.test(this.input.slice(this.lastTokEnd,this.start))},to.parseObj=function(e,t){var s=this.startNode(),r=!0,i={};for(s.properties=[],this.next();!this.eat(eN.braceR);){if(r)r=!1;else if(this.expect(eN.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(eN.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,i,t),s.properties.push(n)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")},to.parseProperty=function(e,t){var s,r,i,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(eN.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===eN.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===eN.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,n=this.startLoc),e||(s=this.eat(eN.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(a)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(eN.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,s,r,i,n,t,o),this.finishNode(a,"Property")},to.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var s=e.value.start;"get"===e.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")},to.parsePropertyValue=function(e,t,s,r,i,n,a,o){(s||r)&&this.type===eN.colon&&this.unexpected(),this.eat(eN.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===eN.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(s,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===eN.comma||this.type===eN.braceR||this.type===eN.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((s||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,n,this.copyNode(e.key)):this.type===eN.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((s||r)&&this.unexpected(),this.parseGetterSetter(e))},to.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(eN.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(eN.bracketR),e.key;e.computed=!1}return e.key=this.type===eN.num||this.type===eN.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},to.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},to.parseMethod=function(e,t,s){var r=this.startNode(),i=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|e1(t,r.generator)|(s?128:0)),this.expect(eN.parenL),r.params=this.parseBindingList(eN.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},to.parseArrowExpression=function(e,t,s,r){var i=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|e1(s,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},to.parseFunctionBody=function(e,t,s,r){var i=t&&this.type!==eN.braceL,n=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},to.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},to.checkParams=function(e,t){for(var s=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var n=i[r];this.checkLValInnerPattern(n,1,t?null:s)}},to.parseExprList=function(e,t,s,r){for(var i=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(eN.comma),t&&this.afterTrailingComma(e))break;var a=void 0;s&&this.type===eN.comma?a=null:this.type===eN.ellipsis?(a=this.parseSpread(r),r&&this.type===eN.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},to.checkUnreserved=function(e){var t=e.start,s=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===r||"await"===r)&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(t,s).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},to.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},to.parseIdentNode=function(){var e=this.startNode();return this.type===eN.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=eN.name):this.unexpected(),e},to.parsePrivateIdent=function(){var e=this.startNode();return this.type===eN.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(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},to.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===eN.semi||this.canInsertSemicolon()||this.type!==eN.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(eN.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},to.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 tc=e0.prototype;tc.raise=function(e,t){var s=eJ(this.input,e),r=SyntaxError(t+=" ("+s.line+":"+s.column+")");throw r.pos=e,r.loc=s,r.raisedAt=this.pos,r},tc.raiseRecoverable=tc.raise,tc.curPosition=function(){if(this.options.locations)return new eQ(this.curLine,this.pos-this.lineStart)};var tp=e0.prototype,th=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};tp.enterScope=function(e){this.scopeStack.push(new th(e))},tp.exitScope=function(){this.scopeStack.pop()},tp.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},tp.declareName=function(e,t,s){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var n=this.currentScope();r=this.treatFunctionsAsVar?n.lexical.indexOf(e)>-1:n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}r&&this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")},tp.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},tp.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},tp.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},tp.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var tu=function(e,t,s){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new eX(e,s)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},tf=e0.prototype;function td(e,t,s,r){return e.type=t,e.end=s,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=s),e}tf.startNode=function(){return new tu(this,this.start,this.startLoc)},tf.startNodeAt=function(e,t){return new tu(this,e,t)},tf.finishNode=function(e,t){return td.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},tf.finishNodeAt=function(e,t,s,r){return td.call(this,e,t,s,r)},tf.copyNode=function(e){var t=new tu(this,e.start,this.startLoc);for(var s in e)t[s]=e[s];return t};for(var tm="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",tg=tm+" Extended_Pictographic",ty=tg+" EBase EComp EMod EPres ExtPict",tx={9:tm,10:tg,11:tg,12:ty,13:ty,14:ty},tv={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},tk="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",tb="Adlam Adlm 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 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",tw=tb+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",t_=tw+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tS=t_+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tE=tS+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tC={9:tb,10:tw,11:t_,12:tS,13:tE,14:tE+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},tP={},tI=0,tA=[9,10,11,12,13,14];tI<tA.length;tI+=1)!function(e){var t=tP[e]={binary:eH(tx[e]+" "+tk),binaryOfStrings:eH(tv[e]),nonBinary:{General_Category:eH(tk),Script:eH(tC[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}(tA[tI]);var tR=e0.prototype,tT=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tP[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!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 tL(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function tN(e){return e>=65&&e<=90||e>=97&&e<=122}function tj(e){return tN(e)||95===e}function tO(e){return e>=48&&e<=57}function tV(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function tD(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function tU(e){return e>=48&&e<=55}tT.prototype.reset=function(e,t,s){var r=-1!==s.indexOf("v"),i=-1!==s.indexOf("u");this.start=0|e,this.source=t+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},tT.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},tT.prototype.at=function(e,t){void 0===t&&(t=!1);var s=this.source,r=s.length;if(e>=r)return -1;var i=s.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var n=s.charCodeAt(e+1);return n>=56320&&n<=57343?(i<<10)+n-56613888:i},tT.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var s=this.source,r=s.length;if(e>=r)return r;var i,n=s.charCodeAt(e);return!(t||this.switchU)||n<=55295||n>=57344||e+1>=r||(i=s.charCodeAt(e+1))<56320||i>57343?e+1:e+2},tT.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},tT.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},tT.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},tT.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},tT.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var s=this.pos,r=0;r<e.length;r+=1){var i=e[r],n=this.at(s,t);if(-1===n||n!==i)return!1;s=this.nextIndex(s,t)}return this.pos=s,!0},tR.validateRegExpFlags=function(e){for(var t=e.validFlags,s=e.flags,r=!1,i=!1,n=0;n<s.length;n++){var a=s.charAt(n);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),s.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},tR.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},tR.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,s=e.backReferenceNames;t<s.length;t+=1){var r=s[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},tR.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")},tR.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},tR.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)},tR.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 s=!1;if(this.options.ecmaVersion>=9&&(s=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!s,!0}return e.pos=t,!1},tR.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},tR.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},tR.regexp_eatBracedQuantifier=function(e,t){var s=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return -1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=s}return!1},tR.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)},tR.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},tR.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},tR.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},tR.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)},tR.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},tR.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!tL(t)&&(e.lastIntValue=t,e.advance(),!0)},tR.regexp_eatPatternCharacters=function(e){for(var t=e.pos,s=0;-1!==(s=e.current())&&!tL(s);)e.advance();return e.pos!==t},tR.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)},tR.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},tR.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},tR.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ez(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ez(e.lastIntValue);return!0}return!1},tR.regexp_eatRegExpIdentifierStart=function(e){var t,s=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),eE(t=i,!0)||36===t||95===t)?(e.lastIntValue=i,!0):(e.pos=s,!1)},tR.regexp_eatRegExpIdentifierPart=function(e){var t,s=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),eC(t=i,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=i,!0):(e.pos=s,!1)},tR.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)},tR.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var s=e.lastIntValue;if(e.switchU)return s>e.maxBackReference&&(e.maxBackReference=s),!0;if(s<=e.numCapturingParens)return!0;e.pos=t}return!1},tR.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},tR.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)},tR.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},tR.regexp_eatZero=function(e){return!(48!==e.current()||tO(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},tR.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)},tR.regexp_eatControlLetter=function(e){var t=e.current();return!!tN(t)&&(e.lastIntValue=t%32,e.advance(),!0)},tR.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var s=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i,n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(i=e.lastIntValue)>=0&&i<=1114111)return!0;r&&e.raise("Invalid unicode escape"),e.pos=s}return!1},tR.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)},tR.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},tR.regexp_eatCharacterClassEscape=function(e){var t,s=e.current();if(100===s||68===s||115===s||83===s||119===s||87===s)return e.lastIntValue=-1,e.advance(),1;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=80===s)||112===s)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(t=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&2===t&&e.raise("Invalid property name"),t;e.raise("Invalid property name")}return 0},tR.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var s=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,s,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},tR.regexp_validateUnicodePropertyNameAndValue=function(e,t,s){eq(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(s)||e.raise("Invalid property value")},tR.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},tR.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";tj(t=e.current());)e.lastStringValue+=ez(t),e.advance();return""!==e.lastStringValue},tR.regexp_eatUnicodePropertyValue=function(e){var t,s=0;for(e.lastStringValue="";tj(t=s=e.current())||tO(t);)e.lastStringValue+=ez(s),e.advance();return""!==e.lastStringValue},tR.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},tR.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),s=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===s&&e.raise("Negated character class may contain strings"),!0}return!1},tR.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},tR.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var s=e.lastIntValue;e.switchU&&(-1===t||-1===s)&&e.raise("Invalid character class"),-1!==t&&-1!==s&&t>s&&e.raise("Range out of order in character class")}}},tR.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var s=e.current();(99===s||tU(s))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},tR.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)},tR.regexp_classSetExpression=function(e){var t,s=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(s=2);for(var r=e.pos;e.eatChars([38,38]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){2!==t&&(s=1);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return s;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return s}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return s;2===t&&(s=2)}},tR.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return -1!==s&&-1!==r&&s>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},tR.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},tR.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var s=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return s&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},tR.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var s=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return s}else e.raise("Invalid escape");e.pos=t}return null},tR.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},tR.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},tR.regexp_eatClassSetCharacter=function(e){var t,s=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=s,!1));var r=e.current();return!(r<0||r===e.lookahead()&&(33===r||r>=35&&r<=38||r>=42&&r<=44||46===r||r>=58&&r<=64||94===r||96===r||126===r)||40===(t=r)||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125)&&(e.advance(),e.lastIntValue=r,!0)},tR.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!(33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=t,e.advance(),!0)},tR.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!tO(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},tR.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},tR.regexp_eatDecimalDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tO(s=e.current());)e.lastIntValue=10*e.lastIntValue+(s-48),e.advance();return e.pos!==t},tR.regexp_eatHexDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tV(s=e.current());)e.lastIntValue=16*e.lastIntValue+tD(s),e.advance();return e.pos!==t},tR.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var s=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*s+e.lastIntValue:e.lastIntValue=8*t+s}else e.lastIntValue=t;return!0}return!1},tR.regexp_eatOctalDigit=function(e){var t=e.current();return tU(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},tR.regexp_eatFixedHexDigits=function(e,t){var s=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!tV(i))return e.pos=s,!1;e.lastIntValue=16*e.lastIntValue+tD(i),e.advance()}return!0};var tM=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new eX(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},tF=e0.prototype;function tB(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}tF.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 tM(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},tF.getToken=function(){return this.next(),new tM(this)},"undefined"!=typeof Symbol&&(tF[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===eN.eof,value:t}}}}),tF.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(eN.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},tF.readToken=function(e){return eE(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},tF.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},tF.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var r=void 0,i=t;(r=eD(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,s),t,this.pos,e,this.curPosition())},tF.skipLineComment=function(e){for(var t=this.pos,s=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!eV(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,s,this.curPosition())},tF.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&&eU.test(String.fromCharCode(e)))++this.pos;else break e}}},tF.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=e,this.value=t,this.updateContext(s)},tF.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(eN.ellipsis)):(++this.pos,this.finishToken(eN.dot))},tF.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(eN.assign,2):this.finishOp(eN.slash,1)},tF.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),s=1,r=42===e?eN.star:eN.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++s,r=eN.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(eN.assign,s+1):this.finishOp(r,s)},tF.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(eN.assign,3):this.finishOp(124===e?eN.logicalOR:eN.logicalAND,2):61===t?this.finishOp(eN.assign,2):this.finishOp(124===e?eN.bitwiseOR:eN.bitwiseAND,1)},tF.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(eN.assign,2):this.finishOp(eN.bitwiseXOR,1)},tF.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||ej.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(eN.incDec,2):61===t?this.finishOp(eN.assign,2):this.finishOp(eN.plusMin,1)},tF.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),s=1;return t===e?(s=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s))?this.finishOp(eN.assign,s+1):this.finishOp(eN.bitShift,s):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(s=2),this.finishOp(eN.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tF.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(eN.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(eN.arrow)):this.finishOp(61===e?eN.eq:eN.prefix,1)},tF.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(eN.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(eN.assign,3):this.finishOp(eN.coalesce,2)}return this.finishOp(eN.question,1)},tF.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,eE(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(eN.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ez(t)+"'")},tF.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(eN.parenL);case 41:return++this.pos,this.finishToken(eN.parenR);case 59:return++this.pos,this.finishToken(eN.semi);case 44:return++this.pos,this.finishToken(eN.comma);case 91:return++this.pos,this.finishToken(eN.bracketL);case 93:return++this.pos,this.finishToken(eN.bracketR);case 123:return++this.pos,this.finishToken(eN.braceL);case 125:return++this.pos,this.finishToken(eN.braceR);case 58:return++this.pos,this.finishToken(eN.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(eN.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(eN.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ez(e)+"'")},tF.finishOp=function(e,t){var s=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,s)},tF.readRegexp=function(){for(var e,t,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(ej.test(r)&&this.raise(s,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(s,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new tT(this));o.reset(s,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(eN.regexp,{pattern:i,flags:a,value:l})},tF.readInt=function(e,t,s){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=s&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(r&&95===p){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;continue}if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}return(r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=t&&this.pos-n!==t)?null:a},tF.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var s=this.readInt(e);return null==s&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s=tB(this.input.slice(t,this.pos)),++this.pos):eE(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(eN.num,s)},tF.readNumber=function(e){var t,s=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(s,"Invalid number");var r=this.pos-s>=2&&48===this.input.charCodeAt(s);r&&this.strict&&this.raise(s,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var n=tB(this.input.slice(s,this.pos));return++this.pos,eE(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(eN.num,n)}r&&/[89]/.test(this.input.slice(s,this.pos))&&(r=!1),46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||((43===(i=this.input.charCodeAt(++this.pos))||45===i)&&++this.pos,null===this.readInt(10)&&this.raise(s,"Invalid number")),eE(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(t=this.input.slice(s,this.pos),r?parseInt(t,8):parseFloat(t.replace(/_/g,"")));return this.finishToken(eN.num,a)},tF.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},tF.readString=function(e){for(var t="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(s,this.pos)+this.readEscapedChar(!1),s=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(eV(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(s,this.pos++),this.finishToken(eN.string,t)};var t$={};tF.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===t$)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},tF.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw t$;this.raise(e,t)},tF.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===eN.template||this.type===eN.invalidTemplate)){if(36===s)return this.pos+=2,this.finishToken(eN.dollarBraceL);return++this.pos,this.finishToken(eN.backQuote)}return e+=this.input.slice(t,this.pos),this.finishToken(eN.template,e)}if(92===s)e+=this.input.slice(t,this.pos)+this.readEscapedChar(!0),t=this.pos;else if(eV(s)){switch(e+=this.input.slice(t,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},tF.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(eN.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},tF.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 ez(this.readCodePoint());case 116:return" ";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 s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(i=parseInt(r=r.slice(0,-1),8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),("0"!==r||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}if(eV(t))return"";return String.fromCharCode(t)}},tF.readHexChar=function(e){var t=this.pos,s=this.readInt(16,e);return null===s&&this.invalidStringToken(t,"Bad character escape sequence"),s},tF.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,s=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(eC(i,r))this.pos+=i<=65535?1:2;else if(92===i){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?eE:eC)(a,r)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=ez(a),s=this.pos}else break;t=!1}return e+this.input.slice(s,this.pos)},tF.readWord=function(){var e=this.readWord1(),t=eN.name;return this.keywords.test(e)&&(t=eT[e]),this.finishToken(t,e)},e0.acorn={Parser:e0,version:"8.11.3",defaultOptions:eY,Position:eQ,SourceLocation:eX,getLineInfo:eJ,Node:tu,TokenType:eP,tokTypes:eN,keywordTypes:eT,TokContext:ti,tokContexts:tn,isIdentifierChar:eC,isIdentifierStart:eE,Token:tM,isNewLine:eV,lineBreak:ej,lineBreakG:eO,nonASCIIwhitespace:eU};const tq=/^\.?\//;var tW=function(e,...t){let s=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(s){let t=e.replace(tq,"");s=function(e="",t){return e.endsWith("/")?e:e+"/"}(s)+t}else s=e;return s};const tG=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,tH=new Set(P.builtinModules);function tz(e){return e.replace(/\\/g,"/")}const tK={}.hasOwnProperty,tQ=/^([A-Z][a-z\d]*)+$/,tX=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),tJ={};function tY(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const tZ=new Map;function t1(e,t,s){return tZ.set(e,t),function(...t){let r=Error.stackTraceLimit;t0()&&(Error.stackTraceLimit=0);let i=new s;t0()&&(Error.stackTraceLimit=r);let n=function(e,t,s){let r=tZ.get(e);if(I(void 0!==r,"expected `message` to be found"),"function"==typeof r)return I(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,s,t);let i=/%[dfijoOs]/g,n=0;for(;null!==i.exec(r);)n++;return(I(n===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n}).`),0===t.length)?r:(t.unshift(r),Reflect.apply(R.format,null,t))}(e,t,i);return Object.defineProperties(i,{message:{value:n,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),t2(i),i.code=e,i}}function t0(){try{if(A.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):tK.call(e,"writable")&&void 0!==e.writable?e.writable:void 0!==e.set}tJ.ERR_INVALID_ARG_TYPE=t1("ERR_INVALID_ARG_TYPE",(e,t,s)=>{I("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";if(e.endsWith(" argument"))r+=`${e} `;else{let t=e.includes(".")?"property":"argument";r+=`"${e}" ${t} `}r+="must be ";let i=[],n=[],a=[];for(let e of t)I("string"==typeof e,"All expected entries have to be of type string"),tX.has(e)?i.push(e.toLowerCase()):null===tQ.exec(e)?(I("object"!==e,'The value "object" should be written as "Object"'),a.push(e)):n.push(e);if(n.length>0){let e=i.indexOf("object");-1!==e&&(i.slice(e,1),n.push("Object"))}return i.length>0&&(r+=`${i.length>1?"one of type":"of type"} ${tY(i,"or")}`,(n.length>0||a.length>0)&&(r+=" or ")),n.length>0&&(r+=`an instance of ${tY(n,"or")}`,a.length>0&&(r+=" or ")),a.length>0&&(a.length>1?r+=`one of ${tY(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(r+="an "),r+=`${a[0]}`)),r+=`. Received ${function(e){if(null==e)return String(e);if("function"==typeof e&&e.name)return`function ${e.name}`;if("object"==typeof e)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${R.inspect(e,{depth:-1})}`;let t=R.inspect(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(s)}`},TypeError),tJ.ERR_INVALID_MODULE_SPECIFIER=t1("ERR_INVALID_MODULE_SPECIFIER",(e,t,s)=>`Invalid module "${e}" ${t}${s?` imported from ${s}`:""}`,TypeError),tJ.ERR_INVALID_PACKAGE_CONFIG=t1("ERR_INVALID_PACKAGE_CONFIG",(e,t,s)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${s?`. ${s}`:""}`,Error),tJ.ERR_INVALID_PACKAGE_TARGET=t1("ERR_INVALID_PACKAGE_TARGET",(e,t,s,r=!1,i)=>{let n="string"==typeof s&&!r&&s.length>0&&!s.startsWith("./");return"."===t?(I(!1===r),`Invalid "exports" main target ${JSON.stringify(s)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${r?"imports":"exports"}" target ${JSON.stringify(s)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`},Error),tJ.ERR_MODULE_NOT_FOUND=t1("ERR_MODULE_NOT_FOUND",(e,t,s=!1)=>`Cannot find ${s?"module":"package"} '${e}' imported from ${t}`,Error),tJ.ERR_NETWORK_IMPORT_DISALLOWED=t1("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),tJ.ERR_PACKAGE_IMPORT_NOT_DEFINED=t1("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,s)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${s}`,TypeError),tJ.ERR_PACKAGE_PATH_NOT_EXPORTED=t1("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,s)=>"."===t?`No "exports" main defined in ${e}package.json${s?` imported from ${s}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${s?` imported from ${s}`:""}`,Error),tJ.ERR_UNSUPPORTED_DIR_IMPORT=t1("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),tJ.ERR_UNSUPPORTED_RESOLVE_REQUEST=t1("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),tJ.ERR_UNKNOWN_FILE_EXTENSION=t1("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),tJ.ERR_INVALID_ARG_VALUE=t1("ERR_INVALID_ARG_VALUE",(e,t,s="is invalid")=>{let r=R.inspect(t);r.length>128&&(r=`${r.slice(0,128)}...`);let i=e.includes(".")?"property":"argument";return`The ${i} '${e}' ${s}. Received ${r}`},TypeError);const t2=function(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}(function(t){let s=t0();return s&&(e=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),s&&(Error.stackTraceLimit=e),t}),t3={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:t4}=tJ,t6=new Map;function t5(e,{base:t,specifier:s}){let r;let n=t6.get(e);if(n)return n;try{r=i.readFileSync(o.toNamespacedPath(e),"utf8")}catch(e){if("ENOENT"!==e.code)throw e}let l={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(void 0!==r){let i;try{i=JSON.parse(r)}catch(i){let r=new t4(e,(t?`"${s}" from `:"")+a.fileURLToPath(t||s),i.message);throw r.cause=i,r}l.exists=!0,t3.call(i,"name")&&"string"==typeof i.name&&(l.name=i.name),t3.call(i,"main")&&"string"==typeof i.main&&(l.main=i.main),t3.call(i,"exports")&&(l.exports=i.exports),t3.call(i,"imports")&&(l.imports=i.imports),t3.call(i,"type")&&("commonjs"===i.type||"module"===i.type)&&(l.type=i.type)}return t6.set(e,l),l}function t9(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=t5(a.fileURLToPath(t),{specifier:e});if(s.exists)return s;let r=t;if((t=new URL("../package.json",t)).pathname===r.pathname)break}return{pjsonPath:a.fileURLToPath(t),exists:!1,type:"none"}}const{ERR_UNKNOWN_FILE_EXTENSION:t8}=tJ,t7={}.hasOwnProperty,se={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},st={__proto__:null,"data:":function(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return t&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(t)?"module":"application/json"===t?"json":null},"file:":function(e,t,s){let r=function(e){let t=e.pathname,s=t.length;for(;s--;){let e=t.codePointAt(s);if(47===e)break;if(46===e)return 47===t.codePointAt(s-1)?"":t.slice(s)}return""}(e);if(".js"===r){let t=t9(e).type;return"none"!==t?t:"commonjs"}if(""===r){let t=t9(e).type;return"none"===t||"commonjs"===t?"commonjs":"module"}let i=se[r];if(i)return i;if(!s)throw new t8(r,a.fileURLToPath(e))},"http:":ss,"https:":ss,"node:":()=>"builtin"};function ss(){}const sr=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:si,ERR_INVALID_MODULE_SPECIFIER:sn,ERR_INVALID_PACKAGE_CONFIG:sa,ERR_INVALID_PACKAGE_TARGET:so,ERR_MODULE_NOT_FOUND:sl,ERR_PACKAGE_IMPORT_NOT_DEFINED:sc,ERR_PACKAGE_PATH_NOT_EXPORTED:sp,ERR_UNSUPPORTED_DIR_IMPORT:sh,ERR_UNSUPPORTED_RESOLVE_REQUEST:su}=tJ,sf={}.hasOwnProperty,sd=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,sm=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,sg=/^\.|%|\\/,sy=/\*/g,sx=/%2f|%5c/i,sv=new Set,sk=/[/\\]{2}/;function sb(e,t,s,r,i,o,l){if(n.noDeprecation)return;let c=a.fileURLToPath(r),p=null!==sk.exec(l?e:t);n.emitWarning(`Use of deprecated ${p?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===s?"":`matched to "${s}" `}in the "${i?"imports":"exports"}" field module resolution of the package at ${c}${o?` imported from ${a.fileURLToPath(o)}`:""}.`,"DeprecationWarning","DEP0166")}function sw(e,t,s,r){if(n.noDeprecation||"module"!==function(e,t){let s=e.protocol;return t7.call(st,s)&&st[s](e,t,!0)||null}(e,{parentURL:s.href}))return;let i=a.fileURLToPath(e.href),l=a.fileURLToPath(new a.URL(".",t)),c=a.fileURLToPath(s);r?o.resolve(l,r)!==i&&n.emitWarning(`Package ${l} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${i.slice(l.length)}", imported from ${c}.
|
|
5
|
+
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):n.emitWarning(`No "main" or "exports" field defined in the package.json for ${l} resolving the main entry point "${i.slice(l.length)}", imported from ${c}.
|
|
6
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function s_(e){try{return i.statSync(e)}catch{}}function sS(e){let t=i.statSync(e,{throwIfNoEntry:!1}),s=t?t.isFile():void 0;return null!=s&&s}function sE(e,t,s){return new sp(a.fileURLToPath(new a.URL(".",t)),e,s&&a.fileURLToPath(s))}function sC(e,t,s,r,i){return t="object"==typeof t&&null!==t?JSON.stringify(t,null,""):`${t}`,new so(a.fileURLToPath(new a.URL(".",s)),e,t,r,i&&a.fileURLToPath(i))}function sP(e,t,s,r,i,n,o,l,c){if("string"==typeof t)return function(e,t,s,r,i,n,o,l,c){if(""!==t&&!n&&"/"!==e[e.length-1])throw sC(s,e,r,o,i);if(!e.startsWith("./")){if(o&&!e.startsWith("../")&&!e.startsWith("/")){let s=!1;try{new a.URL(e),s=!0}catch{}if(!s)return sR(n?sr.call(sy,e,()=>t):e+t,r,c)}throw sC(s,e,r,o,i)}if(null!==sd.exec(e.slice(2))){if(null===sm.exec(e.slice(2))){if(!l){let a=n?s.replace("*",()=>t):s+t;sb(n?sr.call(sy,e,()=>t):e,a,s,r,o,i,!0)}}else throw sC(s,e,r,o,i)}let p=new a.URL(e,r),h=p.pathname,u=new a.URL(".",r).pathname;if(!h.startsWith(u))throw sC(s,e,r,o,i);if(""===t)return p;if(null!==sd.exec(t)){let c=n?s.replace("*",()=>t):s+t;null===sm.exec(t)?l||sb(n?sr.call(sy,e,()=>t):e,c,s,r,o,i,!1):function(e,t,s,r,i){throw new sn(e,`request is not a valid match in pattern "${t}" for the "${r?"imports":"exports"}" resolution of ${a.fileURLToPath(s)}`,i&&a.fileURLToPath(i))}(c,s,r,o,i)}return n?new a.URL(sr.call(sy,p.href,()=>t)):new a.URL(t,p)}(t,s,r,e,i,n,o,l,c);if(Array.isArray(t)){let a;if(0===t.length)return null;let p=-1;for(;++p<t.length;){let h;let u=t[p];try{h=sP(e,u,s,r,i,n,o,l,c)}catch(e){if(a=e,"ERR_INVALID_PACKAGE_TARGET"===e.code)continue;throw e}if(void 0!==h){if(null===h){a=null;continue}return h}}if(null==a)return null;throw a}if("object"==typeof t&&null!==t){let p=Object.getOwnPropertyNames(t),h=-1;for(;++h<p.length;)if(function(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}(p[h]))throw new sa(a.fileURLToPath(e),i,'"exports" cannot contain numeric property keys.');for(h=-1;++h<p.length;){let a=p[h];if("default"===a||c&&c.has(a)){let p=sP(e,t[a],s,r,i,n,o,l,c);if(void 0===p)continue;return p}}return null}if(null===t)return null;throw sC(r,t,e,o,i)}function sI(e,t,s,r,i){let o=s.exports;if(function(e,t,s){if("string"==typeof e||Array.isArray(e))return!0;if("object"!=typeof e||null===e)return!1;let r=Object.getOwnPropertyNames(e),i=!1,n=0,o=-1;for(;++o<r.length;){let e=r[o],l=""===e||"."!==e[0];if(0==n++)i=l;else if(i!==l)throw new sa(a.fileURLToPath(t),s,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return i}(o,e,r)&&(o={".":o}),sf.call(o,t)&&!t.includes("*")&&!t.endsWith("/")){let s=sP(e,o[t],"",t,r,!1,!1,!1,i);if(null==s)throw sE(t,e,r);return s}let l="",c="",p=Object.getOwnPropertyNames(o),h=-1;for(;++h<p.length;){let s=p[h],i=s.indexOf("*");if(-1!==i&&t.startsWith(s.slice(0,i))){t.endsWith("/")&&function(e,t,s){if(n.noDeprecation)return;let r=a.fileURLToPath(t);sv.has(r+"|"+e)||(sv.add(r+"|"+e),n.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${s?` imported from ${a.fileURLToPath(s)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}(t,e,r);let o=s.slice(i+1);t.length>=s.length&&t.endsWith(o)&&1===sA(l,s)&&s.lastIndexOf("*")===i&&(l=s,c=t.slice(i,t.length-o.length))}}if(l){let s=sP(e,o[l],c,l,r,!0,!1,t.endsWith("/"),i);if(null==s)throw sE(t,e,r);return s}throw sE(t,e,r)}function sA(e,t){let s=e.indexOf("*"),r=t.indexOf("*"),i=-1===s?e.length:s+1,n=-1===r?t.length:r+1;return i>n?-1:n>i||-1===s?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function sR(e,t,s){let r;if(P.builtinModules.includes(e))return new a.URL("node:"+e);let{packageName:i,packageSubpath:n,isScoped:o}=function(e,t){let s=e.indexOf("/"),r=!0,i=!1;"@"===e[0]&&(i=!0,-1===s||0===e.length?r=!1:s=e.indexOf("/",s+1));let n=-1===s?e:e.slice(0,s);if(null!==sg.exec(n)&&(r=!1),!r)throw new sn(e,"is not a valid package name",a.fileURLToPath(t));return{packageName:n,packageSubpath:"."+(-1===s?"":e.slice(s)),isScoped:i}}(e,t),l=t9(t);if(l.exists){let e=a.pathToFileURL(l.pjsonPath);if(l.name===i&&void 0!==l.exports&&null!==l.exports)return sI(e,n,l,t,s)}let c=new a.URL("./node_modules/"+i+"/package.json",t),p=a.fileURLToPath(c);do{let l=s_(p.slice(0,-13));if(!l||!l.isDirectory()){r=p,c=new a.URL((o?"../../../../node_modules/":"../../../node_modules/")+i+"/package.json",c),p=a.fileURLToPath(c);continue}let h=t5(p,{base:t,specifier:e});if(void 0!==h.exports&&null!==h.exports)return sI(c,n,h,t,s);if("."===n)return function(e,t,s){let r;if(void 0!==t.main){if(sS(r=new a.URL(t.main,e)))return r;let i=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],n=-1;for(;++n<i.length&&!sS(r=new a.URL(i[n],e));)r=void 0;if(r)return sw(r,e,s,t.main),r}let i=["./index.js","./index.json","./index.node"],n=-1;for(;++n<i.length&&!sS(r=new a.URL(i[n],e));)r=void 0;if(r)return sw(r,e,s,t.main),r;throw new sl(a.fileURLToPath(new a.URL(".",e)),a.fileURLToPath(s))}(c,h,t);return new a.URL(n,c)}while(p.length!==r.length);throw new sl(i,a.fileURLToPath(t),!1)}function sT(e){return"string"!=typeof e||e.startsWith("file://")?tz(a.fileURLToPath(e)):tz(e)}function sL(e){return a.pathToFileURL(sT(e)).toString()}const sN=/* @__PURE__ */new Set(["node","import"]),sj=[".mjs",".cjs",".js",".json"],sO=/* @__PURE__ */new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function sV(e,t,s){try{return function(e,t,s,r){var n;let l;let c=t.protocol;if(n=e,""!==n&&("/"===n[0]||"."===n[0]&&(1===n.length||"/"===n[1]||"."===n[1]&&(2===n.length||"/"===n[2]))))try{l=new a.URL(e,t)}catch(r){let s=new su(e,t);throw s.cause=r,s}else if("file:"===c&&"#"===e[0])l=function(e,t,s){var r;let i;if("#"===e||e.startsWith("#/")||e.endsWith("/"))throw new sn(e,"is not a valid internal imports specifier name",a.fileURLToPath(t));let n=t9(t);if(n.exists){i=a.pathToFileURL(n.pjsonPath);let r=n.imports;if(r){if(sf.call(r,e)&&!e.includes("*")){let n=sP(i,r[e],"",e,t,!1,!0,!1,s);if(null!=n)return n}else{let n="",a="",o=Object.getOwnPropertyNames(r),l=-1;for(;++l<o.length;){let t=o[l],s=t.indexOf("*");if(-1!==s&&e.startsWith(t.slice(0,-1))){let r=t.slice(s+1);e.length>=t.length&&e.endsWith(r)&&1===sA(n,t)&&t.lastIndexOf("*")===s&&(n=t,a=e.slice(s,e.length-r.length))}}if(n){let e=sP(i,r[n],a,n,t,!0,!0,!1,s);if(null!=e)return e}}}}throw r=i,new sc(e,r&&a.fileURLToPath(new a.URL(".",r)),a.fileURLToPath(t))}(e,t,s);else try{l=new a.URL(e)}catch(r){if(("data:"===c||"http:"===c||"https:"===c)&&!P.builtinModules.includes(e)){let s=new su(e,t);throw s.cause=r,s}l=sR(e,t,s)}return(I(void 0!==l,"expected to be defined"),"file:"!==l.protocol)?l:function(e,t,s){let r;if(null!==sx.exec(e.pathname))throw new sn(e.pathname,'must not include encoded "/" or "\\" characters',a.fileURLToPath(t));try{r=a.fileURLToPath(e)}catch(s){throw Object.defineProperty(s,"input",{value:String(e)}),Object.defineProperty(s,"module",{value:String(t)}),s}let n=s_(r.endsWith("/")?r.slice(-1):r);if(n&&n.isDirectory()){let s=new sh(r,a.fileURLToPath(t));throw s.url=String(e),s}if(!n||!n.isFile()){let s=new sl(r||e.pathname,t&&a.fileURLToPath(t),!0);throw s.url=String(e),s}{let t=i.realpathSync(r),{search:s,hash:n}=e;(e=a.pathToFileURL(t+(r.endsWith(o.sep)?"/":""))).search=s,e.hash=n}return e}(l,t)}(e,t,s)}catch(e){if(!sO.has(e?.code))throw e}}function sD(e,t={}){"auto"!==t.platform&&t.platform||(t.platform="win32"===n.platform?"win32":"posix");let s=sT(function(e,t={}){var s;let r;if("string"!=typeof e){if(e instanceof URL)e=sT(e);else throw TypeError("input must be a `string` or `URL`")}if(/(node|data|http|https):/.test(e))return e;if(tH.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=sT(e)),s=e,tG.test(s))try{if(i.statSync(e).isFile())return sL(e)}catch(e){if(e?.code!=="ENOENT")throw e}let n=t.conditions?new Set(t.conditions):sN,a=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(e=>{var t;return new URL(("string"!=typeof(t=e.toString())&&(t=t.toString()),/(node|data|http|https|file):/.test(t))?t:tH.has(t)?"node:"+t:"file://"+encodeURI(tz(t)))});0===a.length&&a.push(new URL(sL(process.cwd())));let o=[...a];for(let e of a)"file:"===e.protocol&&o.push(new URL("./",e),new URL(tW(e.pathname,"_index.js"),e),new URL("node_modules",e));for(let s of o){if(r=sV(e,s,n))break;for(let i of["","/index"]){for(let a of t.extensions||sj)if(r=sV(e+i+a,s,n))break;if(r)break}if(r)break}if(!r){let t=Error(`Cannot find module ${e} imported from ${o.join(", ")}`);throw t.code="ERR_MODULE_NOT_FOUND",t}return sL(r)}(e,{url:t.paths}));return"win32"===t.platform?o.win32.normalize(s):s}function sU(e,t={}){return!!function(e,t={}){try{return sD(`${e}/package.json`,t)}catch{}try{return sD(e,t)}catch(e){return"MODULE_NOT_FOUND"!==e.code&&"ERR_MODULE_NOT_FOUND"!==e.code&&console.error(e),!1}}(e,t)}const sM=async e=>{if(!N.isCI&&process.stdout.isTTY&&!sU(e)){let{confirm:t}=await Promise.resolve().then(function(){return require("./vendor-BoZ9pZii.cjs")}).then(function(e){return e.i});await t({message:`Package is required for this config: ${e}. Do you want to install it?`})&&await Promise.resolve().then(function(){return require("./vendor-BoZ9pZii.cjs")}).then(function(e){return e.b}).then(t=>t.installPackage(e,{dev:!0}))}return t(e)};function sF(e,t=!1){return"boolean"==typeof e?e:e?.enable??t}function sB(e,...t){if("boolean"==typeof e||void 0===e)return;let{enable:s,...r}=e;return t.length?L.defu(r,...t):r}function s$(e){sU(e)&&console.error(T.yellow(`[eslint-config-sukka] "${e}" is deprecated and you should uninstall it`))}const sq=async(e,...t)=>{let s=[];s$("@eslint-sukka/js"),s$("@eslint-sukka/json"),s$("@eslint-sukka/ts"),s$("@eslint-sukka/legacy");let r=sF(e?.ts,sU("typescript"));s.push(ee(e?.ignores),et()),sF(e?.js,!0)&&s.push(ei(sB(e?.js)),es({typescript:r})),sF(e?.json,!0)&&s.push(eo()),r&&s.push(ef(sB(e?.ts)));let i=sU("next");if(sF(e?.react,sU("react")||i)){if(r){let t=await sM("@eslint-sukka/react"),r=sU("@remix-run/node")||sU("@remix-run/react")||sU("@remix-run/serve")||sU("@remix-run/dev");s.push(t.react(sB(e?.react,{nextjs:i,remix:r,reactRefresh:{allowConstantExport:sU("vite")},reactCompiler:sU("babel-plugin-react-compiler")||sU("react-compiler-webpack")?"error":"off"}))),sF(e?.next,i)&&s.push(t.next()),sF(e?.stylex,sU("@stylexjs/stylex")||sU("stylex-webpack"))&&s.push(t.stylex(sB(e?.stylex)))}else console.warn("[eslint-config-sukka] React preset will not be enabled when TypeScript is missing.")}return sF(e?.node,sU("@types/node")||sU("@types/bun"))&&s.push((await sM("@eslint-sukka/node")).node(sB(e?.node))),sF(e?.legacy)&&s.push(ed(sB(e?.legacy))),s.push(t),s.flat()};Object.defineProperty(exports,"constants",{enumerable:!0,get:function(){return r.constants}}),exports.ignores=ee,exports.sukka=sq;
|