@next-bricks/ai-portal 0.65.2 → 0.65.4
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/bricks.json +48 -49
- package/dist/chunks/1999.f9846bc3.js +2 -0
- package/dist/chunks/1999.f9846bc3.js.map +1 -0
- package/dist/chunks/{2742.f24782f8.js → 2742.64fa013f.js} +2 -2
- package/dist/chunks/{2742.f24782f8.js.map → 2742.64fa013f.js.map} +1 -1
- package/dist/chunks/3186.f231329a.js +2 -0
- package/dist/chunks/3186.f231329a.js.map +1 -0
- package/dist/chunks/4208.a1a0dfdd.js +2 -0
- package/dist/chunks/4208.a1a0dfdd.js.map +1 -0
- package/dist/chunks/4864.a9badd21.js +2 -0
- package/dist/chunks/4864.a9badd21.js.map +1 -0
- package/dist/chunks/5452.bb5140b0.js +2 -0
- package/dist/chunks/5452.bb5140b0.js.map +1 -0
- package/dist/chunks/{6450.ade6ef3e.js → 6450.9e9165f9.js} +2 -2
- package/dist/chunks/{6450.ade6ef3e.js.map → 6450.9e9165f9.js.map} +1 -1
- package/dist/chunks/{9515.468a8527.js → 9515.b58eb80e.js} +2 -2
- package/dist/chunks/9515.b58eb80e.js.map +1 -0
- package/dist/chunks/{9525.9e5140be.js → 9525.a53ee2a7.js} +3 -3
- package/dist/chunks/{9525.9e5140be.js.map → 9525.a53ee2a7.js.map} +1 -1
- package/dist/chunks/chat-panel.3b7afbd5.js +2 -0
- package/dist/chunks/chat-panel.3b7afbd5.js.map +1 -0
- package/dist/chunks/{chat-stream.90aa7647.js → chat-stream.393c8241.js} +2 -2
- package/dist/chunks/{chat-stream.90aa7647.js.map → chat-stream.393c8241.js.map} +1 -1
- package/dist/chunks/{main.51248f49.js → main.ccf4635e.js} +2 -2
- package/dist/chunks/{main.51248f49.js.map → main.ccf4635e.js.map} +1 -1
- package/dist/chunks/running-flow.37a428cf.js +3 -0
- package/dist/chunks/running-flow.37a428cf.js.map +1 -0
- package/dist/examples.json +18 -18
- package/dist/{index.16143768.js → index.b10ed910.js} +2 -2
- package/dist/{index.16143768.js.map → index.b10ed910.js.map} +1 -1
- package/dist/manifest.json +239 -243
- package/dist/types.json +1406 -1431
- package/dist-types/chat-stream/Aside/TaskApp/TaskApp.d.ts +6 -0
- package/dist-types/chat-stream/StreamContext.d.ts +1 -0
- package/dist-types/chat-stream/interfaces.d.ts +6 -1
- package/dist-types/chat-stream/useConversationStream.d.ts +10 -2
- package/dist-types/running-flow/index.d.ts +2 -4
- package/dist-types/shared/ActivityPlan/PlanStateIcon.d.ts +7 -0
- package/dist-types/shared/ActivityPlan/i18n.d.ts +2 -1
- package/dist-types/shared/AskUser/AskUser.d.ts +8 -0
- package/dist-types/shared/AskUser/i18n.d.ts +15 -0
- package/dist-types/shared/AskUserTag/AskUserTag.d.ts +7 -0
- package/dist-types/shared/ChatBox/ChatBox.d.ts +3 -1
- package/dist-types/shared/TaskContext.d.ts +2 -0
- package/dist-types/shared/bricks.d.ts +0 -2
- package/dist-types/shared/getFlatChunks.d.ts +19 -2
- package/dist-types/shared/interfaces.d.ts +7 -2
- package/dist-types/shared/useFulfilledActiveDetail.d.ts +2 -2
- package/package.json +2 -2
- package/dist/chunks/3186.5c0ff6ad.js +0 -2
- package/dist/chunks/3186.5c0ff6ad.js.map +0 -1
- package/dist/chunks/4208.7ad3b395.js +0 -2
- package/dist/chunks/4208.7ad3b395.js.map +0 -1
- package/dist/chunks/5452.a5594a29.js +0 -2
- package/dist/chunks/5452.a5594a29.js.map +0 -1
- package/dist/chunks/7139.b585e5ea.js +0 -2
- package/dist/chunks/7139.b585e5ea.js.map +0 -1
- package/dist/chunks/7159.bd59ed3e.js +0 -2
- package/dist/chunks/7159.bd59ed3e.js.map +0 -1
- package/dist/chunks/9515.468a8527.js.map +0 -1
- package/dist/chunks/chat-panel.bbb24c5a.js +0 -2
- package/dist/chunks/chat-panel.bbb24c5a.js.map +0 -1
- package/dist/chunks/running-flow.4b117f11.js +0 -3
- package/dist/chunks/running-flow.4b117f11.js.map +0 -1
- package/dist-types/shared/ActivityPlan/getStateIcon.d.ts +0 -6
- /package/dist/chunks/{9525.9e5140be.js.LICENSE.txt → 9525.a53ee2a7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{running-flow.4b117f11.js.LICENSE.txt → running-flow.37a428cf.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! For license information please see 9525.
|
|
1
|
+
/*! For license information please see 9525.a53ee2a7.js.LICENSE.txt */
|
|
2
2
|
(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[9525],{2235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.generate=o;var r=n(9305),i=n(82475);function s(e,t,n){if(t.experimental_preserveFormat){if("string"!=typeof e)throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(n.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}const r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};var i;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=null!=(i=t.recordAndTupleSyntaxType)?i:"hash",r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(e=>r.comments||e.includes("@license")||e.includes("@preserve")),"auto"===r.compact&&(r.compact="string"==typeof e&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(r.compact||r.preserveFormat)&&(r.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:s,auxiliaryCommentAfter:o,shouldPrintComment:a}=r;return s&&!a(s)&&(r.auxiliaryCommentBefore=void 0),o&&!a(o)&&(r.auxiliaryCommentAfter=void 0),r}function o(e,t={},n){const o=s(n,t,e),a=t.sourceMaps?new r.default(t,n):null;return new i.default(o,a,e.tokens,"string"==typeof n?n:null).generate(e)}t.CodeGenerator=class{constructor(e,t={},n){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=e,this._format=s(n,t,e),this._map=t.sourceMaps?new r.default(t,n):null}generate(){return new i.default(this._format,this._map).generate(this._ast)}},t.default=o},4131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const{placeholderWhitelist:r,placeholderPattern:o,preserveComments:a,syntacticPlaceholders:l}=n,c=function(e,t,n){const r=(t.plugins||[]).slice();!1!==n&&r.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:r});try{return(0,i.parse)(e,t)}catch(t){const n=t.loc;throw n&&(t.message+="\n"+(0,s.codeFrameColumns)(e,{start:n}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,n.parser,l);m(c,{preserveComments:a}),e.validate(c);const u={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:r,placeholderPattern:o,syntacticPlaceholders:l};return g(c,v,u),Object.assign({ast:c},u.syntactic.placeholders.length?u.syntactic:u.legacy)};var r=n(58135),i=n(40580),s=n(56611);const{isCallExpression:o,isExpressionStatement:a,isFunction:l,isIdentifier:c,isJSXIdentifier:u,isNewExpression:p,isPlaceholder:f,isStatement:h,isStringLiteral:d,removePropertiesDeep:m,traverse:g}=r,y=/^[_$A-Z0-9]+$/;function v(e,t,n){var r;let i,s=n.syntactic.placeholders.length>0;if(f(e)){if(!1===n.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,s=!0}else{if(s||n.syntacticPlaceholders)return;if(c(e)||u(e))i=e.name;else{if(!d(e))return;i=e.value}}if(s&&(null!=n.placeholderPattern||null!=n.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!(s||!1!==n.placeholderPattern&&(n.placeholderPattern||y).test(i)||null!=(r=n.placeholderWhitelist)&&r.has(i)))return;t=t.slice();const{node:m,key:g}=t[t.length-1];let v;d(e)||f(e,{expectedNode:"StringLiteral"})?v="string":p(m)&&"arguments"===g||o(m)&&"arguments"===g||l(m)&&"params"===g?v="param":a(m)&&!f(e)?(v="statement",t=t.slice(0,-1)):v=h(e)&&f(e)?"statement":"other";const{placeholders:b,placeholderNames:x}=s?n.syntactic:n.legacy;b.push({name:i,type:v,resolve:e=>function(e,t){let n=e;for(let e=0;e<t.length-1;e++){const{key:r,index:i}=t[e];n=void 0===i?n[r]:n[r][i]}const{key:r,index:i}=t[t.length-1];return{parent:n,key:r,index:i}}(e,t),isDuplicate:x.has(i)}),x.add(i)}},6385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator),this.space(),this.print(e.right)},t.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||c(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},t.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},t.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},t.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},t.Decorator=function(e){this.tokenChar(64),this.print(e.expression),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.tokenContext|=i.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object),!e.computed&&a(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(o(e.property)&&"number"==typeof e.property.value&&(t=!0),t){const t=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),t()}else this.tokenChar(46),this.print(e.property)},t.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!s(t,{callee:e})&&!a(t)&&!l(t))return;if(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);const n=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),n(),this.rightParens(e)},t.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:n,property:r}=e;if(this.print(e.object),!t&&a(r))throw new TypeError("Got a MemberExpression for MemberExpression property");o(r)&&"number"==typeof r.value&&(t=!0),n&&this.token("?."),t?(this.tokenChar(91),this.print(r),this.tokenChar(93)):(n||this.tokenChar(46),this.print(r))},t.ParenthesizedExpression=function(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},t.SequenceExpression=function(e){this.printList(e.expressions)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){const{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var r=n(58135),i=n(21956);const{isCallExpression:s,isLiteral:o,isMemberExpression:a,isNewExpression:l,isPattern:c}=r},7946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._assertUnremoved=m,t._callRemovalHooks=f,t._markRemoved=d,t._remove=h,t._removeFromScope=p,t.remove=function(){var e;m.call(this),c.resync.call(this),f.call(this)||(null!=(e=this.opts)&&e.noScope||p.call(this),this.shareCommentsWithSiblings(),h.call(this)),d.call(this)};var r=n(16643),i=n(56266),s=n(94834),o=n(32670),a=n(58135),l=n(11064),c=n(44537);const{getBindingIdentifiers:u}=a;function p(){const e=u(this.node,!1,!1,!0);Object.keys(e).forEach((e=>this.scope.removeBinding(e)))}function f(){if(this.parentPath)for(const e of r.hooks)if(e(this,this.parentPath))return!0}function h(){Array.isArray(this.container)?(this.container.splice(this.key,1),l.updateSiblingKeys.call(this,this.key,-1)):s._replaceWith.call(this,null)}function d(){var e;this._traverseFlags|=o.SHOULD_SKIP|o.REMOVED,this.parent&&(null==(e=(0,i.getCachedPaths)(this))||e.delete(this.node)),this.node=null}function m(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}},9305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(75267),i=n(41969);t.default=class{constructor(e,t){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const s=this._map=new r.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(n=e.sourceFileName)?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new i.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var o;(0,r.setSourceContent)(s,t[e],null==(o=this._inputMap.sourcesContent)?void 0:o[e])}}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(const e of Object.keys(t))(0,r.setSourceContent)(s,e.replace(/\\/g,"/"),t[e])}else(0,r.setSourceContent)(s,this._sourceFileName,t)}get(){return(0,r.toEncodedMap)(this._map)}getDecoded(){return(0,r.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,r.allMappings)(this._map))}mark(e,t,n,s,o,a){var l;let c;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(c=(0,i.originalPositionFor)(this._inputMap,{line:t,column:n}),!c.name&&o){const e=(0,i.originalPositionFor)(this._inputMap,o);e.name&&(s=e.name)}}else c={source:(null==a?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:n};(0,r.maybeAddMapping)(this._map,{name:s,generated:e,source:null==(l=c)?void 0:l.source,original:c})}}},9783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}}},10215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=new WeakMap,c=new WeakMap,u=n||(0,r.validate)(null);return Object.assign(((n,...o)=>{if("string"==typeof n){if(o.length>1)throw new Error("Unexpected extra params.");return a((0,i.default)(t,n,(0,r.merge)(u,(0,r.validate)(o[0]))))}if(Array.isArray(n)){let e=l.get(n);return e||(e=(0,s.default)(t,n,u),l.set(n,e)),a(e(o))}if("object"==typeof n&&n){if(o.length>0)throw new Error("Unexpected extra params.");return e(t,(0,r.merge)(u,(0,r.validate)(n)))}throw new Error("Unexpected template param "+typeof n)}),{ast:(e,...n)=>{if("string"==typeof e){if(n.length>1)throw new Error("Unexpected extra params.");return(0,i.default)(t,e,(0,r.merge)((0,r.merge)(u,(0,r.validate)(n[0])),o))()}if(Array.isArray(e)){let i=c.get(e);return i||(i=(0,s.default)(t,e,(0,r.merge)(u,o)),c.set(e,i)),i(n)()}throw new Error("Unexpected template param "+typeof e)}})};var r=n(95838),i=n(41199),s=n(17667);const o=(0,r.validate)({placeholderPattern:!1});function a(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return n=>{try{return e(n)}catch(e){throw e.stack+=`\n =============\n${t}`,e}}}},10899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;var r=n(58135);const{FLIPPED_ALIAS_KEYS:i,isArrayExpression:s,isAssignmentExpression:o,isBinary:a,isBlockStatement:l,isCallExpression:c,isFunction:u,isIdentifier:p,isLiteral:f,isMemberExpression:h,isObjectExpression:d,isOptionalCallExpression:m,isOptionalMemberExpression:g,isStringLiteral:y}=r;function v(e,t){return e?(h(e)||g(e)?(v(e.object,t),e.computed&&v(e.property,t)):a(e)||o(e)?(v(e.left,t),v(e.right,t)):c(e)||m(e)?(t.hasCall=!0,v(e.callee,t)):u(e)?t.hasFunction=!0:p(e)&&(t.hasHelper=t.hasHelper||e.callee&&x(e.callee)),t):t}function b(e){return v(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function x(e){return!!e&&(h(e)?x(e.object)||x(e.property):p(e)?"require"===e.name||95===e.name.charCodeAt(0):c(e)?x(e.callee):!(!a(e)&&!o(e))&&(p(e.left)&&x(e.left)||x(e.right)))}function S(e){return f(e)||d(e)||s(e)||p(e)||h(e)}const C=t.nodes={AssignmentExpression(e){const t=b(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2),LogicalExpression(e){if(u(e.left)||u(e.right))return 2},Literal(e){if(y(e)&&"use strict"===e.value)return 2},CallExpression(e){if(u(e.callee)||x(e))return 3},OptionalCallExpression(e){if(u(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=e.declarations[t];let r=x(n.id)&&!S(n.init);if(!r&&n.init){const e=b(n.init);r=x(n.init)&&e.hasCall||e.hasFunction}if(r)return 3}},IfStatement(e){if(l(e.consequent))return 3}};C.ObjectProperty=C.ObjectTypeProperty=C.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1},C.ObjectTypeCallProperty=function(e,t){var n;if(t.callProperties[0]===e&&(null==(n=t.properties)||!n.length))return 1},C.ObjectTypeIndexer=function(e,t){var n,r;if(!(t.indexers[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length))return 1},C.ObjectTypeInternalSlot=function(e,t){var n,r,i;if(!(t.internalSlots[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length||null!=(i=t.indexers)&&i.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){[e].concat(i[e]||[]).forEach((function(e){const n=t?3:0;C[e]=()=>n}))}))},11064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._containerInsert=k,t._containerInsertAfter=T,t._containerInsertBefore=w,t._verifyNodeList=I,t.insertAfter=function(e){if(o._assertUnremoved.call(this),this.isSequenceExpression())return _(this.get("expressions")).insertAfter(e);const t=I.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||v(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map((e=>b(e)?m(e):e)));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){const e=this;if(e.node){const r=e.node;let{scope:i}=this;if(i.path.isPattern())return u(r),e.replaceWith(h(c([],r),[])),e.get("callee.body").insertAfter(t),[e];if(P(e))t.unshift(r);else if(y(r)&&C(r.callee))t.unshift(r),t.push(E());else if(function(e,t){if(!g(e)||!x(e.left))return!1;const n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(r,i))t.unshift(r),t.push(d(r.left));else if(i.isPure(r,!0))t.push(r);else{n.isMethod({computed:!0,key:r})&&(i=i.parent);const e=i.generateDeclaredUidIdentifier();t.unshift(m(p("=",d(e),r))),t.push(m(d(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return T.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression);return this.replaceWith(f(n?[e]:[])),this.pushContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.insertBefore=function(e){o._assertUnremoved.call(this);const t=I.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||v(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return w.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression);return this.replaceWith(f(n?[e]:[])),this.unshiftContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.pushContainer=function(e,t){o._assertUnremoved.call(this);const n=I.call(this,t),r=this.node[e];return i.default.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).setContext(this.context).replaceWithMultiple(n)},t.unshiftContainer=function(e,t){o._assertUnremoved.call(this),t=I.call(this,t);const n=i.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context);return w.call(n,t)},t.updateSiblingKeys=A;var r=n(56266),i=n(32670),s=n(44537),o=n(7946),a=n(58135),l=n(82738);const{arrowFunctionExpression:c,assertExpression:u,assignmentExpression:p,blockStatement:f,callExpression:h,cloneNode:d,expressionStatement:m,isAssignmentExpression:g,isCallExpression:y,isExportNamedDeclaration:v,isExpression:b,isIdentifier:x,isSequenceExpression:S,isSuper:C,thisExpression:E}=a;function k(e,t){A.call(this,e,t.length);const n=[];this.container.splice(e,0,...t);for(let i=0;i<t.length;i++){var r;const t=e+i,o=this.getSibling(t);n.push(o),null!=(r=this.context)&&r.queue&&s.pushContext.call(o,this.context)}const i=s._getQueueContexts.call(this);for(const e of n){s.setScope.call(e),e.debug("Inserted.");for(const t of i)t.maybeQueue(e,!0)}return n}function w(e){return k.call(this,this.key,e)}function T(e){return k.call(this,this.key+1,e)}const _=e=>e[e.length-1];function P(e){return S(e.parent)&&(_(e.parent.expressions)!==e.node||P(e.parentPath))}function A(e,t){if(!this.parent)return;const n=(0,r.getCachedPaths)(this);if(n)for(const[,r]of n)"number"==typeof r.key&&r.container===this.container&&r.key>=e&&(r.key+=t)}function I(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const n=e[t];let r;if(n?"object"!=typeof n?r="contains a non-object node":n.type?n instanceof i.default&&(r="has a NodePath when it expected a raw object"):r="without a type":r="has falsy node",r){const e=Array.isArray(n)?"array":typeof n;throw new Error(`Node list ${r} with the index of ${t} and type of ${e}`)}}return e}t.hoist=function(e=this.scope){return new l.default(this,e).run()}},11369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17545);function i(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},14017:function(e,t){!function(e){"use strict";const t=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),s=new Uint8Array(128);for(let e=0;e<64;e++){const t=r.charCodeAt(e);i[e]=t,s[t]=e}const o="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};function a(e,t){const n=e.indexOf(";",t);return-1===n?e.length:n}function l(e,t,n,r){let i=0,o=0,a=0;do{const n=e.charCodeAt(t++);a=s[n],i|=(31&a)<<o,o+=5}while(32&a);const l=1&i;return i>>>=1,l&&(i=-2147483648|-i),n[r]+=i,t}function c(e,n,r){return!(n>=r)&&e.charCodeAt(n)!==t}function u(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function f(e,t,n,r,s){const o=r[s];let a=o-n[s];n[s]=o,a=a<0?-a<<1|1:a<<1;do{let n=31&a;a>>>=5,a>0&&(n|=32),e[t++]=i[n]}while(a>0);return t}e.decode=function(e){const t=new Int32Array(5),n=[];let r=0;do{const i=a(e,r),s=[];let o=!0,p=0;t[0]=0;for(let n=r;n<i;n++){let r;n=l(e,n,t,0);const a=t[0];a<p&&(o=!1),p=a,c(e,n,i)?(n=l(e,n,t,1),n=l(e,n,t,2),n=l(e,n,t,3),c(e,n,i)?(n=l(e,n,t,4),r=[a,t[1],t[2],t[3],t[4]]):r=[a,t[1],t[2],t[3]]):r=[a],s.push(r)}o||u(s),n.push(s),r=i+1}while(r<=e.length);return n},e.encode=function(e){const r=new Int32Array(5),i=16384,s=16348,a=new Uint8Array(i),l=a.subarray(0,s);let c=0,u="";for(let p=0;p<e.length;p++){const h=e[p];if(p>0&&(c===i&&(u+=o.decode(a),c=0),a[c++]=n),0!==h.length){r[0]=0;for(let e=0;e<h.length;e++){const n=h[e];c>s&&(u+=o.decode(l),a.copyWithin(0,s,c),c-=s),e>0&&(a[c++]=t),c=f(a,c,r,n,0),1!==n.length&&(c=f(a,c,r,n,1),c=f(a,c,r,n,2),c=f(a,c,r,n,3),4!==n.length&&(c=f(a,c,r,n,4)))}}}return u+o.decode(a.subarray(0,c))},Object.defineProperty(e,"__esModule",{value:!0})}(t)},16643:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0,t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]},17545:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},17667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const{metadata:o,names:a}=function(e,t,n){let r="BABEL_TPL$";const s=t.join("");do{r="$$"+r}while(s.includes(r));const{names:o,code:a}=function(e,t){const n=[];let r=e[0];for(let i=1;i<e.length;i++){const s=`${t}${i-1}`;n.push(s),r+=s+e[i]}return{names:n,code:r}}(t,r);return{metadata:(0,i.default)(e,e.code(a),{parser:n.parser,placeholderWhitelist:new Set(o.concat(n.placeholderWhitelist?Array.from(n.placeholderWhitelist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders}),names:o}}(e,t,n);return t=>{const n={};return t.forEach(((e,t)=>{n[a[t]]=e})),t=>{const i=(0,r.normalizeReplacements)(t);return i&&Object.keys(i).forEach((e=>{if(hasOwnProperty.call(n,e))throw new Error("Unexpected replacement overlap.")})),e.unwrap((0,s.default)(o,i?Object.assign(i,n):n))}}};var r=n(95838),i=n(4131),s=n(72064)},18398:e=>{"use strict";const t={},n=t.hasOwnProperty,r=(e,t)=>{for(const r in e)n.call(e,r)&&t(r,e[r])},i=e=>"\\u"+("0000"+e).slice(-4),s=(e,t)=>{let n=e.toString(16);return t?n:n.toUpperCase()},o=t.toString,a=Array.isArray,l=e=>"bigint"==typeof e,c={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},u=/[\\\b\f\n\r\t]/,p=/[0-9]/,f=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,h=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,m=(e,t)=>{const n=()=>{k=E,++t.indentLevel,E=t.indent.repeat(t.indentLevel)},g={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},y=t&&t.json;var v,b;y&&(g.quotes="double",g.wrap=!0),v=g,t=(b=t)?(r(b,((e,t)=>{v[e]=t})),v):v,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const x="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",S=t.compact,C=t.lowercaseHex;let E=t.indent.repeat(t.indentLevel),k="";const w=t.__inline1__,T=t.__inline2__,_=S?"":"\n";let P,A=!0;const I="binary"==t.numbers,M="octal"==t.numbers,O="decimal"==t.numbers,B="hexadecimal"==t.numbers;if(y&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(F=e)&&"[object String]"!=o.call(F)){if((e=>"[object Map]"==o.call(e))(e))return 0==e.size?"new Map()":(S||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+m(Array.from(e),t)+")");if((e=>"[object Set]"==o.call(e))(e))return 0==e.size?"new Set()":"new Set("+m(Array.from(e),t)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+m(Array.from(e),t)+")";if(a(e))return P=[],t.wrap=!0,w&&(t.__inline1__=!1,t.__inline2__=!0),T||n(),((e,t)=>{const n=e.length;let r=-1;for(;++r<n;)t(e[r])})(e,(e=>{A=!1,T&&(t.__inline2__=!1),P.push((S||T?"":E)+m(e,t))})),A?"[]":T?"["+P.join(", ")+"]":"["+_+P.join(","+_)+_+(S?"":k)+"]";if((e=>"number"==typeof e||"[object Number]"==o.call(e))(e)||l(e)){if(y)return JSON.stringify(Number(e));let t;if(O)t=String(e);else if(B){let n=e.toString(16);C||(n=n.toUpperCase()),t="0x"+n}else I?t="0b"+e.toString(2):M&&(t="0o"+e.toString(8));return l(e)?t+"n":t}return l(e)?y?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==o.call(e))(e)?(P=[],t.wrap=!0,n(),r(e,((e,n)=>{A=!1,P.push((S?"":E)+m(e,t)+":"+(S?"":" ")+m(n,t))})),A?"{}":"{"+_+P.join(","+_)+_+(S?"":k)+"}"):y?JSON.stringify(e)||"null":String(e)}var F;const L=t.escapeEverything?h:d;return P=e.replace(L,((e,n,r,o,a,l)=>{if(n){if(t.minimal)return n;const e=n.charCodeAt(0),r=n.charCodeAt(1);return t.es6?"\\u{"+s(1024*(e-55296)+r-56320+65536,C)+"}":i(s(e,C))+i(s(r,C))}if(r)return i(s(r.charCodeAt(0),C));if("\0"==e&&!y&&!p.test(l.charAt(a+1)))return"\\0";if(o)return o==x||t.escapeEverything?"\\"+o:o;if(u.test(e))return c[e];if(t.minimal&&!f.test(e))return e;const h=s(e.charCodeAt(0),C);return y||h.length>2?i(h):"\\x"+("00"+h).slice(-2)})),"`"==x&&(P=P.replace(/\$\{/g,"\\${")),t.isScriptContext&&(P=P.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,y?"\\u003C!--":"\\x3C!--")),t.wrap&&(P=x+P+x),P};m.version="3.0.2",e.exports=m},19534:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();const t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;const n=e.tokenMap.getIndexes(t);if(!n)return null;let r=1,i=0,s=0;const o=()=>{for(;s<t.body.length&&null==t.body[s].start;)s++};return o(),a=>{s<=a&&(s=a+1,o());const l=s===t.body.length?t.end:t.body[s].start;let c;for(;r<n.length&&e.tokenMap.matchesOriginal(c=e._tokens[n[r]],";")&&c.start<l;)e.token(";",void 0,i++),r++}}(this,e);null==t||t(-1);const n=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),n(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},t.ClassExpression=t.ClassDeclaration=function(e,t){(i(t)||s(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},t._classMethodHead=function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var r=n(58135);const{isExportDefaultDeclaration:i,isExportNamedDeclaration:s}=r},19724:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=T,t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.BinaryExpression=function(e){const t=e.operator;if(l.includes(t))return v();if(o.includes(t))return h();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?v():t.isBaseType("string")||e.isBaseType("string")?b():S([b(),v()])}},t.BooleanLiteral=function(){return h()},t.CallExpression=function(){const{callee:e}=this.node;return A(e)?f(b()):P(e)||I(e)||E(e,{name:"Array"})?f(p()):M(e)?f(x([b(),p()])):O(this.get("callee"))},t.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,s.createUnionType)(e)},t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return m(g("Function"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i.default}}),t.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,s.createUnionType)(e)},t.NewExpression=function(e){if("Identifier"===e.callee.type)return m(e.callee)},t.NullLiteral=function(){return y()},t.NumericLiteral=function(){return v()},t.ObjectExpression=function(){return m(g("Object"))},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.RegExpLiteral=function(){return m(g("RegExp"))},t.RestElement=_,t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.StringLiteral=function(){return b()},t.TSAsExpression=w,t.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},t.TaggedTemplateExpression=function(){return O(this.get("tag"))},t.TemplateLiteral=function(){return b()},t.TypeCastExpression=k,t.UnaryExpression=function(e){const t=e.operator;return"void"===t?C():c.includes(t)?v():u.includes(t)?b():a.includes(t)?h():void 0},t.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return v()},t.VariableDeclarator=function(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()};var r=n(58135),i=n(61593),s=n(58252);const{BOOLEAN_BINARY_OPERATORS:o,BOOLEAN_UNARY_OPERATORS:a,NUMBER_BINARY_OPERATORS:l,NUMBER_UNARY_OPERATORS:c,STRING_UNARY_OPERATORS:u,anyTypeAnnotation:p,arrayTypeAnnotation:f,booleanTypeAnnotation:h,buildMatchMemberExpression:d,genericTypeAnnotation:m,identifier:g,nullLiteralTypeAnnotation:y,numberTypeAnnotation:v,stringTypeAnnotation:b,tupleTypeAnnotation:x,unionTypeAnnotation:S,voidTypeAnnotation:C,isIdentifier:E}=r;function k(e){return e.typeAnnotation}function w(e){return e.typeAnnotation}function T(){return m(g("Array"))}function _(){return T()}k.validParent=!0,w.validParent=!0,_.validParent=!0;const P=d("Array.from"),A=d("Object.keys"),I=d("Object.values"),M=d("Object.entries");function O(e){if((e=e.resolve()).isFunction()){const{node:t}=e;if(t.async)return t.generator?m(g("AsyncIterator")):m(g("Promise"));if(t.generator)return m(g("Iterator"));if(e.node.returnType)return e.node.returnType}}},21956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenContext=void 0,t.isLastChild=function(e,t){const n=a[e.type];for(let r=n.length-1;r>=0;r--){const i=e[n[r]];if(i===t)return!0;if(Array.isArray(i)){let e=i.length-1;for(;e>=0&&null===i[e];)e--;return e>=0&&i[e]===t}if(i)return!1}return!1},t.needsParens=function(e,t,n,r){var i;return!!t&&(!(!f(t)||t.callee!==e||!y(e))||(c(t)?!(b(e)||l(e)&&b(e.callee)||h(e)):null==(i=m.get(e.type))?void 0:i(e,t,n,r)))},t.needsWhitespace=v,t.needsWhitespaceAfter=function(e,t){return v(e,t,2)},t.needsWhitespaceBefore=function(e,t){return v(e,t,1)};var r=n(10899),i=n(45584),s=n(58135);const{FLIPPED_ALIAS_KEYS:o,VISITOR_KEYS:a,isCallExpression:l,isDecorator:c,isExpressionStatement:u,isMemberExpression:p,isNewExpression:f,isParenthesizedExpression:h}=s;function d(e){const t=new Map;function n(e,n){const r=t.get(e);t.set(e,r?function(e,t,i,s){var o;return null!=(o=r(e,t,i,s))?o:n(e,t,i,s)}:n)}for(const t of Object.keys(e)){const r=o[t];if(r)for(const i of r)n(i,e[t]);else n(t,e[t])}return t}t.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};const m=d(i),g=d(r.nodes);function y(e){return!!l(e)||p(e)&&y(e.object)}function v(e,t,n){var r;if(!e)return!1;u(e)&&(e=e.expression);const i=null==(r=g.get(e.type))?void 0:r(e,t);return"number"==typeof i&&!!(i&n)}function b(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&b(e.object);default:return!1}}},22005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const n=this.enterDelimited(),r=null==(t=e.directives)?void 0:t.length;if(r){var i;const t=e.body.length?2:1;this.printSequence(e.directives,!0,t),null!=(i=e.directives[r-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body,!0),n(),this.rightBrace(e)},t.Directive=function(e){this.print(e.value),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const{value:i}=e;if(r.test(i)){if(n.test(i))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${i}'`)}else this.token(`"${i}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const n=null==(t=e.directives)?void 0:t.length;if(n){var r;const t=e.body.length?2:1;this.printSequence(e.directives,void 0,t),null!=(r=e.directives[n-1].trailingComments)&&r.length||this.newline(t)}this.printSequence(e.body)};const n=/(?:^|[^\\])(?:\\\\)*'/,r=/(?:^|[^\\])(?:\\\\)*"/},25083:(e,t)=>{"use strict";function n(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},t.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingElement)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},t.JSXFragment=function(e){this.print(e.openingFragment),this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},t.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,n)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},t.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)}},25460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:n=!(e=>null==(e=arguments[0])?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let r=this;var i;n||(r=null!=(i=r.ensureFunctionName(!1))?i:r);const{thisBinding:s,fnPath:o}=q(r,n,e,t);if(o.ensureBlock(),o.node.type="FunctionExpression",!n){const e=s?null:o.scope.generateUidIdentifier("arrowCheckId");return e&&o.parentPath.scope.push({id:e,init:C([])}),o.get("body").unshiftContainer("body",h(p(this.hub.addHelper("newArrowCheck"),[A(),d(e?e.name:s)]))),o.replaceWith(p(b(o.node,d("bind")),[e?d(e.name):A()])),o.get("callee.object")}return o},t.ensureBlock=function(){const e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;const n=[];let r,i,s="body";e.isStatement()?(i="body",r=0,n.push(e.node)):(s+=".body.0",this.isFunction()?(r="argument",n.push(k(e.node))):(r="expression",n.push(h(e.node)))),this.node.body=u(n);const a=this.get(s);return o.setup.call(e,a,i?a.node[i]:a.node,i,r),this.node},t.ensureFunctionName=function(e){if(this.node.id)return this;const t=D(this.node,this.parent);if(null==t)return this;let{name:n}=t;if(!e&&/[\uD800-\uDFFF]/.test(n))return null;if(n.startsWith("get ")||n.startsWith("set "))return null;n=O(n.replace(/[/ ]/g,"_"));const r=d(n);V(r,t.originalNode);const s={needsRename:!1,name:n},{scope:o}=this,a=o.getOwnBinding(n);if(a?"param"===a.kind&&(s.needsRename=!0):(o.parent.hasBinding(n)||o.hasGlobal(n))&&this.traverse(X,s),!s.needsRename)return this.node.id=r,o.getProgramParent().references[r.name]=!0,this;if(o.hasBinding(r.name)&&!o.hasGlobal(r.name))return o.rename(r.name),this.node.id=r,o.getProgramParent().references[r.name]=!0,this;if(!B(this.node))return null;const l=o.generateUidIdentifier(r.name),c=[];for(let e=0,t=function(e){const t=e.params.findIndex((e=>F(e)||L(e)));return-1===t?e.params.length:t}(this.node);e<t;e++)c.push(o.generateUidIdentifier("x"));const u=i.default.expression.ast`
|
|
3
3
|
(function (${l}) {
|
|
4
4
|
function ${r}(${c}) {
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
|
|
12
12
|
return ${N(r)};
|
|
13
13
|
})(${I(this.node)})
|
|
14
|
-
`;return this.replaceWith(u)[0].get("arguments.0")},t.splitExportDeclaration=function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const e=this.get("declaration");if(this.isExportDefaultDeclaration()){const t=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),r=e.isScope()?e.scope.parent:e.scope;let i=e.node.id,s=!1;i?n&&r.hasBinding(i.name)&&(s=!0,i=r.generateUidIdentifier(i.name)):(s=!0,i=r.generateUidIdentifier("default"),(t||n)&&(e.node.id=N(i)));const o=t?e.node:R("var",[j(N(i),e.node)]),a=W(null,[U(N(i),d("default"))]);return this.insertAfter(a),this.replaceWith(o),s&&r.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.getOuterBindingIdentifiers(),n=Object.keys(t).map((e=>U(d(e),d(e)))),r=W(null,n);return this.insertAfter(r),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}return this.node.computed||m(e)&&(e=_(e.name)),e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");q(this)};var r=n(58135),i=n(50240),s=n(95957),o=n(44537);const{arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:c,blockStatement:u,callExpression:p,conditionalExpression:f,expressionStatement:h,identifier:d,isIdentifier:m,jsxIdentifier:g,logicalExpression:y,LOGICAL_OPERATORS:v,memberExpression:b,metaProperty:x,numericLiteral:S,objectExpression:C,restElement:E,returnStatement:k,sequenceExpression:w,spreadElement:T,stringLiteral:_,super:P,thisExpression:A,toExpression:I,unaryExpression:M,toBindingIdentifierName:O,isFunction:B,isAssignmentPattern:F,isRestElement:L,getFunctionName:D,cloneNode:N,variableDeclaration:R,variableDeclarator:j,exportNamedDeclaration:W,exportSpecifier:U,inherits:V}=r;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};const H=(0,s.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function q(e,t=!0,n=!0,r=!0){let i,s=e.findParent((e=>e.isArrowFunctionExpression()?(null!=i||(i=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1})));const o=s.isClassMethod({kind:"constructor"});if(s.isClassProperty()||s.isClassPrivateProperty())if(i)s=i;else{if(!n)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(p(a([],I(e.node)),[])),s=e.get("callee"),e=s.get("body")}const{thisPaths:u,argumentsPaths:h,newTargetPaths:m,superProps:C,superCalls:k}=function(e){const t=[],n=[],r=[],i=[],s=[];return e.traverse(J,{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:s}),{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:s}}(e);if(o&&k.length>0){if(!n)throw k[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!r)throw k[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const e=[];s.traverse(H,{allSuperCalls:e});const t=function(e){return $(e,"supercall",(()=>{const t=e.scope.generateUidIdentifier("args");return a([E(t)],p(P(),[T(d(t.name))]))}))}(s);e.forEach((e=>{const n=d(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)}))}if(h.length>0){const e=$(s,"arguments",(()=>{const e=()=>d("arguments");return s.scope.path.isProgram()?f(c("===",M("typeof",e()),_("undefined")),s.scope.buildUndefinedNode(),e()):e()}));h.forEach((t=>{const n=d(e);n.loc=t.node.loc,t.replaceWith(n)}))}if(m.length>0){const e=$(s,"newtarget",(()=>x(d("new"),d("target"))));m.forEach((t=>{const n=d(e);n.loc=t.node.loc,t.replaceWith(n)}))}if(C.length>0){if(!n)throw C[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");C.reduce(((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const n=e.parentPath,r=n.node.operator.slice(0,-1),i=n.node.right,s=function(e){return v.includes(e)}(r);if(e.node.computed){const o=e.scope.generateDeclaredUidIdentifier("tmp"),a=e.node.object,c=e.node.property;n.get("left").replaceWith(b(a,l("=",o,c),!0)),n.get("right").replaceWith(t(s?"=":r,b(a,d(o.name),!0),i))}else{const o=e.node.object,a=e.node.property;n.get("left").replaceWith(b(o,a)),n.get("right").replaceWith(t(s?"=":r,b(o,d(a.name)),i))}return s?n.replaceWith(y(r,n.node.left,n.node.right)):n.node.operator="=",[n.get("left"),n.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),r=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[l("=",n,b(e.node.object,r?l("=",r,e.node.property):e.node.property,e.node.computed)),l("=",b(e.node.object,r?d(r.name):e.node.property,e.node.computed),c(e.parentPath.node.operator[0],d(n.name),S(1)))];return e.parentPath.node.prefix||i.push(d(n.name)),t.replaceWith(w(i)),[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e];function t(e,t,n){return"="===e?l("=",t,n):c(e,t,n)}}(t))),[]).forEach((e=>{const t=e.node.computed?"":e.get("property").node.name,n=e.parentPath,r=n.isAssignmentExpression({left:e.node}),i=n.isCallExpression({callee:e.node}),o=n.isTaggedTemplateExpression({tag:e.node}),c=function(e,t,n){return $(e,`superprop_${t?"set":"get"}:${n||""}`,(()=>{const r=[];let i;if(n)i=b(P(),d(n));else{const t=e.scope.generateUidIdentifier("prop");r.unshift(t),i=b(P(),d(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");r.push(t),i=l("=",i,d(t.name))}return a(r,i)}))}(s,r,t),f=[];if(e.node.computed&&f.push(e.get("property").node),r){const e=n.node.right;f.push(e)}const h=p(d(c),f);i?(n.unshiftContainer("arguments",A()),e.replaceWith(b(h,d("call"))),u.push(n.get("arguments.0"))):r?n.replaceWith(h):o?(e.replaceWith(p(b(h,d("bind"),!1),[A()])),u.push(e.get("arguments.0"))):e.replaceWith(h)}))}let O;return(u.length>0||!t)&&(O=function(e,t){return $(e,"this",(n=>{if(!t||!G(e))return A();e.traverse(K,{supers:new WeakSet,thisBinding:n})}))}(s,o),(t||o&&G(s))&&(u.forEach((e=>{const t=e.isJSX()?g(O):d(O);t.loc=e.node.loc,e.replaceWith(t)})),t||(O=null))),{thisBinding:O,fnPath:e}}function G(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const K=(0,s.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:n}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",d(n),d("this"))])))}});function $(e,t,n){const r="binding:"+t;let i=e.getData(r);if(!i){const s=e.scope.generateUidIdentifier(t);i=s.name,e.setData(r,i),e.scope.push({id:s,init:n(i)})}return i}const J=(0,s.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let n=e.scope;do{if(n.hasOwnBinding("arguments"))return void n.rename("arguments");if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}}),X={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}},26801:function(e,t){!function(e){"use strict";function t(e,t){return e._indexes[t]}e.SetArray=class{constructor(){this._indexes={__proto__:null},this.array=[]}},e.get=t,e.pop=function(e){const{array:t,_indexes:n}=e;0!==t.length&&(n[t.pop()]=void 0)},e.put=function(e,n){const r=t(e,n);if(void 0!==r)return r;const{array:i,_indexes:s}=e,o=i.push(n);return s[n]=o-1},e.remove=function(e,n){const r=t(e,n);if(void 0===r)return;const{array:i,_indexes:s}=e;for(let e=r+1;e<i.length;e++){const t=i[e];i[e-1]=t,s[t]--}s[n]=void 0,i.pop()},Object.defineProperty(e,"__esModule",{value:!0})}(t)},27250:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,s=7*i;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var l,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===u&&isFinite(e))return a.long?(l=e,(c=Math.abs(l))>=i?o(l,c,i,"day"):c>=r?o(l,c,r,"hour"):c>=n?o(l,c,n,"minute"):c>=t?o(l,c,t,"second"):l+" ms"):function(e){var s=Math.abs(e);return s>=i?Math.round(e/i)+"d":s>=r?Math.round(e/r)+"h":s>=n?Math.round(e/n)+"m":s>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},27891:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,s,o=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),s=i-(n||i);r.diff=s,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];n=s.call(r,t),e.splice(o,1),o--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e,t){let n=0,r=0,i=-1,s=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,s=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,s++,n=s}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=n(27250),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},32387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,n=t.length;this.tokenChar(91);const r=this.enterDelimited();for(let e=0;e<t.length;e++){const r=t[e];r?(e>0&&this.space(),this.print(r),(e<n-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}r(),this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),n=this.format.jsescOption,r=e.value,s=r+"";n.numbers?this.number(i(r,n),r):null==t?this.number(s,r):this.format.minified?this.number(t.length<s.length?t:s,r):this.number(t,r)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;if(this.tokenChar(123),t.length){const e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(s(e.value)&&o(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&o(e.key)&&o(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},t.PipelineBareFunction=function(e){this.print(e.callee)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression)},t.RecordExpression=function(e){const t=e.properties;let n,r;if("bar"===this.format.recordAndTupleSyntaxType)n="{|",r="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);n="#{",r="}"}this.token(n),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(r),!0,!0),this.space()),this.token(r)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const n=i(e.value,this.format.jsescOption);this.token(n)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!c.has(e)){const t=JSON.stringify(e),n=Array.from(c,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of ${n.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,n=t.length;let r,i;if("bar"===this.format.recordAndTupleSyntaxType)r="[|",i="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);r="#[",i="]"}this.token(r);for(let e=0;e<t.length;e++){const r=t[e];r&&(e>0&&this.space(),this.print(r),(e<n-1||this.shouldPrintTrailingComma(i))&&this.token(",",!1,e))}this.token(i)},t._getRawIdentifier=function(e){if(e===a)return l;a=e;const{name:t}=e,n=this.tokenMap.find(e,(e=>e.value===t));return n?(l=this._originalCode.slice(n.start,n.end),l):l=e.name};var r=n(58135),i=n(18398);const{isAssignmentPattern:s,isIdentifier:o}=r;let a=null,l="";const c=new Set(["^^","@@","^","%","#"])},32670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var r=n(44057),i=n(97743),s=n(80004),o=n(54683),a=n(58135),l=a,c=n(56266),u=n(2235),p=n(90157),f=n(83810),h=n(94834),d=n(80366),m=n(25460),g=n(74145),y=n(44537),v=y,b=n(7946),x=n(11064),S=n(53476),C=n(68418),E=n(37494);const{validate:k}=a,w=i("babel"),T=(t.REMOVED=1,t.SHOULD_STOP=2,t.SHOULD_SKIP=4,t.default=class e{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:n,parent:r,container:i,listKey:s,key:o}){if(!t&&n&&(t=n.hub),!r)throw new Error("To get a node path the parent needs to exist");const a=i[o],l=c.getOrCreateCachedPaths(r,n);let u=l.get(a);return u||(u=new e(t,r),a&&l.set(a,u)),y.setup.call(u,n,i,s,o),u}getScope(e){return this.isScope()?new o.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}set(e,t){k(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){w.enabled&&w(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}}),_={findParent:p.findParent,find:p.find,getFunctionParent:p.getFunctionParent,getStatementParent:p.getStatementParent,getEarliestCommonAncestorFrom:p.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:p.getDeepestCommonAncestorFrom,getAncestry:p.getAncestry,isAncestor:p.isAncestor,isDescendant:p.isDescendant,inType:p.inType,getTypeAnnotation:f.getTypeAnnotation,isBaseType:f.isBaseType,couldBeBaseType:f.couldBeBaseType,baseTypeStrictlyMatches:f.baseTypeStrictlyMatches,isGenericType:f.isGenericType,replaceWithMultiple:h.replaceWithMultiple,replaceWithSourceString:h.replaceWithSourceString,replaceWith:h.replaceWith,replaceExpressionWithStatements:h.replaceExpressionWithStatements,replaceInline:h.replaceInline,evaluateTruthy:d.evaluateTruthy,evaluate:d.evaluate,toComputedKey:m.toComputedKey,ensureBlock:m.ensureBlock,unwrapFunctionEnvironment:m.unwrapFunctionEnvironment,arrowFunctionToExpression:m.arrowFunctionToExpression,splitExportDeclaration:m.splitExportDeclaration,ensureFunctionName:m.ensureFunctionName,matchesPattern:g.matchesPattern,isStatic:g.isStatic,isNodeType:g.isNodeType,canHaveVariableDeclarationOrExpression:g.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:g.canSwapBetweenExpressionAndStatement,isCompletionRecord:g.isCompletionRecord,isStatementOrBlock:g.isStatementOrBlock,referencesImport:g.referencesImport,getSource:g.getSource,willIMaybeExecuteBefore:g.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:g._guessExecutionStatusRelativeTo,resolve:g.resolve,isConstantExpression:g.isConstantExpression,isInStrictMode:g.isInStrictMode,isDenylisted:v.isDenylisted,visit:v.visit,skip:v.skip,skipKey:v.skipKey,stop:v.stop,setContext:v.setContext,requeue:v.requeue,requeueComputedKeyAndDecorators:v.requeueComputedKeyAndDecorators,remove:b.remove,insertBefore:x.insertBefore,insertAfter:x.insertAfter,unshiftContainer:x.unshiftContainer,pushContainer:x.pushContainer,getOpposite:S.getOpposite,getCompletionRecords:S.getCompletionRecords,getSibling:S.getSibling,getPrevSibling:S.getPrevSibling,getNextSibling:S.getNextSibling,getAllNextSiblings:S.getAllNextSiblings,getAllPrevSiblings:S.getAllPrevSiblings,get:S.get,getAssignmentIdentifiers:S.getAssignmentIdentifiers,getBindingIdentifiers:S.getBindingIdentifiers,getOuterBindingIdentifiers:S.getOuterBindingIdentifiers,getBindingIdentifierPaths:S.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:S.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:C.shareCommentsWithSiblings,addComment:C.addComment,addComments:C.addComments};Object.assign(T.prototype,_),T.prototype.arrowFunctionToShadowed=m[String("arrowFunctionToShadowed")],Object.assign(T.prototype,{has:g[String("has")],is:g[String("is")],isnt:g[String("isnt")],equals:g[String("equals")],hoist:x[String("hoist")],updateSiblingKeys:x.updateSiblingKeys,call:v.call,isBlacklisted:v[String("isBlacklisted")],setScope:v.setScope,resync:v.resync,popContext:v.popContext,pushContext:v.pushContext,setup:v.setup,setKey:v.setKey}),T.prototype._guessExecutionStatusRelativeToDifferentFunctions=g._guessExecutionStatusRelativeTo,T.prototype._guessExecutionStatusRelativeToDifferentFunctions=g._guessExecutionStatusRelativeTo,Object.assign(T.prototype,{_getTypeAnnotation:f._getTypeAnnotation,_replaceWith:h._replaceWith,_resolve:g._resolve,_call:v._call,_resyncParent:v._resyncParent,_resyncKey:v._resyncKey,_resyncList:v._resyncList,_resyncRemoved:v._resyncRemoved,_getQueueContexts:v._getQueueContexts,_removeFromScope:b._removeFromScope,_callRemovalHooks:b._callRemovalHooks,_remove:b._remove,_markRemoved:b._markRemoved,_assertUnremoved:b._assertUnremoved,_containerInsert:x._containerInsert,_containerInsertBefore:x._containerInsertBefore,_containerInsertAfter:x._containerInsertAfter,_verifyNodeList:x._verifyNodeList,_getKey:S._getKey,_getPattern:S._getPattern});for(const e of l.TYPES){const t=`is${e}`,n=l[t];T.prototype[t]=function(e){return n(this.node,e)},T.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(T.prototype,E);for(const e of Object.keys(r))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e))},37494:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBindingIdentifier=function(){const{node:e,parent:t}=this,n=this.parentPath.parent;return p(e)&&i(e,t,n)},t.isBlockScoped=function(){return s(this.node)},t.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():a(this.node)},t.isFlow=function(){const{node:e}=this;return!(!l(e)&&(f(e)?"type"!==e.importKind&&"typeof"!==e.importKind:o(e)?"type"!==e.exportKind:!h(e)||"type"!==e.importKind&&"typeof"!==e.importKind))},t.isForAwaitStatement=function(){return k(this.node,{await:!0})},t.isGenerated=function(){return!this.isUser()},t.isPure=function(e){return this.scope.isPure(this.node,e)},t.isReferenced=function(){return v(this.node,this.parent)},t.isReferencedIdentifier=function(e){const{node:t,parent:n}=this;if(!p(t,e)&&!m(n,e)){if(!d(t,e))return!1;if(w(t.name))return!1}return v(t,n,this.parentPath.parent)},t.isReferencedMemberExpression=function(){const{node:e,parent:t}=this;return g(e)&&v(e,t)},t.isRestProperty=function(){var e;return y(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},t.isScope=function(){return b(this.node,this.parent)},t.isSpreadProperty=function(){var e;return y(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},t.isStatement=function(){const{node:e,parent:t}=this;if(x(e)){if(C(e)){if(u(t,{left:e}))return!1;if(c(t,{init:e}))return!1}return!0}return!1},t.isUser=function(){return this.node&&!!this.node.loc},t.isVar=function(){return S(this.node)};var r=n(58135);const{isBinding:i,isBlockScoped:s,isExportDeclaration:o,isExpression:a,isFlow:l,isForStatement:c,isForXStatement:u,isIdentifier:p,isImportDeclaration:f,isImportSpecifier:h,isJSXIdentifier:d,isJSXMemberExpression:m,isMemberExpression:g,isRestElement:y,isReferenced:v,isScope:b,isStatement:x,isVar:S,isVariableDeclaration:C,react:E,isForOfStatement:k}=r,{isCompatTag:w}=E;t.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},t.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}},39813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;var r=n(58135);const{assertExpressionStatement:i}=r;function s(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}t.smart=s((e=>e.length>1?e:e[0])),t.statements=s((e=>e)),t.statement=s((e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}));const o=t.expression={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===o.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return i(t),t.expression}};t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},39919:(e,t)=>{"use strict";function n(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function r(e,t,n){var r;let i=0;null!=(r=e.tokenMap)&&r.startMatches(t,n)&&(i=1,e.token(n)),e.printJoin(t.types,void 0,void 0,(function(e){this.space(),this.token(n,null,e+i),this.space()}))}function i(e,t){!0!==t&&e.token(t)}function s(e){o(this,e,(()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)}))}function o(e,t,n){e.token("{");const r=e.enterDelimited();n(),r(),e.rightBrace(t)}function a(e,t,n){var r;const i=new Set;for(const e of n)e&&i.add(e);null==(r=e.tokenMap)||r.find(t,(t=>{if(i.has(t.value))return e.token(t.value),e.space(),i.delete(t.value),0===i.size}));for(const t of i)e.word(t),e.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.TSSatisfiesExpression=t.TSAsExpression=function(e){const{type:t,expression:n,typeAnnotation:r}=e;this.print(n,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(r)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSInterfaceHeritage=t.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},t.TSEnumBody=s,t.TSEnumDeclaration=function(e){const{declare:t,const:n,id:r}=e;t&&(this.word("declare"),this.space()),n&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(r),this.space(),s.call(this,e)},t.TSEnumMember=function(e){const{id:t,initializer:n}=e;this.print(t),n&&(this.space(),this.tokenChar(61),this.space(),this.print(n))},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{id:t,moduleReference:n}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()},t.TSImportType=function(e){const{argument:t,qualifier:n,options:r}=e;this.word("import"),this.tokenChar(40),this.print(t),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),n&&(this.tokenChar(46),this.print(n));const i=e.typeParameters;i&&this.print(i)},t.TSIndexSignature=function(e){const{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),n(this,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TSInterfaceBody=function(e){o(this,e,(()=>this.printJoin(e.body,!0,!0)))},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:r,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(n),this.print(r),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(s)},t.TSIntersectionType=function(e){r(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal)},t.TSMappedType=function(e){const{nameType:t,optional:n,readonly:r,typeAnnotation:s}=e;this.tokenChar(123);const o=this.enterDelimited();this.space(),r&&(i(this,r),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),n&&(i(this,n),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),o(),this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSModuleBlock=function(e){o(this,e,(()=>this.printSequence(e.body,!0)))},t.TSModuleDeclaration=function(e){const{declare:t,id:n,kind:r}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=r?r:"Identifier"===n.type?"namespace":"module"),this.space()),this.print(n),!e.body)return void this.semicolon();let t=e.body;for(;"TSModuleDeclaration"===t.type;)this.tokenChar(46),this.print(t.id),t=t.body;this.space(),this.print(t)}},t.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),n(this,e)},t.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:n,typeParameters:r,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(n),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},t.TSTypeAnnotation=function(e,t){this.token("TSFunctionType"!==t.type&&"TSConstructorType"!==t.type||t.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:n}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(n)},t.TSTypeLiteral=function(e){o(this,e,(()=>this.printJoin(e.members,!0,!0)))},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},t.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let n="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(n&&(n=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,",")))),n||(n=this.shouldPrintTrailingComma(">"))),this.printList(e.params,n),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);const t=e.typeParameters;t&&this.print(t)},t.TSTypeReference=function(e){const t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){r(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){const t="ClassPrivateProperty"===e.type,n="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;a(this,e,[n&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),a(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(n||t)&&e.readonly&&"readonly"])},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")"),this.space();const r=e.typeAnnotation;this.print(r)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")");const r=e.typeAnnotation;this.print(r)}},41199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let o;return t=e.code(t),a=>{const l=(0,r.normalizeReplacements)(a);return o||(o=(0,i.default)(e,t,n)),e.unwrap((0,s.default)(o,l))}};var r=n(95838),i=n(4131),s=n(72064)},41969:function(e,t,n){!function(e,t,n){"use strict";function r(e,t){return t&&!t.endsWith("/")&&(t+="/"),n(e,t)}function i(e,t){for(let n=t;n<e.length;n++)if(!s(e[n]))return n;return e.length}function s(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}function o(e,t){return t||(e=e.slice()),e.sort(a)}function a(e,t){return e[0]-t[0]}let l=!1;function c(e,t,n){for(let r=n+1;r<e.length&&e[r][0]===t;n=r++);return n}function u(e,t,n){for(let r=n-1;r>=0&&e[r][0]===t;n=r--);return n}function p(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function f(e,t,n,r){const{lastKey:i,lastNeedle:s,lastIndex:o}=n;let a=0,c=e.length-1;if(r===i){if(t===s)return l=-1!==o&&e[o][0]===t,o;t>=s?a=-1===o?0:o:c=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){const i=n+(r-n>>1),s=e[i][0]-t;if(0===s)return l=!0,i;s<0?n=i+1:r=i-1}return l=!1,n-1}(e,t,a,c)}function h(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function d(){return{__proto__:null}}function m(e){return"string"==typeof e?JSON.parse(e):e}function g(e,t,n,r,i,s,o,a,l,c,u){const{sections:p}=e;for(let e=0;e<p.length;e++){const{map:f,offset:h}=p[e];let d=c,m=u;if(e+1<p.length){const t=p[e+1].offset;d=Math.min(c,a+t.line),d===c?m=Math.min(u,l+t.column):d<c&&(m=l+t.column)}y(f,t,n,r,i,s,o,a+h.line,l+h.column,d,m)}}function y(e,t,n,r,i,s,o,a,l,c,u){const p=m(e);if("sections"in p)return g(...arguments);const f=new C(p,t),h=r.length,d=s.length,y=k(f),{resolvedSources:x,sourcesContent:S,ignoreList:E}=f;if(v(r,x),v(s,f.names),S)v(i,S);else for(let e=0;e<x.length;e++)i.push(null);if(E)for(let e=0;e<E.length;e++)o.push(E[e]+h);for(let e=0;e<y.length;e++){const t=a+e;if(t>c)return;const r=b(n,t),i=0===e?l:0,s=y[e];for(let e=0;e<s.length;e++){const n=s[e],o=i+n[0];if(t===c&&o>=u)return;if(1===n.length){r.push([o]);continue}const a=h+n[1],l=n[2],p=n[3];r.push(4===n.length?[o,a,l,p]:[o,a,l,p,d+n[4]])}}}function v(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function b(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}const x="`line` must be greater than 0 (lines start at line 1)",S="`column` must be greater than or equal to 0 (columns start at column 0)";class C{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)return e;const s=n?JSON.parse(e):e,{version:a,file:l,names:c,sourceRoot:u,sources:p,sourcesContent:f}=s;this.version=a,this.file=l,this.names=c||[],this.sourceRoot=u,this.sources=p,this.sourcesContent=f,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const h=r(u||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=p.map((e=>r(e||"",h)));const{mappings:d}=s;"string"==typeof d?(this._encoded=d,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){const n=i(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=i(e,r+1))e[r]=o(e[r],t);return e}(d,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function E(e){var n,r;return null!==(n=(r=e)._encoded)&&void 0!==n?n:r._encoded=t.encode(e._decoded)}function k(e){var n;return(n=e)._decoded||(n._decoded=t.decode(e._encoded))}function w(e,t){const{sources:n,resolvedSources:r}=e;let i=n.indexOf(t);return-1===i&&(i=r.indexOf(t)),i}function T(e,t){const n=new C(_(e,[]),t);return n._decoded=e.mappings,n}function _(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function P(e,t,n,r){return{source:e,line:t,column:n,name:r}}function A(e,t){return{line:e,column:t}}function I(e,t,n,r,i){let s=f(e,r,t,n);return l?s=(-1===i?c:u)(e,r,s):-1===i&&s++,-1===s||s===e.length?-1:s}function M(e,t,n,r,i,s){var o;if(--n<0)throw new Error(x);if(r<0)throw new Error(S);const{sources:a,resolvedSources:m}=e;let g=a.indexOf(t);if(-1===g&&(g=m.indexOf(t)),-1===g)return s?[]:A(null,null);const y=((o=e)._bySources||(o._bySources=function(e,t){const n=t.map(d);for(let r=0;r<e.length;r++){const i=e[r];for(let e=0;e<i.length;e++){const s=i[e];if(1===s.length)continue;const o=s[1],a=s[2],l=s[3],u=n[o],p=u[a]||(u[a]=[]),d=t[o];let m=c(p,l,f(p,l,d,a));d.lastIndex=++m,h(p,m,[l,r,s[0]])}}return n}(k(e),e._bySourceMemos=a.map(p))))[g][n];if(null==y)return s?[]:A(null,null);const v=e._bySourceMemos[g];if(s)return function(e,t,n,r,i){let s=I(e,t,n,r,1);if(l||-1!==i||s++,-1===s||s===e.length)return[];const o=l?r:e[s][0];l||(s=u(e,o,s));const a=c(e,o,s),p=[];for(;s<=a;s++){const t=e[s];p.push(A(t[1]+1,t[2]))}return p}(y,v,n,r,i);const b=I(y,v,n,r,i);if(-1===b)return A(null,null);const C=y[b];return A(C[1]+1,C[2])}e.AnyMap=function(e,t){const n=m(e);if(!("sections"in n))return new C(n,t);const r=[],i=[],s=[],o=[],a=[];return g(n,t,r,i,s,o,a,0,0,1/0,1/0),T({version:3,file:n.file,names:o,sources:i,sourcesContent:s,mappings:r,ignoreList:a})},e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=-1,e.TraceMap=C,e.allGeneratedPositionsFor=function(e,t){const{source:n,line:r,column:i,bias:s}=t;return M(e,n,r,i,s||-1,!0)},e.decodedMap=function(e){return _(e,k(e))},e.decodedMappings=k,e.eachMapping=function(e,t){const n=k(e),{names:r,resolvedSources:i}=e;for(let e=0;e<n.length;e++){const s=n[e];for(let n=0;n<s.length;n++){const o=s[n],a=e+1,l=o[0];let c=null,u=null,p=null,f=null;1!==o.length&&(c=i[o[1]],u=o[2]+1,p=o[3]),5===o.length&&(f=r[o[4]]),t({generatedLine:a,generatedColumn:l,source:c,originalLine:u,originalColumn:p,name:f})}}},e.encodedMap=function(e){return _(e,E(e))},e.encodedMappings=E,e.generatedPositionFor=function(e,t){const{source:n,line:r,column:i,bias:s}=t;return M(e,n,r,i,s||1,!1)},e.isIgnored=function(e,t){const{ignoreList:n}=e;if(null==n)return!1;const r=w(e,t);return-1!==r&&n.includes(r)},e.originalPositionFor=function(e,t){let{line:n,column:r,bias:i}=t;if(n--,n<0)throw new Error(x);if(r<0)throw new Error(S);const s=k(e);if(n>=s.length)return P(null,null,null,null);const o=s[n],a=I(o,e._decodedMemo,n,r,i||1);if(-1===a)return P(null,null,null,null);const l=o[a];if(1===l.length)return P(null,null,null,null);const{names:c,resolvedSources:u}=e;return P(u[l[1]],l[2]+1,l[3],5===l.length?c[l[4]]:null)},e.presortedDecodedMap=T,e.sourceContentFor=function(e,t){const{sourcesContent:n}=e;if(null==n)return null;const r=w(e,t);return-1===r?null:n[r]},e.traceSegment=function(e,t,n){const r=k(e);if(t>=r.length)return null;const i=r[t],s=I(i,e._decodedMemo,t,n,1);return-1===s?null:i[s]}}(t,n(14017),n(98079))},44057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Var=t.User=t.Statement=t.SpreadProperty=t.Scope=t.RestProperty=t.ReferencedMemberExpression=t.ReferencedIdentifier=t.Referenced=t.Pure=t.NumericLiteralTypeAnnotation=t.Generated=t.ForAwaitStatement=t.Flow=t.Expression=t.ExistentialTypeParam=t.BlockScoped=t.BindingIdentifier=void 0,t.ReferencedIdentifier=["Identifier","JSXIdentifier"],t.ReferencedMemberExpression=["MemberExpression"],t.BindingIdentifier=["Identifier"],t.Statement=["Statement"],t.Expression=["Expression"],t.Scope=["Scopable","Pattern"],t.Referenced=null,t.BlockScoped=null,t.Var=["VariableDeclaration"],t.User=null,t.Generated=null,t.Pure=null,t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],t.RestProperty=["RestElement"],t.SpreadProperty=["RestElement"],t.ExistentialTypeParam=["ExistsTypeAnnotation"],t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],t.ForAwaitStatement=["ForOfStatement"]},44537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._call=l,t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t},t._resyncKey=h,t._resyncList=d,t._resyncParent=f,t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||s._markRemoved.call(this)},t.call=a,t.isDenylisted=c,t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const n of t)n.maybeQueue(e)},t.requeueComputedKeyAndDecorators=function(){const{context:e,node:t}=this;if(!o.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},t.resync=function(){this.removed||(f.call(this),d.call(this),h.call(this))},t.setContext=function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),p.call(this),this},t.setKey=m,t.setScope=p,t.setup=function(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,m.call(this,r)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=i.SHOULD_SKIP|i.SHOULD_STOP},t.visit=function(){var e,t;if(!this.node)return!1;if(this.isDenylisted())return!1;if(null!=(e=(t=this.opts).shouldSkip)&&e.call(t,this))return!1;const n=this.context;return this.shouldSkip||a.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(u(this,n),this.debug("Recursing into..."),this.shouldStop=(0,r.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),u(this,n),a.call(this,"exit"),this.shouldStop)};var r=n(51597),i=n(32670),s=n(7946),o=n(58135);function a(e){const t=this.opts;return this.debug(e),!(!this.node||!l.call(this,t[e]))||!!this.node&&l.call(this,null==(n=t[this.node.type])?void 0:n[e]);var n}function l(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1}function c(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function u(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function p(){var e,t;if(null!=(e=this.opts)&&e.noScope)return;let n,r=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&r.isMethod()||"discriminant"===this.key&&r.isSwitchStatement())&&(r=r.parentPath);r&&!n;){var i;if(null!=(i=r.opts)&&i.noScope)return;n=r.scope,r=r.parentPath}this.scope=this.getScope(n),null==(t=this.scope)||t.init()}function f(){this.parentPath&&(this.parent=this.parentPath.node)}function h(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void m.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void m.call(this,e);this.key=null}}function d(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function m(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}t.isBlacklisted=c},45584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,n){return!(!x(n)||!p(e.left))||E(e,t)},t.Binary=S,t.BinaryExpression=function(e,t,n){return"in"===e.operator&&Boolean(n&i.TokenContext.forInOrInitHeadAccumulate)},t.ClassExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.ArrowFunctionExpression=t.ConditionalExpression=E,t.DoExpression=function(e,t,n){return!e.async&&Boolean(n&i.TokenContext.expressionStatement)},t.FunctionExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.FunctionTypeAnnotation=function(e,t,n){const r=t.type;return"UnionTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"ArrayTypeAnnotation"===r||Boolean(n&i.TokenContext.arrowFlowReturnType)},t.Identifier=function(e,t,n,r){var s;const o=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===o&&t.left===e){const e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(!r||r(e)===e.name)&&("let"===e.name?!!((u(t,{object:e,computed:!0})||f(t,{object:e,computed:!0,optional:!1}))&&n&(i.TokenContext.expressionStatement|i.TokenContext.forInitHead|i.TokenContext.forInHead))||Boolean(n&i.TokenContext.forOfHead):"async"===e.name&&l(t,{left:e,await:!1}))},t.LogicalExpression=function(e,t){const n=t.type;if(y(n))return!0;if("LogicalExpression"!==n)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return s(t)},t.ObjectExpression=function(e,t,n){return x(n)},t.OptionalIndexedAccessType=function(e,t){return c(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return a(t)&&t.callee===e||u(t)&&t.object===e},t.SequenceExpression=function(e,t){const n=t.type;return!("SequenceExpression"===n||"ParenthesizedExpression"===n||"MemberExpression"===n&&t.property===e||"OptionalMemberExpression"===n&&t.property===e||"TemplateLiteral"===n)&&("ClassDeclaration"===n||("ForOfStatement"===n?t.right===e:"ExportDefaultDeclaration"===n||!d(t)))},t.TSSatisfiesExpression=t.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||("BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||S(e,t))},t.TSConditionalType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||"TSTypeOperator"===n||"TSTypeParameter"===n||(("TSIntersectionType"===n||"TSUnionType"===n)&&t.types[0]===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e))},t.TSConstructorType=t.TSFunctionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSUnionType"===n||"TSTypeOperator"===n||"TSOptionalType"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e)},t.TSInferType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||!(!e.typeParameter.constraint||"TSIntersectionType"!==n&&"TSUnionType"!==n||t.types[0]!==e)},t.TSInstantiationExpression=function(e,t){const n=t.type;return("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n||"TSInstantiationExpression"===n)&&!!t.typeParameters},t.TSIntersectionType=function(e,t){const n=t.type;return"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.UnaryLike=t.TSTypeAssertion=C,t.TSTypeOperator=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.TSUnionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){const n=t.type;return"ArrayTypeAnnotation"===n||"NullableTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"UnionTypeAnnotation"===n},t.UpdateExpression=function(e,t){return b(e,t)||v(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){const n=t.type;return"BinaryExpression"===n||"LogicalExpression"===n||"UnaryExpression"===n||"SpreadElement"===n||b(e,t)||"AwaitExpression"===n&&h(e)||"ConditionalExpression"===n&&e===t.test||v(e,t)||y(n)};var r=n(58135),i=n(21956);const{isArrayTypeAnnotation:s,isBinaryExpression:o,isCallExpression:a,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:u,isObjectPattern:p,isOptionalMemberExpression:f,isYieldExpression:h,isStatement:d}=r,m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function g(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?m.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?m.get("in"):void 0}function y(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const v=(e,t)=>{const n=t.type;return("ClassDeclaration"===n||"ClassExpression"===n)&&t.superClass===e},b=(e,t)=>{const n=t.type;return("MemberExpression"===n||"OptionalMemberExpression"===n)&&t.object===e||("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n)&&t.callee===e||"TaggedTemplateExpression"===n&&t.tag===e||"TSNonNullExpression"===n};function x(e){return Boolean(e&(i.TokenContext.expressionStatement|i.TokenContext.arrowBody))}function S(e,t){const n=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===n&&"**"===t.operator)return t.left===e;if(v(e,t))return!0;if(b(e,t)||"UnaryExpression"===n||"SpreadElement"===n||"AwaitExpression"===n)return!0;const r=g(t,n);if(null!=r){const i=g(e,e.type);if(r===i&&"BinaryExpression"===n&&t.right===e||r>i)return!0}}function C(e,t){return b(e,t)||o(t)&&"**"===t.operator&&t.left===e||v(e,t)}function E(e,t){const n=t.type;return!!("UnaryExpression"===n||"SpreadElement"===n||"BinaryExpression"===n||"LogicalExpression"===n||"ConditionalExpression"===n&&t.test===e||"AwaitExpression"===n||y(n))||C(e,t)}},46026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor({identifier:e,scope:t,path:n,kind:r}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=n,this.kind=r,"var"!==r&&"hoisted"!==r||!function(e){const t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:n,key:r}=e;n;({parentPath:n,key:r}=n)){if(n.isFunctionParent())return!1;if("left"===r&&n.isForXStatement()||t&&"body"===r&&n.isLoop())return!0}return!1}(n)||this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},47695:(e,t,n)=>{"use strict";n.d(t,{p:()=>p});const r=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),s=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),a=Symbol("Comlink.thrown"),l=e=>"object"==typeof e&&null!==e||"function"==typeof e,c={canHandle:e=>l(e)&&e[r],serialize(e){const{port1:t,port2:n}=new MessageChannel;return p(e,t),[n,[n]]},deserialize:e=>(e.start(),function(e){const t=new Map;return e.addEventListener("message",(function(e){const{data:n}=e;if(!n||!n.id)return;const r=t.get(n.id);if(r)try{r(n)}finally{t.delete(n.id)}})),y(e,t,[],void 0)}(e))},u=new Map([["proxy",c],["throw",{canHandle:e=>l(e)&&a in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function p(e,t=globalThis,n=["*"]){t.addEventListener("message",(function i(s){if(!s||!s.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);const{id:l,type:c,path:u}=Object.assign({path:[]},s.data),h=(s.data.argumentList||[]).map(S);let d;try{const t=u.slice(0,-1).reduce(((e,t)=>e[t]),e),n=u.reduce(((e,t)=>e[t]),e);switch(c){case"GET":d=n;break;case"SET":t[u.slice(-1)[0]]=S(s.data.value),d=!0;break;case"APPLY":d=n.apply(t,h);break;case"CONSTRUCT":d=function(e){return Object.assign(e,{[r]:!0})}(new n(...h));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;p(e,n),d=function(e,t){return b.set(e,t),e}(t,[t])}break;case"RELEASE":d=void 0;break;default:return}}catch(e){d={value:e,[a]:0}}Promise.resolve(d).catch((e=>({value:e,[a]:0}))).then((n=>{const[r,s]=x(n);t.postMessage(Object.assign(Object.assign({},r),{id:l}),s),"RELEASE"===c&&(t.removeEventListener("message",i),f(t),o in e&&"function"==typeof e[o]&&e[o]())})).catch((e=>{const[n,r]=x({value:new TypeError("Unserializable return value"),[a]:0});t.postMessage(Object.assign(Object.assign({},n),{id:l}),r)}))})),t.start&&t.start()}function f(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function h(e){if(e)throw new Error("Proxy has been released and is not useable")}function d(e){return C(e,new Map,{type:"RELEASE"}).then((()=>{f(e)}))}const m=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(m.get(e)||0)-1;m.set(e,t),0===t&&d(e)}));function y(e,t,n=[],r=function(){}){let o=!1;const a=new Proxy(r,{get(r,i){if(h(o),i===s)return()=>{!function(e){g&&g.unregister(e)}(a),d(e),t.clear(),o=!0};if("then"===i){if(0===n.length)return{then:()=>a};const r=C(e,t,{type:"GET",path:n.map((e=>e.toString()))}).then(S);return r.then.bind(r)}return y(e,t,[...n,i])},set(r,i,s){h(o);const[a,l]=x(s);return C(e,t,{type:"SET",path:[...n,i].map((e=>e.toString())),value:a},l).then(S)},apply(r,s,a){h(o);const l=n[n.length-1];if(l===i)return C(e,t,{type:"ENDPOINT"}).then(S);if("bind"===l)return y(e,t,n.slice(0,-1));const[c,u]=v(a);return C(e,t,{type:"APPLY",path:n.map((e=>e.toString())),argumentList:c},u).then(S)},construct(r,i){h(o);const[s,a]=v(i);return C(e,t,{type:"CONSTRUCT",path:n.map((e=>e.toString())),argumentList:s},a).then(S)}});return function(e,t){const n=(m.get(t)||0)+1;m.set(t,n),g&&g.register(e,t,e)}(a,e),a}function v(e){const t=e.map(x);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const b=new WeakMap;function x(e){for(const[t,n]of u)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},i]}return[{type:"RAW",value:e},b.get(e)||[]]}function S(e){switch(e.type){case"HANDLER":return u.get(e.name).deserialize(e.value);case"RAW":return e.value}}function C(e,t,n,r){return new Promise((i=>{const s=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.set(s,i),e.start&&e.start(),e.postMessage(Object.assign({id:s},n),r)}))}},50240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var r=n(39813),i=n(10215);const s=t.smart=(0,i.default)(r.smart),o=t.statement=(0,i.default)(r.statement),a=t.statements=(0,i.default)(r.statements),l=t.expression=(0,i.default)(r.expression),c=t.program=(0,i.default)(r.program);t.default=Object.assign(s.bind(void 0),{smart:s,statement:o,statements:a,expression:l,program:c,ast:s.ast})},51597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseNode=function(e,t,n,i,o,a,l){const c=s[e.type];if(!c)return!1;const u=new r.default(n,t,i,o);if(l)return(null==a||!a[o.parentKey])&&u.visitQueue([o]);for(const t of c)if((null==a||!a[t])&&u.visit(e,t))return!0;return!1};var r=n(96647),i=(n(32670),n(58135));n(44537);const{VISITOR_KEYS:s}=i},52658:(e,t,n)=>{"use strict";e.exports=n(62949)},53476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=y,t._getPattern=v,t.get=function(e,t=!0){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?y.call(this,e,t):v.call(this,n,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},t.getAssignmentIdentifiers=function(){return s(this.node)},t.getBindingIdentifierPaths=function(e=!1,t=!1){const n=[this],r=Object.create(null);for(;n.length;){const i=n.shift();if(!i)continue;if(!i.node)continue;const s=o.keys[i.node.type];if(i.isIdentifier())e?(r[i.node.name]=r[i.node.name]||[]).push(i):r[i.node.name]=i;else if(i.isExportDeclaration()){const e=i.get("declaration");e.isDeclaration()&&n.push(e)}else{if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(s)for(let e=0;e<s.length;e++){const t=s[e],r=i.get(t);Array.isArray(r)?n.push(...r):r.node&&n.push(r)}}}return r},t.getBindingIdentifiers=function(e){return o(this.node,e)},t.getCompletionRecords=function(e=!1){return g(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map((e=>e.path))},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},t.getOuterBindingIdentifierPaths=function(e=!1){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return a(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return r.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var r=n(32670),i=n(58135);const{getAssignmentIdentifiers:s,getBindingIdentifiers:o,getOuterBindingIdentifiers:a,numericLiteral:l,unaryExpression:c}=i,u=0,p=1;function f(e,t,n){return e&&t.push(...g(e,n)),t}function h(e){e.forEach((e=>{e.type=p}))}function d(e,t){e.forEach((e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(c("void",l(0))):e.path.remove())}))}function m(e,t){const n=[];if(t.canHaveBreak){let r=[];for(let i=0;i<e.length;i++){const s=e[i],o=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?o.shouldPopulateBreak=!0:o.shouldPopulateBreak=!1;const a=g(s,o);if(a.length>0&&a.every((e=>e.type===p))){r.length>0&&a.every((e=>e.path.isBreakStatement({label:null})))?(h(r),n.push(...r),r.some((e=>e.path.isDeclaration()))&&(n.push(...a),t.shouldPreserveBreak||d(a,!0)),t.shouldPreserveBreak||d(a,!1)):(n.push(...a),t.shouldPopulateBreak||t.shouldPreserveBreak||d(a,!0));break}if(i===e.length-1)n.push(...a);else{r=[];for(let e=0;e<a.length;e++){const t=a[e];t.type===p&&n.push(t),t.type===u&&r.push(t)}}}}else if(e.length)for(let r=e.length-1;r>=0;r--){const i=g(e[r],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){n.push(...i);break}}return n}function g(e,t){let n=[];if(e.isIfStatement())n=f(e.get("consequent"),n,t),n=f(e.get("alternate"),n,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return f(e.get("body"),n,t);if(e.isProgram()||e.isBlockStatement())return m(e.get("body"),t);if(e.isFunction())return g(e.get("body"),t);if(e.isTryStatement())n=f(e.get("block"),n,t),n=f(e.get("handler"),n,t);else{if(e.isCatchClause())return f(e.get("body"),n,t);if(e.isSwitchStatement())return function(e,t,n){let r=[];for(let i=0;i<e.length;i++){const s=g(e[i],n),o=[],a=[];for(const e of s)e.type===u&&o.push(e),e.type===p&&a.push(e);o.length&&(r=o),t.push(...a)}return t.push(...r),t}(e.get("cases"),n,t);if(e.isSwitchCase())return m(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?n.push(function(e){return{type:p,path:e}}(e)):n.push(function(e){return{type:u,path:e}}(e))}}return n}function y(e,t){const n=this.node,i=n[e];return Array.isArray(i)?i.map(((s,o)=>r.default.get({listKey:e,parentPath:this,parent:n,container:i,key:o}).setContext(t))):r.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)}function v(e,t){let n=this;for(const r of e)n="."===r?n.parentPath:Array.isArray(n)?n[r]:n.get(r,t);return n}},54683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(58431),i=n(80004),s=n(46026),o=n(52658),a=n(58135),l=a,c=n(56266);const{assignmentExpression:u,callExpression:p,cloneNode:f,getBindingIdentifiers:h,identifier:d,isArrayExpression:m,isBinary:g,isCallExpression:y,isClass:v,isClassBody:b,isClassDeclaration:x,isExportAllDeclaration:S,isExportDefaultDeclaration:C,isExportNamedDeclaration:E,isFunctionDeclaration:k,isIdentifier:w,isImportDeclaration:T,isLiteral:_,isMemberExpression:P,isMethod:A,isModuleSpecifier:I,isNullLiteral:M,isObjectExpression:O,isProperty:B,isPureish:F,isRegExpLiteral:L,isSuper:D,isTaggedTemplateExpression:N,isTemplateLiteral:R,isThisExpression:j,isUnaryExpression:W,isVariableDeclaration:U,expressionStatement:V,matchesPattern:H,memberExpression:q,numericLiteral:G,toIdentifier:K,variableDeclaration:$,variableDeclarator:J,isRecordExpression:X,isTupleExpression:z,isObjectProperty:Y,isTopicReference:Q,isMetaProperty:Z,isPrivateName:ee,isExportDeclaration:te,buildUndefinedNode:ne,sequenceExpression:re}=a;function ie(e,t){switch(null==e?void 0:e.type){default:var n;if(T(e)||te(e))if((S(e)||E(e)||T(e))&&e.source)ie(e.source,t);else if((E(e)||T(e))&&null!=(n=e.specifiers)&&n.length)for(const n of e.specifiers)ie(n,t);else(C(e)||E(e))&&e.declaration&&ie(e.declaration,t);else I(e)?ie(e.local,t):!_(e)||M(e)||L(e)||R(e)||t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":ie(e.object,t),ie(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":ie(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const n of e.properties)ie(n,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":ie(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":ie(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),ie(e.argument,t);break;case"AwaitExpression":t.push("await"),ie(e.argument,t);break;case"AssignmentExpression":ie(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":ie(e.id,t);break;case"ParenthesizedExpression":ie(e.expression,t);break;case"MetaProperty":ie(e.meta,t),ie(e.property,t);break;case"JSXElement":ie(e.openingElement,t);break;case"JSXOpeningElement":ie(e.name,t);break;case"JSXFragment":ie(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":ie(e.namespace,t),ie(e.name,t)}}function se(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var oe=Symbol.for("should not be considered a local binding");const ae={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){l.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){const n=e.get("left");if(n.isPattern()||n.isIdentifier())t.constantViolations.push(e);else if(n.isVar()){const{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",n)}},ExportDeclaration:{exit(e){const{node:t,scope:n}=e;if(S(t))return;const r=t.declaration;if(x(r)||k(r)){const t=r.id;if(!t)return;const i=n.getBinding(t.name);null==i||i.reference(e)}else if(U(r))for(const t of r.declarations)for(const r of Object.keys(h(t))){const t=n.getBinding(r);null==t||t.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){const t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){const t=e.get("params");for(const n of t)e.scope.registerBinding("param",n);e.isFunctionExpression()&&e.node.id&&!e.node.id[oe]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[oe]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}};let le,ce=0;class ue{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:t}=e,n=c.scope.get(t);if((null==n?void 0:n.path)===e)return n;c.scope.set(t,this),this.uid=ce++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let t,n=this.path;do{var r;const e="key"===n.key||"decorators"===n.listKey;n=n.parentPath,e&&n.isMethod()&&(n=n.parentPath),null!=(r=n)&&r.isScope()&&(t=n)}while(n&&!t);return null==(e=t)?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),f(t)}generateUidIdentifier(e){return d(this.generateUid(e))}generateUid(e="temp"){let t;e=K(e).replace(/^_+/,"").replace(/\d+$/g,"");let n=0;do{t=`_${e}`,n>=11?t+=n-1:n>=9?t+=n-9:n>=1&&(t+=n+1),n++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const r=this.getProgramParent();return r.references[t]=!0,r.uids[t]=!0,t}generateUidBasedOnNode(e,t){const n=[];ie(e,n);let r=n.join("$");return r=r.replace(/^_/,"")||t||"ref",this.generateUid(r.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return d(this.generateUidBasedOnNode(e,t))}isStatic(e){if(j(e)||D(e)||Q(e))return!0;if(w(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const n=this.generateUidIdentifierBasedOnNode(e);return t?n:(this.push({id:n}),f(n))}}checkBlockScopedCollisions(e,t,n,r){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(r,`Duplicate declaration "${n}"`,TypeError)}rename(e,t){const n=this.getBinding(e);n&&(t||(t=this.generateUidIdentifier(e).name),new r.default(n,e,t).rename(arguments[2]))}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const n=t.bindings[e];console.log(" -",e,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.kind})}}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){const t=e.get("declarations"),{kind:n}=e.node;for(const e of t)this.registerBinding("using"===n||"await using"===n?"const":n,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t="type"===e.node.importKind||"typeof"===e.node.importKind,n=e.get("specifiers");for(const e of n){const n=t||e.isImportSpecifier()&&("type"===e.node.importKind||"typeof"===e.node.importKind);this.registerBinding(n?"unknown":"module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return ne()}registerConstantViolation(e){const t=e.getAssignmentIdentifiers();for(const r of Object.keys(t)){var n;null==(n=this.getBinding(r))||n.reassign(e)}}registerBinding(e,t,n=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const n=t.get("declarations");for(const t of n)this.registerBinding(e,t);return}const r=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(i)){r.references[t]=!0;for(const r of i[t]){const i=this.getOwnBinding(t);if(i){if(i.identifier===r)continue;this.checkBlockScopedCollisions(i,e,t,r)}i?i.reassign(n):this.bindings[t]=new s.default({identifier:r,scope:this,path:n,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(w(e)){const n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(j(e)||Z(e)||Q(e)||ee(e))return!0;var n,r,i;if(v(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&!((null==(n=e.decorators)?void 0:n.length)>0)&&this.isPure(e.body,t);if(b(e)){for(const n of e.body)if(!this.isPure(n,t))return!1;return!0}if(g(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(m(e)||z(e)){for(const n of e.elements)if(null!==n&&!this.isPure(n,t))return!1;return!0}if(O(e)||X(e)){for(const n of e.properties)if(!this.isPure(n,t))return!1;return!0}if(A(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(r=e.decorators)?void 0:r.length)>0);if(B(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(i=e.decorators)?void 0:i.length)>0||(Y(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(W(e))return this.isPure(e.argument,t);if(R(e)){for(const n of e.expressions)if(!this.isPure(n,t))return!1;return!0}return N(e)?H(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):P(e)?!e.computed&&w(e.object)&&"Symbol"===e.object.name&&w(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):y(e)?H(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&l.isStringLiteral(e.arguments[0]):F(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const n=t.data[e];if(null!=n)return n}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const e=this.path;se(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);const n=t,r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,le||(le=i.default.visitors.merge([{Scope(e){se(e.scope)}},ae])),"Program"!==e.type){for(const t of le.enter)t.call(r,e,r);const t=le[e.type];if(t)for(const n of t.enter)n.call(r,e,r)}e.traverse(le,r),this.crawling=!1;for(const e of r.assignments){const t=e.getAssignmentIdentifiers();for(const r of Object.keys(t))e.scope.getBinding(r)||n.addGlobal(t[r]);e.scope.registerConstantViolation(e)}for(const e of r.references){const t=e.scope.getBinding(e.node.name);t?t.reference(e):n.addGlobal(e.node)}for(const e of r.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isPattern()?t=this.getPatternParent().path:t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path);const{init:n,unique:r,kind:i="var",id:s}=e;if(!n&&!r&&("var"===i||"let"===i)&&t.isFunction()&&!t.node.name&&y(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&w(s))return t.pushContainer("params",s),void t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const o=null==e._blockHoist?2:e._blockHoist,a=`declaration:${i}:${o}`;let l=!r&&t.getData(a);if(!l){const e=$(i,[]);e._blockHoist=o,[l]=t.unshiftContainer("body",[e]),r||t.setData(a,l)}const c=J(s,n),u=l.node.declarations.push(c);t.scope.registerBinding(i,l.get("declarations")[u-1])}getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do{if(!e.path.isPattern())return e.getBlockParent()}while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const n of Object.keys(t.bindings))n in e==0&&(e[n]=t.bindings[n]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,n=this;do{const i=n.getOwnBinding(e);var r;if(i){if(null==(r=t)||!r.isPattern()||"param"===i.kind||"local"===i.kind)return i}else if(!i&&"arguments"===e&&n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;t=n.path}while(n=n.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;let n,r,i;"object"==typeof t?(n=t.noGlobals,r=t.noUids,i=t.upToScope):"boolean"==typeof t&&(n=t);let s=this;do{if(i===s)break;if(s.hasOwnBinding(e))return!0}while(s=s.parent);return!(r||!this.hasUid(e))||!(n||!ue.globals.includes(e))||!(n||!ue.contextVariables.includes(e))}parentHasBinding(e,t){var n;return null==(n=this.parent)?void 0:n.hasBinding(e,t)}moveBindingTo(e,t){const n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);{let t=this;do{t.uids[e]&&(t.uids[e]=!1)}while(t=t.parent)}}hoistVariables(e=e=>this.push({id:e})){this.crawl();const t=new Set;for(const n of Object.keys(this.bindings)){const r=this.bindings[n];if(!r)continue;const{path:i}=r;if(!i.isVariableDeclarator())continue;const{parent:s,parentPath:o}=i;if("var"!==s.kind||t.has(s))continue;let a;t.add(i.parent);const l=[];for(const t of s.declarations){null!=a||(a=t.id),t.init&&l.push(u("=",t.id,t.init));const n=Object.keys(h(t,!1,!0,!0));for(const r of n)e(d(r),null!=t.init)}if(o.parentPath.isFor({left:s}))o.replaceWith(a);else if(0===l.length)o.remove();else{const e=1===l.length?l[0]:re(l);o.parentPath.isForStatement({init:s})?o.replaceWith(e):o.replaceWith(V(e))}}}}t.default=ue,ue.globals=Object.keys(o.builtin),ue.contextVariables=["arguments","undefined","Infinity","NaN"],ue.prototype._renameFromMap=function(e,t,n,r){e[t]&&(e[n]=r,e[t]=null)},ue.prototype.traverse=function(e,t,n){(0,i.default)(e,t,this,n,this.path)},ue.prototype._generateUid=function(e,t){let n=e;return t>1&&(n+=t),`_${n}`},ue.prototype.toArray=function(e,t,n){if(w(e)){const t=this.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(m(e))return e;if(w(e,{name:"arguments"}))return p(q(q(q(d("Array"),d("prototype")),d("slice")),d("call")),[e]);let r;const i=[e];return!0===t?r="toConsumableArray":"number"==typeof t?(i.push(G(t)),r="slicedToArray"):r="toArray",n&&(i.unshift(this.path.hub.addHelper(r)),r="maybeArrayLike"),p(this.path.hub.addHelper(r),i)},ue.prototype.getAllBindingsOfKind=function(...e){const t=Object.create(null);for(const n of e){let e=this;do{for(const r of Object.keys(e.bindings)){const i=e.bindings[r];i.kind===n&&(t[r]=i)}e=e.parent}while(e)}return t},Object.defineProperties(ue.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})},56266:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),s()},t.clearPath=i,t.clearScope=s,t.getCachedPaths=function(e){const{parent:t,parentPath:r}=e;return n.get(t)},t.getOrCreateCachedPaths=function(e,t){let r=n.get(e);return r||n.set(e,r=new Map),r},t.scope=t.path=void 0;let n=t.path=new WeakMap,r=t.scope=new WeakMap;function i(){t.path=n=new WeakMap}function s(){t.scope=r=new WeakMap}},56611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(98952),i=n(96230),s=n(14007);const o=(e,t)=>n=>e(t(n));function a(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:o(o(e.white,e.bgRed),e.bold),gutter:e.gray,marker:o(e.red,e.bold),message:o(e.red,e.bold),reset:e.reset}}const l=a(r.createColors(!0)),c=a(r.createColors(!1));function u(e){return e?l:c}const p=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,h=/^[()[\]{}]$/;let d;{const e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if(s.isKeyword(t.value)||s.isStrictReservedWord(t.value,!0)||p.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"</"===r.slice(n-2,n)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&h.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};d=function*(e){let n;for(;n=i.default.exec(e);){const r=i.matchToToken(n);yield{type:t(r,n.index,e),value:r.value}}}}function m(e){if(""===e)return"";const t=u(!0);let n="";for(const{type:r,value:i}of d(e))n+=r in t?i.split(f).map((e=>t[r](e))).join("\n"):i;return n}let g=!1;const y=/\r\n|[\n\r\u2028\u2029]/;function v(e,t,n={}){const i=n.forceColor||("object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR)&&r.isColorSupported&&n.highlightCode,s=u(i),o=e.split(y),{start:a,end:l,markerLines:c}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:s=2,linesBelow:o=3}=n||{},a=r.line,l=r.column,c=i.line,u=i.column;let p=Math.max(a-(s+1),0),f=Math.min(t.length,c+o);-1===a&&(p=0),-1===c&&(f=t.length);const h=c-a,d={};if(h)for(let e=0;e<=h;e++){const n=e+a;if(l)if(0===e){const e=t[n-1].length;d[n]=[l,e-l+1]}else if(e===h)d[n]=[0,u];else{const r=t[n-e].length;d[n]=[0,r]}else d[n]=!0}else d[a]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:f,markerLines:d}}(t,o,n),p=t.start&&"number"==typeof t.start.column,f=String(l).length;let h=(i?m(e):e).split(y,l).slice(a,l).map(((e,t)=>{const r=a+1+t,i=` ${` ${r}`.slice(-f)} |`,o=c[r],l=!c[r+1];if(o){let t="";if(Array.isArray(o)){const r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),a=o[1]||1;t=["\n ",s.gutter(i.replace(/\d/g," "))," ",r,s.marker("^").repeat(a)].join(""),l&&n.message&&(t+=" "+s.message(n.message))}return[s.marker(">"),s.gutter(i),e.length>0?` ${e}`:"",t].join("")}return` ${s.gutter(i)}${e.length>0?` ${e}`:""}`})).join("\n");return n.message&&!p&&(h=`${" ".repeat(f+1)}${n.message}\n${h}`),i?s.reset(h):h}t.codeFrameColumns=v,t.default=function(e,t,n,r={}){if(!g){g=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return v(e,{start:{column:n=Math.max(n,0),line:t}},r)},t.highlight=m},57734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),u(this,e.label)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},t.ContinueStatement=function(e){this.word("continue"),u(this,e.label)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);{const t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const t=e.alternate&&o(l(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},t.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},t.ReturnStatement=function(e){this.word("return"),u(this,e.argument)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0,void 0,(function(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1})),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),u(this,e.argument)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:n}=e;"await using"===n?(this.word("await"),this.space(),this.word("using",!0)):this.word(n,"using"===n),this.space();let r=!1;if(!i(t))for(const t of e.declarations)t.init&&(r=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,r?function(e){this.token(",",!1,e),this.newline()}:void 0),i(t))if(s(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};var r=n(58135);const{isFor:i,isForStatement:s,isIfStatement:o,isStatement:a}=r;function l(e){const{body:t}=e;return!1===a(t)?e:l(t)}function c(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const n=this.enterForXStatementInit(t);this.print(e.left),null==n||n()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function u(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}t.ForInStatement=c,t.ForOfStatement=c},58121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedGenerators=function(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}};Object.assign(e.prototype,t)}}},58231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,n;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()},t.ExportDefaultDeclaration=function(e){f(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=i.TokenContext.exportDefault;const t=e.declaration;this.print(t),u(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported)},t.ExportNamedDeclaration=function(e){if(f(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t),u(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const r=e.specifiers.slice(0);let i=!1;for(;;){const e=r[0];if(!o(e)&&!a(e))break;i=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space())}let s=!1;var t,n;(r.length||!r.length&&!i)&&(s=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,s)):this.print(e.source)),this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,n;this.word("import"),this.space();const r="type"===e.importKind||"typeof"===e.importKind;r?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const i=e.specifiers.slice(0),s=!!i.length;for(;s;){const e=i[0];if(!l(e)&&!c(e))break;this.print(i.shift()),i.length&&(this.tokenChar(44),this.space())}let o=!1;i.length?(o=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):r&&!s&&(o=!0,this.tokenChar(123),this.tokenChar(125)),(s||r)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,o)):this.print(e.source),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);const t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},t._printAttributes=function(e,t){var n;const{importAttributesKeyword:r}=this.format,{attributes:i,assertions:s}=e;i&&!r&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!p&&(p=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const o="assert"===r||!r&&s;if(this.word(o?"assert":"with"),this.space(),!o&&("with-legacy"===r||!r&&null!=(n=e.extra)&&n.deprecatedWithLegacySyntax))return void this.printList(i||s);const a=t?1:0;this.token("{",null,a),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,a)};var r=n(58135),i=n(21956);const{isClassDeclaration:s,isExportDefaultSpecifier:o,isExportNamespaceSpecifier:a,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:c,isStatement:u}=r;let p=!1;function f(e,t){s(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}},58252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUnionType=function(e){return e.every((e=>a(e)))?i?i(e):o(e):e.every((e=>l(e)))&&s?s(e):void 0};var r=n(58135);const{createFlowUnionType:i,createTSUnionType:s,createUnionTypeAnnotation:o,isFlowType:a,isTSType:l}=r},58431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(58135),i=r,s=n(51597),o=n(95957),a=n(44537);const{getAssignmentIdentifiers:l}=i,c={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},n){const{name:r}=e.key;var i;!e.shorthand||r!==n.oldName&&r!==n.newName||t.getBindingIdentifier(r)!==n.binding.identifier||(e.shorthand=!1,null!=(i=e.extra)&&i.shorthand&&(e.extra.shorthand=!1))},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const n=e.isAssignmentExpression()?l(e.node):e.getOuterBindingIdentifiers();for(const e in n)e===t.oldName&&(n[e].name=t.newName)}};t.default=class{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){const{declaration:e}=t.node;if(r.isDeclaration(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){const{binding:e,oldName:t,newName:n}=this,{scope:i,path:a}=e,l=a.find((e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()));l&&l.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(l);const u=arguments[0]||i.block,p={discriminant:!0};r.isMethod(u)&&(u.computed&&(p.key=!0),r.isObjectMethod(u)||(p.decorators=!0)),(0,s.traverseNode)(u,(0,o.explode)(c),i,this,i.path,p),arguments[0]||(i.removeOwnBinding(t),i.bindings[n]=e,this.binding.identifier.name=n),l&&(this.maybeConvertFromClassFunctionDeclaration(a),this.maybeConvertFromClassFunctionExpression(a))}}},61593:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,n){const r=[],s=[];let o=c(e,t,s);const a=p(e,t,n);if(a){const t=c(e,a.ifStatement);o=o.filter((e=>!t.includes(e))),r.push(a.typeAnnotation)}if(o.length){o.push(...s);for(const e of o)r.push(e.getTypeAnnotation())}if(r.length)return(0,i.createUnionType)(r)}(t,this,e.name):"undefined"===e.name?l():"NaN"===e.name||"Infinity"===e.name?a():void e.name};var r=n(58135),i=n(58252);const{BOOLEAN_NUMBER_BINARY_OPERATORS:s,createTypeAnnotationBasedOnTypeof:o,numberTypeAnnotation:a,voidTypeAnnotation:l}=r;function c(e,t,n){const r=e.constantViolations.slice();return r.unshift(e.path),r.filter((e=>{const r=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===r&&n.push(e),"before"===r}))}function u(e,t){const n=t.node.operator,r=t.get("right").resolve(),i=t.get("left").resolve();let l,c,u;if(i.isIdentifier({name:e})?l=r:r.isIdentifier({name:e})&&(l=i),l)return"==="===n?l.getTypeAnnotation():s.includes(n)?a():void 0;if("==="!==n&&"=="!==n)return;if(i.isUnaryExpression({operator:"typeof"})?(c=i,u=r):r.isUnaryExpression({operator:"typeof"})&&(c=r,u=i),!c)return;if(!c.get("argument").isIdentifier({name:e}))return;if(u=u.resolve(),!u.isLiteral())return;const p=u.node.value;return"string"==typeof p?o(p):void 0}function p(e,t,n){const r=function(e,t,n){let r;for(;r=t.parentPath;){if(r.isIfStatement()||r.isConditionalExpression()){if("test"===t.key)return;return r}if(r.isFunction()&&r.parentPath.scope.getBinding(n)!==e)return;t=r}}(e,t,n);if(!r)return;const s=[r.get("test")],o=[];for(let e=0;e<s.length;e++){const t=s[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(s.push(t.get("left")),s.push(t.get("right")));else if(t.isBinaryExpression()){const e=u(n,t);e&&o.push(e)}}return o.length?{typeAnnotation:(0,i.createUnionType)(o),ifStatement:r}:p(e,r,n)}},62798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94403);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(6385);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(57734);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var o=n(19534);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=n(74564);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l=n(58231);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(32387);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(93464);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var p=n(22005);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var f=n(25083);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var h=n(39919);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}))},62949:e=>{"use strict";e.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')},64231:(e,t,n)=>{"use strict";n.d(t,{R:()=>ue});var r=n(73310),i=n(83705),s=n(40580),o=n(58135),a=n(80004),l=n(69740),c=n(90689),u="@next-tsx/core",p=["callApi","callHttp","callTool","callProvider","copyText","showDialog"],f=["push","replace","reload","pushQuery","replaceQuery"];function h(e,t){return!e.async&&!e.generator||(t.errors.push({message:"Function cannot be async or generator",node:e,severity:"error"}),!1)}function d(e,t){return!!e.referencesImport(u,t)||e.node.name===t&&!e.scope.getBinding(e.node.name)}function m(e,t){var n=null;return o.traverse(e,{enter:function(e,t){var r;!n&&(o.isFunctionExpression(e)||o.isStatement(e)||o.isAwaitExpression(e)||o.isYieldExpression(e)||o.isJSX(e)||o.isArrowFunctionExpression(e)&&(e.async||e.generator||o.isBlockStatement(e.body)||o.isObjectProperty(null===(r=t[t.length-1])||void 0===r?void 0:r.node)))&&(n=e)}}),!n||(null==t||t.errors.push({message:"Unsupported expression type: ".concat(n.type),node:n,severity:"error"}),!1)}function g(e){return e.isNullLiteral()||e.isIdentifier()&&"undefined"===e.node.name&&void 0===e.scope.getBinding("undefined")}var y=/^<%=?\s/,v=/\s%>$/;function b(e){if("string"!=typeof e)return!1;var t=e.trim();return y.test(t)&&v.test(t)}function x(e){return e.isCallExpression()||e.isOptionalCallExpression()}function S(e){return e.isMemberExpression()||e.isOptionalMemberExpression()}var C=[".js",".jsx",".ts",".tsx"];function E(e,t,n){if(e.startsWith("/"))return k(e,n);if(e.startsWith("./")||e.startsWith("../")){var i,s=t.substring(0,t.lastIndexOf("/")),o=s?s.split("/"):[""],a=e.split("/"),l=(0,r.A)(a);try{for(l.s();!(i=l.n()).done;){var c=i.value;"."!==c&&(".."===c?o.length>0&&o.pop():o.push(c))}}catch(e){l.e(e)}finally{l.f()}return k(o.join("/"),n)}return e}function k(e,t){if(t.some((function(t){return t.filePath===e})))return e;var n,i=(0,r.A)(C);try{var s,o=function(){var r=n.value;if(t.some((function(t){return t.filePath==="".concat(e).concat(r)})))return{v:"".concat(e).concat(r)}};for(i.s();!(n=i.n()).done;)if(s=o())return s.v}catch(e){i.e(e)}finally{i.f()}return e}function w(e,t,n,r){var i;if(!e.isReferencedIdentifier())return null;var s=e.node.name,o=e.scope.getBinding(s);if(!o)return null;if(null!==(i=r.contextBindings)&&void 0!==i&&i.has(o.identifier))return{type:"local",name:s};if("module"===o.kind&&o.path.isImportSpecifier()&&o.path.parentPath.isImportDeclaration()){var a=o.path.get("imported");if(!a.isIdentifier())return t.errors.push({message:"Unsupported import specifier type: ".concat(a.type),node:a.node,severity:"error"}),null;var l=o.path.parentPath.get("source");return{type:"imported",name:a.node.name,importSource:E(l.node.value,t.filePath,n.files)}}return t.errors.push({message:'Unsupported context binding for "'.concat(s,'"'),node:o.identifier,severity:"error"}),null}function T(e,t){return"CONTEXT_PROVIDER__".concat(e,"__").concat(t)}function _(e){return"context-agent-".concat(e)}var P=new Map([["BASE_URL","BASE_URL"],["translate","I18N"],["translateByRecord","I18N_TEXT"]]);function A(e,t,n,i,s){var o,a=e.isFunctionDeclaration();if(a&&!h(e.node,t))return null;var l=[],u={Identifier:function(s){var o,u,p,f,h,m,g;if(s.isReferencedIdentifier()){var y,v=s.parentPath.isObjectProperty()&&s.parentPath.node.shorthand,b=s.node.name,x=(0,r.A)(P);try{for(x.s();!(y=x.n()).done;){var S=(0,c.A)(y.value,2),C=S[0],k=S[1];if(d(s,C))return void l.push({type:"id",start:s.node.start,end:s.node.end,replacement:k,shorthand:v?b:void 0})}}catch(e){x.e(e)}finally{x.f()}var w=s.scope.getBinding(b);if(w){var _=w.identifier;if("module"===w.kind){var A=w.path.isImportDefaultSpecifier();if(!A&&!w.path.isImportSpecifier())return void t.errors.push({message:'Invalid module binding for "'.concat(b,'"'),node:s.node,severity:"error"});var I,M=w.path.parentPath.node;if(!A){var O=w.path.get("imported");if(!O.isIdentifier())return t.errors.push({message:"Unsupported import specifier type: ".concat(O.type),node:O.node,severity:"error"}),null;I=O.node.name}var B=M.source.value;if(B.startsWith(".")||B.startsWith("/")){var F,L,D=E(B,t.filePath,n.files),N=n.modules.get(D);if("css"===(null==N?void 0:N.moduleType))return a?void t.errors.push({message:"Css imports are not supported for utils functions",node:s.node,severity:"error"}):void(A?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"CONSTANTS[".concat(JSON.stringify(D),"]"),shorthand:v?b:void 0}):t.errors.push({message:"Named imports are not supported for CSS modules",node:s.node,severity:"error"}));"function"===(null===(F=L=A?null==N?void 0:N.defaultExport:null==N?void 0:N.namedExports.get(I))||void 0===F?void 0:F.type)?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"FN.".concat(L.function.name),shorthand:v?b:void 0}):t.errors.push({message:'Invalid usage: "'.concat(b,'"'),node:s.node,severity:"error"})}else switch(B){case"lodash":l.push({type:"id",start:s.node.start,end:s.node.end,replacement:A?"_":"_.".concat(I),shorthand:v?b:void 0});break;case"moment":A?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"moment",shorthand:v?b:void 0}):t.errors.push({message:'Named imports are not supported for "moment" module',node:s.node,severity:"error"})}}if(!a||_!==e.node.id)if(null!==(o=i.functionBindings)&&void 0!==o&&o.has(_))l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"FN.".concat(b),shorthand:v?b:void 0});else{var R;switch(_){case null===(u=i.eventBinding)||void 0===u?void 0:u.id:R=null!==(p=i.eventBinding)&&void 0!==p&&p.isCallback?"EVENT.detail":"EVENT";break;case null===(f=i.forEachBinding)||void 0===f?void 0:f.item:R="ITEM";break;case null===(h=i.forEachBinding)||void 0===h?void 0:h.index:R="INDEX";break;case null===(m=i.dataBinding)||void 0===m?void 0:m.id:R="DATA"}if(R)l.push({type:"id",start:s.node.start,end:s.node.end,replacement:R,shorthand:v?b:void 0});else{var j=null===(g=i.component)||void 0===g?void 0:g.bindingMap.get(_);j&&("state"===j.kind||"resource"===j.kind||"constant"===j.kind||"param"===j.kind||"app"===j.kind||"auth"===j.kind||"location"===j.kind||"query"===j.kind||"pathParams"===j.kind?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"app"===j.kind?"APP":"auth"===j.kind?"SYS":"location"===j.kind?"location":"query"===j.kind?"QUERY":"pathParams"===j.kind?"PATH":"".concat("template"===i.component.type?"STATE":"CTX",".").concat(_.name),shorthand:v?b:void 0}):"context"===j.kind?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"CTX.".concat(T(j.contextProvider.name,j.contextKey)),shorthand:v?b:void 0}):t.errors.push({message:"Invalid usage of ".concat(j.kind,' variable "').concat(_.name,'"'),node:s.node,severity:"error"}))}}}else{var W;null!==(W=i.stateBindings)&&void 0!==W&&W.includes(b)&&l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"CTX.".concat(b),shorthand:v?b:void 0})}}}};a||Object.assign(u,{TSTypeAnnotation:function(e){l.push({type:"annotation",start:e.node.start,end:e.node.end}),e.skip()},TSTypeParameterInstantiation:function(e){l.push({type:"annotation",start:e.node.start,end:e.node.end}),e.skip()},TSAsExpression:function(e){l.push({type:"annotation",start:e.node.expression.end,end:e.node.end}),e.skip()}}),e.isIdentifier()&&u.Identifier(e),e.traverse(u),l.sort((function(e,t){return e.start-t.start}));for(var p=[],f=e.node.start,m=0,g=l;m<g.length;m++){var y=g[m];p.push(t.source.substring(f,y.start),"annotation"===y.type?"":"".concat(y.shorthand?"".concat(y.shorthand,":"):"").concat(y.replacement)),f=y.end}p.push(t.source.substring(f,e.node.end));var v=p.join("");return a||s?v:"<%".concat(null!==(o=i.modifier)&&void 0!==o?o:""," ").concat(v," %>")}var I=Symbol("ambiguous");function M(e,t,n,i){if(e.isTSAsExpression())return M(e.get("expression"),t,n,i);if(e.isObjectExpression())return function(e,t,n,i){var s=e.get("properties");if(s.some((function(e){return e.isSpreadElement()||e.isObjectProperty()&&(e.node.computed||e.node.shorthand)}))&&m(e.node,t))return i.ambiguous?I:A(e,t,n,i);var o,a={},l=(0,r.A)(s);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(c.isObjectProperty())if(c.node.computed||c.node.shorthand)t.errors.push({message:"Unsupported computed or shorthand object property",node:c.node.key,severity:"error"});else{var u=c.get("key"),p=void 0;if(u.isIdentifier())p=u.node.name;else{if(!u.isStringLiteral()){t.errors.push({message:"Unsupported object key type: ".concat(u.node.type),node:u.node,severity:"error"});continue}p=u.node.value}a[p]=M(c.get("value"),t,n,i)}else t.errors.push({message:"Unsupported property type: ".concat(c.type),node:c.node,severity:"error"})}}catch(e){l.e(e)}finally{l.f()}return a}(e,t,n,i);if(e.isArrayExpression())return function(e,t,n,i){var s=e.get("elements");if(s.some((function(e){return!e||e.isSpreadElement()}))&&m(e.node,t))return i.ambiguous?I:A(e,t,n,i);var o,a=[],l=(0,r.A)(s);try{for(l.s();!(o=l.n()).done;){var c=o.value;c.node?c.isSpreadElement()?t.errors.push({message:"Spread elements are not supported in array",node:c.node,severity:"error"}):a.push(M(c,t,n,i)):t.errors.push({message:"Array elements cannot be empty",node:e.node,severity:"error"})}}catch(e){l.e(e)}finally{l.f()}return a}(e,t,n,i);if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(!e.isIdentifier()||"undefined"!==e.node.name||void 0!==e.scope.getBinding("undefined")){if(i.allowUseBrick&&e.isArrowFunctionExpression()){var s=e.get("body");if(s.isBlockStatement())return t.errors.push({message:"Block statements are not supported in render callback",node:s.node,severity:"error"}),null;var o,a=[],l=(0,r.A)(e.get("params"));try{for(l.s();!(o=l.n()).done;){var c=o.value;if(!c.isIdentifier())return t.errors.push({message:"Unsupported parameter type: ".concat(c.type),node:c.node,severity:"error"}),null;a.push(c.node.name)}}catch(e){l.e(e)}finally{l.f()}return{params:a,children:G(s,t,n,i)}}return e.isExpression()?m(e.node,t)?i.ambiguous?I:A(e,t,n,i):null:(t.errors.push({message:"Unsupported value type: ".concat(e.node.type),node:e.node,severity:"error"}),null)}}function O(e,t,n,r){var i=!1;return o.traverse(e.node,{enter:function(e,t){var n,r;i||o.isStringLiteral(e)||o.isNumericLiteral(e)||o.isBooleanLiteral(e)||o.isNullLiteral(e)||o.isObjectExpression(e)||o.isArrayExpression(e)||o.isObjectProperty(e)||o.isIdentifier(e)&&(r=null===(n=t[t.length-1])||void 0===n?void 0:n.node,1)&&(r&&o.isObjectProperty(r)?!r.computed&&!r.shorthand:"undefined"===e.name)||(i=!0)}}),i&&m(e.node,null)?A(e,t,n,r):M(e,t,n,r)}var B=n(17545),F=new Map([["callApi",[2,3]],["callHttp",[1,2]],["callTool",[2,3]]]);function L(e,t,n,i){if(!x(e))return t.errors.push({message:"Expect a call expression here, received ".concat(e.node.type),node:e.node,severity:"error"}),null;var s,o=e.get("callee");if(!o.isIdentifier())return t.errors.push({message:"Expect an identifier here, received ".concat(o.type),node:o.node,severity:"error"}),null;var a,l=(0,r.A)(p);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(d(o,c)){s=c;break}}}catch(e){l.e(e)}finally{l.f()}if(!s)return t.errors.push({message:'Unknown API: "'.concat(o.node.name,'"'),node:o.node,severity:"error"}),null;var u=F.get(s),f=e.get("arguments");if(!u){if("callProvider"===s){if(f.length<1)return t.errors.push({message:'"'.concat(s,'()" expects at least 1 argument, but got ').concat(f.length),node:e.node,severity:"error"}),null;var h=f[0];return h.isStringLiteral()?{api:h.node.value,isRawProvider:!0,params:f.slice(1).map((function(e){return M(e,t,n,i)}))}:(t.errors.push({message:'"'.concat(s,'()" expects a string literal as the first argument, but got ').concat(h.type),node:h.node,severity:"error"}),null)}return{api:"copyText"===s?"basic.copy-to-clipboard":"basic.show-dialog",isRawProvider:!0,params:f.map((function(e){return M(e,t,n,i)}))}}var m,y=f.length<u[0];if((y||!u.includes(f.length))&&(t.errors.push({message:'"'.concat(s,'()" expects ').concat(u.join(" or ")," arguments, but got ").concat(f.length),node:e.node,severity:y?"error":"warning"}),y))return null;var v=f[0];if("callHttp"===s){var S=M(v,t,n,i);if("string"!=typeof S)return t.errors.push({message:'"'.concat(s,'()" expects a string value as the first argument, but got ').concat((0,B.A)(S)),node:v.node,severity:"error"}),null;m={api:S,http:!0}}else if("callApi"===s){if(!v.isStringLiteral())return t.errors.push({message:'"'.concat(s,'()" expects a string literal as the first argument, but got ').concat(v.type),node:v.node,severity:"error"}),null;m={api:v.node.value}}else{var C=M(v,t,n,i);if("string"!=typeof C)return t.errors.push({message:'"'.concat(s,'()" expects a string value as the first argument, but got ').concat((0,B.A)(C)),node:v.node,severity:"error"}),null;var E=f[1],k=M(E,t,n,i);if("string"!=typeof k)return t.errors.push({message:'"'.concat(s,'()" expects a string value as the second argument, but got ').concat((0,B.A)(k)),node:E.node,severity:"error"}),null;var w,T=f[2];T&&(w=M(T,t,n,i)),m={api:s,tool:{conversationId:C,stepId:k},params:w}}if("callApi"===s||"callHttp"===s){var _=f[1];if(_&&!g(_)){_.isObjectExpression()||t.errors.push({message:'Data source "params" prefers an object literal, but got '.concat(_.type),node:_.node,severity:"notice"});var P=M(_,t,n,i);b(P)||"object"===(0,B.A)(P)&&null!==P?m.params=P:t.errors.push({message:"API params expects an object or expression, but got ".concat((0,B.A)(P)),node:_.node,severity:"error"})}}if("callApi"===s){var A=f[2];if(A&&!g(A))if(A.isObjectExpression()){var I,O=A.get("properties"),L=(0,r.A)(O);try{for(L.s();!(I=L.n()).done;){var D=I.value;if(D.isObjectProperty()){var N=D.get("key");if(N.isIdentifier())if("objectId"===N.node.name){var R=D.get("value");if(!g(R)){if(!R.isStringLiteral()){t.errors.push({message:'"callApi()" third param "meta" property "'.concat(N.node.name,'" expects a string literal, but got ').concat(R.type),node:R.node,severity:"error"});continue}m.objectId=R.node.value}}else t.errors.push({message:'"callApi()" third param "meta" property key must be "objectId", but got "'.concat(N.node.name,'"'),node:N.node,severity:"error"});else t.errors.push({message:'"callApi()" third param "meta" property key must be an identifier, but got '.concat(N.type),node:N.node,severity:"error"})}else t.errors.push({message:'"callApi()" third param "meta" expects object properties, but got '.concat(D.type),node:D.node,severity:"error"})}}catch(e){L.e(e)}finally{L.f()}}else t.errors.push({message:'"callApi()" third param "meta" expects an object literal, but got '.concat(A.type),node:A.node,severity:"error"})}return m}function D(e,t,n,r,i){if(!e.isArrowFunctionExpression())return t.errors.push({message:"Event handler must be an arrow function expression, but got ".concat(e.type),node:e.node,severity:"error"}),null;var s=e.get("params");if(s.length>1)return t.errors.push({message:"Event handler arrow function must have at most one parameter, but got ".concat(s.length),node:e.node,severity:"error"}),null;var o=s[0],a=(0,l.A)((0,l.A)({},r),{},{modifier:void 0,eventBinding:void 0});if(o){if(!o.isIdentifier())return t.errors.push({message:"Event handler arrow function parameter must be an identifier, but got ".concat(o.type),node:o.node,severity:"error"}),null;a.eventBinding={id:o.node,isCallback:i}}var c=N(e.get("body"),t,n,a);return c?[].concat(c):null}function N(e,t,n,i,s){if(e.isBlockStatement())return e.get("body").flatMap((function(e){return N(e,t,n,i)})).filter((function(e){return null!==e}));if(e.isIfStatement())return{action:"conditional",payload:{test:M(e.get("test"),t,n,i),consequent:N(e.get("consequent"),t,n,i),alternate:e.node.alternate?N(e.get("alternate"),t,n,i):null}};if(e.isExpressionStatement())return N(e.get("expression"),t,n,i);if(e.isReturnStatement()&&s&&s(e),x(e)){var o=e.get("callee"),a=e.get("arguments");if(o.isIdentifier()){if(d(o,"showMessage"))return 1!==a.length?(t.errors.push({message:'"showMessage()" expects exactly 1 argument, but got '.concat(a.length),node:e.node,severity:"error"}),null):{action:"show_message",payload:M(a[0],t,n,i)};if(d(o,"handleHttpError"))return 1!==a.length?(t.errors.push({message:'"handleHttpError()" expects exactly 1 argument, but got '.concat(a.length),node:e.node,severity:"error"}),null):{action:"handle_http_error",payload:M(a[0],t,n,i)};var c,u=(0,r.A)(p);try{for(u.s();!(c=u.n()).done;)if(d(o,c.value)){var h=L(e,t,n,i);return h?(t.contracts.add(h.api),{action:"call_api",payload:h}):null}}catch(e){u.e(e)}finally{u.f()}var m,g,y=o.scope.getBindingIdentifier(o.node.name);if(y&&(m=null===(g=i.component)||void 0===g?void 0:g.bindingMap.get(y)),!m)return t.errors.push({message:'Function "'.concat(o.node.name,'" is not defined'),node:o.node,severity:"error"}),null;switch(m.kind){case"setState":return{action:"update_variable",payload:{name:m.id.name,value:void 0===a[0]?void 0:M(a[0],t,n,(0,l.A)((0,l.A)({},i),{},{modifier:void 0})),scope:"template"===i.component.type?"template":"global"}};case"refetch":return{action:"refresh_data_source",payload:{name:m.resourceId.name,scope:"template"===i.component.type?"template":"global"}};case"context":return{action:"call_selector",payload:{selector:"#".concat(_(m.contextProvider.name)),method:"trigger",args:[{name:m.contextKey,value:void 0===a[0]?void 0:M(a[0],t,n,(0,l.A)((0,l.A)({},i),{},{modifier:void 0}))}]}};case"eventHandler":if(a.length>1)return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" expects at most 1 argument, but got ').concat(a.length),node:e.node,severity:"error"}),null;var v;if(a.length>0){var b=a[0];if(!b.isObjectExpression())return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" argument must be an object expression, but got ').concat(b.type),node:b.node,severity:"error"}),null;var C,E=(0,r.A)(b.get("properties"));try{for(E.s();!(C=E.n()).done;){var k=C.value;if(!k.isObjectProperty())return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" argument object expression must have only object properties, but got ').concat(k.type),node:k.node,severity:"error"}),null;if(k.node.computed)return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" argument object expression must not have computed properties'),node:k.node,severity:"error"}),null;var w=k.get("key");if(!w.isIdentifier()||"detail"!==w.node.name)return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" argument object expression property key must be an identifier with name "detail", but got ').concat(w.type).concat(w.isIdentifier()?" (name: ".concat(w.node.name,")"):""),node:w.node,severity:"error"}),null;v=M(k.get("value"),t,n,(0,l.A)((0,l.A)({},i),{},{modifier:void 0}))}}catch(e){E.e(e)}finally{E.f()}}return{action:"dispatch_event",payload:{type:W(m.id.name),detail:v}};default:return t.errors.push({message:'"'.concat(o.node.name,'" is not callable'),node:o.node,severity:"error"}),null}}else if(S(o)){if(o.node.computed)return t.errors.push({message:"Event handler call expression with computed member expression is not supported",node:o.node,severity:"error"}),null;var T=o.get("object");if(S(T)){var P=T.get("property");if(!T.node.computed&&P.isIdentifier()&&"current"===P.node.name){var A=T.get("object");if(A.isIdentifier()){var I,O,B=A.scope.getBindingIdentifier(A.node.name);if(B&&(I=null===(O=i.component)||void 0===O?void 0:O.bindingMap.get(B)),!I)return t.errors.push({message:'Variable "'.concat(A.node.name,'" is not defined'),node:A.node,severity:"error"}),null;if("ref"!==I.kind)return t.errors.push({message:'Variable "'.concat(A.node.name,'" is not a ref, but a ').concat(I.kind),node:A.node,severity:"error"}),null;var F=o.get("property");return F.isIdentifier()?{action:"call_ref",payload:{ref:I.id.name,method:F.node.name,args:a.map((function(e){return M(e,t,n,i)})),scope:"template"===i.component.type?"template":"global"}}:(t.errors.push({message:"Event handler call expression with non-identifier property is not supported",node:F.node,severity:"error"}),null)}}}if(T.isIdentifier()){var R=T.scope.getBindingIdentifier(T.node.name);if(R){var j,U=null===(j=i.component)||void 0===j?void 0:j.bindingMap.get(R);if(U&&"history"===U.kind){var V=o.get("property");if(!V.isIdentifier())return t.errors.push({message:"Event handler call expression with non-identifier property is not supported",node:V.node,severity:"error"}),null;var H=V.node.name;return f.includes(H)?{action:"navigate",payload:{method:H,args:a.map((function(e){return M(e,t,n,i)}))}}:(t.errors.push({message:'"history.'.concat(H,'()" is not supported in event handler'),node:V.node,severity:"error"}),null)}}}if(!T.isCallExpression())return t.errors.push({message:"Invalid usage in event handler",node:T.node,severity:"error"}),null;var q=T.get("callee");if(!q.isIdentifier())return t.errors.push({message:"Member expression in event handler expects an identifier as callee, but got ".concat(q.type),node:q.node,severity:"error"}),null;var G,K=o.get("property");if(!K.isIdentifier())return t.errors.push({message:"Member expression in event handler expects an identifier as property, but got ".concat(K.type),node:K.node,severity:"error"}),null;var $,J=(0,r.A)(p);try{for(J.s();!($=J.n()).done;){var X=$.value;if(d(q,X)){G=X;break}}}catch(e){J.e(e)}finally{J.f()}if(G){var z=K.node.name;if("then"!==z&&"catch"!==z)return t.errors.push({message:'"'.concat(G,'()" expects "then" or "catch" as its method, but got ').concat(z),node:K.node,severity:"error"}),null;if("catch"===z){if(1!==a.length)return t.errors.push({message:'".catch()" expects exactly 1 argument, but got '.concat(a.length),node:a.length>0?a[1].node:K.node,severity:"error"}),null}else if(0===a.length||a.length>2)return t.errors.push({message:'".then()" expects 1 or 2 arguments, but got '.concat(a.length),node:a.length>2?a[2].node:K.node,severity:"error"}),null;var Y,Q,Z=L(T,t,n,i);if(!Z)return null;t.contracts.add(Z.api);var ee=D(a[0],t,n,i,!0);return"catch"===z?Q=ee:(Y=ee,a.length>1&&(Q=D(a[1],t,n,i,!0))),{action:"call_api",payload:Z,callback:{success:Y,error:Q}}}return t.errors.push({message:"Unsupported action in event handler: ".concat(q.node.name),node:q.node,severity:"error"}),null}}return t.errors.push({message:"Unsupported event handler",node:e.node,severity:"error"}),null}function R(e,t,n,r){var i;if(!e.isReferencedIdentifier())return null;var s=e.node.name,o=e.scope.getBinding(s);if(!o)return null;if(null!==(i=r.componentBindings)&&void 0!==i&&i.has(o.identifier))return{type:"local",name:s};if("module"===o.kind){if(o.path.isImportSpecifier()&&o.path.parentPath.isImportDeclaration()){var a=o.path.get("imported");if(!a.isIdentifier())return t.errors.push({message:"Unsupported import specifier type: ".concat(a.type),node:a.node,severity:"error"}),null;var l=o.path.parentPath.get("source");return{type:"imported",name:a.node.name,importSource:E(l.node.value,t.filePath,n.files)}}if(o.path.isImportDefaultSpecifier()&&o.path.parentPath.isImportDeclaration())return{type:"imported",importSource:E(o.path.parentPath.get("source").node.value,t.filePath,n.files)}}return t.errors.push({message:'Unsupported component binding for "'.concat(s,'"'),node:o.identifier,severity:"error"}),null}function j(e,t,n){if(e.isJSXExpressionContainer()){var r=e.get("expression");if(r.isIdentifier()){var i,s,o=r.node.name,a=r.scope.getBindingIdentifier(o);if(a&&(i=null===(s=n.component)||void 0===s?void 0:s.bindingMap.get(a)),i){if("ref"===i.kind)return i.id.name;t.errors.push({message:'The variable "'.concat(o,'" is not a ref, but a ').concat(i.kind),node:e.node,severity:"error"})}else t.errors.push({message:'The ref "'.concat(o,'" is not defined'),node:e.node,severity:"error"})}else t.errors.push({message:'The "ref" attribute in component expects an identifier, but got '.concat(r.node.type),node:r.node,severity:"error"})}else{var l,c;t.errors.push({message:'The "ref" attribute in component expects a JSXExpressionContainer, but got '.concat(null===(l=e.node)||void 0===l?void 0:l.type),node:null!==(c=e.node)&&void 0!==c?c:e.parent,severity:"error"})}}function W(e){return e.slice(2).replace(/([a-z])([A-Z])/g,"$1.$2").toLowerCase()}function U(e,t,n,s){if(e.isJSXFragment())return e.get("children").flatMap((function(e){return U(e,t,n,s)}));if(e.isJSXText())return e.node.value.trim()?{type:"text",text:e.node.value}:null;if(e.isJSXExpressionContainer())return U(e.get("expression"),t,n,s);if(e.isJSXEmptyExpression())return null;if(e.isJSXElement())return function(e,t,n,s){var a=e.get("openingElement"),u=a.get("name");if("app"===n.appType&&("page"===t.moduleType||"entry"===t.moduleType)&&u.isJSXMemberExpression()){var p=u.get("object"),f=u.get("property");return p.isJSXIdentifier()?"Provider"!==f.node.name?(t.errors.push({message:"Unsupported JSX Member Expression property: ".concat(f.node.name,'. Only "Provider" is supported.'),node:f.node,severity:"error"}),null):function(e,t,n,s,o){var a=w(t,n,s,o),u=e.get("children").flatMap((function(e){return U(e,n,s,o)}));if(!a)return u;var p,f,h,d=e.get("openingElement"),m=(0,r.A)(d.get("attributes"));try{for(m.s();!(f=m.n()).done;){var g=f.value;if(g.isJSXSpreadAttribute())n.errors.push({message:"Spread attributes are not supported in component",node:g.node,severity:"error"});else{var y=g.get("name");if(y.isJSXIdentifier()){var v=y.node.name;"value"===v?p=g.get("value"):n.errors.push({message:'Unsupported attribute "'.concat(v,'" in Context Provider'),node:g.node,severity:"error"})}else n.errors.push({message:"Expected JSXIdentifier, but got ".concat(y.node.type),node:y.node,severity:"error"})}}}catch(e){m.e(e)}finally{m.f()}if(!p)return n.errors.push({message:'Context Provider is missing required "value" attribute',node:d.node,severity:"error"}),u;if(!p.isJSXExpressionContainer())return n.errors.push({message:"Expected JSXExpressionContainer, but got ".concat(null===(h=p.node)||void 0===h?void 0:h.type),node:p.node,severity:"error"}),u;var b=p.get("expression");if(!b.isObjectExpression())return n.errors.push({message:'Context Provider "value" must be an object expression, but got '.concat(b.node.type),node:b.node,severity:"error"}),u;var x,S=b.get("properties"),C=new Map,E=new Map,k=(0,r.A)(S);try{for(k.s();!(x=k.n()).done;){var P=x.value;if(P.isObjectProperty())if(P.node.computed)n.errors.push({message:"Context Provider value property cannot be computed",node:P.node,severity:"error"});else if(P.node.shorthand){var A,I=P.get("value"),M=I.scope.getBindingIdentifier(I.node.name),O=void 0;if(M&&(O=null===(A=o.component)||void 0===A?void 0:A.bindingMap.get(M)),O)switch(O.kind){case"setState":C.set(I.node.name,O.id.name);break;case"state":E.set(I.node.name,O.id.name);break;default:n.errors.push({message:'Unsupported binding kind "'.concat(O.kind,'" for Context Provider value property "').concat(I.node.name,'"'),node:I.node,severity:"error"});continue}else n.errors.push({message:'No binding found for Context Provider value property "'.concat(I.node.name,'"'),node:I.node,severity:"error"})}else n.errors.push({message:"Context Provider value property must use shorthand syntax",node:P.node,severity:"error"});else n.errors.push({message:"Unsupported property type in Context Provider value: ".concat(P.type),node:P.node,severity:"error"})}}catch(e){k.e(e)}finally{k.f()}return 0===C.size?u:[{type:"component",component:(0,l.A)({name:"eo-event-agent",portal:!0,properties:{id:_(a.name)},events:{trigger:(0,i.A)(C).map((function(e){var t=(0,c.A)(e,2),n=t[0],r=t[1];return{action:"conditional",payload:{test:"<% EVENT.detail.name === ".concat(JSON.stringify(n)," %>"),consequent:{action:"update_variable",payload:{name:r,value:"<% EVENT.detail.value %>"}},alternate:null}}}))}},E.size>0?{context:(0,i.A)(E).map((function(e){var t=(0,c.A)(e,2),n=t[0],r=t[1];return{name:T(a.name,n),value:"<% CTX.".concat(r," %>"),track:!0}}))}:void 0)}].concat((0,i.A)(u))}(e,p,t,n,s):(t.errors.push({message:"When using JSX Member Expression, only JSX Identifier is allowed as object, but got: ".concat(p.type),node:p.node,severity:"error"}),null)}if(!u.isJSXIdentifier())return t.errors.push({message:"Unsupported JSX element name type: ".concat(u.type),node:u.node,severity:"error"}),null;if(d(u,"Fragment")){var h,m=(0,r.A)(a.node.attributes);try{for(m.s();!(h=m.n()).done;){var g=h.value;o.isJSXAttribute(g)&&o.isJSXIdentifier(g.name)&&"key"===g.name.name||t.errors.push({message:"Invalid attribute for Fragment",node:g,severity:"error"})}}catch(e){m.e(e)}finally{m.f()}return e.get("children").flatMap((function(e){return U(e,t,n,s)}))}var y,v,b,x,S,C=R(u,t,n,s),E={},k=d(u,"Route"),P=(0,r.A)(a.get("attributes"));try{for(P.s();!(S=P.n()).done;){var A=S.value;if(A.isJSXSpreadAttribute())t.errors.push({message:"Spread attributes are not supported in component",node:A.node,severity:"error"});else{var I=A.get("name");if(I.isJSXIdentifier()){var M=I.node.name;if("key"!==M){var B=A.get("value");if(k)if("component"===M){if(!B.isJSXExpressionContainer()){var F,L;t.errors.push({message:'The "component" attribute in Route expects a JSXExpressionContainer, but got '.concat(null===(F=B.node)||void 0===F?void 0:F.type),node:null!==(L=B.node)&&void 0!==L?L:B.parent,severity:"error"});continue}var N=B.get("expression");if(!N.isIdentifier()){t.errors.push({message:'The "component" attribute in Route expects an identifier, but got '.concat(N.node.type),node:N.node,severity:"error"});continue}var V=R(N,t,n,s);if(!V){t.errors.push({message:'The component "'.concat(N.node.name,'" is not defined'),node:N.node,severity:"error"});continue}E.component={name:N.node.name,reference:V}}else if("path"===M){if(!B.isStringLiteral()){var q,G;t.errors.push({message:'The "path" attribute in Route expects a string literal, but got '.concat(null===(q=B.node)||void 0===q?void 0:q.type),node:null!==(G=B.node)&&void 0!==G?G:B.parent,severity:"error"});continue}E.path=B.node.value}else t.errors.push({message:'Unsupported attribute "'.concat(M,'" in Route'),node:I.node,severity:"error"});else if("ref"!==M)if("slot"!==M)if(/^on[A-Z]/.test(M)){if(!B.isJSXExpressionContainer()){var K,$;t.errors.push({message:'Event handler "'.concat(M,'" expects a JSXExpressionContainer, but got ').concat(null===(K=B.node)||void 0===K?void 0:K.type),node:null!==($=B.node)&&void 0!==$?$:B.parent,severity:"error"});continue}var J=B.get("expression");if(J.isJSXEmptyExpression()){t.errors.push({message:"Empty expression in events is not allowed",node:J.node,severity:"warning"});continue}var X=null;if(J.isIdentifier()){var z=J.scope.getBindingIdentifier(J.node.name);if(z){var Y,Q=null===(Y=s.component)||void 0===Y?void 0:Y.bindingMap.get(z);Q&&"eventHandler"===Q.kind&&(X=[{action:"dispatch_event",payload:{type:W(Q.id.name),detail:"<% EVENT.detail %>"}}])}}X||(X=D(J,t,n,s)),X&&("onMount"===M||"onUnmount"===M?(null!=v||(v={}),v[M]=X):(null!=y||(y={}),y[W(M)]=X))}else if(null==B.node)E[M]=!0;else if(B.isStringLiteral())E[M]=B.node.value;else if(B.isJSXExpressionContainer()){var Z=B.get("expression");Z.isJSXEmptyExpression()?t.errors.push({message:'Empty expression in JSX attribute "'.concat(M,'" is not allowed'),node:Z.node,severity:"warning"}):E[M]=O(Z,t,n,(0,l.A)((0,l.A)({},s),{},{allowUseBrick:!0,modifier:"="}))}else t.errors.push({message:"Unsupported attribute value type in component: ".concat(B.node.type),node:B.node,severity:"error"});else{if(!B.isStringLiteral()){var ee,te;t.errors.push({message:'The "slot" attribute in component expects a string literal, but got '.concat(null===(ee=B.node)||void 0===ee?void 0:ee.type),node:null!==(te=B.node)&&void 0!==te?te:B.parent,severity:"error"});continue}x=B.node.value}else b=j(B,t,s)}}else t.errors.push({message:"Expected JSXIdentifier, but got ".concat(I.node.type),node:I.node,severity:"error"})}}}catch(e){P.e(e)}finally{P.f()}var ne=H(e.get("children"),t,n,s),re=ne.textContent,ie=ne.children;return re&&(E.textContent=re),{type:"component",component:{name:u.node.name,reference:C,properties:E,ref:b,slot:x,events:y,lifeCycle:v,children:ie}}}(e,t,n,s);if(x(e)){var a=e.get("callee");if(a.isIdentifier()&&d(a,"createPortal")){var u=e.get("arguments");if(1!==u.length){var p=0===u.length;if(t.errors.push({message:"createPortal() requires exactly 1 argument, received ".concat(u.length),node:e.node,severity:p?"error":"warning"}),p)return null}return[].concat(U(u[0],t,n,s)).map((function(e){return null===e?e:"component"!==e.type?(t.errors.push({message:"Invalid argument type for createPortal(), expected a component but got ".concat(e.type),node:u[0].node,severity:"error"}),e):(0,l.A)((0,l.A)({},e),{},{component:(0,l.A)((0,l.A)({},e.component),{},{portal:!0})})}))}if(S(a)){var f=a.get("property");if(f.isIdentifier()&&"map"===f.node.name){var h=e.get("arguments");if(h.length>0){var g=h[0];if(g.isArrowFunctionExpression()){var y=g.get("body");if(y.isExpression()&&V(y.node)){var v=a.get("object");if(!m(v.node,t))return null;var b=g.get("params");if(b.length>2)return t.errors.push({message:"Array map function with JSX elements must have at most two parameters, but got ".concat(b.length),node:b[2].node,severity:"error"}),null;var C=b.find((function(e){return!e.isIdentifier()}));if(C)return t.errors.push({message:"Array map function with JSX elements must have identifier parameters, but got ".concat(C.type),node:C.node,severity:"error"}),null;var E=(0,l.A)((0,l.A)({},s),{},{forEachBinding:void 0});if(b.length>0){var k=b,P=(0,c.A)(k,2),A=P[0],I=P[1];E.forEachBinding={item:A.node,index:null==I?void 0:I.node}}return{type:"component",component:{name:"ForEach",properties:{dataSource:O(v,t,n,(0,l.A)((0,l.A)({},s),{},{modifier:"="}))},children:G(g.get("body"),t,n,E)}}}}}}}}else if(e.isConditionalExpression()){var M=e.get("test"),B=e.get("consequent"),F=e.get("alternate");if(V(B.node)||V(F.node))return m(M.node,t)?{type:"component",component:{name:"If",properties:{dataSource:O(M,t,n,(0,l.A)((0,l.A)({},s),{},{modifier:"="}))},children:[].concat((0,i.A)(G(B,t,n,s)),(0,i.A)(G(F,t,n,s).map((function(e){return(0,l.A)((0,l.A)({},e),{},{slot:"else"})}))))}}:null}else if(e.isLogicalExpression()){var L=e.get("left"),N=e.get("right"),q=e.node.operator;if(("&&"===q||"||"===q)&&V(N.node)){if(!m(L.node,t))return null;var K=G(N,t,n,s);return{type:"component",component:{name:"If",properties:{dataSource:O(L,t,n,(0,l.A)((0,l.A)({},s),{},{modifier:"="}))},children:"&&"===q?K:K.map((function(e){return(0,l.A)((0,l.A)({},e),{},{slot:"else"})}))}}}}return e.isExpression()?m(e.node,t)?{type:"expression",expression:e}:null:(t.errors.push({message:"Unsupported node type in JSX children: ".concat(e.type),node:e.node,severity:"error"}),null)}function V(e){var t=!1;return o.traverse(e,{enter:function(e){t||!o.isJSXElement(e)&&!o.isJSXFragment(e)||(t=!0)}}),t}function H(e,t,n,i){var s=e.flatMap((function(e){return U(e,t,n,i)}));s.length>0&&null===s[0]&&(s=s.slice(1)),s.length>0&&null===s[s.length-1]&&(s=s.slice(0,s.length-1));var o=s.every((function(e){return"text"===(null==e?void 0:e.type)}));if(!o){var a,c=null,u=[],p=(0,r.A)(s);try{for(p.s();!(a=p.n()).done;){var f=a.value;if(null===f);else if("text"===f.type||"expression"===f.type){var h,d,m;if("text"===(null===(h=c)||void 0===h?void 0:h.type)||"expression"===(null===(d=c)||void 0===d?void 0:d.type)){c={type:"merged",children:[c,f]},u.splice(u.length-1,1,c);continue}if("merged"===(null===(m=c)||void 0===m?void 0:m.type)){c.children.push(f);continue}}c=f,u.push(f)}}catch(e){p.e(e)}finally{p.f()}o=(s=u).every((function(e){return"text"===(null==e?void 0:e.type)||"merged"===(null==e?void 0:e.type)&&e.children.every((function(e){return"text"===e.type}))}))}if(o){var g=s.flatMap((function(e){return"text"===e.type?e.text:e.children.map((function(e){return e.text}))})).join("").trim();return{textContent:g}}var y=s.every((function(e){return!!e&&"component"!==e.type}));if(y){var v=q(s.flatMap((function(e){return"merged"===e.type?e.children:e})),t,n,i);return{textContent:v}}var b=s.filter((function(e){return!!e})).map((function(e){return"component"===e.type?e.component:{name:"Plaintext",properties:{textContent:"text"===e.type?e.text:"expression"===e.type?A(e.expression,t,n,(0,l.A)((0,l.A)({},i),{},{modifier:"="})):q(e.children,t,n,i)}}}));return{children:b}}function q(e,t,n,r){return t.usedHelpers.add("_helper_mergeTexts"),"<%= FN._helper_mergeTexts(".concat(e.map((function(e){return"text"===e.type?JSON.stringify(e):'{type:"expression",value:('.concat(A(e.expression,t,n,r,!0),")}")})).join(", "),") %>")}function G(e,t,n,r){var i=H([e],t,n,r),s=i.textContent,o=i.children;return null!=o?o:[{name:"Plaintext",properties:{textContent:s}}]}function K(e){var t,n,r=null===(t=e.children)||void 0===t?void 0:t.find((function(e){return n="View",function(e){return!e.reference||"imported"===e.reference.type&&e.reference.importSource===u}(t=e)&&(t.reference?t.reference.name===n:t.name===n);var t,n})),i=null==r||null===(n=r.properties)||void 0===n?void 0:n.title;if("string"==typeof i&&!b(i))return i}var $=a.default;function J(e,t,n,r,i,s,o,a){var c=L(e,t,n,r);if(!c)return null;t.contracts.add(c.api);var u=(0,l.A)({name:i,config:s},c);if(o&&a){if("catch"===a){if(1!==o.length)return t.errors.push({message:'".catch()" expects exactly 1 argument, but got '.concat(o.length),node:o.length>0?o[1].node:e.node,severity:"error"}),null}else if(0===o.length||o.length>2)return t.errors.push({message:'".then()" expects 1 or 2 arguments, but got '.concat(o.length),node:o.length>2?o[2].node:e.node,severity:"error"}),null;var p=X(o[0],t,n,r,a);if(p&&(u["catch"===a?"rejectTransform":"transform"]=p),"catch"!==a&&o.length>1){var f=X(o[1],t,n,r,a);f&&(u.rejectTransform=f)}}return u}function X(e,t,n,r,i){if(!e.isArrowFunctionExpression())return t.errors.push({message:'".'.concat(i,'()" callback expects an arrow function, but got ').concat(e.type),node:e.node,severity:"error"}),null;var s=e.get("body");if(!s.isExpression())return t.errors.push({message:'".'.concat(i,'()" callback function body expects an expression, but got ').concat(s.type),node:s.node,severity:"error"}),null;var o,a,c=e.get("params");if(c.length>1)return t.errors.push({message:'".'.concat(i,'()" callback function expects exactly 0 or 1 parameter, but got ').concat(c.length),node:null!==(o=null===(a=c[1])||void 0===a?void 0:a.node)&&void 0!==o?o:e,severity:"error"}),null;var u=(0,l.A)((0,l.A)({},r),{},{dataBinding:void 0}),p=c[0];if(c.length>0){if(!p.isIdentifier())return t.errors.push({message:'".'.concat(i,'()" callback function parameter expects an identifier, but got ').concat(p.type),node:p.node,severity:"error"}),null;u.dataBinding={id:p.node}}return A(s,t,n,u)}function z(e,t,n,i,s){var o=e.get("id");if(!o.isArrayPattern())return null;var a=o.get("elements");if(1!==a.length&&2!==a.length)return null;var l=a[0];if(!l.isIdentifier())return null;if(1!==t.length&&2!==t.length)return null;var c=t[0];if(!c.isArrowFunctionExpression())return null;if(!h(c.node,n))return null;var u=c.get("body");if(u.isBlockStatement())return null;if(!u.isCallExpression())return null;var p=u.get("callee");if(!p.isIdentifier()&&!p.isMemberExpression())return null;var f,d=t[1];if(d){if(!d.isObjectExpression())return n.errors.push({message:'"useResource()" second argument must be an object expression, but got '.concat(d.type),node:d.node,severity:"error"}),null;var m,g=(0,r.A)(d.get("properties"));try{for(g.s();!(m=g.n()).done;){var y=m.value;if(!y.isObjectProperty())return n.errors.push({message:'Unsupported property type in "useResource()" second argument: '.concat(y.type),node:y.node,severity:"error"}),null;var v=y.get("key");if(!v.isIdentifier())return n.errors.push({message:'"useResource()" second argument property key must be an identifier, but got '.concat(v.type),node:v.node,severity:"error"}),null;if(y.node.computed)return n.errors.push({message:'"useResource()" second argument property key cannot be computed',node:v.node,severity:"error"}),null;if("enabled"!==v.node.name&&"fallback"!==v.node.name)return n.errors.push({message:'"useResource()" second argument property key must be "enabled" or "fallback", but got "'.concat(v.node.name,'"'),node:v.node,severity:"error"}),null;null!=f||(f={}),f[v.node.name]=M(y.get("value"),n,i,s)}}catch(e){g.e(e)}finally{g.f()}}var b=null;if(p.isMemberExpression()){var x=p.get("property");if(!x.isIdentifier()||p.node.computed||"then"!==x.node.name&&"catch"!==x.node.name)return n.errors.push({message:"Invalid useResource call",node:x.node,severity:"error"}),null;b=J(p.get("object"),n,i,s,l.node.name,f,u.get("arguments"),x.node.name)}else b=J(u,n,i,s,l.node.name,f);if(b){var S=[{id:l.node,kind:"resource",resource:b}],C=a[1];if(C){if(!C.isIdentifier())return n.errors.push({message:'Refetch variable in "useResource()" must be an identifier',node:C.node,severity:"error"}),null;S.push({id:C.node,kind:"refetch",resourceId:l.node})}return S}return null}function Y(e,t,n,i,s){if(1!==t.length)return n.errors.push({message:'"useContext()" must have exactly one argument, but got '.concat(t.length),node:e.node,severity:"error"}),null;var o=t[0];if(!o.isIdentifier())return n.errors.push({message:'"useContext()" argument must be an identifier, but got '.concat(o.type),node:o.node,severity:"error"}),null;var a=w(o,n,i,s);if(!a)return null;var l=e.get("id");if(!l.isObjectPattern())return null;var c,u=l.get("properties"),p=[],f=(0,r.A)(u);try{for(f.s();!(c=f.n()).done;){var h=c.value;if(h.isObjectProperty())if(h.node.computed)n.errors.push({message:'"useContext()" destructuring property cannot be computed',node:h.node,severity:"error"});else{var d=h.get("key");if(d.isIdentifier()){var m=h.get("value");m.isIdentifier()?p.push({id:m.node,kind:"context",contextProvider:a,contextKey:d.node.name}):n.errors.push({message:'"useContext()" destructuring property value must be an identifier, but got '.concat(m.type),node:m.node,severity:"error"})}else n.errors.push({message:'"useContext()" destructuring property key must be an identifier, but got '.concat(d.type),node:d.node,severity:"error"})}else n.errors.push({message:'Unsupported property type in "useContext()" destructuring: '.concat(h.type),node:h.node,severity:"error"})}}catch(e){f.e(e)}finally{f.f()}return p}var Q=new Map([["useQuery","query"],["usePathParams","pathParams"],["useApp","app"],["useAuth","auth"],["useHistory","history"],["useLocation","location"]]);function Z(e,t,n,i){var s,o=(0,r.A)(Q);try{for(o.s();!(s=o.n()).done;){var a=(0,c.A)(s.value,2),l=a[0],u=a[1];if(d(t,l)){var p=e.get("id");if(!p.isIdentifier()){i.errors.push({message:"".concat(l,"() must be assigned to an identifier, received ").concat(p.type),node:p.node,severity:"error"});break}return n.length>0&&i.errors.push({message:"".concat(l,"() does not accept any arguments, received ").concat(n.length),node:n[0].node,severity:"warning"}),[p.node,{id:p.node,kind:u}]}}}catch(e){o.e(e)}finally{o.f()}return null}function ee(e,t,n,i,s){if(!t)return n.errors.push({message:"useImperativeHandle() can only be used in component with ref parameter",node:e.node,severity:"error"}),null;var o=e.get("arguments");if(o.length<2)return n.errors.push({message:"useImperativeHandle() requires at least 2 arguments, received ".concat(o.length),node:e.node,severity:"error"}),null;var a=o[0];if(!a.isIdentifier()||a.scope.getBindingIdentifier(a.node.name)!==t.node)return n.errors.push({message:"useImperativeHandle() first argument must be the ref parameter",node:a.node,severity:"error"}),null;var l=o[1];if(!l.isArrowFunctionExpression())return n.errors.push({message:"useImperativeHandle() second argument must be an arrow function expression, received ".concat(l.type),node:l.node,severity:"error"}),null;var c=l.get("body");if(!c.isObjectExpression())return n.errors.push({message:"useImperativeHandle() arrow function body must be an object expression, received ".concat(c.type),node:c.node,severity:"error"}),null;var u,p,f=[],d={},m=(0,r.A)(c.get("properties"));try{for(m.s();!(u=m.n()).done;){var g=u.value,y=g.get("key");if(y.isIdentifier()){var v=void 0;if(g.isObjectProperty()){if(g.node.computed||g.node.shorthand){n.errors.push({message:"useImperativeHandle() object properties cannot be computed or shorthand",node:g.node,severity:"error"});continue}var b=g.get("value");if(!(p=b).isFunctionExpression()&&!p.isArrowFunctionExpression()){n.errors.push({message:"useImperativeHandle() object properties must be functions, received ".concat(b.type),node:g.node,severity:"error"});continue}if(!h(b.node,n))continue;var x=b.get("body");if(!x.isBlockStatement()){n.errors.push({message:"useImperativeHandle() object property functions must have a block statement body, received ".concat(x.type),node:x.node,severity:"error"});continue}v=x}else{if(!g.isObjectMethod()){n.errors.push({message:"useImperativeHandle() object properties must be methods or properties, received ".concat(g.type),node:g.node,severity:"error"});continue}if(g.node.computed||"method"!==g.node.kind||g.node.generator||g.node.async){n.errors.push({message:"useImperativeHandle() object methods must be non-computed non-generator non-async methods, received kind=".concat(g.node.kind,", computed=").concat(g.node.computed,", generator=").concat(g.node.generator,", async=").concat(g.node.async),node:g.node,severity:"error"});continue}v=g.get("body")}var S=N(v,n,i,s);if(S&&(!Array.isArray(S)||S.length>0)){var C="imperative-handle-ref-".concat(y.node.name);d[y.node.name]={ref:C,refMethod:"trigger"},f.push({name:"eo-event-agent",portal:!0,properties:{},ref:C,events:{trigger:S}})}}else n.errors.push({message:"useImperativeHandle() object property key must be an identifier, received ".concat(y.type),node:y.node,severity:"error"})}}catch(e){m.e(e)}finally{m.f()}return 0===f.length?null:{components:f,methods:d}}function te(e,t,n,s,o){if(!h(e.node,t))return null;var a,c,u=new Map,p={bindingMap:u,type:s,id:e.node.id},f=(0,l.A)((0,l.A)({},o),{},{component:p}),g=e.get("params");if("template"===s){if(g.length>2)return t.errors.push({message:"Component function can only have no more than 2 parameters, received ".concat(g.length),node:e.node,severity:"error"}),null;if(g.length>0){var y=g[0];if(!y.isObjectPattern())return t.errors.push({message:"Component function first parameter must be an object pattern, received ".concat(y.type),node:y.node,severity:"error"}),null;var v,b=(0,r.A)(y.get("properties"));try{for(b.s();!(v=b.n()).done;){var x=v.value;if(x.isRestElement())return t.errors.push({message:"Component function parameter rest element is not allowed",node:x.node,severity:"error"}),null;var S=x.node;if(S.computed||!S.shorthand)return t.errors.push({message:"Component function parameter properties must be shorthand and not computed",node:x.node,severity:"error"}),null;var C=x.get("key"),E=x.get("value");if(!C.isIdentifier())return t.errors.push({message:"Component function parameter property key must be an identifier, received ".concat(C.type),node:C.node,severity:"error"}),null;var k=C.node.name;if(/^on[A-Z]/.test(k)){if(!E.isIdentifier())return t.errors.push({message:'Event handler parameter "'.concat(k,'" must be an identifier, received ').concat(E.type),node:E.node,severity:"error"}),null;u.set(E.node,{id:E.node,kind:"eventHandler"})}else{var w=void 0,T=void 0;if(E.isAssignmentPattern()){var _=E.get("left");_.isIdentifier()&&(w=_.node,T=M(E.get("right"),t,n,f))}else E.isIdentifier()&&(w=E.node);if(!w){t.errors.push({message:"Component function parameter property value must be an identifier or assignment pattern, received ".concat(E.type),node:E.node,severity:"error"});continue}var P={id:w,kind:"param",initialValue:T};u.set(w,P)}}}catch(e){b.e(e)}finally{b.f()}}if(g.length>1){var A=g[1];if(!A.isIdentifier())return t.errors.push({message:"Component function second parameter must be an identifier for ref, received ".concat(A.type),node:A.node,severity:"error"}),null;a=A}}else if(g.length>0)return t.errors.push({message:"Page function cannot have parameters, received ".concat(g.length),node:g[0].node,severity:"error"}),null;var I,B=p,F=e.get("body").get("body"),L=(0,r.A)(F);try{for(L.s();!(I=L.n()).done;){var D=I.value;if(D.isVariableDeclaration()){if("const"!==D.node.kind){t.errors.push({message:'Only "const" variable declaration is allowed, received "'.concat(D.node.kind,'"'),node:D.node,severity:"error"});continue}var N,R=(0,r.A)(D.get("declarations"));try{for(R.s();!(N=R.n()).done;){var j=N.value,W=j.get("init");if(W.isCallExpression()){var U=W.get("callee");if(U.isIdentifier()){var V=W.get("arguments");if(d(U,"useState")){var H=j.get("id");if(!H.isArrayPattern())continue;var q=H.get("elements");if(2!==q.length){t.errors.push({message:"useState() destructuring must have exactly two elements, received ".concat(q.length),node:H.node,severity:"error"});continue}var G=q[0],K=q[1];if(!G.isIdentifier()||!K.isIdentifier()){t.errors.push({message:"useState() destructuring must have identifiers as elements, received ".concat(q.map((function(e){return e.type})).join(", ")),node:H.node,severity:"error"});continue}var $={id:G.node,kind:"state"};u.set(G.node,$),u.set(K.node,{id:G.node,kind:"setState"}),V.length>0&&($.initialValue=M(V[0],t,n,f)),V.length>1&&t.errors.push({message:"useState() only accepts at most one argument, received ".concat(V.length),node:V[1].node,severity:"warning"});continue}if(d(U,"useResource")){var J=z(j,V,t,n,f);if(J){var X,Q=(0,r.A)(J);try{for(Q.s();!(X=Q.n()).done;){var te=X.value;u.set(te.id,te)}}catch(e){Q.e(e)}finally{Q.f()}}continue}if(d(U,"useRef")){var ie=j.get("id");if(!ie.isIdentifier()){t.errors.push({message:"useRef() must be assigned to an identifier, received ".concat(ie.type),node:ie.node,severity:"error"});continue}V.length>1&&t.errors.push({message:"useRef() only accepts at most one argument, received ".concat(V.length),node:V[1].node,severity:"warning"});var se=V[0];se&&!se.isNullLiteral()&&t.errors.push({message:"useRef() first argument must be null, received ".concat(se.type),node:se.node,severity:"warning"}),u.set(ie.node,{id:ie.node,kind:"ref"});continue}var oe=Z(j,U,V,t);if(!1===oe)continue;if(oe){u.set(oe[0],oe[1]);continue}if(d(U,"useContext")){var ae=Y(j,V,t,n,f);if(ae){var le,ce=(0,r.A)(ae);try{for(ce.s();!(le=ce.n()).done;){var ue=le.value;u.set(ue.id,ue)}}catch(e){ce.e(e)}finally{ce.f()}}continue}}}var pe=j.get("id");if(pe.isIdentifier()){var fe={id:pe.node,kind:"constant"};u.set(pe.node,fe),W.node&&(fe.initialValue=M(W,t,n,f))}else t.errors.push({message:"Expect an identifier as the variable name, received ".concat(pe.type),node:pe.node,severity:"error"})}}catch(e){R.e(e)}finally{R.f()}}else{if(D.isReturnStatement()){var he,de,me,ge=ne(D,t,n,f);ge&&(null!==(de=(he=B).children)&&void 0!==de||(he.children=[]),(me=B.children).push.apply(me,(0,i.A)(c?ge.map((function(e){return(0,l.A)((0,l.A)({},e),{},{slot:c})})):ge)));break}if(D.isIfStatement()){var ye,ve,be=D.get("test");if(!m(be.node,t))return null;var xe=D.get("consequent"),Se=D.get("alternate"),Ce=re(xe,t,n,f),Ee=Se?re(Se,t,n,f):null;null!==(ve=(ye=B).children)&&void 0!==ve||(ye.children=[]);var ke={name:"If",properties:{dataSource:O(be,t,n,(0,l.A)((0,l.A)({},f),{},{modifier:"="}))},children:[].concat((0,i.A)(null!=Ce?Ce:[]),(0,i.A)((null!=Ee?Ee:[]).map((function(e){return(0,l.A)((0,l.A)({},e),{},{slot:"else"})})))),slot:c};if(B.children.push(ke),B=ke,Ce&&(c="else",Ee))break}else{if(D.isExpressionStatement()){var we=D.get("expression");if(we.isCallExpression()){var Te=we.get("callee");if(!Te.isIdentifier()){t.errors.push({message:"Unsupported call expression callee type: ".concat(Te.type),node:Te.node,severity:"error"});continue}if(d(Te,"useImperativeHandle")){var _e,Pe,Ae,Ie=ee(we,a,t,n,f);Ie&&(null!==(_e=p.children)&&void 0!==_e||(p.children=[]),(Pe=p.children).push.apply(Pe,(0,i.A)(Ie.components)),null!==(Ae=p.proxy)&&void 0!==Ae||(p.proxy={}),p.proxy.methods=Ie.methods)}continue}}D.isTSInterfaceDeclaration()||D.isTSTypeAliasDeclaration()||t.errors.push({message:"Unsupported top level statement type: ".concat(D.type),node:D.node,severity:"error"})}}}}catch(e){L.e(e)}finally{L.f()}return p}function ne(e,t,n,r){var i=e.get("argument");return i.node?G(i,t,n,r):(t.errors.push({message:"Return statement in component function must have an argument",node:e,severity:"error"}),null)}function re(e,t,n,i){if(e.isBlockStatement()){var s=e.get("body");if(0===s.length)return t.errors.push({message:"If statement block must contain a return statement",node:e.node,severity:"error"}),null;var o,a=null,l=(0,r.A)(s);try{for(l.s();!(o=l.n()).done;){var c=re(o.value,t,n,i);c&&(a=c)}}catch(e){l.e(e)}finally{l.f()}return a}return e.isReturnStatement()?ne(e,t,n,i):(t.errors.push({message:"Only return statement is allowed in if statement, but received: ".concat(e.type),node:e.node,severity:"error"}),null)}function ie(e,t,n,r){var i=A(e,t,n,r,!0);return i?{name:e.node.id.name,source:i,typescript:!0}:null}var se=a.default,oe=function(e){return e.TopLevelStatement="top level statement",e.NamedExportDeclaration="named export declaration",e.DefaultExportDeclaration="default export declaration",e}(oe||{});function ae(e,t){return"function"!==t.moduleType&&e.name[0]>="A"&&e.name[0]<="Z"}function le(e,t,n,i){var o,a=t.files.find((function(t){return t.filePath===e}));if(!a)throw new Error("File not found: ".concat(e));if(!t.modules.has(e)){t.modules.set(e,null);var c=e.endsWith(".ts")||e.endsWith(".tsx"),u=!c&&a.filePath.endsWith(".css");if(!n&&c)try{n=(0,s.parse)(a.content,{plugins:["jsx","typescript"],sourceType:"module",errorRecovery:!0})}catch(y){return void t.errors.push({message:"Failed to parse file (".concat(e,"): ").concat(y),node:null,severity:"fatal",filePath:e})}var p=!t.entry,f=p?"entry":u?"css":c?a.filePath.startsWith("/Pages/")?"page":a.filePath.startsWith("/Components/")?"template":a.filePath.startsWith("/Utils/")?"function":"unknown":"unknown",h={source:a.content,filePath:e,moduleType:f,defaultExport:null,namedExports:new Map,internals:[],errors:[],contracts:new Set,usedHelpers:new Set};if(null!==(o=n)&&void 0!==o&&null!==(o=o.errors)&&void 0!==o&&o.length){var m,g=(0,r.A)(n.errors);try{for(g.s();!(m=g.n()).done;){var y=m.value;h.errors.push({message:"".concat(y.code,": ").concat(y.reasonCode),node:null,severity:"error"})}}catch(e){g.e(e)}finally{g.f()}}p&&(t.entry=h),t.modules.set(e,h),n?function(e,t,n,i){var s=new Set,o=new Set,a=new Set,c={functionBindings:s,componentBindings:o,contextBindings:a,stateBindings:null==i?void 0:i.withContexts};se(n,{Program:function(n){var u,p=n.get("body"),f=[],h=[],m=null,g=null,y=[],v=function(n,r){if(n.isFunctionDeclaration()){var i=n.node.id;if(i&&(ae(i,e)?o.add(i):s.add(i)),r===oe.DefaultExportDeclaration)return void("app"===t.appType&&"entry"===e.moduleType?e.errors.push({message:"The entry module in an app cannot have a default export declaration.",node:n.node,severity:"error"}):m=n);if(!i)return void e.errors.push({message:"Function declaration must have a name",node:n.node,severity:"error"});f.push({func:n,exported:r===oe.NamedExportDeclaration})}else if(n.isVariableDeclaration()){if(r===oe.DefaultExportDeclaration)return void e.errors.push({message:"Default export declaration must be a function declaration.",node:n.node,severity:"error"});h.push({decl:n,exported:r===oe.NamedExportDeclaration})}else if(n.isExportDefaultDeclaration()){var a=n.get("declaration");v(a,oe.DefaultExportDeclaration)}else if(n.isExportNamedDeclaration()){var l=n.get("declaration");v(l,oe.NamedExportDeclaration)}else if(n.isImportDeclaration()){var c=n.node.source.value;(c.startsWith(".")||c.startsWith("/"))&&y.push(c)}else n.isTSInterfaceDeclaration||n.isTSTypeAliasDeclaration()||e.errors.push({message:"Unsupported ".concat(r," type: ").concat(n.type),node:n.node,severity:"error"})},b=(0,r.A)(p);try{for(b.s();!(u=b.n()).done;){var x=u.value;if("app"===t.appType&&e===t.entry&&x.isExpressionStatement()){var S=x.get("expression");if(S.isCallExpression()){var C=S.get("callee");if(C.isIdentifier()&&d(C,"render")){var k=S.get("arguments");if(1!==k.length){e.errors.push({message:"render() expects exactly one argument, received: ".concat(k.length),node:S.node,severity:"error"});continue}g=k[0];continue}}}v(x,oe.TopLevelStatement)}}catch(e){b.e(e)}finally{b.f()}for(var w=0,T=h;w<T.length;w++){var _=T[w],P=_.decl,A=_.exported;if("const"===P.node.kind){var I,M=(0,r.A)(P.get("declarations"));try{for(M.s();!(I=M.n()).done;){var O=I.value,B=O.get("init");if(B.isCallExpression()){var F=B.get("callee");if(F.isIdentifier())if(d(F,"createContext")){var L=O.get("id");if(L.isIdentifier()){var D={type:"context",context:L.node.name};a.add(L.node),A?e.namedExports.set(L.node.name,D):e.internals.push(D)}else e.errors.push({message:"Unsupported context identifier type: ".concat(L.type),node:L.node,severity:"error"})}else e.errors.push({message:"Global variables must be initialized with createContext, but got: ".concat(F.node.name),node:F.node,severity:"error"});else e.errors.push({message:"Unsupported variable initializer type: ".concat(F.type),node:F.node,severity:"error"})}else e.errors.push({message:"Global variables must be initialized with a call expression, but got: ".concat(B.type),node:B.node,severity:"error"})}}catch(e){M.e(e)}finally{M.f()}}else e.errors.push({message:"Global variables must be declared with const.",node:P.node,severity:"error"})}for(var N=0,R=y;N<R.length;N++)le(E(R[N],e.filePath,t.files),t,void 0,i);for(var j=0,W=f;j<W.length;j++){var U=W[j],V=U.func,H=U.exported,q=V.node.id;if(ae(q,e)){var $="app"===t.appType&&"entry"===e.moduleType?"page":"template",J=te(V,e,t,$,c);if(J){var X={type:$,component:J};H?e.namedExports.set(q.name,X):e.internals.push(X)}}else{var z=ie(V,e,t,c);if(z){var Y={type:"function",function:z};H?e.namedExports.set(q.name,Y):e.internals.push(Y)}}}if(m){var Q=m.node.id;if(Q?ae(Q,e):"function"!==e.moduleType){var Z="entry"===e.moduleType?"template"===t.appType?"template":"view":"page"===e.moduleType?"page":"template",ee=te(m,e,t,Z,c);ee&&(e.defaultExport=(0,l.A)({type:Z,component:ee},"view"===Z?{title:K(ee)}:{}))}else{var ne=ie(m,e,t,c);ne&&(e.defaultExport={type:"function",function:ne})}}if(g){var re=G(g,e,t,c);e.render={type:"render",children:re}}n.stop()}})}(h,t,n,i):u&&t.constants.set(e,a.content)}}function ce(e){var t,n=(0,r.A)(e.modules.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i){var s,o=(0,r.A)(i.errors);try{for(o.s();!(s=o.n()).done;){var a=s.value;e.errors.push((0,l.A)((0,l.A)({},a),{},{filePath:i.filePath}))}}catch(a){o.e(a)}finally{o.f()}}}}catch(a){n.e(a)}finally{n.f()}}function ue(e,t){var n,a,l={appType:"view",modules:new Map,files:[{filePath:"/View.tsx",content:e}].concat((0,i.A)(null!==(n=null==t?void 0:t.libs)&&void 0!==n?n:[])),constants:new Map,errors:[]};try{a=(0,s.parse)(e,{plugins:["jsx","typescript"],sourceType:"module",errorRecovery:!0})}catch(e){return l.errors.push({message:"Failed to parse TSX: ".concat(e),node:null,severity:"fatal",filePath:"/View.tsx"}),l}var c,u=(0,r.A)(a.program.body);try{for(u.s();!(c=u.n()).done;){var p=c.value;if(o.isExportDefaultDeclaration(p)){if(o.isFunctionDeclaration(p.declaration))return le("/View.tsx",l,a,t),ce(l),l;break}}}catch(e){u.e(e)}finally{u.f()}return function(e,t,n,i){var s,o=[];if(null!==(s=n.errors)&&void 0!==s&&s.length){var a,l=(0,r.A)(n.errors);try{for(l.s();!(a=l.n()).done;){var c=a.value;o.push({message:"".concat(c.code,": ").concat(c.reasonCode),node:null,severity:"error"})}}catch(e){l.e(e)}finally{l.f()}}var u=new Map,p={type:"view",bindingMap:u},f={component:p,stateBindings:null==i?void 0:i.withContexts},h={source:t.files.find((function(t){return t.filePath===e})).content,filePath:e,moduleType:"entry",defaultExport:{type:"view",component:p},internals:[],namedExports:new Map,errors:o,contracts:new Set,usedHelpers:new Set};$(n,{Program:function(e){var n,i=e.get("body"),s=!1,a=(0,r.A)(i);try{for(a.s();!(n=a.n()).done;){var l=n.value;if(l.isVariableDeclaration()){if(s){o.push({message:"Unexpected variable declaration after export",node:l.node,severity:"error"});continue}if("const"!==l.node.kind){o.push({message:'Only "const" variable declaration is allowed, received: '.concat(l.node.kind),node:l.node,severity:"error"});continue}var c,d=(0,r.A)(l.get("declarations"));try{for(d.s();!(c=d.n()).done;){var m=c.value,g=m.get("id");if(g.isIdentifier()){var y={id:g.node,kind:"constant"},v=m.get("init");v.node&&(y.initialValue=M(v,h,t,f)),u.set(g.node,y)}else o.push({message:"Unsupported variable declaration pattern, expected: Identifier, received: ".concat(g.type),node:g.node,severity:"error"})}}catch(e){d.e(e)}finally{d.f()}}else if(l.isExportDefaultDeclaration()){s=!0;var b=l.get("declaration");b.isJSXElement()?p.children=G(b,h,t,f):o.push({message:"Default export must be a JSX element, received: ".concat(b.type),node:l.node,severity:"error"});break}}}catch(e){a.e(e)}finally{a.f()}e.stop()}}),h.defaultExport.title=K(p),t.modules.set(e,h),t.entry=h}("/View.tsx",l,a,t),ce(l),l}},68418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,n){i(this.node,e,t,n)},t.addComments=function(e,t){s(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const r=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=Boolean(r.node),a=Boolean(i.node);s&&(n&&r.addComments("trailing",o(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",o(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))};var r=n(58135);const{addComment:i,addComments:s}=r;function o(e,t){if(null==t||!t.length)return e;const n=new Set(t);return e.filter((e=>!n.has(e)))}},72064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=s(e.ast);return t&&(e.placeholders.forEach((e=>{if(!hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}\n - { placeholderPattern: /^${t}$/ }`)}})),Object.keys(t).forEach((t=>{if(!e.placeholderNames.has(t))throw new Error(`Unknown substitution "${t}" given`)}))),e.placeholders.slice().reverse().forEach((e=>{try{var r;!function(e,t,n){e.isDuplicate&&(Array.isArray(n)?n=n.map((e=>s(e))):"object"==typeof n&&(n=s(n)));const{parent:r,key:h,index:d}=e.resolve(t);if("string"===e.type){if("string"==typeof n&&(n=p(n)),!n||!u(n))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===d?n?Array.isArray(n)?n=i(n):"string"==typeof n?n=a(l(n)):c(n)||(n=a(n)):n=o():n&&!Array.isArray(n)&&("string"==typeof n&&(n=l(n)),c(n)||(n=a(n)));else if("param"===e.type){if("string"==typeof n&&(n=l(n)),void 0===d)throw new Error("Assertion failure.")}else if("string"==typeof n&&(n=l(n)),Array.isArray(n))throw new Error("Cannot replace single expression with an array.");function m(e,t,n){const r=e[t];e[t]=n,"Identifier"!==r.type&&"Placeholder"!==r.type||(r.typeAnnotation&&(n.typeAnnotation=r.typeAnnotation),r.optional&&(n.optional=r.optional),r.decorators&&(n.decorators=r.decorators))}if(void 0===d)f(r,h,n),m(r,h,n);else{const t=r[h].slice();"statement"===e.type||"param"===e.type?null==n?t.splice(d,1):Array.isArray(n)?t.splice(d,1,...n):m(t,d,n):m(t,d,n),f(r,h,t),r[h]=t}}(e,n,null!=(r=t&&t[e.name])?r:null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}})),n};var r=n(58135);const{blockStatement:i,cloneNode:s,emptyStatement:o,expressionStatement:a,identifier:l,isStatement:c,isStringLiteral:u,stringLiteral:p,validate:f}=r},74145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){return y(this,e,new Map)},t._resolve=v,t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?o(e):!!this.isBlockStatement()&&a(e))},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.isCompletionRecord=function(e){let t=this,n=!0;do{const{type:r,container:i}=t;if(!n&&(t.isFunction()||"StaticBlock"===r))return!!e;if(n=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((e=>e.isConstantExpression())));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&(1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral())},t.isInStrictMode=function(){return!!(this.isProgram()?this:this.parentPath).find((e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0}))},t.isNodeType=function(e){return p(this.type,e)},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!o(this.container)&&i.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.matchesPattern=function(e,t){return f(this.node,e,t)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?u(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!r.isImportDefaultSpecifier()||"default"!==t)||(!(!r.isImportNamespaceSpecifier()||"*"!==t)||!(!r.isImportSpecifier()||!l(r.node.imported,{name:t}))))))},t.resolve=function(e,t){return v.call(this,e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var r=n(58135);const{STATEMENT_OR_BLOCK_KEYS:i,VISITOR_KEYS:s,isBlockStatement:o,isExpression:a,isIdentifier:l,isLiteral:c,isStringLiteral:u,isType:p,matchesPattern:f}=r;function h(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function d(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function m(e,t){for(let n=0;n<t;n++){const t=e[n];if(d(t.parent.type,t.parentKey))return!0}return!1}t.has=function(e){var t;const n=null==(t=this.node)?void 0:t[e];return n&&Array.isArray(n)?!!n.length:!!n},t.is=t.has,t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t};const g=Symbol();function y(e,t,n){const r={this:h(e),target:h(t)};if(r.target.node!==r.this.node)return function(e,t,n){let r,i=n.get(e.node);if(i){if(r=i.get(t.node))return r===g?"unknown":r}else n.set(e.node,i=new Map);i.set(t.node,g);const s=function(e,t,n){if(!t.isFunctionDeclaration())return"before"===y(e,t,n)?"before":"unknown";if(t.parentPath.isExportDeclaration())return"unknown";const r=t.scope.getBinding(t.node.id.name);if(!r.references)return"before";const i=r.referencePaths;let s;for(const r of i){if(r.find((e=>e.node===t.node)))continue;if("callee"!==r.key||!r.parentPath.isCallExpression())return"unknown";const i=y(e,r,n);if(s&&s!==i)return"unknown";s=i}return s}(e,t,n);return i.set(t.node,s),s}(e,r.target,n);const i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return"after";if(i.this.includes(t))return"before";let o;const a={target:0,this:0};for(;!o&&a.this<i.this.length;){const e=i.this[a.this];a.target=i.target.indexOf(e),a.target>=0?o=e:a.this++}if(!o)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(m(i.this,a.this-1)||m(i.target,a.target-1))return"unknown";const l={this:i.this[a.this-1],target:i.target[a.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";const c=s[o.type],u=c.indexOf(l.this.parentKey);return c.indexOf(l.target.parentKey)>u?"before":"after"}function v(e,t){var n;if(null==(n=t)||!n.includes(this))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){const r=n.path.resolve(e,t);if(this.find((e=>e.node===r.node)))return;return r}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!c(n))return;const r=n.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression()){const n=i.get("properties");for(const i of n){if(!i.isProperty())continue;const n=i.get("key");let s=i.isnt("computed")&&n.isIdentifier({name:r});if(s=s||n.isLiteral({value:r}),s)return i.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+r)){const n=i.get("elements")[r];if(n)return n.resolve(e,t)}}}}},74564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,t):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=i.TokenContext.arrowBody,this.print(e.body)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},t._functionHead=function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){const t=e.kind,n=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(n),this.tokenChar(93)):this.print(n),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},t._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t._parameters=function(e,t){const n=this.enterDelimited(),r=this.shouldPrintTrailingComma(t),i=e.length;for(let t=0;t<i;t++)this._param(e[t]),(r||t<i-1)&&(this.token(",",null,t),this.space());this.token(t),n()},t._params=function(e,t,n){this.print(e.typeParameters);const r=o.call(this,t,n);r&&this.sourceIdentifierName(r.name,r.pos),this.tokenChar(40),this._parameters(e.params,")");const i="ArrowFunctionExpression"===e.type;this.print(e.returnType,i),this._noLineTerminator=i},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},t._shouldPrintArrowParamsParens=function(e){var t,n;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const r=e.params[0];if(!s(r)||r.typeAnnotation||r.optional||null!=(t=r.leadingComments)&&t.length||null!=(n=r.trailingComments)&&n.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const t=this.tokenMap.findMatching(e,"=>");return null==(null==t?void 0:t.loc)||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var r=n(58135),i=n(21956);const{isIdentifier:s}=r;function o(e,t){let n,r=e;if(!r&&t){const e=t.type;"VariableDeclarator"===e?r=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?r=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(r=t.key)}if(r){var i,s;if("Identifier"===r.type)n={pos:null==(i=r.loc)?void 0:i.start,name:(null==(s=r.loc)?void 0:s.identifierName)||r.name};else if("PrivateName"===r.type){var o;n={pos:null==(o=r.loc)?void 0:o.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var a;n={pos:null==(a=r.loc)?void 0:a.start,name:r.value}}return n}}},75267:function(e,t,n){!function(e,t,n,r){"use strict";class i{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new t.SetArray}}function s(e){const{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:s}=e;return function(e){const{length:t}=e;let n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:s.array}}function o(e,n,r,i,s,o,l,c,u){const{_mappings:p,_sources:f,_sourcesContent:h,_names:d}=n,m=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(p,r),g=function(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][0]);n=r--);return n}(m,i);if(!s){if(e&&function(e,t){return 0===t||1===e[t-1].length}(m,g))return;return a(m,g,[i])}const y=t.put(f,s),v=c?t.put(d,c):-1;if(y===h.length&&(h[y]=null!=u?u:null),!e||!function(e,t,n,r,i,s){if(0===t)return!1;const o=e[t-1];return 1!==o.length&&n===o[1]&&r===o[2]&&i===o[3]&&s===(5===o.length?o[4]:-1)}(m,g,y,o,l,v))return a(m,g,c?[i,y,o,l,v]:[i,y,o,l])}function a(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function l(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}function c(e,t,n){const{generated:r,source:i,original:s,name:a,content:l}=n;return i?o(e,t,r.line-1,r.column,i,s.line-1,s.column,a,l):o(e,t,r.line-1,r.column,null,null,null,null,null)}e.GenMapping=i,e.addMapping=function(e,t){return c(!1,e,t)},e.addSegment=function(e,t,n,r,i,s,a,l){return o(!1,e,t,n,r,i,s,a,l)},e.allMappings=function(e){const t=[],{_mappings:n,_sources:r,_names:i}=e;for(let e=0;e<n.length;e++){const s=n[e];for(let n=0;n<s.length;n++){const o=s[n],a={line:e+1,column:o[0]};let l,c,u;1!==o.length&&(l=r.array[o[1]],c={line:o[2]+1,column:o[3]},5===o.length&&(u=i.array[o[4]])),t.push({generated:a,source:l,original:c,name:u})}}return t},e.fromMap=function(e){const t=new r.TraceMap(e),n=new i({file:t.file,sourceRoot:t.sourceRoot});return l(n._names,t.names),l(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),n._mappings=r.decodedMappings(t),t.ignoreList&&l(n._ignoreList,t.ignoreList),n},e.maybeAddMapping=(e,t)=>c(!0,e,t),e.maybeAddSegment=(e,t,n,r,i,s,a,l)=>o(!0,e,t,n,r,i,s,a,l),e.setIgnore=function(e,n,r=!0){const{_sources:i,_sourcesContent:s,_ignoreList:o}=e,a=t.put(i,n);a===s.length&&(s[a]=null),r?t.put(o,a):t.remove(o,a)},e.setSourceContent=function(e,n,r){const{_sources:i,_sourcesContent:s}=e;s[t.put(i,n)]=r},e.toDecodedMap=s,e.toEncodedMap=function(e){const t=s(e);return Object.assign(Object.assign({},t),{mappings:n.encode(t.mappings)})},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(26801),n(14017),n(41969))},76697:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;var r=n(58135);const{traverseFast:i,VISITOR_KEYS:s}=r;t.TokenMap=class{constructor(e,t,n){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=n,i(e,(e=>{const t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)})),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=0;e<n.length;e++){const r=n[e],i=this._tokens[r];if(t(i,r))return i}return null}findLastIndex(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=n.length-1;e>=0;e--){const r=n[e];if(t(this._tokens[r],r))return r}return-1}findMatching(e,t,n=0){const r=this._nodesToTokenIndexes.get(e);if(r){let i=0;const s=n;if(s>1){const r=this._nodesOccurrencesCountCache.get(e);r&&r.test===t&&r.count<s&&(i=r.i+1,n-=r.count+1)}for(;i<r.length;i++){const o=this._tokens[r[i]];if(this.matchesOriginal(o,t)){if(0===n)return s>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i}),o;n--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const r=this._tokens[n[0]];return r.start===e.start&&this.matchesOriginal(r,t)}endMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const r=this._tokens[n[n.length-1]];return r.end===e.end&&this.matchesOriginal(r,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];const{first:t,last:n}=this._findTokensOfNode(e,0,this._tokens.length-1);let r=t;const i=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}const t=s[e.type];for(const n of t){const t=e[n];t&&(Array.isArray(t)?yield*t:yield t)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||i.next();const o=[];for(const e of i){if(null==e)continue;if(null==e.start||null==e.end)continue;const t=this._findTokensOfNode(e,r,n),i=t.first;for(let e=r;e<i;e++)o.push(e);r=t.last+1}for(let e=r;e<=n;e++)o.push(e);return o}_findTokensOfNode(e,t,n){const r=this._tokensCache.get(e);if(r)return r;const i=this._findFirstTokenOfNode(e.start,t,n),s=this._findLastTokenOfNode(e.end,i,n);return this._tokensCache.set(e,{first:i,last:s}),{first:i,last:s}}_findFirstTokenOfNode(e,t,n){for(;t<=n;){const r=n+t>>1;if(e<this._tokens[r].start)n=r-1;else{if(!(e>this._tokens[r].start))return r;t=r+1}}return t}_findLastTokenOfNode(e,t,n){for(;t<=n;){const r=n+t>>1;if(e<this._tokens[r].end)n=r-1;else{if(!(e>this._tokens[r].end))return r;t=r+1}}return n}}},80004:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0,n(44537);var r=n(95957);t.visitors=r;var i=n(58135),s=n(56266),o=n(51597),a=n(32670),l=n(54683),c=n(9783);const{VISITOR_KEYS:u,removeProperties:p,traverseFast:f}=i;function h(e,t={},n,i,s,a){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&a)throw new Error("visitSelf can only be used when providing a NodePath.");u[e.type]&&(r.explode(t),(0,o.traverseNode)(e,t,n,i,s,null,a))}}t.default=h,h.visitors=r,h.verify=r.verify,h.explode=r.explode,h.cheap=function(e,t){f(e,t)},h.node=function(e,t,n,r,i,s){(0,o.traverseNode)(e,t,n,r,i,s)},h.clearNode=function(e,t){p(e,t)},h.removeProperties=function(e,t){return f(e,h.clearNode,t),e},h.hasType=function(e,t,n){return(null==n||!n.includes(e.type))&&(e.type===t||f(e,(function(e){return null!=n&&n.includes(e.type)?f.skip:e.type===t?f.stop:void 0})))},h.cache=s},80366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=c(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value};const r=["Number","String","Math"],i=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],s=["random"];function o(e){return r.includes(e)}function a(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}const l=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function c(e,t){const{node:r}=e,{seen:p}=t;if(p.has(r)){const n=p.get(r);return n.resolved?n.value:void a(e,t)}{const f={resolved:!1};p.set(r,f);const h=function(e,t){if(t.confident){if(e.isSequenceExpression()){const n=e.get("expressions");return c(n[n.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return u(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const n=e.get("tag.object"),{node:{name:r}}=n,i=e.get("tag.property");if(n.isIdentifier()&&"String"===r&&!e.scope.getBinding(r)&&i.isIdentifier()&&"raw"===i.node.name)return u(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const n=c(e.get("test"),t);if(!t.confident)return;return c(n?e.get("consequent"):e.get("alternate"),t)}if(e.isExpressionWrapper())return c(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const n=e.get("property"),r=e.get("object");if(r.isLiteral()){const i=r.node.value,s=typeof i;let o=null;if(e.node.computed){if(o=c(n,t),!t.confident)return}else n.isIdentifier()&&(o=n.node.name);if(!("number"!==s&&"string"!==s||null==o||"number"!=typeof o&&"string"!=typeof o))return i[o]}}if(e.isReferencedIdentifier()){const n=e.scope.getBinding(e.node.name);if(n){if(n.constantViolations.length>0||e.node.start<n.path.node.end)return void a(n.path,t);const i=n.path.scope;if("var"===n.kind&&i!==n.scope){let s=!i.path.parentPath.isBlockStatement();for(let o=i.parent;o;o=o.parent){var r;if(o===e.scope){if(s)return void a(n.path,t);break}null!=(r=o.path.parentPath)&&r.isBlockStatement()&&(s=!0)}}if(n.hasValue)return n.value}const i=e.node.name;if(l.has(i))return n?void a(n.path,t):l.get(i);const s=e.resolve();if(s===e)return void a(e,t);const o=c(s,t);return"object"==typeof o&&null!==o&&n.references>1?void a(s,t):o}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;const n=e.get("argument");if("typeof"===e.node.operator&&(n.isFunction()||n.isClass()))return"function";const r=c(n,t);if(!t.confident)return;switch(e.node.operator){case"!":return!r;case"+":return+r;case"-":return-r;case"~":return~r;case"typeof":return typeof r}}if(e.isArrayExpression()){const n=[],r=e.get("elements");for(const e of r){const r=e.evaluate();if(!r.confident)return void a(r.deopt,t);n.push(r.value)}return n}if(e.isObjectExpression()){const n={},r=e.get("properties");for(const e of r){if(e.isObjectMethod()||e.isSpreadElement())return void a(e,t);const r=e.get("key");let i;if(e.node.computed){if(i=r.evaluate(),!i.confident)return void a(i.deopt,t);i=i.value}else i=r.isIdentifier()?r.node.name:r.node.value;let s=e.get("value").evaluate();if(!s.confident)return void a(s.deopt,t);s=s.value,n[i]=s}return n}if(e.isLogicalExpression()){const n=t.confident,r=c(e.get("left"),t),i=t.confident;t.confident=n;const s=c(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":if(t.confident=i&&(!!r||o),!t.confident)return;return r||s;case"&&":if(t.confident=i&&(!r||o),!t.confident)return;return r&&s;case"??":if(t.confident=i&&(null!=r||o),!t.confident)return;return null!=r?r:s}}if(e.isBinaryExpression()){const n=c(e.get("left"),t);if(!t.confident)return;const r=c(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return n-r;case"+":return n+r;case"/":return n/r;case"*":return n*r;case"%":return n%r;case"**":return Math.pow(n,r);case"<":return n<r;case">":return n>r;case"<=":return n<=r;case">=":return n>=r;case"==":return n==r;case"!=":return n!=r;case"===":return n===r;case"!==":return n!==r;case"|":return n|r;case"&":return n&r;case"^":return n^r;case"<<":return n<<r;case">>":return n>>r;case">>>":return n>>>r}}if(e.isCallExpression()){const r=e.get("callee");let a,l;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(o(r.node.name)||function(e){return i.includes(e)}(r.node.name))&&(l=n.g[r.node.name]),r.isMemberExpression()){const e=r.get("object"),t=r.get("property");if(e.isIdentifier()&&t.isIdentifier()&&o(e.node.name)&&!function(e){return s.includes(e)}(t.node.name)){a=n.g[e.node.name];const r=t.node.name;hasOwnProperty.call(a,r)&&(l=a[r])}if(e.isLiteral()&&t.isIdentifier()){const n=typeof e.node.value;"string"!==n&&"number"!==n||(a=e.node.value,l=a[t.node.name])}}if(l){const n=e.get("arguments").map((e=>c(e,t)));if(!t.confident)return;return l.apply(a,n)}}a(e,t)}}(e,t);return t.confident&&(f.resolved=!0,f.value=h),h}}function u(e,t,n,r=!1){let i="",s=0;const o=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const e of t){if(!n.confident)break;i+=r?e.value.raw:e.value.cooked;const t=o[s++];t&&(i+=String(c(t,n)))}if(n.confident)return i}},82475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(96405),i=n(21956),s=i,o=n(58135),a=n(76697),l=n(62798),c=n(58121);const{isExpression:u,isFunction:p,isStatement:f,isClassBody:h,isTSInterfaceBody:d,isTSEnumMember:m}=o,g=/e/i,y=/\.0+$/,v=/[\n\r\u2028\u2029]/,b=/[\n\r\u2028\u2029]|\*\//;function x(e){return"CommentLine"===e.type||v.test(e.value)}const{needsParens:S}=s;class C{constructor(e,t,n,s){this.tokenContext=i.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=n,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=null==t?void 0:t._inputMap,this._buf=new r.default(t,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=i.TokenContext.forInitHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=i.TokenContext.forOfHead,null):(this.tokenContext|=i.TokenContext.forInHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,t=this._noLineTerminatorAfterNode;return e&i.TokenContext.forInOrInitHeadAccumulate||null!==t?(this._noLineTerminatorAfterNode=null,this.tokenContext=i.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=t,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new a.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){const{format:t}=this;if(!t.compact&&!t.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,t=!1){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!g.test(e)&&!y.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1,n=0){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,n),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,n);const r=this.getLastChar(),s=e.charCodeAt(0);(33===r&&("--"===e||61===s)||43===s&&43===r||45===s&&45===r||46===s&&this._endsWithInteger)&&this._space(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);const n=this.getLastChar();(43===e&&43===n||45===e&&45===n||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,n){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,n))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=this._buf._sourcePosition;n.identifierNamePos=t,n.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const n=this.tokenMap.findMatching(this._currentNode,e,t);n&&this._catchUpTo(n.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){const{format:n}=this;if(!n.preserveFormat)return void(n.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line));const r=null==t?void 0:t[e];null!=r&&this._catchUpTo(r)}_catchUpTo({line:e,column:t,index:n}){const r=e-this._buf.getCurrentLine();if(r>0&&this._noLineTerminator)return;for(let e=0;e<r;e++)this._newline();const i=r>0?t:t-this._buf.getCurrentColumn();if(i>0){const e=this._originalCode?this._originalCode.slice(n-i,n).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t,n){var r,o,a;if(!e)return;this._endsWithInnerRaw=!1;const l=e.type,c=this.format,p=c.concise;e._compact&&(c.concise=!0);const f=this[l];if(void 0===f)throw new ReferenceError(`unknown node of type ${JSON.stringify(l)} with constructor ${JSON.stringify(e.constructor.name)}`);const h=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const d=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!d);const m=null==(r=e.extra)?void 0:r.parenthesized;let g=m&&c.preserveFormat||m&&c.retainFunctionParens&&"FunctionExpression"===l||S(e,h,this.tokenContext,c.preserveFormat?this._boundGetRawIdentifier:void 0);if(!g&&m&&null!=(o=e.leadingComments)&&o.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==h?void 0:h.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(h.callee!==e)break;default:g=!0}let y,v,b=!1;var C;!g&&this._noLineTerminator&&(null!=(a=e.leadingComments)&&a.some(x)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(g=!0,b=!0),g||(t||(t=h&&this._noLineTerminatorAfterNode===h&&s.isLastChild(h,e)),t&&(null!=(C=e.trailingComments)&&C.some(x)?u(e)&&(g=!0):(y=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),g&&(this.tokenChar(40),b&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&i.TokenContext.forInOrInitHeadAccumulate&&(v=this.tokenContext,this.tokenContext=i.TokenContext.normal),y=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,h);const E="Program"===l||"File"===l?null:e.loc;this.exactSource(E,f.bind(this,e,h)),g?(this._printTrailingComments(e,h),b&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,v&&(this.tokenContext=v)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,h)):this._printTrailingComments(e,h,n),this._currentNode=h,c.concise=p,this._insideAux=d,void 0!==y&&(this._noLineTerminatorAfterNode=y),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n,r,i,s,o,a){if(null==e||!e.length)return;if(null==n&&this.format.retainLines){var l;const t=null==(l=e[0].loc)?void 0:l.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(n=!0)}n&&this.indent();const c={addNewlines:s,nextNodeStartLine:0},u=null==r?void 0:r.bind(this),p=e.length;for(let n=0;n<p;n++){const r=e[n];var f;if(r&&(t&&this._printNewline(0===n,c),this.print(r,void 0,a||0),null==o||o(r,n),null!=u&&(n<p-1?u(n,!1):i&&u(n,!0)),t))if(null!=(f=r.trailingComments)&&f.length||(this._lastCommentLine=0),n+1===p)this.newline(1);else{var h;const t=e[n+1];c.nextNodeStartLine=(null==(h=t.loc)?void 0:h.start.line)||0,this._printNewline(!0,c)}}n&&this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i}=e;null!=r&&r.length&&this._printComments(2,r,e,t,n),null!=i&&i.length&&this._printComments(2,i,e,t,n)}_printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length&&this._printComments(0,n,e,t)}_maybePrintInnerComments(e,t){var n;this._endsWithInnerRaw&&this.printInnerComments(null==(n=this.tokenMap)?void 0:n.findMatching(this._currentNode,e,t)),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const t=this._currentNode,n=t.innerComments;if(null==n||!n.length)return;const r=this.endsWith(32),i=this._indentInnerComments,s=this._printedComments.size;i&&this.indent(),this._printComments(1,n,t,void 0,void 0,e),r&&s!==this._printedComments.size&&this.space(),i&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,n,r){this.printJoin(e,!0,null!=t&&t,void 0,void 0,r,void 0,n)}printList(e,t,n,r,i,s){this.printJoin(e,n,r,null!=i?i:E,t,void 0,s)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,(t=>this.tokenMap.matchesOriginal(t,e)));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)return;if(n.concise)return void this.space();if(!e)return;const r=t.nextNodeStartLine,i=this._lastCommentLine;if(r>0&&i>0){const e=r-i;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&b.test(e.value))return 2;if(t&&this.tokenMap){const n=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(n&&n.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e.type,i=r&&1!==t&&!this._noLineTerminator;i&&this._buf.hasContent()&&2!==t&&this.newline(1);const s=this.getLastChar();let o;if(91!==s&&123!==s&&40!==s&&this.space(),r){if(o=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var a;const t=null==(a=e.loc)?void 0:a.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");o=o.replace(e,"\n")}if(this.format.concise)o=o.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),o=o.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else o=n?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:n}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(o,r),this._printSemicolonBeforeNextNode=n,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(o,r);r||n||this.newline(1,!0),i&&3!==t&&this.newline(1)}_printComments(e,t,n,r,i=0,s){const o=n.loc,a=t.length;let l=!!o;const c=l?o.start.line:0,u=l?o.end.line:0;let g=0,y=0;const b=this._noLineTerminator?function(){}:this.newline.bind(this);for(let o=0;o<a;o++){const x=t[o],S=this._shouldPrintComment(x,s);if(2===S){l=!1;break}if(l&&x.loc&&1===S){const t=x.loc.start.line,n=x.loc.end.line;if(0===e){let e=0;0===o?!this._buf.hasContent()||"CommentLine"!==x.type&&t===n||(e=y=1):e=t-g,g=n,b(e),this._printComment(x,1),o+1===a&&(b(Math.max(c-g,y)),g=c)}else if(1===e){const e=t-(0===o?c:g);g=n,b(e),this._printComment(x,1),o+1===a&&(b(Math.min(1,u-g)),g=u)}else{const e=t-(0===o?u-i:g);g=n,b(e),this._printComment(x,1)}}else{if(l=!1,1!==S)continue;if(1===a){const t=x.loc?x.loc.start.line===x.loc.end.line:!v.test(x.value),i=t&&!f(n)&&!h(r)&&!d(r)&&!m(n);0===e?this._printComment(x,i&&"ObjectExpression"!==n.type||t&&p(r,{body:n})?1:0):i&&2===e?this._printComment(x,1):this._printComment(x,0)}else 1!==e||"ObjectExpression"===n.type&&n.properties.length>1||"ClassBody"===n.type||"TSInterfaceBody"===n.type?this._printComment(x,0):this._printComment(x,0===o?2:o===a-1?3:0)}}2===e&&l&&g&&(this._lastCommentLine=g)}}function E(e,t){this.token(",",!1,e),t||this.space()}Object.assign(C.prototype,l),(0,c.addDeprecatedGenerators)(C),t.default=C},82738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(58135),i=r;const{react:s}=r,{cloneNode:o,jsxExpressionContainer:a,variableDeclaration:l,variableDeclarator:c}=i,u={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&s.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let n=e.scope;do{if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const n=e.scope.getBinding(e.node.name);if(n){for(const r of n.constantViolations)if(r.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};t.default=class{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const n of Object.keys(this.bindings)){if(!t.hasOwnBinding(n))continue;const r=this.bindings[n];if("param"!==r.kind&&"params"!==r.path.parentKey&&this.getAttachmentParentForPath(r.path).key>=e.key){this.attachAfter=!0,e=r.path;for(const t of r.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1}run(){if(this.path.traverse(u,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const n=c(t,this.path.node),r=this.attachAfter?"insertAfter":"insertBefore",[i]=e[r]([e.isVariableDeclarator()?n:l("var",[n])]),s=this.path.parentPath;return s.isJSXElement()&&this.path.container===s.node.children&&(t=a(t)),this.path.replaceWith(o(t)),e.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}},83810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=T,t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation(),n=e.getTypeAnnotation();return!(o(t)||!u(t))&&n.type===t.type},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(o(t))return!0;if(S(t)){for(const n of t.types)if(o(n)||_(e,n,!0))return!0;return!1}return _(e,t,!0)},t.getTypeAnnotation=function(){let e=this.getData("typeAnnotation");return null!=e||(e=T.call(this)||s(),(x(e)||y(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},t.isBaseType=function(e,t){return _(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){const t=this.getTypeAnnotation();return!("Array"!==e||!(g(t)||a(t)||b(t)))||(p(t)&&f(t.id,{name:e})||v(t)&&f(t.typeName,{name:e}))};var r=n(19724),i=n(58135);const{anyTypeAnnotation:s,isAnyTypeAnnotation:o,isArrayTypeAnnotation:a,isBooleanTypeAnnotation:l,isEmptyTypeAnnotation:c,isFlowBaseAnnotation:u,isGenericTypeAnnotation:p,isIdentifier:f,isMixedTypeAnnotation:h,isNumberTypeAnnotation:d,isStringTypeAnnotation:m,isTSArrayType:g,isTSTypeAnnotation:y,isTSTypeReference:v,isTupleTypeAnnotation:b,isTypeAnnotation:x,isUnionTypeAnnotation:S,isVoidTypeAnnotation:C,stringTypeAnnotation:E,voidTypeAnnotation:k}=i,w=new WeakSet;function T(){const e=this.node;if(e){if(e.typeAnnotation)return e.typeAnnotation;if(!w.has(e)){w.add(e);try{var t;let n=r[e.type];if(n)return n.call(this,e);if(n=r[this.parentPath.type],null!=(t=n)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{w.delete(e)}}}else if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?E():"left"===e.key&&t.isForOfStatement()?s():k()}}function _(e,t,n){if("string"===e)return m(t);if("number"===e)return d(t);if("boolean"===e)return l(t);if("any"===e)return o(t);if("mixed"===e)return h(t);if("empty"===e)return c(t);if("void"===e)return C(t);if(n)return!1;throw new Error(`Unknown base type ${e}`)}},90157:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let n,r,i=1/0;const s=e.map((e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<i&&(i=t.length),t})),o=s[0];e:for(let e=0;e<i;e++){const t=o[e];for(const n of s)if(n[e]!==t)break e;n=e,r=t}if(r)return t?t(r,n,s):r;throw new Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,n){let r;const s=i[e.type];for(const e of n){const n=e[t+1];r?(n.listKey&&r.listKey===n.listKey&&n.key<r.key||s.indexOf(r.parentKey)>s.indexOf(n.parentKey))&&(r=n):r=n}return r}))},t.getFunctionParent=function(){return this.findParent((e=>e.isFunction()))},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.inType=function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent((t=>t===e))};var r=n(58135);const{VISITOR_KEYS:i}=r},93464:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),i.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),f.call(this,e)},t.DeclareFunction=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},t.DeclareOpaqueType=function(e,t){a(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;c(this,"boolean",t),u(this,e)},t.EnumBooleanMember=function(e){p(this,e)},t.EnumDeclaration=function(e){const{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t),this.print(n)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;c(this,"number",t),u(this,e)},t.EnumNumberMember=function(e){p(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;c(this,"string",t),u(this,e)},t.EnumStringMember=function(e){p(this,e)},t.EnumSymbolBody=function(e){c(this,"symbol",!0),u(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);const n=null==t?void 0:t.type;null!=n&&("ObjectTypeCallProperty"===n||"ObjectTypeInternalSlot"===n||"DeclareFunction"===n||"ObjectTypeProperty"===n&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},t.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},t.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,h)},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return o.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,(function(e){if(e&&!t[0])return 1}),(()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())})),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return o.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},t.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=s.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,d)},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,n,r;(this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type)&&(null!=(n=e.mixins)&&n.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(r=e.implements)&&r.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)));this.space(),this.print(e.body)},t._variance=function(e){var t;const n=null==(t=e.variance)?void 0:t.kind;null!=n&&("plus"===n?this.tokenChar(43):"minus"===n&&this.tokenChar(45))};var r=n(58135),i=n(58231),s=n(21956),o=n(32387);const{isDeclareExportDeclaration:a,isStatement:l}=r;function c(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function u(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();for(const t of n)e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function p(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function f(e){if(e.declaration){const t=e.declaration;this.print(t),l(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function h(e){this.space(),this.token("&",!1,e),this.space()}function d(e){this.space(),this.token("|",!1,e),this.space()}},94403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},t.TemplateElement=function(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},t.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},t._printTemplate=function(e,t){const n=e.quasis;let r="`";for(let i=0;i<n.length-1;i++)if(r+=n[i].value.raw,this.token(r+"${",!0),this.print(t[i]),r="}",this.tokenMap){const t=this.tokenMap.findMatching(e,"}",i);t&&this._catchUpTo(t.loc.start)}r+=n[n.length-1].value.raw,this.token(r+"`",!0)}},94834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=j,t.replaceExpressionWithStatements=function(e){u.resync.call(this);const t=[],n=W(e,t);if(n){for(const e of t)this.scope.push({id:e});return this.replaceWith(n)[0].get("expressions")}const r=this.getFunctionParent(),s=null==r?void 0:r.node.async,o=null==r?void 0:r.node.generator,a=f([],m(e));this.replaceWith(y(a,[]));const l=this.get("callee");l.get("body").scope.hoistVariables((e=>this.scope.push({id:e})));const c=l.getCompletionRecords();for(const e of c){if(!e.isExpressionStatement())continue;const t=e.findParent((e=>e.isLoop()));if(t){let n=t.getData("expressionReplacementReturnUid");n?n=C(n.name):(n=l.scope.generateDeclaredUidIdentifier("ret"),l.get("body").pushContainer("body",L(v(n))),t.setData("expressionReplacementReturnUid",n)),e.get("expression").replaceWith(h("=",v(n),e.node.expression))}else e.replaceWith(L(e.node.expression))}l.arrowFunctionToExpression();const g=l,b=s&&i.default.hasType(this.get("callee.body").node,"AwaitExpression",p),x=o&&i.default.hasType(this.get("callee.body").node,"YieldExpression",p);return b&&(g.set("async",!0),x||this.replaceWith(d(this.node))),x&&(g.set("generator",!0),this.replaceWith(R(this.node,!0))),g.get("body.body")},t.replaceInline=function(e){if(u.resync.call(this),Array.isArray(e)){if(Array.isArray(this.container)){e=a._verifyNodeList.call(this,e);const t=a._containerInsertAfter.call(this,e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},t.replaceWith=function(e){if(u.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof s.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!M(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let n="";if(this.isNodeType("Statement")&&P(t)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(t)||this.parentPath.isExportDefaultDeclaration()||(t=x(t),n="expression")),this.isNodeType("Expression")&&O(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);const r=this.node;return r&&(w(t,r),F(r)),j.call(this,t),this.type=t.type,u.setScope.call(this),this.requeue(),[n?this.get(n):this]},t.replaceWithMultiple=function(e){var t;u.resync.call(this),e=a._verifyNodeList.call(this,e),E(e[0],this.node),k(e[e.length-1],this.node),null==(t=(0,o.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;const n=this.insertAfter(e);return this.node?this.requeue():this.remove(),n},t.replaceWithSourceString=function(e){let t;u.resync.call(this);try{e=`(${e})`,t=(0,l.parse)(e)}catch(t){const n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,r.codeFrameColumns)(e,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}const n=t.program.body[0].expression;return i.default.removeProperties(n),this.replaceWith(n)};var r=n(56611),i=n(80004),s=n(32670),o=n(56266),a=n(11064),l=n(40580),c=n(58135),u=n(44537);const{FUNCTION_TYPES:p,arrowFunctionExpression:f,assignmentExpression:h,awaitExpression:d,blockStatement:m,buildUndefinedNode:g,callExpression:y,cloneNode:v,conditionalExpression:b,expressionStatement:x,getBindingIdentifiers:S,identifier:C,inheritLeadingComments:E,inheritTrailingComments:k,inheritsComments:w,isBlockStatement:T,isEmptyStatement:_,isExpression:P,isExpressionStatement:A,isIfStatement:I,isProgram:M,isStatement:O,isVariableDeclaration:B,removeComments:F,returnStatement:L,sequenceExpression:D,validate:N,yieldExpression:R}=c;function j(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?N(this.parent,this.key,[e]):N(this.parent,this.key,e),this.debug(`Replace with ${null==e?void 0:e.type}`),null==(t=(0,o.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}function W(e,t){const n=[];let r=!0;for(const i of e)if(_(i)||(r=!1),P(i))n.push(i);else if(A(i))n.push(i.expression);else if(B(i)){if("var"!==i.kind)return;for(const e of i.declarations){const r=S(e);for(const e of Object.keys(r))t.push(v(r[e]));e.init&&n.push(h("=",e.id,e.init))}r=!0}else if(I(i)){const e=i.consequent?W([i.consequent],t):g(),r=i.alternate?W([i.alternate],t):g();if(!e||!r)return;n.push(b(i.test,e,r))}else if(T(i)){const e=W(i.body,t);if(!e)return;n.push(e)}else{if(!_(i))return;0===e.indexOf(i)&&(r=!0)}return r&&n.push(g()),1===n.length?n[0]:D(n)}},95838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){const{placeholderWhitelist:n=e.placeholderWhitelist,placeholderPattern:r=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:n,placeholderPattern:r,preserveComments:i,syntacticPlaceholders:s}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce(((e,t,n)=>(e["$"+n]=t,e)),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:o}=t,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,n);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=i&&!(i instanceof RegExp)&&!1!==i)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=o&&"boolean"!=typeof o)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===o&&(null!=r||null!=i))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:null==i?void 0:i,preserveComments:null==s?void 0:s,syntacticPlaceholders:null==o?void 0:o}};const n=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},95957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.environmentVisitor=function(e){return g([C,e])},t.explode=h,t.isExplodedVisitor=f,t.merge=g,t.verify=d;var r=n(44057),i=n(37494),s=n(58135),o=n(44537);const{DEPRECATED_KEYS:a,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:c,TYPES:u,__internal__deprecationWarning:p}=s;function f(e){return null==e?void 0:e._exploded}function h(e){if(f(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(x(t))continue;const n=t.split("|");if(1===n.length)continue;const r=e[t];delete e[t];for(const t of n)e[t]=r}d(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(x(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),v(e);for(const t of Object.keys(e)){if(x(t))continue;if(!(t in r))continue;const n=e[t];for(const e of Object.keys(n))n[e]=b(t,n[e]);delete e[t];const i=r[t];if(null!==i)for(const t of i)e[t]?S(e[t],n):e[t]=n;else S(e,n)}for(const t of Object.keys(e)){if(x(t))continue;let n=c[t];if(t in a){const e=a[t];p(t,e,"Visitor "),n=[e]}else if(t in l){const e=l[t];p(t,e,"Visitor "),n=c[e]}if(!n)continue;const r=e[t];delete e[t];for(const t of n){const n=e[t];n?S(n,r):e[t]=Object.assign({},r)}}for(const t of Object.keys(e))x(t)||v(e[t]);return e}function d(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||m(t,e[t]),x(t))continue;if(!u.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.27.4`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);m(`${t}.${e}`,n[e])}}e._verified=!0}}function m(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function g(e,t=[],n){const r={_verified:!0,_exploded:!0};Object.defineProperty(r,"_exploded",{enumerable:!1}),Object.defineProperty(r,"_verified",{enumerable:!1});for(let i=0;i<e.length;i++){const s=h(e[i]),o=t[i];let a=s;(o||n)&&(a=y(a,o,n)),S(r,a);for(const e of Object.keys(s)){if(x(e))continue;let t=s[e];(o||n)&&(t=y(t,o,n)),S(r[e]||(r[e]={}),t)}}return r}function y(e,t,n){const r={};for(const i of["enter","exit"]){let s=e[i];Array.isArray(s)&&(s=s.map((function(e){let r=e;return t&&(r=function(n){e.call(t,n,t)}),n&&(r=n(null==t?void 0:t.key,i,r)),r!==e&&(r.toString=()=>e.toString()),r})),r[i]=s)}return r}function v(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function b(e,t){const n=i[`is${e}`],r=function(e){if(n.call(e))return t.apply(this,arguments)};return r.toString=()=>t.toString(),r}function x(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e}function S(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}const C={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e))}}},96230:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},96405:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,n,r,i){const s=this._queueCursor;s===this._queue.length&&this._allocQueue();const o=this._queue[s];o.char=e,o.repeat=t,o.line=n,o.column=r,o.filename=i,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const n=e?e.get():null;return t.map=n,n},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const n=null==e?void 0:e.getRawMappings();return t.rawMappings=n,n},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let n=0;n<e;n++){const e=t[n];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,n){if(this._last=e,-1===e){const e=this._fastIndentations[t];this._str+=void 0!==e?e:t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(e,t,n){const r=e.length,i=this._position;if(this._last=e.charCodeAt(r-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!n&&!this._map)return void(i.column+=r);const{column:s,identifierName:o,identifierNamePos:a,filename:l}=t;let c=t.line;null==o&&null==a||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let u=e.indexOf("\n"),p=0;for(0!==u&&this._mark(c,s,o,a,l);-1!==u;)i.line++,i.column=0,p=u+1,p<r&&void 0!==c&&this._mark(++c,0,null,null,l),u=e.indexOf("\n",p);i.column+=r-p}_mark(e,t,n,r,i){var s;null==(s=this._map)||s.mark(this._position,e,t,n,r,i)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let n=e-1;n>=0&&10===this._queue[n].char;n--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const n=e.identifierName,r=this._sourcePosition;n&&(this._canMarkIdName=!1,r.identifierName=n),t(),n&&(this._canMarkIdName=!0,r.identifierName=void 0,r.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,n){this._map&&this._normalizePosition(e,t,n)}_normalizePosition(e,t,n){const r=t[e],i=this._sourcePosition;r&&(i.line=r.line,i.column=Math.max(r.column+n,0),i.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let n=-1,r=0;for(let i=0;i<t;i++){const t=e[i];10===t.char&&(n=r),r+=t.repeat}return-1===n?this._position.column+r:r-1-n}getCurrentLine(){let e=0;const t=this._queue;for(let n=0;n<this._queueCursor;n++)10===t[n].char&&e++;return this._position.line+e}}},96647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(32670),i=n(58135),s=n(44537);const{VISITOR_KEYS:o}=i;t.default=class{constructor(e,t,n,r){this.queue=null,this.priorityQueue=null,this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=o[e.type];if(null==n||!n.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,i){return r.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:i})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const r=[];for(let i=0;i<e.length;i++){const s=e[i];s&&this.shouldVisit(s)&&r.push(this.create(t,e,i,n))}return this.visitQueue(r)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1,r=0;for(;r<e.length;){const i=e[r];if(r++,s.resync.call(i),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||s.pushContext.call(i,this),null===i.key)continue;const{node:o}=i;if(!t.has(o)){if(o&&t.add(o),i.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<r;t++)s.popContext.call(e[t]);return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}}},97743:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=!1),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(27891)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},98079:function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var r;function i(e){return e.startsWith("/")}function s(e){return/^[.?#]/.test(e)}function o(e){const n=t.exec(e);return a(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function a(e,t,n,i,s,o,a){return{scheme:e,user:t,host:n,port:i,path:s,query:o,hash:a,type:r.Absolute}}function l(t){if(function(e){return e.startsWith("//")}(t)){const e=o("http:"+t);return e.scheme="",e.type=r.SchemeRelative,e}if(i(t)){const e=o("http://foo.com"+t);return e.scheme="",e.host="",e.type=r.AbsolutePath,e}if(function(e){return e.startsWith("file:")}(t))return function(e){const t=n.exec(e),r=t[2];return a("file:","",t[1]||"","",i(r)?r:"/"+r,t[3]||"",t[4]||"")}(t);if(function(t){return e.test(t)}(t))return o(t);const s=o("http://foo.com/"+t);return s.scheme="",s.host="",s.type=t?t.startsWith("?")?r.Query:t.startsWith("#")?r.Hash:r.RelativePath:r.Empty,s}function c(e,t){const n=t<=r.RelativePath,i=e.path.split("/");let s=1,o=0,a=!1;for(let e=1;e<i.length;e++){const t=i[e];t?(a=!1,"."!==t&&(".."!==t?(i[s++]=t,o++):o?(a=!0,o--,s--):n&&(i[s++]=t))):a=!0}let l="";for(let e=1;e<s;e++)l+="/"+i[e];(!l||a&&!l.endsWith("/.."))&&(l+="/"),e.path=l}return function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"}(r||(r={})),function(e,t){if(!e&&!t)return"";const n=l(e);let i=n.type;if(t&&i!==r.Absolute){const e=l(t),s=e.type;switch(i){case r.Empty:n.hash=e.hash;case r.Hash:n.query=e.query;case r.Query:case r.RelativePath:!function(e,t){c(t,t.type),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path}(n,e);case r.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case r.SchemeRelative:n.scheme=e.scheme}s>i&&(i=s)}c(n,i);const o=n.query+n.hash;switch(i){case r.Hash:case r.Query:return o;case r.RelativePath:{const r=n.path.slice(1);return r?s(t||e)&&!s(r)?"./"+r+o:r+o:o||"."}case r.AbsolutePath:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}}()},98952:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n}}]);
|
|
15
|
-
//# sourceMappingURL=9525.
|
|
14
|
+
`;return this.replaceWith(u)[0].get("arguments.0")},t.splitExportDeclaration=function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const e=this.get("declaration");if(this.isExportDefaultDeclaration()){const t=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),r=e.isScope()?e.scope.parent:e.scope;let i=e.node.id,s=!1;i?n&&r.hasBinding(i.name)&&(s=!0,i=r.generateUidIdentifier(i.name)):(s=!0,i=r.generateUidIdentifier("default"),(t||n)&&(e.node.id=N(i)));const o=t?e.node:R("var",[j(N(i),e.node)]),a=W(null,[U(N(i),d("default"))]);return this.insertAfter(a),this.replaceWith(o),s&&r.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.getOuterBindingIdentifiers(),n=Object.keys(t).map((e=>U(d(e),d(e)))),r=W(null,n);return this.insertAfter(r),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}return this.node.computed||m(e)&&(e=_(e.name)),e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");q(this)};var r=n(58135),i=n(50240),s=n(95957),o=n(44537);const{arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:c,blockStatement:u,callExpression:p,conditionalExpression:f,expressionStatement:h,identifier:d,isIdentifier:m,jsxIdentifier:g,logicalExpression:y,LOGICAL_OPERATORS:v,memberExpression:b,metaProperty:x,numericLiteral:S,objectExpression:C,restElement:E,returnStatement:k,sequenceExpression:w,spreadElement:T,stringLiteral:_,super:P,thisExpression:A,toExpression:I,unaryExpression:M,toBindingIdentifierName:O,isFunction:B,isAssignmentPattern:F,isRestElement:L,getFunctionName:D,cloneNode:N,variableDeclaration:R,variableDeclarator:j,exportNamedDeclaration:W,exportSpecifier:U,inherits:V}=r;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};const H=(0,s.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function q(e,t=!0,n=!0,r=!0){let i,s=e.findParent((e=>e.isArrowFunctionExpression()?(null!=i||(i=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1})));const o=s.isClassMethod({kind:"constructor"});if(s.isClassProperty()||s.isClassPrivateProperty())if(i)s=i;else{if(!n)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(p(a([],I(e.node)),[])),s=e.get("callee"),e=s.get("body")}const{thisPaths:u,argumentsPaths:h,newTargetPaths:m,superProps:C,superCalls:k}=function(e){const t=[],n=[],r=[],i=[],s=[];return e.traverse(J,{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:s}),{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:s}}(e);if(o&&k.length>0){if(!n)throw k[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!r)throw k[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const e=[];s.traverse(H,{allSuperCalls:e});const t=function(e){return $(e,"supercall",(()=>{const t=e.scope.generateUidIdentifier("args");return a([E(t)],p(P(),[T(d(t.name))]))}))}(s);e.forEach((e=>{const n=d(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)}))}if(h.length>0){const e=$(s,"arguments",(()=>{const e=()=>d("arguments");return s.scope.path.isProgram()?f(c("===",M("typeof",e()),_("undefined")),s.scope.buildUndefinedNode(),e()):e()}));h.forEach((t=>{const n=d(e);n.loc=t.node.loc,t.replaceWith(n)}))}if(m.length>0){const e=$(s,"newtarget",(()=>x(d("new"),d("target"))));m.forEach((t=>{const n=d(e);n.loc=t.node.loc,t.replaceWith(n)}))}if(C.length>0){if(!n)throw C[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");C.reduce(((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const n=e.parentPath,r=n.node.operator.slice(0,-1),i=n.node.right,s=function(e){return v.includes(e)}(r);if(e.node.computed){const o=e.scope.generateDeclaredUidIdentifier("tmp"),a=e.node.object,c=e.node.property;n.get("left").replaceWith(b(a,l("=",o,c),!0)),n.get("right").replaceWith(t(s?"=":r,b(a,d(o.name),!0),i))}else{const o=e.node.object,a=e.node.property;n.get("left").replaceWith(b(o,a)),n.get("right").replaceWith(t(s?"=":r,b(o,d(a.name)),i))}return s?n.replaceWith(y(r,n.node.left,n.node.right)):n.node.operator="=",[n.get("left"),n.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),r=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[l("=",n,b(e.node.object,r?l("=",r,e.node.property):e.node.property,e.node.computed)),l("=",b(e.node.object,r?d(r.name):e.node.property,e.node.computed),c(e.parentPath.node.operator[0],d(n.name),S(1)))];return e.parentPath.node.prefix||i.push(d(n.name)),t.replaceWith(w(i)),[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e];function t(e,t,n){return"="===e?l("=",t,n):c(e,t,n)}}(t))),[]).forEach((e=>{const t=e.node.computed?"":e.get("property").node.name,n=e.parentPath,r=n.isAssignmentExpression({left:e.node}),i=n.isCallExpression({callee:e.node}),o=n.isTaggedTemplateExpression({tag:e.node}),c=function(e,t,n){return $(e,`superprop_${t?"set":"get"}:${n||""}`,(()=>{const r=[];let i;if(n)i=b(P(),d(n));else{const t=e.scope.generateUidIdentifier("prop");r.unshift(t),i=b(P(),d(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");r.push(t),i=l("=",i,d(t.name))}return a(r,i)}))}(s,r,t),f=[];if(e.node.computed&&f.push(e.get("property").node),r){const e=n.node.right;f.push(e)}const h=p(d(c),f);i?(n.unshiftContainer("arguments",A()),e.replaceWith(b(h,d("call"))),u.push(n.get("arguments.0"))):r?n.replaceWith(h):o?(e.replaceWith(p(b(h,d("bind"),!1),[A()])),u.push(e.get("arguments.0"))):e.replaceWith(h)}))}let O;return(u.length>0||!t)&&(O=function(e,t){return $(e,"this",(n=>{if(!t||!G(e))return A();e.traverse(K,{supers:new WeakSet,thisBinding:n})}))}(s,o),(t||o&&G(s))&&(u.forEach((e=>{const t=e.isJSX()?g(O):d(O);t.loc=e.node.loc,e.replaceWith(t)})),t||(O=null))),{thisBinding:O,fnPath:e}}function G(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const K=(0,s.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:n}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",d(n),d("this"))])))}});function $(e,t,n){const r="binding:"+t;let i=e.getData(r);if(!i){const s=e.scope.generateUidIdentifier(t);i=s.name,e.setData(r,i),e.scope.push({id:s,init:n(i)})}return i}const J=(0,s.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let n=e.scope;do{if(n.hasOwnBinding("arguments"))return void n.rename("arguments");if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}}),X={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}},26801:function(e,t){!function(e){"use strict";function t(e,t){return e._indexes[t]}e.SetArray=class{constructor(){this._indexes={__proto__:null},this.array=[]}},e.get=t,e.pop=function(e){const{array:t,_indexes:n}=e;0!==t.length&&(n[t.pop()]=void 0)},e.put=function(e,n){const r=t(e,n);if(void 0!==r)return r;const{array:i,_indexes:s}=e,o=i.push(n);return s[n]=o-1},e.remove=function(e,n){const r=t(e,n);if(void 0===r)return;const{array:i,_indexes:s}=e;for(let e=r+1;e<i.length;e++){const t=i[e];i[e-1]=t,s[t]--}s[n]=void 0,i.pop()},Object.defineProperty(e,"__esModule",{value:!0})}(t)},27250:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,s=7*i;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var l,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===u&&isFinite(e))return a.long?(l=e,(c=Math.abs(l))>=i?o(l,c,i,"day"):c>=r?o(l,c,r,"hour"):c>=n?o(l,c,n,"minute"):c>=t?o(l,c,t,"second"):l+" ms"):function(e){var s=Math.abs(e);return s>=i?Math.round(e/i)+"d":s>=r?Math.round(e/r)+"h":s>=n?Math.round(e/n)+"m":s>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},27891:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,s,o=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),s=i-(n||i);r.diff=s,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];n=s.call(r,t),e.splice(o,1),o--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e,t){let n=0,r=0,i=-1,s=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,s=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,s++,n=s}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=n(27250),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},32387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,n=t.length;this.tokenChar(91);const r=this.enterDelimited();for(let e=0;e<t.length;e++){const r=t[e];r?(e>0&&this.space(),this.print(r),(e<n-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}r(),this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),n=this.format.jsescOption,r=e.value,s=r+"";n.numbers?this.number(i(r,n),r):null==t?this.number(s,r):this.format.minified?this.number(t.length<s.length?t:s,r):this.number(t,r)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;if(this.tokenChar(123),t.length){const e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(s(e.value)&&o(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&o(e.key)&&o(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},t.PipelineBareFunction=function(e){this.print(e.callee)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression)},t.RecordExpression=function(e){const t=e.properties;let n,r;if("bar"===this.format.recordAndTupleSyntaxType)n="{|",r="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);n="#{",r="}"}this.token(n),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(r),!0,!0),this.space()),this.token(r)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const n=i(e.value,this.format.jsescOption);this.token(n)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!c.has(e)){const t=JSON.stringify(e),n=Array.from(c,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of ${n.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,n=t.length;let r,i;if("bar"===this.format.recordAndTupleSyntaxType)r="[|",i="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);r="#[",i="]"}this.token(r);for(let e=0;e<t.length;e++){const r=t[e];r&&(e>0&&this.space(),this.print(r),(e<n-1||this.shouldPrintTrailingComma(i))&&this.token(",",!1,e))}this.token(i)},t._getRawIdentifier=function(e){if(e===a)return l;a=e;const{name:t}=e,n=this.tokenMap.find(e,(e=>e.value===t));return n?(l=this._originalCode.slice(n.start,n.end),l):l=e.name};var r=n(58135),i=n(18398);const{isAssignmentPattern:s,isIdentifier:o}=r;let a=null,l="";const c=new Set(["^^","@@","^","%","#"])},32670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var r=n(44057),i=n(97743),s=n(80004),o=n(54683),a=n(58135),l=a,c=n(56266),u=n(2235),p=n(90157),f=n(83810),h=n(94834),d=n(80366),m=n(25460),g=n(74145),y=n(44537),v=y,b=n(7946),x=n(11064),S=n(53476),C=n(68418),E=n(37494);const{validate:k}=a,w=i("babel"),T=(t.REMOVED=1,t.SHOULD_STOP=2,t.SHOULD_SKIP=4,t.default=class e{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:n,parent:r,container:i,listKey:s,key:o}){if(!t&&n&&(t=n.hub),!r)throw new Error("To get a node path the parent needs to exist");const a=i[o],l=c.getOrCreateCachedPaths(r,n);let u=l.get(a);return u||(u=new e(t,r),a&&l.set(a,u)),y.setup.call(u,n,i,s,o),u}getScope(e){return this.isScope()?new o.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}set(e,t){k(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){w.enabled&&w(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}}),_={findParent:p.findParent,find:p.find,getFunctionParent:p.getFunctionParent,getStatementParent:p.getStatementParent,getEarliestCommonAncestorFrom:p.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:p.getDeepestCommonAncestorFrom,getAncestry:p.getAncestry,isAncestor:p.isAncestor,isDescendant:p.isDescendant,inType:p.inType,getTypeAnnotation:f.getTypeAnnotation,isBaseType:f.isBaseType,couldBeBaseType:f.couldBeBaseType,baseTypeStrictlyMatches:f.baseTypeStrictlyMatches,isGenericType:f.isGenericType,replaceWithMultiple:h.replaceWithMultiple,replaceWithSourceString:h.replaceWithSourceString,replaceWith:h.replaceWith,replaceExpressionWithStatements:h.replaceExpressionWithStatements,replaceInline:h.replaceInline,evaluateTruthy:d.evaluateTruthy,evaluate:d.evaluate,toComputedKey:m.toComputedKey,ensureBlock:m.ensureBlock,unwrapFunctionEnvironment:m.unwrapFunctionEnvironment,arrowFunctionToExpression:m.arrowFunctionToExpression,splitExportDeclaration:m.splitExportDeclaration,ensureFunctionName:m.ensureFunctionName,matchesPattern:g.matchesPattern,isStatic:g.isStatic,isNodeType:g.isNodeType,canHaveVariableDeclarationOrExpression:g.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:g.canSwapBetweenExpressionAndStatement,isCompletionRecord:g.isCompletionRecord,isStatementOrBlock:g.isStatementOrBlock,referencesImport:g.referencesImport,getSource:g.getSource,willIMaybeExecuteBefore:g.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:g._guessExecutionStatusRelativeTo,resolve:g.resolve,isConstantExpression:g.isConstantExpression,isInStrictMode:g.isInStrictMode,isDenylisted:v.isDenylisted,visit:v.visit,skip:v.skip,skipKey:v.skipKey,stop:v.stop,setContext:v.setContext,requeue:v.requeue,requeueComputedKeyAndDecorators:v.requeueComputedKeyAndDecorators,remove:b.remove,insertBefore:x.insertBefore,insertAfter:x.insertAfter,unshiftContainer:x.unshiftContainer,pushContainer:x.pushContainer,getOpposite:S.getOpposite,getCompletionRecords:S.getCompletionRecords,getSibling:S.getSibling,getPrevSibling:S.getPrevSibling,getNextSibling:S.getNextSibling,getAllNextSiblings:S.getAllNextSiblings,getAllPrevSiblings:S.getAllPrevSiblings,get:S.get,getAssignmentIdentifiers:S.getAssignmentIdentifiers,getBindingIdentifiers:S.getBindingIdentifiers,getOuterBindingIdentifiers:S.getOuterBindingIdentifiers,getBindingIdentifierPaths:S.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:S.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:C.shareCommentsWithSiblings,addComment:C.addComment,addComments:C.addComments};Object.assign(T.prototype,_),T.prototype.arrowFunctionToShadowed=m[String("arrowFunctionToShadowed")],Object.assign(T.prototype,{has:g[String("has")],is:g[String("is")],isnt:g[String("isnt")],equals:g[String("equals")],hoist:x[String("hoist")],updateSiblingKeys:x.updateSiblingKeys,call:v.call,isBlacklisted:v[String("isBlacklisted")],setScope:v.setScope,resync:v.resync,popContext:v.popContext,pushContext:v.pushContext,setup:v.setup,setKey:v.setKey}),T.prototype._guessExecutionStatusRelativeToDifferentFunctions=g._guessExecutionStatusRelativeTo,T.prototype._guessExecutionStatusRelativeToDifferentFunctions=g._guessExecutionStatusRelativeTo,Object.assign(T.prototype,{_getTypeAnnotation:f._getTypeAnnotation,_replaceWith:h._replaceWith,_resolve:g._resolve,_call:v._call,_resyncParent:v._resyncParent,_resyncKey:v._resyncKey,_resyncList:v._resyncList,_resyncRemoved:v._resyncRemoved,_getQueueContexts:v._getQueueContexts,_removeFromScope:b._removeFromScope,_callRemovalHooks:b._callRemovalHooks,_remove:b._remove,_markRemoved:b._markRemoved,_assertUnremoved:b._assertUnremoved,_containerInsert:x._containerInsert,_containerInsertBefore:x._containerInsertBefore,_containerInsertAfter:x._containerInsertAfter,_verifyNodeList:x._verifyNodeList,_getKey:S._getKey,_getPattern:S._getPattern});for(const e of l.TYPES){const t=`is${e}`,n=l[t];T.prototype[t]=function(e){return n(this.node,e)},T.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(T.prototype,E);for(const e of Object.keys(r))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e))},37494:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBindingIdentifier=function(){const{node:e,parent:t}=this,n=this.parentPath.parent;return p(e)&&i(e,t,n)},t.isBlockScoped=function(){return s(this.node)},t.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():a(this.node)},t.isFlow=function(){const{node:e}=this;return!(!l(e)&&(f(e)?"type"!==e.importKind&&"typeof"!==e.importKind:o(e)?"type"!==e.exportKind:!h(e)||"type"!==e.importKind&&"typeof"!==e.importKind))},t.isForAwaitStatement=function(){return k(this.node,{await:!0})},t.isGenerated=function(){return!this.isUser()},t.isPure=function(e){return this.scope.isPure(this.node,e)},t.isReferenced=function(){return v(this.node,this.parent)},t.isReferencedIdentifier=function(e){const{node:t,parent:n}=this;if(!p(t,e)&&!m(n,e)){if(!d(t,e))return!1;if(w(t.name))return!1}return v(t,n,this.parentPath.parent)},t.isReferencedMemberExpression=function(){const{node:e,parent:t}=this;return g(e)&&v(e,t)},t.isRestProperty=function(){var e;return y(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},t.isScope=function(){return b(this.node,this.parent)},t.isSpreadProperty=function(){var e;return y(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},t.isStatement=function(){const{node:e,parent:t}=this;if(x(e)){if(C(e)){if(u(t,{left:e}))return!1;if(c(t,{init:e}))return!1}return!0}return!1},t.isUser=function(){return this.node&&!!this.node.loc},t.isVar=function(){return S(this.node)};var r=n(58135);const{isBinding:i,isBlockScoped:s,isExportDeclaration:o,isExpression:a,isFlow:l,isForStatement:c,isForXStatement:u,isIdentifier:p,isImportDeclaration:f,isImportSpecifier:h,isJSXIdentifier:d,isJSXMemberExpression:m,isMemberExpression:g,isRestElement:y,isReferenced:v,isScope:b,isStatement:x,isVar:S,isVariableDeclaration:C,react:E,isForOfStatement:k}=r,{isCompatTag:w}=E;t.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},t.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}},39813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;var r=n(58135);const{assertExpressionStatement:i}=r;function s(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}t.smart=s((e=>e.length>1?e:e[0])),t.statements=s((e=>e)),t.statement=s((e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}));const o=t.expression={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===o.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return i(t),t.expression}};t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},39919:(e,t)=>{"use strict";function n(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function r(e,t,n){var r;let i=0;null!=(r=e.tokenMap)&&r.startMatches(t,n)&&(i=1,e.token(n)),e.printJoin(t.types,void 0,void 0,(function(e){this.space(),this.token(n,null,e+i),this.space()}))}function i(e,t){!0!==t&&e.token(t)}function s(e){o(this,e,(()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)}))}function o(e,t,n){e.token("{");const r=e.enterDelimited();n(),r(),e.rightBrace(t)}function a(e,t,n){var r;const i=new Set;for(const e of n)e&&i.add(e);null==(r=e.tokenMap)||r.find(t,(t=>{if(i.has(t.value))return e.token(t.value),e.space(),i.delete(t.value),0===i.size}));for(const t of i)e.word(t),e.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.TSSatisfiesExpression=t.TSAsExpression=function(e){const{type:t,expression:n,typeAnnotation:r}=e;this.print(n,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(r)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSInterfaceHeritage=t.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},t.TSEnumBody=s,t.TSEnumDeclaration=function(e){const{declare:t,const:n,id:r}=e;t&&(this.word("declare"),this.space()),n&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(r),this.space(),s.call(this,e)},t.TSEnumMember=function(e){const{id:t,initializer:n}=e;this.print(t),n&&(this.space(),this.tokenChar(61),this.space(),this.print(n))},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{id:t,moduleReference:n}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()},t.TSImportType=function(e){const{argument:t,qualifier:n,options:r}=e;this.word("import"),this.tokenChar(40),this.print(t),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),n&&(this.tokenChar(46),this.print(n));const i=e.typeParameters;i&&this.print(i)},t.TSIndexSignature=function(e){const{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),n(this,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TSInterfaceBody=function(e){o(this,e,(()=>this.printJoin(e.body,!0,!0)))},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:r,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(n),this.print(r),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(s)},t.TSIntersectionType=function(e){r(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal)},t.TSMappedType=function(e){const{nameType:t,optional:n,readonly:r,typeAnnotation:s}=e;this.tokenChar(123);const o=this.enterDelimited();this.space(),r&&(i(this,r),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),n&&(i(this,n),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),o(),this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),n(this,e)},t.TSModuleBlock=function(e){o(this,e,(()=>this.printSequence(e.body,!0)))},t.TSModuleDeclaration=function(e){const{declare:t,id:n,kind:r}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=r?r:"Identifier"===n.type?"namespace":"module"),this.space()),this.print(n),!e.body)return void this.semicolon();let t=e.body;for(;"TSModuleDeclaration"===t.type;)this.tokenChar(46),this.print(t.id),t=t.body;this.space(),this.print(t)}},t.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),n(this,e)},t.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:n,typeParameters:r,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(n),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},t.TSTypeAnnotation=function(e,t){this.token("TSFunctionType"!==t.type&&"TSConstructorType"!==t.type||t.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:n}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(n)},t.TSTypeLiteral=function(e){o(this,e,(()=>this.printJoin(e.members,!0,!0)))},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},t.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let n="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(n&&(n=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,",")))),n||(n=this.shouldPrintTrailingComma(">"))),this.printList(e.params,n),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);const t=e.typeParameters;t&&this.print(t)},t.TSTypeReference=function(e){const t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){r(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){const t="ClassPrivateProperty"===e.type,n="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;a(this,e,[n&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),a(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(n||t)&&e.readonly&&"readonly"])},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")"),this.space();const r=e.typeAnnotation;this.print(r)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")");const r=e.typeAnnotation;this.print(r)}},41199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let o;return t=e.code(t),a=>{const l=(0,r.normalizeReplacements)(a);return o||(o=(0,i.default)(e,t,n)),e.unwrap((0,s.default)(o,l))}};var r=n(95838),i=n(4131),s=n(72064)},41969:function(e,t,n){!function(e,t,n){"use strict";function r(e,t){return t&&!t.endsWith("/")&&(t+="/"),n(e,t)}function i(e,t){for(let n=t;n<e.length;n++)if(!s(e[n]))return n;return e.length}function s(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}function o(e,t){return t||(e=e.slice()),e.sort(a)}function a(e,t){return e[0]-t[0]}let l=!1;function c(e,t,n){for(let r=n+1;r<e.length&&e[r][0]===t;n=r++);return n}function u(e,t,n){for(let r=n-1;r>=0&&e[r][0]===t;n=r--);return n}function p(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function f(e,t,n,r){const{lastKey:i,lastNeedle:s,lastIndex:o}=n;let a=0,c=e.length-1;if(r===i){if(t===s)return l=-1!==o&&e[o][0]===t,o;t>=s?a=-1===o?0:o:c=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){const i=n+(r-n>>1),s=e[i][0]-t;if(0===s)return l=!0,i;s<0?n=i+1:r=i-1}return l=!1,n-1}(e,t,a,c)}function h(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function d(){return{__proto__:null}}function m(e){return"string"==typeof e?JSON.parse(e):e}function g(e,t,n,r,i,s,o,a,l,c,u){const{sections:p}=e;for(let e=0;e<p.length;e++){const{map:f,offset:h}=p[e];let d=c,m=u;if(e+1<p.length){const t=p[e+1].offset;d=Math.min(c,a+t.line),d===c?m=Math.min(u,l+t.column):d<c&&(m=l+t.column)}y(f,t,n,r,i,s,o,a+h.line,l+h.column,d,m)}}function y(e,t,n,r,i,s,o,a,l,c,u){const p=m(e);if("sections"in p)return g(...arguments);const f=new C(p,t),h=r.length,d=s.length,y=k(f),{resolvedSources:x,sourcesContent:S,ignoreList:E}=f;if(v(r,x),v(s,f.names),S)v(i,S);else for(let e=0;e<x.length;e++)i.push(null);if(E)for(let e=0;e<E.length;e++)o.push(E[e]+h);for(let e=0;e<y.length;e++){const t=a+e;if(t>c)return;const r=b(n,t),i=0===e?l:0,s=y[e];for(let e=0;e<s.length;e++){const n=s[e],o=i+n[0];if(t===c&&o>=u)return;if(1===n.length){r.push([o]);continue}const a=h+n[1],l=n[2],p=n[3];r.push(4===n.length?[o,a,l,p]:[o,a,l,p,d+n[4]])}}}function v(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function b(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}const x="`line` must be greater than 0 (lines start at line 1)",S="`column` must be greater than or equal to 0 (columns start at column 0)";class C{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)return e;const s=n?JSON.parse(e):e,{version:a,file:l,names:c,sourceRoot:u,sources:p,sourcesContent:f}=s;this.version=a,this.file=l,this.names=c||[],this.sourceRoot=u,this.sources=p,this.sourcesContent=f,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const h=r(u||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=p.map((e=>r(e||"",h)));const{mappings:d}=s;"string"==typeof d?(this._encoded=d,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){const n=i(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=i(e,r+1))e[r]=o(e[r],t);return e}(d,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function E(e){var n,r;return null!==(n=(r=e)._encoded)&&void 0!==n?n:r._encoded=t.encode(e._decoded)}function k(e){var n;return(n=e)._decoded||(n._decoded=t.decode(e._encoded))}function w(e,t){const{sources:n,resolvedSources:r}=e;let i=n.indexOf(t);return-1===i&&(i=r.indexOf(t)),i}function T(e,t){const n=new C(_(e,[]),t);return n._decoded=e.mappings,n}function _(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function P(e,t,n,r){return{source:e,line:t,column:n,name:r}}function A(e,t){return{line:e,column:t}}function I(e,t,n,r,i){let s=f(e,r,t,n);return l?s=(-1===i?c:u)(e,r,s):-1===i&&s++,-1===s||s===e.length?-1:s}function M(e,t,n,r,i,s){var o;if(--n<0)throw new Error(x);if(r<0)throw new Error(S);const{sources:a,resolvedSources:m}=e;let g=a.indexOf(t);if(-1===g&&(g=m.indexOf(t)),-1===g)return s?[]:A(null,null);const y=((o=e)._bySources||(o._bySources=function(e,t){const n=t.map(d);for(let r=0;r<e.length;r++){const i=e[r];for(let e=0;e<i.length;e++){const s=i[e];if(1===s.length)continue;const o=s[1],a=s[2],l=s[3],u=n[o],p=u[a]||(u[a]=[]),d=t[o];let m=c(p,l,f(p,l,d,a));d.lastIndex=++m,h(p,m,[l,r,s[0]])}}return n}(k(e),e._bySourceMemos=a.map(p))))[g][n];if(null==y)return s?[]:A(null,null);const v=e._bySourceMemos[g];if(s)return function(e,t,n,r,i){let s=I(e,t,n,r,1);if(l||-1!==i||s++,-1===s||s===e.length)return[];const o=l?r:e[s][0];l||(s=u(e,o,s));const a=c(e,o,s),p=[];for(;s<=a;s++){const t=e[s];p.push(A(t[1]+1,t[2]))}return p}(y,v,n,r,i);const b=I(y,v,n,r,i);if(-1===b)return A(null,null);const C=y[b];return A(C[1]+1,C[2])}e.AnyMap=function(e,t){const n=m(e);if(!("sections"in n))return new C(n,t);const r=[],i=[],s=[],o=[],a=[];return g(n,t,r,i,s,o,a,0,0,1/0,1/0),T({version:3,file:n.file,names:o,sources:i,sourcesContent:s,mappings:r,ignoreList:a})},e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=-1,e.TraceMap=C,e.allGeneratedPositionsFor=function(e,t){const{source:n,line:r,column:i,bias:s}=t;return M(e,n,r,i,s||-1,!0)},e.decodedMap=function(e){return _(e,k(e))},e.decodedMappings=k,e.eachMapping=function(e,t){const n=k(e),{names:r,resolvedSources:i}=e;for(let e=0;e<n.length;e++){const s=n[e];for(let n=0;n<s.length;n++){const o=s[n],a=e+1,l=o[0];let c=null,u=null,p=null,f=null;1!==o.length&&(c=i[o[1]],u=o[2]+1,p=o[3]),5===o.length&&(f=r[o[4]]),t({generatedLine:a,generatedColumn:l,source:c,originalLine:u,originalColumn:p,name:f})}}},e.encodedMap=function(e){return _(e,E(e))},e.encodedMappings=E,e.generatedPositionFor=function(e,t){const{source:n,line:r,column:i,bias:s}=t;return M(e,n,r,i,s||1,!1)},e.isIgnored=function(e,t){const{ignoreList:n}=e;if(null==n)return!1;const r=w(e,t);return-1!==r&&n.includes(r)},e.originalPositionFor=function(e,t){let{line:n,column:r,bias:i}=t;if(n--,n<0)throw new Error(x);if(r<0)throw new Error(S);const s=k(e);if(n>=s.length)return P(null,null,null,null);const o=s[n],a=I(o,e._decodedMemo,n,r,i||1);if(-1===a)return P(null,null,null,null);const l=o[a];if(1===l.length)return P(null,null,null,null);const{names:c,resolvedSources:u}=e;return P(u[l[1]],l[2]+1,l[3],5===l.length?c[l[4]]:null)},e.presortedDecodedMap=T,e.sourceContentFor=function(e,t){const{sourcesContent:n}=e;if(null==n)return null;const r=w(e,t);return-1===r?null:n[r]},e.traceSegment=function(e,t,n){const r=k(e);if(t>=r.length)return null;const i=r[t],s=I(i,e._decodedMemo,t,n,1);return-1===s?null:i[s]}}(t,n(14017),n(98079))},44057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Var=t.User=t.Statement=t.SpreadProperty=t.Scope=t.RestProperty=t.ReferencedMemberExpression=t.ReferencedIdentifier=t.Referenced=t.Pure=t.NumericLiteralTypeAnnotation=t.Generated=t.ForAwaitStatement=t.Flow=t.Expression=t.ExistentialTypeParam=t.BlockScoped=t.BindingIdentifier=void 0,t.ReferencedIdentifier=["Identifier","JSXIdentifier"],t.ReferencedMemberExpression=["MemberExpression"],t.BindingIdentifier=["Identifier"],t.Statement=["Statement"],t.Expression=["Expression"],t.Scope=["Scopable","Pattern"],t.Referenced=null,t.BlockScoped=null,t.Var=["VariableDeclaration"],t.User=null,t.Generated=null,t.Pure=null,t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],t.RestProperty=["RestElement"],t.SpreadProperty=["RestElement"],t.ExistentialTypeParam=["ExistsTypeAnnotation"],t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],t.ForAwaitStatement=["ForOfStatement"]},44537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._call=l,t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t},t._resyncKey=h,t._resyncList=d,t._resyncParent=f,t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||s._markRemoved.call(this)},t.call=a,t.isDenylisted=c,t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const n of t)n.maybeQueue(e)},t.requeueComputedKeyAndDecorators=function(){const{context:e,node:t}=this;if(!o.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},t.resync=function(){this.removed||(f.call(this),d.call(this),h.call(this))},t.setContext=function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),p.call(this),this},t.setKey=m,t.setScope=p,t.setup=function(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,m.call(this,r)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=i.SHOULD_SKIP|i.SHOULD_STOP},t.visit=function(){var e,t;if(!this.node)return!1;if(this.isDenylisted())return!1;if(null!=(e=(t=this.opts).shouldSkip)&&e.call(t,this))return!1;const n=this.context;return this.shouldSkip||a.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(u(this,n),this.debug("Recursing into..."),this.shouldStop=(0,r.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),u(this,n),a.call(this,"exit"),this.shouldStop)};var r=n(51597),i=n(32670),s=n(7946),o=n(58135);function a(e){const t=this.opts;return this.debug(e),!(!this.node||!l.call(this,t[e]))||!!this.node&&l.call(this,null==(n=t[this.node.type])?void 0:n[e]);var n}function l(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1}function c(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function u(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function p(){var e,t;if(null!=(e=this.opts)&&e.noScope)return;let n,r=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&r.isMethod()||"discriminant"===this.key&&r.isSwitchStatement())&&(r=r.parentPath);r&&!n;){var i;if(null!=(i=r.opts)&&i.noScope)return;n=r.scope,r=r.parentPath}this.scope=this.getScope(n),null==(t=this.scope)||t.init()}function f(){this.parentPath&&(this.parent=this.parentPath.node)}function h(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void m.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void m.call(this,e);this.key=null}}function d(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function m(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}t.isBlacklisted=c},45584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,n){return!(!x(n)||!p(e.left))||E(e,t)},t.Binary=S,t.BinaryExpression=function(e,t,n){return"in"===e.operator&&Boolean(n&i.TokenContext.forInOrInitHeadAccumulate)},t.ClassExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.ArrowFunctionExpression=t.ConditionalExpression=E,t.DoExpression=function(e,t,n){return!e.async&&Boolean(n&i.TokenContext.expressionStatement)},t.FunctionExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.FunctionTypeAnnotation=function(e,t,n){const r=t.type;return"UnionTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"ArrayTypeAnnotation"===r||Boolean(n&i.TokenContext.arrowFlowReturnType)},t.Identifier=function(e,t,n,r){var s;const o=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===o&&t.left===e){const e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(!r||r(e)===e.name)&&("let"===e.name?!!((u(t,{object:e,computed:!0})||f(t,{object:e,computed:!0,optional:!1}))&&n&(i.TokenContext.expressionStatement|i.TokenContext.forInitHead|i.TokenContext.forInHead))||Boolean(n&i.TokenContext.forOfHead):"async"===e.name&&l(t,{left:e,await:!1}))},t.LogicalExpression=function(e,t){const n=t.type;if(y(n))return!0;if("LogicalExpression"!==n)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return s(t)},t.ObjectExpression=function(e,t,n){return x(n)},t.OptionalIndexedAccessType=function(e,t){return c(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return a(t)&&t.callee===e||u(t)&&t.object===e},t.SequenceExpression=function(e,t){const n=t.type;return!("SequenceExpression"===n||"ParenthesizedExpression"===n||"MemberExpression"===n&&t.property===e||"OptionalMemberExpression"===n&&t.property===e||"TemplateLiteral"===n)&&("ClassDeclaration"===n||("ForOfStatement"===n?t.right===e:"ExportDefaultDeclaration"===n||!d(t)))},t.TSSatisfiesExpression=t.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||("BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||S(e,t))},t.TSConditionalType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||"TSTypeOperator"===n||"TSTypeParameter"===n||(("TSIntersectionType"===n||"TSUnionType"===n)&&t.types[0]===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e))},t.TSConstructorType=t.TSFunctionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSUnionType"===n||"TSTypeOperator"===n||"TSOptionalType"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e)},t.TSInferType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||!(!e.typeParameter.constraint||"TSIntersectionType"!==n&&"TSUnionType"!==n||t.types[0]!==e)},t.TSInstantiationExpression=function(e,t){const n=t.type;return("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n||"TSInstantiationExpression"===n)&&!!t.typeParameters},t.TSIntersectionType=function(e,t){const n=t.type;return"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.UnaryLike=t.TSTypeAssertion=C,t.TSTypeOperator=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.TSUnionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){const n=t.type;return"ArrayTypeAnnotation"===n||"NullableTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"UnionTypeAnnotation"===n},t.UpdateExpression=function(e,t){return b(e,t)||v(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){const n=t.type;return"BinaryExpression"===n||"LogicalExpression"===n||"UnaryExpression"===n||"SpreadElement"===n||b(e,t)||"AwaitExpression"===n&&h(e)||"ConditionalExpression"===n&&e===t.test||v(e,t)||y(n)};var r=n(58135),i=n(21956);const{isArrayTypeAnnotation:s,isBinaryExpression:o,isCallExpression:a,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:u,isObjectPattern:p,isOptionalMemberExpression:f,isYieldExpression:h,isStatement:d}=r,m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function g(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?m.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?m.get("in"):void 0}function y(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const v=(e,t)=>{const n=t.type;return("ClassDeclaration"===n||"ClassExpression"===n)&&t.superClass===e},b=(e,t)=>{const n=t.type;return("MemberExpression"===n||"OptionalMemberExpression"===n)&&t.object===e||("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n)&&t.callee===e||"TaggedTemplateExpression"===n&&t.tag===e||"TSNonNullExpression"===n};function x(e){return Boolean(e&(i.TokenContext.expressionStatement|i.TokenContext.arrowBody))}function S(e,t){const n=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===n&&"**"===t.operator)return t.left===e;if(v(e,t))return!0;if(b(e,t)||"UnaryExpression"===n||"SpreadElement"===n||"AwaitExpression"===n)return!0;const r=g(t,n);if(null!=r){const i=g(e,e.type);if(r===i&&"BinaryExpression"===n&&t.right===e||r>i)return!0}}function C(e,t){return b(e,t)||o(t)&&"**"===t.operator&&t.left===e||v(e,t)}function E(e,t){const n=t.type;return!!("UnaryExpression"===n||"SpreadElement"===n||"BinaryExpression"===n||"LogicalExpression"===n||"ConditionalExpression"===n&&t.test===e||"AwaitExpression"===n||y(n))||C(e,t)}},46026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor({identifier:e,scope:t,path:n,kind:r}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=n,this.kind=r,"var"!==r&&"hoisted"!==r||!function(e){const t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:n,key:r}=e;n;({parentPath:n,key:r}=n)){if(n.isFunctionParent())return!1;if("left"===r&&n.isForXStatement()||t&&"body"===r&&n.isLoop())return!0}return!1}(n)||this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},47695:(e,t,n)=>{"use strict";n.d(t,{p:()=>p});const r=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),s=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),a=Symbol("Comlink.thrown"),l=e=>"object"==typeof e&&null!==e||"function"==typeof e,c={canHandle:e=>l(e)&&e[r],serialize(e){const{port1:t,port2:n}=new MessageChannel;return p(e,t),[n,[n]]},deserialize:e=>(e.start(),function(e){const t=new Map;return e.addEventListener("message",(function(e){const{data:n}=e;if(!n||!n.id)return;const r=t.get(n.id);if(r)try{r(n)}finally{t.delete(n.id)}})),y(e,t,[],void 0)}(e))},u=new Map([["proxy",c],["throw",{canHandle:e=>l(e)&&a in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function p(e,t=globalThis,n=["*"]){t.addEventListener("message",(function i(s){if(!s||!s.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);const{id:l,type:c,path:u}=Object.assign({path:[]},s.data),h=(s.data.argumentList||[]).map(S);let d;try{const t=u.slice(0,-1).reduce(((e,t)=>e[t]),e),n=u.reduce(((e,t)=>e[t]),e);switch(c){case"GET":d=n;break;case"SET":t[u.slice(-1)[0]]=S(s.data.value),d=!0;break;case"APPLY":d=n.apply(t,h);break;case"CONSTRUCT":d=function(e){return Object.assign(e,{[r]:!0})}(new n(...h));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;p(e,n),d=function(e,t){return b.set(e,t),e}(t,[t])}break;case"RELEASE":d=void 0;break;default:return}}catch(e){d={value:e,[a]:0}}Promise.resolve(d).catch((e=>({value:e,[a]:0}))).then((n=>{const[r,s]=x(n);t.postMessage(Object.assign(Object.assign({},r),{id:l}),s),"RELEASE"===c&&(t.removeEventListener("message",i),f(t),o in e&&"function"==typeof e[o]&&e[o]())})).catch((e=>{const[n,r]=x({value:new TypeError("Unserializable return value"),[a]:0});t.postMessage(Object.assign(Object.assign({},n),{id:l}),r)}))})),t.start&&t.start()}function f(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function h(e){if(e)throw new Error("Proxy has been released and is not useable")}function d(e){return C(e,new Map,{type:"RELEASE"}).then((()=>{f(e)}))}const m=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(m.get(e)||0)-1;m.set(e,t),0===t&&d(e)}));function y(e,t,n=[],r=function(){}){let o=!1;const a=new Proxy(r,{get(r,i){if(h(o),i===s)return()=>{!function(e){g&&g.unregister(e)}(a),d(e),t.clear(),o=!0};if("then"===i){if(0===n.length)return{then:()=>a};const r=C(e,t,{type:"GET",path:n.map((e=>e.toString()))}).then(S);return r.then.bind(r)}return y(e,t,[...n,i])},set(r,i,s){h(o);const[a,l]=x(s);return C(e,t,{type:"SET",path:[...n,i].map((e=>e.toString())),value:a},l).then(S)},apply(r,s,a){h(o);const l=n[n.length-1];if(l===i)return C(e,t,{type:"ENDPOINT"}).then(S);if("bind"===l)return y(e,t,n.slice(0,-1));const[c,u]=v(a);return C(e,t,{type:"APPLY",path:n.map((e=>e.toString())),argumentList:c},u).then(S)},construct(r,i){h(o);const[s,a]=v(i);return C(e,t,{type:"CONSTRUCT",path:n.map((e=>e.toString())),argumentList:s},a).then(S)}});return function(e,t){const n=(m.get(t)||0)+1;m.set(t,n),g&&g.register(e,t,e)}(a,e),a}function v(e){const t=e.map(x);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const b=new WeakMap;function x(e){for(const[t,n]of u)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},i]}return[{type:"RAW",value:e},b.get(e)||[]]}function S(e){switch(e.type){case"HANDLER":return u.get(e.name).deserialize(e.value);case"RAW":return e.value}}function C(e,t,n,r){return new Promise((i=>{const s=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.set(s,i),e.start&&e.start(),e.postMessage(Object.assign({id:s},n),r)}))}},50240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var r=n(39813),i=n(10215);const s=t.smart=(0,i.default)(r.smart),o=t.statement=(0,i.default)(r.statement),a=t.statements=(0,i.default)(r.statements),l=t.expression=(0,i.default)(r.expression),c=t.program=(0,i.default)(r.program);t.default=Object.assign(s.bind(void 0),{smart:s,statement:o,statements:a,expression:l,program:c,ast:s.ast})},51597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseNode=function(e,t,n,i,o,a,l){const c=s[e.type];if(!c)return!1;const u=new r.default(n,t,i,o);if(l)return(null==a||!a[o.parentKey])&&u.visitQueue([o]);for(const t of c)if((null==a||!a[t])&&u.visit(e,t))return!0;return!1};var r=n(96647),i=(n(32670),n(58135));n(44537);const{VISITOR_KEYS:s}=i},52658:(e,t,n)=>{"use strict";e.exports=n(62949)},53476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=y,t._getPattern=v,t.get=function(e,t=!0){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?y.call(this,e,t):v.call(this,n,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},t.getAssignmentIdentifiers=function(){return s(this.node)},t.getBindingIdentifierPaths=function(e=!1,t=!1){const n=[this],r=Object.create(null);for(;n.length;){const i=n.shift();if(!i)continue;if(!i.node)continue;const s=o.keys[i.node.type];if(i.isIdentifier())e?(r[i.node.name]=r[i.node.name]||[]).push(i):r[i.node.name]=i;else if(i.isExportDeclaration()){const e=i.get("declaration");e.isDeclaration()&&n.push(e)}else{if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(s)for(let e=0;e<s.length;e++){const t=s[e],r=i.get(t);Array.isArray(r)?n.push(...r):r.node&&n.push(r)}}}return r},t.getBindingIdentifiers=function(e){return o(this.node,e)},t.getCompletionRecords=function(e=!1){return g(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map((e=>e.path))},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},t.getOuterBindingIdentifierPaths=function(e=!1){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return a(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return r.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var r=n(32670),i=n(58135);const{getAssignmentIdentifiers:s,getBindingIdentifiers:o,getOuterBindingIdentifiers:a,numericLiteral:l,unaryExpression:c}=i,u=0,p=1;function f(e,t,n){return e&&t.push(...g(e,n)),t}function h(e){e.forEach((e=>{e.type=p}))}function d(e,t){e.forEach((e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(c("void",l(0))):e.path.remove())}))}function m(e,t){const n=[];if(t.canHaveBreak){let r=[];for(let i=0;i<e.length;i++){const s=e[i],o=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?o.shouldPopulateBreak=!0:o.shouldPopulateBreak=!1;const a=g(s,o);if(a.length>0&&a.every((e=>e.type===p))){r.length>0&&a.every((e=>e.path.isBreakStatement({label:null})))?(h(r),n.push(...r),r.some((e=>e.path.isDeclaration()))&&(n.push(...a),t.shouldPreserveBreak||d(a,!0)),t.shouldPreserveBreak||d(a,!1)):(n.push(...a),t.shouldPopulateBreak||t.shouldPreserveBreak||d(a,!0));break}if(i===e.length-1)n.push(...a);else{r=[];for(let e=0;e<a.length;e++){const t=a[e];t.type===p&&n.push(t),t.type===u&&r.push(t)}}}}else if(e.length)for(let r=e.length-1;r>=0;r--){const i=g(e[r],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){n.push(...i);break}}return n}function g(e,t){let n=[];if(e.isIfStatement())n=f(e.get("consequent"),n,t),n=f(e.get("alternate"),n,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return f(e.get("body"),n,t);if(e.isProgram()||e.isBlockStatement())return m(e.get("body"),t);if(e.isFunction())return g(e.get("body"),t);if(e.isTryStatement())n=f(e.get("block"),n,t),n=f(e.get("handler"),n,t);else{if(e.isCatchClause())return f(e.get("body"),n,t);if(e.isSwitchStatement())return function(e,t,n){let r=[];for(let i=0;i<e.length;i++){const s=g(e[i],n),o=[],a=[];for(const e of s)e.type===u&&o.push(e),e.type===p&&a.push(e);o.length&&(r=o),t.push(...a)}return t.push(...r),t}(e.get("cases"),n,t);if(e.isSwitchCase())return m(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?n.push(function(e){return{type:p,path:e}}(e)):n.push(function(e){return{type:u,path:e}}(e))}}return n}function y(e,t){const n=this.node,i=n[e];return Array.isArray(i)?i.map(((s,o)=>r.default.get({listKey:e,parentPath:this,parent:n,container:i,key:o}).setContext(t))):r.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)}function v(e,t){let n=this;for(const r of e)n="."===r?n.parentPath:Array.isArray(n)?n[r]:n.get(r,t);return n}},54683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(58431),i=n(80004),s=n(46026),o=n(52658),a=n(58135),l=a,c=n(56266);const{assignmentExpression:u,callExpression:p,cloneNode:f,getBindingIdentifiers:h,identifier:d,isArrayExpression:m,isBinary:g,isCallExpression:y,isClass:v,isClassBody:b,isClassDeclaration:x,isExportAllDeclaration:S,isExportDefaultDeclaration:C,isExportNamedDeclaration:E,isFunctionDeclaration:k,isIdentifier:w,isImportDeclaration:T,isLiteral:_,isMemberExpression:P,isMethod:A,isModuleSpecifier:I,isNullLiteral:M,isObjectExpression:O,isProperty:B,isPureish:F,isRegExpLiteral:L,isSuper:D,isTaggedTemplateExpression:N,isTemplateLiteral:R,isThisExpression:j,isUnaryExpression:W,isVariableDeclaration:U,expressionStatement:V,matchesPattern:H,memberExpression:q,numericLiteral:G,toIdentifier:K,variableDeclaration:$,variableDeclarator:J,isRecordExpression:X,isTupleExpression:z,isObjectProperty:Y,isTopicReference:Q,isMetaProperty:Z,isPrivateName:ee,isExportDeclaration:te,buildUndefinedNode:ne,sequenceExpression:re}=a;function ie(e,t){switch(null==e?void 0:e.type){default:var n;if(T(e)||te(e))if((S(e)||E(e)||T(e))&&e.source)ie(e.source,t);else if((E(e)||T(e))&&null!=(n=e.specifiers)&&n.length)for(const n of e.specifiers)ie(n,t);else(C(e)||E(e))&&e.declaration&&ie(e.declaration,t);else I(e)?ie(e.local,t):!_(e)||M(e)||L(e)||R(e)||t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":ie(e.object,t),ie(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":ie(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const n of e.properties)ie(n,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":ie(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":ie(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),ie(e.argument,t);break;case"AwaitExpression":t.push("await"),ie(e.argument,t);break;case"AssignmentExpression":ie(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":ie(e.id,t);break;case"ParenthesizedExpression":ie(e.expression,t);break;case"MetaProperty":ie(e.meta,t),ie(e.property,t);break;case"JSXElement":ie(e.openingElement,t);break;case"JSXOpeningElement":ie(e.name,t);break;case"JSXFragment":ie(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":ie(e.namespace,t),ie(e.name,t)}}function se(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var oe=Symbol.for("should not be considered a local binding");const ae={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){l.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){const n=e.get("left");if(n.isPattern()||n.isIdentifier())t.constantViolations.push(e);else if(n.isVar()){const{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",n)}},ExportDeclaration:{exit(e){const{node:t,scope:n}=e;if(S(t))return;const r=t.declaration;if(x(r)||k(r)){const t=r.id;if(!t)return;const i=n.getBinding(t.name);null==i||i.reference(e)}else if(U(r))for(const t of r.declarations)for(const r of Object.keys(h(t))){const t=n.getBinding(r);null==t||t.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){const t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){const t=e.get("params");for(const n of t)e.scope.registerBinding("param",n);e.isFunctionExpression()&&e.node.id&&!e.node.id[oe]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[oe]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}};let le,ce=0;class ue{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:t}=e,n=c.scope.get(t);if((null==n?void 0:n.path)===e)return n;c.scope.set(t,this),this.uid=ce++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let t,n=this.path;do{var r;const e="key"===n.key||"decorators"===n.listKey;n=n.parentPath,e&&n.isMethod()&&(n=n.parentPath),null!=(r=n)&&r.isScope()&&(t=n)}while(n&&!t);return null==(e=t)?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),f(t)}generateUidIdentifier(e){return d(this.generateUid(e))}generateUid(e="temp"){let t;e=K(e).replace(/^_+/,"").replace(/\d+$/g,"");let n=0;do{t=`_${e}`,n>=11?t+=n-1:n>=9?t+=n-9:n>=1&&(t+=n+1),n++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const r=this.getProgramParent();return r.references[t]=!0,r.uids[t]=!0,t}generateUidBasedOnNode(e,t){const n=[];ie(e,n);let r=n.join("$");return r=r.replace(/^_/,"")||t||"ref",this.generateUid(r.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return d(this.generateUidBasedOnNode(e,t))}isStatic(e){if(j(e)||D(e)||Q(e))return!0;if(w(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const n=this.generateUidIdentifierBasedOnNode(e);return t?n:(this.push({id:n}),f(n))}}checkBlockScopedCollisions(e,t,n,r){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(r,`Duplicate declaration "${n}"`,TypeError)}rename(e,t){const n=this.getBinding(e);n&&(t||(t=this.generateUidIdentifier(e).name),new r.default(n,e,t).rename(arguments[2]))}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const n=t.bindings[e];console.log(" -",e,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.kind})}}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){const t=e.get("declarations"),{kind:n}=e.node;for(const e of t)this.registerBinding("using"===n||"await using"===n?"const":n,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t="type"===e.node.importKind||"typeof"===e.node.importKind,n=e.get("specifiers");for(const e of n){const n=t||e.isImportSpecifier()&&("type"===e.node.importKind||"typeof"===e.node.importKind);this.registerBinding(n?"unknown":"module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return ne()}registerConstantViolation(e){const t=e.getAssignmentIdentifiers();for(const r of Object.keys(t)){var n;null==(n=this.getBinding(r))||n.reassign(e)}}registerBinding(e,t,n=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const n=t.get("declarations");for(const t of n)this.registerBinding(e,t);return}const r=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(i)){r.references[t]=!0;for(const r of i[t]){const i=this.getOwnBinding(t);if(i){if(i.identifier===r)continue;this.checkBlockScopedCollisions(i,e,t,r)}i?i.reassign(n):this.bindings[t]=new s.default({identifier:r,scope:this,path:n,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(w(e)){const n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(j(e)||Z(e)||Q(e)||ee(e))return!0;var n,r,i;if(v(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&!((null==(n=e.decorators)?void 0:n.length)>0)&&this.isPure(e.body,t);if(b(e)){for(const n of e.body)if(!this.isPure(n,t))return!1;return!0}if(g(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(m(e)||z(e)){for(const n of e.elements)if(null!==n&&!this.isPure(n,t))return!1;return!0}if(O(e)||X(e)){for(const n of e.properties)if(!this.isPure(n,t))return!1;return!0}if(A(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(r=e.decorators)?void 0:r.length)>0);if(B(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(i=e.decorators)?void 0:i.length)>0||(Y(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(W(e))return this.isPure(e.argument,t);if(R(e)){for(const n of e.expressions)if(!this.isPure(n,t))return!1;return!0}return N(e)?H(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):P(e)?!e.computed&&w(e.object)&&"Symbol"===e.object.name&&w(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):y(e)?H(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&l.isStringLiteral(e.arguments[0]):F(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const n=t.data[e];if(null!=n)return n}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const e=this.path;se(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);const n=t,r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,le||(le=i.default.visitors.merge([{Scope(e){se(e.scope)}},ae])),"Program"!==e.type){for(const t of le.enter)t.call(r,e,r);const t=le[e.type];if(t)for(const n of t.enter)n.call(r,e,r)}e.traverse(le,r),this.crawling=!1;for(const e of r.assignments){const t=e.getAssignmentIdentifiers();for(const r of Object.keys(t))e.scope.getBinding(r)||n.addGlobal(t[r]);e.scope.registerConstantViolation(e)}for(const e of r.references){const t=e.scope.getBinding(e.node.name);t?t.reference(e):n.addGlobal(e.node)}for(const e of r.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isPattern()?t=this.getPatternParent().path:t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path);const{init:n,unique:r,kind:i="var",id:s}=e;if(!n&&!r&&("var"===i||"let"===i)&&t.isFunction()&&!t.node.name&&y(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&w(s))return t.pushContainer("params",s),void t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const o=null==e._blockHoist?2:e._blockHoist,a=`declaration:${i}:${o}`;let l=!r&&t.getData(a);if(!l){const e=$(i,[]);e._blockHoist=o,[l]=t.unshiftContainer("body",[e]),r||t.setData(a,l)}const c=J(s,n),u=l.node.declarations.push(c);t.scope.registerBinding(i,l.get("declarations")[u-1])}getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do{if(!e.path.isPattern())return e.getBlockParent()}while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const n of Object.keys(t.bindings))n in e==0&&(e[n]=t.bindings[n]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,n=this;do{const i=n.getOwnBinding(e);var r;if(i){if(null==(r=t)||!r.isPattern()||"param"===i.kind||"local"===i.kind)return i}else if(!i&&"arguments"===e&&n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;t=n.path}while(n=n.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;let n,r,i;"object"==typeof t?(n=t.noGlobals,r=t.noUids,i=t.upToScope):"boolean"==typeof t&&(n=t);let s=this;do{if(i===s)break;if(s.hasOwnBinding(e))return!0}while(s=s.parent);return!(r||!this.hasUid(e))||!(n||!ue.globals.includes(e))||!(n||!ue.contextVariables.includes(e))}parentHasBinding(e,t){var n;return null==(n=this.parent)?void 0:n.hasBinding(e,t)}moveBindingTo(e,t){const n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);{let t=this;do{t.uids[e]&&(t.uids[e]=!1)}while(t=t.parent)}}hoistVariables(e=e=>this.push({id:e})){this.crawl();const t=new Set;for(const n of Object.keys(this.bindings)){const r=this.bindings[n];if(!r)continue;const{path:i}=r;if(!i.isVariableDeclarator())continue;const{parent:s,parentPath:o}=i;if("var"!==s.kind||t.has(s))continue;let a;t.add(i.parent);const l=[];for(const t of s.declarations){null!=a||(a=t.id),t.init&&l.push(u("=",t.id,t.init));const n=Object.keys(h(t,!1,!0,!0));for(const r of n)e(d(r),null!=t.init)}if(o.parentPath.isFor({left:s}))o.replaceWith(a);else if(0===l.length)o.remove();else{const e=1===l.length?l[0]:re(l);o.parentPath.isForStatement({init:s})?o.replaceWith(e):o.replaceWith(V(e))}}}}t.default=ue,ue.globals=Object.keys(o.builtin),ue.contextVariables=["arguments","undefined","Infinity","NaN"],ue.prototype._renameFromMap=function(e,t,n,r){e[t]&&(e[n]=r,e[t]=null)},ue.prototype.traverse=function(e,t,n){(0,i.default)(e,t,this,n,this.path)},ue.prototype._generateUid=function(e,t){let n=e;return t>1&&(n+=t),`_${n}`},ue.prototype.toArray=function(e,t,n){if(w(e)){const t=this.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(m(e))return e;if(w(e,{name:"arguments"}))return p(q(q(q(d("Array"),d("prototype")),d("slice")),d("call")),[e]);let r;const i=[e];return!0===t?r="toConsumableArray":"number"==typeof t?(i.push(G(t)),r="slicedToArray"):r="toArray",n&&(i.unshift(this.path.hub.addHelper(r)),r="maybeArrayLike"),p(this.path.hub.addHelper(r),i)},ue.prototype.getAllBindingsOfKind=function(...e){const t=Object.create(null);for(const n of e){let e=this;do{for(const r of Object.keys(e.bindings)){const i=e.bindings[r];i.kind===n&&(t[r]=i)}e=e.parent}while(e)}return t},Object.defineProperties(ue.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})},56266:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),s()},t.clearPath=i,t.clearScope=s,t.getCachedPaths=function(e){const{parent:t,parentPath:r}=e;return n.get(t)},t.getOrCreateCachedPaths=function(e,t){let r=n.get(e);return r||n.set(e,r=new Map),r},t.scope=t.path=void 0;let n=t.path=new WeakMap,r=t.scope=new WeakMap;function i(){t.path=n=new WeakMap}function s(){t.scope=r=new WeakMap}},56611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(98952),i=n(96230),s=n(14007);const o=(e,t)=>n=>e(t(n));function a(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:o(o(e.white,e.bgRed),e.bold),gutter:e.gray,marker:o(e.red,e.bold),message:o(e.red,e.bold),reset:e.reset}}const l=a(r.createColors(!0)),c=a(r.createColors(!1));function u(e){return e?l:c}const p=new Set(["as","async","from","get","of","set"]),f=/\r\n|[\n\r\u2028\u2029]/,h=/^[()[\]{}]$/;let d;{const e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if(s.isKeyword(t.value)||s.isStrictReservedWord(t.value,!0)||p.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"</"===r.slice(n-2,n)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&h.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};d=function*(e){let n;for(;n=i.default.exec(e);){const r=i.matchToToken(n);yield{type:t(r,n.index,e),value:r.value}}}}function m(e){if(""===e)return"";const t=u(!0);let n="";for(const{type:r,value:i}of d(e))n+=r in t?i.split(f).map((e=>t[r](e))).join("\n"):i;return n}let g=!1;const y=/\r\n|[\n\r\u2028\u2029]/;function v(e,t,n={}){const i=n.forceColor||("object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR)&&r.isColorSupported&&n.highlightCode,s=u(i),o=e.split(y),{start:a,end:l,markerLines:c}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:s=2,linesBelow:o=3}=n||{},a=r.line,l=r.column,c=i.line,u=i.column;let p=Math.max(a-(s+1),0),f=Math.min(t.length,c+o);-1===a&&(p=0),-1===c&&(f=t.length);const h=c-a,d={};if(h)for(let e=0;e<=h;e++){const n=e+a;if(l)if(0===e){const e=t[n-1].length;d[n]=[l,e-l+1]}else if(e===h)d[n]=[0,u];else{const r=t[n-e].length;d[n]=[0,r]}else d[n]=!0}else d[a]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:f,markerLines:d}}(t,o,n),p=t.start&&"number"==typeof t.start.column,f=String(l).length;let h=(i?m(e):e).split(y,l).slice(a,l).map(((e,t)=>{const r=a+1+t,i=` ${` ${r}`.slice(-f)} |`,o=c[r],l=!c[r+1];if(o){let t="";if(Array.isArray(o)){const r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),a=o[1]||1;t=["\n ",s.gutter(i.replace(/\d/g," "))," ",r,s.marker("^").repeat(a)].join(""),l&&n.message&&(t+=" "+s.message(n.message))}return[s.marker(">"),s.gutter(i),e.length>0?` ${e}`:"",t].join("")}return` ${s.gutter(i)}${e.length>0?` ${e}`:""}`})).join("\n");return n.message&&!p&&(h=`${" ".repeat(f+1)}${n.message}\n${h}`),i?s.reset(h):h}t.codeFrameColumns=v,t.default=function(e,t,n,r={}){if(!g){g=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return v(e,{start:{column:n=Math.max(n,0),line:t}},r)},t.highlight=m},57734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),u(this,e.label)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},t.ContinueStatement=function(e){this.word("continue"),u(this,e.label)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);{const t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const t=e.alternate&&o(l(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},t.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},t.ReturnStatement=function(e){this.word("return"),u(this,e.argument)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0,void 0,(function(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1})),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),u(this,e.argument)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:n}=e;"await using"===n?(this.word("await"),this.space(),this.word("using",!0)):this.word(n,"using"===n),this.space();let r=!1;if(!i(t))for(const t of e.declarations)t.init&&(r=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,r?function(e){this.token(",",!1,e),this.newline()}:void 0),i(t))if(s(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};var r=n(58135);const{isFor:i,isForStatement:s,isIfStatement:o,isStatement:a}=r;function l(e){const{body:t}=e;return!1===a(t)?e:l(t)}function c(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const n=this.enterForXStatementInit(t);this.print(e.left),null==n||n()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function u(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}t.ForInStatement=c,t.ForOfStatement=c},58121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedGenerators=function(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}};Object.assign(e.prototype,t)}}},58231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,n;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()},t.ExportDefaultDeclaration=function(e){f(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=i.TokenContext.exportDefault;const t=e.declaration;this.print(t),u(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported)},t.ExportNamedDeclaration=function(e){if(f(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t),u(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const r=e.specifiers.slice(0);let i=!1;for(;;){const e=r[0];if(!o(e)&&!a(e))break;i=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space())}let s=!1;var t,n;(r.length||!r.length&&!i)&&(s=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,s)):this.print(e.source)),this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,n;this.word("import"),this.space();const r="type"===e.importKind||"typeof"===e.importKind;r?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const i=e.specifiers.slice(0),s=!!i.length;for(;s;){const e=i[0];if(!l(e)&&!c(e))break;this.print(i.shift()),i.length&&(this.tokenChar(44),this.space())}let o=!1;i.length?(o=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):r&&!s&&(o=!0,this.tokenChar(123),this.tokenChar(125)),(s||r)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,o)):this.print(e.source),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);const t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},t._printAttributes=function(e,t){var n;const{importAttributesKeyword:r}=this.format,{attributes:i,assertions:s}=e;i&&!r&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!p&&(p=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const o="assert"===r||!r&&s;if(this.word(o?"assert":"with"),this.space(),!o&&("with-legacy"===r||!r&&null!=(n=e.extra)&&n.deprecatedWithLegacySyntax))return void this.printList(i||s);const a=t?1:0;this.token("{",null,a),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,a)};var r=n(58135),i=n(21956);const{isClassDeclaration:s,isExportDefaultSpecifier:o,isExportNamespaceSpecifier:a,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:c,isStatement:u}=r;let p=!1;function f(e,t){s(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}},58252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUnionType=function(e){return e.every((e=>a(e)))?i?i(e):o(e):e.every((e=>l(e)))&&s?s(e):void 0};var r=n(58135);const{createFlowUnionType:i,createTSUnionType:s,createUnionTypeAnnotation:o,isFlowType:a,isTSType:l}=r},58431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(58135),i=r,s=n(51597),o=n(95957),a=n(44537);const{getAssignmentIdentifiers:l}=i,c={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():a.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},n){const{name:r}=e.key;var i;!e.shorthand||r!==n.oldName&&r!==n.newName||t.getBindingIdentifier(r)!==n.binding.identifier||(e.shorthand=!1,null!=(i=e.extra)&&i.shorthand&&(e.extra.shorthand=!1))},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const n=e.isAssignmentExpression()?l(e.node):e.getOuterBindingIdentifiers();for(const e in n)e===t.oldName&&(n[e].name=t.newName)}};t.default=class{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){const{declaration:e}=t.node;if(r.isDeclaration(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){const{binding:e,oldName:t,newName:n}=this,{scope:i,path:a}=e,l=a.find((e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()));l&&l.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(l);const u=arguments[0]||i.block,p={discriminant:!0};r.isMethod(u)&&(u.computed&&(p.key=!0),r.isObjectMethod(u)||(p.decorators=!0)),(0,s.traverseNode)(u,(0,o.explode)(c),i,this,i.path,p),arguments[0]||(i.removeOwnBinding(t),i.bindings[n]=e,this.binding.identifier.name=n),l&&(this.maybeConvertFromClassFunctionDeclaration(a),this.maybeConvertFromClassFunctionExpression(a))}}},61593:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,n){const r=[],s=[];let o=c(e,t,s);const a=p(e,t,n);if(a){const t=c(e,a.ifStatement);o=o.filter((e=>!t.includes(e))),r.push(a.typeAnnotation)}if(o.length){o.push(...s);for(const e of o)r.push(e.getTypeAnnotation())}if(r.length)return(0,i.createUnionType)(r)}(t,this,e.name):"undefined"===e.name?l():"NaN"===e.name||"Infinity"===e.name?a():void e.name};var r=n(58135),i=n(58252);const{BOOLEAN_NUMBER_BINARY_OPERATORS:s,createTypeAnnotationBasedOnTypeof:o,numberTypeAnnotation:a,voidTypeAnnotation:l}=r;function c(e,t,n){const r=e.constantViolations.slice();return r.unshift(e.path),r.filter((e=>{const r=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===r&&n.push(e),"before"===r}))}function u(e,t){const n=t.node.operator,r=t.get("right").resolve(),i=t.get("left").resolve();let l,c,u;if(i.isIdentifier({name:e})?l=r:r.isIdentifier({name:e})&&(l=i),l)return"==="===n?l.getTypeAnnotation():s.includes(n)?a():void 0;if("==="!==n&&"=="!==n)return;if(i.isUnaryExpression({operator:"typeof"})?(c=i,u=r):r.isUnaryExpression({operator:"typeof"})&&(c=r,u=i),!c)return;if(!c.get("argument").isIdentifier({name:e}))return;if(u=u.resolve(),!u.isLiteral())return;const p=u.node.value;return"string"==typeof p?o(p):void 0}function p(e,t,n){const r=function(e,t,n){let r;for(;r=t.parentPath;){if(r.isIfStatement()||r.isConditionalExpression()){if("test"===t.key)return;return r}if(r.isFunction()&&r.parentPath.scope.getBinding(n)!==e)return;t=r}}(e,t,n);if(!r)return;const s=[r.get("test")],o=[];for(let e=0;e<s.length;e++){const t=s[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(s.push(t.get("left")),s.push(t.get("right")));else if(t.isBinaryExpression()){const e=u(n,t);e&&o.push(e)}}return o.length?{typeAnnotation:(0,i.createUnionType)(o),ifStatement:r}:p(e,r,n)}},62798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94403);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(6385);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(57734);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var o=n(19534);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=n(74564);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l=n(58231);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(32387);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(93464);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var p=n(22005);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var f=n(25083);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var h=n(39919);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}))},62949:e=>{"use strict";e.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')},64231:(e,t,n)=>{"use strict";n.d(t,{R:()=>ue});var r=n(73310),i=n(83705),s=n(40580),o=n(58135),a=n(80004),l=n(69740),c=n(90689),u="@next-tsx/core",p=["callApi","callHttp","callTool","callProvider","copyText","showDialog"],f=["push","replace","reload","pushQuery","replaceQuery"];function h(e,t){return!e.async&&!e.generator||(t.errors.push({message:"Function cannot be async or generator",node:e,severity:"error"}),!1)}function d(e,t){return!!e.referencesImport(u,t)||e.node.name===t&&!e.scope.getBinding(e.node.name)}function m(e,t){var n=null;return o.traverse(e,{enter:function(e,t){var r;!n&&(o.isFunctionExpression(e)||o.isStatement(e)||o.isAwaitExpression(e)||o.isYieldExpression(e)||o.isJSX(e)||o.isArrowFunctionExpression(e)&&(e.async||e.generator||o.isBlockStatement(e.body)||o.isObjectProperty(null===(r=t[t.length-1])||void 0===r?void 0:r.node)))&&(n=e)}}),!n||(null==t||t.errors.push({message:"Unsupported expression type: ".concat(n.type),node:n,severity:"error"}),!1)}function g(e){return e.isNullLiteral()||e.isIdentifier()&&"undefined"===e.node.name&&void 0===e.scope.getBinding("undefined")}var y=/^<%=?\s/,v=/\s%>$/;function b(e){if("string"!=typeof e)return!1;var t=e.trim();return y.test(t)&&v.test(t)}function x(e){return e.isCallExpression()||e.isOptionalCallExpression()}function S(e){return e.isMemberExpression()||e.isOptionalMemberExpression()}var C=[".js",".jsx",".ts",".tsx"];function E(e,t,n){if(e.startsWith("/"))return k(e,n);if(e.startsWith("./")||e.startsWith("../")){var i,s=t.substring(0,t.lastIndexOf("/")),o=s?s.split("/"):[""],a=e.split("/"),l=(0,r.A)(a);try{for(l.s();!(i=l.n()).done;){var c=i.value;"."!==c&&(".."===c?o.length>0&&o.pop():o.push(c))}}catch(e){l.e(e)}finally{l.f()}return k(o.join("/"),n)}return e}function k(e,t){if(t.some((function(t){return t.filePath===e})))return e;var n,i=(0,r.A)(C);try{var s,o=function(){var r=n.value;if(t.some((function(t){return t.filePath==="".concat(e).concat(r)})))return{v:"".concat(e).concat(r)}};for(i.s();!(n=i.n()).done;)if(s=o())return s.v}catch(e){i.e(e)}finally{i.f()}return e}function w(e,t,n,r){var i;if(!e.isReferencedIdentifier())return null;var s=e.node.name,o=e.scope.getBinding(s);if(!o)return null;if(null!==(i=r.contextBindings)&&void 0!==i&&i.has(o.identifier))return{type:"local",name:s};if("module"===o.kind&&o.path.isImportSpecifier()&&o.path.parentPath.isImportDeclaration()){var a=o.path.get("imported");if(!a.isIdentifier())return t.errors.push({message:"Unsupported import specifier type: ".concat(a.type),node:a.node,severity:"error"}),null;var l=o.path.parentPath.get("source");return{type:"imported",name:a.node.name,importSource:E(l.node.value,t.filePath,n.files)}}return t.errors.push({message:'Unsupported context binding for "'.concat(s,'"'),node:o.identifier,severity:"error"}),null}function T(e,t){return"CONTEXT_PROVIDER__".concat(e,"__").concat(t)}function _(e){return"context-agent-".concat(e)}var P=new Map([["BASE_URL","BASE_URL"],["translate","I18N"],["translateByRecord","I18N_TEXT"]]);function A(e,t,n,i,s){var o,a=e.isFunctionDeclaration();if(a&&!h(e.node,t))return null;var l=[],u={Identifier:function(s){var o,u,p,f,h,m,g;if(s.isReferencedIdentifier()){var y,v=s.parentPath.isObjectProperty()&&s.parentPath.node.shorthand,b=s.node.name,x=(0,r.A)(P);try{for(x.s();!(y=x.n()).done;){var S=(0,c.A)(y.value,2),C=S[0],k=S[1];if(d(s,C))return void l.push({type:"id",start:s.node.start,end:s.node.end,replacement:k,shorthand:v?b:void 0})}}catch(e){x.e(e)}finally{x.f()}var w=s.scope.getBinding(b);if(w){var _=w.identifier;if("module"===w.kind){var A=w.path.isImportDefaultSpecifier();if(!A&&!w.path.isImportSpecifier())return void t.errors.push({message:'Invalid module binding for "'.concat(b,'"'),node:s.node,severity:"error"});var I,M=w.path.parentPath.node;if(!A){var O=w.path.get("imported");if(!O.isIdentifier())return t.errors.push({message:"Unsupported import specifier type: ".concat(O.type),node:O.node,severity:"error"}),null;I=O.node.name}var B=M.source.value;if(B.startsWith(".")||B.startsWith("/")){var F,L,D=E(B,t.filePath,n.files),N=n.modules.get(D);if("css"===(null==N?void 0:N.moduleType))return a?void t.errors.push({message:"Css imports are not supported for utils functions",node:s.node,severity:"error"}):void(A?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"CONSTANTS[".concat(JSON.stringify(D),"]"),shorthand:v?b:void 0}):t.errors.push({message:"Named imports are not supported for CSS modules",node:s.node,severity:"error"}));"function"===(null===(F=L=A?null==N?void 0:N.defaultExport:null==N?void 0:N.namedExports.get(I))||void 0===F?void 0:F.type)?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"FN.".concat(L.function.name),shorthand:v?b:void 0}):t.errors.push({message:'Invalid usage: "'.concat(b,'"'),node:s.node,severity:"error"})}else switch(B){case"lodash":l.push({type:"id",start:s.node.start,end:s.node.end,replacement:A?"_":"_.".concat(I),shorthand:v?b:void 0});break;case"moment":A?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"moment",shorthand:v?b:void 0}):t.errors.push({message:'Named imports are not supported for "moment" module',node:s.node,severity:"error"})}}if(!a||_!==e.node.id)if(null!==(o=i.functionBindings)&&void 0!==o&&o.has(_))l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"FN.".concat(b),shorthand:v?b:void 0});else{var R;switch(_){case null===(u=i.eventBinding)||void 0===u?void 0:u.id:R=null!==(p=i.eventBinding)&&void 0!==p&&p.isCallback?"EVENT.detail":"EVENT";break;case null===(f=i.forEachBinding)||void 0===f?void 0:f.item:R="ITEM";break;case null===(h=i.forEachBinding)||void 0===h?void 0:h.index:R="INDEX";break;case null===(m=i.dataBinding)||void 0===m?void 0:m.id:R="DATA"}if(R)l.push({type:"id",start:s.node.start,end:s.node.end,replacement:R,shorthand:v?b:void 0});else{var j=null===(g=i.component)||void 0===g?void 0:g.bindingMap.get(_);j&&("state"===j.kind||"resource"===j.kind||"constant"===j.kind||"param"===j.kind||"app"===j.kind||"auth"===j.kind||"location"===j.kind||"query"===j.kind||"pathParams"===j.kind?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"app"===j.kind?"APP":"auth"===j.kind?"SYS":"location"===j.kind?"location":"query"===j.kind?"QUERY":"pathParams"===j.kind?"PATH":"".concat("template"===i.component.type?"STATE":"CTX",".").concat(_.name),shorthand:v?b:void 0}):"context"===j.kind?l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"CTX.".concat(T(j.contextProvider.name,j.contextKey)),shorthand:v?b:void 0}):t.errors.push({message:"Invalid usage of ".concat(j.kind,' variable "').concat(_.name,'"'),node:s.node,severity:"error"}))}}}else{var W;null!==(W=i.stateBindings)&&void 0!==W&&W.includes(b)&&l.push({type:"id",start:s.node.start,end:s.node.end,replacement:"CTX.".concat(b),shorthand:v?b:void 0})}}}};a||Object.assign(u,{TSTypeAnnotation:function(e){l.push({type:"annotation",start:e.node.start,end:e.node.end}),e.skip()},TSTypeParameterInstantiation:function(e){l.push({type:"annotation",start:e.node.start,end:e.node.end}),e.skip()},TSAsExpression:function(e){l.push({type:"annotation",start:e.node.expression.end,end:e.node.end}),e.skip()}}),e.isIdentifier()&&u.Identifier(e),e.traverse(u),l.sort((function(e,t){return e.start-t.start}));for(var p=[],f=e.node.start,m=0,g=l;m<g.length;m++){var y=g[m];p.push(t.source.substring(f,y.start),"annotation"===y.type?"":"".concat(y.shorthand?"".concat(y.shorthand,":"):"").concat(y.replacement)),f=y.end}p.push(t.source.substring(f,e.node.end));var v=p.join("");return a||s?v:"<%".concat(null!==(o=i.modifier)&&void 0!==o?o:""," ").concat(v," %>")}var I=Symbol("ambiguous");function M(e,t,n,i){if(e.isTSAsExpression())return M(e.get("expression"),t,n,i);if(e.isObjectExpression())return function(e,t,n,i){var s=e.get("properties");if(s.some((function(e){return e.isSpreadElement()||e.isObjectProperty()&&(e.node.computed||e.node.shorthand)}))&&m(e.node,t))return i.ambiguous?I:A(e,t,n,i);var o,a={},l=(0,r.A)(s);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(c.isObjectProperty())if(c.node.computed||c.node.shorthand)t.errors.push({message:"Unsupported computed or shorthand object property",node:c.node.key,severity:"error"});else{var u=c.get("key"),p=void 0;if(u.isIdentifier())p=u.node.name;else{if(!u.isStringLiteral()){t.errors.push({message:"Unsupported object key type: ".concat(u.node.type),node:u.node,severity:"error"});continue}p=u.node.value}a[p]=M(c.get("value"),t,n,i)}else t.errors.push({message:"Unsupported property type: ".concat(c.type),node:c.node,severity:"error"})}}catch(e){l.e(e)}finally{l.f()}return a}(e,t,n,i);if(e.isArrayExpression())return function(e,t,n,i){var s=e.get("elements");if(s.some((function(e){return!e||e.isSpreadElement()}))&&m(e.node,t))return i.ambiguous?I:A(e,t,n,i);var o,a=[],l=(0,r.A)(s);try{for(l.s();!(o=l.n()).done;){var c=o.value;c.node?c.isSpreadElement()?t.errors.push({message:"Spread elements are not supported in array",node:c.node,severity:"error"}):a.push(M(c,t,n,i)):t.errors.push({message:"Array elements cannot be empty",node:e.node,severity:"error"})}}catch(e){l.e(e)}finally{l.f()}return a}(e,t,n,i);if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(!e.isIdentifier()||"undefined"!==e.node.name||void 0!==e.scope.getBinding("undefined")){if(i.allowUseBrick&&e.isArrowFunctionExpression()){var s=e.get("body");if(s.isBlockStatement())return t.errors.push({message:"Block statements are not supported in render callback",node:s.node,severity:"error"}),null;var o,a=[],l=(0,r.A)(e.get("params"));try{for(l.s();!(o=l.n()).done;){var c=o.value;if(!c.isIdentifier())return t.errors.push({message:"Unsupported parameter type: ".concat(c.type),node:c.node,severity:"error"}),null;a.push(c.node.name)}}catch(e){l.e(e)}finally{l.f()}return{params:a,children:G(s,t,n,i)}}return e.isExpression()?m(e.node,t)?i.ambiguous?I:A(e,t,n,i):null:(t.errors.push({message:"Unsupported value type: ".concat(e.node.type),node:e.node,severity:"error"}),null)}}function O(e,t,n,r){var i=!1;return o.traverse(e.node,{enter:function(e,t){var n,r;i||o.isStringLiteral(e)||o.isNumericLiteral(e)||o.isBooleanLiteral(e)||o.isNullLiteral(e)||o.isObjectExpression(e)||o.isArrayExpression(e)||o.isObjectProperty(e)||o.isIdentifier(e)&&(r=null===(n=t[t.length-1])||void 0===n?void 0:n.node,1)&&(r&&o.isObjectProperty(r)?!r.computed&&!r.shorthand:"undefined"===e.name)||(i=!0)}}),i&&m(e.node,null)?A(e,t,n,r):M(e,t,n,r)}var B=n(17545),F=new Map([["callApi",[2,3]],["callHttp",[1,2]],["callTool",[2,3]]]);function L(e,t,n,i){if(!x(e))return t.errors.push({message:"Expect a call expression here, received ".concat(e.node.type),node:e.node,severity:"error"}),null;var s,o=e.get("callee");if(!o.isIdentifier())return t.errors.push({message:"Expect an identifier here, received ".concat(o.type),node:o.node,severity:"error"}),null;var a,l=(0,r.A)(p);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(d(o,c)){s=c;break}}}catch(e){l.e(e)}finally{l.f()}if(!s)return t.errors.push({message:'Unknown API: "'.concat(o.node.name,'"'),node:o.node,severity:"error"}),null;var u=F.get(s),f=e.get("arguments");if(!u){if("callProvider"===s){if(f.length<1)return t.errors.push({message:'"'.concat(s,'()" expects at least 1 argument, but got ').concat(f.length),node:e.node,severity:"error"}),null;var h=f[0];return h.isStringLiteral()?{api:h.node.value,isRawProvider:!0,params:f.slice(1).map((function(e){return M(e,t,n,i)}))}:(t.errors.push({message:'"'.concat(s,'()" expects a string literal as the first argument, but got ').concat(h.type),node:h.node,severity:"error"}),null)}return{api:"copyText"===s?"basic.copy-to-clipboard":"basic.show-dialog",isRawProvider:!0,params:f.map((function(e){return M(e,t,n,i)}))}}var m,y=f.length<u[0];if((y||!u.includes(f.length))&&(t.errors.push({message:'"'.concat(s,'()" expects ').concat(u.join(" or ")," arguments, but got ").concat(f.length),node:e.node,severity:y?"error":"warning"}),y))return null;var v=f[0];if("callHttp"===s){var S=M(v,t,n,i);if("string"!=typeof S)return t.errors.push({message:'"'.concat(s,'()" expects a string value as the first argument, but got ').concat((0,B.A)(S)),node:v.node,severity:"error"}),null;m={api:S,http:!0}}else if("callApi"===s){if(!v.isStringLiteral())return t.errors.push({message:'"'.concat(s,'()" expects a string literal as the first argument, but got ').concat(v.type),node:v.node,severity:"error"}),null;m={api:v.node.value}}else{var C=M(v,t,n,i);if("string"!=typeof C)return t.errors.push({message:'"'.concat(s,'()" expects a string value as the first argument, but got ').concat((0,B.A)(C)),node:v.node,severity:"error"}),null;var E=f[1],k=M(E,t,n,i);if("string"!=typeof k)return t.errors.push({message:'"'.concat(s,'()" expects a string value as the second argument, but got ').concat((0,B.A)(k)),node:E.node,severity:"error"}),null;var w,T=f[2];T&&(w=M(T,t,n,i)),m={api:s,tool:{conversationId:C,stepId:k},params:w}}if("callApi"===s||"callHttp"===s){var _=f[1];if(_&&!g(_)){_.isObjectExpression()||t.errors.push({message:'Data source "params" prefers an object literal, but got '.concat(_.type),node:_.node,severity:"notice"});var P=M(_,t,n,i);b(P)||"object"===(0,B.A)(P)&&null!==P?m.params=P:t.errors.push({message:"API params expects an object or expression, but got ".concat((0,B.A)(P)),node:_.node,severity:"error"})}}if("callApi"===s){var A=f[2];if(A&&!g(A))if(A.isObjectExpression()){var I,O=A.get("properties"),L=(0,r.A)(O);try{for(L.s();!(I=L.n()).done;){var D=I.value;if(D.isObjectProperty()){var N=D.get("key");if(N.isIdentifier())if("objectId"===N.node.name){var R=D.get("value");if(!g(R)){if(!R.isStringLiteral()){t.errors.push({message:'"callApi()" third param "meta" property "'.concat(N.node.name,'" expects a string literal, but got ').concat(R.type),node:R.node,severity:"error"});continue}m.objectId=R.node.value}}else t.errors.push({message:'"callApi()" third param "meta" property key must be "objectId", but got "'.concat(N.node.name,'"'),node:N.node,severity:"error"});else t.errors.push({message:'"callApi()" third param "meta" property key must be an identifier, but got '.concat(N.type),node:N.node,severity:"error"})}else t.errors.push({message:'"callApi()" third param "meta" expects object properties, but got '.concat(D.type),node:D.node,severity:"error"})}}catch(e){L.e(e)}finally{L.f()}}else t.errors.push({message:'"callApi()" third param "meta" expects an object literal, but got '.concat(A.type),node:A.node,severity:"error"})}return m}function D(e,t,n,r,i){if(!e.isArrowFunctionExpression())return t.errors.push({message:"Event handler must be an arrow function expression, but got ".concat(e.type),node:e.node,severity:"error"}),null;var s=e.get("params");if(s.length>1)return t.errors.push({message:"Event handler arrow function must have at most one parameter, but got ".concat(s.length),node:e.node,severity:"error"}),null;var o=s[0],a=(0,l.A)((0,l.A)({},r),{},{modifier:void 0,eventBinding:void 0});if(o){if(!o.isIdentifier())return t.errors.push({message:"Event handler arrow function parameter must be an identifier, but got ".concat(o.type),node:o.node,severity:"error"}),null;a.eventBinding={id:o.node,isCallback:i}}var c=N(e.get("body"),t,n,a);return c?[].concat(c):null}function N(e,t,n,i,s){if(e.isBlockStatement())return e.get("body").flatMap((function(e){return N(e,t,n,i)})).filter((function(e){return null!==e}));if(e.isIfStatement())return{action:"conditional",payload:{test:M(e.get("test"),t,n,i),consequent:N(e.get("consequent"),t,n,i),alternate:e.node.alternate?N(e.get("alternate"),t,n,i):null}};if(e.isExpressionStatement())return N(e.get("expression"),t,n,i);if(e.isReturnStatement()&&s&&s(e),x(e)){var o=e.get("callee"),a=e.get("arguments");if(o.isIdentifier()){if(d(o,"showMessage"))return 1!==a.length?(t.errors.push({message:'"showMessage()" expects exactly 1 argument, but got '.concat(a.length),node:e.node,severity:"error"}),null):{action:"show_message",payload:M(a[0],t,n,i)};if(d(o,"handleHttpError"))return 1!==a.length?(t.errors.push({message:'"handleHttpError()" expects exactly 1 argument, but got '.concat(a.length),node:e.node,severity:"error"}),null):{action:"handle_http_error",payload:M(a[0],t,n,i)};var c,u=(0,r.A)(p);try{for(u.s();!(c=u.n()).done;)if(d(o,c.value)){var h=L(e,t,n,i);return h?(t.contracts.add(h.api),{action:"call_api",payload:h}):null}}catch(e){u.e(e)}finally{u.f()}var m,g,y=o.scope.getBindingIdentifier(o.node.name);if(y&&(m=null===(g=i.component)||void 0===g?void 0:g.bindingMap.get(y)),!m)return t.errors.push({message:'Function "'.concat(o.node.name,'" is not defined'),node:o.node,severity:"error"}),null;switch(m.kind){case"setState":return{action:"update_variable",payload:{name:m.id.name,value:void 0===a[0]?void 0:M(a[0],t,n,(0,l.A)((0,l.A)({},i),{},{modifier:void 0})),scope:"template"===i.component.type?"template":"global"}};case"refetch":return{action:"refresh_data_source",payload:{name:m.resourceId.name,scope:"template"===i.component.type?"template":"global"}};case"context":return{action:"call_selector",payload:{selector:"#".concat(_(m.contextProvider.name)),method:"trigger",args:[{name:m.contextKey,value:void 0===a[0]?void 0:M(a[0],t,n,(0,l.A)((0,l.A)({},i),{},{modifier:void 0}))}]}};case"eventHandler":if(a.length>1)return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" expects at most 1 argument, but got ').concat(a.length),node:e.node,severity:"error"}),null;var v;if(a.length>0){var b=a[0];if(!b.isObjectExpression())return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" argument must be an object expression, but got ').concat(b.type),node:b.node,severity:"error"}),null;var C,E=(0,r.A)(b.get("properties"));try{for(E.s();!(C=E.n()).done;){var k=C.value;if(!k.isObjectProperty())return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" argument object expression must have only object properties, but got ').concat(k.type),node:k.node,severity:"error"}),null;if(k.node.computed)return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" argument object expression must not have computed properties'),node:k.node,severity:"error"}),null;var w=k.get("key");if(!w.isIdentifier()||"detail"!==w.node.name)return t.errors.push({message:'Event dispatcher "'.concat(o.node.name,'" argument object expression property key must be an identifier with name "detail", but got ').concat(w.type).concat(w.isIdentifier()?" (name: ".concat(w.node.name,")"):""),node:w.node,severity:"error"}),null;v=M(k.get("value"),t,n,(0,l.A)((0,l.A)({},i),{},{modifier:void 0}))}}catch(e){E.e(e)}finally{E.f()}}return{action:"dispatch_event",payload:{type:W(m.id.name),detail:v}};default:return t.errors.push({message:'"'.concat(o.node.name,'" is not callable'),node:o.node,severity:"error"}),null}}else if(S(o)){if(o.node.computed)return t.errors.push({message:"Event handler call expression with computed member expression is not supported",node:o.node,severity:"error"}),null;var T=o.get("object");if(S(T)){var P=T.get("property");if(!T.node.computed&&P.isIdentifier()&&"current"===P.node.name){var A=T.get("object");if(A.isIdentifier()){var I,O,B=A.scope.getBindingIdentifier(A.node.name);if(B&&(I=null===(O=i.component)||void 0===O?void 0:O.bindingMap.get(B)),!I)return t.errors.push({message:'Variable "'.concat(A.node.name,'" is not defined'),node:A.node,severity:"error"}),null;if("ref"!==I.kind)return t.errors.push({message:'Variable "'.concat(A.node.name,'" is not a ref, but a ').concat(I.kind),node:A.node,severity:"error"}),null;var F=o.get("property");return F.isIdentifier()?{action:"call_ref",payload:{ref:I.id.name,method:F.node.name,args:a.map((function(e){return M(e,t,n,i)})),scope:"template"===i.component.type?"template":"global"}}:(t.errors.push({message:"Event handler call expression with non-identifier property is not supported",node:F.node,severity:"error"}),null)}}}if(T.isIdentifier()){var R=T.scope.getBindingIdentifier(T.node.name);if(R){var j,U=null===(j=i.component)||void 0===j?void 0:j.bindingMap.get(R);if(U&&"history"===U.kind){var V=o.get("property");if(!V.isIdentifier())return t.errors.push({message:"Event handler call expression with non-identifier property is not supported",node:V.node,severity:"error"}),null;var H=V.node.name;return f.includes(H)?{action:"navigate",payload:{method:H,args:a.map((function(e){return M(e,t,n,i)}))}}:(t.errors.push({message:'"history.'.concat(H,'()" is not supported in event handler'),node:V.node,severity:"error"}),null)}}}if(!T.isCallExpression())return t.errors.push({message:"Invalid usage in event handler",node:T.node,severity:"error"}),null;var q=T.get("callee");if(!q.isIdentifier())return t.errors.push({message:"Member expression in event handler expects an identifier as callee, but got ".concat(q.type),node:q.node,severity:"error"}),null;var G,K=o.get("property");if(!K.isIdentifier())return t.errors.push({message:"Member expression in event handler expects an identifier as property, but got ".concat(K.type),node:K.node,severity:"error"}),null;var $,J=(0,r.A)(p);try{for(J.s();!($=J.n()).done;){var X=$.value;if(d(q,X)){G=X;break}}}catch(e){J.e(e)}finally{J.f()}if(G){var z=K.node.name;if("then"!==z&&"catch"!==z)return t.errors.push({message:'"'.concat(G,'()" expects "then" or "catch" as its method, but got ').concat(z),node:K.node,severity:"error"}),null;if("catch"===z){if(1!==a.length)return t.errors.push({message:'".catch()" expects exactly 1 argument, but got '.concat(a.length),node:a.length>0?a[1].node:K.node,severity:"error"}),null}else if(0===a.length||a.length>2)return t.errors.push({message:'".then()" expects 1 or 2 arguments, but got '.concat(a.length),node:a.length>2?a[2].node:K.node,severity:"error"}),null;var Y,Q,Z=L(T,t,n,i);if(!Z)return null;t.contracts.add(Z.api);var ee=D(a[0],t,n,i,!0);return"catch"===z?Q=ee:(Y=ee,a.length>1&&(Q=D(a[1],t,n,i,!0))),{action:"call_api",payload:Z,callback:{success:Y,error:Q}}}return t.errors.push({message:"Unsupported action in event handler: ".concat(q.node.name),node:q.node,severity:"error"}),null}}return t.errors.push({message:"Unsupported event handler",node:e.node,severity:"error"}),null}function R(e,t,n,r){var i;if(!e.isReferencedIdentifier())return null;var s=e.node.name,o=e.scope.getBinding(s);if(!o)return null;if(null!==(i=r.componentBindings)&&void 0!==i&&i.has(o.identifier))return{type:"local",name:s};if("module"===o.kind){if(o.path.isImportSpecifier()&&o.path.parentPath.isImportDeclaration()){var a=o.path.get("imported");if(!a.isIdentifier())return t.errors.push({message:"Unsupported import specifier type: ".concat(a.type),node:a.node,severity:"error"}),null;var l=o.path.parentPath.get("source");return{type:"imported",name:a.node.name,importSource:E(l.node.value,t.filePath,n.files)}}if(o.path.isImportDefaultSpecifier()&&o.path.parentPath.isImportDeclaration())return{type:"imported",importSource:E(o.path.parentPath.get("source").node.value,t.filePath,n.files)}}return t.errors.push({message:'Unsupported component binding for "'.concat(s,'"'),node:o.identifier,severity:"error"}),null}function j(e,t,n){if(e.isJSXExpressionContainer()){var r=e.get("expression");if(r.isIdentifier()){var i,s,o=r.node.name,a=r.scope.getBindingIdentifier(o);if(a&&(i=null===(s=n.component)||void 0===s?void 0:s.bindingMap.get(a)),i){if("ref"===i.kind)return i.id.name;t.errors.push({message:'The variable "'.concat(o,'" is not a ref, but a ').concat(i.kind),node:e.node,severity:"error"})}else t.errors.push({message:'The ref "'.concat(o,'" is not defined'),node:e.node,severity:"error"})}else t.errors.push({message:'The "ref" attribute in component expects an identifier, but got '.concat(r.node.type),node:r.node,severity:"error"})}else{var l,c;t.errors.push({message:'The "ref" attribute in component expects a JSXExpressionContainer, but got '.concat(null===(l=e.node)||void 0===l?void 0:l.type),node:null!==(c=e.node)&&void 0!==c?c:e.parent,severity:"error"})}}function W(e){return e.slice(2).replace(/([a-z])([A-Z])/g,"$1.$2").toLowerCase()}function U(e,t,n,s){if(e.isJSXFragment())return e.get("children").flatMap((function(e){return U(e,t,n,s)}));if(e.isJSXText())return e.node.value.trim()?{type:"text",text:e.node.value}:null;if(e.isJSXExpressionContainer())return U(e.get("expression"),t,n,s);if(e.isJSXEmptyExpression())return null;if(e.isJSXElement())return function(e,t,n,s){var a=e.get("openingElement"),u=a.get("name");if("app"===n.appType&&("page"===t.moduleType||"entry"===t.moduleType)&&u.isJSXMemberExpression()){var p=u.get("object"),f=u.get("property");return p.isJSXIdentifier()?"Provider"!==f.node.name?(t.errors.push({message:"Unsupported JSX Member Expression property: ".concat(f.node.name,'. Only "Provider" is supported.'),node:f.node,severity:"error"}),null):function(e,t,n,s,o){var a=w(t,n,s,o),u=e.get("children").flatMap((function(e){return U(e,n,s,o)}));if(!a)return u;var p,f,h,d=e.get("openingElement"),m=(0,r.A)(d.get("attributes"));try{for(m.s();!(f=m.n()).done;){var g=f.value;if(g.isJSXSpreadAttribute())n.errors.push({message:"Spread attributes are not supported in component",node:g.node,severity:"error"});else{var y=g.get("name");if(y.isJSXIdentifier()){var v=y.node.name;"value"===v?p=g.get("value"):n.errors.push({message:'Unsupported attribute "'.concat(v,'" in Context Provider'),node:g.node,severity:"error"})}else n.errors.push({message:"Expected JSXIdentifier, but got ".concat(y.node.type),node:y.node,severity:"error"})}}}catch(e){m.e(e)}finally{m.f()}if(!p)return n.errors.push({message:'Context Provider is missing required "value" attribute',node:d.node,severity:"error"}),u;if(!p.isJSXExpressionContainer())return n.errors.push({message:"Expected JSXExpressionContainer, but got ".concat(null===(h=p.node)||void 0===h?void 0:h.type),node:p.node,severity:"error"}),u;var b=p.get("expression");if(!b.isObjectExpression())return n.errors.push({message:'Context Provider "value" must be an object expression, but got '.concat(b.node.type),node:b.node,severity:"error"}),u;var x,S=b.get("properties"),C=new Map,E=new Map,k=(0,r.A)(S);try{for(k.s();!(x=k.n()).done;){var P=x.value;if(P.isObjectProperty())if(P.node.computed)n.errors.push({message:"Context Provider value property cannot be computed",node:P.node,severity:"error"});else if(P.node.shorthand){var A,I=P.get("value"),M=I.scope.getBindingIdentifier(I.node.name),O=void 0;if(M&&(O=null===(A=o.component)||void 0===A?void 0:A.bindingMap.get(M)),O)switch(O.kind){case"setState":C.set(I.node.name,O.id.name);break;case"state":E.set(I.node.name,O.id.name);break;default:n.errors.push({message:'Unsupported binding kind "'.concat(O.kind,'" for Context Provider value property "').concat(I.node.name,'"'),node:I.node,severity:"error"});continue}else n.errors.push({message:'No binding found for Context Provider value property "'.concat(I.node.name,'"'),node:I.node,severity:"error"})}else n.errors.push({message:"Context Provider value property must use shorthand syntax",node:P.node,severity:"error"});else n.errors.push({message:"Unsupported property type in Context Provider value: ".concat(P.type),node:P.node,severity:"error"})}}catch(e){k.e(e)}finally{k.f()}return 0===C.size?u:[{type:"component",component:(0,l.A)({name:"eo-event-agent",portal:!0,properties:{id:_(a.name)},events:{trigger:(0,i.A)(C).map((function(e){var t=(0,c.A)(e,2),n=t[0],r=t[1];return{action:"conditional",payload:{test:"<% EVENT.detail.name === ".concat(JSON.stringify(n)," %>"),consequent:{action:"update_variable",payload:{name:r,value:"<% EVENT.detail.value %>"}},alternate:null}}}))}},E.size>0?{context:(0,i.A)(E).map((function(e){var t=(0,c.A)(e,2),n=t[0],r=t[1];return{name:T(a.name,n),value:"<% CTX.".concat(r," %>"),track:!0}}))}:void 0)}].concat((0,i.A)(u))}(e,p,t,n,s):(t.errors.push({message:"When using JSX Member Expression, only JSX Identifier is allowed as object, but got: ".concat(p.type),node:p.node,severity:"error"}),null)}if(!u.isJSXIdentifier())return t.errors.push({message:"Unsupported JSX element name type: ".concat(u.type),node:u.node,severity:"error"}),null;if(d(u,"Fragment")){var h,m=(0,r.A)(a.node.attributes);try{for(m.s();!(h=m.n()).done;){var g=h.value;o.isJSXAttribute(g)&&o.isJSXIdentifier(g.name)&&"key"===g.name.name||t.errors.push({message:"Invalid attribute for Fragment",node:g,severity:"error"})}}catch(e){m.e(e)}finally{m.f()}return e.get("children").flatMap((function(e){return U(e,t,n,s)}))}var y,v,b,x,S,C=R(u,t,n,s),E={},k=d(u,"Route"),P=(0,r.A)(a.get("attributes"));try{for(P.s();!(S=P.n()).done;){var A=S.value;if(A.isJSXSpreadAttribute())t.errors.push({message:"Spread attributes are not supported in component",node:A.node,severity:"error"});else{var I=A.get("name");if(I.isJSXIdentifier()){var M=I.node.name;if("key"!==M){var B=A.get("value");if(k)if("component"===M){if(!B.isJSXExpressionContainer()){var F,L;t.errors.push({message:'The "component" attribute in Route expects a JSXExpressionContainer, but got '.concat(null===(F=B.node)||void 0===F?void 0:F.type),node:null!==(L=B.node)&&void 0!==L?L:B.parent,severity:"error"});continue}var N=B.get("expression");if(!N.isIdentifier()){t.errors.push({message:'The "component" attribute in Route expects an identifier, but got '.concat(N.node.type),node:N.node,severity:"error"});continue}var V=R(N,t,n,s);if(!V){t.errors.push({message:'The component "'.concat(N.node.name,'" is not defined'),node:N.node,severity:"error"});continue}E.component={name:N.node.name,reference:V}}else if("path"===M){if(!B.isStringLiteral()){var q,G;t.errors.push({message:'The "path" attribute in Route expects a string literal, but got '.concat(null===(q=B.node)||void 0===q?void 0:q.type),node:null!==(G=B.node)&&void 0!==G?G:B.parent,severity:"error"});continue}E.path=B.node.value}else t.errors.push({message:'Unsupported attribute "'.concat(M,'" in Route'),node:I.node,severity:"error"});else if("ref"!==M)if("slot"!==M)if(/^on[A-Z]/.test(M)){if(!B.isJSXExpressionContainer()){var K,$;t.errors.push({message:'Event handler "'.concat(M,'" expects a JSXExpressionContainer, but got ').concat(null===(K=B.node)||void 0===K?void 0:K.type),node:null!==($=B.node)&&void 0!==$?$:B.parent,severity:"error"});continue}var J=B.get("expression");if(J.isJSXEmptyExpression()){t.errors.push({message:"Empty expression in events is not allowed",node:J.node,severity:"warning"});continue}var X=null;if(J.isIdentifier()){var z=J.scope.getBindingIdentifier(J.node.name);if(z){var Y,Q=null===(Y=s.component)||void 0===Y?void 0:Y.bindingMap.get(z);Q&&"eventHandler"===Q.kind&&(X=[{action:"dispatch_event",payload:{type:W(Q.id.name),detail:"<% EVENT.detail %>"}}])}}X||(X=D(J,t,n,s)),X&&("onMount"===M||"onUnmount"===M?(null!=v||(v={}),v[M]=X):(null!=y||(y={}),y[W(M)]=X))}else if(null==B.node)E[M]=!0;else if(B.isStringLiteral())E[M]=B.node.value;else if(B.isJSXExpressionContainer()){var Z=B.get("expression");Z.isJSXEmptyExpression()?t.errors.push({message:'Empty expression in JSX attribute "'.concat(M,'" is not allowed'),node:Z.node,severity:"warning"}):E[M]=O(Z,t,n,(0,l.A)((0,l.A)({},s),{},{allowUseBrick:!0,modifier:"="}))}else t.errors.push({message:"Unsupported attribute value type in component: ".concat(B.node.type),node:B.node,severity:"error"});else{if(!B.isStringLiteral()){var ee,te;t.errors.push({message:'The "slot" attribute in component expects a string literal, but got '.concat(null===(ee=B.node)||void 0===ee?void 0:ee.type),node:null!==(te=B.node)&&void 0!==te?te:B.parent,severity:"error"});continue}x=B.node.value}else b=j(B,t,s)}}else t.errors.push({message:"Expected JSXIdentifier, but got ".concat(I.node.type),node:I.node,severity:"error"})}}}catch(e){P.e(e)}finally{P.f()}var ne=H(e.get("children"),t,n,s),re=ne.textContent,ie=ne.children;return re&&(E.textContent=re),{type:"component",component:{name:u.node.name,reference:C,properties:E,ref:b,slot:x,events:y,lifeCycle:v,children:ie}}}(e,t,n,s);if(x(e)){var a=e.get("callee");if(a.isIdentifier()&&d(a,"createPortal")){var u=e.get("arguments");if(1!==u.length){var p=0===u.length;if(t.errors.push({message:"createPortal() requires exactly 1 argument, received ".concat(u.length),node:e.node,severity:p?"error":"warning"}),p)return null}return[].concat(U(u[0],t,n,s)).map((function(e){return null===e?e:"component"!==e.type?(t.errors.push({message:"Invalid argument type for createPortal(), expected a component but got ".concat(e.type),node:u[0].node,severity:"error"}),e):(0,l.A)((0,l.A)({},e),{},{component:(0,l.A)((0,l.A)({},e.component),{},{portal:!0})})}))}if(S(a)){var f=a.get("property");if(f.isIdentifier()&&"map"===f.node.name){var h=e.get("arguments");if(h.length>0){var g=h[0];if(g.isArrowFunctionExpression()){var y=g.get("body");if(y.isExpression()&&V(y.node)){var v=a.get("object");if(!m(v.node,t))return null;var b=g.get("params");if(b.length>2)return t.errors.push({message:"Array map function with JSX elements must have at most two parameters, but got ".concat(b.length),node:b[2].node,severity:"error"}),null;var C=b.find((function(e){return!e.isIdentifier()}));if(C)return t.errors.push({message:"Array map function with JSX elements must have identifier parameters, but got ".concat(C.type),node:C.node,severity:"error"}),null;var E=(0,l.A)((0,l.A)({},s),{},{forEachBinding:void 0});if(b.length>0){var k=b,P=(0,c.A)(k,2),A=P[0],I=P[1];E.forEachBinding={item:A.node,index:null==I?void 0:I.node}}return{type:"component",component:{name:"ForEach",properties:{dataSource:O(v,t,n,(0,l.A)((0,l.A)({},s),{},{modifier:"="}))},children:G(g.get("body"),t,n,E)}}}}}}}}else if(e.isConditionalExpression()){var M=e.get("test"),B=e.get("consequent"),F=e.get("alternate");if(V(B.node)||V(F.node))return m(M.node,t)?{type:"component",component:{name:"If",properties:{dataSource:O(M,t,n,(0,l.A)((0,l.A)({},s),{},{modifier:"="}))},children:[].concat((0,i.A)(G(B,t,n,s)),(0,i.A)(G(F,t,n,s).map((function(e){return(0,l.A)((0,l.A)({},e),{},{slot:"else"})}))))}}:null}else if(e.isLogicalExpression()){var L=e.get("left"),N=e.get("right"),q=e.node.operator;if(("&&"===q||"||"===q)&&V(N.node)){if(!m(L.node,t))return null;var K=G(N,t,n,s);return{type:"component",component:{name:"If",properties:{dataSource:O(L,t,n,(0,l.A)((0,l.A)({},s),{},{modifier:"="}))},children:"&&"===q?K:K.map((function(e){return(0,l.A)((0,l.A)({},e),{},{slot:"else"})}))}}}}return e.isExpression()?m(e.node,t)?{type:"expression",expression:e}:null:(t.errors.push({message:"Unsupported node type in JSX children: ".concat(e.type),node:e.node,severity:"error"}),null)}function V(e){var t=!1;return o.traverse(e,{enter:function(e){t||!o.isJSXElement(e)&&!o.isJSXFragment(e)||(t=!0)}}),t}function H(e,t,n,i){var s=e.flatMap((function(e){return U(e,t,n,i)}));s.length>0&&null===s[0]&&(s=s.slice(1)),s.length>0&&null===s[s.length-1]&&(s=s.slice(0,s.length-1));var o=s.every((function(e){return"text"===(null==e?void 0:e.type)}));if(!o){var a,c=null,u=[],p=(0,r.A)(s);try{for(p.s();!(a=p.n()).done;){var f=a.value;if(null===f);else if("text"===f.type||"expression"===f.type){var h,d,m;if("text"===(null===(h=c)||void 0===h?void 0:h.type)||"expression"===(null===(d=c)||void 0===d?void 0:d.type)){c={type:"merged",children:[c,f]},u.splice(u.length-1,1,c);continue}if("merged"===(null===(m=c)||void 0===m?void 0:m.type)){c.children.push(f);continue}}c=f,u.push(f)}}catch(e){p.e(e)}finally{p.f()}o=(s=u).every((function(e){return"text"===(null==e?void 0:e.type)||"merged"===(null==e?void 0:e.type)&&e.children.every((function(e){return"text"===e.type}))}))}if(o){var g=s.flatMap((function(e){return"text"===e.type?e.text:e.children.map((function(e){return e.text}))})).join("").trim();return{textContent:g}}var y=s.every((function(e){return!!e&&"component"!==e.type}));if(y){var v=q(s.flatMap((function(e){return"merged"===e.type?e.children:e})),t,n,i);return{textContent:v}}var b=s.filter((function(e){return!!e})).map((function(e){return"component"===e.type?e.component:{name:"Plaintext",properties:{textContent:"text"===e.type?e.text:"expression"===e.type?A(e.expression,t,n,(0,l.A)((0,l.A)({},i),{},{modifier:"="})):q(e.children,t,n,i)}}}));return{children:b}}function q(e,t,n,r){return t.usedHelpers.add("_helper_mergeTexts"),"<%= FN._helper_mergeTexts(".concat(e.map((function(e){return"text"===e.type?JSON.stringify(e):'{type:"expression",value:('.concat(A(e.expression,t,n,r,!0),")}")})).join(", "),") %>")}function G(e,t,n,r){var i=H([e],t,n,r),s=i.textContent,o=i.children;return null!=o?o:[{name:"Plaintext",properties:{textContent:s}}]}function K(e){var t,n,r=null===(t=e.children)||void 0===t?void 0:t.find((function(e){return n="View",function(e){return!e.reference||"imported"===e.reference.type&&e.reference.importSource===u}(t=e)&&(t.reference?t.reference.name===n:t.name===n);var t,n})),i=null==r||null===(n=r.properties)||void 0===n?void 0:n.title;if("string"==typeof i&&!b(i))return i}var $=a.default;function J(e,t,n,r,i,s,o,a){var c=L(e,t,n,r);if(!c)return null;t.contracts.add(c.api);var u=(0,l.A)({name:i,config:s},c);if(o&&a){if("catch"===a){if(1!==o.length)return t.errors.push({message:'".catch()" expects exactly 1 argument, but got '.concat(o.length),node:o.length>0?o[1].node:e.node,severity:"error"}),null}else if(0===o.length||o.length>2)return t.errors.push({message:'".then()" expects 1 or 2 arguments, but got '.concat(o.length),node:o.length>2?o[2].node:e.node,severity:"error"}),null;var p=X(o[0],t,n,r,a);if(p&&(u["catch"===a?"rejectTransform":"transform"]=p),"catch"!==a&&o.length>1){var f=X(o[1],t,n,r,a);f&&(u.rejectTransform=f)}}return u}function X(e,t,n,r,i){if(!e.isArrowFunctionExpression())return t.errors.push({message:'".'.concat(i,'()" callback expects an arrow function, but got ').concat(e.type),node:e.node,severity:"error"}),null;var s=e.get("body");if(!s.isExpression())return t.errors.push({message:'".'.concat(i,'()" callback function body expects an expression, but got ').concat(s.type),node:s.node,severity:"error"}),null;var o,a,c=e.get("params");if(c.length>1)return t.errors.push({message:'".'.concat(i,'()" callback function expects exactly 0 or 1 parameter, but got ').concat(c.length),node:null!==(o=null===(a=c[1])||void 0===a?void 0:a.node)&&void 0!==o?o:e,severity:"error"}),null;var u=(0,l.A)((0,l.A)({},r),{},{dataBinding:void 0}),p=c[0];if(c.length>0){if(!p.isIdentifier())return t.errors.push({message:'".'.concat(i,'()" callback function parameter expects an identifier, but got ').concat(p.type),node:p.node,severity:"error"}),null;u.dataBinding={id:p.node}}return A(s,t,n,u)}function z(e,t,n,i,s){var o=e.get("id");if(!o.isArrayPattern())return null;var a=o.get("elements");if(1!==a.length&&2!==a.length)return null;var l=a[0];if(!l.isIdentifier())return null;if(1!==t.length&&2!==t.length)return null;var c=t[0];if(!c.isArrowFunctionExpression())return null;if(!h(c.node,n))return null;var u=c.get("body");if(u.isBlockStatement())return null;if(!u.isCallExpression())return null;var p=u.get("callee");if(!p.isIdentifier()&&!p.isMemberExpression())return null;var f,d=t[1];if(d){if(!d.isObjectExpression())return n.errors.push({message:'"useResource()" second argument must be an object expression, but got '.concat(d.type),node:d.node,severity:"error"}),null;var m,g=(0,r.A)(d.get("properties"));try{for(g.s();!(m=g.n()).done;){var y=m.value;if(!y.isObjectProperty())return n.errors.push({message:'Unsupported property type in "useResource()" second argument: '.concat(y.type),node:y.node,severity:"error"}),null;var v=y.get("key");if(!v.isIdentifier())return n.errors.push({message:'"useResource()" second argument property key must be an identifier, but got '.concat(v.type),node:v.node,severity:"error"}),null;if(y.node.computed)return n.errors.push({message:'"useResource()" second argument property key cannot be computed',node:v.node,severity:"error"}),null;if("enabled"!==v.node.name&&"fallback"!==v.node.name)return n.errors.push({message:'"useResource()" second argument property key must be "enabled" or "fallback", but got "'.concat(v.node.name,'"'),node:v.node,severity:"error"}),null;null!=f||(f={}),f[v.node.name]=M(y.get("value"),n,i,s)}}catch(e){g.e(e)}finally{g.f()}}var b=null;if(p.isMemberExpression()){var x=p.get("property");if(!x.isIdentifier()||p.node.computed||"then"!==x.node.name&&"catch"!==x.node.name)return n.errors.push({message:"Invalid useResource call",node:x.node,severity:"error"}),null;b=J(p.get("object"),n,i,s,l.node.name,f,u.get("arguments"),x.node.name)}else b=J(u,n,i,s,l.node.name,f);if(b){var S=[{id:l.node,kind:"resource",resource:b}],C=a[1];if(C){if(!C.isIdentifier())return n.errors.push({message:'Refetch variable in "useResource()" must be an identifier',node:C.node,severity:"error"}),null;S.push({id:C.node,kind:"refetch",resourceId:l.node})}return S}return null}function Y(e,t,n,i,s){if(1!==t.length)return n.errors.push({message:'"useContext()" must have exactly one argument, but got '.concat(t.length),node:e.node,severity:"error"}),null;var o=t[0];if(!o.isIdentifier())return n.errors.push({message:'"useContext()" argument must be an identifier, but got '.concat(o.type),node:o.node,severity:"error"}),null;var a=w(o,n,i,s);if(!a)return null;var l=e.get("id");if(!l.isObjectPattern())return null;var c,u=l.get("properties"),p=[],f=(0,r.A)(u);try{for(f.s();!(c=f.n()).done;){var h=c.value;if(h.isObjectProperty())if(h.node.computed)n.errors.push({message:'"useContext()" destructuring property cannot be computed',node:h.node,severity:"error"});else{var d=h.get("key");if(d.isIdentifier()){var m=h.get("value");m.isIdentifier()?p.push({id:m.node,kind:"context",contextProvider:a,contextKey:d.node.name}):n.errors.push({message:'"useContext()" destructuring property value must be an identifier, but got '.concat(m.type),node:m.node,severity:"error"})}else n.errors.push({message:'"useContext()" destructuring property key must be an identifier, but got '.concat(d.type),node:d.node,severity:"error"})}else n.errors.push({message:'Unsupported property type in "useContext()" destructuring: '.concat(h.type),node:h.node,severity:"error"})}}catch(e){f.e(e)}finally{f.f()}return p}var Q=new Map([["useQuery","query"],["usePathParams","pathParams"],["useApp","app"],["useAuth","auth"],["useHistory","history"],["useLocation","location"]]);function Z(e,t,n,i){var s,o=(0,r.A)(Q);try{for(o.s();!(s=o.n()).done;){var a=(0,c.A)(s.value,2),l=a[0],u=a[1];if(d(t,l)){var p=e.get("id");if(!p.isIdentifier()){i.errors.push({message:"".concat(l,"() must be assigned to an identifier, received ").concat(p.type),node:p.node,severity:"error"});break}return n.length>0&&i.errors.push({message:"".concat(l,"() does not accept any arguments, received ").concat(n.length),node:n[0].node,severity:"warning"}),[p.node,{id:p.node,kind:u}]}}}catch(e){o.e(e)}finally{o.f()}return null}function ee(e,t,n,i,s){if(!t)return n.errors.push({message:"useImperativeHandle() can only be used in component with ref parameter",node:e.node,severity:"error"}),null;var o=e.get("arguments");if(o.length<2)return n.errors.push({message:"useImperativeHandle() requires at least 2 arguments, received ".concat(o.length),node:e.node,severity:"error"}),null;var a=o[0];if(!a.isIdentifier()||a.scope.getBindingIdentifier(a.node.name)!==t.node)return n.errors.push({message:"useImperativeHandle() first argument must be the ref parameter",node:a.node,severity:"error"}),null;var l=o[1];if(!l.isArrowFunctionExpression())return n.errors.push({message:"useImperativeHandle() second argument must be an arrow function expression, received ".concat(l.type),node:l.node,severity:"error"}),null;var c=l.get("body");if(!c.isObjectExpression())return n.errors.push({message:"useImperativeHandle() arrow function body must be an object expression, received ".concat(c.type),node:c.node,severity:"error"}),null;var u,p,f=[],d={},m=(0,r.A)(c.get("properties"));try{for(m.s();!(u=m.n()).done;){var g=u.value,y=g.get("key");if(y.isIdentifier()){var v=void 0;if(g.isObjectProperty()){if(g.node.computed||g.node.shorthand){n.errors.push({message:"useImperativeHandle() object properties cannot be computed or shorthand",node:g.node,severity:"error"});continue}var b=g.get("value");if(!(p=b).isFunctionExpression()&&!p.isArrowFunctionExpression()){n.errors.push({message:"useImperativeHandle() object properties must be functions, received ".concat(b.type),node:g.node,severity:"error"});continue}if(!h(b.node,n))continue;var x=b.get("body");if(!x.isBlockStatement()){n.errors.push({message:"useImperativeHandle() object property functions must have a block statement body, received ".concat(x.type),node:x.node,severity:"error"});continue}v=x}else{if(!g.isObjectMethod()){n.errors.push({message:"useImperativeHandle() object properties must be methods or properties, received ".concat(g.type),node:g.node,severity:"error"});continue}if(g.node.computed||"method"!==g.node.kind||g.node.generator||g.node.async){n.errors.push({message:"useImperativeHandle() object methods must be non-computed non-generator non-async methods, received kind=".concat(g.node.kind,", computed=").concat(g.node.computed,", generator=").concat(g.node.generator,", async=").concat(g.node.async),node:g.node,severity:"error"});continue}v=g.get("body")}var S=N(v,n,i,s);if(S&&(!Array.isArray(S)||S.length>0)){var C="imperative-handle-ref-".concat(y.node.name);d[y.node.name]={ref:C,refMethod:"trigger"},f.push({name:"eo-event-agent",portal:!0,properties:{},ref:C,events:{trigger:S}})}}else n.errors.push({message:"useImperativeHandle() object property key must be an identifier, received ".concat(y.type),node:y.node,severity:"error"})}}catch(e){m.e(e)}finally{m.f()}return 0===f.length?null:{components:f,methods:d}}function te(e,t,n,s,o){if(!h(e.node,t))return null;var a,c,u=new Map,p={bindingMap:u,type:s,id:e.node.id},f=(0,l.A)((0,l.A)({},o),{},{component:p}),g=e.get("params");if("template"===s){if(g.length>2)return t.errors.push({message:"Component function can only have no more than 2 parameters, received ".concat(g.length),node:e.node,severity:"error"}),null;if(g.length>0){var y=g[0];if(!y.isObjectPattern())return t.errors.push({message:"Component function first parameter must be an object pattern, received ".concat(y.type),node:y.node,severity:"error"}),null;var v,b=(0,r.A)(y.get("properties"));try{for(b.s();!(v=b.n()).done;){var x=v.value;if(x.isRestElement())return t.errors.push({message:"Component function parameter rest element is not allowed",node:x.node,severity:"error"}),null;var S=x.node;if(S.computed||!S.shorthand)return t.errors.push({message:"Component function parameter properties must be shorthand and not computed",node:x.node,severity:"error"}),null;var C=x.get("key"),E=x.get("value");if(!C.isIdentifier())return t.errors.push({message:"Component function parameter property key must be an identifier, received ".concat(C.type),node:C.node,severity:"error"}),null;var k=C.node.name;if(/^on[A-Z]/.test(k)){if(!E.isIdentifier())return t.errors.push({message:'Event handler parameter "'.concat(k,'" must be an identifier, received ').concat(E.type),node:E.node,severity:"error"}),null;u.set(E.node,{id:E.node,kind:"eventHandler"})}else{var w=void 0,T=void 0;if(E.isAssignmentPattern()){var _=E.get("left");_.isIdentifier()&&(w=_.node,T=M(E.get("right"),t,n,f))}else E.isIdentifier()&&(w=E.node);if(!w){t.errors.push({message:"Component function parameter property value must be an identifier or assignment pattern, received ".concat(E.type),node:E.node,severity:"error"});continue}var P={id:w,kind:"param",initialValue:T};u.set(w,P)}}}catch(e){b.e(e)}finally{b.f()}}if(g.length>1){var A=g[1];if(!A.isIdentifier())return t.errors.push({message:"Component function second parameter must be an identifier for ref, received ".concat(A.type),node:A.node,severity:"error"}),null;a=A}}else if(g.length>0)return t.errors.push({message:"Page function cannot have parameters, received ".concat(g.length),node:g[0].node,severity:"error"}),null;var I,B=p,F=e.get("body").get("body"),L=(0,r.A)(F);try{for(L.s();!(I=L.n()).done;){var D=I.value;if(D.isVariableDeclaration()){if("const"!==D.node.kind){t.errors.push({message:'Only "const" variable declaration is allowed, received "'.concat(D.node.kind,'"'),node:D.node,severity:"error"});continue}var N,R=(0,r.A)(D.get("declarations"));try{for(R.s();!(N=R.n()).done;){var j=N.value,W=j.get("init");if(W.isCallExpression()){var U=W.get("callee");if(U.isIdentifier()){var V=W.get("arguments");if(d(U,"useState")){var H=j.get("id");if(!H.isArrayPattern())continue;var q=H.get("elements");if(2!==q.length){t.errors.push({message:"useState() destructuring must have exactly two elements, received ".concat(q.length),node:H.node,severity:"error"});continue}var G=q[0],K=q[1];if(!G.isIdentifier()||!K.isIdentifier()){t.errors.push({message:"useState() destructuring must have identifiers as elements, received ".concat(q.map((function(e){return e.type})).join(", ")),node:H.node,severity:"error"});continue}var $={id:G.node,kind:"state"};u.set(G.node,$),u.set(K.node,{id:G.node,kind:"setState"}),V.length>0&&($.initialValue=M(V[0],t,n,f)),V.length>1&&t.errors.push({message:"useState() only accepts at most one argument, received ".concat(V.length),node:V[1].node,severity:"warning"});continue}if(d(U,"useResource")){var J=z(j,V,t,n,f);if(J){var X,Q=(0,r.A)(J);try{for(Q.s();!(X=Q.n()).done;){var te=X.value;u.set(te.id,te)}}catch(e){Q.e(e)}finally{Q.f()}}continue}if(d(U,"useRef")){var ie=j.get("id");if(!ie.isIdentifier()){t.errors.push({message:"useRef() must be assigned to an identifier, received ".concat(ie.type),node:ie.node,severity:"error"});continue}V.length>1&&t.errors.push({message:"useRef() only accepts at most one argument, received ".concat(V.length),node:V[1].node,severity:"warning"});var se=V[0];se&&!se.isNullLiteral()&&t.errors.push({message:"useRef() first argument must be null, received ".concat(se.type),node:se.node,severity:"warning"}),u.set(ie.node,{id:ie.node,kind:"ref"});continue}var oe=Z(j,U,V,t);if(!1===oe)continue;if(oe){u.set(oe[0],oe[1]);continue}if(d(U,"useContext")){var ae=Y(j,V,t,n,f);if(ae){var le,ce=(0,r.A)(ae);try{for(ce.s();!(le=ce.n()).done;){var ue=le.value;u.set(ue.id,ue)}}catch(e){ce.e(e)}finally{ce.f()}}continue}}}var pe=j.get("id");if(pe.isIdentifier()){var fe={id:pe.node,kind:"constant"};u.set(pe.node,fe),W.node&&(fe.initialValue=M(W,t,n,f))}else t.errors.push({message:"Expect an identifier as the variable name, received ".concat(pe.type),node:pe.node,severity:"error"})}}catch(e){R.e(e)}finally{R.f()}}else{if(D.isReturnStatement()){var he,de,me,ge=ne(D,t,n,f);ge&&(null!==(de=(he=B).children)&&void 0!==de||(he.children=[]),(me=B.children).push.apply(me,(0,i.A)(c?ge.map((function(e){return(0,l.A)((0,l.A)({},e),{},{slot:c})})):ge)));break}if(D.isIfStatement()){var ye,ve,be=D.get("test");if(!m(be.node,t))return null;var xe=D.get("consequent"),Se=D.get("alternate"),Ce=re(xe,t,n,f),Ee=Se?re(Se,t,n,f):null;null!==(ve=(ye=B).children)&&void 0!==ve||(ye.children=[]);var ke={name:"If",properties:{dataSource:O(be,t,n,(0,l.A)((0,l.A)({},f),{},{modifier:"="}))},children:[].concat((0,i.A)(null!=Ce?Ce:[]),(0,i.A)((null!=Ee?Ee:[]).map((function(e){return(0,l.A)((0,l.A)({},e),{},{slot:"else"})})))),slot:c};if(B.children.push(ke),B=ke,Ce&&(c="else",Ee))break}else{if(D.isExpressionStatement()){var we=D.get("expression");if(we.isCallExpression()){var Te=we.get("callee");if(!Te.isIdentifier()){t.errors.push({message:"Unsupported call expression callee type: ".concat(Te.type),node:Te.node,severity:"error"});continue}if(d(Te,"useImperativeHandle")){var _e,Pe,Ae,Ie=ee(we,a,t,n,f);Ie&&(null!==(_e=p.children)&&void 0!==_e||(p.children=[]),(Pe=p.children).push.apply(Pe,(0,i.A)(Ie.components)),null!==(Ae=p.proxy)&&void 0!==Ae||(p.proxy={}),p.proxy.methods=Ie.methods)}continue}}D.isTSInterfaceDeclaration()||D.isTSTypeAliasDeclaration()||t.errors.push({message:"Unsupported top level statement type: ".concat(D.type),node:D.node,severity:"error"})}}}}catch(e){L.e(e)}finally{L.f()}return p}function ne(e,t,n,r){var i=e.get("argument");return i.node?G(i,t,n,r):(t.errors.push({message:"Return statement in component function must have an argument",node:e,severity:"error"}),null)}function re(e,t,n,i){if(e.isBlockStatement()){var s=e.get("body");if(0===s.length)return t.errors.push({message:"If statement block must contain a return statement",node:e.node,severity:"error"}),null;var o,a=null,l=(0,r.A)(s);try{for(l.s();!(o=l.n()).done;){var c=re(o.value,t,n,i);c&&(a=c)}}catch(e){l.e(e)}finally{l.f()}return a}return e.isReturnStatement()?ne(e,t,n,i):(t.errors.push({message:"Only return statement is allowed in if statement, but received: ".concat(e.type),node:e.node,severity:"error"}),null)}function ie(e,t,n,r){var i=A(e,t,n,r,!0);return i?{name:e.node.id.name,source:i,typescript:!0}:null}var se=a.default,oe=function(e){return e.TopLevelStatement="top level statement",e.NamedExportDeclaration="named export declaration",e.DefaultExportDeclaration="default export declaration",e}(oe||{});function ae(e,t){return"function"!==t.moduleType&&e.name[0]>="A"&&e.name[0]<="Z"}function le(e,t,n,i){var o,a=t.files.find((function(t){return t.filePath===e}));if(!a)throw new Error("File not found: ".concat(e));if(!t.modules.has(e)){t.modules.set(e,null);var c=e.endsWith(".ts")||e.endsWith(".tsx"),u=!c&&a.filePath.endsWith(".css");if(!n&&c)try{n=(0,s.parse)(a.content,{plugins:["jsx","typescript"],sourceType:"module",errorRecovery:!0})}catch(y){return void t.errors.push({message:"Failed to parse file (".concat(e,"): ").concat(y),node:null,severity:"fatal",filePath:e})}var p=!t.entry,f=p?"entry":u?"css":c?a.filePath.startsWith("/Pages/")?"page":a.filePath.startsWith("/Components/")?"template":a.filePath.startsWith("/Utils/")?"function":"unknown":"unknown",h={source:a.content,filePath:e,moduleType:f,defaultExport:null,namedExports:new Map,internals:[],errors:[],contracts:new Set,usedHelpers:new Set};if(null!==(o=n)&&void 0!==o&&null!==(o=o.errors)&&void 0!==o&&o.length){var m,g=(0,r.A)(n.errors);try{for(g.s();!(m=g.n()).done;){var y=m.value;h.errors.push({message:"".concat(y.code,": ").concat(y.reasonCode),node:null,severity:"error"})}}catch(e){g.e(e)}finally{g.f()}}p&&(t.entry=h),t.modules.set(e,h),n?function(e,t,n,i){var s=new Set,o=new Set,a=new Set,c={functionBindings:s,componentBindings:o,contextBindings:a,stateBindings:null==i?void 0:i.withContexts};se(n,{Program:function(n){var u,p=n.get("body"),f=[],h=[],m=null,g=null,y=[],v=function(n,r){if(n.isFunctionDeclaration()){var i=n.node.id;if(i&&(ae(i,e)?o.add(i):s.add(i)),r===oe.DefaultExportDeclaration)return void("app"===t.appType&&"entry"===e.moduleType?e.errors.push({message:"The entry module in an app cannot have a default export declaration.",node:n.node,severity:"error"}):m=n);if(!i)return void e.errors.push({message:"Function declaration must have a name",node:n.node,severity:"error"});f.push({func:n,exported:r===oe.NamedExportDeclaration})}else if(n.isVariableDeclaration()){if(r===oe.DefaultExportDeclaration)return void e.errors.push({message:"Default export declaration must be a function declaration.",node:n.node,severity:"error"});h.push({decl:n,exported:r===oe.NamedExportDeclaration})}else if(n.isExportDefaultDeclaration()){var a=n.get("declaration");v(a,oe.DefaultExportDeclaration)}else if(n.isExportNamedDeclaration()){var l=n.get("declaration");v(l,oe.NamedExportDeclaration)}else if(n.isImportDeclaration()){var c=n.node.source.value;(c.startsWith(".")||c.startsWith("/"))&&y.push(c)}else n.isTSInterfaceDeclaration||n.isTSTypeAliasDeclaration()||e.errors.push({message:"Unsupported ".concat(r," type: ").concat(n.type),node:n.node,severity:"error"})},b=(0,r.A)(p);try{for(b.s();!(u=b.n()).done;){var x=u.value;if("app"===t.appType&&e===t.entry&&x.isExpressionStatement()){var S=x.get("expression");if(S.isCallExpression()){var C=S.get("callee");if(C.isIdentifier()&&d(C,"render")){var k=S.get("arguments");if(1!==k.length){e.errors.push({message:"render() expects exactly one argument, received: ".concat(k.length),node:S.node,severity:"error"});continue}g=k[0];continue}}}v(x,oe.TopLevelStatement)}}catch(e){b.e(e)}finally{b.f()}for(var w=0,T=h;w<T.length;w++){var _=T[w],P=_.decl,A=_.exported;if("const"===P.node.kind){var I,M=(0,r.A)(P.get("declarations"));try{for(M.s();!(I=M.n()).done;){var O=I.value,B=O.get("init");if(B.isCallExpression()){var F=B.get("callee");if(F.isIdentifier())if(d(F,"createContext")){var L=O.get("id");if(L.isIdentifier()){var D={type:"context",context:L.node.name};a.add(L.node),A?e.namedExports.set(L.node.name,D):e.internals.push(D)}else e.errors.push({message:"Unsupported context identifier type: ".concat(L.type),node:L.node,severity:"error"})}else e.errors.push({message:"Global variables must be initialized with createContext, but got: ".concat(F.node.name),node:F.node,severity:"error"});else e.errors.push({message:"Unsupported variable initializer type: ".concat(F.type),node:F.node,severity:"error"})}else e.errors.push({message:"Global variables must be initialized with a call expression, but got: ".concat(B.type),node:B.node,severity:"error"})}}catch(e){M.e(e)}finally{M.f()}}else e.errors.push({message:"Global variables must be declared with const.",node:P.node,severity:"error"})}for(var N=0,R=y;N<R.length;N++)le(E(R[N],e.filePath,t.files),t,void 0,i);for(var j=0,W=f;j<W.length;j++){var U=W[j],V=U.func,H=U.exported,q=V.node.id;if(ae(q,e)){var $="app"===t.appType&&"entry"===e.moduleType?"page":"template",J=te(V,e,t,$,c);if(J){var X={type:$,component:J};H?e.namedExports.set(q.name,X):e.internals.push(X)}}else{var z=ie(V,e,t,c);if(z){var Y={type:"function",function:z};H?e.namedExports.set(q.name,Y):e.internals.push(Y)}}}if(m){var Q=m.node.id;if(Q?ae(Q,e):"function"!==e.moduleType){var Z="entry"===e.moduleType?"template"===t.appType?"template":"view":"page"===e.moduleType?"page":"template",ee=te(m,e,t,Z,c);ee&&(e.defaultExport=(0,l.A)({type:Z,component:ee},"view"===Z?{title:K(ee)}:{}))}else{var ne=ie(m,e,t,c);ne&&(e.defaultExport={type:"function",function:ne})}}if(g){var re=G(g,e,t,c);e.render={type:"render",children:re}}n.stop()}})}(h,t,n,i):u&&t.constants.set(e,a.content)}}function ce(e){var t,n=(0,r.A)(e.modules.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i){var s,o=(0,r.A)(i.errors);try{for(o.s();!(s=o.n()).done;){var a=s.value;e.errors.push((0,l.A)((0,l.A)({},a),{},{filePath:i.filePath}))}}catch(a){o.e(a)}finally{o.f()}}}}catch(a){n.e(a)}finally{n.f()}}function ue(e,t){var n,a,l={appType:"view",modules:new Map,files:[{filePath:"/View.tsx",content:e}].concat((0,i.A)(null!==(n=null==t?void 0:t.libs)&&void 0!==n?n:[])),constants:new Map,errors:[]};try{a=(0,s.parse)(e,{plugins:["jsx","typescript"],sourceType:"module",errorRecovery:!0})}catch(e){return l.errors.push({message:"Failed to parse TSX: ".concat(e),node:null,severity:"fatal",filePath:"/View.tsx"}),l}var c,u=(0,r.A)(a.program.body);try{for(u.s();!(c=u.n()).done;){var p=c.value;if(o.isExportDefaultDeclaration(p)){if(o.isFunctionDeclaration(p.declaration))return le("/View.tsx",l,a,t),ce(l),l;break}}}catch(e){u.e(e)}finally{u.f()}return function(e,t,n,i){var s,o=[];if(null!==(s=n.errors)&&void 0!==s&&s.length){var a,l=(0,r.A)(n.errors);try{for(l.s();!(a=l.n()).done;){var c=a.value;o.push({message:"".concat(c.code,": ").concat(c.reasonCode),node:null,severity:"error"})}}catch(e){l.e(e)}finally{l.f()}}var u=new Map,p={type:"view",bindingMap:u},f={component:p,stateBindings:null==i?void 0:i.withContexts},h={source:t.files.find((function(t){return t.filePath===e})).content,filePath:e,moduleType:"entry",defaultExport:{type:"view",component:p},internals:[],namedExports:new Map,errors:o,contracts:new Set,usedHelpers:new Set};$(n,{Program:function(e){var n,i=e.get("body"),s=!1,a=(0,r.A)(i);try{for(a.s();!(n=a.n()).done;){var l=n.value;if(l.isVariableDeclaration()){if(s){o.push({message:"Unexpected variable declaration after export",node:l.node,severity:"error"});continue}if("const"!==l.node.kind){o.push({message:'Only "const" variable declaration is allowed, received: '.concat(l.node.kind),node:l.node,severity:"error"});continue}var c,d=(0,r.A)(l.get("declarations"));try{for(d.s();!(c=d.n()).done;){var m=c.value,g=m.get("id");if(g.isIdentifier()){var y={id:g.node,kind:"constant"},v=m.get("init");v.node&&(y.initialValue=M(v,h,t,f)),u.set(g.node,y)}else o.push({message:"Unsupported variable declaration pattern, expected: Identifier, received: ".concat(g.type),node:g.node,severity:"error"})}}catch(e){d.e(e)}finally{d.f()}}else if(l.isExportDefaultDeclaration()){s=!0;var b=l.get("declaration");b.isJSXElement()?p.children=G(b,h,t,f):o.push({message:"Default export must be a JSX element, received: ".concat(b.type),node:l.node,severity:"error"});break}}}catch(e){a.e(e)}finally{a.f()}e.stop()}}),h.defaultExport.title=K(p),t.modules.set(e,h),t.entry=h}("/View.tsx",l,a,t),ce(l),l}},68418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,n){i(this.node,e,t,n)},t.addComments=function(e,t){s(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const r=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=Boolean(r.node),a=Boolean(i.node);s&&(n&&r.addComments("trailing",o(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",o(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))};var r=n(58135);const{addComment:i,addComments:s}=r;function o(e,t){if(null==t||!t.length)return e;const n=new Set(t);return e.filter((e=>!n.has(e)))}},72064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=s(e.ast);return t&&(e.placeholders.forEach((e=>{if(!hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}\n - { placeholderPattern: /^${t}$/ }`)}})),Object.keys(t).forEach((t=>{if(!e.placeholderNames.has(t))throw new Error(`Unknown substitution "${t}" given`)}))),e.placeholders.slice().reverse().forEach((e=>{try{var r;!function(e,t,n){e.isDuplicate&&(Array.isArray(n)?n=n.map((e=>s(e))):"object"==typeof n&&(n=s(n)));const{parent:r,key:h,index:d}=e.resolve(t);if("string"===e.type){if("string"==typeof n&&(n=p(n)),!n||!u(n))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===d?n?Array.isArray(n)?n=i(n):"string"==typeof n?n=a(l(n)):c(n)||(n=a(n)):n=o():n&&!Array.isArray(n)&&("string"==typeof n&&(n=l(n)),c(n)||(n=a(n)));else if("param"===e.type){if("string"==typeof n&&(n=l(n)),void 0===d)throw new Error("Assertion failure.")}else if("string"==typeof n&&(n=l(n)),Array.isArray(n))throw new Error("Cannot replace single expression with an array.");function m(e,t,n){const r=e[t];e[t]=n,"Identifier"!==r.type&&"Placeholder"!==r.type||(r.typeAnnotation&&(n.typeAnnotation=r.typeAnnotation),r.optional&&(n.optional=r.optional),r.decorators&&(n.decorators=r.decorators))}if(void 0===d)f(r,h,n),m(r,h,n);else{const t=r[h].slice();"statement"===e.type||"param"===e.type?null==n?t.splice(d,1):Array.isArray(n)?t.splice(d,1,...n):m(t,d,n):m(t,d,n),f(r,h,t),r[h]=t}}(e,n,null!=(r=t&&t[e.name])?r:null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}})),n};var r=n(58135);const{blockStatement:i,cloneNode:s,emptyStatement:o,expressionStatement:a,identifier:l,isStatement:c,isStringLiteral:u,stringLiteral:p,validate:f}=r},74145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){return y(this,e,new Map)},t._resolve=v,t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?o(e):!!this.isBlockStatement()&&a(e))},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.isCompletionRecord=function(e){let t=this,n=!0;do{const{type:r,container:i}=t;if(!n&&(t.isFunction()||"StaticBlock"===r))return!!e;if(n=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((e=>e.isConstantExpression())));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&(1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral())},t.isInStrictMode=function(){return!!(this.isProgram()?this:this.parentPath).find((e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0}))},t.isNodeType=function(e){return p(this.type,e)},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!o(this.container)&&i.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.matchesPattern=function(e,t){return f(this.node,e,t)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?u(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!r.isImportDefaultSpecifier()||"default"!==t)||(!(!r.isImportNamespaceSpecifier()||"*"!==t)||!(!r.isImportSpecifier()||!l(r.node.imported,{name:t}))))))},t.resolve=function(e,t){return v.call(this,e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var r=n(58135);const{STATEMENT_OR_BLOCK_KEYS:i,VISITOR_KEYS:s,isBlockStatement:o,isExpression:a,isIdentifier:l,isLiteral:c,isStringLiteral:u,isType:p,matchesPattern:f}=r;function h(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function d(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function m(e,t){for(let n=0;n<t;n++){const t=e[n];if(d(t.parent.type,t.parentKey))return!0}return!1}t.has=function(e){var t;const n=null==(t=this.node)?void 0:t[e];return n&&Array.isArray(n)?!!n.length:!!n},t.is=t.has,t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t};const g=Symbol();function y(e,t,n){const r={this:h(e),target:h(t)};if(r.target.node!==r.this.node)return function(e,t,n){let r,i=n.get(e.node);if(i){if(r=i.get(t.node))return r===g?"unknown":r}else n.set(e.node,i=new Map);i.set(t.node,g);const s=function(e,t,n){if(!t.isFunctionDeclaration())return"before"===y(e,t,n)?"before":"unknown";if(t.parentPath.isExportDeclaration())return"unknown";const r=t.scope.getBinding(t.node.id.name);if(!r.references)return"before";const i=r.referencePaths;let s;for(const r of i){if(r.find((e=>e.node===t.node)))continue;if("callee"!==r.key||!r.parentPath.isCallExpression())return"unknown";const i=y(e,r,n);if(s&&s!==i)return"unknown";s=i}return s}(e,t,n);return i.set(t.node,s),s}(e,r.target,n);const i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return"after";if(i.this.includes(t))return"before";let o;const a={target:0,this:0};for(;!o&&a.this<i.this.length;){const e=i.this[a.this];a.target=i.target.indexOf(e),a.target>=0?o=e:a.this++}if(!o)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(m(i.this,a.this-1)||m(i.target,a.target-1))return"unknown";const l={this:i.this[a.this-1],target:i.target[a.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";const c=s[o.type],u=c.indexOf(l.this.parentKey);return c.indexOf(l.target.parentKey)>u?"before":"after"}function v(e,t){var n;if(null==(n=t)||!n.includes(this))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){const r=n.path.resolve(e,t);if(this.find((e=>e.node===r.node)))return;return r}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!c(n))return;const r=n.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression()){const n=i.get("properties");for(const i of n){if(!i.isProperty())continue;const n=i.get("key");let s=i.isnt("computed")&&n.isIdentifier({name:r});if(s=s||n.isLiteral({value:r}),s)return i.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+r)){const n=i.get("elements")[r];if(n)return n.resolve(e,t)}}}}},74564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,t):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=i.TokenContext.arrowBody,this.print(e.body)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},t._functionHead=function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){const t=e.kind,n=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(n),this.tokenChar(93)):this.print(n),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},t._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t._parameters=function(e,t){const n=this.enterDelimited(),r=this.shouldPrintTrailingComma(t),i=e.length;for(let t=0;t<i;t++)this._param(e[t]),(r||t<i-1)&&(this.token(",",null,t),this.space());this.token(t),n()},t._params=function(e,t,n){this.print(e.typeParameters);const r=o.call(this,t,n);r&&this.sourceIdentifierName(r.name,r.pos),this.tokenChar(40),this._parameters(e.params,")");const i="ArrowFunctionExpression"===e.type;this.print(e.returnType,i),this._noLineTerminator=i},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},t._shouldPrintArrowParamsParens=function(e){var t,n;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const r=e.params[0];if(!s(r)||r.typeAnnotation||r.optional||null!=(t=r.leadingComments)&&t.length||null!=(n=r.trailingComments)&&n.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const t=this.tokenMap.findMatching(e,"=>");return null==(null==t?void 0:t.loc)||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var r=n(58135),i=n(21956);const{isIdentifier:s}=r;function o(e,t){let n,r=e;if(!r&&t){const e=t.type;"VariableDeclarator"===e?r=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?r=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(r=t.key)}if(r){var i,s;if("Identifier"===r.type)n={pos:null==(i=r.loc)?void 0:i.start,name:(null==(s=r.loc)?void 0:s.identifierName)||r.name};else if("PrivateName"===r.type){var o;n={pos:null==(o=r.loc)?void 0:o.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var a;n={pos:null==(a=r.loc)?void 0:a.start,name:r.value}}return n}}},75267:function(e,t,n){!function(e,t,n,r){"use strict";class i{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new t.SetArray}}function s(e){const{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:s}=e;return function(e){const{length:t}=e;let n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:s.array}}function o(e,n,r,i,s,o,l,c,u){const{_mappings:p,_sources:f,_sourcesContent:h,_names:d}=n,m=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(p,r),g=function(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][0]);n=r--);return n}(m,i);if(!s){if(e&&function(e,t){return 0===t||1===e[t-1].length}(m,g))return;return a(m,g,[i])}const y=t.put(f,s),v=c?t.put(d,c):-1;if(y===h.length&&(h[y]=null!=u?u:null),!e||!function(e,t,n,r,i,s){if(0===t)return!1;const o=e[t-1];return 1!==o.length&&n===o[1]&&r===o[2]&&i===o[3]&&s===(5===o.length?o[4]:-1)}(m,g,y,o,l,v))return a(m,g,c?[i,y,o,l,v]:[i,y,o,l])}function a(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function l(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}function c(e,t,n){const{generated:r,source:i,original:s,name:a,content:l}=n;return i?o(e,t,r.line-1,r.column,i,s.line-1,s.column,a,l):o(e,t,r.line-1,r.column,null,null,null,null,null)}e.GenMapping=i,e.addMapping=function(e,t){return c(!1,e,t)},e.addSegment=function(e,t,n,r,i,s,a,l){return o(!1,e,t,n,r,i,s,a,l)},e.allMappings=function(e){const t=[],{_mappings:n,_sources:r,_names:i}=e;for(let e=0;e<n.length;e++){const s=n[e];for(let n=0;n<s.length;n++){const o=s[n],a={line:e+1,column:o[0]};let l,c,u;1!==o.length&&(l=r.array[o[1]],c={line:o[2]+1,column:o[3]},5===o.length&&(u=i.array[o[4]])),t.push({generated:a,source:l,original:c,name:u})}}return t},e.fromMap=function(e){const t=new r.TraceMap(e),n=new i({file:t.file,sourceRoot:t.sourceRoot});return l(n._names,t.names),l(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),n._mappings=r.decodedMappings(t),t.ignoreList&&l(n._ignoreList,t.ignoreList),n},e.maybeAddMapping=(e,t)=>c(!0,e,t),e.maybeAddSegment=(e,t,n,r,i,s,a,l)=>o(!0,e,t,n,r,i,s,a,l),e.setIgnore=function(e,n,r=!0){const{_sources:i,_sourcesContent:s,_ignoreList:o}=e,a=t.put(i,n);a===s.length&&(s[a]=null),r?t.put(o,a):t.remove(o,a)},e.setSourceContent=function(e,n,r){const{_sources:i,_sourcesContent:s}=e;s[t.put(i,n)]=r},e.toDecodedMap=s,e.toEncodedMap=function(e){const t=s(e);return Object.assign(Object.assign({},t),{mappings:n.encode(t.mappings)})},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(26801),n(14017),n(41969))},80004:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0,n(44537);var r=n(95957);t.visitors=r;var i=n(58135),s=n(56266),o=n(51597),a=n(32670),l=n(54683),c=n(9783);const{VISITOR_KEYS:u,removeProperties:p,traverseFast:f}=i;function h(e,t={},n,i,s,a){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&a)throw new Error("visitSelf can only be used when providing a NodePath.");u[e.type]&&(r.explode(t),(0,o.traverseNode)(e,t,n,i,s,null,a))}}t.default=h,h.visitors=r,h.verify=r.verify,h.explode=r.explode,h.cheap=function(e,t){f(e,t)},h.node=function(e,t,n,r,i,s){(0,o.traverseNode)(e,t,n,r,i,s)},h.clearNode=function(e,t){p(e,t)},h.removeProperties=function(e,t){return f(e,h.clearNode,t),e},h.hasType=function(e,t,n){return(null==n||!n.includes(e.type))&&(e.type===t||f(e,(function(e){return null!=n&&n.includes(e.type)?f.skip:e.type===t?f.stop:void 0})))},h.cache=s},80366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=c(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value};const r=["Number","String","Math"],i=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],s=["random"];function o(e){return r.includes(e)}function a(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}const l=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function c(e,t){const{node:r}=e,{seen:p}=t;if(p.has(r)){const n=p.get(r);return n.resolved?n.value:void a(e,t)}{const f={resolved:!1};p.set(r,f);const h=function(e,t){if(t.confident){if(e.isSequenceExpression()){const n=e.get("expressions");return c(n[n.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return u(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const n=e.get("tag.object"),{node:{name:r}}=n,i=e.get("tag.property");if(n.isIdentifier()&&"String"===r&&!e.scope.getBinding(r)&&i.isIdentifier()&&"raw"===i.node.name)return u(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const n=c(e.get("test"),t);if(!t.confident)return;return c(n?e.get("consequent"):e.get("alternate"),t)}if(e.isExpressionWrapper())return c(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const n=e.get("property"),r=e.get("object");if(r.isLiteral()){const i=r.node.value,s=typeof i;let o=null;if(e.node.computed){if(o=c(n,t),!t.confident)return}else n.isIdentifier()&&(o=n.node.name);if(!("number"!==s&&"string"!==s||null==o||"number"!=typeof o&&"string"!=typeof o))return i[o]}}if(e.isReferencedIdentifier()){const n=e.scope.getBinding(e.node.name);if(n){if(n.constantViolations.length>0||e.node.start<n.path.node.end)return void a(n.path,t);const i=n.path.scope;if("var"===n.kind&&i!==n.scope){let s=!i.path.parentPath.isBlockStatement();for(let o=i.parent;o;o=o.parent){var r;if(o===e.scope){if(s)return void a(n.path,t);break}null!=(r=o.path.parentPath)&&r.isBlockStatement()&&(s=!0)}}if(n.hasValue)return n.value}const i=e.node.name;if(l.has(i))return n?void a(n.path,t):l.get(i);const s=e.resolve();if(s===e)return void a(e,t);const o=c(s,t);return"object"==typeof o&&null!==o&&n.references>1?void a(s,t):o}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;const n=e.get("argument");if("typeof"===e.node.operator&&(n.isFunction()||n.isClass()))return"function";const r=c(n,t);if(!t.confident)return;switch(e.node.operator){case"!":return!r;case"+":return+r;case"-":return-r;case"~":return~r;case"typeof":return typeof r}}if(e.isArrayExpression()){const n=[],r=e.get("elements");for(const e of r){const r=e.evaluate();if(!r.confident)return void a(r.deopt,t);n.push(r.value)}return n}if(e.isObjectExpression()){const n={},r=e.get("properties");for(const e of r){if(e.isObjectMethod()||e.isSpreadElement())return void a(e,t);const r=e.get("key");let i;if(e.node.computed){if(i=r.evaluate(),!i.confident)return void a(i.deopt,t);i=i.value}else i=r.isIdentifier()?r.node.name:r.node.value;let s=e.get("value").evaluate();if(!s.confident)return void a(s.deopt,t);s=s.value,n[i]=s}return n}if(e.isLogicalExpression()){const n=t.confident,r=c(e.get("left"),t),i=t.confident;t.confident=n;const s=c(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":if(t.confident=i&&(!!r||o),!t.confident)return;return r||s;case"&&":if(t.confident=i&&(!r||o),!t.confident)return;return r&&s;case"??":if(t.confident=i&&(null!=r||o),!t.confident)return;return null!=r?r:s}}if(e.isBinaryExpression()){const n=c(e.get("left"),t);if(!t.confident)return;const r=c(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return n-r;case"+":return n+r;case"/":return n/r;case"*":return n*r;case"%":return n%r;case"**":return Math.pow(n,r);case"<":return n<r;case">":return n>r;case"<=":return n<=r;case">=":return n>=r;case"==":return n==r;case"!=":return n!=r;case"===":return n===r;case"!==":return n!==r;case"|":return n|r;case"&":return n&r;case"^":return n^r;case"<<":return n<<r;case">>":return n>>r;case">>>":return n>>>r}}if(e.isCallExpression()){const r=e.get("callee");let a,l;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(o(r.node.name)||function(e){return i.includes(e)}(r.node.name))&&(l=n.g[r.node.name]),r.isMemberExpression()){const e=r.get("object"),t=r.get("property");if(e.isIdentifier()&&t.isIdentifier()&&o(e.node.name)&&!function(e){return s.includes(e)}(t.node.name)){a=n.g[e.node.name];const r=t.node.name;hasOwnProperty.call(a,r)&&(l=a[r])}if(e.isLiteral()&&t.isIdentifier()){const n=typeof e.node.value;"string"!==n&&"number"!==n||(a=e.node.value,l=a[t.node.name])}}if(l){const n=e.get("arguments").map((e=>c(e,t)));if(!t.confident)return;return l.apply(a,n)}}a(e,t)}}(e,t);return t.confident&&(f.resolved=!0,f.value=h),h}}function u(e,t,n,r=!1){let i="",s=0;const o=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const e of t){if(!n.confident)break;i+=r?e.value.raw:e.value.cooked;const t=o[s++];t&&(i+=String(c(t,n)))}if(n.confident)return i}},82475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(96405),i=n(21956),s=i,o=n(58135),a=n(99078),l=n(62798),c=n(58121);const{isExpression:u,isFunction:p,isStatement:f,isClassBody:h,isTSInterfaceBody:d,isTSEnumMember:m}=o,g=/e/i,y=/\.0+$/,v=/[\n\r\u2028\u2029]/,b=/[\n\r\u2028\u2029]|\*\//;function x(e){return"CommentLine"===e.type||v.test(e.value)}const{needsParens:S}=s;class C{constructor(e,t,n,s){this.tokenContext=i.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=n,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=null==t?void 0:t._inputMap,this._buf=new r.default(t,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=i.TokenContext.forInitHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=i.TokenContext.forOfHead,null):(this.tokenContext|=i.TokenContext.forInHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,t=this._noLineTerminatorAfterNode;return e&i.TokenContext.forInOrInitHeadAccumulate||null!==t?(this._noLineTerminatorAfterNode=null,this.tokenContext=i.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=t,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new a.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){const{format:t}=this;if(!t.compact&&!t.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,t=!1){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!g.test(e)&&!y.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1,n=0){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,n),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,n);const r=this.getLastChar(),s=e.charCodeAt(0);(33===r&&("--"===e||61===s)||43===s&&43===r||45===s&&45===r||46===s&&this._endsWithInteger)&&this._space(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);const n=this.getLastChar();(43===e&&43===n||45===e&&45===n||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,n){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,n))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=this._buf._sourcePosition;n.identifierNamePos=t,n.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const n=this.tokenMap.findMatching(this._currentNode,e,t);n&&this._catchUpTo(n.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){const{format:n}=this;if(!n.preserveFormat)return void(n.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line));const r=null==t?void 0:t[e];null!=r&&this._catchUpTo(r)}_catchUpTo({line:e,column:t,index:n}){const r=e-this._buf.getCurrentLine();if(r>0&&this._noLineTerminator)return;for(let e=0;e<r;e++)this._newline();const i=r>0?t:t-this._buf.getCurrentColumn();if(i>0){const e=this._originalCode?this._originalCode.slice(n-i,n).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t,n){var r,o,a;if(!e)return;this._endsWithInnerRaw=!1;const l=e.type,c=this.format,p=c.concise;e._compact&&(c.concise=!0);const f=this[l];if(void 0===f)throw new ReferenceError(`unknown node of type ${JSON.stringify(l)} with constructor ${JSON.stringify(e.constructor.name)}`);const h=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const d=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!d);const m=null==(r=e.extra)?void 0:r.parenthesized;let g=m&&c.preserveFormat||m&&c.retainFunctionParens&&"FunctionExpression"===l||S(e,h,this.tokenContext,c.preserveFormat?this._boundGetRawIdentifier:void 0);if(!g&&m&&null!=(o=e.leadingComments)&&o.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==h?void 0:h.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(h.callee!==e)break;default:g=!0}let y,v,b=!1;var C;!g&&this._noLineTerminator&&(null!=(a=e.leadingComments)&&a.some(x)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(g=!0,b=!0),g||(t||(t=h&&this._noLineTerminatorAfterNode===h&&s.isLastChild(h,e)),t&&(null!=(C=e.trailingComments)&&C.some(x)?u(e)&&(g=!0):(y=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),g&&(this.tokenChar(40),b&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&i.TokenContext.forInOrInitHeadAccumulate&&(v=this.tokenContext,this.tokenContext=i.TokenContext.normal),y=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,h);const E="Program"===l||"File"===l?null:e.loc;this.exactSource(E,f.bind(this,e,h)),g?(this._printTrailingComments(e,h),b&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,v&&(this.tokenContext=v)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,h)):this._printTrailingComments(e,h,n),this._currentNode=h,c.concise=p,this._insideAux=d,void 0!==y&&(this._noLineTerminatorAfterNode=y),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n,r,i,s,o,a){if(null==e||!e.length)return;if(null==n&&this.format.retainLines){var l;const t=null==(l=e[0].loc)?void 0:l.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(n=!0)}n&&this.indent();const c={addNewlines:s,nextNodeStartLine:0},u=null==r?void 0:r.bind(this),p=e.length;for(let n=0;n<p;n++){const r=e[n];var f;if(r&&(t&&this._printNewline(0===n,c),this.print(r,void 0,a||0),null==o||o(r,n),null!=u&&(n<p-1?u(n,!1):i&&u(n,!0)),t))if(null!=(f=r.trailingComments)&&f.length||(this._lastCommentLine=0),n+1===p)this.newline(1);else{var h;const t=e[n+1];c.nextNodeStartLine=(null==(h=t.loc)?void 0:h.start.line)||0,this._printNewline(!0,c)}}n&&this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i}=e;null!=r&&r.length&&this._printComments(2,r,e,t,n),null!=i&&i.length&&this._printComments(2,i,e,t,n)}_printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length&&this._printComments(0,n,e,t)}_maybePrintInnerComments(e,t){var n;this._endsWithInnerRaw&&this.printInnerComments(null==(n=this.tokenMap)?void 0:n.findMatching(this._currentNode,e,t)),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const t=this._currentNode,n=t.innerComments;if(null==n||!n.length)return;const r=this.endsWith(32),i=this._indentInnerComments,s=this._printedComments.size;i&&this.indent(),this._printComments(1,n,t,void 0,void 0,e),r&&s!==this._printedComments.size&&this.space(),i&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,n,r){this.printJoin(e,!0,null!=t&&t,void 0,void 0,r,void 0,n)}printList(e,t,n,r,i,s){this.printJoin(e,n,r,null!=i?i:E,t,void 0,s)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,(t=>this.tokenMap.matchesOriginal(t,e)));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)return;if(n.concise)return void this.space();if(!e)return;const r=t.nextNodeStartLine,i=this._lastCommentLine;if(r>0&&i>0){const e=r-i;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&b.test(e.value))return 2;if(t&&this.tokenMap){const n=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(n&&n.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e.type,i=r&&1!==t&&!this._noLineTerminator;i&&this._buf.hasContent()&&2!==t&&this.newline(1);const s=this.getLastChar();let o;if(91!==s&&123!==s&&40!==s&&this.space(),r){if(o=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var a;const t=null==(a=e.loc)?void 0:a.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");o=o.replace(e,"\n")}if(this.format.concise)o=o.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),o=o.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else o=n?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:n}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(o,r),this._printSemicolonBeforeNextNode=n,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(o,r);r||n||this.newline(1,!0),i&&3!==t&&this.newline(1)}_printComments(e,t,n,r,i=0,s){const o=n.loc,a=t.length;let l=!!o;const c=l?o.start.line:0,u=l?o.end.line:0;let g=0,y=0;const b=this._noLineTerminator?function(){}:this.newline.bind(this);for(let o=0;o<a;o++){const x=t[o],S=this._shouldPrintComment(x,s);if(2===S){l=!1;break}if(l&&x.loc&&1===S){const t=x.loc.start.line,n=x.loc.end.line;if(0===e){let e=0;0===o?!this._buf.hasContent()||"CommentLine"!==x.type&&t===n||(e=y=1):e=t-g,g=n,b(e),this._printComment(x,1),o+1===a&&(b(Math.max(c-g,y)),g=c)}else if(1===e){const e=t-(0===o?c:g);g=n,b(e),this._printComment(x,1),o+1===a&&(b(Math.min(1,u-g)),g=u)}else{const e=t-(0===o?u-i:g);g=n,b(e),this._printComment(x,1)}}else{if(l=!1,1!==S)continue;if(1===a){const t=x.loc?x.loc.start.line===x.loc.end.line:!v.test(x.value),i=t&&!f(n)&&!h(r)&&!d(r)&&!m(n);0===e?this._printComment(x,i&&"ObjectExpression"!==n.type||t&&p(r,{body:n})?1:0):i&&2===e?this._printComment(x,1):this._printComment(x,0)}else 1!==e||"ObjectExpression"===n.type&&n.properties.length>1||"ClassBody"===n.type||"TSInterfaceBody"===n.type?this._printComment(x,0):this._printComment(x,0===o?2:o===a-1?3:0)}}2===e&&l&&g&&(this._lastCommentLine=g)}}function E(e,t){this.token(",",!1,e),t||this.space()}Object.assign(C.prototype,l),(0,c.addDeprecatedGenerators)(C),t.default=C},82738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(58135),i=r;const{react:s}=r,{cloneNode:o,jsxExpressionContainer:a,variableDeclaration:l,variableDeclarator:c}=i,u={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&s.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let n=e.scope;do{if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const n=e.scope.getBinding(e.node.name);if(n){for(const r of n.constantViolations)if(r.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};t.default=class{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const n of Object.keys(this.bindings)){if(!t.hasOwnBinding(n))continue;const r=this.bindings[n];if("param"!==r.kind&&"params"!==r.path.parentKey&&this.getAttachmentParentForPath(r.path).key>=e.key){this.attachAfter=!0,e=r.path;for(const t of r.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1}run(){if(this.path.traverse(u,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const n=c(t,this.path.node),r=this.attachAfter?"insertAfter":"insertBefore",[i]=e[r]([e.isVariableDeclarator()?n:l("var",[n])]),s=this.path.parentPath;return s.isJSXElement()&&this.path.container===s.node.children&&(t=a(t)),this.path.replaceWith(o(t)),e.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}},83810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=T,t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation(),n=e.getTypeAnnotation();return!(o(t)||!u(t))&&n.type===t.type},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(o(t))return!0;if(S(t)){for(const n of t.types)if(o(n)||_(e,n,!0))return!0;return!1}return _(e,t,!0)},t.getTypeAnnotation=function(){let e=this.getData("typeAnnotation");return null!=e||(e=T.call(this)||s(),(x(e)||y(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},t.isBaseType=function(e,t){return _(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){const t=this.getTypeAnnotation();return!("Array"!==e||!(g(t)||a(t)||b(t)))||(p(t)&&f(t.id,{name:e})||v(t)&&f(t.typeName,{name:e}))};var r=n(19724),i=n(58135);const{anyTypeAnnotation:s,isAnyTypeAnnotation:o,isArrayTypeAnnotation:a,isBooleanTypeAnnotation:l,isEmptyTypeAnnotation:c,isFlowBaseAnnotation:u,isGenericTypeAnnotation:p,isIdentifier:f,isMixedTypeAnnotation:h,isNumberTypeAnnotation:d,isStringTypeAnnotation:m,isTSArrayType:g,isTSTypeAnnotation:y,isTSTypeReference:v,isTupleTypeAnnotation:b,isTypeAnnotation:x,isUnionTypeAnnotation:S,isVoidTypeAnnotation:C,stringTypeAnnotation:E,voidTypeAnnotation:k}=i,w=new WeakSet;function T(){const e=this.node;if(e){if(e.typeAnnotation)return e.typeAnnotation;if(!w.has(e)){w.add(e);try{var t;let n=r[e.type];if(n)return n.call(this,e);if(n=r[this.parentPath.type],null!=(t=n)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{w.delete(e)}}}else if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?E():"left"===e.key&&t.isForOfStatement()?s():k()}}function _(e,t,n){if("string"===e)return m(t);if("number"===e)return d(t);if("boolean"===e)return l(t);if("any"===e)return o(t);if("mixed"===e)return h(t);if("empty"===e)return c(t);if("void"===e)return C(t);if(n)return!1;throw new Error(`Unknown base type ${e}`)}},90157:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let n,r,i=1/0;const s=e.map((e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<i&&(i=t.length),t})),o=s[0];e:for(let e=0;e<i;e++){const t=o[e];for(const n of s)if(n[e]!==t)break e;n=e,r=t}if(r)return t?t(r,n,s):r;throw new Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,n){let r;const s=i[e.type];for(const e of n){const n=e[t+1];r?(n.listKey&&r.listKey===n.listKey&&n.key<r.key||s.indexOf(r.parentKey)>s.indexOf(n.parentKey))&&(r=n):r=n}return r}))},t.getFunctionParent=function(){return this.findParent((e=>e.isFunction()))},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.inType=function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent((t=>t===e))};var r=n(58135);const{VISITOR_KEYS:i}=r},93464:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),i.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),f.call(this,e)},t.DeclareFunction=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},t.DeclareOpaqueType=function(e,t){a(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;c(this,"boolean",t),u(this,e)},t.EnumBooleanMember=function(e){p(this,e)},t.EnumDeclaration=function(e){const{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t),this.print(n)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;c(this,"number",t),u(this,e)},t.EnumNumberMember=function(e){p(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;c(this,"string",t),u(this,e)},t.EnumStringMember=function(e){p(this,e)},t.EnumSymbolBody=function(e){c(this,"symbol",!0),u(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);const n=null==t?void 0:t.type;null!=n&&("ObjectTypeCallProperty"===n||"ObjectTypeInternalSlot"===n||"DeclareFunction"===n||"ObjectTypeProperty"===n&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},t.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},t.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,h)},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return o.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,(function(e){if(e&&!t[0])return 1}),(()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())})),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return o.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},t.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=s.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,d)},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,n,r;(this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type)&&(null!=(n=e.mixins)&&n.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(r=e.implements)&&r.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)));this.space(),this.print(e.body)},t._variance=function(e){var t;const n=null==(t=e.variance)?void 0:t.kind;null!=n&&("plus"===n?this.tokenChar(43):"minus"===n&&this.tokenChar(45))};var r=n(58135),i=n(58231),s=n(21956),o=n(32387);const{isDeclareExportDeclaration:a,isStatement:l}=r;function c(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function u(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();for(const t of n)e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function p(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function f(e){if(e.declaration){const t=e.declaration;this.print(t),l(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function h(e){this.space(),this.token("&",!1,e),this.space()}function d(e){this.space(),this.token("|",!1,e),this.space()}},94403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},t.TemplateElement=function(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},t.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},t._printTemplate=function(e,t){const n=e.quasis;let r="`";for(let i=0;i<n.length-1;i++)if(r+=n[i].value.raw,this.token(r+"${",!0),this.print(t[i]),r="}",this.tokenMap){const t=this.tokenMap.findMatching(e,"}",i);t&&this._catchUpTo(t.loc.start)}r+=n[n.length-1].value.raw,this.token(r+"`",!0)}},94834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=j,t.replaceExpressionWithStatements=function(e){u.resync.call(this);const t=[],n=W(e,t);if(n){for(const e of t)this.scope.push({id:e});return this.replaceWith(n)[0].get("expressions")}const r=this.getFunctionParent(),s=null==r?void 0:r.node.async,o=null==r?void 0:r.node.generator,a=f([],m(e));this.replaceWith(y(a,[]));const l=this.get("callee");l.get("body").scope.hoistVariables((e=>this.scope.push({id:e})));const c=l.getCompletionRecords();for(const e of c){if(!e.isExpressionStatement())continue;const t=e.findParent((e=>e.isLoop()));if(t){let n=t.getData("expressionReplacementReturnUid");n?n=C(n.name):(n=l.scope.generateDeclaredUidIdentifier("ret"),l.get("body").pushContainer("body",L(v(n))),t.setData("expressionReplacementReturnUid",n)),e.get("expression").replaceWith(h("=",v(n),e.node.expression))}else e.replaceWith(L(e.node.expression))}l.arrowFunctionToExpression();const g=l,b=s&&i.default.hasType(this.get("callee.body").node,"AwaitExpression",p),x=o&&i.default.hasType(this.get("callee.body").node,"YieldExpression",p);return b&&(g.set("async",!0),x||this.replaceWith(d(this.node))),x&&(g.set("generator",!0),this.replaceWith(R(this.node,!0))),g.get("body.body")},t.replaceInline=function(e){if(u.resync.call(this),Array.isArray(e)){if(Array.isArray(this.container)){e=a._verifyNodeList.call(this,e);const t=a._containerInsertAfter.call(this,e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},t.replaceWith=function(e){if(u.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof s.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!M(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let n="";if(this.isNodeType("Statement")&&P(t)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(t)||this.parentPath.isExportDefaultDeclaration()||(t=x(t),n="expression")),this.isNodeType("Expression")&&O(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);const r=this.node;return r&&(w(t,r),F(r)),j.call(this,t),this.type=t.type,u.setScope.call(this),this.requeue(),[n?this.get(n):this]},t.replaceWithMultiple=function(e){var t;u.resync.call(this),e=a._verifyNodeList.call(this,e),E(e[0],this.node),k(e[e.length-1],this.node),null==(t=(0,o.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;const n=this.insertAfter(e);return this.node?this.requeue():this.remove(),n},t.replaceWithSourceString=function(e){let t;u.resync.call(this);try{e=`(${e})`,t=(0,l.parse)(e)}catch(t){const n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,r.codeFrameColumns)(e,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}const n=t.program.body[0].expression;return i.default.removeProperties(n),this.replaceWith(n)};var r=n(56611),i=n(80004),s=n(32670),o=n(56266),a=n(11064),l=n(40580),c=n(58135),u=n(44537);const{FUNCTION_TYPES:p,arrowFunctionExpression:f,assignmentExpression:h,awaitExpression:d,blockStatement:m,buildUndefinedNode:g,callExpression:y,cloneNode:v,conditionalExpression:b,expressionStatement:x,getBindingIdentifiers:S,identifier:C,inheritLeadingComments:E,inheritTrailingComments:k,inheritsComments:w,isBlockStatement:T,isEmptyStatement:_,isExpression:P,isExpressionStatement:A,isIfStatement:I,isProgram:M,isStatement:O,isVariableDeclaration:B,removeComments:F,returnStatement:L,sequenceExpression:D,validate:N,yieldExpression:R}=c;function j(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?N(this.parent,this.key,[e]):N(this.parent,this.key,e),this.debug(`Replace with ${null==e?void 0:e.type}`),null==(t=(0,o.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}function W(e,t){const n=[];let r=!0;for(const i of e)if(_(i)||(r=!1),P(i))n.push(i);else if(A(i))n.push(i.expression);else if(B(i)){if("var"!==i.kind)return;for(const e of i.declarations){const r=S(e);for(const e of Object.keys(r))t.push(v(r[e]));e.init&&n.push(h("=",e.id,e.init))}r=!0}else if(I(i)){const e=i.consequent?W([i.consequent],t):g(),r=i.alternate?W([i.alternate],t):g();if(!e||!r)return;n.push(b(i.test,e,r))}else if(T(i)){const e=W(i.body,t);if(!e)return;n.push(e)}else{if(!_(i))return;0===e.indexOf(i)&&(r=!0)}return r&&n.push(g()),1===n.length?n[0]:D(n)}},95838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){const{placeholderWhitelist:n=e.placeholderWhitelist,placeholderPattern:r=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:n,placeholderPattern:r,preserveComments:i,syntacticPlaceholders:s}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce(((e,t,n)=>(e["$"+n]=t,e)),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:o}=t,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,n);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=i&&!(i instanceof RegExp)&&!1!==i)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=o&&"boolean"!=typeof o)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===o&&(null!=r||null!=i))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:null==i?void 0:i,preserveComments:null==s?void 0:s,syntacticPlaceholders:null==o?void 0:o}};const n=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},95957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.environmentVisitor=function(e){return g([C,e])},t.explode=h,t.isExplodedVisitor=f,t.merge=g,t.verify=d;var r=n(44057),i=n(37494),s=n(58135),o=n(44537);const{DEPRECATED_KEYS:a,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:c,TYPES:u,__internal__deprecationWarning:p}=s;function f(e){return null==e?void 0:e._exploded}function h(e){if(f(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(x(t))continue;const n=t.split("|");if(1===n.length)continue;const r=e[t];delete e[t];for(const t of n)e[t]=r}d(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(x(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),v(e);for(const t of Object.keys(e)){if(x(t))continue;if(!(t in r))continue;const n=e[t];for(const e of Object.keys(n))n[e]=b(t,n[e]);delete e[t];const i=r[t];if(null!==i)for(const t of i)e[t]?S(e[t],n):e[t]=n;else S(e,n)}for(const t of Object.keys(e)){if(x(t))continue;let n=c[t];if(t in a){const e=a[t];p(t,e,"Visitor "),n=[e]}else if(t in l){const e=l[t];p(t,e,"Visitor "),n=c[e]}if(!n)continue;const r=e[t];delete e[t];for(const t of n){const n=e[t];n?S(n,r):e[t]=Object.assign({},r)}}for(const t of Object.keys(e))x(t)||v(e[t]);return e}function d(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||m(t,e[t]),x(t))continue;if(!u.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.27.4`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);m(`${t}.${e}`,n[e])}}e._verified=!0}}function m(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function g(e,t=[],n){const r={_verified:!0,_exploded:!0};Object.defineProperty(r,"_exploded",{enumerable:!1}),Object.defineProperty(r,"_verified",{enumerable:!1});for(let i=0;i<e.length;i++){const s=h(e[i]),o=t[i];let a=s;(o||n)&&(a=y(a,o,n)),S(r,a);for(const e of Object.keys(s)){if(x(e))continue;let t=s[e];(o||n)&&(t=y(t,o,n)),S(r[e]||(r[e]={}),t)}}return r}function y(e,t,n){const r={};for(const i of["enter","exit"]){let s=e[i];Array.isArray(s)&&(s=s.map((function(e){let r=e;return t&&(r=function(n){e.call(t,n,t)}),n&&(r=n(null==t?void 0:t.key,i,r)),r!==e&&(r.toString=()=>e.toString()),r})),r[i]=s)}return r}function v(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function b(e,t){const n=i[`is${e}`],r=function(e){if(n.call(e))return t.apply(this,arguments)};return r.toString=()=>t.toString(),r}function x(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e}function S(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}const C={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e))}}},96230:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},96405:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,n,r,i){const s=this._queueCursor;s===this._queue.length&&this._allocQueue();const o=this._queue[s];o.char=e,o.repeat=t,o.line=n,o.column=r,o.filename=i,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const n=e?e.get():null;return t.map=n,n},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const n=null==e?void 0:e.getRawMappings();return t.rawMappings=n,n},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let n=0;n<e;n++){const e=t[n];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,n){if(this._last=e,-1===e){const e=this._fastIndentations[t];this._str+=void 0!==e?e:t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(e,t,n){const r=e.length,i=this._position;if(this._last=e.charCodeAt(r-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!n&&!this._map)return void(i.column+=r);const{column:s,identifierName:o,identifierNamePos:a,filename:l}=t;let c=t.line;null==o&&null==a||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let u=e.indexOf("\n"),p=0;for(0!==u&&this._mark(c,s,o,a,l);-1!==u;)i.line++,i.column=0,p=u+1,p<r&&void 0!==c&&this._mark(++c,0,null,null,l),u=e.indexOf("\n",p);i.column+=r-p}_mark(e,t,n,r,i){var s;null==(s=this._map)||s.mark(this._position,e,t,n,r,i)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let n=e-1;n>=0&&10===this._queue[n].char;n--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const n=e.identifierName,r=this._sourcePosition;n&&(this._canMarkIdName=!1,r.identifierName=n),t(),n&&(this._canMarkIdName=!0,r.identifierName=void 0,r.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,n){this._map&&this._normalizePosition(e,t,n)}_normalizePosition(e,t,n){const r=t[e],i=this._sourcePosition;r&&(i.line=r.line,i.column=Math.max(r.column+n,0),i.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let n=-1,r=0;for(let i=0;i<t;i++){const t=e[i];10===t.char&&(n=r),r+=t.repeat}return-1===n?this._position.column+r:r-1-n}getCurrentLine(){let e=0;const t=this._queue;for(let n=0;n<this._queueCursor;n++)10===t[n].char&&e++;return this._position.line+e}}},96647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(32670),i=n(58135),s=n(44537);const{VISITOR_KEYS:o}=i;t.default=class{constructor(e,t,n,r){this.queue=null,this.priorityQueue=null,this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=o[e.type];if(null==n||!n.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,i){return r.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:i})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const r=[];for(let i=0;i<e.length;i++){const s=e[i];s&&this.shouldVisit(s)&&r.push(this.create(t,e,i,n))}return this.visitQueue(r)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1,r=0;for(;r<e.length;){const i=e[r];if(r++,s.resync.call(i),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||s.pushContext.call(i,this),null===i.key)continue;const{node:o}=i;if(!t.has(o)){if(o&&t.add(o),i.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<r;t++)s.popContext.call(e[t]);return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}}},97743:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=!1),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(27891)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},98079:function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var r;function i(e){return e.startsWith("/")}function s(e){return/^[.?#]/.test(e)}function o(e){const n=t.exec(e);return a(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function a(e,t,n,i,s,o,a){return{scheme:e,user:t,host:n,port:i,path:s,query:o,hash:a,type:r.Absolute}}function l(t){if(function(e){return e.startsWith("//")}(t)){const e=o("http:"+t);return e.scheme="",e.type=r.SchemeRelative,e}if(i(t)){const e=o("http://foo.com"+t);return e.scheme="",e.host="",e.type=r.AbsolutePath,e}if(function(e){return e.startsWith("file:")}(t))return function(e){const t=n.exec(e),r=t[2];return a("file:","",t[1]||"","",i(r)?r:"/"+r,t[3]||"",t[4]||"")}(t);if(function(t){return e.test(t)}(t))return o(t);const s=o("http://foo.com/"+t);return s.scheme="",s.host="",s.type=t?t.startsWith("?")?r.Query:t.startsWith("#")?r.Hash:r.RelativePath:r.Empty,s}function c(e,t){const n=t<=r.RelativePath,i=e.path.split("/");let s=1,o=0,a=!1;for(let e=1;e<i.length;e++){const t=i[e];t?(a=!1,"."!==t&&(".."!==t?(i[s++]=t,o++):o?(a=!0,o--,s--):n&&(i[s++]=t))):a=!0}let l="";for(let e=1;e<s;e++)l+="/"+i[e];(!l||a&&!l.endsWith("/.."))&&(l+="/"),e.path=l}return function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"}(r||(r={})),function(e,t){if(!e&&!t)return"";const n=l(e);let i=n.type;if(t&&i!==r.Absolute){const e=l(t),s=e.type;switch(i){case r.Empty:n.hash=e.hash;case r.Hash:n.query=e.query;case r.Query:case r.RelativePath:!function(e,t){c(t,t.type),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path}(n,e);case r.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case r.SchemeRelative:n.scheme=e.scheme}s>i&&(i=s)}c(n,i);const o=n.query+n.hash;switch(i){case r.Hash:case r.Query:return o;case r.RelativePath:{const r=n.path.slice(1);return r?s(t||e)&&!s(r)?"./"+r+o:r+o:o||"."}case r.AbsolutePath:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}}()},98952:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},99078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;var r=n(58135);const{traverseFast:i,VISITOR_KEYS:s}=r;t.TokenMap=class{constructor(e,t,n){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=n,i(e,(e=>{const t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)})),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=0;e<n.length;e++){const r=n[e],i=this._tokens[r];if(t(i,r))return i}return null}findLastIndex(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=n.length-1;e>=0;e--){const r=n[e];if(t(this._tokens[r],r))return r}return-1}findMatching(e,t,n=0){const r=this._nodesToTokenIndexes.get(e);if(r){let i=0;const s=n;if(s>1){const r=this._nodesOccurrencesCountCache.get(e);r&&r.test===t&&r.count<s&&(i=r.i+1,n-=r.count+1)}for(;i<r.length;i++){const o=this._tokens[r[i]];if(this.matchesOriginal(o,t)){if(0===n)return s>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i}),o;n--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const r=this._tokens[n[0]];return r.start===e.start&&this.matchesOriginal(r,t)}endMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const r=this._tokens[n[n.length-1]];return r.end===e.end&&this.matchesOriginal(r,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];const{first:t,last:n}=this._findTokensOfNode(e,0,this._tokens.length-1);let r=t;const i=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}const t=s[e.type];for(const n of t){const t=e[n];t&&(Array.isArray(t)?yield*t:yield t)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||i.next();const o=[];for(const e of i){if(null==e)continue;if(null==e.start||null==e.end)continue;const t=this._findTokensOfNode(e,r,n),i=t.first;for(let e=r;e<i;e++)o.push(e);r=t.last+1}for(let e=r;e<=n;e++)o.push(e);return o}_findTokensOfNode(e,t,n){const r=this._tokensCache.get(e);if(r)return r;const i=this._findFirstTokenOfNode(e.start,t,n),s=this._findLastTokenOfNode(e.end,i,n);return this._tokensCache.set(e,{first:i,last:s}),{first:i,last:s}}_findFirstTokenOfNode(e,t,n){for(;t<=n;){const r=n+t>>1;if(e<this._tokens[r].start)n=r-1;else{if(!(e>this._tokens[r].start))return r;t=r+1}}return t}_findLastTokenOfNode(e,t,n){for(;t<=n;){const r=n+t>>1;if(e<this._tokens[r].end)n=r-1;else{if(!(e>this._tokens[r].end))return r;t=r+1}}return n}}}}]);
|
|
15
|
+
//# sourceMappingURL=9525.a53ee2a7.js.map
|