@eslint-sukka/react 6.14.1 → 6.15.0
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 +14 -1
- package/dist/index.mjs +14 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
import{constants as e,memo as n,globals as r}from"@eslint-sukka/shared";import t from"@next/eslint-plugin-next";import{eslint_plugin_jsx_a11y_minimal as s}from"@eslint-sukka/eslint-plugin-react-jsx-a11y";import o from"eslint-plugin-react-hooks";import i from"eslint-plugin-react-compiler";import a from"eslint-plugin-react-refresh";import l from"@eslint-react/eslint-plugin";import c from"@stylistic/eslint-plugin-jsx";import p from"eslint-plugin-ssr-friendly";import{fixupPluginRules as m}from"@eslint/compat";import u from"@stylexjs/eslint-plugin";function d(){return[{plugins:{"@next/next":t},files:[e.GLOB_TS,e.GLOB_TSX,e.GLOB_JSX],rules:{...t.configs.recommended.rules,...t.configs["core-web-vitals"].rules,"@next/next/no-img-element":"off"}}]}var f,x,g,y={exports:{}},C={},h=y.exports,j=(f=function(){if(g)return y.exports;g=1;var e=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0});let n={configs:{recommended:{plugins:["react-prefer-function-component"],rules:{"react-prefer-function-component/react-prefer-function-component":"error"}}},rules:{"react-prefer-function-component":e((x||(x=1,!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ALLOW_JSX_UTILITY_CLASS=e.ALLOW_COMPONENT_DID_CATCH=e.COMPONENT_SHOULD_BE_FUNCTION=void 0,e.COMPONENT_SHOULD_BE_FUNCTION="componentShouldBeFunction",e.ALLOW_COMPONENT_DID_CATCH="allowComponentDidCatch",e.ALLOW_JSX_UTILITY_CLASS="allowJsxUtilityClass";let n={meta:{docs:{description:"Enforce components are written as function components",category:"Stylistic Issues",recommended:!1,suggestion:!1,url:"https://github.com/tatethurston/eslint-plugin-react-prefer-function-component#rule-details"},type:"problem",messages:{[e.COMPONENT_SHOULD_BE_FUNCTION]:"Class component should be written as a function"},schema:[{type:"object",properties:{[e.ALLOW_COMPONENT_DID_CATCH]:{default:!0,type:"boolean"},[e.ALLOW_JSX_UTILITY_CLASS]:{default:!1,type:"boolean"}},additionalProperties:!1}]},create(n){var r,t,s,o;let i=null===(t=null===(r=n.options[0])||void 0===r?void 0:r.allowComponentDidCatch)||void 0===t||t,a=null!==(o=null===(s=n.options[0])||void 0===s?void 0:s.allowJsxUtilityClass)&&void 0!==o&&o,l=new Set;function c(e){(void 0===e.body.body.find(e=>{var n;return(null===(n=e.key)||void 0===n?void 0:n.name)==="componentDidCatch"})||!i)&&l.add(e)}function p(e){a||c(e)}return{"ClassDeclaration:has(JSXElement)":p,"ClassDeclaration:has(JSXFragment)":p,"ClassExpression:has(JSXElement)":p,"ClassExpression:has(JSXFragment)":p,"ClassDeclaration:has(JSXElement):has(MethodDefinition[key.name='render'])":c,"ClassDeclaration:has(JSXFragment):has(MethodDefinition[key.name='render'])":c,"ClassExpression:has(JSXElement):has(MethodDefinition[key.name='render'])":c,"ClassExpression:has(JSXFragment):has(MethodDefinition[key.name='render'])":c,"ClassDeclaration[superClass.object.name='React'][superClass.property.name='Component']":c,"ClassDeclaration[superClass.object.name='React'][superClass.property.name='PureComponent']":c,"ClassDeclaration[superClass.name='Component']":c,"ClassDeclaration[superClass.name='PureComponent']":c,"ClassExpression[superClass.object.name='React'][superClass.property.name='Component']":c,"ClassExpression[superClass.object.name='React'][superClass.property.name='PureComponent']":c,"ClassExpression[superClass.name='Component']":c,"ClassExpression[superClass.name='PureComponent']":c,"Program:exit"(){l.forEach(r=>{r.id?r=r.id:"VariableDeclarator"==r.parent.type&&(r=r.parent.id),n.report({node:r,messageId:e.COMPONENT_SHOULD_BE_FUNCTION})})}}}};e.default=n}(C)),C)).default}};return y.exports=n,y.exports}())&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f;let _=n(l,"@eslint-react/eslint-plugin"),w=n(m(p),"eslint-plugin-ssr-friendly");function O({reactCompiler:t="error",additionalHooks:l="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample)",nextjs:p=!1,remix:m=!1,reactRefresh:u={},additionalHooksWithType:d={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:f=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:x=!1}=u;return[{name:"@eslint-sukka/react base",files:[e.GLOB_TS,e.GLOB_TSX,e.GLOB_JSX],plugins:{"jsx-a11y-minimal":n(s,"@eslint-sukka/eslint-plugin-react-jsx-a11y#eslint_plugin_jsx_a11y_minimal"),"react-hooks":n(o,"eslint-plugin-react-hooks"),"@stylistic/jsx":n(c,"@stylistic/eslint-plugin-jsx"),"react-prefer-function-component":n(j,"eslint-plugin-react-prefer-function-component"),"react-compiler":n(i,"eslint-plugin-react-compiler"),..._.configs.recommended.plugins,"ssr-friendly":w,"react-refresh":a},settings:{"react-x":{version:"detect",additionalHooks:d,additionalComponents:f}},languageOptions:{globals:r.browser},rules:{...o.configs.recommended.rules,"react-compiler/react-compiler":t,"react-hooks/exhaustive-deps":["error",{additionalHooks:l}],"@stylistic/jsx/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],..._.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/no-comment-textnodes":"error","@eslint-react/dom/no-unsafe-target-blank":"error","@eslint-react/no-children-prop":"error","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/no-unused-state":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/dom/no-script-url":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/naming-convention/component-name":["error",{rule:"PascalCase"}],"@eslint-react/naming-convention/filename":["error",{rule:"kebab-case"}],"@eslint-react/naming-convention/filename-extension":["error",{allow:"as-needed"}],"@eslint-react/naming-convention/use-state":"error","react-prefer-function-component/react-prefer-function-component":"error","@stylistic/jsx/jsx-self-closing-comp":"error","@eslint-react/prefer-shorthand-boolean":"error","@stylistic/jsx/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx/jsx-indent-props":["error",2],"@stylistic/jsx/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx/jsx-equals-spacing":["error","never"],"@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-child-element-spacing":"error","@stylistic/jsx/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-children-in-void-dom-elements":"error","@stylistic/jsx/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@stylistic/jsx/jsx-props-no-multi-spaces":"error","@eslint-react/prefer-shorthand-fragment":"error","@stylistic/jsx/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"@eslint-react/no-missing-key":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-implicit-key":"error","@eslint-react/no-useless-fragment":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-nested-components":"error","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/dom/no-missing-button-type":"error","@eslint-react/dom/no-namespace":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"],ignoreClassesThatImplementAnInterface:"public-fields"}],"jsx-a11y-minimal/alt-text":["warn",{elements:["img"],img:["Image"]}],"jsx-a11y-minimal/aria-props":"warn","jsx-a11y-minimal/aria-proptypes":"warn","jsx-a11y-minimal/aria-role":"warn","jsx-a11y-minimal/aria-unsupported-elements":"warn","jsx-a11y-minimal/iframe-has-title":"warn","jsx-a11y-minimal/no-access-key":"warn","jsx-a11y-minimal/role-has-required-aria-props":"warn","jsx-a11y-minimal/role-supports-aria-props":"warn","jsx-a11y-minimal/tabindex-no-positive":"warn","react-refresh/only-export-components":["warn",{allowConstantExport:x,allowExportNames:[...p?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...m?["meta","links","headers","loader","action"]:[]]}]}},{files:["**/app/**/_*.?([cm])[jt]s?(x)",String.raw`**/app/**/\[*.?([cm])[jt]s?(x)`],rules:{"@eslint-react/naming-convention/filename":"off"}}]}function S({opt:n={}}={}){return[{plugins:{"@stylexjs":u},files:[e.GLOB_TS,e.GLOB_TSX,e.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",n],"@stylexjs/valid-shorthands":["error",n],"@stylexjs/sort-keys":"off"}}]}export{d as next,O as react,S as stylex};
|
|
1
|
+
let e;import{constants as t,memo as s,globals as i}from"@eslint-sukka/shared";import r from"@next/eslint-plugin-next";import{eslint_plugin_jsx_a11y_minimal as n}from"@eslint-sukka/eslint-plugin-react-jsx-a11y";import a from"eslint-plugin-react-hooks";import o from"eslint-plugin-react-compiler";import l from"eslint-plugin-react-refresh";import p from"@eslint-react/eslint-plugin";import c from"eslint-plugin-ssr-friendly";import{fixupPluginRules as u}from"@eslint/compat";import h from"@stylexjs/eslint-plugin";function d(){return[{plugins:{"@next/next":r},files:[t.GLOB_TS,t.GLOB_TSX,t.GLOB_JSX],rules:{...r.configs.recommended.rules,...r.configs["core-web-vitals"].rules,"@next/next/no-img-element":"off"}}]}function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,g,x,y,b,v,S,C,E,k,_,w,A,T,I,P,N,L={exports:{}},R={},O=L.exports,j=f(function(){if(g)return L.exports;g=1;var e=O&&O.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(O,"__esModule",{value:!0});let t={configs:{recommended:{plugins:["react-prefer-function-component"],rules:{"react-prefer-function-component/react-prefer-function-component":"error"}}},rules:{"react-prefer-function-component":e((m||(m=1,!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ALLOW_JSX_UTILITY_CLASS=e.ALLOW_COMPONENT_DID_CATCH=e.COMPONENT_SHOULD_BE_FUNCTION=void 0,e.COMPONENT_SHOULD_BE_FUNCTION="componentShouldBeFunction",e.ALLOW_COMPONENT_DID_CATCH="allowComponentDidCatch",e.ALLOW_JSX_UTILITY_CLASS="allowJsxUtilityClass";let t={meta:{docs:{description:"Enforce components are written as function components",category:"Stylistic Issues",recommended:!1,suggestion:!1,url:"https://github.com/tatethurston/eslint-plugin-react-prefer-function-component#rule-details"},type:"problem",messages:{[e.COMPONENT_SHOULD_BE_FUNCTION]:"Class component should be written as a function"},schema:[{type:"object",properties:{[e.ALLOW_COMPONENT_DID_CATCH]:{default:!0,type:"boolean"},[e.ALLOW_JSX_UTILITY_CLASS]:{default:!1,type:"boolean"}},additionalProperties:!1}]},create(t){var s,i,r,n;let a=null===(i=null===(s=t.options[0])||void 0===s?void 0:s.allowComponentDidCatch)||void 0===i||i,o=null!==(n=null===(r=t.options[0])||void 0===r?void 0:r.allowJsxUtilityClass)&&void 0!==n&&n,l=new Set;function p(e){(void 0===e.body.body.find(e=>{var t;return(null===(t=e.key)||void 0===t?void 0:t.name)==="componentDidCatch"})||!a)&&l.add(e)}function c(e){o||p(e)}return{"ClassDeclaration:has(JSXElement)":c,"ClassDeclaration:has(JSXFragment)":c,"ClassExpression:has(JSXElement)":c,"ClassExpression:has(JSXFragment)":c,"ClassDeclaration:has(JSXElement):has(MethodDefinition[key.name='render'])":p,"ClassDeclaration:has(JSXFragment):has(MethodDefinition[key.name='render'])":p,"ClassExpression:has(JSXElement):has(MethodDefinition[key.name='render'])":p,"ClassExpression:has(JSXFragment):has(MethodDefinition[key.name='render'])":p,"ClassDeclaration[superClass.object.name='React'][superClass.property.name='Component']":p,"ClassDeclaration[superClass.object.name='React'][superClass.property.name='PureComponent']":p,"ClassDeclaration[superClass.name='Component']":p,"ClassDeclaration[superClass.name='PureComponent']":p,"ClassExpression[superClass.object.name='React'][superClass.property.name='Component']":p,"ClassExpression[superClass.object.name='React'][superClass.property.name='PureComponent']":p,"ClassExpression[superClass.name='Component']":p,"ClassExpression[superClass.name='PureComponent']":p,"Program:exit"(){l.forEach(s=>{s.id?s=s.id:"VariableDeclarator"==s.parent.type&&(s=s.parent.id),t.report({node:s,messageId:e.COMPONENT_SHOULD_BE_FUNCTION})})}}}};e.default=t}(R)),R)).default}};return L.exports=t,L.exports}());let B={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(let e of Object.keys(B))Object.freeze(B[e]);Object.freeze(B);var V=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],D=[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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],M="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",F={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"},X="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",J={5:X,"5module":X+" export import",6:X+" const class extends export import super"},$=/^in(stanceof)?$/,U=RegExp("["+M+"]"),q=RegExp("["+M+"\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function H(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 W(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&U.test(String.fromCharCode(e)):!1!==t&&H(e,D)))}function G(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&q.test(String.fromCharCode(e)):!1!==t&&(H(e,D)||H(e,V)))))}var z=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 K(e,t){return new z(e,{beforeExpr:!0,binop:t})}var Q={beforeExpr:!0},Y={startsExpr:!0},Z={};function ee(e,t){return void 0===t&&(t={}),t.keyword=e,Z[e]=new z(e,t)}var et={num:new z("num",Y),regexp:new z("regexp",Y),string:new z("string",Y),name:new z("name",Y),privateId:new z("privateId",Y),eof:new z("eof"),bracketL:new z("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new z("]"),braceL:new z("{",{beforeExpr:!0,startsExpr:!0}),braceR:new z("}"),parenL:new z("(",{beforeExpr:!0,startsExpr:!0}),parenR:new z(")"),comma:new z(",",Q),semi:new z(";",Q),colon:new z(":",Q),dot:new z("."),question:new z("?",Q),questionDot:new z("?."),arrow:new z("=>",Q),template:new z("template"),invalidTemplate:new z("invalidTemplate"),ellipsis:new z("...",Q),backQuote:new z("`",Y),dollarBraceL:new z("${",{beforeExpr:!0,startsExpr:!0}),eq:new z("=",{beforeExpr:!0,isAssign:!0}),assign:new z("_=",{beforeExpr:!0,isAssign:!0}),incDec:new z("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new z("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:K("||",1),logicalAND:K("&&",2),bitwiseOR:K("|",3),bitwiseXOR:K("^",4),bitwiseAND:K("&",5),equality:K("==/!=/===/!==",6),relational:K("</>/<=/>=",7),bitShift:K("<</>>/>>>",8),plusMin:new z("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:K("%",10),star:K("*",10),slash:K("/",10),starstar:new z("**",{beforeExpr:!0}),coalesce:K("??",1),_break:ee("break"),_case:ee("case",Q),_catch:ee("catch"),_continue:ee("continue"),_debugger:ee("debugger"),_default:ee("default",Q),_do:ee("do",{isLoop:!0,beforeExpr:!0}),_else:ee("else",Q),_finally:ee("finally"),_for:ee("for",{isLoop:!0}),_function:ee("function",Y),_if:ee("if"),_return:ee("return",Q),_switch:ee("switch"),_throw:ee("throw",Q),_try:ee("try"),_var:ee("var"),_const:ee("const"),_while:ee("while",{isLoop:!0}),_with:ee("with"),_new:ee("new",{beforeExpr:!0,startsExpr:!0}),_this:ee("this",Y),_super:ee("super",Y),_class:ee("class",Y),_extends:ee("extends",Q),_export:ee("export"),_import:ee("import",Y),_null:ee("null",Y),_true:ee("true",Y),_false:ee("false",Y),_in:ee("in",{beforeExpr:!0,binop:7}),_instanceof:ee("instanceof",{beforeExpr:!0,binop:7}),_typeof:ee("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ee("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ee("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},es=/\r\n?|\n|\u2028|\u2029/,ei=RegExp(es.source,"g");function er(e){return 10===e||13===e||8232===e||8233===e}function en(e,t,s){void 0===s&&(s=e.length);for(var i=t;i<s;i++){var r=e.charCodeAt(i);if(er(r))return i<s-1&&13===r&&10===e.charCodeAt(i+1)?i+2:i+1}return -1}var ea=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,eo=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,el=Object.prototype,ep=el.hasOwnProperty,ec=el.toString,eu=Object.hasOwn||function(e,t){return ep.call(e,t)},eh=Array.isArray||function(e){return"[object Array]"===ec.call(e)},ed=Object.create(null);function ef(e){return ed[e]||(ed[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function em(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])/,ex=function(e,t){this.line=e,this.column=t};ex.prototype.offset=function(e){return new ex(this.line,this.column+e)};var ey=function(e,t,s){this.start=t,this.end=s,null!==e.sourceFile&&(this.source=e.sourceFile)};function eb(e,t){for(var s=1,i=0;;){var r=en(e,i,t);if(r<0)return new ex(s,t-i);++s,i=r}}var ev={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},eS=!1;function eC(e,t){return 2|4*!!e|8*!!t}var eE=function(e,t,s){this.options=e=function(e){var t,s,i={};for(var r in ev)i[r]=e&&eu(e,r)?e[r]:ev[r];if("latest"===i.ecmaVersion?i.ecmaVersion=1e8:null==i.ecmaVersion?(!eS&&"object"==typeof console&&console.warn&&(eS=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),null==i.allowReserved&&(i.allowReserved=i.ecmaVersion<5),e&&null!=e.allowHashBang||(i.allowHashBang=i.ecmaVersion>=14),eh(i.onToken)){var n=i.onToken;i.onToken=function(e){return n.push(e)}}return eh(i.onComment)&&(i.onComment=(t=i,s=i.onComment,function(e,i,r,n,a,o){var l={type:e?"Block":"Line",value:i,start:r,end:n};t.locations&&(l.loc=new ey(this,a,o)),t.ranges&&(l.range=[r,n]),s.push(l)})),i}(e),this.sourceFile=e.sourceFile,this.keywords=ef(J[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var i="";!0!==e.allowReserved&&(i=F[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(i+=" await")),this.reservedWords=ef(i);var r=(i?i+" ":"")+F.strict;this.reservedWordsStrict=ef(r),this.reservedWordsStrictBind=ef(r+" "+F.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(es).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=et.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=[]},ek={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}};eE.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ek.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},ek.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},ek.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},ek.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},ek.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(64&t)>0||s||this.options.allowSuperOutsideMethod},ek.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},ek.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ek.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(258&t)>0||s},ek.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},eE.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},eE.parse=function(e,t){return new this(t,e).parse()},eE.parseExpressionAt=function(e,t,s){var i=new this(s,e,t);return i.nextToken(),i.parseExpression()},eE.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(eE.prototype,ek);var e_=eE.prototype,ew=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;e_.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){eo.lastIndex=e,e+=eo.exec(this.input)[0].length;var t=ew.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){eo.lastIndex=e+t[0].length;var s=eo.exec(this.input),i=s.index+s[0].length,r=this.input.charAt(i);return";"===r||"}"===r||es.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(i+1))}e+=t[0].length,eo.lastIndex=e,e+=eo.exec(this.input)[0].length,";"===this.input[e]&&e++}},e_.eat=function(e){return this.type===e&&(this.next(),!0)},e_.isContextual=function(e){return this.type===et.name&&this.value===e&&!this.containsEsc},e_.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},e_.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},e_.canInsertSemicolon=function(){return this.type===et.eof||this.type===et.braceR||es.test(this.input.slice(this.lastTokEnd,this.start))},e_.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},e_.semicolon=function(){this.eat(et.semi)||this.insertSemicolon()||this.unexpected()},e_.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},e_.expect=function(e){this.eat(e)||this.unexpected()},e_.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var eA=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};e_.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")}},e_.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")},e_.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")},e_.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var eT=eE.prototype;eT.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==et.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 eI={kind:"loop"},eP={kind:"switch"};eT.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;eo.lastIndex=this.pos;var t=eo.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(W(i,!0)){for(var r=s+1;G(i=this.input.charCodeAt(r),!0);)++r;if(92===i||i>55295&&i<56320)return!0;var n=this.input.slice(s,r);if(!$.test(n))return!0}return!1},eT.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;eo.lastIndex=this.pos;var e,t=eo.exec(this.input),s=this.pos+t[0].length;return!es.test(this.input.slice(this.pos,s))&&"function"===this.input.slice(s,s+8)&&(s+8===this.input.length||!(G(e=this.input.charCodeAt(s+8))||e>55295&&e<56320))},eT.parseStatement=function(e,t,s){var i,r=this.type,n=this.startNode();switch(this.isLet(e)&&(r=et._var,i="let"),r){case et._break:case et._continue:return this.parseBreakContinueStatement(n,r.keyword);case et._debugger:return this.parseDebuggerStatement(n);case et._do:return this.parseDoStatement(n);case et._for:return this.parseForStatement(n);case et._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case et._class:return e&&this.unexpected(),this.parseClass(n,!0);case et._if:return this.parseIfStatement(n);case et._return:return this.parseReturnStatement(n);case et._switch:return this.parseSwitchStatement(n);case et._throw:return this.parseThrowStatement(n);case et._try:return this.parseTryStatement(n);case et._const:case et._var:return i=i||this.value,e&&"var"!==i&&this.unexpected(),this.parseVarStatement(n,i);case et._while:return this.parseWhileStatement(n);case et._with:return this.parseWithStatement(n);case et.braceL:return this.parseBlock(!0,n);case et.semi:return this.parseEmptyStatement(n);case et._export:case et._import:if(this.options.ecmaVersion>10&&r===et._import){eo.lastIndex=this.pos;var a=eo.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===et._import?this.parseImport(n):this.parseExport(n,s);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var p=this.value,c=this.parseExpression();if(r===et.name&&"Identifier"===c.type&&this.eat(et.colon))return this.parseLabeledStatement(n,p,c,e);return this.parseExpressionStatement(n,c)}},eT.parseBreakContinueStatement=function(e,t){var s="break"===t;this.next(),this.eat(et.semi)||this.insertSemicolon()?e.label=null:this.type!==et.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")},eT.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},eT.parseDoStatement=function(e){return this.next(),this.labels.push(eI),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(et._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(et.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},eT.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(eI),this.enterScope(0),this.expect(et.parenL),this.type===et.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var s=this.isLet();if(this.type===et._var||this.type===et._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===et._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===i.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===et._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=this.containsEsc,l=new eA,p=this.start,c=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===et._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===et._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(c.start!==p||o||"Identifier"!==c.type||"async"!==c.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),n&&a&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,l),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(l,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},eT.parseFunctionStatement=function(e,t,s){return this.next(),this.parseFunction(e,eL|(s?0:eR),!1,t)},eT.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(et._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},eT.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(et.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},eT.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(et.braceL),this.labels.push(eP),this.enterScope(0);for(var t,s=!1;this.type!==et.braceR;)if(this.type===et._case||this.type===et._default){var i=this.type===et._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(et.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")},eT.parseThrowStatement=function(e){return this.next(),es.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 eN=[];eT.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(32*!!t),this.checkLValPattern(e,t?4:2),this.expect(et.parenR),e},eT.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===et._catch){var t=this.startNode();this.next(),this.eat(et.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(et._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},eT.parseVarStatement=function(e,t,s){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")},eT.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(eI),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},eT.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")},eT.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},eT.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===et._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")},eT.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},eT.parseBlock=function(e,t,s){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(et.braceL),e&&this.enterScope(0);this.type!==et.braceR;){var i=this.parseStatement(null);t.body.push(i)}return s&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},eT.parseFor=function(e,t){return e.init=t,this.expect(et.semi),e.test=this.type===et.semi?null:this.parseExpression(),this.expect(et.semi),e.update=this.type===et.parenR?null:this.parseExpression(),this.expect(et.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},eT.parseForIn=function(e,t){var s=this.type===et._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(et.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")},eT.parseVar=function(e,t,s,i){for(e.declarations=[],e.kind=s;;){var r=this.startNode();if(this.parseVarId(r,s),this.eat(et.eq)?r.init=this.parseMaybeAssign(t):i||"const"!==s||this.type===et._in||this.options.ecmaVersion>=6&&this.isContextual("of")?i||"Identifier"===r.id.type||t&&(this.type===et._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(et.comma))break}return e},eT.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var eL=1,eR=2;function eO(e,t){var s=e.computed,i=e.key;return!s&&("Identifier"===i.type&&i.name===t||"Literal"===i.type&&i.value===t)}eT.parseFunction=function(e,t,s,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===et.star&&t&eR&&this.unexpected(),e.generator=this.eat(et.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&eL&&(e.id=4&t&&this.type!==et.name?null:this.parseIdent(),e.id&&!(t&eR)&&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(eC(e.async,e.generator)),t&eL||(e.id=this.type===et.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&eL?"FunctionDeclaration":"FunctionExpression")},eT.parseFunctionParams=function(e){this.expect(et.parenL),e.params=this.parseBindingList(et.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},eT.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(et.braceL);this.type!==et.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")},eT.parseClassElement=function(e){if(this.eat(et.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(et.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===et.star?o=!0:i="static"}if(s.static=o,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===et.star)&&!this.canInsertSemicolon()?n=!0:i="async"),!i&&(t>=9||!n)&&this.eat(et.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===et.parenL||"method"!==a||r||n){var p=!s.static&&eO(s,"constructor");p&&"method"!==a&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=p?"constructor":a,this.parseClassMethod(s,r,n,p&&e)}else this.parseClassField(s);return s},eT.isClassElementNameStart=function(){return this.type===et.name||this.type===et.privateId||this.type===et.num||this.type===et.string||this.type===et.bracketL||this.type.keyword},eT.parseClassElementName=function(e){this.type===et.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)},eT.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&&eO(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")},eT.parseClassField=function(e){if(eO(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&eO(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(et.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")},eT.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==et.braceR;){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},eT.parseClassId=function(e,t){this.type===et.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},eT.parseClassSuper=function(e){e.superClass=this.eat(et._extends)?this.parseExprSubscripts(null,!1):null},eT.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},eT.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];eu(t,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},eT.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!==et.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},eT.parseExport=function(e,t){if(this.next(),this.eat(et.star))return this.parseExportAllDeclaration(e,t);if(this.eat(et._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!==et.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());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")},eT.parseExportDeclaration=function(e){return this.parseStatement(null)},eT.parseExportDefaultDeclaration=function(){if(this.type===et._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|eL,!1,e)}if(this.type===et._class){var s=this.startNode();return this.parseClass(s,"nullableID")}var i=this.parseMaybeAssign();return this.semicolon(),i},eT.checkExport=function(e,t,s){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),eu(e,t)&&this.raiseRecoverable(s,"Duplicate export '"+t+"'"),e[t]=!0)},eT.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)},eT.checkVariableExport=function(e,t){if(e)for(var s=0;s<t.length;s+=1){var i=t[s];this.checkPatternExport(e,i.id)}},eT.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},eT.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")},eT.parseExportSpecifiers=function(e){var t=[],s=!0;for(this.expect(et.braceL);!this.eat(et.braceR);){if(s)s=!1;else if(this.expect(et.comma),this.afterTrailingComma(et.braceR))break;t.push(this.parseExportSpecifier(e))}return t},eT.parseImport=function(e){return this.next(),this.type===et.string?(e.specifiers=eN,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===et.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},eT.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")},eT.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},eT.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")},eT.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===et.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(et.comma)))return e;if(this.type===et.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(et.braceL);!this.eat(et.braceR);){if(t)t=!1;else if(this.expect(et.comma),this.afterTrailingComma(et.braceR))break;e.push(this.parseImportSpecifier())}return e},eT.parseWithClause=function(){var e=[];if(!this.eat(et._with))return e;this.expect(et.braceL);for(var t={},s=!0;!this.eat(et.braceR);){if(s)s=!1;else if(this.expect(et.comma),this.afterTrailingComma(et.braceR))break;var i=this.parseImportAttribute(),r="Identifier"===i.key.type?i.key.name:i.key.value;eu(t,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(i)}return e},eT.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===et.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(et.colon),this.type!==et.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},eT.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===et.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)},eT.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)},eT.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 ej=eE.prototype;ej.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},ej.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},ej.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},ej.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==et.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},ej.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case et.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(et.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case et.braceL:return this.parseObj(!0)}return this.parseIdent()},ej.parseBindingList=function(e,t,s,i){for(var r=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(et.comma),t&&this.type===et.comma)r.push(null);else if(s&&this.afterTrailingComma(e))break;else if(this.type===et.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===et.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},ej.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},ej.parseBindingListItem=function(e){return e},ej.parseMaybeDefault=function(e,t,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(et.eq))return s;var i=this.startNodeAt(e,t);return i.left=s,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},ej.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&&(eu(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")}},ej.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)}},ej.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 eB=function(e,t,s,i,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!s,this.override=i,this.generator=!!r},eV={b_stat:new eB("{",!1),b_expr:new eB("{",!0),b_tmpl:new eB("${",!1),p_stat:new eB("(",!1),p_expr:new eB("(",!0),q_tmpl:new eB("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new eB("function",!1),f_expr:new eB("function",!0),f_expr_gen:new eB("function",!0,!1,null,!0),f_gen:new eB("function",!1,!1,null,!0)},eD=eE.prototype;eD.initialContext=function(){return[eV.b_stat]},eD.curContext=function(){return this.context[this.context.length-1]},eD.braceIsBlock=function(e){var t=this.curContext();return t===eV.f_expr||t===eV.f_stat||(e===et.colon&&(t===eV.b_stat||t===eV.b_expr)?!t.isExpr:e===et._return||e===et.name&&this.exprAllowed?es.test(this.input.slice(this.lastTokEnd,this.start)):e===et._else||e===et.semi||e===et.eof||e===et.parenR||e===et.arrow||(e===et.braceL?t===eV.b_stat:e!==et._var&&e!==et._const&&e!==et.name&&!this.exprAllowed))},eD.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},eD.updateContext=function(e){var t,s=this.type;s.keyword&&e===et.dot?this.exprAllowed=!1:(t=s.updateContext)?t.call(this,e):this.exprAllowed=s.beforeExpr},eD.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},et.parenR.updateContext=et.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===eV.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},et.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?eV.b_stat:eV.b_expr),this.exprAllowed=!0},et.dollarBraceL.updateContext=function(){this.context.push(eV.b_tmpl),this.exprAllowed=!0},et.parenL.updateContext=function(e){var t=e===et._if||e===et._for||e===et._with||e===et._while;this.context.push(t?eV.p_stat:eV.p_expr),this.exprAllowed=!0},et.incDec.updateContext=function(){},et._function.updateContext=et._class.updateContext=function(e){e.beforeExpr&&e!==et._else&&(e!==et.semi||this.curContext()===eV.p_stat)&&!(e===et._return&&es.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==et.colon&&e!==et.braceL||this.curContext()!==eV.b_stat)?this.context.push(eV.f_expr):this.context.push(eV.f_stat),this.exprAllowed=!1},et.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},et.backQuote.updateContext=function(){this.curContext()===eV.q_tmpl?this.context.pop():this.context.push(eV.q_tmpl),this.exprAllowed=!1},et.star.updateContext=function(e){if(e===et._function){var t=this.context.length-1;this.context[t]===eV.f_expr?this.context[t]=eV.f_expr_gen:this.context[t]=eV.f_gen}this.exprAllowed=!0},et.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==et.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var eM=eE.prototype;eM.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,n=e.key;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===i&&"init"===a&&(t.proto&&(s?s.doubleProto<0&&(s.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);return}var o=t[i="$"+i];o?("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(n.start,"Redefinition of property"):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}},eM.parseExpression=function(e,t){var s=this.start,i=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===et.comma){var n=this.startNodeAt(s,i);for(n.expressions=[r];this.eat(et.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return r},eM.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 eA,i=!0);var o=this.start,l=this.startLoc;(this.type===et.parenL||this.type===et.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var p=this.parseMaybeConditional(e,t);if(s&&(p=s.call(this,p,o,l)),this.type.isAssign){var c=this.startNodeAt(o,l);return c.operator=this.value,this.type===et.eq&&(p=this.toAssignable(p,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===et.eq?this.checkLValPattern(p):this.checkLValSimple(p),c.left=p,this.next(),c.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(c,"AssignmentExpression")}return i&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),n>-1&&(t.trailingComma=n),p},eM.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(et.question)){var n=this.startNodeAt(s,i);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(et.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return r},eM.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)},eM.parseExprOp=function(e,t,s,i,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==et._in)&&n>i){var a=this.type===et.logicalOR||this.type===et.logicalAND,o=this.type===et.coalesce;o&&(n=et.logicalAND.binop);var l=this.value;this.next();var p=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),p,c,n,r),h=this.buildBinary(t,s,e,u,l,a||o);return(a&&this.type===et.coalesce||o&&(this.type===et.logicalOR||this.type===et.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,s,i,r)}return e},eM.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")},eM.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===et.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&&function e(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&e(t.expression)}(o.argument)?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)||"ParenthesizedExpression"===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!==et.privateId){if(r=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(n,a);p.operator=this.value,p.prefix=!1,p.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(p,"UpdateExpression")}}else(i||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==et._in&&this.unexpected();return!s&&this.eat(et.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,r,this.parseMaybeUnary(null,!1,!1,i),"**",!1):r},eM.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},eM.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}},eM.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(et.arrow)},eM.parseSubscriptAsyncArrow=function(e,t,s,i){return this.parseArrowExpression(this.startNodeAt(e,t),s,!0,i)},eM.parseSubscript=function(e,t,s,i,r,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(et.questionDot);i&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(et.bracketL);if(p||l&&this.type!==et.parenL&&this.type!==et.backQuote||this.eat(et.dot)){var c=this.startNodeAt(t,s);c.object=e,p?(c.property=this.parseExpression(),this.expect(et.bracketR)):this.type===et.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!p,o&&(c.optional=l),e=this.finishNode(c,"MemberExpression")}else if(!i&&this.eat(et.parenL)){var u=new eA,h=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(et.parenR,this.options.ecmaVersion>=8,!1,u);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=d,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,s,m,a);this.checkExpressionErrors(u,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||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===et.backQuote){(l||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(t,s);x.tag=e,x.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(x,"TaggedTemplateExpression")}return e},eM.parseExprAtom=function(e,t,s){this.type===et.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case et._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type!==et.parenL||this.allowDirectSuper||this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==et.dot&&this.type!==et.bracketL&&this.type!==et.parenL&&this.unexpected(),this.finishNode(i,"Super");case et._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case et.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(et._function))return this.overrideContext(eV.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(et.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===et.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(et.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[l],!0,t)}return l;case et.regexp:var p=this.value;return(i=this.parseLiteral(p.value)).regex={pattern:p.pattern,flags:p.flags},i;case et.num:case et.string:return this.parseLiteral(this.value);case et._null:case et._true:case et._false:return(i=this.startNode()).value=this.type===et._null?null:this.type===et._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case et.parenL:var c=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),u;case et.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(et.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case et.braceL:return this.overrideContext(eV.b_expr),this.parseObj(!1,e);case et._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case et._class:return this.parseClass(this.startNode(),!1);case et._new:return this.parseNew();case et.backQuote:return this.parseTemplate();case et._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(s);return this.unexpected();default:return this.parseExprAtomDefault()}},eM.parseExprAtomDefault=function(){this.unexpected()},eM.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===et.parenL&&!e)return this.parseDynamicImport(t);if(this.type===et.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()},eM.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(et.parenR)?e.options=null:(this.expect(et.comma),this.afterTrailingComma(et.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(et.parenR)||(this.expect(et.comma),this.afterTrailingComma(et.parenR)||this.unexpected())));else if(!this.eat(et.parenR)){var t=this.start;this.eat(et.comma)&&this.eat(et.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},eM.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")},eM.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")},eM.parseParenExpression=function(){this.expect(et.parenL);var e=this.parseExpression();return this.expect(et.parenR),e},eM.shouldParseArrow=function(e){return!this.canInsertSemicolon()},eM.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,p=[],c=!0,u=!1,h=new eA,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==et.parenR;){if(c?c=!1:this.expect(et.comma),n&&this.afterTrailingComma(et.parenR,!0)){u=!0;break}if(this.type===et.ellipsis){a=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===et.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(et.parenR),e&&this.shouldParseArrow(p)&&this.eat(et.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(i,r,p,t);(!p.length||u)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,p.length>1?((s=this.startNodeAt(o,l)).expressions=p,this.finishNodeAt(s,"SequenceExpression",m,g)):s=p[0]}else s=this.parseParenExpression();if(!this.options.preserveParens)return s;var x=this.startNodeAt(i,r);return x.expression=s,this.finishNode(x,"ParenthesizedExpression")},eM.parseParenItem=function(e){return e},eM.parseParenArrowList=function(e,t,s,i){return this.parseArrowExpression(this.startNodeAt(e,t),s,!1,i)};var eF=[];eM.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===et.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(et.parenL)?e.arguments=this.parseExprList(et.parenR,this.options.ecmaVersion>=8,!1):e.arguments=eF,this.finishNode(e,"NewExpression")},eM.parseTemplateElement=function(e){var t=e.isTagged,s=this.startNode();return this.type===et.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value.replace(/\r\n?/g,"\n"),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===et.backQuote,this.finishNode(s,"TemplateElement")},eM.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===et.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(et.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(et.braceR),s.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(s,"TemplateLiteral")},eM.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===et.name||this.type===et.num||this.type===et.string||this.type===et.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===et.star)&&!es.test(this.input.slice(this.lastTokEnd,this.start))},eM.parseObj=function(e,t){var s=this.startNode(),i=!0,r={};for(s.properties=[],this.next();!this.eat(et.braceR);){if(i)i=!1;else if(this.expect(et.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(et.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")},eM.parseProperty=function(e,t){var s,i,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(et.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===et.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===et.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(et.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(et.star),this.parsePropertyName(a)):i=!1,this.parsePropertyValue(a,e,s,i,r,n,t,o),this.finishNode(a,"Property")},eM.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=+("get"!==e.kind);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")},eM.parsePropertyValue=function(e,t,s,i,r,n,a,o){(s||i)&&this.type===et.colon&&this.unexpected(),this.eat(et.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===et.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===et.comma||this.type===et.braceR||this.type===et.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===et.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))},eM.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(et.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(et.bracketR),e.key;e.computed=!1}return e.key=this.type===et.num||this.type===et.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},eM.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},eM.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|eC(t,i.generator)|128*!!s),this.expect(et.parenL),i.params=this.parseBindingList(et.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")},eM.parseArrowExpression=function(e,t,s,i){var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|eC(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")},eM.parseFunctionBody=function(e,t,s,i){var r=t&&this.type!==et.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()},eM.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},eM.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)}},eM.parseExprList=function(e,t,s,i){for(var r=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(et.comma),t&&this.afterTrailingComma(e))break;var a=void 0;s&&this.type===et.comma?a=null:this.type===et.ellipsis?(a=this.parseSpread(i),i&&this.type===et.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):a=this.parseMaybeAssign(!1,i),r.push(a)}return r},eM.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"))},eM.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},eM.parseIdentNode=function(){var e=this.startNode();return this.type===et.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=et.name):this.unexpected(),e},eM.parsePrivateIdent=function(){var e=this.startNode();return this.type===et.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},eM.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===et.semi||this.canInsertSemicolon()||this.type!==et.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(et.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},eM.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 eX=eE.prototype;eX.raise=function(e,t){var s=eb(this.input,e),i=SyntaxError(t+=" ("+s.line+":"+s.column+")");throw i.pos=e,i.loc=s,i.raisedAt=this.pos,i},eX.raiseRecoverable=eX.raise,eX.curPosition=function(){if(this.options.locations)return new ex(this.curLine,this.pos-this.lineStart)};var eJ=eE.prototype,e$=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};eJ.enterScope=function(e){this.scopeStack.push(new e$(e))},eJ.exitScope=function(){this.scopeStack.pop()},eJ.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},eJ.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")},eJ.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},eJ.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},eJ.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},eJ.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 eU=function(e,t,s){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new ey(e,s)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},eq=eE.prototype;function eH(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}eq.startNode=function(){return new eU(this,this.start,this.startLoc)},eq.startNodeAt=function(e,t){return new eU(this,e,t)},eq.finishNode=function(e,t){return eH.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},eq.finishNodeAt=function(e,t,s,i){return eH.call(this,e,t,s,i)},eq.copyNode=function(e){var t=new eU(this,e.start,this.startLoc);for(var s in e)t[s]=e[s];return t};for(var eW="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",eG=eW+" Extended_Pictographic",ez=eG+" EBase EComp EMod EPres ExtPict",eK={9:eW,10:eG,11:eG,12:ez,13:ez,14:ez},eQ={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"},eY="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",eZ="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",e1=eZ+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",e0=e1+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",e2=e0+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",e3=e2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",e6={9:eZ,10:e1,11:e0,12:e2,13:e3,14:e3+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},e4={},e5=0,e9=[9,10,11,12,13,14];e5<e9.length;e5+=1)!function(e){var t=e4[e]={binary:ef(eK[e]+" "+eY),binaryOfStrings:ef(eQ[e]),nonBinary:{General_Category:ef(eY),Script:ef(e6[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}(e9[e5]);var e8=eE.prototype,e7=function(e,t){this.parent=e,this.base=t||this};e7.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var s=e;s;s=s.parent)if(t.base===s.base&&t!==s)return!0;return!1},e7.prototype.sibling=function(){return new e7(this.parent,this.base)};var te=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=e4[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=Object.create(null),this.backReferenceNames=[],this.branchID=null};function tt(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function ts(e){return e>=65&&e<=90||e>=97&&e<=122}function ti(e){return ts(e)||95===e}function tr(e){return e>=48&&e<=57}function tn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ta(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}te.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)},te.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},te.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-0x35fdc00:r},te.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},te.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},te.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},te.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},te.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},te.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},e8.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")},e8.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},e8.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,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];e.groupNames[i]||e.raise("Invalid named capture referenced")}},e8.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new e7(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},e8.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},e8.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)},e8.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},e8.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},e8.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},e8.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},e8.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)},e8.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},e8.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var s=this.regexp_eatModifiers(e),i=e.eat(45);if(s||i){for(var r=0;r<s.length;r++){var n=s.charAt(r);s.indexOf(n,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var a=this.regexp_eatModifiers(e);s||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||s.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},e8.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},e8.regexp_eatModifiers=function(e){for(var t,s="",i=0;-1!==(i=e.current())&&(105===(t=i)||109===t||115===t);)s+=em(i),e.advance();return s},e8.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)},e8.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},e8.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!tt(t)&&(e.lastIntValue=t,e.advance(),!0)},e8.regexp_eatPatternCharacters=function(e){for(var t=e.pos,s=0;-1!==(s=e.current())&&!tt(s);)e.advance();return e.pos!==t},e8.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)},e8.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,s=e.groupNames[e.lastStringValue];if(s){if(t)for(var i=0;i<s.length;i+=1)s[i].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name")}t?(s||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},e8.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},e8.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=em(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=em(e.lastIntValue);return!0}return!1},e8.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),W(t=r,!0)||36===t||95===t)?(e.lastIntValue=r,!0):(e.pos=s,!1)},e8.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),G(t=r,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=r,!0):(e.pos=s,!1)},e8.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)},e8.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},e8.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},e8.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)},e8.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},e8.regexp_eatZero=function(e){return!(48!==e.current()||tr(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},e8.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)},e8.regexp_eatControlLetter=function(e){var t=e.current();return!!ts(t)&&(e.lastIntValue=t%32,e.advance(),!0)},e8.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},e8.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)},e8.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},e8.regexp_eatCharacterClassEscape=function(e){var t,s,i=e.current();if(100===(t=i)||68===t||115===t||83===t||119===t||87===t)return e.lastIntValue=-1,e.advance(),1;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=80===i)||112===i)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&2===s&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return 0},e8.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},e8.regexp_validateUnicodePropertyNameAndValue=function(e,t,s){eu(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(s)||e.raise("Invalid property value")},e8.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")},e8.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ti(t=e.current());)e.lastStringValue+=em(t),e.advance();return""!==e.lastStringValue},e8.regexp_eatUnicodePropertyValue=function(e){var t,s=0;for(e.lastStringValue="";ti(t=s=e.current())||tr(t);)e.lastStringValue+=em(s),e.advance();return""!==e.lastStringValue},e8.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},e8.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},e8.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},e8.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")}}},e8.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)},e8.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)},e8.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)}},e8.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},e8.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},e8.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},e8.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},e8.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},e8.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},e8.regexp_eatClassSetCharacter=function(e){var t,s,i=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=i,!1));var r=e.current();return!(r<0||r===e.lookahead()&&(33===(t=r)||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t)||40===(s=r)||41===s||45===s||47===s||s>=91&&s<=93||s>=123&&s<=125)&&(e.advance(),e.lastIntValue=r,!0)},e8.regexp_eatClassSetReservedPunctuator=function(e){var t,s=e.current();return!!(33===(t=s)||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=s,e.advance(),!0)},e8.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!tr(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},e8.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},e8.regexp_eatDecimalDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tr(s=e.current());)e.lastIntValue=10*e.lastIntValue+(s-48),e.advance();return e.pos!==t},e8.regexp_eatHexDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tn(s=e.current());)e.lastIntValue=16*e.lastIntValue+ta(s),e.advance();return e.pos!==t},e8.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},e8.regexp_eatOctalDigit=function(e){var t=e.current();return to(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},e8.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+ta(r),e.advance()}return!0};var tl=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ey(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},tp=eE.prototype;function tc(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}tp.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 tl(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},tp.getToken=function(){return this.next(),new tl(this)},"undefined"!=typeof Symbol&&(tp[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===et.eof,value:t}}}}),tp.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(et.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},tp.readToken=function(e){return W(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},tp.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-0x35fdc00},tp.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=en(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())},tp.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&&!er(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())},tp.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&&ea.test(String.fromCharCode(e)))++this.pos;else break e}}},tp.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)},tp.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(et.ellipsis)):(++this.pos,this.finishToken(et.dot))},tp.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(et.assign,2):this.finishOp(et.slash,1)},tp.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),s=1,i=42===e?et.star:et.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++s,i=et.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(et.assign,s+1):this.finishOp(i,s)},tp.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(et.assign,3):this.finishOp(124===e?et.logicalOR:et.logicalAND,2):61===t?this.finishOp(et.assign,2):this.finishOp(124===e?et.bitwiseOR:et.bitwiseAND,1)},tp.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(et.assign,2):this.finishOp(et.bitwiseXOR,1)},tp.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||es.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(et.incDec,2):61===t?this.finishOp(et.assign,2):this.finishOp(et.plusMin,1)},tp.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(et.assign,s+1):this.finishOp(et.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(et.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tp.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(et.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(et.arrow)):this.finishOp(61===e?et.eq:et.prefix,1)},tp.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(et.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(et.assign,3):this.finishOp(et.coalesce,2)}return this.finishOp(et.question,1)},tp.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,W(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(et.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+em(t)+"'")},tp.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(et.parenL);case 41:return++this.pos,this.finishToken(et.parenR);case 59:return++this.pos,this.finishToken(et.semi);case 44:return++this.pos,this.finishToken(et.comma);case 91:return++this.pos,this.finishToken(et.bracketL);case 93:return++this.pos,this.finishToken(et.bracketR);case 123:return++this.pos,this.finishToken(et.braceL);case 125:return++this.pos,this.finishToken(et.braceR);case 58:return++this.pos,this.finishToken(et.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(et.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(et.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+em(e)+"'")},tp.finishOp=function(e,t){var s=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,s)},tp.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(es.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 te(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(et.regexp,{pattern:r,flags:a,value:l})},tp.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,p=null==t?1/0:t;l<p;++l,++this.pos){var c=this.input.charCodeAt(this.pos),u=void 0;if(i&&95===c){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=c;continue}if((u=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;o=c,a=a*e+u}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},tp.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=tc(this.input.slice(t,this.pos)),++this.pos):W(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(et.num,s)},tp.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=tc(this.input.slice(s,this.pos));return++this.pos,W(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(et.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")),W(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(et.num,a)},tp.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},tp.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),t+=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)):(er(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(s,this.pos++),this.finishToken(et.string,t)};var tu={};tp.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===tu)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},tp.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tu;this.raise(e,t)},tp.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===et.template||this.type===et.invalidTemplate)){if(36===s)return this.pos+=2,this.finishToken(et.dollarBraceL);return++this.pos,this.finishToken(et.backQuote)}return e+=this.input.slice(t,this.pos),this.finishToken(et.template,e)}if(92===s)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(er(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}},tp.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(et.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},tp.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 em(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(er(t))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(t)}},tp.readHexChar=function(e){var t=this.pos,s=this.readInt(16,e);return null===s&&this.invalidStringToken(t,"Bad character escape sequence"),s},tp.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(G(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?W:G)(a,i)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=em(a),s=this.pos}else break;t=!1}return e+this.input.slice(s,this.pos)},tp.readWord=function(){var e=this.readWord1(),t=et.name;return this.keywords.test(e)&&(t=Z[e]),this.finishToken(t,e)};var th="8.14.0";eE.acorn={Parser:eE,version:th,defaultOptions:ev,Position:ex,SourceLocation:ey,getLineInfo:eb,Node:eU,TokenType:z,tokTypes:et,keywordTypes:Z,TokContext:eB,tokContexts:eV,isIdentifierChar:G,isIdentifierStart:W,Token:tl,isNewLine:er,lineBreak:es,lineBreakG:ei,nonASCIIwhitespace:ea};var td=Object.freeze({__proto__:null,Node:eU,Parser:eE,Position:ex,SourceLocation:ey,TokContext:eB,Token:tl,TokenType:z,defaultOptions:ev,getLineInfo:eb,isIdentifierChar:G,isIdentifierStart:W,isNewLine:er,keywordTypes:Z,lineBreak:es,lineBreakG:ei,nonASCIIwhitespace:ea,parse:function(e,t){return eE.parse(e,t)},parseExpressionAt:function(e,t,s){return eE.parseExpressionAt(e,t,s)},tokContexts:eV,tokTypes:et,tokenizer:function(e,t){return eE.tokenizer(e,t)},version:th}),tf={exports:{}},tm=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var s=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),s}(td);b||(b=1,function(e){let t=y?x:(y=1,x={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),s=/^[\da-fA-F]+$/,i=/^\d+$/,r=new WeakMap;function n(e){e=e.Parser.acorn||e;let t=r.get(e);if(!t){let s=e.tokTypes,i=e.TokContext,n=e.TokenType,a=new i("<tag",!1),o=new i("</tag",!1),l=new i("<tag>...</tag>",!0,!0),p={jsxName:new n("jsxName"),jsxText:new n("jsxText",{beforeExpr:!0}),jsxTagStart:new n("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new n("jsxTagEnd")};p.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(a),this.exprAllowed=!1},p.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===a&&e===s.slash||t===o?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:{tc_oTag:a,tc_cTag:o,tc_expr:l},tokTypes:p},r.set(e,t)}return t}function a(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?a(e.object)+"."+a(e.property):void 0:e}e.exports=function(e){return e=e||{},function(r){return function(e,r){let o=r.acorn||tm,l=n(o),p=o.tokTypes,c=l.tokTypes,u=o.tokContexts,h=l.tokContexts.tc_oTag,d=l.tokContexts.tc_cTag,f=l.tokContexts.tc_expr,m=o.isNewLine,g=o.isIdentifierStart,x=o.isIdentifierChar;return class extends r{static get acornJsx(){return l}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let s=this.input.charCodeAt(this.pos);switch(s){case 60:case 123:if(this.pos===this.start){if(60===s&&this.exprAllowed)return++this.pos,this.finishToken(c.jsxTagStart);return this.getTokenFromCode(s)}return e+=this.input.slice(t,this.pos),this.finishToken(c.jsxText,e);case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===s?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:m(s)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,s=this.input.charCodeAt(this.pos);return++this.pos,13===s&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(s),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",s=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let i=this.input.charCodeAt(this.pos);if(i===e)break;38===i?(t+=this.input.slice(s,this.pos),t+=this.jsx_readEntity(),s=this.pos):m(i)?(t+=this.input.slice(s,this.pos),t+=this.jsx_readNewLine(!1),s=this.pos):++this.pos}return t+=this.input.slice(s,this.pos++),this.finishToken(p.string,t)}jsx_readEntity(){let e="",r=0,n,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&r++<10;){if(";"===(a=this.input[this.pos++])){"#"===e[0]?"x"===e[1]?(e=e.substr(2),s.test(e)&&(n=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(n=String.fromCharCode(parseInt(e,10)))):n=t[e];break}e+=a}return n||(this.pos=o,"&")}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(x(e)||45===e);return this.finishToken(c.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===c.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let t=this.start,s=this.startLoc,i=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(p.colon))return i;var r=this.startNodeAt(t,s);return r.namespace=i,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===c.jsxTagEnd)return"";let t=this.start,s=this.startLoc,i=this.jsx_parseNamespacedName();for(this.type!==p.dot||"JSXNamespacedName"!==i.type||e.allowNamespacedObjects||this.unexpected();this.eat(p.dot);){let e=this.startNodeAt(t,s);e.object=i,e.property=this.jsx_parseIdentifier(),i=this.finishNode(e,"JSXMemberExpression")}return i}jsx_parseAttributeValue(){switch(this.type){case p.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case c.jsxTagStart:case p.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===p.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(p.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(p.braceL)?(this.expect(p.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(p.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(p.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let s=this.startNodeAt(e,t);s.attributes=[];let i=this.jsx_parseElementName();for(i&&(s.name=i);this.type!==p.slash&&this.type!==c.jsxTagEnd;)s.attributes.push(this.jsx_parseAttribute());return s.selfClosing=this.eat(p.slash),this.expect(c.jsxTagEnd),this.finishNode(s,i?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let s=this.startNodeAt(e,t),i=this.jsx_parseElementName();return i&&(s.name=i),this.expect(c.jsxTagEnd),this.finishNode(s,i?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let s=this.startNodeAt(e,t),i=[],r=this.jsx_parseOpeningElementAt(e,t),n=null;if(!r.selfClosing){t:for(;;)switch(this.type){case c.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(p.slash)){n=this.jsx_parseClosingElementAt(e,t);break t}i.push(this.jsx_parseElementAt(e,t));break;case c.jsxText:i.push(this.parseExprAtom());break;case p.braceL:i.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}a(n.name)!==a(r.name)&&this.raise(n.start,"Expected corresponding JSX closing tag for <"+a(r.name)+">")}let o=r.name?"Element":"Fragment";return s["opening"+o]=r,s["closing"+o]=n,s.children=i,this.type===p.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(s,"JSX"+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===c.jsxText?this.jsx_parseText():this.type===c.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===f)return this.jsx_readToken();if(t===h||t===d){if(g(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(c.jsxTagEnd);if((34===e||39===e)&&t==h)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(c.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==p.braceL){var t=this.curContext();t==h?this.context.push(u.b_expr):t==f?this.context.push(u.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==p.slash||e!==c.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(d),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},r)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return n(tm).tokTypes},configurable:!0,enumerable:!0})}(tf)),tf.exports;let tg={Boolean:"Boolean",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function tx(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}tx.prototype={constructor:tx,translate(e,t){let s=e.type,i=this._acornTokTypes;if(s===i.name)e.type=tg.Identifier,"static"===e.value&&(e.type=tg.Keyword),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=tg.Keyword);else if(s===i.privateId)e.type=tg.PrivateIdentifier;else if(s===i.semi||s===i.comma||s===i.parenL||s===i.parenR||s===i.braceL||s===i.braceR||s===i.dot||s===i.bracketL||s===i.colon||s===i.question||s===i.bracketR||s===i.ellipsis||s===i.arrow||s===i.jsxTagStart||s===i.incDec||s===i.starstar||s===i.jsxTagEnd||s===i.prefix||s===i.questionDot||s.binop&&!s.keyword||s.isAssign)e.type=tg.Punctuator,e.value=this._code.slice(e.start,e.end);else if(s===i.jsxName)e.type=tg.JSXIdentifier;else if("jsxText"===s.label||s===i.jsxAttrValueToken)e.type=tg.JSXText;else if(s.keyword)"true"===s.keyword||"false"===s.keyword?e.type=tg.Boolean:"null"===s.keyword?e.type=tg.Null:e.type=tg.Keyword;else if(s===i.num)e.type=tg.Numeric,e.value=this._code.slice(e.start,e.end);else if(s===i.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=tg.JSXText):e.type=tg.String,e.value=this._code.slice(e.start,e.end);else if(s===i.regexp){e.type=tg.RegularExpression;let t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){let s=this._acornTokTypes,i=t.tokens,r=this._tokens,n=()=>{i.push(function(e,t){let s=e[0],i=e.at(-1),r={type:tg.Template,value:t.slice(s.start,i.end)};return s.loc&&(r.loc={start:s.loc.start,end:i.loc.end}),s.range&&(r.start=s.range[0],r.end=i.range[1],r.range=[r.start,r.end]),r}(this._tokens,this._code)),this._tokens=[]};if(e.type===s.eof){this._curlyBrace&&i.push(this.translate(this._curlyBrace,t));return}if(e.type===s.backQuote){this._curlyBrace&&(i.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(e),r.length>1&&n();return}if(e.type===s.dollarBraceL){r.push(e),n();return}if(e.type===s.braceR){this._curlyBrace&&i.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===s.template||e.type===s.invalidTemplate){this._curlyBrace&&(r.push(this._curlyBrace),this._curlyBrace=null),r.push(e);return}this._curlyBrace&&(i.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),i.push(this.translate(e,t))}},!function(){let e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),B)Object.hasOwn(B,e)&&(t[e]=e);"function"==typeof Object.freeze&&Object.freeze(t)}();var ty={},tb=v?ty:(v=1,!function e(t){var s,i,r,n,a,o;function l(e){var t,s,i={};for(t in e)e.hasOwnProperty(t)&&("object"==typeof(s=e[t])&&null!==s?i[t]=l(s):i[t]=s);return i}function p(e,t){this.parent=e,this.key=t}function c(e,t,s,i){this.node=e,this.path=t,this.wrap=s,this.ref=i}function u(){}function h(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function d(e,t){return(e===s.ObjectExpression||e===s.ObjectPattern)&&"properties"===t}function f(e,t){for(var s=e.length-1;s>=0;--s)if(e[s].node===t)return!0;return!1}function m(e,t){return new u().traverse(e,t)}return s={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},r={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},i={Break:n={},Skip:a={},Remove:o={}},p.prototype.replace=function(e){this.parent[this.key]=e},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},u.prototype.path=function(){var e,t,s,i,r;function n(e,t){if(Array.isArray(t))for(s=0,i=t.length;s<i;++s)e.push(t[s]);else e.push(t)}if(!this.__current.path)return null;for(e=2,r=[],t=this.__leavelist.length;e<t;++e)n(r,this.__leavelist[e].path);return n(r,this.__current.path),r},u.prototype.type=function(){return this.current().type||this.__current.wrap},u.prototype.parents=function(){var e,t,s;for(e=1,s=[],t=this.__leavelist.length;e<t;++e)s.push(this.__leavelist[e].node);return s},u.prototype.current=function(){return this.__current.node},u.prototype.__execute=function(e,t){var s,i;return i=void 0,s=this.__current,this.__current=t,this.__state=null,e&&(i=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=s,i},u.prototype.notify=function(e){this.__state=e},u.prototype.skip=function(){this.notify(a)},u.prototype.break=function(){this.notify(n)},u.prototype.remove=function(){this.notify(o)},u.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=r,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},u.prototype.traverse=function(e,t){var s,i,r,o,l,p,u,m,g,x,y,b;for(this.__initialize(e,t),b={},s=this.__worklist,i=this.__leavelist,s.push(new c(e,null,null,null)),i.push(new c(null,null,null,null));s.length;){if((r=s.pop())===b){if(r=i.pop(),p=this.__execute(t.leave,r),this.__state===n||p===n)return;continue}if(r.node){if(p=this.__execute(t.enter,r),this.__state===n||p===n)return;if(s.push(b),i.push(r),this.__state===a||p===a)continue;if(l=(o=r.node).type||r.wrap,!(x=this.__keys[l])){if(this.__fallback)x=this.__fallback(o);else throw Error("Unknown node type "+l+".")}for(m=x.length;(m-=1)>=0;)if(y=o[u=x[m]]){if(Array.isArray(y)){for(g=y.length;(g-=1)>=0;)if(!(!y[g]||f(i,y[g]))){if(d(l,x[m]))r=new c(y[g],[u,g],"Property",null);else{if(!h(y[g]))continue;r=new c(y[g],[u,g],null,null)}s.push(r)}}else if(h(y)){if(f(i,y))continue;s.push(new c(y,u,null,null))}}}}},u.prototype.replace=function(e,t){var s,i,r,l,u,f,m,g,x,y,b,v,S;function C(e){var t,i,r,n;if(e.ref.remove()){for(i=e.ref.key,n=e.ref.parent,t=s.length;t--;)if((r=s[t]).ref&&r.ref.parent===n){if(r.ref.key<i)break;--r.ref.key}}}for(this.__initialize(e,t),b={},s=this.__worklist,i=this.__leavelist,v={root:e},f=new c(e,null,null,new p(v,"root")),s.push(f),i.push(f);s.length;){if((f=s.pop())===b){if(f=i.pop(),void 0!==(u=this.__execute(t.leave,f))&&u!==n&&u!==a&&u!==o&&f.ref.replace(u),(this.__state===o||u===o)&&C(f),this.__state===n||u===n)return v.root;continue}if(void 0!==(u=this.__execute(t.enter,f))&&u!==n&&u!==a&&u!==o&&(f.ref.replace(u),f.node=u),(this.__state===o||u===o)&&(C(f),f.node=null),this.__state===n||u===n)break;if(r=f.node){if(s.push(b),i.push(f),this.__state!==a&&u!==a){if(l=r.type||f.wrap,!(x=this.__keys[l])){if(this.__fallback)x=this.__fallback(r);else throw Error("Unknown node type "+l+".")}for(m=x.length;(m-=1)>=0;)if(y=r[S=x[m]]){if(Array.isArray(y)){for(g=y.length;(g-=1)>=0;)if(y[g]){if(d(l,x[m]))f=new c(y[g],[S,g],"Property",new p(y,g));else{if(!h(y[g]))continue;f=new c(y[g],[S,g],null,new p(y,g))}s.push(f)}}else h(y)&&s.push(new c(y,S,null,new p(r,S)))}}}}return v.root},t.Syntax=s,t.traverse=m,t.replace=function(e,t){return new u().replace(e,t)},t.attachComments=function(e,t,s){var r,n,a,o,p=[];if(!e.range)throw Error("attachComments needs range information");if(!s.length){if(t.length){for(a=0,n=t.length;a<n;a+=1)(r=l(t[a])).extendedRange=[0,e.range[0]],p.push(r);e.leadingComments=p}return e}for(a=0,n=t.length;a<n;a+=1)p.push(function(e,t){var s;return s=function(e,t){var s,i,r,n;for(i=e.length,r=0;i;)t(e[n=r+(s=i>>>1)])?i=s:(r=n+1,i-=s+1);return r}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],s!==t.length&&(e.extendedRange[1]=t[s].range[0]),(s-=1)>=0&&(e.extendedRange[0]=t[s].range[1]),e}(l(t[a]),s));return o=0,m(e,{enter:function(e){for(var t;o<p.length&&!((t=p[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),p.splice(o,1)):o+=1;return o===p.length?i.Break:p[o].extendedRange[0]>e.range[1]?i.Skip:void 0}}),o=0,m(e,{leave:function(e){for(var t;o<p.length&&(t=p[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),p.splice(o,1)):o+=1;return o===p.length?i.Break:p[o].extendedRange[0]>e.range[1]?i.Skip:void 0}}),e},t.VisitorKeys=r,t.VisitorOption=i,t.Controller=u,t.cloneEnvironment=function(){return e({})},t}(ty),ty);function tv(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}function tS({name:e,package:t,create:s,defaultOptions:i=[],meta:r}){return{create:e=>{let t=Array.from({length:Math.max(e.options.length,i.length)},(t,s)=>tv(e.options[s])&&tv(i[s])?function e(t={},s={}){return Array.from(new Set(Object.keys(t).concat(Object.keys(s)))).reduce((i,r)=>{let n=r in t,a=r in s,o=t[r],l=s[r];return n&&a?tv(o)&&tv(l)?i[r]=e(o,l):i[r]=l:n?i[r]=o:i[r]=l,i},{})}(i[s],e.options[s]):e.options[s]??i[s]);return s(e,t)},defaultOptions:i,meta:{...r,docs:{...r.docs,url:`https://eslint.style/rules/${t}/${e}`}}}}function tC(e){return"("===e.value&&"Punctuator"===e.type}function tE(e,t){let s=e.sourceCode,i=t,r=null;do r="JSXText"===(i=s.getTokenBefore(i)).type?i.value.split("\n"):null;while("JSXText"===i.type&&r&&/^\s*$/.test(r[r.length-1]));return i}function tk(e,t){let s=tE(e,t);return t.loc.start.line!==(s?s.loc.end.line:-1)}function t_(e){let t="attributes"in e&&e.attributes;return t&&0!==t.length?t[t.length-1]:e.name}function tw(e,t,s=1){let i,r;if(null==e||null==e.parent||"CatchClause"===e.parent.type&&e.parent.param===e)return!1;i=r=e;do i=t.getTokenBefore(i),r=t.getTokenAfter(r);while(null!=i&&null!=r&&"Punctuator"===i.type&&"("===i.value&&"Punctuator"===r.type&&")"===r.value&&i!==function(e,t){let s=e.parent;if(!s)return null;switch(s.type){case"CallExpression":case"NewExpression":if(1===s.arguments.length&&s.arguments[0]===e)return t.getTokenAfter(s.callee,tC);return null;case"DoWhileStatement":if(s.test===e)return t.getTokenAfter(s.body,tC);return null;case"IfStatement":case"WhileStatement":if(s.test===e)return t.getFirstToken(s,1);return null;case"ImportExpression":if(s.source===e)return t.getFirstToken(s,1);return null;case"SwitchStatement":if(s.discriminant===e)return t.getFirstToken(s,1);return null;case"WithStatement":if(s.object===e)return t.getFirstToken(s,1);return null;default:return null}}(e,t)&&--s>0);return 0===s}let tA=/^[a-z]/;function tT(e){let t=tL(e);return tA.test(t)}function tI(e){return e&&["JSXElement","JSXFragment"].includes(e.type)}function tP(e){return"string"==typeof e&&/^\s*$/.test(e)}function tN(e){if(!e.type||"JSXAttribute"!==e.type)throw Error("The prop must be a JSXAttribute collected by the AST parser.");return"JSXNamespacedName"===e.name.type?`${e.name.namespace.name}:${e.name.name.name}`:e.name.name}function tL(e){if("JSXOpeningFragment"===e.type)return"<>";let{name:t}=e;if(!t)throw Error("The argument provided is not a JSXElement node.");if("JSXMemberExpression"===t.type){let{object:e,property:s}=t;return function e(t,s){return"JSXMemberExpression"===t.type?`${e(t.object,t.property)}.${s.name}`:`${t.name}.${s.name}`}(e,s)}return"JSXNamespacedName"===t.type?`${t.namespace.name}:${t.name.name}`:e.name.name}let tR=new Set(["a","abbr","acronym","b","bdo","big","button","cite","code","dfn","em","i","img","input","kbd","label","map","object","q","samp","script","select","small","span","strong","sub","sup","textarea","tt","var"]);var tO=tS({name:"jsx-child-element-spacing",package:"jsx",meta:{type:"layout",docs:{description:"Enforce or disallow spaces inside of curly braces in JSX attributes and expressions"},messages:{spacingAfterPrev:"Ambiguous spacing after previous element {{element}}",spacingBeforeNext:"Ambiguous spacing before next element {{element}}"},schema:[]},create(e){let t=/^[\t\v\f\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\n\s*\S/,s=/\S[\t\v\f\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\n\s*$/,i=e=>e.openingElement&&e.openingElement.name&&"JSXIdentifier"===e.openingElement.name.type&&e.openingElement.name.name||"",r=e=>"JSXElement"===e.type&&tR.has(i(e)),n=n=>{let a=null,o=null;[...n.children,null].forEach(n=>{(a||n)&&(!a||r(a))&&o&&("Literal"===o.type||"JSXText"===o.type)&&(!n||r(n))&&(a&&String(o.value).match(t)?e.report({messageId:"spacingAfterPrev",node:a,loc:a.loc.end,data:{element:i(a)}}):n&&String(o.value).match(s)&&e.report({messageId:"spacingBeforeNext",node:n,loc:n.loc.start,data:{element:i(n)}})),a=o,o=n})};return{JSXElement:n,JSXFragment:n}}}),tj=tS({name:"jsx-closing-bracket-location",package:"jsx",meta:{type:"layout",docs:{description:"Enforce closing bracket location in JSX"},fixable:"code",messages:{bracketLocation:"The closing bracket must be {{location}}{{details}}"},schema:[{anyOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"object",properties:{location:{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]}},additionalProperties:!1},{type:"object",properties:{nonEmpty:{oneOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"boolean",enum:[!1]}]},selfClosing:{oneOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"boolean",enum:[!1]}]}},additionalProperties:!1}]}]},create(e){let t={"after-props":"placed after the last prop","after-tag":"placed after the opening tag","props-aligned":"aligned with the last prop","tag-aligned":"aligned with the opening tag","line-aligned":"aligned with the line containing the opening tag"},s="tag-aligned",i=e.options[0],r={nonEmpty:s,selfClosing:s};function n(e,t){switch(t){case"props-aligned":return e.lastProp.column;case"tag-aligned":return e.opening.column;case"line-aligned":return e.openingStartOfLine.column;default:return null}}function a(e,t){switch(t){case"after-tag":return e.tag.line===e.closing.line;case"after-props":return e.lastProp.lastLine===e.closing.line;case"props-aligned":case"tag-aligned":case"line-aligned":return n(e,t)===e.closing.column;default:return!0}}return"string"==typeof i?(r.nonEmpty=i,r.selfClosing=i):"object"==typeof i&&("location"in i&&(r.nonEmpty=i.location,r.selfClosing=i.location),"nonEmpty"in i&&(r.nonEmpty=i.nonEmpty),"selfClosing"in i&&(r.selfClosing=i.selfClosing)),{"JSXOpeningElement:exit":function(s){let i,o;let l=s.attributes.at(-1),p=l?l.range[1]:null,c=function(t){let s;let i=e.sourceCode,r=i.getFirstToken(t).loc.start,n=i.getLastTokens(t,t.selfClosing?2:1)[0].loc.start,a=i.getFirstToken(t.name).loc.start;t.attributes.length&&(s=t.attributes[t.attributes.length-1],s={column:i.getFirstToken(s).loc.start.column,firstLine:i.getFirstToken(s).loc.start.line,lastLine:i.getLastToken(s).loc.end.line});let o=i.lines[r.line-1],l=i.lines[n.line-1],p={openTab:/^\t/.test(o),closeTab:/^\t/.test(l)},c={column:/^\s*/.exec(o)?.[0].length,line:r.line};return{isTab:p,tag:a,opening:r,closing:n,lastProp:s,selfClosing:t.selfClosing,openingStartOfLine:c}}(s),u=void 0===c.lastProp?"after-tag":c.opening.line===c.lastProp.lastLine?"after-props":c.selfClosing?r.selfClosing:r.nonEmpty,h=!0;"tag-aligned"===u&&(h=c.isTab.openTab===c.isTab.closeTab);let d=e.sourceCode.getCommentsInside(s).at(-1),f=d&&d.range[0]>(l??s.name).range[1];if(("after-props"===u||"after-tag"===u)&&!(a(c,u)&&h)&&f&&(u="line-aligned"),a(c,u)&&h)return;let m={location:t[u],details:""},g=n(c,u);null!==g&&(i=c.lastProp&&c.lastProp.lastLine===c.closing.line,m.details=` (expected column ${g+1}${i?" on the next line)":")"}`),e.report({node:s,messageId:"bracketLocation",loc:c.closing,data:m,fix(t){let r=c.selfClosing?"/>":">";switch(u){case"after-tag":if(p)return t.replaceTextRange([p,s.range[1]],(i?"\n":"")+r);return t.replaceTextRange([s.name.range[1],s.range[1]],(i?"\n":" ")+r);case"after-props":return t.replaceTextRange([p,s.range[1]],(i?"\n":"")+r);case"props-aligned":case"tag-aligned":case"line-aligned":{let i=f?d.range[1]:p;return t.replaceTextRange([i,s.range[1]],`
|
|
2
|
+
${function(t,s,i){let r;let n=[];switch(s){case"props-aligned":r=/^\s*/.exec(e.sourceCode.lines[t.lastProp.firstLine-1])[0];break;case"tag-aligned":case"line-aligned":r=/^\s*/.exec(e.sourceCode.lines[t.opening.line-1])[0];break;default:r=""}return r.length+1<(i||0)&&(n=Array.from({length:+i+1-r.length})),r+n.join(" ")}(c,u,g)}${r}`)}}return null}})}}}});let tB="tag-aligned",tV={"tag-aligned":"matchIndent","line-aligned":"alignWithOpening"};var tD=tS({name:"jsx-closing-tag-location",package:"jsx",meta:{type:"layout",docs:{description:"Enforce closing tag location for multiline JSX"},fixable:"whitespace",messages:{onOwnLine:"Closing tag of a multiline JSX expression must be on its own line.",matchIndent:"Expected closing tag to match indentation of opening.",alignWithOpening:"Expected closing tag to be aligned with the line containing the opening tag"},schema:[{anyOf:[{type:"string",enum:["tag-aligned","line-aligned"],default:tB}]}]},defaultOptions:[tB],create(e){let t=e.options[0]||tB;function s(s){if(!s.parent)return;let i=e.sourceCode,r="openingFragment"in s.parent?s.parent.openingFragment:s.parent.openingElement,n=i.getFirstToken(r).loc.start,a=i.lines[n.line-1],o={column:/^\s*/.exec(a)?.[0].length,line:n.line};if(r.loc.start.line===s.loc.start.line||r.loc.start.column===s.loc.start.column&&"tag-aligned"===t||o.column===s.loc.start.column&&"line-aligned"===t)return;let l=tk(e,s)?tV[t]:"onOwnLine";e.report({node:s,messageId:l,loc:s.loc,fix(i){let n=Array((("line-aligned"===t?o.column:r.loc.start.column)||0)+1).join(" ");return tk(e,s)?i.replaceTextRange([s.range[0]-s.loc.start.column,s.range[0]],n):i.insertTextBefore(s,`
|
|
3
|
+
${n}`)}})}return{JSXClosingElement:s,JSXClosingFragment:s}}});let tM="always",tF="never",tX="ignore",tJ=[tM,tF,tX],t$={props:tF,children:tF,propElementValues:tX};var tU=tS({name:"jsx-curly-brace-presence",package:"jsx",meta:{type:"layout",docs:{description:"Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes"},fixable:"code",messages:{unnecessaryCurly:"Curly braces are unnecessary here.",missingCurly:"Need to wrap this literal in a JSX expression."},schema:[{anyOf:[{type:"object",properties:{props:{type:"string",enum:tJ},children:{type:"string",enum:tJ},propElementValues:{type:"string",enum:tJ}},additionalProperties:!1},{type:"string",enum:tJ}]}]},create(e){let t=()=>/&[A-Z\d#]+;/gi,s=e.options[0],i="string"==typeof s?{props:s,children:s,propElementValues:tX}:Object.assign({},t$,s);function r(e){return/[\n\r\u2028\u2029]/.test(e)}function n(e){return""===e.replace(t(),"").trim()}function a(e){return/['"]/.test(e)}function o(e,s){return e.includes("\\")||t().test(e)||"JSXAttribute"!==s.parent.type&&/[{<>}]/.test(e)}function l(e){if("JSXExpressionContainer"===e.type){let t=e.expression.value;return!!t&&tP(t)}return!1}function p(e){return r(e)&&""===e.trim()}function c(t){e.report({messageId:"unnecessaryCurly",node:t,fix(s){let i;let r=t.expression;return i=tI(r)?e.sourceCode.getText(r):"JSXAttribute"===t.parent.type?`"${"TemplateLiteral"===r.type?r.quasis[0].value.raw:r.raw.slice(1,-1)}"`:tI(r)?e.sourceCode.getText(r):"TemplateLiteral"===r.type?r.quasis[0].value.cooked:r.value,s.replaceText(t,i)}})}function u(e){return e.type&&"Literal"===e.type&&e.value&&tP(e.value)}function h(e){return/^\s|\s$/.test(e)}function d(e,t,s){return"JSXAttribute"===e.type&&"string"==typeof t.props&&t.props===s||tI(e)&&"string"==typeof t.children&&t.children===s}function f(e,t){for(let s=1;s<t.length-1;s++)if(e===t[s])return[t[s-1],t[s+1]];return e===t[0]&&t[1]?[t[1]]:e===t[t.length-1]&&t[t.length-2]?[t[t.length-2]]:[]}return{"JSXAttribute > JSXExpressionContainer > JSXElement":function(e){i.propElementValues===tF&&c(e.parent)},JSXExpressionContainer(t){(function(e,t){var s,i;let r=e.parent;return!(r.type&&"JSXAttribute"===r.type&&e.expression&&e.expression.type&&"Literal"!==e.expression.type&&"StringLiteral"!==e.expression.type&&"TemplateLiteral"!==e.expression.type||tI(r)&&(s=r.children)&&f(e,s.filter(e=>!u(e))).some(e=>e.type&&"JSXExpressionContainer"===e.type))&&!(l(e)&&(i=r.children)&&f(e,i.filter(e=>!u(e))).some(e=>e.type&&["JSXExpressionContainer","JSXElement"].includes(e.type))||r.children&&1===r.children.length&&l(e))&&d(r,t,tF)})(t,i)&&function(t){let s=t.expression,i=s.type,r=e.sourceCode;if(!r.getCommentsInside||!(r.getCommentsInside(t).length>0)){var n;("Literal"===i||"JSXText"===i)&&"string"==typeof s.value&&("JSXAttribute"===t.parent.type&&!u(s)||!(s.type&&"Literal"===s.type&&s.value&&h(s.value)))&&(n=s.value,!/\/\*/.test(n))&&!o(s.raw,t)&&(tI(t.parent)||!a(s.value))?c(t):"TemplateLiteral"!==i||0!==s.expressions.length||s.quasis[0].value.raw.includes("\n")||h(s.quasis[0].value.raw)||o(s.quasis[0].value.raw,t)||a(s.quasis[0].value.cooked)?tI(s)&&c(t):c(t)}}(t)},"JSXAttribute > JSXElement, Literal, JSXText":function(s){if(function(e,t){if(tI(e))return t.propElementValues!==tX;if(p(e.raw)||n(e.raw))return!1;let s=e.parent;return!(s.children&&1===s.children.length&&l(s.children[0]))&&d(s,t,tM)}(s,i))e.report({messageId:"missingCurly",node:s,fix(i){var a;if(tI(s))return i.replaceText(s,`{${e.sourceCode.getText(s)}}`);if(n(s.raw)||"JSXAttribute"===s.parent.type&&r(s.raw)||p(s.raw))return null;let o="JSXAttribute"===s.parent.type?`{"${s.raw.slice(1,-1).replace(/\\/g,"\\\\").replace(/\\"/g,'"').replace(/"/g,'\\"')}"}`:r(a=s.raw)?a.split("\n").map(e=>{if(""===e.trim())return e;let s=e.search(/\S/),i=e.slice(0,s),r=e.slice(s);return t().test(e)?`${i}${function(e){let s="<HTML_ENTITY>",i=e.split(t()).map(e=>""===e?"":`{${JSON.stringify(e)}}`).join(s);return e.match(t()).reduce((e,t)=>e.replace(s,t),i)}(r)}`:`${i}{${JSON.stringify(r)}}`}).join("\n"):`{${JSON.stringify(a)}}`;return i.replaceText(s,o)}})}}}}),tq=tS({name:"jsx-curly-newline",package:"jsx",meta:{type:"layout",docs:{description:"Enforce consistent linebreaks in curly braces in JSX attributes and expressions"},fixable:"whitespace",schema:[{anyOf:[{type:"string",enum:["consistent","never"]},{type:"object",properties:{singleline:{type:"string",enum:["consistent","require","forbid"]},multiline:{type:"string",enum:["consistent","require","forbid"]}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before '}'.",expectedAfter:"Expected newline after '{'.",unexpectedBefore:"Unexpected newline before '}'.",unexpectedAfter:"Unexpected newline after '{'."}},create(e){let t=e.sourceCode,s=function(e){let t=e.options[0]||"consistent";return"consistent"===t?{multiline:"consistent",singleline:"consistent"}:"never"===t?{multiline:"forbid",singleline:"forbid"}:{multiline:t.multiline||"consistent",singleline:t.singleline||"consistent"}}(e);function i(e,t){return e.loc.end.line===t.loc.start.line}return{JSXExpressionContainer(r){!function(r,n){let a=r.leftCurly,o=r.rightCurly,l=t.getTokenAfter(a),p=t.getTokenBefore(o),c=!i(a,l),u=!i(p,o),h=function(e,t){switch(e.loc.start.line!==e.loc.end.line?s.multiline:s.singleline){case"forbid":return!1;case"require":return!0;default:return t}}(n,c);c&&!h?e.report({node:a,messageId:"unexpectedAfter",fix:e=>t.getText().slice(a.range[1],l?.range[0]).trim()?null:e.removeRange([a.range[1],l.range[0]])}):!c&&h&&e.report({node:a,messageId:"expectedAfter",fix:e=>e.insertTextAfter(a,"\n")}),u&&!h?e.report({node:o,messageId:"unexpectedBefore",fix:e=>t.getText().slice(p.range[1],o.range[0]).trim()?null:e.removeRange([p.range[1],o.range[0]])}):!u&&h&&e.report({node:o,messageId:"expectedBefore",fix:e=>e.insertTextBefore(o,"\n")})}({leftCurly:t.getFirstToken(r),rightCurly:t.getLastToken(r)},r.expression)}}}});let tH={always:"always",never:"never"},tW=[tH.always,tH.never];var tG=tS({name:"jsx-curly-spacing",package:"jsx",meta:{type:"layout",docs:{description:"Enforce or disallow spaces inside of curly braces in JSX attributes and expressions"},fixable:"code",messages:{noNewlineAfter:"There should be no newline after '{{token}}'",noNewlineBefore:"There should be no newline before '{{token}}'",noSpaceAfter:"There should be no space after '{{token}}'",noSpaceBefore:"There should be no space before '{{token}}'",spaceNeededAfter:"A space is required after '{{token}}'",spaceNeededBefore:"A space is required before '{{token}}'"},schema:{definitions:{basicConfig:{type:"object",properties:{when:{type:"string",enum:tW},allowMultiline:{type:"boolean"},spacing:{type:"object",properties:{objectLiterals:{type:"string",enum:tW}}}}},basicConfigOrBoolean:{anyOf:[{$ref:"#/definitions/basicConfig"},{type:"boolean"}]}},type:"array",items:[{anyOf:[{allOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{attributes:{$ref:"#/definitions/basicConfigOrBoolean"},children:{$ref:"#/definitions/basicConfigOrBoolean"}}}]},{type:"string",enum:tW}]},{type:"object",properties:{allowMultiline:{type:"boolean"},spacing:{type:"object",properties:{objectLiterals:{type:"string",enum:tW}}}},additionalProperties:!1}]}},create(e){function t(e,s,i=!1){let r=!0===e?{}:e,n=r.when||s.when,a="allowMultiline"in r?r.allowMultiline:s.allowMultiline,o=(r.spacing||{}).objectLiterals||s.objectLiteralSpaces;return i&&(o=o||n),{when:n,allowMultiline:a,objectLiteralSpaces:o}}let s=tH.never,i=e.options[0]||{};tW.includes(i)&&(i=Object.assign({when:e.options[0]},e.options[1]));let r=t(i,{when:s,allowMultiline:!0}),n=!("attributes"in i)||i.attributes,a=n?t(n,r,!0):null,o="children"in i&&i.children,l=o?t(o,r,!0):null;function p(e,t){return e.loc.end.line!==t.loc.start.line}function c(t,s,i,r,n=""){let a=e.sourceCode.text.slice(s,i);return a="start"===r?a.replace(/^\s+/gm,""):a.replace(/\s+$/gm,""),n===tH.always&&("start"===r?a+=" ":a=` ${a}`),t.replaceTextRange([s,i],a)}function u(t,s,i){e.report({node:t,loc:s.loc.start,messageId:"noNewlineAfter",data:{token:s.value},fix(t){let r=e.sourceCode.getTokenAfter(s);return c(t,s.range[1],r.range[0],"start",i)}})}function h(t,s,i){e.report({node:t,loc:s.loc.start,messageId:"noNewlineBefore",data:{token:s.value},fix:t=>c(t,e.sourceCode.getTokenBefore(s).range[1],s.range[0],"end",i)})}function d(t){let s;switch(t.parent?.type){case"JSXAttribute":case"JSXOpeningElement":s=a;break;case"JSXElement":case"JSXFragment":s=l;break;default:return}if(null===s)return;let i=e.sourceCode,r=i.getFirstToken(t),n=i.getLastToken(t),o=i.getTokenAfter(r,{includeComments:!0}),d=i.getTokenBefore(n,{includeComments:!0});if(!o){o=i.getTokenAfter(r);let e=i.getCommentsBefore(o);o=e?e[0]:o}if(!d){d=i.getTokenBefore(n);let e=i.getCommentsAfter(d);d=e?e[e.length-1]:d}let f=r.value===o.value?s.objectLiteralSpaces:s.when;f===tH.always?(i.isSpaceBetween(r,o)?!s.allowMultiline&&p(r,o)&&u(t,r,f):e.report({node:t,loc:r.loc.start,messageId:"spaceNeededAfter",data:{token:r.value},fix:e=>e.insertTextAfter(r," ")}),i.isSpaceBetween(d,n)?!s.allowMultiline&&p(d,n)&&h(t,n,f):e.report({node:t,loc:n.loc.start,messageId:"spaceNeededBefore",data:{token:n.value},fix:e=>e.insertTextBefore(n," ")})):f===tH.never&&(p(r,o)?s.allowMultiline||u(t,r,f):i.isSpaceBetween(r,o)&&e.report({node:t,loc:r.loc.start,messageId:"noSpaceAfter",data:{token:r.value},fix(t){let s=e.sourceCode,i=s.getTokenAfter(r),n=s.getCommentsAfter(r);return n.length>0?c(t,r.range[1],Math.min(i.range[0],n[0].range[0]),"start"):c(t,r.range[1],i.range[0],"start")}}),p(d,n)?s.allowMultiline||h(t,n,f):i.isSpaceBetween(d,n)&&e.report({node:t,loc:n.loc.start,messageId:"noSpaceBefore",data:{token:n.value},fix(t){let s=e.sourceCode,i=s.getTokenBefore(n),r=s.getCommentsBefore(n);return r.length>0?c(t,Math.max(i.range[1],r[0].range[1]),n.range[0],"end"):c(t,i.range[1],n.range[0],"end")}}))}return{JSXExpressionContainer:d,JSXSpreadAttribute:d}}}),tz=tS({name:"jsx-equals-spacing",package:"jsx",meta:{type:"layout",docs:{description:"Enforce or disallow spaces around equal signs in JSX attributes"},fixable:"code",messages:{noSpaceBefore:"There should be no space before '='",noSpaceAfter:"There should be no space after '='",needSpaceBefore:"A space is required before '='",needSpaceAfter:"A space is required after '='"},schema:[{type:"string",enum:["always","never"]}]},create(e){let t=e.options[0]||"never";return{JSXOpeningElement(s){s.attributes.forEach(s=>{if("JSXSpreadAttribute"===s.type||null===s.value)return;let i=e.sourceCode,r=i.getTokenAfter(s.name),n=i.isSpaceBetween(s.name,r),a=i.isSpaceBetween(r,s.value);"never"===t?(n&&e.report({node:s,messageId:"noSpaceBefore",loc:r.loc.start,fix:e=>e.removeRange([s.name.range[1],r.range[0]])}),a&&e.report({node:s,messageId:"noSpaceAfter",loc:r.loc.start,fix:e=>e.removeRange([r.range[1],s.value.range[0]])})):"always"!==t||(n||e.report({messageId:"needSpaceBefore",node:s,loc:r.loc.start,fix:e=>e.insertTextBefore(r," ")}),a||e.report({node:s,messageId:"needSpaceAfter",loc:r.loc.start,fix:e=>e.insertTextAfter(r," ")}))})}}}}),tK=tS({name:"jsx-first-prop-new-line",package:"jsx",meta:{type:"layout",docs:{description:"Enforce proper position of the first property in JSX"},fixable:"code",messages:{propOnNewLine:"Property should be placed on a new line",propOnSameLine:"Property should be placed on the same line as the component declaration"},schema:[{type:"string",enum:["always","never","multiline","multiline-multiprop","multiprop"]}]},create(e){let t=e.options[0]||"multiline-multiprop";function s(e){return e.loc.start.line<e.loc.end.line}return{JSXOpeningElement(i){if("multiline"===t&&s(i)||"multiline-multiprop"===t&&s(i)&&i.attributes.length>1||"multiprop"===t&&i.attributes.length>1||"always"===t)i.attributes.some(t=>(t.loc.start.line===i.loc.start.line&&e.report({node:t,messageId:"propOnNewLine",fix:e=>e.replaceTextRange([(i.typeArguments||i.name).range[1],t.range[0]],"\n")}),!0));else if("never"===t&&i.attributes.length>0||"multiprop"===t&&s(i)&&i.attributes.length<=1){let t=i.attributes[0];i.loc.start.line<t.loc.start.line&&e.report({node:t,messageId:"propOnSameLine",fix:e=>e.replaceTextRange([i.name.range[1],t.range[0]]," ")})}}}}}),tQ=tS({name:"jsx-function-call-newline",package:"jsx",meta:{type:"layout",docs:{description:"Enforce line breaks before and after JSX elements when they are used as arguments to a function."},fixable:"whitespace",messages:{missingLineBreak:"Missing line break around JSX"},schema:[{type:"string",enum:["always","multiline"]}]},create(e){let t=e.options[0]||"multiline";function s(s){if(!s||!tI(s))return;let i=e.sourceCode;if("always"===t||s.loc.start.line!==s.loc.end.line){let t=e.sourceCode.getTokenBefore(s).loc.end.line===s.loc.start.line,r=function(t){let s=e.sourceCode.getTokenAfter(t);return!function(e,t){let s=e.sourceCode.getTokenAfter(t);return!!s&&","===s.value&&s.range[0]>=t.range[1]}(e,t)&&t.loc.end.line===s.loc.end.line}(s);(t||r)&&e.report({node:s,messageId:"missingLineBreak",fix:e=>{let n=i.getText(s);return t&&(n=`
|
|
4
|
+
${n}`),r&&(n=`${n}
|
|
5
|
+
`),e.replaceText(s,n)}})}}function i(e){0!==e.arguments.length&&e.arguments.forEach(s)}return{CallExpression(e){i(e)},NewExpression(e){i(e)}}}}),tY=tS({name:"jsx-indent-props",package:"jsx",meta:{type:"layout",docs:{description:"Enforce props indentation in JSX"},fixable:"code",messages:{wrongIndent:"Expected indentation of {{needed}} {{type}} {{characters}} but found {{gotten}}."},schema:[{anyOf:[{type:"string",enum:["tab","first"]},{type:"integer"},{type:"object",properties:{indentMode:{anyOf:[{type:"string",enum:["tab","first"]},{type:"integer"}]},ignoreTernaryOperator:{type:"boolean"}}}]}]},create(e){let t=e.options[0],s="space",i=4,r={isUsingOperator:!1,currentOperator:!1},n=!1;if(e.options.length){let r="object"==typeof e.options[0]?"object"==typeof t&&t.indentMode:t;"first"===r?(i="first",s="space"):"tab"===r?(i=1,s="tab"):"number"==typeof r&&(i=r,s="space"),"object"==typeof t&&t.ignoreTernaryOperator&&(n=!0)}function a(t){let i,n=e.sourceCode.getText(t,t.loc.start.column+0);n=n.split("\n")[0];let a=("space"===s?/^ +/:/^\t+/).exec(n),o=/^[ \t]*:/.test(n)||/^[ \t]*\?/.test(n),l=/</.test(n);return r.currentOperator=!1,o?(r.isUsingOperator=!0,r.currentOperator=!0):l&&(r.isUsingOperator=!1),a?a[0].length:0}return{JSXOpeningElement(t){let o;t.attributes.length&&(o="first"===i?t.attributes[0].loc.start.column:a(t)+i,function(t,o){let l=o;t.forEach(t=>{let o=a(t);!r.isUsingOperator||r.currentOperator||"first"===i||n||(l+=i,r.isUsingOperator=!1),"ArrayExpression"!==t.type&&"ObjectExpression"!==t.type&&o!==l&&tk(e,t)&&e.report({node:t,messageId:"wrongIndent",data:{needed:l,type:s,characters:1===l?"character":"characters",gotten:o},fix:e=>e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],Array(l+1).join("space"===s?" ":" "))})})}(t.attributes,o))}}}}),tZ=tS({name:"jsx-indent",package:"jsx",meta:{type:"layout",docs:{description:"Enforce JSX indentation. Deprecated, use `indent` rule instead."},deprecated:!0,fixable:"whitespace",messages:{wrongIndent:"Expected indentation of {{needed}} {{type}} {{characters}} but found {{gotten}}."},schema:[{anyOf:[{type:"string",enum:["tab"]},{type:"integer"}]},{type:"object",properties:{checkAttributes:{type:"boolean"},indentLogicalExpressions:{type:"boolean"}},additionalProperties:!1}]},create(e){let t="space",s=4;e.options.length&&("tab"===e.options[0]?(s=1,t="tab"):"number"==typeof e.options[0]&&(s=e.options[0],t="space"));let i="space"===t?" ":" ",r=e.options[1]||{},n=r.checkAttributes||!1,a=r.indentLogicalExpressions||!1;function o(s,r,n,a){let o={needed:r,type:t,characters:1===r?"character":"characters",gotten:n};e.report({node:s,messageId:"wrongIndent",data:o,fix:function(t,s){let r=Array(s+1).join(i);if("JSXText"===t.type||"Literal"===t.type)return function(e){let s=t.raw.replace(/\n[\t ]*(\S)/g,(e,t)=>`
|
|
6
|
+
${r}${t}`);return e.replaceText(t,s)};if("ReturnStatement"===t.type){let s=e.sourceCode.getText(t);if(s.split("\n").length>1)return function(e){let i=s.lastIndexOf("\n"),n=s.slice(i).replace(/^\n[\t ]*(\S)/,(e,t)=>`
|
|
7
|
+
${r}${t}`);return e.replaceTextRange([t.range[0]+i,t.range[1]],n)}}return function(e){return e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],r)}}(s,r)})}function l(s,i=!1,r=!1){let n,a=e.sourceCode.getText(s,s.loc.start.column+0),o=a.split("\n");a=i?o[o.length-1]:o[0];let p=r?",":"",c=("space"===t?RegExp(`^[ ${p}]+`):RegExp(`^[ ${p}]+`)).exec(a);return c?c[0].length:0}function p(e){return e.parent&&e.parent.parent&&"LogicalExpression"===e.parent.parent.type&&e.parent.parent.right===e.parent&&!a}function c(t){return t.parent&&t.parent.parent&&"ConditionalExpression"===t.parent.parent.type&&t.parent.parent.alternate===t.parent&&"("!==e.sourceCode.getTokenBefore(t).value}function u(t,i,r=!1){let n=l(t,!1,r),a=p(t)&&n-i===s,h=c(t)&&n-i==0;n!==i&&tk(e,t)&&!a&&!h&&o(t,i,n)}function h(t){let i=e.sourceCode,r=i.getTokenBefore(t);if(!r)return;if("JSXText"===r.type||"Punctuator"===r.type&&","===r.value)r="Literal"===(r=i.getNodeByRangeIndex(r.range[0])).type||"JSXText"===r.type?r.parent:r;else if("Punctuator"===r.type&&":"===r.value){do r=i.getTokenBefore(r);while("Punctuator"===r.type&&"/"!==r.value);for(r=i.getNodeByRangeIndex(r.range[0]);r.parent&&"ConditionalExpression"!==r.parent.type;)r=r.parent}let n=l(r="JSXExpressionContainer"===r.type?r.expression:r),a=r.loc.start.line===t.loc.start.line||p(t)||c(t)||function(e){if(!e.parent||!e.parent.parent||"ExpressionStatement"!==e.parent.parent.type)return!1;let t=e.parent.parent;return!!t.parent&&"BlockStatement"===t.parent.type&&!!t.parent.parent&&"DoExpression"===t.parent.parent.type&&t.parent.body[0]!==t}(t)?0:s;u(t,n+a)}function d(e){if(!e.parent)return;let t=l(e.parent.openingElement||e.parent.openingFragment);u(e,t)}function f(e){if(!e.parent||"JSXElement"!==e.parent.type&&"JSXFragment"!==e.parent.type)return;let i=l(e.parent);!function(e,s){let i=e.value,r="space"===t?/\n( *)[\t ]*\S/g:/\n(\t*)[\t ]*\S/g,n=Array.from(String(i).matchAll(r),e=>e[1]?e[1].length:0);n.length>0&&!n.every(e=>e===s)&&n.forEach(t=>{o(e,s,t)})}(e,i+s)}return{JSXOpeningElement:h,JSXOpeningFragment:h,JSXClosingElement:d,JSXClosingFragment:d,JSXAttribute:function(t){if(!n||!t.value||"JSXExpressionContainer"!==t.value.type)return;let s=l(t.name),i=e.sourceCode.getLastToken(t.value),r=tE(e,i);if(r.loc.start.line!==i.loc.start.line)return;let a=t.name.loc.start.line===r.loc.start.line?0:s;u(r,a)},JSXExpressionContainer(e){if(!e.parent)return;let t=l(e.parent);u(e,t+s)},Literal:f,JSXText:f,ReturnStatement(t){if(!t.parent||!t.argument||!tI(t.argument))return;let s=t.parent;for(;s&&"FunctionDeclaration"!==s.type&&"FunctionExpression"!==s.type;)s=s.parent;if(!s||!function(e,t,s=!1,i=!1){let r=e=>{if(!e)return!1;switch(e.type){case"ConditionalExpression":if(s)return r(e.consequent)&&r(e.alternate);return r(e.consequent)||r(e.alternate);case"LogicalExpression":if(s)return r(e.left)&&r(e.right);return r(e.left)||r(e.right);case"SequenceExpression":return r(e.expressions[e.expressions.length-1]);case"JSXElement":case"JSXFragment":return!0;case"Literal":if(!i&&null===e.value)return!0;return!1;case"Identifier":return tI(function(e,t){let s=(function(e){let t=e.getScope(),s=t.variables;for(;"global"!==t.type;)s=(t=t.upper).variables.concat(s);return t.childScopes.length&&(s=t.childScopes[0].variables.concat(s),t.childScopes[0].childScopes.length&&(s=t.childScopes[0].childScopes[0].variables.concat(s))),s.reverse(),s})(e).find(e=>e.name===t);return s&&s.defs[0]&&s.defs[0].node?"TypeAlias"===s.defs[0].node.type?s.defs[0].node.right:"ImportBinding"===s.defs[0].type?s.defs[0].node:s.defs[0].node.init:null}(t,e.name));default:return!1}},n=!1;return!function(e,t){let s=e.type;if("ReturnStatement"===s){t(e.argument,()=>{});return}if("ArrowFunctionExpression"===s&&e.expression){t(e.body,()=>{});return}("FunctionExpression"===s||"FunctionDeclaration"===s||"ArrowFunctionExpression"===s||"MethodDefinition"===s)&&!function(e,t){let s=Object.assign({},{fallback:e=>Object.keys(e).filter(e=>"children"===e||"argument"===e)},t);s.keys=Object.assign({},t.keys,{JSXElement:["children"],JSXFragment:["children"]}),tb.traverse(e,s)}(e.body,{enter(e){switch(e.type){case"ReturnStatement":this.skip(),t(e.argument,()=>{this.break()});return;case"BlockStatement":case"IfStatement":case"ForStatement":case"WhileStatement":case"SwitchStatement":case"SwitchCase":return;default:this.skip()}}})}(e,(e,t)=>{r(e)&&(n=!0,t())}),n}(t,e,!0))return;let i=l(t),r=l(t,!0);i!==r&&o(t,i,r)}}}}),t1=tS({name:"jsx-max-props-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Enforce maximum of props on a single line in JSX"},fixable:"code",messages:{newLine:"Prop `{{prop}}` must be placed on a new line"},schema:[{anyOf:[{type:"object",properties:{maximum:{type:"object",properties:{single:{type:"integer",minimum:1},multi:{type:"integer",minimum:1}}}},additionalProperties:!1},{type:"object",properties:{maximum:{type:"number",minimum:1},when:{type:"string",enum:["always","multiline"]}},additionalProperties:!1}]}]},create(e){let t=e.options[0]||{},s=t.maximum||1,i="number"==typeof s?{single:"multiline"===t.when?1/0:s,multi:s}:{single:s.single||1/0,multi:s.multi||1/0};return{JSXOpeningElement(t){if(!t.attributes.length)return;let s=t.loc.start.line===t.loc.end.line;if((s?i.single:i.multi)===1/0)return;let r=[[t.attributes[0]]];t.attributes.reduce((e,t)=>(e.loc.end.line===t.loc.start.line?r[r.length-1].push(t):r.push([t]),t)),r.forEach(r=>{let n=s&&r[0].loc.start.line===t.loc.start.line?i.single:i.multi;if(r.length>n){var a;let t="JSXSpreadAttribute"===(a=r[n]).type?e.sourceCode.getText(a.argument):a.name.name;e.report({messageId:"newLine",node:r[n],data:{prop:t},fix:function(t,s){let i=e.sourceCode,r=[],n=t[0].range[0],a=t[t.length-1].range[1];for(let e=0;e<t.length;e+=s){let n=t.slice(e,e+s);r.push(n.reduce((e,t)=>""===e?i.getText(t):`${e} ${i.getText(t)}`,""))}let o=r.join("\n");return function(e){return e.replaceTextRange([n,a],o)}}(r,n)})}})}}}});function t0(e){return e&&e.loc.start.line!==e.loc.end.line}var t2=tS({name:"jsx-newline",package:"jsx",meta:{type:"layout",docs:{description:"Require or prevent a new line after jsx elements and expressions."},fixable:"code",messages:{require:"JSX element should start in a new line",prevent:"JSX element should not start in a new line",allowMultilines:"Multiline JSX elements should start in a new line"},schema:[{type:"object",properties:{prevent:{default:!1,type:"boolean"},allowMultilines:{default:!1,type:"boolean"}},additionalProperties:!1,if:{properties:{allowMultilines:{const:!0}}},then:{properties:{prevent:{const:!0}},required:["prevent"]}}]},create(e){let t=new Set,s=e.sourceCode;function i(e){let t=s.getText(e);return/^\s*\{\/\*/.test(t)}function r(e){return!i(e)&&("JSXElement"===e.type||"JSXExpressionContainer"===e.type)}return{"Program:exit":function(){t.forEach(t=>{t.children.forEach((t,n,a)=>{if("JSXElement"===t.type||"JSXExpressionContainer"===t.type){let o=e.options[0]||{},l=o.prevent||!1,p=o.allowMultilines||!1,c=a[n+1],u=a[n+2];if(!(c&&u&&("Literal"===c.type||"JSXText"===c.type)))return;let h=!/\n\s*\n/.test(c.value);if(i(t))return;if(p&&(t0(t)||t0(a.slice(n+2).find(r)))){if(!h)return;let t=/(\n)(?!.*\1)/g;e.report({messageId:"allowMultilines",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(t,"\n\n"))});return}if(h===l)return;let d=l?/(\n\n)(?!.*\1)/g:/(\n)(?!.*\1)/g,f=l?"\n":"\n\n";e.report({messageId:l?"prevent":"require",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(d,f))})}})})},":matches(JSXElement, JSXFragment) > :matches(JSXElement, JSXExpressionContainer)":e=>{t.add(e.parent)}}}});let t3={allow:"none"};var t6=tS({name:"jsx-one-expression-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Require one JSX element per line"},fixable:"whitespace",messages:{moveToNewLine:"`{{descriptor}}` must be placed on a new line"},schema:[{type:"object",properties:{allow:{type:"string",enum:["none","literal","single-child","single-line","non-jsx"]}},default:t3,additionalProperties:!1}]},create(e){let t=Object.assign({},t3,e.options[0]);function s(s){let i=s.children;if(!i||!i.length||"non-jsx"===t.allow&&!i.find(e=>"JSXFragment"===e.type||"JSXElement"===e.type))return;let r=s.openingElement||s.openingFragment,n=s.closingElement||s.closingFragment,a=r.loc.start.line,o=r.loc.end.line,l=n.loc.start.line,p=n.loc.end.line;if(1===i.length){let e=i[0];if(a===o&&o===l&&l===p&&p===e.loc.start.line&&e.loc.start.line===e.loc.end.line&&("single-child"===t.allow||"literal"===t.allow&&("Literal"===e.type||"JSXText"===e.type)||"single-line"===t.allow))return}if("single-line"===t.allow){let e=i[0],t=i[i.length-1],s=t.loc.end.line-e.loc.start.line,r=0;if(("Literal"===e.type||"JSXText"===e.type)&&/^\s*?\n/.test(e.raw)&&(r+=1),("Literal"===t.type||"JSXText"===t.type)&&/\n\s*$/.test(t.raw)&&(r+=1),0===s&&0===r||2===s&&2===r)return}let c={},u={};i.forEach(e=>{let t=0,s=0;if("Literal"===e.type||"JSXText"===e.type){if(tP(e.raw))return;t=(e.raw.match(/^\s*\n/g)||[]).length,s=(e.raw.match(/\n\s*$/g)||[]).length}let i=e.loc.start.line+t,r=e.loc.end.line-s;i===r?(c[i]||(c[i]=[]),c[i].push(e)):(c[i]||(c[i]=[]),c[i].push(e),c[r]||(c[r]=[]),c[r].push(e))}),Object.keys(c).forEach(t=>{let s=parseInt(t,10),i=c[s].length-1;c[s].forEach((t,a)=>{let p,h;if(0===a?s===o&&(p=r):p=c[s][a-1],a===i&&s===l&&(h=n),!p&&!h)return;let d=e.sourceCode.getText(t),f=!!(p&&(()=>{let s=e.sourceCode.getTokensBetween(p,t)[0];return("Literal"===p.type||"JSXText"===p.type)&&p.raw.endsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.startsWith(" ")||tP(s?.value)})()),m=!!(h&&(()=>{let s=e.sourceCode.getTokensBetween(t,h)[0];return("Literal"===h.type||"JSXText"===h.type)&&h.raw.startsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.endsWith(" ")||tP(s?.value)})()),g=!!p,x=!!h,y=`${t.loc.start.line},${t.loc.start.column}`;!u[y]&&(u[y]={node:t,source:d,descriptor:"openingElement"in t&&t.openingElement&&"name"in t.openingElement.name?String(t.openingElement.name.name):e.sourceCode.getText(t).replace(/\n/g,"")}),f&&(u[y].leadingSpace=!0),g&&(u[y].leadingNewLine=!0),x&&(u[y].trailingNewLine=!0),m&&(u[y].trailingSpace=!0)})}),Object.keys(u).forEach(t=>{let s=u[t],i=s.node,r=s.descriptor,n=s.source.replace(/(^ +| +$)/g,""),a=s.leadingSpace?"\n{' '}":"",o=s.trailingSpace?"{' '}\n":"",l=s.leadingNewLine?"\n":"",p=s.trailingNewLine?"\n":"",c=`${a}${l}${n}${p}${o}`;e.report({messageId:"moveToNewLine",node:i,data:{descriptor:r},fix:e=>e.replaceText(i,c)})})}return{JSXElement:s,JSXFragment:s}}}),t4={};function t5(){if(C)return S;C=1;let e="[^\\\\/]",t="[^/]",s="(?:\\/|$)",i="(?:^|\\/)",r=`\\.{1,2}${s}`,n=`(?!${i}${r})`,a=`(?!\\.{0,1}${s})`,o=`(?!${r})`,l=`${t}*?`,p={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:s,DOTS_SLASH:r,NO_DOT:"(?!\\.)",NO_DOTS:n,NO_DOT_SLASH:a,NO_DOTS_SLASH:o,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:i,SEP:"/"},c={...p,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};return S={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?c:p}}function t9(){return E||(E=1,!function(e){let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:r}=t5();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>i.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(r,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("undefined"!=typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return"undefined"!=typeof process&&!!process.platform&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(s,e=>"\\"===e?"":e),e.escapeLast=(t,s,i)=>{let r=t.lastIndexOf(s,i);return -1===r?t:"\\"===t[r-1]?e.escapeLast(t,s,r-1):`${t.slice(0,r)}\\${t.slice(r)}`},e.removePrefix=(e,t={})=>{let s=e;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s},e.wrapOutput=(e,t={},s={})=>{let i=s.contains?"":"^",r=s.contains?"":"$",n=`${i}(?:${e})${r}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n},e.basename=(e,{windows:t}={})=>{let s=e.split(t?/[\\/]/:"/"),i=s[s.length-1];return""===i?s[s.length-2]:i}}(t4)),t4}var t8=f(function(){if(N)return P;N=1;let e=function(){if(I)return T;I=1;let e=function(){if(_)return k;_=1;let e=t9(),{CHAR_ASTERISK:t,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:r,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:o,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:u,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:d,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=t5(),g=e=>e===o||e===i,x=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return k=(y,b)=>{let v,S;let C=b||{},E=y.length-1,k=!0===C.parts||!0===C.scanToEnd,_=[],w=[],A=[],T=y,I=-1,P=0,N=0,L=!1,R=!1,O=!1,j=!1,B=!1,V=!1,D=!1,M=!1,F=!1,X=!1,J=0,$={value:"",depth:0,isGlob:!1},U=()=>I>=E,q=()=>T.charCodeAt(I+1),H=()=>(v=S,T.charCodeAt(++I));for(;I<E;){let e;if((S=H())===i){D=$.backslashes=!0,(S=H())===l&&(V=!0);continue}if(!0===V||S===l){for(J++;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,H();continue}if(S===l){J++;continue}if(!0!==V&&S===n&&(S=H())===n||!0!==V&&S===r){if(L=$.isBrace=!0,O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===d&&0==--J){V=!1,L=$.isBrace=!0,X=!0;break}}if(!0===k)continue;break}if(S===o){if(_.push(I),w.push($),$={value:"",depth:0,isGlob:!1},!0===X)continue;if(v===n&&I===P+1){P+=2;continue}N=I+1;continue}if(!0!==C.noext&&!0==(S===u||S===s||S===t||S===h||S===a)&&q()===p){if(O=$.isGlob=!0,j=$.isExtglob=!0,X=!0,S===a&&I===P&&(F=!0),!0===k){for(;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,S=H();continue}if(S===f){O=$.isGlob=!0,X=!0;break}}continue}break}if(S===t){if(v===t&&(B=$.isGlobstar=!0),O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===h){if(O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===c){for(;!0!==U()&&(e=H());){if(e===i){D=$.backslashes=!0,H();continue}if(e===m){R=$.isBracket=!0,O=$.isGlob=!0,X=!0;break}}if(!0===k)continue;break}if(!0!==C.nonegate&&S===a&&I===P){M=$.negated=!0,P++;continue}if(!0!==C.noparen&&S===p){if(O=$.isGlob=!0,!0===k){for(;!0!==U()&&(S=H());){if(S===p){D=$.backslashes=!0,S=H();continue}if(S===f){X=!0;break}}continue}break}if(!0===O){if(X=!0,!0===k)continue;break}}!0===C.noext&&(j=!1,O=!1);let W=T,G="",z="";P>0&&(G=T.slice(0,P),T=T.slice(P),N-=P),W&&!0===O&&N>0?(W=T.slice(0,N),z=T.slice(N)):!0===O?(W="",z=T):W=T,W&&""!==W&&"/"!==W&&W!==T&&g(W.charCodeAt(W.length-1))&&(W=W.slice(0,-1)),!0===C.unescape&&(z&&(z=e.removeBackslashes(z)),W&&!0===D&&(W=e.removeBackslashes(W)));let K={prefix:G,input:y,start:P,base:W,glob:z,isBrace:L,isBracket:R,isGlob:O,isExtglob:j,isGlobstar:B,negated:M,negatedExtglob:F};if(!0===C.tokens&&(K.maxDepth=0,g(S)||w.push($),K.tokens=w),!0===C.parts||!0===C.tokens){let e;for(let t=0;t<_.length;t++){let s=e?e+1:P,i=_[t],r=y.slice(s,i);C.tokens&&(0===t&&0!==P?(w[t].isPrefix=!0,w[t].value=G):w[t].value=r,x(w[t]),K.maxDepth+=w[t].depth),(0!==t||""!==r)&&A.push(r),e=i}if(e&&e+1<y.length){let t=y.slice(e+1);A.push(t),C.tokens&&(w[w.length-1].value=t,x(w[w.length-1]),K.maxDepth+=w[w.length-1].depth)}K.slashes=_,K.parts=A}return K}}(),t=function(){if(A)return w;A=1;let e=t5(),t=t9(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:a}=e,o=(e,s)=>{if("function"==typeof s.expandRange)return s.expandRange(...e,s);e.sort();let i=`[${e.join("-")}]`;try{new RegExp(i)}catch(s){return e.map(e=>t.escapeRegex(e)).join("..")}return i},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,p=(c,u)=>{let h;if("string"!=typeof c)throw TypeError("Expected a string");c=a[c]||c;let d={...u},f="number"==typeof d.maxLength?Math.min(s,d.maxLength):s,m=c.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:d.prepend||""},x=[g],y=d.capture?"":"?:",b=e.globChars(d.windows),v=e.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:C,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:_,NO_DOT:w,NO_DOT_SLASH:A,NO_DOTS_SLASH:T,QMARK:I,QMARK_NO_DOT:P,STAR:N,START_ANCHOR:L}=b,R=e=>`(${y}(?:(?!${L}${e.dot?_:S}).)*?)`,O=d.dot?"":w,j=d.dot?I:P,B=!0===d.bash?R(d):N;d.capture&&(B=`(${B})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);let V={input:c,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};m=(c=t.removePrefix(c,V)).length;let D=[],M=[],F=[],X=g,J=()=>V.index===m-1,$=V.peek=(e=1)=>c[V.index+e],U=V.advance=()=>c[++V.index]||"",q=()=>c.slice(V.index+1),H=(e="",t=0)=>{V.consumed+=e,V.index+=t},W=e=>{V.output+=null!=e.output?e.output:e.value,H(e.value)},G=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)U(),V.start++,e++;return e%2!=0&&(V.negated=!0,V.start++,!0)},z=e=>{V[e]++,F.push(e)},K=e=>{V[e]--,F.pop()},Q=e=>{if("globstar"===X.type){let t=V.braces>0&&("comma"===e.type||"brace"===e.type),s=!0===e.extglob||D.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||s||(V.output=V.output.slice(0,-X.output.length),X.type="star",X.value="*",X.output=B,V.output+=X.output)}if(D.length&&"paren"!==e.type&&(D[D.length-1].inner+=e.value),(e.value||e.output)&&W(e),X&&"text"===X.type&&"text"===e.type){X.output=(X.output||X.value)+e.value,X.value+=e.value;return}e.prev=X,x.push(e),X=e},Y=(e,t)=>{let s={...v[t],conditions:1,inner:""};s.prev=X,s.parens=V.parens,s.output=V.output;let i=(d.capture?"(":"")+s.open;z("parens"),Q({type:e,value:t,output:V.output?"":k}),Q({type:"paren",extglob:!0,value:U(),output:i}),D.push(s)},Z=e=>{let t,s=e.close+(d.capture?")":"");if("negate"===e.type){let i=B;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=R(d)),(i!==B||J()||/^\)+$/.test(q()))&&(s=e.close=`)$))${i}`),e.inner.includes("*")&&(t=q())&&/^\.[^\\/.]+$/.test(t)){let r=p(t,{...u,fastpaths:!1}).output;s=e.close=`)${r})${i})`}"bos"===e.prev.type&&(V.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:h,output:s}),K("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(c)){let e=!1,s=c.replace(n,(t,s,i,r,n,a)=>"\\"===r?(e=!0,t):"?"===r?s?s+r+(n?I.repeat(n.length):""):0===a?j+(n?I.repeat(n.length):""):I.repeat(i.length):"."===r?S.repeat(i.length):"*"===r?s?s+r+(n?B:""):B:s?t:`\\${t}`);return(!0===e&&(s=!0===d.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===c&&!0===d.contains)?V.output=c:V.output=t.wrapOutput(s,V,u),V}for(;!J();){if("\0"===(h=U()))continue;if("\\"===h){let e=$();if("/"===e&&!0!==d.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:h+="\\"});continue}let t=/^\\+/.exec(q()),s=0;if(t&&t[0].length>2&&(s=t[0].length,V.index+=s,s%2!=0&&(h+="\\")),!0===d.unescape?h=U():h+=U(),0===V.brackets){Q({type:"text",value:h});continue}}if(V.brackets>0&&("]"!==h||"["===X.value||"[^"===X.value)){if(!1!==d.posix&&":"===h){let e=X.value.slice(1);if(e.includes("[")&&(X.posix=!0,e.includes(":"))){let e=X.value.lastIndexOf("["),t=X.value.slice(0,e),s=i[X.value.slice(e+2)];if(s){X.value=t+s,V.backtrack=!0,U(),g.output||1!==x.indexOf(X)||(g.output=k);continue}}}("["===h&&":"!==$()||"-"===h&&"]"===$())&&(h=`\\${h}`),"]"===h&&("["===X.value||"[^"===X.value)&&(h=`\\${h}`),!0===d.posix&&"!"===h&&"["===X.value&&(h="^"),X.value+=h,W({value:h});continue}if(1===V.quotes&&'"'!==h){h=t.escapeRegex(h),X.value+=h,W({value:h});continue}if('"'===h){V.quotes=+(1!==V.quotes),!0===d.keepQuotes&&Q({type:"text",value:h});continue}if("("===h){z("parens"),Q({type:"paren",value:h});continue}if(")"===h){if(0===V.parens&&!0===d.strictBrackets)throw SyntaxError(l("opening","("));let e=D[D.length-1];if(e&&V.parens===e.parens+1){Z(D.pop());continue}Q({type:"paren",value:h,output:V.parens?")":"\\)"}),K("parens");continue}if("["===h){if(!0!==d.nobracket&&q().includes("]"))z("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw SyntaxError(l("closing","]"));h=`\\${h}`}Q({type:"bracket",value:h});continue}if("]"===h){if(!0===d.nobracket||X&&"bracket"===X.type&&1===X.value.length){Q({type:"text",value:h,output:`\\${h}`});continue}if(0===V.brackets){if(!0===d.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:h,output:`\\${h}`});continue}K("brackets");let e=X.value.slice(1);if(!0===X.posix||"^"!==e[0]||e.includes("/")||(h=`/${h}`),X.value+=h,W({value:h}),!1===d.literalBrackets||t.hasRegexChars(e))continue;let s=t.escapeRegex(X.value);if(V.output=V.output.slice(0,-X.value.length),!0===d.literalBrackets){V.output+=s,X.value=s;continue}X.value=`(${y}${s}|${X.value})`,V.output+=X.value;continue}if("{"===h&&!0!==d.nobrace){z("braces");let e={type:"brace",value:h,output:"(",outputIndex:V.output.length,tokensIndex:V.tokens.length};M.push(e),Q(e);continue}if("}"===h){let e=M[M.length-1];if(!0===d.nobrace||!e){Q({type:"text",value:h,output:h});continue}let t=")";if(!0===e.dots){let e=x.slice(),s=[];for(let t=e.length-1;t>=0&&(x.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&s.unshift(e[t].value);t=o(s,d),V.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let s=V.output.slice(0,e.outputIndex),i=V.tokens.slice(e.tokensIndex);for(let r of(e.value=e.output="\\{",h=t="\\}",V.output=s,i))V.output+=r.output||r.value}Q({type:"brace",value:h,output:t}),K("braces"),M.pop();continue}if("|"===h){D.length>0&&D[D.length-1].conditions++,Q({type:"text",value:h});continue}if(","===h){let e=h,t=M[M.length-1];t&&"braces"===F[F.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:h,output:e});continue}if("/"===h){if("dot"===X.type&&V.index===V.start+1){V.start=V.index+1,V.consumed="",V.output="",x.pop(),X=g;continue}Q({type:"slash",value:h,output:E});continue}if("."===h){if(V.braces>0&&"dot"===X.type){"."===X.value&&(X.output=S);let e=M[M.length-1];X.type="dots",X.output+=h,X.value+=h,e.dots=!0;continue}if(V.braces+V.parens===0&&"bos"!==X.type&&"slash"!==X.type){Q({type:"text",value:h,output:S});continue}Q({type:"dot",value:h,output:S});continue}if("?"===h){if(!(X&&"("===X.value)&&!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("qmark",h);continue}if(X&&"paren"===X.type){let e=$(),t=h;("("!==X.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(q()))||(t=`\\${h}`),Q({type:"text",value:h,output:t});continue}if(!0!==d.dot&&("slash"===X.type||"bos"===X.type)){Q({type:"qmark",value:h,output:P});continue}Q({type:"qmark",value:h,output:I});continue}if("!"===h){if(!0!==d.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){Y("negate",h);continue}if(!0!==d.nonegate&&0===V.index){G();continue}}if("+"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("plus",h);continue}if(X&&"("===X.value||!1===d.regex){Q({type:"plus",value:h,output:C});continue}if(X&&("bracket"===X.type||"paren"===X.type||"brace"===X.type)||V.parens>0){Q({type:"plus",value:h});continue}Q({type:"plus",value:C});continue}if("@"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Q({type:"at",extglob:!0,value:h,output:""});continue}Q({type:"text",value:h});continue}if("*"!==h){("$"===h||"^"===h)&&(h=`\\${h}`);let e=r.exec(q());e&&(h+=e[0],V.index+=e[0].length),Q({type:"text",value:h});continue}if(X&&("globstar"===X.type||!0===X.star)){X.type="star",X.star=!0,X.value+=h,X.output=B,V.backtrack=!0,V.globstar=!0,H(h);continue}let e=q();if(!0!==d.noextglob&&/^\([^?]/.test(e)){Y("star",h);continue}if("star"===X.type){if(!0===d.noglobstar){H(h);continue}let t=X.prev,s=t.prev,i="slash"===t.type||"bos"===t.type,r=s&&("star"===s.type||"globstar"===s.type);if(!0===d.bash&&(!i||e[0]&&"/"!==e[0])){Q({type:"star",value:h,output:""});continue}let n=V.braces>0&&("comma"===t.type||"brace"===t.type),a=D.length&&("pipe"===t.type||"paren"===t.type);if(!i&&"paren"!==t.type&&!n&&!a){Q({type:"star",value:h,output:""});continue}for(;"/**"===e.slice(0,3);){let t=c[V.index+4];if(t&&"/"!==t)break;e=e.slice(3),H("/**",3)}if("bos"===t.type&&J()){X.type="globstar",X.value+=h,X.output=R(d),V.output=X.output,V.globstar=!0,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!r&&J()){V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=R(d)+(d.strictSlashes?")":"|$)"),X.value+=h,V.globstar=!0,V.output+=t.output+X.output,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let s=void 0!==e[1]?"|$":"";V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=`${R(d)}${E}|${E}${s})`,X.value+=h,V.output+=t.output+X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){X.type="globstar",X.value+=h,X.output=`(?:^|${E}|${R(d)}${E})`,V.output=X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}V.output=V.output.slice(0,-X.output.length),X.type="globstar",X.output=R(d),X.value+=h,V.output+=X.output,V.globstar=!0,H(h);continue}let s={type:"star",value:h,output:B};if(!0===d.bash){s.output=".*?",("bos"===X.type||"slash"===X.type)&&(s.output=O+s.output),Q(s);continue}if(X&&("bracket"===X.type||"paren"===X.type)&&!0===d.regex){s.output=h,Q(s);continue}(V.index===V.start||"slash"===X.type||"dot"===X.type)&&("dot"===X.type?(V.output+=A,X.output+=A):!0===d.dot?(V.output+=T,X.output+=T):(V.output+=O,X.output+=O),"*"!==$()&&(V.output+=k,X.output+=k)),Q(s)}for(;V.brackets>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","]"));V.output=t.escapeLast(V.output,"["),K("brackets")}for(;V.parens>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing",")"));V.output=t.escapeLast(V.output,"("),K("parens")}for(;V.braces>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","}"));V.output=t.escapeLast(V.output,"{"),K("braces")}if(!0!==d.strictSlashes&&("star"===X.type||"bracket"===X.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===V.backtrack)for(let e of(V.output="",V.tokens))V.output+=null!=e.output?e.output:e.value,e.suffix&&(V.output+=e.suffix);return V};return p.fastpaths=(i,r)=>{let n={...r},o="number"==typeof n.maxLength?Math.min(s,n.maxLength):s,l=i.length;if(l>o)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${o}`);i=a[i]||i;let{DOT_LITERAL:p,SLASH_LITERAL:c,ONE_CHAR:u,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:x}=e.globChars(n.windows),y=n.dot?f:d,b=n.dot?m:d,v=n.capture?"":"?:",S=!0===n.bash?".*?":g;n.capture&&(S=`(${S})`);let C=e=>!0===e.noglobstar?S:`(${v}(?:(?!${x}${e.dot?h:p}).)*?)`,E=e=>{switch(e){case"*":return`${y}${u}${S}`;case".*":return`${p}${u}${S}`;case"*.*":return`${y}${S}${p}${u}${S}`;case"*/*":return`${y}${S}${c}${u}${b}${S}`;case"**":return y+C(n);case"**/*":return`(?:${y}${C(n)}${c})?${b}${u}${S}`;case"**/*.*":return`(?:${y}${C(n)}${c})?${b}${S}${p}${u}${S}`;case"**/.*":return`(?:${y}${C(n)}${c})?${p}${u}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let s=E(t[1]);if(!s)return;return s+p+t[2]}}},k=E(t.removePrefix(i,{negated:!1,prefix:""}));return k&&!0!==n.strictSlashes&&(k+=`${c}?`),k},w=p}(),s=t9(),i=t5(),r=e=>e&&"object"==typeof e&&!Array.isArray(e),n=(e,t,s=!1)=>{if(Array.isArray(e)){let i=e.map(e=>n(e,t,s));return e=>{for(let t of i){let s=t(e);if(s)return s}return!1}}let i=r(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!i)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,l=i?n.compileRe(e,t):n.makeRe(e,t,!1,!0),p=l.state;delete l.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=n(a.ignore,e,s)}let u=(s,i=!1)=>{let{isMatch:r,match:u,output:h}=n.test(s,l,t,{glob:e,posix:o}),d={glob:e,state:p,regex:l,posix:o,input:s,output:h,match:u,isMatch:r};return("function"==typeof a.onResult&&a.onResult(d),!1===r)?(d.isMatch=!1,!!i&&d):c(s)?("function"==typeof a.onIgnore&&a.onIgnore(d),d.isMatch=!1,!!i&&d):("function"==typeof a.onMatch&&a.onMatch(d),!i||d)};return s&&(u.state=p),u};return n.test=(e,t,i,{glob:r,posix:a}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let o=i||{},l=o.format||(a?s.toPosixSlashes:null),p=e===r,c=p&&l?l(e):e;return!1===p&&(p=(c=l?l(e):e)===r),(!1===p||!0===o.capture)&&(p=!0===o.matchBase||!0===o.basename?n.matchBase(e,t,i,a):t.exec(c)),{isMatch:!!p,match:p,output:c}},n.matchBase=(e,t,i)=>(t instanceof RegExp?t:n.makeRe(t,i)).test(s.basename(e)),n.isMatch=(e,t,s)=>n(t,s)(e),n.parse=(e,s)=>Array.isArray(e)?e.map(e=>n.parse(e,s)):t(e,{...s,fastpaths:!1}),n.scan=(t,s)=>e(t,s),n.compileRe=(e,t,s=!1,i=!1)=>{if(!0===s)return e.output;let r=t||{},a=r.contains?"":"^",o=r.contains?"":"$",l=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let p=n.toRegex(l,t);return!0===i&&(p.state=e),p},n.makeRe=(e,s={},i=!1,r=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};return!1!==s.fastpaths&&("."===e[0]||"*"===e[0])&&(a.output=t.fastpaths(e,s)),a.output||(a=t(e,s)),n.compileRe(a,s,i,r)},n.toRegex=(e,t)=>{try{let s=t||{};return new RegExp(e,s.flags||(s.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},n.constants=i,T=n}(),t=t9();function s(i,r,n=!1){return r&&(null===r.windows||void 0===r.windows)&&(r={...r,windows:t.isWindows()}),e(i,r,n)}return Object.assign(s,e),P=s}());function t7(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function se(e){let t=e.toUpperCase();return e===t&&t!==e.toLowerCase()}var st=tS({name:"jsx-pascal-case",package:"jsx",meta:{type:"suggestion",docs:{description:"Enforce PascalCase for user-defined JSX components"},messages:{usePascalCase:"Imported JSX component {{name}} must be in PascalCase",usePascalOrSnakeCase:"Imported JSX component {{name}} must be in PascalCase or SCREAMING_SNAKE_CASE"},schema:[{type:"object",properties:{allowAllCaps:{type:"boolean"},allowLeadingUnderscore:{type:"boolean"},allowNamespace:{type:"boolean"},ignore:{items:{type:"string"},type:"array",uniqueItems:!0}},additionalProperties:!1}]},create(e){let{allowAllCaps:t=!1,allowLeadingUnderscore:s=!1,allowNamespace:i=!1,ignore:r=[]}=e.options[0]||{},n=t8(r,{noglobstar:!0});return{JSXOpeningElement(a){if(tT(a))return;let o=tL(a),l=[o],p=0;o.includes(":")?l=o.split(":"):o.includes(".")&&(l=o.split("."));do{let i=l[p];if(1===i.length)return;let o=n(i)||r.includes(i),c=s&&i.startsWith("_")?i.slice(1):i,u=!(!se(c.charAt(0))||Array.prototype.some.call(c.slice(1),e=>e.toLowerCase()===e.toUpperCase()&&!t7(e)))&&Array.prototype.some.call(c.slice(1),e=>(function(e){let t=e.toLowerCase();return e===t&&t!==e.toUpperCase()})(e)||t7(e)),h=t&&function(e){let t=e.charAt(0);if(!(se(t)||t7(t)))return!1;for(let t=1;t<e.length-1;t+=1){let s=e.charAt(t);if(!(se(s)||t7(s)||"_"===s))return!1}let s=e.charAt(e.length-1);return!!(se(s)||t7(s))}(c);if(!u&&!h&&!o){let s=t?"usePascalOrSnakeCase":"usePascalCase";e.report({messageId:s,node:a,data:{name:i}});break}p+=1}while(p<l.length&&!i)}}}}),ss=tS({name:"jsx-props-no-multi-spaces",package:"jsx",meta:{type:"layout",docs:{description:"Disallow multiple spaces between inline JSX props"},fixable:"code",messages:{noLineGap:"Expected no line gap between “{{prop1}}” and “{{prop2}}”",onlyOneSpace:"Expected only one space between “{{prop1}}” and “{{prop2}}”"},schema:[]},create(e){let t=e.sourceCode;function s(e){switch(e.type){case"JSXSpreadAttribute":return t.getText(e.argument);case"JSXIdentifier":return e.name;case"JSXMemberExpression":return`${s(e.object)}.${e.property.name}`;default:return e.name?e.name.name:`${t.getText(e.object)}.${e.property.name}`}}return{JSXOpeningElement(i){i.attributes.reduce((i,r)=>{var n,a;return function(e,s){let i=[].concat(e,t.getCommentsBefore?t.getCommentsBefore(s):[],s);for(let e=1;e<i.length;e+=1){let t=i[e-1];if(i[e].loc.start.line-t.loc.end.line>=2)return!0}return!1}(n=i,a=r)&&e.report({messageId:"noLineGap",node:a,data:{prop1:s(n),prop2:s(a)}}),n.loc.end.line===a.loc.end.line&&" "!==t.text.slice(n.range[1],a.range[0])&&e.report({node:a,messageId:"onlyOneSpace",data:{prop1:s(n),prop2:s(a)},fix:e=>e.replaceTextRange([n.range[1],a.range[0]]," ")}),r},function(e){let t=e.name;if(void 0!==e.typeArguments&&e.typeArguments?.type==="TSTypeParameterInstantiation"){let s=e.typeArguments;return Object.assign({},e,{range:[t.range[0],s?.range[1]]})}return t}(i))}}}});let si={component:!0,html:!0};var sr=tS({name:"jsx-self-closing-comp",package:"jsx",meta:{type:"layout",docs:{description:"Disallow extra closing tags for components without children"},fixable:"code",messages:{notSelfClosing:"Empty components are self-closing"},schema:[{type:"object",properties:{component:{default:si.component,type:"boolean"},html:{default:si.html,type:"boolean"}},additionalProperties:!1}]},create:e=>({JSXOpeningElement(t){(function(t){var s;let i=Object.assign({},si,e.options[0]);return(i.component&&(s=t).name&&("JSXIdentifier"===s.name.type||"JSXMemberExpression"===s.name.type)&&!tT(s)||i.html&&tT(t))&&!t.selfClosing&&(0===t.parent.children.length||function(e){let t=e.parent.children;return 1===t.length&&"JSXText"===t[0].type&&t[0].value.includes("\n")&&""===t[0].value.replace(/(?!\xA0)\s/g,"")}(t))})(t)&&e.report({messageId:"notSelfClosing",node:t,fix(e){let s=t.range[1]-1,i=t.parent.closingElement?.range[1]??NaN;return e.replaceTextRange([s,i]," />")}})}})});function sn(e){return/^on[A-Z]/.test(e)}function sa(e){return e.loc.start.line!==e.loc.end.line}let so=["children","dangerouslySetInnerHTML","key","ref"];function sl(e,t){return t.includes(e)}function sp(t){let s=e.get(t);return!!s&&!!s.hasComment}let sc=new WeakMap;function su(t,s,i,r,n){let a=sc.get(t)||[];a.includes(s)||(a.push(s),sc.set(t,a),r.report({node:t.name??"",messageId:s,fix:function(t,s,i){let r=s.sourceCode,n=t.attributes.slice(0),a=s.options[0]||{},o=a.ignoreCase||!1,l=a.callbacksLast||!1,p=a.shorthandFirst||!1,c=a.shorthandLast||!1,u=a.multiline||"ignore",h=a.noSortAlphabetically||!1,d={ignoreCase:o,callbacksLast:l,shorthandFirst:p,shorthandLast:c,multiline:u,noSortAlphabetically:h,reservedFirst:a.reservedFirst||!1,reservedList:i,locale:a.locale||"auto"},f=function(t,s){let i=s.sourceCode,r=[],n=0;function a(e){r[n-1].push(e)}for(let s=0;s<t.length;s++){let o=t[s],l=t[s+1],p=o.loc.start.line,c=[];try{c=i.getCommentsAfter(o)}catch{}let u=t[s-1],h="JSXSpreadAttribute"===o.type;if(u&&("JSXSpreadAttribute"!==u.type||h)||(r[(n+=1)-1]=[]),!h){if(0===c.length)e.set(o,{end:o.range[1],hasComment:!1}),a(o);else{let t=c[0],r=t.loc.start.line;if(1===c.length)p+1===r&&l?(e.set(o,{end:l.range[1],hasComment:!0}),a(o),s+=1):p===r&&("Block"===t.type&&l?(e.set(o,{end:l.range[1],hasComment:!0}),s+=1):"Block"===t.type?e.set(o,{end:t.range[1],hasComment:!0}):e.set(o,{end:t.range[1],hasComment:!1}),a(o));else if(c.length>1&&p+1===c[1].loc.start.line&&l){let t=i.getCommentsAfter(l);e.set(o,{end:l.range[1],hasComment:!0}),1===t.length&&l.loc.start.line===t[0].loc.start.line&&e.set(o,{end:t[0].range[1],hasComment:!0}),a(o),s+=1}}}}return r}(n,s),m=f.slice(0).map(e=>[...e].sort((e,t)=>(function(e,t,s){let i=tN(e),r=tN(t),n=sp(e),a=sp(t);if(n&&!a)return 1;if(!n&&a)return -1;if(s.reservedFirst){let e=sl(i,s.reservedList),t=sl(r,s.reservedList);if(e&&!t)return -1;if(!e&&t)return 1}if(s.callbacksLast){let e=sn(i),t=sn(r);if(e&&!t)return 1;if(!e&&t)return -1}if(s.shorthandFirst||s.shorthandLast){let i=s.shorthandFirst?-1:1;if(!e.value&&t.value)return i;if(e.value&&!t.value)return-i}if("ignore"!==s.multiline){let i="first"===s.multiline?-1:1,r=sa(e),n=sa(t);if(r&&!n)return i;if(!r&&n)return-i}if(s.noSortAlphabetically)return 0;let o="auto"===s.locale?void 0:s.locale;return s.ignoreCase?(i=i.toLowerCase(),r=r.toLowerCase(),i.localeCompare(r,o)):i===r?0:"auto"===s.locale?i<r?-1:1:i.localeCompare(r,o)})(e,t,d)));return function(t){let s=[],i=r.getText();f.forEach((t,r)=>{t.forEach((t,n)=>{let a=m[r][n],o=i.slice(a.range[0],e.get(a).end);s.push({range:[t.range[0],e.get(t).end],text:o})})}),s.sort((e,t)=>t.range[0]-e.range[0]);let n=s[0],a=s[s.length-1],o=a?a.range[0]:0,l=n?n.range[1]:-0;return s.forEach(e=>{i=`${i.slice(0,e.range[0])}${e.text}${i.slice(e.range[1])}`}),t.replaceTextRange([o,l],i.slice(o,l))}}(i,r,n)}))}var sh=tS({name:"jsx-sort-props",package:"jsx",meta:{type:"layout",docs:{description:"Enforce props alphabetical sorting"},fixable:"code",messages:{noUnreservedProps:"A customized reserved first list must only contain a subset of React reserved props. Remove: {{unreservedWords}}",listIsEmpty:"A customized reserved first list must not be empty",listReservedPropsFirst:"Reserved props must be listed before all other props",listCallbacksLast:"Callbacks must be listed after all other props",listShorthandFirst:"Shorthand props must be listed before all other props",listShorthandLast:"Shorthand props must be listed after all other props",listMultilineFirst:"Multiline props must be listed before all other props",listMultilineLast:"Multiline props must be listed after all other props",sortPropsByAlpha:"Props should be sorted alphabetically"},schema:[{type:"object",properties:{callbacksLast:{type:"boolean"},shorthandFirst:{type:"boolean"},shorthandLast:{type:"boolean"},multiline:{type:"string",enum:["ignore","first","last"],default:"ignore"},ignoreCase:{type:"boolean"},noSortAlphabetically:{type:"boolean"},reservedFirst:{type:["array","boolean"]},locale:{type:"string",default:"auto"}},additionalProperties:!1}]},create(t){let s=t.options[0]||{},i=s.ignoreCase||!1,r=s.callbacksLast||!1,n=s.shorthandFirst||!1,a=s.shorthandLast||!1,o=s.multiline||"ignore",l=s.noSortAlphabetically||!1,p=s.reservedFirst||!1,c=function(e,t){if(t&&Array.isArray(t)){let s=t.filter(e=>!sl(e,so));if(0===t.length)return function(t){e.report({node:t,messageId:"listIsEmpty"})};if(s.length>0)return function(t){e.report({node:t,messageId:"noUnreservedProps",data:{unreservedWords:s.toString()}})}}}(t,p),u=Array.isArray(p)?p:so,h=s.locale||"auto";return{Program(){e=new WeakMap},JSXOpeningElement(e){let s=p&&!tT(e)?u.filter(e=>"dangerouslySetInnerHTML"!==e):u;e.attributes.reduce((u,d,f,m)=>{if("JSXSpreadAttribute"===d.type)return m[f+1];let g=tN(u),x=tN(d),y=u.value,b=d.value,v=sn(g),S=sn(x);if(i&&(g=g.toLowerCase(),x=x.toLowerCase()),p){if(c)return c(d),u;let i=sl(g,s),r=sl(x,s);if(i&&!r)return d;if(!i&&r)return su(d,"listReservedPropsFirst",e,t,s),u}if(r){if(!v&&S)return d;if(v&&!S)return su(u,"listCallbacksLast",e,t,s),u}if(n){if(b&&!y)return d;if(!b&&y)return su(d,"listShorthandFirst",e,t,s),u}if(a){if(!b&&y)return d;if(b&&!y)return su(u,"listShorthandLast",e,t,s),u}let C=sa(u),E=sa(d);if("first"===o){if(C&&!E)return d;if(!C&&E)return su(d,"listMultilineFirst",e,t,s),u}else if("last"===o){if(!C&&E)return d;if(C&&!E)return su(u,"listMultilineLast",e,t,s),u}return!l&&(i||"auto"!==h?g.localeCompare(x,"auto"===h?void 0:h)>0:g>x)?(su(d,"sortPropsByAlpha",e,t,s),u):d},e.attributes[0])}}}});function sd(e,t,s){let i;let r=e.sourceCode;if("selfClosing"in t&&t.selfClosing){let n=r.getLastTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"selfCloseSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"selfCloseSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}else{let n=r.getFirstTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"closeSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"closeSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}}function sf(e,t,s){let i=e.sourceCode,r=i.getTokenBefore(t.name);if("allow-multiline"===s&&r.loc.start.line!==t.name.loc.start.line)return;let n=!i.isSpaceBetween(r,t.name);"never"===s||"allow-multiline"===s?n||e.report({node:t,messageId:"afterOpenNoSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.removeRange([r.range[1],t.name.range[0]])}):"always"===s&&n&&e.report({node:t,messageId:"afterOpenNeedSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.insertTextBefore(t.name," ")})}function sm(e,t,s){if(!("selfClosing"in t&&t.selfClosing)){let i=e.sourceCode,r="proportional-always"===s?t_(t):i.getLastTokens(t,2)[0],n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line){e.report({node:t,messageId:"beforeCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});return}if(r.loc.start.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);"never"!==s||a?"always"===s&&a?e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"beforeCloseNeedSpace",fix:e=>e.insertTextBefore(n," ")}):"proportional-always"===s&&"JSXOpeningElement"===t.type&&a!==(t.loc.start.line===t.loc.end.line)&&e.report({node:t,messageId:"beforeCloseNeedSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.insertTextBefore(n," ")}):e.report({node:t,messageId:"beforeCloseNoSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.removeRange([r.range[1],n.range[0]])})}}let sg={closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"allow"};var sx=tS({name:"jsx-tag-spacing",package:"jsx",meta:{type:"layout",docs:{description:"Enforce whitespace in and around the JSX opening and closing brackets"},fixable:"whitespace",messages:{selfCloseSlashNoSpace:"Whitespace is forbidden between `/` and `>`; write `/>`",selfCloseSlashNeedSpace:"Whitespace is required between `/` and `>`; write `/ >`",closeSlashNoSpace:"Whitespace is forbidden between `<` and `/`; write `</`",closeSlashNeedSpace:"Whitespace is required between `<` and `/`; write `< /`",beforeSelfCloseNoSpace:"A space is forbidden before closing bracket",beforeSelfCloseNeedSpace:"A space is required before closing bracket",beforeSelfCloseNeedNewline:"A newline is required before closing bracket",afterOpenNoSpace:"A space is forbidden after opening bracket",afterOpenNeedSpace:"A space is required after opening bracket",beforeCloseNoSpace:"A space is forbidden before closing bracket",beforeCloseNeedSpace:"Whitespace is required before closing bracket",beforeCloseNeedNewline:"A newline is required before closing bracket"},schema:[{type:"object",properties:{closingSlash:{type:"string",enum:["always","never","allow"]},beforeSelfClosing:{type:"string",enum:["always","proportional-always","never","allow"]},afterOpening:{type:"string",enum:["always","allow-multiline","never","allow"]},beforeClosing:{type:"string",enum:["always","proportional-always","never","allow"]}},default:sg,additionalProperties:!1}]},create(e){let t=Object.assign({},sg,e.options[0]);return{JSXOpeningElement(s){"allow"!==t.closingSlash&&s.selfClosing&&sd(e,s,t.closingSlash),"allow"!==t.afterOpening&&sf(e,s,t.afterOpening),"allow"!==t.beforeSelfClosing&&s.selfClosing&&function(e,t,s){let i=e.sourceCode,r=t_(t),n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line){e.report({node:t,messageId:"beforeSelfCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});return}if(r.loc.end.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);("always"===s||"proportional-always"===s)&&a?e.report({node:t,messageId:"beforeSelfCloseNeedSpace",loc:n.loc.start,fix:e=>e.insertTextBefore(n," ")}):"never"!==s||a||e.report({node:t,messageId:"beforeSelfCloseNoSpace",loc:n.loc.start,fix(e){let t=i.getTokenBefore(n);return e.removeRange([t.range[1],n.range[0]])}})}(e,s,t.beforeSelfClosing),"allow"!==t.beforeClosing&&sm(e,s,t.beforeClosing)},JSXClosingElement(s){"allow"!==t.afterOpening&&sf(e,s,t.afterOpening),"allow"!==t.closingSlash&&sd(e,s,t.closingSlash),"allow"!==t.beforeClosing&&sm(e,s,t.beforeClosing)}}}});let sy={declaration:"parens",assignment:"parens",return:"parens",arrow:"parens",condition:"ignore",logical:"ignore",prop:"ignore",propertyValue:"ignore"};var sb={rules:{"jsx-child-element-spacing":tO,"jsx-closing-bracket-location":tj,"jsx-closing-tag-location":tD,"jsx-curly-brace-presence":tU,"jsx-curly-newline":tq,"jsx-curly-spacing":tG,"jsx-equals-spacing":tz,"jsx-first-prop-new-line":tK,"jsx-function-call-newline":tQ,"jsx-indent":tZ,"jsx-indent-props":tY,"jsx-max-props-per-line":t1,"jsx-newline":t2,"jsx-one-expression-per-line":t6,"jsx-pascal-case":st,"jsx-props-no-multi-spaces":ss,"jsx-self-closing-comp":sr,"jsx-sort-props":sh,"jsx-tag-spacing":sx,"jsx-wrap-multilines":tS({name:"jsx-wrap-multilines",package:"jsx",meta:{type:"layout",docs:{description:"Disallow missing parentheses around multiline JSX"},fixable:"code",messages:{missingParens:"Missing parentheses around multilines JSX",parensOnNewLines:"Parentheses around JSX should be on separate lines"},schema:[{type:"object",properties:{declaration:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},assignment:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},return:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},arrow:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},condition:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},logical:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},prop:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},propertyValue:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]}},additionalProperties:!1}]},create(e){function t(t){let s=e.options[0]||{};return t in s?s[t]:sy[t]}function s(e){let s=t(e);return s&&"ignore"!==s}function i(e){return e.loc.start.line!==e.loc.end.line}function r(s,r){if(!s||!tI(s))return;let n=e.sourceCode,a=t(r);if((!0===a||"parens"===a)&&!tw(s,e.sourceCode)&&i(s)&&e.report({node:s,messageId:"missingParens",fix:e=>e.replaceText(s,`(${n.getText(s)})`)}),"parens-new-line"===a&&i(s)){if(tw(s,e.sourceCode)){let t=function(t){let s=e.sourceCode.getTokenBefore(t);return!!tw(t,e.sourceCode)&&s.loc.end.line===t.loc.start.line}(s),i=function(t){let s=e.sourceCode.getTokenAfter(t);return!!tw(t,e.sourceCode)&&t.loc.end.line===s.loc.end.line}(s);(t||i)&&e.report({node:s,messageId:"parensOnNewLines",fix:e=>{let r=n.getText(s);return t&&(r=`
|
|
8
|
+
${r}`),i&&(r=`${r}
|
|
9
|
+
`),e.replaceText(s,r)}})}else{let t=n.getTokenBefore(s),i=n.getTokenAfter(s),r=s.loc.start;if(t.loc.end.line<r.line){let a=n.getText().slice(t.range[1],s.range[0]).trim(),o=/^\t/.test(n.lines[r.line-1]),l=o?" ":" ",p=l.repeat(r.column),c=l.repeat(Math.max(0,r.column-(o?1:2)));e.report({node:s,messageId:"missingParens",fix:e=>e.replaceTextRange([t.range[0],i&&(";"===i.value||"}"===i.value)?i.range[0]:s.range[1]],`${function(e){let t="{"===e.value||"["===e.value;return`${e.value.trim()}${t?"":" "}`}(t)}(
|
|
10
|
+
${p}${a}${a.length>0?`
|
|
11
|
+
${p}`:""}${n.getText(s)}
|
|
12
|
+
${c})`)})}else e.report({node:s,messageId:"missingParens",fix:e=>e.replaceText(s,`(
|
|
13
|
+
${n.getText(s)}
|
|
14
|
+
)`)})}}}return{VariableDeclarator(e){let t="declaration";if(s(t)){if(!s("condition")&&e.init&&"ConditionalExpression"===e.init.type){r(e.init.consequent,t),r(e.init.alternate,t);return}r(e.init,t)}},AssignmentExpression(e){let t="assignment";if(s(t)){if(!s("condition")&&"ConditionalExpression"===e.right.type){r(e.right.consequent,t),r(e.right.alternate,t);return}r(e.right,t)}},ReturnStatement(e){let t="return";s(t)&&r(e.argument,t)},"ArrowFunctionExpression:exit":e=>{let t=e.body,i="arrow";s(i)&&"BlockStatement"!==t.type&&r(t,i)},ConditionalExpression(e){let t="condition";s(t)&&(r(e.consequent,t),r(e.alternate,t))},LogicalExpression(e){let t="logical";s(t)&&r(e.right,t)},JSXAttribute(e){let t="prop";s(t)&&e.value&&"JSXExpressionContainer"===e.value.type&&r(e.value.expression,t)},ObjectExpression(e){let t="propertyValue";s(t)&&e.properties.forEach(e=>{"Property"===e.type&&"JSXElement"===e.value.type&&r(e.value,t)})}}}})}};let sv=function(e,t,s){let i=Object.fromEntries(Object.entries(e.rules).filter(([e,t])=>t.meta.fixable&&!t.meta.deprecated&&e===t.meta.docs.url.split("/").pop()&&!0).map(([e])=>[`${t}/${e}`,2]));return{plugins:{[t]:e},rules:i}}(sb,"@stylistic/jsx");var sS=Object.assign(sb,{configs:{"disable-legacy":{rules:{"react/jsx-child-element-spacing":0,"react/jsx-closing-bracket-location":0,"react/jsx-closing-tag-location":0,"react/jsx-curly-brace-presence":0,"react/jsx-curly-newline":0,"react/jsx-curly-spacing":0,"react/jsx-equals-spacing":0,"react/jsx-first-prop-new-line":0,"react/jsx-function-call-newline":0,"react/jsx-indent":0,"react/jsx-indent-props":0,"react/jsx-max-props-per-line":0,"react/jsx-newline":0,"react/jsx-one-expression-per-line":0,"react/jsx-pascal-case":0,"react/jsx-props-no-multi-spaces":0,"react/jsx-self-closing-comp":0,"react/jsx-sort-props":0,"react/jsx-tag-spacing":0,"react/jsx-wrap-multilines":0}},all:sv,"all-flat":sv}});let sC=s(p,"@eslint-react/eslint-plugin"),sE=s(u(c),"eslint-plugin-ssr-friendly");function sk({reactCompiler:e="error",additionalHooks:r="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample)",nextjs:p=!1,remix:c=!1,reactRefresh:u={},additionalHooksWithType:h={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:d=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:f=!1}=u;return[{name:"@eslint-sukka/react base",files:[t.GLOB_TS,t.GLOB_TSX,t.GLOB_JSX],plugins:{"jsx-a11y-minimal":s(n,"@eslint-sukka/eslint-plugin-react-jsx-a11y#eslint_plugin_jsx_a11y_minimal"),"react-hooks":s(a,"eslint-plugin-react-hooks"),"@stylistic/jsx":s(sS,"@stylistic/eslint-plugin-jsx"),"react-prefer-function-component":s(j,"eslint-plugin-react-prefer-function-component"),"react-compiler":s(o,"eslint-plugin-react-compiler"),...sC.configs.recommended.plugins,"ssr-friendly":sE,"react-refresh":l},settings:{"react-x":{version:"detect",additionalHooks:h,additionalComponents:d}},languageOptions:{globals:i.browser},rules:{...a.configs.recommended.rules,"react-compiler/react-compiler":e,"react-hooks/exhaustive-deps":["error",{additionalHooks:r}],"@stylistic/jsx/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...sC.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/no-comment-textnodes":"error","@eslint-react/dom/no-unsafe-target-blank":"error","@eslint-react/no-children-prop":"error","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/no-unused-state":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/dom/no-script-url":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/naming-convention/component-name":["error",{rule:"PascalCase"}],"@eslint-react/naming-convention/filename":["error",{rule:"kebab-case"}],"@eslint-react/naming-convention/filename-extension":["error",{allow:"as-needed"}],"@eslint-react/naming-convention/use-state":"error","react-prefer-function-component/react-prefer-function-component":"error","@stylistic/jsx/jsx-self-closing-comp":"error","@eslint-react/prefer-shorthand-boolean":"error","@stylistic/jsx/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx/jsx-indent-props":["error",2],"@stylistic/jsx/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx/jsx-equals-spacing":["error","never"],"@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-child-element-spacing":"error","@stylistic/jsx/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-children-in-void-dom-elements":"error","@stylistic/jsx/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@stylistic/jsx/jsx-props-no-multi-spaces":"error","@eslint-react/prefer-shorthand-fragment":"error","@stylistic/jsx/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"@eslint-react/no-missing-key":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-implicit-key":"error","@eslint-react/no-useless-fragment":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-nested-components":"error","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/dom/no-missing-button-type":"error","@eslint-react/dom/no-namespace":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"],ignoreClassesThatImplementAnInterface:"public-fields"}],"jsx-a11y-minimal/alt-text":["warn",{elements:["img"],img:["Image"]}],"jsx-a11y-minimal/aria-props":"warn","jsx-a11y-minimal/aria-proptypes":"warn","jsx-a11y-minimal/aria-role":"warn","jsx-a11y-minimal/aria-unsupported-elements":"warn","jsx-a11y-minimal/iframe-has-title":"warn","jsx-a11y-minimal/no-access-key":"warn","jsx-a11y-minimal/role-has-required-aria-props":"warn","jsx-a11y-minimal/role-supports-aria-props":"warn","jsx-a11y-minimal/tabindex-no-positive":"warn","react-refresh/only-export-components":["warn",{allowConstantExport:f,allowExportNames:[...p?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...c?["meta","links","headers","loader","action"]:[]]}]}},{files:["**/app/**/_*.?([cm])[jt]s?(x)",String.raw`**/app/**/\[*.?([cm])[jt]s?(x)`],rules:{"@eslint-react/naming-convention/filename":"off"}}]}function s_({opt:e={}}={}){return[{plugins:{"@stylexjs":h},files:[t.GLOB_TS,t.GLOB_TSX,t.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}export{d as next,sk as react,s_ as stylex};
|