UNPKG

577 kBJavaScriptView Raw
1/**
2 * Relay v2.0.0
3 */
4module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=98)}([function(e,t){e.exports=require("graphql")},function(e,t,n){"use strict";function r(e,t,r){var a,s=e;if(null!=t){var o=i(t);s=0===o.length?e:[e].concat(o).join("\n\n")+"\n"}var l=new(n(0).GraphQLError)("Internal Error: ".concat(s),null!==(a=r)&&void 0!==a?a:[]);return new Error(l.message)}function i(e){var t=[],n=!0,i=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){for(var c=l.value,p=c;"Derived"===p.kind;)p=p.source;switch(p.kind){case"Source":var f=p===c?"Source: ":"Source (derived): ";t.push(f+a(p.source,o(p.source,p.start)));break;case"Generated":t.push("Source: (generated)");break;case"Unknown":t.push("Source: (unknown)");break;default:throw r("RelayCompilerError: cannot print location '".concat(String(p),"'."))}}}catch(e){i=!0,s=e}finally{try{n||null==u.return||u.return()}finally{if(i)throw s}}return t}function a(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,l=1===t.line?n:0,u=t.column+l,c=r.split(/\r\n|[\n\r]/g);return"".concat(e.name," (").concat(o,":").concat(u,")\n")+function(e){var t=e.filter(function(e){e[0];var t=e[1];return void 0!==t}),n=0,r=!0,i=!1,a=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var u=o.value,c=u[0];n=Math.max(n,c.length)}}catch(e){i=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw a}}return t.map(function(e){var t=e[0],r=e[1];return function(e,t){return s(e-t.length)+t}(n,t)+r}).join("\n")}([["".concat(o-1,": "),c[i-1]],["".concat(o,": "),c[i]],["",s(u-1)+"^"],["".concat(o+1,": "),c[i+1]]])}function s(e){return Array(e+1).join(" ")}function o(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,a=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,a=t+1-(n.index+n[0].length);return{line:i,column:a}}e.exports={createCombinedError:function(e,t){var n=null!=t?"".concat(t,": "):"";return new Error("".concat(n,"Encountered ").concat(e.length," error(s):\n")+e.map(function(e){return String(e).split("\n").map(function(e,t){return 0===t?"- ".concat(e):" ".concat(e)}).join("\n")}).join("\n"))},createCompilerError:r,createNonRecoverableUserError:function(e,t,r){var a,s=e;if(null!=t){var o=i(t);s=0===o.length?e:[e].concat(o).join("\n\n")+"\n"}var l=new(n(0).GraphQLError)(s,null!==(a=r)&&void 0!==a?a:[]);return new Error(l.message)},createUserError:function(e,t,r){var a,s=e;if(null!=t){var o=i(t);s=0===o.length?e:[e].concat(o).join("\n\n")+"\n"}return new(n(0).GraphQLError)(s,null!==(a=r)&&void 0!==a?a:[])},eachWithErrors:function(e,t){var r=[],i=!0,a=!1,s=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var u=o.value;try{t(u)}catch(e){if(!(e instanceof n(0).GraphQLError))throw e;r.push(e)}}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return 0!==r.length?r:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toSequenceExpression:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0};Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return ue.default}}),t.react=void 0;var i=pe(n(124)),a=pe(n(125)),s=pe(n(126)),o=pe(n(137)),l=n(138);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var u=pe(n(139)),c=pe(n(140)),p=n(14);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))});var f=pe(n(34)),d=pe(n(72)),h=pe(n(141)),m=pe(n(142)),y=pe(n(143)),v=pe(n(73)),T=pe(n(74)),g=pe(n(75)),S=pe(n(76)),x=pe(n(77)),b=pe(n(145)),E=n(146);Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))});var P=n(22);Object.keys(P).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))});var A=pe(n(147)),w=pe(n(148)),k=pe(n(78)),C=pe(n(149)),N=pe(n(150)),_=pe(n(79)),O=pe(n(151)),D=pe(n(152)),I=pe(n(154)),L=pe(n(155)),F=n(16);Object.keys(F).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}}))});var M=pe(n(158)),j=pe(n(159)),R=pe(n(160)),B=pe(n(82)),V=pe(n(80)),U=pe(n(71)),q=pe(n(39)),K=pe(n(161)),J=pe(n(162)),X=pe(n(81)),G=pe(n(45)),Y=pe(n(47)),W=pe(n(163)),Q=pe(n(164)),H=pe(n(165)),z=pe(n(83)),$=pe(n(70)),Z=pe(n(166)),ee=pe(n(167)),te=pe(n(168)),ne=pe(n(169)),re=pe(n(48)),ie=pe(n(170)),ae=pe(n(33)),se=pe(n(171)),oe=pe(n(68)),le=pe(n(69)),ue=pe(n(67)),ce=n(13);function pe(e){return e&&e.__esModule?e:{default:e}}Object.keys(ce).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ce[e]}}))});const fe={isReactComponent:i.default,isCompatTag:a.default,buildChildren:s.default};t.react=fe},function(e,t,n){"use strict";var r="id",i="ID";function a(e){var t=s(e);return t instanceof n(0).GraphQLInterfaceType||t instanceof n(0).GraphQLUnionType}function s(e){return n(57)(n(0).getNamedType(e))}function o(e,t){return function(e){if(e instanceof n(0).GraphQLObjectType)return e.getInterfaces();return[]}(e).some(function(e){return e.toString()===t})}e.exports={assertTypeWithFields:function(e){return e instanceof n(0).GraphQLObjectType||e instanceof n(0).GraphQLInterfaceType||n(4)(!1,"GraphQLSchemaUtils: Expected type `%s` to be an object or interface type.",e),e},canHaveSelections:function(e){return e instanceof n(0).GraphQLObjectType||e instanceof n(0).GraphQLInterfaceType},getNullableType:n(0).getNullableType,getRawType:s,getSingularType:function(e){for(var t=e;t instanceof n(0).GraphQLList;)t=t.ofType;return t},getTypeFromAST:function(e,t){var r=n(0).typeFromAST(e,t);return n(0).isType(r)||n(4)(!1,"GraphQLSchemaUtils: Unknown type `%s`.",n(0).print(t)),r},hasID:function(e,t){var a=s(t);a instanceof n(0).GraphQLObjectType||a instanceof n(0).GraphQLInterfaceType||n(4)(!1,"GraphQLSchemaUtils.hasID(): Expected a concrete type or interface, got type `%s`.",t);var o=e.getType(i),l=a.getFields()[r];return l&&s(l.type)===o},implementsInterface:o,isAbstractType:a,isUnionType:function(e){return e instanceof n(0).GraphQLUnionType},isExecutableDefinitionAST:function(e){return"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind},isSchemaDefinitionAST:function(e){return"SchemaDefinition"===e.kind||"ScalarTypeDefinition"===e.kind||"ObjectTypeDefinition"===e.kind||"InterfaceTypeDefinition"===e.kind||"UnionTypeDefinition"===e.kind||"EnumTypeDefinition"===e.kind||"InputObjectTypeDefinition"===e.kind||"DirectiveDefinition"===e.kind||"ScalarTypeExtension"===e.kind||"ObjectTypeExtension"===e.kind||"InterfaceTypeExtension"===e.kind||"UnionTypeExtension"===e.kind||"EnumTypeExtension"===e.kind||"InputObjectTypeExtension"===e.kind},mayImplement:function(e,t,r){var i=s(t);return i.toString()===r||o(i,r)||a(i)&&function(e,t,r){return a(t)&&function(e,t){return e.getPossibleTypes(n(0).assertAbstractType(t))}(e,t).some(function(e){return o(e,r)})}(e,i,r)}}},function(e,t){e.exports=require("fbjs/lib/invariant")},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var r=n(19),i=!1,a=[{ph:"M",pid:0,tid:0,name:"process_name",args:{name:"relay-compiler"}},{ph:"M",pid:0,tid:0,name:"thread_name",args:{name:"relay-compiler"}}],s=[];function o(e,t){if(!i)return e;var n=t||e.displayName||e.name,r=function(){var t=f(n);try{return e.apply(this,arguments)}finally{m(t)}};return r.displayName=n,r}function l(e,t){if(!i)return e;var n=t||e.displayName||e.name,a=function(){var t=r(function*(){var t=f(n);try{return yield e.apply(this,arguments)}finally{m(t)}});return function(){return t.apply(this,arguments)}}();return a.displayName=n,a}function u(e,t){if(!i)return e;var n=t||e.displayName||e.name,a=function(){var t=r(function*(){var t=h(n);try{return yield e.apply(this,arguments)}finally{m(t)}});return function(){return t.apply(this,arguments)}}();return a.displayName=n,a}var c=process.hrtime();function p(){var e=process.hrtime(c);return 0|1e6*e[0]+Math.round(e[1]/1e3)}function f(e){var t={ph:"B",name:e,pid:0,tid:0,ts:p()};return a.push(t),s.push(t),a.length-1}var d=0;function h(e){return a.push({ph:"b",name:e,cat:"wait",id:d++,pid:0,tid:0,ts:p()}),a.length-1}function m(e){var t=a[e];"b"!==t.ph?("B"!==t.ph&&n(4)(!1,"Begin trace phase"),s.pop()!==t&&n(4)(!1,"GraphQLCompilerProfiler: The profile trace %s ended before nested traces. If it is async, try using Profile.waitFor or Profile.profileWait.",t.name),t!==a[a.length-1]?a.push({ph:"E",name:t.name,pid:t.pid,tid:t.tid,ts:p()}):a[e]={ph:"X",name:t.name,pid:t.pid,tid:t.tid,ts:t.ts,dur:p()-t.ts}):a.push({ph:"e",cat:t.cat,name:t.name,id:t.id,pid:t.pid,tid:t.tid,ts:p()})}e.exports={enable:function(){i=!0},getTraces:function(){return a},run:function(e,t){return o(t,e)()},asyncContext:function(e,t){return l(t,e)()},waitFor:function(e,t){return u(t,e)()},instrument:o,instrumentAsyncContext:l,instrumentWait:u,start:f,startWait:h,end:m}},function(e,t,n){"use strict";e.exports={anyTypeAlias:function(e){return n(2).typeAlias(n(2).identifier(e),null,n(2).anyTypeAnnotation())},exactObjectTypeAnnotation:function(e){var t=n(2).objectTypeAnnotation(e);return t.exact=!0,t},exportType:function(e,t){return n(2).exportNamedDeclaration(n(2).typeAlias(n(2).identifier(e),null,t),[],null)},importTypes:function(e,t){var r=n(2).importDeclaration(e.map(function(e){return n(2).importSpecifier(n(2).identifier(e),n(2).identifier(e))}),n(2).stringLiteral(t));return r.importKind="type",r},intersectionTypeAnnotation:function(e){return e.length>0||n(4)(!1,"RelayFlowBabelFactories: cannot create an intersection of 0 types"),1===e.length?e[0]:n(2).intersectionTypeAnnotation(e)},lineComments:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(function(e){return{type:"CommentLine",value:" "+e}})},readOnlyArrayOfType:function(e){return n(2).genericTypeAnnotation(n(2).identifier("$ReadOnlyArray"),n(2).typeParameterInstantiation([e]))},readOnlyObjectTypeProperty:function(e,t){var r=n(2).objectTypeProperty(n(2).identifier(e),t);return r.variance=n(2).variance("plus"),r},stringLiteralTypeAnnotation:function(e){return n(2).stringLiteralTypeAnnotation(e)},unionTypeAnnotation:function(e){return e.length>0||n(4)(!1,"RelayFlowBabelFactories: cannot create a union of 0 types"),1===e.length?e[0]:n(2).unionTypeAnnotation(e)}}},function(e,t){e.exports=require("path")},function(e,t,n){var r=n(55);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}},function(e,t,n){"use strict";var r=n(5)(n(9));var i=function(){function e(e,t){this._context=e,this._states=[],this._visitor=t}var t=e.prototype;return t.getContext=function(){return this._context},t.visit=function(e,t){this._states.push(t);var n=this._visit(e);return this._states.pop(),n},t.traverse=function(e,t){this._states.push(t);var n=this._traverse(e);return this._states.pop(),n},t._visit=function(e){var t=this._visitor[e.kind];if(t){var n=this._getState();return t.call(this,e,n)}return this._traverse(e)},t._traverse=function(e){var t;switch(e.kind){case"Argument":t=this._traverseChildren(e,null,["value"]);break;case"Literal":case"LocalArgumentDefinition":case"RootArgumentDefinition":case"Variable":t=e;break;case"Defer":t=this._traverseChildren(e,["selections"],["if"]);break;case"Stream":t=this._traverseChildren(e,["selections"],["if","initialCount"]);break;case"Directive":t=this._traverseChildren(e,["args"]);break;case"MatchBranch":(t=this._traverseChildren(e,["selections"])).selections.length||(t=null);break;case"FragmentSpread":case"ScalarField":t=this._traverseChildren(e,["args","directives"]);break;case"LinkedField":(t=this._traverseChildren(e,["args","directives","selections"])).selections.length||(t=null);break;case"ListValue":t=this._traverseChildren(e,["items"]);break;case"MatchField":t=this._traverseChildren(e,["args","directives","selections"]);break;case"ObjectFieldValue":t=this._traverseChildren(e,null,["value"]);break;case"ObjectValue":t=this._traverseChildren(e,["fields"]);break;case"Condition":(t=this._traverseChildren(e,["directives","selections"],["condition"])).selections.length||(t=null);break;case"InlineFragment":(t=this._traverseChildren(e,["directives","selections"])).selections.length||(t=null);break;case"Fragment":case"Root":t=this._traverseChildren(e,["argumentDefinitions","directives","selections"]);break;case"Request":t=this._traverseChildren(e,null,["fragment","root"]);break;case"SplitOperation":t=this._traverseChildren(e,["selections"]);break;default:n(4)(!1,"GraphQLIRTransformer: Unknown kind `%s`.",e.kind)}return t},t._traverseChildren=function(e,t,i){var a,s=this;return t&&t.forEach(function(t){var i=e[t];if(i){Array.isArray(i)||n(4)(!1,"GraphQLIRTransformer: Expected data for `%s` to be an array, got `%s`.",t,i);var o=s._map(i);(a||o!==i)&&((a=a||(0,r.default)({},e))[t]=o)}}),i&&i.forEach(function(t){var n=e[t];if(n){var i=s._visit(n);(a||i!==n)&&((a=a||(0,r.default)({},e))[t]=i)}}),a||e},t._map=function(e){var t,n=this;return e.forEach(function(r,i){var a=n._visit(r);(t||a!==r)&&(t=t||e.slice(0,i),a&&t.push(a))}),t||e},t._getState=function(){return this._states.length||n(4)(!1,"GraphQLIRTransformer: Expected a current state to be set but found none. This is usually the result of mismatched number of pushState()/popState() calls."),this._states[this._states.length-1]},e}();e.exports={transform:function(e,t,r){var a=new i(e,t);return e.withMutations(function(t){var i=t,s=n(1).eachWithErrors(e.documents(),function(e){var t;if(void 0===r)t=a.visit(e,void 0);else{var n=r(e);null!=n&&(t=a.visit(e,n))}t?t!==e&&(i=i.replace(t)):i=i.remove(e.name)});if(null!=s&&0!==s.length)throw n(1).createCombinedError(s);return i})}}},function(e,t,n){var r=n(100),i=n(101),a=n(102);e.exports=function(e){return r(e)||i(e)||a()}},function(e,t){e.exports=require("relay-runtime")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayExpression=function(e,t){if(!e)return!1;if("ArrayExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isAssignmentExpression=function(e,t){if(!e)return!1;if("AssignmentExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isBinaryExpression=function(e,t){if(!e)return!1;if("BinaryExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isInterpreterDirective=function(e,t){if(!e)return!1;if("InterpreterDirective"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDirective=function(e,t){if(!e)return!1;if("Directive"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDirectiveLiteral=function(e,t){if(!e)return!1;if("DirectiveLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isBlockStatement=function(e,t){if(!e)return!1;if("BlockStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isBreakStatement=function(e,t){if(!e)return!1;if("BreakStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isCallExpression=function(e,t){if(!e)return!1;if("CallExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isCatchClause=function(e,t){if(!e)return!1;if("CatchClause"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isConditionalExpression=function(e,t){if(!e)return!1;if("ConditionalExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isContinueStatement=function(e,t){if(!e)return!1;if("ContinueStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDebuggerStatement=function(e,t){if(!e)return!1;if("DebuggerStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDoWhileStatement=function(e,t){if(!e)return!1;if("DoWhileStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isEmptyStatement=function(e,t){if(!e)return!1;if("EmptyStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExpressionStatement=function(e,t){if(!e)return!1;if("ExpressionStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isFile=function(e,t){if(!e)return!1;if("File"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isForInStatement=function(e,t){if(!e)return!1;if("ForInStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isForStatement=function(e,t){if(!e)return!1;if("ForStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isFunctionDeclaration=function(e,t){if(!e)return!1;if("FunctionDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isFunctionExpression=function(e,t){if(!e)return!1;if("FunctionExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isIdentifier=function(e,t){if(!e)return!1;if("Identifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isIfStatement=function(e,t){if(!e)return!1;if("IfStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isLabeledStatement=function(e,t){if(!e)return!1;if("LabeledStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isStringLiteral=function(e,t){if(!e)return!1;if("StringLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isNumericLiteral=function(e,t){if(!e)return!1;if("NumericLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isNullLiteral=function(e,t){if(!e)return!1;if("NullLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isBooleanLiteral=function(e,t){if(!e)return!1;if("BooleanLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isRegExpLiteral=function(e,t){if(!e)return!1;if("RegExpLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isLogicalExpression=function(e,t){if(!e)return!1;if("LogicalExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isMemberExpression=function(e,t){if(!e)return!1;if("MemberExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isNewExpression=function(e,t){if(!e)return!1;if("NewExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isProgram=function(e,t){if(!e)return!1;if("Program"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectExpression=function(e,t){if(!e)return!1;if("ObjectExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectMethod=function(e,t){if(!e)return!1;if("ObjectMethod"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectProperty=function(e,t){if(!e)return!1;if("ObjectProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isRestElement=function(e,t){if(!e)return!1;if("RestElement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isReturnStatement=function(e,t){if(!e)return!1;if("ReturnStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isSequenceExpression=function(e,t){if(!e)return!1;if("SequenceExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isSwitchCase=function(e,t){if(!e)return!1;if("SwitchCase"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isSwitchStatement=function(e,t){if(!e)return!1;if("SwitchStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isThisExpression=function(e,t){if(!e)return!1;if("ThisExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isThrowStatement=function(e,t){if(!e)return!1;if("ThrowStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTryStatement=function(e,t){if(!e)return!1;if("TryStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isUnaryExpression=function(e,t){if(!e)return!1;if("UnaryExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isUpdateExpression=function(e,t){if(!e)return!1;if("UpdateExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isVariableDeclaration=function(e,t){if(!e)return!1;if("VariableDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isVariableDeclarator=function(e,t){if(!e)return!1;if("VariableDeclarator"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isWhileStatement=function(e,t){if(!e)return!1;if("WhileStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isWithStatement=function(e,t){if(!e)return!1;if("WithStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isAssignmentPattern=function(e,t){if(!e)return!1;if("AssignmentPattern"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isArrayPattern=function(e,t){if(!e)return!1;if("ArrayPattern"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isArrowFunctionExpression=function(e,t){if(!e)return!1;if("ArrowFunctionExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isClassBody=function(e,t){if(!e)return!1;if("ClassBody"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isClassDeclaration=function(e,t){if(!e)return!1;if("ClassDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isClassExpression=function(e,t){if(!e)return!1;if("ClassExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExportAllDeclaration=function(e,t){if(!e)return!1;if("ExportAllDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExportDefaultDeclaration=function(e,t){if(!e)return!1;if("ExportDefaultDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExportNamedDeclaration=function(e,t){if(!e)return!1;if("ExportNamedDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExportSpecifier=function(e,t){if(!e)return!1;if("ExportSpecifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isForOfStatement=function(e,t){if(!e)return!1;if("ForOfStatement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isImportDeclaration=function(e,t){if(!e)return!1;if("ImportDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isImportDefaultSpecifier=function(e,t){if(!e)return!1;if("ImportDefaultSpecifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isImportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ImportNamespaceSpecifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isImportSpecifier=function(e,t){if(!e)return!1;if("ImportSpecifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isMetaProperty=function(e,t){if(!e)return!1;if("MetaProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isClassMethod=function(e,t){if(!e)return!1;if("ClassMethod"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectPattern=function(e,t){if(!e)return!1;if("ObjectPattern"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isSpreadElement=function(e,t){if(!e)return!1;if("SpreadElement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isSuper=function(e,t){if(!e)return!1;if("Super"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTaggedTemplateExpression=function(e,t){if(!e)return!1;if("TaggedTemplateExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTemplateElement=function(e,t){if(!e)return!1;if("TemplateElement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTemplateLiteral=function(e,t){if(!e)return!1;if("TemplateLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isYieldExpression=function(e,t){if(!e)return!1;if("YieldExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isAnyTypeAnnotation=function(e,t){if(!e)return!1;if("AnyTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isArrayTypeAnnotation=function(e,t){if(!e)return!1;if("ArrayTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isBooleanTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isBooleanLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanLiteralTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isNullLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NullLiteralTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isClassImplements=function(e,t){if(!e)return!1;if("ClassImplements"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareClass=function(e,t){if(!e)return!1;if("DeclareClass"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareFunction=function(e,t){if(!e)return!1;if("DeclareFunction"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareInterface=function(e,t){if(!e)return!1;if("DeclareInterface"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareModule=function(e,t){if(!e)return!1;if("DeclareModule"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareModuleExports=function(e,t){if(!e)return!1;if("DeclareModuleExports"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareTypeAlias=function(e,t){if(!e)return!1;if("DeclareTypeAlias"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareOpaqueType=function(e,t){if(!e)return!1;if("DeclareOpaqueType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareVariable=function(e,t){if(!e)return!1;if("DeclareVariable"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareExportDeclaration=function(e,t){if(!e)return!1;if("DeclareExportDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclareExportAllDeclaration=function(e,t){if(!e)return!1;if("DeclareExportAllDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclaredPredicate=function(e,t){if(!e)return!1;if("DeclaredPredicate"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExistsTypeAnnotation=function(e,t){if(!e)return!1;if("ExistsTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isFunctionTypeAnnotation=function(e,t){if(!e)return!1;if("FunctionTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isFunctionTypeParam=function(e,t){if(!e)return!1;if("FunctionTypeParam"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isGenericTypeAnnotation=function(e,t){if(!e)return!1;if("GenericTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isInferredPredicate=function(e,t){if(!e)return!1;if("InferredPredicate"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isInterfaceExtends=function(e,t){if(!e)return!1;if("InterfaceExtends"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isInterfaceDeclaration=function(e,t){if(!e)return!1;if("InterfaceDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isInterfaceTypeAnnotation=function(e,t){if(!e)return!1;if("InterfaceTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isIntersectionTypeAnnotation=function(e,t){if(!e)return!1;if("IntersectionTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isMixedTypeAnnotation=function(e,t){if(!e)return!1;if("MixedTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isEmptyTypeAnnotation=function(e,t){if(!e)return!1;if("EmptyTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isNullableTypeAnnotation=function(e,t){if(!e)return!1;if("NullableTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isNumberLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NumberLiteralTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isNumberTypeAnnotation=function(e,t){if(!e)return!1;if("NumberTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectTypeAnnotation=function(e,t){if(!e)return!1;if("ObjectTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectTypeInternalSlot=function(e,t){if(!e)return!1;if("ObjectTypeInternalSlot"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectTypeCallProperty=function(e,t){if(!e)return!1;if("ObjectTypeCallProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectTypeIndexer=function(e,t){if(!e)return!1;if("ObjectTypeIndexer"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectTypeProperty=function(e,t){if(!e)return!1;if("ObjectTypeProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectTypeSpreadProperty=function(e,t){if(!e)return!1;if("ObjectTypeSpreadProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isOpaqueType=function(e,t){if(!e)return!1;if("OpaqueType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isQualifiedTypeIdentifier=function(e,t){if(!e)return!1;if("QualifiedTypeIdentifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isStringLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("StringLiteralTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isStringTypeAnnotation=function(e,t){if(!e)return!1;if("StringTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isThisTypeAnnotation=function(e,t){if(!e)return!1;if("ThisTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTupleTypeAnnotation=function(e,t){if(!e)return!1;if("TupleTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTypeofTypeAnnotation=function(e,t){if(!e)return!1;if("TypeofTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTypeAlias=function(e,t){if(!e)return!1;if("TypeAlias"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTypeAnnotation=function(e,t){if(!e)return!1;if("TypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTypeCastExpression=function(e,t){if(!e)return!1;if("TypeCastExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTypeParameter=function(e,t){if(!e)return!1;if("TypeParameter"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TypeParameterDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TypeParameterInstantiation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isUnionTypeAnnotation=function(e,t){if(!e)return!1;if("UnionTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isVariance=function(e,t){if(!e)return!1;if("Variance"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isVoidTypeAnnotation=function(e,t){if(!e)return!1;if("VoidTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXAttribute=function(e,t){if(!e)return!1;if("JSXAttribute"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXClosingElement=function(e,t){if(!e)return!1;if("JSXClosingElement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXElement=function(e,t){if(!e)return!1;if("JSXElement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXEmptyExpression=function(e,t){if(!e)return!1;if("JSXEmptyExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXExpressionContainer=function(e,t){if(!e)return!1;if("JSXExpressionContainer"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXSpreadChild=function(e,t){if(!e)return!1;if("JSXSpreadChild"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXIdentifier=function(e,t){if(!e)return!1;if("JSXIdentifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXMemberExpression=function(e,t){if(!e)return!1;if("JSXMemberExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXNamespacedName=function(e,t){if(!e)return!1;if("JSXNamespacedName"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXOpeningElement=function(e,t){if(!e)return!1;if("JSXOpeningElement"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXSpreadAttribute=function(e,t){if(!e)return!1;if("JSXSpreadAttribute"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXText=function(e,t){if(!e)return!1;if("JSXText"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXFragment=function(e,t){if(!e)return!1;if("JSXFragment"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXOpeningFragment=function(e,t){if(!e)return!1;if("JSXOpeningFragment"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isJSXClosingFragment=function(e,t){if(!e)return!1;if("JSXClosingFragment"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isNoop=function(e,t){if(!e)return!1;if("Noop"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isParenthesizedExpression=function(e,t){if(!e)return!1;if("ParenthesizedExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isAwaitExpression=function(e,t){if(!e)return!1;if("AwaitExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isBindExpression=function(e,t){if(!e)return!1;if("BindExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isClassProperty=function(e,t){if(!e)return!1;if("ClassProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isOptionalMemberExpression=function(e,t){if(!e)return!1;if("OptionalMemberExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isOptionalCallExpression=function(e,t){if(!e)return!1;if("OptionalCallExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isClassPrivateProperty=function(e,t){if(!e)return!1;if("ClassPrivateProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isImport=function(e,t){if(!e)return!1;if("Import"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDecorator=function(e,t){if(!e)return!1;if("Decorator"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isDoExpression=function(e,t){if(!e)return!1;if("DoExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExportDefaultSpecifier=function(e,t){if(!e)return!1;if("ExportDefaultSpecifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ExportNamespaceSpecifier"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isPrivateName=function(e,t){if(!e)return!1;if("PrivateName"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isBigIntLiteral=function(e,t){if(!e)return!1;if("BigIntLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSParameterProperty=function(e,t){if(!e)return!1;if("TSParameterProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSDeclareFunction=function(e,t){if(!e)return!1;if("TSDeclareFunction"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSDeclareMethod=function(e,t){if(!e)return!1;if("TSDeclareMethod"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSQualifiedName=function(e,t){if(!e)return!1;if("TSQualifiedName"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSCallSignatureDeclaration=function(e,t){if(!e)return!1;if("TSCallSignatureDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSConstructSignatureDeclaration=function(e,t){if(!e)return!1;if("TSConstructSignatureDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSPropertySignature=function(e,t){if(!e)return!1;if("TSPropertySignature"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSMethodSignature=function(e,t){if(!e)return!1;if("TSMethodSignature"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSIndexSignature=function(e,t){if(!e)return!1;if("TSIndexSignature"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSAnyKeyword=function(e,t){if(!e)return!1;if("TSAnyKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSNumberKeyword=function(e,t){if(!e)return!1;if("TSNumberKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSObjectKeyword=function(e,t){if(!e)return!1;if("TSObjectKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSBooleanKeyword=function(e,t){if(!e)return!1;if("TSBooleanKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSStringKeyword=function(e,t){if(!e)return!1;if("TSStringKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSSymbolKeyword=function(e,t){if(!e)return!1;if("TSSymbolKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSVoidKeyword=function(e,t){if(!e)return!1;if("TSVoidKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSUndefinedKeyword=function(e,t){if(!e)return!1;if("TSUndefinedKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSNullKeyword=function(e,t){if(!e)return!1;if("TSNullKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSNeverKeyword=function(e,t){if(!e)return!1;if("TSNeverKeyword"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSThisType=function(e,t){if(!e)return!1;if("TSThisType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSFunctionType=function(e,t){if(!e)return!1;if("TSFunctionType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSConstructorType=function(e,t){if(!e)return!1;if("TSConstructorType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeReference=function(e,t){if(!e)return!1;if("TSTypeReference"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypePredicate=function(e,t){if(!e)return!1;if("TSTypePredicate"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeQuery=function(e,t){if(!e)return!1;if("TSTypeQuery"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeLiteral=function(e,t){if(!e)return!1;if("TSTypeLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSArrayType=function(e,t){if(!e)return!1;if("TSArrayType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTupleType=function(e,t){if(!e)return!1;if("TSTupleType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSUnionType=function(e,t){if(!e)return!1;if("TSUnionType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSIntersectionType=function(e,t){if(!e)return!1;if("TSIntersectionType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSConditionalType=function(e,t){if(!e)return!1;if("TSConditionalType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSInferType=function(e,t){if(!e)return!1;if("TSInferType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSParenthesizedType=function(e,t){if(!e)return!1;if("TSParenthesizedType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeOperator=function(e,t){if(!e)return!1;if("TSTypeOperator"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSIndexedAccessType=function(e,t){if(!e)return!1;if("TSIndexedAccessType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSMappedType=function(e,t){if(!e)return!1;if("TSMappedType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSLiteralType=function(e,t){if(!e)return!1;if("TSLiteralType"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSExpressionWithTypeArguments=function(e,t){if(!e)return!1;if("TSExpressionWithTypeArguments"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSInterfaceDeclaration=function(e,t){if(!e)return!1;if("TSInterfaceDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSInterfaceBody=function(e,t){if(!e)return!1;if("TSInterfaceBody"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeAliasDeclaration=function(e,t){if(!e)return!1;if("TSTypeAliasDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSAsExpression=function(e,t){if(!e)return!1;if("TSAsExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeAssertion=function(e,t){if(!e)return!1;if("TSTypeAssertion"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSEnumDeclaration=function(e,t){if(!e)return!1;if("TSEnumDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSEnumMember=function(e,t){if(!e)return!1;if("TSEnumMember"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSModuleDeclaration=function(e,t){if(!e)return!1;if("TSModuleDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSModuleBlock=function(e,t){if(!e)return!1;if("TSModuleBlock"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSImportEqualsDeclaration=function(e,t){if(!e)return!1;if("TSImportEqualsDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSExternalModuleReference=function(e,t){if(!e)return!1;if("TSExternalModuleReference"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSNonNullExpression=function(e,t){if(!e)return!1;if("TSNonNullExpression"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSExportAssignment=function(e,t){if(!e)return!1;if("TSExportAssignment"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSNamespaceExportDeclaration=function(e,t){if(!e)return!1;if("TSNamespaceExportDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeAnnotation=function(e,t){if(!e)return!1;if("TSTypeAnnotation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TSTypeParameterInstantiation"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TSTypeParameterDeclaration"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeParameter=function(e,t){if(!e)return!1;if("TSTypeParameter"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isExpression=function(e,t){if(!e)return!1;const n=e.type;if("Expression"===n||"ArrayExpression"===n||"AssignmentExpression"===n||"BinaryExpression"===n||"CallExpression"===n||"ConditionalExpression"===n||"FunctionExpression"===n||"Identifier"===n||"StringLiteral"===n||"NumericLiteral"===n||"NullLiteral"===n||"BooleanLiteral"===n||"RegExpLiteral"===n||"LogicalExpression"===n||"MemberExpression"===n||"NewExpression"===n||"ObjectExpression"===n||"SequenceExpression"===n||"ThisExpression"===n||"UnaryExpression"===n||"UpdateExpression"===n||"ArrowFunctionExpression"===n||"ClassExpression"===n||"MetaProperty"===n||"Super"===n||"TaggedTemplateExpression"===n||"TemplateLiteral"===n||"YieldExpression"===n||"TypeCastExpression"===n||"JSXElement"===n||"JSXFragment"===n||"ParenthesizedExpression"===n||"AwaitExpression"===n||"BindExpression"===n||"OptionalMemberExpression"===n||"OptionalCallExpression"===n||"Import"===n||"DoExpression"===n||"BigIntLiteral"===n||"TSAsExpression"===n||"TSTypeAssertion"===n||"TSNonNullExpression"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isBinary=function(e,t){if(!e)return!1;const n=e.type;if("Binary"===n||"BinaryExpression"===n||"LogicalExpression"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isScopable=function(e,t){if(!e)return!1;const n=e.type;if("Scopable"===n||"BlockStatement"===n||"CatchClause"===n||"DoWhileStatement"===n||"ForInStatement"===n||"ForStatement"===n||"FunctionDeclaration"===n||"FunctionExpression"===n||"Program"===n||"ObjectMethod"===n||"SwitchStatement"===n||"WhileStatement"===n||"ArrowFunctionExpression"===n||"ClassDeclaration"===n||"ClassExpression"===n||"ForOfStatement"===n||"ClassMethod"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isBlockParent=function(e,t){if(!e)return!1;const n=e.type;if("BlockParent"===n||"BlockStatement"===n||"CatchClause"===n||"DoWhileStatement"===n||"ForInStatement"===n||"ForStatement"===n||"FunctionDeclaration"===n||"FunctionExpression"===n||"Program"===n||"ObjectMethod"===n||"SwitchStatement"===n||"WhileStatement"===n||"ArrowFunctionExpression"===n||"ForOfStatement"===n||"ClassMethod"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isBlock=function(e,t){if(!e)return!1;const n=e.type;if("Block"===n||"BlockStatement"===n||"Program"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isStatement=function(e,t){if(!e)return!1;const n=e.type;if("Statement"===n||"BlockStatement"===n||"BreakStatement"===n||"ContinueStatement"===n||"DebuggerStatement"===n||"DoWhileStatement"===n||"EmptyStatement"===n||"ExpressionStatement"===n||"ForInStatement"===n||"ForStatement"===n||"FunctionDeclaration"===n||"IfStatement"===n||"LabeledStatement"===n||"ReturnStatement"===n||"SwitchStatement"===n||"ThrowStatement"===n||"TryStatement"===n||"VariableDeclaration"===n||"WhileStatement"===n||"WithStatement"===n||"ClassDeclaration"===n||"ExportAllDeclaration"===n||"ExportDefaultDeclaration"===n||"ExportNamedDeclaration"===n||"ForOfStatement"===n||"ImportDeclaration"===n||"DeclareClass"===n||"DeclareFunction"===n||"DeclareInterface"===n||"DeclareModule"===n||"DeclareModuleExports"===n||"DeclareTypeAlias"===n||"DeclareOpaqueType"===n||"DeclareVariable"===n||"DeclareExportDeclaration"===n||"DeclareExportAllDeclaration"===n||"InterfaceDeclaration"===n||"OpaqueType"===n||"TypeAlias"===n||"TSDeclareFunction"===n||"TSInterfaceDeclaration"===n||"TSTypeAliasDeclaration"===n||"TSEnumDeclaration"===n||"TSModuleDeclaration"===n||"TSImportEqualsDeclaration"===n||"TSExportAssignment"===n||"TSNamespaceExportDeclaration"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isTerminatorless=function(e,t){if(!e)return!1;const n=e.type;if("Terminatorless"===n||"BreakStatement"===n||"ContinueStatement"===n||"ReturnStatement"===n||"ThrowStatement"===n||"YieldExpression"===n||"AwaitExpression"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isCompletionStatement=function(e,t){if(!e)return!1;const n=e.type;if("CompletionStatement"===n||"BreakStatement"===n||"ContinueStatement"===n||"ReturnStatement"===n||"ThrowStatement"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isConditional=function(e,t){if(!e)return!1;const n=e.type;if("Conditional"===n||"ConditionalExpression"===n||"IfStatement"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isLoop=function(e,t){if(!e)return!1;const n=e.type;if("Loop"===n||"DoWhileStatement"===n||"ForInStatement"===n||"ForStatement"===n||"WhileStatement"===n||"ForOfStatement"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isWhile=function(e,t){if(!e)return!1;const n=e.type;if("While"===n||"DoWhileStatement"===n||"WhileStatement"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isExpressionWrapper=function(e,t){if(!e)return!1;const n=e.type;if("ExpressionWrapper"===n||"ExpressionStatement"===n||"TypeCastExpression"===n||"ParenthesizedExpression"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isFor=function(e,t){if(!e)return!1;const n=e.type;if("For"===n||"ForInStatement"===n||"ForStatement"===n||"ForOfStatement"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isForXStatement=function(e,t){if(!e)return!1;const n=e.type;if("ForXStatement"===n||"ForInStatement"===n||"ForOfStatement"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isFunction=function(e,t){if(!e)return!1;const n=e.type;if("Function"===n||"FunctionDeclaration"===n||"FunctionExpression"===n||"ObjectMethod"===n||"ArrowFunctionExpression"===n||"ClassMethod"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isFunctionParent=function(e,t){if(!e)return!1;const n=e.type;if("FunctionParent"===n||"FunctionDeclaration"===n||"FunctionExpression"===n||"ObjectMethod"===n||"ArrowFunctionExpression"===n||"ClassMethod"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isPureish=function(e,t){if(!e)return!1;const n=e.type;if("Pureish"===n||"FunctionDeclaration"===n||"FunctionExpression"===n||"StringLiteral"===n||"NumericLiteral"===n||"NullLiteral"===n||"BooleanLiteral"===n||"ArrowFunctionExpression"===n||"ClassDeclaration"===n||"ClassExpression"===n||"BigIntLiteral"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isDeclaration=function(e,t){if(!e)return!1;const n=e.type;if("Declaration"===n||"FunctionDeclaration"===n||"VariableDeclaration"===n||"ClassDeclaration"===n||"ExportAllDeclaration"===n||"ExportDefaultDeclaration"===n||"ExportNamedDeclaration"===n||"ImportDeclaration"===n||"DeclareClass"===n||"DeclareFunction"===n||"DeclareInterface"===n||"DeclareModule"===n||"DeclareModuleExports"===n||"DeclareTypeAlias"===n||"DeclareOpaqueType"===n||"DeclareVariable"===n||"DeclareExportDeclaration"===n||"DeclareExportAllDeclaration"===n||"InterfaceDeclaration"===n||"OpaqueType"===n||"TypeAlias"===n||"TSDeclareFunction"===n||"TSInterfaceDeclaration"===n||"TSTypeAliasDeclaration"===n||"TSEnumDeclaration"===n||"TSModuleDeclaration"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isPatternLike=function(e,t){if(!e)return!1;const n=e.type;if("PatternLike"===n||"Identifier"===n||"RestElement"===n||"AssignmentPattern"===n||"ArrayPattern"===n||"ObjectPattern"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isLVal=function(e,t){if(!e)return!1;const n=e.type;if("LVal"===n||"Identifier"===n||"MemberExpression"===n||"RestElement"===n||"AssignmentPattern"===n||"ArrayPattern"===n||"ObjectPattern"===n||"TSParameterProperty"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isTSEntityName=function(e,t){if(!e)return!1;const n=e.type;if("TSEntityName"===n||"Identifier"===n||"TSQualifiedName"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isLiteral=function(e,t){if(!e)return!1;const n=e.type;if("Literal"===n||"StringLiteral"===n||"NumericLiteral"===n||"NullLiteral"===n||"BooleanLiteral"===n||"RegExpLiteral"===n||"TemplateLiteral"===n||"BigIntLiteral"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isImmutable=function(e,t){if(!e)return!1;const n=e.type;if("Immutable"===n||"StringLiteral"===n||"NumericLiteral"===n||"NullLiteral"===n||"BooleanLiteral"===n||"JSXAttribute"===n||"JSXClosingElement"===n||"JSXElement"===n||"JSXExpressionContainer"===n||"JSXSpreadChild"===n||"JSXOpeningElement"===n||"JSXText"===n||"JSXFragment"===n||"JSXOpeningFragment"===n||"JSXClosingFragment"===n||"BigIntLiteral"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isUserWhitespacable=function(e,t){if(!e)return!1;const n=e.type;if("UserWhitespacable"===n||"ObjectMethod"===n||"ObjectProperty"===n||"ObjectTypeInternalSlot"===n||"ObjectTypeCallProperty"===n||"ObjectTypeIndexer"===n||"ObjectTypeProperty"===n||"ObjectTypeSpreadProperty"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isMethod=function(e,t){if(!e)return!1;const n=e.type;if("Method"===n||"ObjectMethod"===n||"ClassMethod"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isObjectMember=function(e,t){if(!e)return!1;const n=e.type;if("ObjectMember"===n||"ObjectMethod"===n||"ObjectProperty"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isProperty=function(e,t){if(!e)return!1;const n=e.type;if("Property"===n||"ObjectProperty"===n||"ClassProperty"===n||"ClassPrivateProperty"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isUnaryLike=function(e,t){if(!e)return!1;const n=e.type;if("UnaryLike"===n||"UnaryExpression"===n||"SpreadElement"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isPattern=function(e,t){if(!e)return!1;const n=e.type;if("Pattern"===n||"AssignmentPattern"===n||"ArrayPattern"===n||"ObjectPattern"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isClass=function(e,t){if(!e)return!1;const n=e.type;if("Class"===n||"ClassDeclaration"===n||"ClassExpression"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isModuleDeclaration=function(e,t){if(!e)return!1;const n=e.type;if("ModuleDeclaration"===n||"ExportAllDeclaration"===n||"ExportDefaultDeclaration"===n||"ExportNamedDeclaration"===n||"ImportDeclaration"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isExportDeclaration=function(e,t){if(!e)return!1;const n=e.type;if("ExportDeclaration"===n||"ExportAllDeclaration"===n||"ExportDefaultDeclaration"===n||"ExportNamedDeclaration"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isModuleSpecifier=function(e,t){if(!e)return!1;const n=e.type;if("ModuleSpecifier"===n||"ExportSpecifier"===n||"ImportDefaultSpecifier"===n||"ImportNamespaceSpecifier"===n||"ImportSpecifier"===n||"ExportDefaultSpecifier"===n||"ExportNamespaceSpecifier"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isFlow=function(e,t){if(!e)return!1;const n=e.type;if("Flow"===n||"AnyTypeAnnotation"===n||"ArrayTypeAnnotation"===n||"BooleanTypeAnnotation"===n||"BooleanLiteralTypeAnnotation"===n||"NullLiteralTypeAnnotation"===n||"ClassImplements"===n||"DeclareClass"===n||"DeclareFunction"===n||"DeclareInterface"===n||"DeclareModule"===n||"DeclareModuleExports"===n||"DeclareTypeAlias"===n||"DeclareOpaqueType"===n||"DeclareVariable"===n||"DeclareExportDeclaration"===n||"DeclareExportAllDeclaration"===n||"DeclaredPredicate"===n||"ExistsTypeAnnotation"===n||"FunctionTypeAnnotation"===n||"FunctionTypeParam"===n||"GenericTypeAnnotation"===n||"InferredPredicate"===n||"InterfaceExtends"===n||"InterfaceDeclaration"===n||"InterfaceTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"MixedTypeAnnotation"===n||"EmptyTypeAnnotation"===n||"NullableTypeAnnotation"===n||"NumberLiteralTypeAnnotation"===n||"NumberTypeAnnotation"===n||"ObjectTypeAnnotation"===n||"ObjectTypeInternalSlot"===n||"ObjectTypeCallProperty"===n||"ObjectTypeIndexer"===n||"ObjectTypeProperty"===n||"ObjectTypeSpreadProperty"===n||"OpaqueType"===n||"QualifiedTypeIdentifier"===n||"StringLiteralTypeAnnotation"===n||"StringTypeAnnotation"===n||"ThisTypeAnnotation"===n||"TupleTypeAnnotation"===n||"TypeofTypeAnnotation"===n||"TypeAlias"===n||"TypeAnnotation"===n||"TypeCastExpression"===n||"TypeParameter"===n||"TypeParameterDeclaration"===n||"TypeParameterInstantiation"===n||"UnionTypeAnnotation"===n||"Variance"===n||"VoidTypeAnnotation"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isFlowType=function(e,t){if(!e)return!1;const n=e.type;if("FlowType"===n||"AnyTypeAnnotation"===n||"ArrayTypeAnnotation"===n||"BooleanTypeAnnotation"===n||"BooleanLiteralTypeAnnotation"===n||"NullLiteralTypeAnnotation"===n||"ExistsTypeAnnotation"===n||"FunctionTypeAnnotation"===n||"GenericTypeAnnotation"===n||"InterfaceTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"MixedTypeAnnotation"===n||"EmptyTypeAnnotation"===n||"NullableTypeAnnotation"===n||"NumberLiteralTypeAnnotation"===n||"NumberTypeAnnotation"===n||"ObjectTypeAnnotation"===n||"StringLiteralTypeAnnotation"===n||"StringTypeAnnotation"===n||"ThisTypeAnnotation"===n||"TupleTypeAnnotation"===n||"TypeofTypeAnnotation"===n||"UnionTypeAnnotation"===n||"VoidTypeAnnotation"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;const n=e.type;if("FlowBaseAnnotation"===n||"AnyTypeAnnotation"===n||"BooleanTypeAnnotation"===n||"NullLiteralTypeAnnotation"===n||"MixedTypeAnnotation"===n||"EmptyTypeAnnotation"===n||"NumberTypeAnnotation"===n||"StringTypeAnnotation"===n||"ThisTypeAnnotation"===n||"VoidTypeAnnotation"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isFlowDeclaration=function(e,t){if(!e)return!1;const n=e.type;if("FlowDeclaration"===n||"DeclareClass"===n||"DeclareFunction"===n||"DeclareInterface"===n||"DeclareModule"===n||"DeclareModuleExports"===n||"DeclareTypeAlias"===n||"DeclareOpaqueType"===n||"DeclareVariable"===n||"DeclareExportDeclaration"===n||"DeclareExportAllDeclaration"===n||"InterfaceDeclaration"===n||"OpaqueType"===n||"TypeAlias"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isFlowPredicate=function(e,t){if(!e)return!1;const n=e.type;if("FlowPredicate"===n||"DeclaredPredicate"===n||"InferredPredicate"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isJSX=function(e,t){if(!e)return!1;const n=e.type;if("JSX"===n||"JSXAttribute"===n||"JSXClosingElement"===n||"JSXElement"===n||"JSXEmptyExpression"===n||"JSXExpressionContainer"===n||"JSXSpreadChild"===n||"JSXIdentifier"===n||"JSXMemberExpression"===n||"JSXNamespacedName"===n||"JSXOpeningElement"===n||"JSXSpreadAttribute"===n||"JSXText"===n||"JSXFragment"===n||"JSXOpeningFragment"===n||"JSXClosingFragment"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isPrivate=function(e,t){if(!e)return!1;const n=e.type;if("Private"===n||"ClassPrivateProperty"===n||"PrivateName"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isTSTypeElement=function(e,t){if(!e)return!1;const n=e.type;if("TSTypeElement"===n||"TSCallSignatureDeclaration"===n||"TSConstructSignatureDeclaration"===n||"TSPropertySignature"===n||"TSMethodSignature"===n||"TSIndexSignature"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isTSType=function(e,t){if(!e)return!1;const n=e.type;if("TSType"===n||"TSAnyKeyword"===n||"TSNumberKeyword"===n||"TSObjectKeyword"===n||"TSBooleanKeyword"===n||"TSStringKeyword"===n||"TSSymbolKeyword"===n||"TSVoidKeyword"===n||"TSUndefinedKeyword"===n||"TSNullKeyword"===n||"TSNeverKeyword"===n||"TSThisType"===n||"TSFunctionType"===n||"TSConstructorType"===n||"TSTypeReference"===n||"TSTypePredicate"===n||"TSTypeQuery"===n||"TSTypeLiteral"===n||"TSArrayType"===n||"TSTupleType"===n||"TSUnionType"===n||"TSIntersectionType"===n||"TSConditionalType"===n||"TSInferType"===n||"TSParenthesizedType"===n||"TSTypeOperator"===n||"TSIndexedAccessType"===n||"TSMappedType"===n||"TSLiteralType"===n||"TSExpressionWithTypeArguments"===n)return void 0===t||(0,r.default)(e,t);return!1},t.isNumberLiteral=function(e,t){if(console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!e)return!1;if("NumberLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isRegexLiteral=function(e,t){if(console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!e)return!1;if("RegexLiteral"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isRestProperty=function(e,t){if(console.trace("The node type RestProperty has been renamed to RestElement"),!e)return!1;if("RestProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1},t.isSpreadProperty=function(e,t){if(console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!e)return!1;if("SpreadProperty"===e.type)return void 0===t||(0,r.default)(e,t);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(45))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayExpression=t.ArrayExpression=function(...e){return(0,r.default)("ArrayExpression",...e)},t.assignmentExpression=t.AssignmentExpression=function(...e){return(0,r.default)("AssignmentExpression",...e)},t.binaryExpression=t.BinaryExpression=function(...e){return(0,r.default)("BinaryExpression",...e)},t.interpreterDirective=t.InterpreterDirective=function(...e){return(0,r.default)("InterpreterDirective",...e)},t.directive=t.Directive=function(...e){return(0,r.default)("Directive",...e)},t.directiveLiteral=t.DirectiveLiteral=function(...e){return(0,r.default)("DirectiveLiteral",...e)},t.blockStatement=t.BlockStatement=function(...e){return(0,r.default)("BlockStatement",...e)},t.breakStatement=t.BreakStatement=function(...e){return(0,r.default)("BreakStatement",...e)},t.callExpression=t.CallExpression=function(...e){return(0,r.default)("CallExpression",...e)},t.catchClause=t.CatchClause=function(...e){return(0,r.default)("CatchClause",...e)},t.conditionalExpression=t.ConditionalExpression=function(...e){return(0,r.default)("ConditionalExpression",...e)},t.continueStatement=t.ContinueStatement=function(...e){return(0,r.default)("ContinueStatement",...e)},t.debuggerStatement=t.DebuggerStatement=function(...e){return(0,r.default)("DebuggerStatement",...e)},t.doWhileStatement=t.DoWhileStatement=function(...e){return(0,r.default)("DoWhileStatement",...e)},t.emptyStatement=t.EmptyStatement=function(...e){return(0,r.default)("EmptyStatement",...e)},t.expressionStatement=t.ExpressionStatement=function(...e){return(0,r.default)("ExpressionStatement",...e)},t.file=t.File=function(...e){return(0,r.default)("File",...e)},t.forInStatement=t.ForInStatement=function(...e){return(0,r.default)("ForInStatement",...e)},t.forStatement=t.ForStatement=function(...e){return(0,r.default)("ForStatement",...e)},t.functionDeclaration=t.FunctionDeclaration=function(...e){return(0,r.default)("FunctionDeclaration",...e)},t.functionExpression=t.FunctionExpression=function(...e){return(0,r.default)("FunctionExpression",...e)},t.identifier=t.Identifier=function(...e){return(0,r.default)("Identifier",...e)},t.ifStatement=t.IfStatement=function(...e){return(0,r.default)("IfStatement",...e)},t.labeledStatement=t.LabeledStatement=function(...e){return(0,r.default)("LabeledStatement",...e)},t.stringLiteral=t.StringLiteral=function(...e){return(0,r.default)("StringLiteral",...e)},t.numericLiteral=t.NumericLiteral=function(...e){return(0,r.default)("NumericLiteral",...e)},t.nullLiteral=t.NullLiteral=function(...e){return(0,r.default)("NullLiteral",...e)},t.booleanLiteral=t.BooleanLiteral=function(...e){return(0,r.default)("BooleanLiteral",...e)},t.regExpLiteral=t.RegExpLiteral=function(...e){return(0,r.default)("RegExpLiteral",...e)},t.logicalExpression=t.LogicalExpression=function(...e){return(0,r.default)("LogicalExpression",...e)},t.memberExpression=t.MemberExpression=function(...e){return(0,r.default)("MemberExpression",...e)},t.newExpression=t.NewExpression=function(...e){return(0,r.default)("NewExpression",...e)},t.program=t.Program=function(...e){return(0,r.default)("Program",...e)},t.objectExpression=t.ObjectExpression=function(...e){return(0,r.default)("ObjectExpression",...e)},t.objectMethod=t.ObjectMethod=function(...e){return(0,r.default)("ObjectMethod",...e)},t.objectProperty=t.ObjectProperty=function(...e){return(0,r.default)("ObjectProperty",...e)},t.restElement=t.RestElement=function(...e){return(0,r.default)("RestElement",...e)},t.returnStatement=t.ReturnStatement=function(...e){return(0,r.default)("ReturnStatement",...e)},t.sequenceExpression=t.SequenceExpression=function(...e){return(0,r.default)("SequenceExpression",...e)},t.switchCase=t.SwitchCase=function(...e){return(0,r.default)("SwitchCase",...e)},t.switchStatement=t.SwitchStatement=function(...e){return(0,r.default)("SwitchStatement",...e)},t.thisExpression=t.ThisExpression=function(...e){return(0,r.default)("ThisExpression",...e)},t.throwStatement=t.ThrowStatement=function(...e){return(0,r.default)("ThrowStatement",...e)},t.tryStatement=t.TryStatement=function(...e){return(0,r.default)("TryStatement",...e)},t.unaryExpression=t.UnaryExpression=function(...e){return(0,r.default)("UnaryExpression",...e)},t.updateExpression=t.UpdateExpression=function(...e){return(0,r.default)("UpdateExpression",...e)},t.variableDeclaration=t.VariableDeclaration=function(...e){return(0,r.default)("VariableDeclaration",...e)},t.variableDeclarator=t.VariableDeclarator=function(...e){return(0,r.default)("VariableDeclarator",...e)},t.whileStatement=t.WhileStatement=function(...e){return(0,r.default)("WhileStatement",...e)},t.withStatement=t.WithStatement=function(...e){return(0,r.default)("WithStatement",...e)},t.assignmentPattern=t.AssignmentPattern=function(...e){return(0,r.default)("AssignmentPattern",...e)},t.arrayPattern=t.ArrayPattern=function(...e){return(0,r.default)("ArrayPattern",...e)},t.arrowFunctionExpression=t.ArrowFunctionExpression=function(...e){return(0,r.default)("ArrowFunctionExpression",...e)},t.classBody=t.ClassBody=function(...e){return(0,r.default)("ClassBody",...e)},t.classDeclaration=t.ClassDeclaration=function(...e){return(0,r.default)("ClassDeclaration",...e)},t.classExpression=t.ClassExpression=function(...e){return(0,r.default)("ClassExpression",...e)},t.exportAllDeclaration=t.ExportAllDeclaration=function(...e){return(0,r.default)("ExportAllDeclaration",...e)},t.exportDefaultDeclaration=t.ExportDefaultDeclaration=function(...e){return(0,r.default)("ExportDefaultDeclaration",...e)},t.exportNamedDeclaration=t.ExportNamedDeclaration=function(...e){return(0,r.default)("ExportNamedDeclaration",...e)},t.exportSpecifier=t.ExportSpecifier=function(...e){return(0,r.default)("ExportSpecifier",...e)},t.forOfStatement=t.ForOfStatement=function(...e){return(0,r.default)("ForOfStatement",...e)},t.importDeclaration=t.ImportDeclaration=function(...e){return(0,r.default)("ImportDeclaration",...e)},t.importDefaultSpecifier=t.ImportDefaultSpecifier=function(...e){return(0,r.default)("ImportDefaultSpecifier",...e)},t.importNamespaceSpecifier=t.ImportNamespaceSpecifier=function(...e){return(0,r.default)("ImportNamespaceSpecifier",...e)},t.importSpecifier=t.ImportSpecifier=function(...e){return(0,r.default)("ImportSpecifier",...e)},t.metaProperty=t.MetaProperty=function(...e){return(0,r.default)("MetaProperty",...e)},t.classMethod=t.ClassMethod=function(...e){return(0,r.default)("ClassMethod",...e)},t.objectPattern=t.ObjectPattern=function(...e){return(0,r.default)("ObjectPattern",...e)},t.spreadElement=t.SpreadElement=function(...e){return(0,r.default)("SpreadElement",...e)},t.super=t.Super=function(...e){return(0,r.default)("Super",...e)},t.taggedTemplateExpression=t.TaggedTemplateExpression=function(...e){return(0,r.default)("TaggedTemplateExpression",...e)},t.templateElement=t.TemplateElement=function(...e){return(0,r.default)("TemplateElement",...e)},t.templateLiteral=t.TemplateLiteral=function(...e){return(0,r.default)("TemplateLiteral",...e)},t.yieldExpression=t.YieldExpression=function(...e){return(0,r.default)("YieldExpression",...e)},t.anyTypeAnnotation=t.AnyTypeAnnotation=function(...e){return(0,r.default)("AnyTypeAnnotation",...e)},t.arrayTypeAnnotation=t.ArrayTypeAnnotation=function(...e){return(0,r.default)("ArrayTypeAnnotation",...e)},t.booleanTypeAnnotation=t.BooleanTypeAnnotation=function(...e){return(0,r.default)("BooleanTypeAnnotation",...e)},t.booleanLiteralTypeAnnotation=t.BooleanLiteralTypeAnnotation=function(...e){return(0,r.default)("BooleanLiteralTypeAnnotation",...e)},t.nullLiteralTypeAnnotation=t.NullLiteralTypeAnnotation=function(...e){return(0,r.default)("NullLiteralTypeAnnotation",...e)},t.classImplements=t.ClassImplements=function(...e){return(0,r.default)("ClassImplements",...e)},t.declareClass=t.DeclareClass=function(...e){return(0,r.default)("DeclareClass",...e)},t.declareFunction=t.DeclareFunction=function(...e){return(0,r.default)("DeclareFunction",...e)},t.declareInterface=t.DeclareInterface=function(...e){return(0,r.default)("DeclareInterface",...e)},t.declareModule=t.DeclareModule=function(...e){return(0,r.default)("DeclareModule",...e)},t.declareModuleExports=t.DeclareModuleExports=function(...e){return(0,r.default)("DeclareModuleExports",...e)},t.declareTypeAlias=t.DeclareTypeAlias=function(...e){return(0,r.default)("DeclareTypeAlias",...e)},t.declareOpaqueType=t.DeclareOpaqueType=function(...e){return(0,r.default)("DeclareOpaqueType",...e)},t.declareVariable=t.DeclareVariable=function(...e){return(0,r.default)("DeclareVariable",...e)},t.declareExportDeclaration=t.DeclareExportDeclaration=function(...e){return(0,r.default)("DeclareExportDeclaration",...e)},t.declareExportAllDeclaration=t.DeclareExportAllDeclaration=function(...e){return(0,r.default)("DeclareExportAllDeclaration",...e)},t.declaredPredicate=t.DeclaredPredicate=function(...e){return(0,r.default)("DeclaredPredicate",...e)},t.existsTypeAnnotation=t.ExistsTypeAnnotation=function(...e){return(0,r.default)("ExistsTypeAnnotation",...e)},t.functionTypeAnnotation=t.FunctionTypeAnnotation=function(...e){return(0,r.default)("FunctionTypeAnnotation",...e)},t.functionTypeParam=t.FunctionTypeParam=function(...e){return(0,r.default)("FunctionTypeParam",...e)},t.genericTypeAnnotation=t.GenericTypeAnnotation=function(...e){return(0,r.default)("GenericTypeAnnotation",...e)},t.inferredPredicate=t.InferredPredicate=function(...e){return(0,r.default)("InferredPredicate",...e)},t.interfaceExtends=t.InterfaceExtends=function(...e){return(0,r.default)("InterfaceExtends",...e)},t.interfaceDeclaration=t.InterfaceDeclaration=function(...e){return(0,r.default)("InterfaceDeclaration",...e)},t.interfaceTypeAnnotation=t.InterfaceTypeAnnotation=function(...e){return(0,r.default)("InterfaceTypeAnnotation",...e)},t.intersectionTypeAnnotation=t.IntersectionTypeAnnotation=function(...e){return(0,r.default)("IntersectionTypeAnnotation",...e)},t.mixedTypeAnnotation=t.MixedTypeAnnotation=function(...e){return(0,r.default)("MixedTypeAnnotation",...e)},t.emptyTypeAnnotation=t.EmptyTypeAnnotation=function(...e){return(0,r.default)("EmptyTypeAnnotation",...e)},t.nullableTypeAnnotation=t.NullableTypeAnnotation=function(...e){return(0,r.default)("NullableTypeAnnotation",...e)},t.numberLiteralTypeAnnotation=t.NumberLiteralTypeAnnotation=function(...e){return(0,r.default)("NumberLiteralTypeAnnotation",...e)},t.numberTypeAnnotation=t.NumberTypeAnnotation=function(...e){return(0,r.default)("NumberTypeAnnotation",...e)},t.objectTypeAnnotation=t.ObjectTypeAnnotation=function(...e){return(0,r.default)("ObjectTypeAnnotation",...e)},t.objectTypeInternalSlot=t.ObjectTypeInternalSlot=function(...e){return(0,r.default)("ObjectTypeInternalSlot",...e)},t.objectTypeCallProperty=t.ObjectTypeCallProperty=function(...e){return(0,r.default)("ObjectTypeCallProperty",...e)},t.objectTypeIndexer=t.ObjectTypeIndexer=function(...e){return(0,r.default)("ObjectTypeIndexer",...e)},t.objectTypeProperty=t.ObjectTypeProperty=function(...e){return(0,r.default)("ObjectTypeProperty",...e)},t.objectTypeSpreadProperty=t.ObjectTypeSpreadProperty=function(...e){return(0,r.default)("ObjectTypeSpreadProperty",...e)},t.opaqueType=t.OpaqueType=function(...e){return(0,r.default)("OpaqueType",...e)},t.qualifiedTypeIdentifier=t.QualifiedTypeIdentifier=function(...e){return(0,r.default)("QualifiedTypeIdentifier",...e)},t.stringLiteralTypeAnnotation=t.StringLiteralTypeAnnotation=function(...e){return(0,r.default)("StringLiteralTypeAnnotation",...e)},t.stringTypeAnnotation=t.StringTypeAnnotation=function(...e){return(0,r.default)("StringTypeAnnotation",...e)},t.thisTypeAnnotation=t.ThisTypeAnnotation=function(...e){return(0,r.default)("ThisTypeAnnotation",...e)},t.tupleTypeAnnotation=t.TupleTypeAnnotation=function(...e){return(0,r.default)("TupleTypeAnnotation",...e)},t.typeofTypeAnnotation=t.TypeofTypeAnnotation=function(...e){return(0,r.default)("TypeofTypeAnnotation",...e)},t.typeAlias=t.TypeAlias=function(...e){return(0,r.default)("TypeAlias",...e)},t.typeAnnotation=t.TypeAnnotation=function(...e){return(0,r.default)("TypeAnnotation",...e)},t.typeCastExpression=t.TypeCastExpression=function(...e){return(0,r.default)("TypeCastExpression",...e)},t.typeParameter=t.TypeParameter=function(...e){return(0,r.default)("TypeParameter",...e)},t.typeParameterDeclaration=t.TypeParameterDeclaration=function(...e){return(0,r.default)("TypeParameterDeclaration",...e)},t.typeParameterInstantiation=t.TypeParameterInstantiation=function(...e){return(0,r.default)("TypeParameterInstantiation",...e)},t.unionTypeAnnotation=t.UnionTypeAnnotation=function(...e){return(0,r.default)("UnionTypeAnnotation",...e)},t.variance=t.Variance=function(...e){return(0,r.default)("Variance",...e)},t.voidTypeAnnotation=t.VoidTypeAnnotation=function(...e){return(0,r.default)("VoidTypeAnnotation",...e)},t.jSXAttribute=t.jsxAttribute=t.JSXAttribute=function(...e){return(0,r.default)("JSXAttribute",...e)},t.jSXClosingElement=t.jsxClosingElement=t.JSXClosingElement=function(...e){return(0,r.default)("JSXClosingElement",...e)},t.jSXElement=t.jsxElement=t.JSXElement=function(...e){return(0,r.default)("JSXElement",...e)},t.jSXEmptyExpression=t.jsxEmptyExpression=t.JSXEmptyExpression=function(...e){return(0,r.default)("JSXEmptyExpression",...e)},t.jSXExpressionContainer=t.jsxExpressionContainer=t.JSXExpressionContainer=function(...e){return(0,r.default)("JSXExpressionContainer",...e)},t.jSXSpreadChild=t.jsxSpreadChild=t.JSXSpreadChild=function(...e){return(0,r.default)("JSXSpreadChild",...e)},t.jSXIdentifier=t.jsxIdentifier=t.JSXIdentifier=function(...e){return(0,r.default)("JSXIdentifier",...e)},t.jSXMemberExpression=t.jsxMemberExpression=t.JSXMemberExpression=function(...e){return(0,r.default)("JSXMemberExpression",...e)},t.jSXNamespacedName=t.jsxNamespacedName=t.JSXNamespacedName=function(...e){return(0,r.default)("JSXNamespacedName",...e)},t.jSXOpeningElement=t.jsxOpeningElement=t.JSXOpeningElement=function(...e){return(0,r.default)("JSXOpeningElement",...e)},t.jSXSpreadAttribute=t.jsxSpreadAttribute=t.JSXSpreadAttribute=function(...e){return(0,r.default)("JSXSpreadAttribute",...e)},t.jSXText=t.jsxText=t.JSXText=function(...e){return(0,r.default)("JSXText",...e)},t.jSXFragment=t.jsxFragment=t.JSXFragment=function(...e){return(0,r.default)("JSXFragment",...e)},t.jSXOpeningFragment=t.jsxOpeningFragment=t.JSXOpeningFragment=function(...e){return(0,r.default)("JSXOpeningFragment",...e)},t.jSXClosingFragment=t.jsxClosingFragment=t.JSXClosingFragment=function(...e){return(0,r.default)("JSXClosingFragment",...e)},t.noop=t.Noop=function(...e){return(0,r.default)("Noop",...e)},t.parenthesizedExpression=t.ParenthesizedExpression=function(...e){return(0,r.default)("ParenthesizedExpression",...e)},t.awaitExpression=t.AwaitExpression=function(...e){return(0,r.default)("AwaitExpression",...e)},t.bindExpression=t.BindExpression=function(...e){return(0,r.default)("BindExpression",...e)},t.classProperty=t.ClassProperty=function(...e){return(0,r.default)("ClassProperty",...e)},t.optionalMemberExpression=t.OptionalMemberExpression=function(...e){return(0,r.default)("OptionalMemberExpression",...e)},t.optionalCallExpression=t.OptionalCallExpression=function(...e){return(0,r.default)("OptionalCallExpression",...e)},t.classPrivateProperty=t.ClassPrivateProperty=function(...e){return(0,r.default)("ClassPrivateProperty",...e)},t.import=t.Import=function(...e){return(0,r.default)("Import",...e)},t.decorator=t.Decorator=function(...e){return(0,r.default)("Decorator",...e)},t.doExpression=t.DoExpression=function(...e){return(0,r.default)("DoExpression",...e)},t.exportDefaultSpecifier=t.ExportDefaultSpecifier=function(...e){return(0,r.default)("ExportDefaultSpecifier",...e)},t.exportNamespaceSpecifier=t.ExportNamespaceSpecifier=function(...e){return(0,r.default)("ExportNamespaceSpecifier",...e)},t.privateName=t.PrivateName=function(...e){return(0,r.default)("PrivateName",...e)},t.bigIntLiteral=t.BigIntLiteral=function(...e){return(0,r.default)("BigIntLiteral",...e)},t.tSParameterProperty=t.tsParameterProperty=t.TSParameterProperty=function(...e){return(0,r.default)("TSParameterProperty",...e)},t.tSDeclareFunction=t.tsDeclareFunction=t.TSDeclareFunction=function(...e){return(0,r.default)("TSDeclareFunction",...e)},t.tSDeclareMethod=t.tsDeclareMethod=t.TSDeclareMethod=function(...e){return(0,r.default)("TSDeclareMethod",...e)},t.tSQualifiedName=t.tsQualifiedName=t.TSQualifiedName=function(...e){return(0,r.default)("TSQualifiedName",...e)},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=t.TSCallSignatureDeclaration=function(...e){return(0,r.default)("TSCallSignatureDeclaration",...e)},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=t.TSConstructSignatureDeclaration=function(...e){return(0,r.default)("TSConstructSignatureDeclaration",...e)},t.tSPropertySignature=t.tsPropertySignature=t.TSPropertySignature=function(...e){return(0,r.default)("TSPropertySignature",...e)},t.tSMethodSignature=t.tsMethodSignature=t.TSMethodSignature=function(...e){return(0,r.default)("TSMethodSignature",...e)},t.tSIndexSignature=t.tsIndexSignature=t.TSIndexSignature=function(...e){return(0,r.default)("TSIndexSignature",...e)},t.tSAnyKeyword=t.tsAnyKeyword=t.TSAnyKeyword=function(...e){return(0,r.default)("TSAnyKeyword",...e)},t.tSNumberKeyword=t.tsNumberKeyword=t.TSNumberKeyword=function(...e){return(0,r.default)("TSNumberKeyword",...e)},t.tSObjectKeyword=t.tsObjectKeyword=t.TSObjectKeyword=function(...e){return(0,r.default)("TSObjectKeyword",...e)},t.tSBooleanKeyword=t.tsBooleanKeyword=t.TSBooleanKeyword=function(...e){return(0,r.default)("TSBooleanKeyword",...e)},t.tSStringKeyword=t.tsStringKeyword=t.TSStringKeyword=function(...e){return(0,r.default)("TSStringKeyword",...e)},t.tSSymbolKeyword=t.tsSymbolKeyword=t.TSSymbolKeyword=function(...e){return(0,r.default)("TSSymbolKeyword",...e)},t.tSVoidKeyword=t.tsVoidKeyword=t.TSVoidKeyword=function(...e){return(0,r.default)("TSVoidKeyword",...e)},t.tSUndefinedKeyword=t.tsUndefinedKeyword=t.TSUndefinedKeyword=function(...e){return(0,r.default)("TSUndefinedKeyword",...e)},t.tSNullKeyword=t.tsNullKeyword=t.TSNullKeyword=function(...e){return(0,r.default)("TSNullKeyword",...e)},t.tSNeverKeyword=t.tsNeverKeyword=t.TSNeverKeyword=function(...e){return(0,r.default)("TSNeverKeyword",...e)},t.tSThisType=t.tsThisType=t.TSThisType=function(...e){return(0,r.default)("TSThisType",...e)},t.tSFunctionType=t.tsFunctionType=t.TSFunctionType=function(...e){return(0,r.default)("TSFunctionType",...e)},t.tSConstructorType=t.tsConstructorType=t.TSConstructorType=function(...e){return(0,r.default)("TSConstructorType",...e)},t.tSTypeReference=t.tsTypeReference=t.TSTypeReference=function(...e){return(0,r.default)("TSTypeReference",...e)},t.tSTypePredicate=t.tsTypePredicate=t.TSTypePredicate=function(...e){return(0,r.default)("TSTypePredicate",...e)},t.tSTypeQuery=t.tsTypeQuery=t.TSTypeQuery=function(...e){return(0,r.default)("TSTypeQuery",...e)},t.tSTypeLiteral=t.tsTypeLiteral=t.TSTypeLiteral=function(...e){return(0,r.default)("TSTypeLiteral",...e)},t.tSArrayType=t.tsArrayType=t.TSArrayType=function(...e){return(0,r.default)("TSArrayType",...e)},t.tSTupleType=t.tsTupleType=t.TSTupleType=function(...e){return(0,r.default)("TSTupleType",...e)},t.tSUnionType=t.tsUnionType=t.TSUnionType=function(...e){return(0,r.default)("TSUnionType",...e)},t.tSIntersectionType=t.tsIntersectionType=t.TSIntersectionType=function(...e){return(0,r.default)("TSIntersectionType",...e)},t.tSConditionalType=t.tsConditionalType=t.TSConditionalType=function(...e){return(0,r.default)("TSConditionalType",...e)},t.tSInferType=t.tsInferType=t.TSInferType=function(...e){return(0,r.default)("TSInferType",...e)},t.tSParenthesizedType=t.tsParenthesizedType=t.TSParenthesizedType=function(...e){return(0,r.default)("TSParenthesizedType",...e)},t.tSTypeOperator=t.tsTypeOperator=t.TSTypeOperator=function(...e){return(0,r.default)("TSTypeOperator",...e)},t.tSIndexedAccessType=t.tsIndexedAccessType=t.TSIndexedAccessType=function(...e){return(0,r.default)("TSIndexedAccessType",...e)},t.tSMappedType=t.tsMappedType=t.TSMappedType=function(...e){return(0,r.default)("TSMappedType",...e)},t.tSLiteralType=t.tsLiteralType=t.TSLiteralType=function(...e){return(0,r.default)("TSLiteralType",...e)},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=t.TSExpressionWithTypeArguments=function(...e){return(0,r.default)("TSExpressionWithTypeArguments",...e)},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=t.TSInterfaceDeclaration=function(...e){return(0,r.default)("TSInterfaceDeclaration",...e)},t.tSInterfaceBody=t.tsInterfaceBody=t.TSInterfaceBody=function(...e){return(0,r.default)("TSInterfaceBody",...e)},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=t.TSTypeAliasDeclaration=function(...e){return(0,r.default)("TSTypeAliasDeclaration",...e)},t.tSAsExpression=t.tsAsExpression=t.TSAsExpression=function(...e){return(0,r.default)("TSAsExpression",...e)},t.tSTypeAssertion=t.tsTypeAssertion=t.TSTypeAssertion=function(...e){return(0,r.default)("TSTypeAssertion",...e)},t.tSEnumDeclaration=t.tsEnumDeclaration=t.TSEnumDeclaration=function(...e){return(0,r.default)("TSEnumDeclaration",...e)},t.tSEnumMember=t.tsEnumMember=t.TSEnumMember=function(...e){return(0,r.default)("TSEnumMember",...e)},t.tSModuleDeclaration=t.tsModuleDeclaration=t.TSModuleDeclaration=function(...e){return(0,r.default)("TSModuleDeclaration",...e)},t.tSModuleBlock=t.tsModuleBlock=t.TSModuleBlock=function(...e){return(0,r.default)("TSModuleBlock",...e)},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=t.TSImportEqualsDeclaration=function(...e){return(0,r.default)("TSImportEqualsDeclaration",...e)},t.tSExternalModuleReference=t.tsExternalModuleReference=t.TSExternalModuleReference=function(...e){return(0,r.default)("TSExternalModuleReference",...e)},t.tSNonNullExpression=t.tsNonNullExpression=t.TSNonNullExpression=function(...e){return(0,r.default)("TSNonNullExpression",...e)},t.tSExportAssignment=t.tsExportAssignment=t.TSExportAssignment=function(...e){return(0,r.default)("TSExportAssignment",...e)},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=t.TSNamespaceExportDeclaration=function(...e){return(0,r.default)("TSNamespaceExportDeclaration",...e)},t.tSTypeAnnotation=t.tsTypeAnnotation=t.TSTypeAnnotation=function(...e){return(0,r.default)("TSTypeAnnotation",...e)},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=t.TSTypeParameterInstantiation=function(...e){return(0,r.default)("TSTypeParameterInstantiation",...e)},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=t.TSTypeParameterDeclaration=function(...e){return(0,r.default)("TSTypeParameterDeclaration",...e)},t.tSTypeParameter=t.tsTypeParameter=t.TSTypeParameter=function(...e){return(0,r.default)("TSTypeParameter",...e)},t.numberLiteral=t.NumberLiteral=function e(...t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral");return e("NumberLiteral",...t)},t.regexLiteral=t.RegexLiteral=function e(...t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");return e("RegexLiteral",...t)},t.restProperty=t.RestProperty=function e(...t){console.trace("The node type RestProperty has been renamed to RestElement");return e("RestProperty",...t)},t.spreadProperty=t.SpreadProperty=function e(...t){console.trace("The node type SpreadProperty has been renamed to SpreadElement");return e("SpreadProperty",...t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(128))},function(e,t){e.exports=require("fs")},function(e,t,n){"use strict";function r(){const e=function(e){return e&&e.__esModule?e:{default:e}}(n(130));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return i.VISITOR_KEYS}}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return i.ALIAS_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return i.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return i.NODE_FIELDS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return i.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return i.DEPRECATED_KEYS}}),t.TYPES=void 0,n(46),n(49),n(132),n(133),n(134),n(135),n(136);var i=n(20);(0,r().default)(i.VISITOR_KEYS),(0,r().default)(i.ALIAS_KEYS),(0,r().default)(i.FLIPPED_ALIAS_KEYS),(0,r().default)(i.NODE_FIELDS),(0,r().default)(i.BUILDER_KEYS),(0,r().default)(i.DEPRECATED_KEYS);const a=Object.keys(i.VISITOR_KEYS).concat(Object.keys(i.FLIPPED_ALIAS_KEYS)).concat(Object.keys(i.DEPRECATED_KEYS));t.TYPES=a},function(e,t,n){"use strict";e.exports={AFTER:"after",BEFORE:"before",FIRST:"first",KEY:"key",LAST:"last"}},function(e,t,n){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t instanceof n(0).GraphQLNonNull&&r instanceof n(0).GraphQLNonNull)return e(t.ofType,r.ofType);if(t instanceof n(0).GraphQLList&&r instanceof n(0).GraphQLList)return e(t.ofType,r.ofType);if(t.constructor.name===r.constructor.name){var i=n(3).getRawType(t),a=n(3).getRawType(r);return i.name===a.name}return!1}},function(e,t){function n(e,t,n,r,i,a,s){try{var o=e[a](s),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var s=e.apply(t,r);function o(e){n(s,i,a,o,l,"next",e)}function l(e){n(s,i,a,o,l,"throw",e)}o(void 0)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=p,t.typeIs=f,t.validateType=function(e){return p(f(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:f(e),optional:!0}},t.arrayOf=d,t.arrayOfType=h,t.validateArrayOfType=function(e){return p(h(e))},t.assertEach=m,t.assertOneOf=function(...e){function t(t,n,r){if(e.indexOf(r)<0)throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(r)}`)}return t.oneOf=e,t},t.assertNodeType=y,t.assertNodeOrValueType=function(...e){function t(t,n,i){let a=!1;for(const t of e)if(c(i)===t||(0,r.default)(t,i)){a=!0;break}if(!a)throw new TypeError(`Property ${n} of ${t.type} expected node to be of a type ${JSON.stringify(e)} `+`but instead got ${JSON.stringify(i&&i.type)}`)}return t.oneOfNodeOrValueTypes=e,t},t.assertValueType=v,t.chain=T,t.default=function(e,t={}){const n=t.inherits&&g[t.inherits]||{},r=t.fields||n.fields||{},p=t.visitor||n.visitor||[],f=t.aliases||n.aliases||[],d=t.builder||n.builder||t.visitor||[];t.deprecatedAlias&&(u[t.deprecatedAlias]=e);for(const e of p.concat(d))r[e]=r[e]||{};for(const e in r){const t=r[e];-1===d.indexOf(e)&&(t.optional=!0),void 0===t.default?t.default=null:t.validate||(t.validate=v(c(t.default)))}i[e]=t.visitor=p,l[e]=t.builder=d,o[e]=t.fields=r,a[e]=t.aliases=f,f.forEach(t=>{s[t]=s[t]||[],s[t].push(e)}),g[e]=t},t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(47));const i={};t.VISITOR_KEYS=i;const a={};t.ALIAS_KEYS=a;const s={};t.FLIPPED_ALIAS_KEYS=s;const o={};t.NODE_FIELDS=o;const l={};t.BUILDER_KEYS=l;const u={};function c(e){return Array.isArray(e)?"array":null===e?"null":void 0===e?"undefined":typeof e}function p(e){return{validate:e}}function f(e){return"string"==typeof e?y(e):y(...e)}function d(e){return T(v("array"),m(e))}function h(e){return d(f(e))}function m(e){function t(t,n,r){if(Array.isArray(r))for(let i=0;i<r.length;i++)e(t,`${n}[${i}]`,r[i])}return t.each=e,t}function y(...e){function t(t,n,i){let a=!1;for(const t of e)if((0,r.default)(t,i)){a=!0;break}if(!a)throw new TypeError(`Property ${n} of ${t.type} expected node to be of a type ${JSON.stringify(e)} `+`but instead got ${JSON.stringify(i&&i.type)}`)}return t.oneOfNodeTypes=e,t}function v(e){function t(t,n,r){if(!(c(r)===e))throw new TypeError(`Property ${n} expected type of ${e} but got ${c(r)}`)}return t.type=e,t}function T(...e){function t(...t){for(const n of e)n(...t)}return t.chainOf=e,t}t.DEPRECATED_KEYS=u;const g={}},function(e,t,n){"use strict";var r={Argument:["value"],Condition:["condition","selections"],Defer:["selections","if"],Directive:["args"],Fragment:["argumentDefinitions","directives","selections"],FragmentSpread:["args","directives"],InlineFragment:["directives","selections"],LinkedField:["args","directives","selections"],Literal:[],LocalArgumentDefinition:[],MatchField:["args","directives","selections"],MatchBranch:["selections"],Request:["fragment","root"],Root:["argumentDefinitions","directives","selections"],RootArgumentDefinition:[],ScalarField:["args","directives"],SplitOperation:["selections"],Stream:["selections","if","initialCount"],Variable:[]};e.exports={visit:function(e,t){return n(0).visit(e,t,r)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];t.FLATTENABLE_KEYS=["body","expressions"];t.FOR_INIT_KEYS=["left","init"];t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];t.LOGICAL_OPERATORS=["||","&&","??"];t.UPDATE_OPERATORS=["++","--"];const r=[">","<",">=","<="];t.BOOLEAN_NUMBER_BINARY_OPERATORS=r;const i=["==","===","!=","!=="];t.EQUALITY_BINARY_OPERATORS=i;const a=[...i,"in","instanceof"];t.COMPARISON_BINARY_OPERATORS=a;const s=[...a,...r];t.BOOLEAN_BINARY_OPERATORS=s;const o=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.NUMBER_BINARY_OPERATORS=o;const l=["+",...o,...s];t.BINARY_OPERATORS=l;const u=["delete","!"];t.BOOLEAN_UNARY_OPERATORS=u;const c=["+","-","~"];t.NUMBER_UNARY_OPERATORS=c;const p=["typeof"];t.STRING_UNARY_OPERATORS=p;const f=["void","throw",...u,...c,...p];t.UNARY_OPERATORS=f;t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const d=Symbol.for("var used to be block scoped");t.BLOCK_SCOPED_SYMBOL=d;const h=Symbol.for("should not be considered a local binding");t.NOT_LOCAL_BINDING=h},function(e,t){e.exports=require("nullthrows")},function(e,t){e.exports=require("immutable")},function(e,t,n){"use strict";function r(e,t,r,i){var a=[];t.forEach(function(e){n(3).isExecutableDefinitionAST(e)&&a.push(e)});var s={kind:"Document",definitions:a};return n(36).validate(s,e,r),i(e,a)}function i(e){var t=[];return e.forEach(function(e){e.definitions.forEach(function(e){return t.push(e)})}),t}var a=new Map;function s(e,t,n){var r=a.get(e);r||(r={},a.set(e,r));var i=r[t];return i||(i=n(),r[t]=i),i}e.exports={convertASTDocuments:function(e,t,a,s){return n(6).run("ASTConvert.convertASTDocuments",function(){var o=i(t),l=[];return t.forEach(function(e){e.definitions.forEach(function(e){n(3).isExecutableDefinitionAST(e)&&l.push(e)})}),r(e,o,a,s)})},convertASTDocumentsWithBase:function(e,t,a,s,o){return n(6).run("ASTConvert.convertASTDocumentsWithBase",function(){var l=i(t),u=i(a),c=new Map,p=new Map;l.forEach(function(e){if(n(3).isExecutableDefinitionAST(e)){var t=e.name&&e.name.value;if(t){if(p.has(t))throw new Error("Duplicate definition of '".concat(t,"'."));p.set(t,e)}}});var f=[];for(u.forEach(function(e){n(3).isExecutableDefinitionAST(e)&&f.push(e)});f.length>0;){var d=f.pop(),h=d.name&&d.name.value;if(h)if(c.has(h)){if(c.get(h)!==d)throw new Error("Duplicate definition of '".concat(h,"'."))}else c.set(h,d),n(0).visit(d,{FragmentSpread:function(e){var t=p.get(e.name.value);t&&f.push(t)}})}var m=[];return c.forEach(function(e){return m.push(e)}),r(e,m,s,o)})},extendASTSchema:function(e,t){return n(6).run("ASTConvert.extendASTSchema",function(){var r=[];if(t.forEach(function(e){e.definitions.forEach(function(e){n(3).isSchemaDefinitionAST(e)&&r.push(e)})}),0===r.length)return e;var i=r.map(n(0).print).join("\n");return s(e,i,function(){return n(0).extendSchema(e,{kind:"Document",definitions:r},{assumeValid:!0})})})},transformASTSchema:function(e,t){return n(6).run("ASTConvert.transformASTSchema",function(){if(0===t.length)return e;var r=t.join("\n");return s(e,r,function(){return n(0).extendSchema(e,n(0).parse(r))})})}}},function(e,t,n){"use strict";var r=n(19),i=n(5)(n(11)),a=function(){function e(e,t){var r=this,i=t.filesystem,a=t.onlyValidate;if(this._filesystem=i||n(15),this.onlyValidate=a,this._filesystem.existsSync(e))this._filesystem.statSync(e).isDirectory()||n(4)(!1,"Expected `%s` to be a directory.",e);else if(!this.onlyValidate){for(var s=[e],o=n(8).dirname(e);!this._filesystem.existsSync(o);)s.unshift(o),o=n(8).dirname(o);s.forEach(function(e){return r._filesystem.mkdirSync(e)})}this._files=new Set,this.changes={deleted:[],updated:[],created:[],unchanged:[]},this._dir=e}e.combineChanges=function(e){var t={deleted:[],updated:[],created:[],unchanged:[]};return e.forEach(function(e){var n,r,a,s;(n=t.deleted).push.apply(n,(0,i.default)(e.changes.deleted)),(r=t.updated).push.apply(r,(0,i.default)(e.changes.updated)),(a=t.created).push.apply(a,(0,i.default)(e.changes.created)),(s=t.unchanged).push.apply(s,(0,i.default)(e.changes.unchanged))}),t},e.hasChanges=function(e){return e.created.length>0||e.updated.length>0||e.deleted.length>0},e.printChanges=function(e,t){n(6).run("CodegenDirectory.printChanges",function(){var n=[];function r(e,t){t.length>0&&(n.push(e+":"),t.forEach(function(e){n.push(" - "+e)}))}t.onlyValidate?(r("Missing",e.created),r("Out of date",e.updated),r("Extra",e.deleted)):(r("Created",e.created),r("Updated",e.updated),r("Deleted",e.deleted),n.push("Unchanged: ".concat(e.unchanged.length," files"))),console.log(n.join("\n"))})},e.getAddedRemovedFiles=function(e){var t=[],n=[];return e.forEach(function(e){e.changes.created.forEach(function(n){t.push(e.getPath(n))}),e.changes.deleted.forEach(function(t){n.push(e.getPath(t))})}),{added:t,removed:n}},e.sourceControlAddRemove=function(){var t=r(function*(t,n){var r=e.getAddedRemovedFiles(n),i=r.added,a=r.removed;t.addRemove(i,a)});return function(e,n){return t.apply(this,arguments)}}();var t=e.prototype;return t.printChanges=function(){e.printChanges(this.changes,{onlyValidate:this.onlyValidate})},t.read=function(e){var t=n(8).join(this._dir,e);return this._filesystem.existsSync(t)?this._filesystem.readFileSync(t,"utf8"):null},t.markUnchanged=function(e){this._addGenerated(e),this.changes.unchanged.push(e)},t.markUpdated=function(e){this._addGenerated(e),this.changes.updated.push(e)},t.writeFile=function(e,t){var r=this;n(6).run("CodegenDirectory.writeFile",function(){r._addGenerated(e);var i=n(8).join(r._dir,e);r._filesystem.existsSync(i)?r._filesystem.readFileSync(i,"utf8")===t?r.changes.unchanged.push(e):(r._writeFile(i,t),r.changes.updated.push(e)):(r._writeFile(i,t),r.changes.created.push(e))})},t._writeFile=function(e,t){this.onlyValidate||this._filesystem.writeFileSync(e,t,"utf8")},t.deleteExtraFiles=function(e){var t=this;n(6).run("CodegenDirectory.deleteExtraFiles",function(){t._filesystem.readdirSync(t._dir).forEach(function(r){if(!(t._files.has(r)||/^\./.test(r)||null!=e&&e.test(r))){if(!t.onlyValidate)try{t._filesystem.unlinkSync(n(8).join(t._dir,r))}catch(e){throw new Error("CodegenDirectory: Failed to delete `"+r+"` in `"+t._dir+"`.")}t.changes.deleted.push(r)}})})},t.getPath=function(e){return n(8).join(this._dir,e)},t._addGenerated=function(e){this._files.has(e)&&n(4)(!1,"CodegenDirectory: Tried to generate `%s` twice in `%s`.",e,this._dir),this._files.add(e)},e}();e.exports=a},function(e,t){e.exports=require("chalk")},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";var r=n(19),i=5;function a(e){return new Promise(function(t){return setTimeout(t,e)})}var s=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._client=new(n(59).Client),this._attemptLimit=Math.max(Math.min(i,e),0)}e.isAvailable=function(){return new Promise(function(t){var n=new e(i);n.on("error",function(){t(!1),n.end()}),n.hasCapability("relative_root").then(function(e){t(e),n.end()},function(){t(!1),n.end()})})};var t=e.prototype;return t._command=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise(function(t,r){e._client.command(n,function(e,n){e?r(e):t(n)})})},t.command=function(){var e=r(function*(){for(var e=0,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];for(;;)try{return e++,yield this._command.apply(this,r)}catch(t){if(e>this._attemptLimit)throw t;yield a(500*Math.pow(2,e)),this._client.end(),this._client=new(n(59).Client)}});return function(){return e.apply(this,arguments)}}(),t.hasCapability=function(){var e=r(function*(e){return(yield this.command("list-capabilities")).capabilities.includes(e)});return function(t){return e.apply(this,arguments)}}(),t.watchProject=function(){var e=r(function*(e){var t=yield this.command("watch-project",e);return"warning"in t&&console.error("Warning:",t.warning),{root:t.watch,relativePath:t.relative_path}});return function(t){return e.apply(this,arguments)}}(),t.on=function(e,t){this._client.on(e,t)},t.end=function(){this._client.end()},e}();e.exports=s},function(e,t,n){"use strict";var r=n(19),i="graphql-codegen",a=3;function s(){return(s=r(function*(e,t,i){return yield n(6).waitFor("Watchman:query",r(function*(){var r=new(n(29))(a),s=yield Promise.all([r.watchProject(e),l(r)]),o=s[0],u=s[1],c=yield r.command("query",o.root,{expression:t,fields:u,relative_root:o.relativePath});return r.end(),v(new Set,e,i,c.files)}))})).apply(this,arguments)}function o(){return(o=r(function*(e,t){return yield n(6).waitFor("Watchman:query",r(function*(){var r=new(n(29)),i=yield r.watchProject(e),a=yield r.command("query",i.root,{expression:t,fields:["name"],relative_root:i.relativePath});return r.end(),a.files}))})).apply(this,arguments)}function l(e){return u.apply(this,arguments)}function u(){return(u=r(function*(e){var t=["name","exists"];return(yield e.hasCapability("field-content.sha1hex"))&&t.push("content.sha1hex"),t})).apply(this,arguments)}function c(){return(c=r(function*(e,t,n){var r=t.map(function(e){return{name:e,exists:!0,"content.sha1hex":null}});return v(new Set,e,n,r)})).apply(this,arguments)}function p(e,t,n){return f.apply(this,arguments)}function f(){return(f=r(function*(e,t,i){return yield n(6).waitFor("Watchman:subscribe",r(function*(){var r=new(n(29)),a=yield r.watchProject(e);yield function(e,t,n,r,i){return d.apply(this,arguments)}(r,a.root,a.relativePath,t,i)}))})).apply(this,arguments)}function d(){return(d=r(function*(e,t,n,r,a){e.on("subscription",function(e){e.subscription===i&&a(e)});var s=yield l(e);yield e.command("subscribe",t,i,{expression:r,fields:s,relative_root:n})})).apply(this,arguments)}function h(e,t,n,r){return m.apply(this,arguments)}function m(){return(m=r(function*(e,t,n,r){var i=new Set;yield p(e,t,function(t){t.files&&(i=v(i,e,n,t.files),r(i))})})).apply(this,arguments)}function y(){return(y=r(function*(e,t,n,i){var a=!1,s=!1,o=null;h(e,t,n,function(){var e=r(function*(e){if(s=!0,o=e,!a){for(a=!0;s;)s=!1,yield i(o);a=!1}});return function(t){return e.apply(this,arguments)}}())})).apply(this,arguments)}function v(e,t,r,i){var a=new Map;return e.forEach(function(e){e.exists&&a.set(e.relPath,e)}),i.forEach(function(e){var i=e.name,s=e.exists,o=e["content.sha1hex"],l=!s;if(!l){var u={exists:!0,relPath:i,hash:o||function(e){var t=n(15).readFileSync(e);return n(35).createHash("sha1").update(t).digest("hex")}(n(8).join(t,i))};r(u)?a.set(i,u):l=!0}l&&a.set(i,{exists:!1,relPath:i})}),new Set(a.values())}e.exports={queryDirectories:function(e,t){return o.apply(this,arguments)},queryFiles:function(e,t,n){return s.apply(this,arguments)},queryFilepaths:function(e,t,n){return c.apply(this,arguments)},watch:p,watchFiles:h,watchCompile:function(e,t,n,r){return y.apply(this,arguments)}}},function(e,t,n){"use strict";var r=function(){function e(e,t){this._isMutable=!1,this._documents=new(n(24).OrderedMap),this._withTransform=new WeakMap,this.serverSchema=e,this.clientSchema=t||e}var t=e.prototype;return t.documents=function(){return this._documents.toArray()},t.forEachDocument=function(e){this._documents.forEach(e)},t.replace=function(e){return this._update(this._documents.update(e.name,function(t){return t||n(4)(!1,"GraphQLCompilerContext: Expected to replace existing node %s, butone was not found in the context.",e.name),e}))},t.add=function(e){return this._update(this._documents.update(e.name,function(t){return t&&n(4)(!1,"GraphQLCompilerContext: Duplicate document named `%s`. GraphQL fragments and roots must have unique names.",e.name),e}))},t.addAll=function(e){return this.withMutations(function(t){return e.reduce(function(e,t){return e.add(t)},t)})},t.applyTransforms=function(e,t){var r=this;return n(6).run("applyTransforms",function(){return e.reduce(function(e,n){return e.applyTransform(n,t)},r)})},t.applyTransform=function(e,t){var r=this._withTransform.get(e);if(!r){var i=process.hrtime();r=n(6).instrument(e)(this);var a=process.hrtime(i),s=Math.round((1e9*a[0]+a[1])/1e6);t&&t.reportTime(e.name,s),this._withTransform.set(e,r)}return r},t.get=function(e){return this._documents.get(e)},t.getFragment=function(e){var t=this._get(e);if("Fragment"!==t.kind){var r=e.substring(0,e.lastIndexOf("_"));throw n(108).createUserError("GraphQLCompilerContext: Cannot find fragment `%s`. Please make sure the fragment exists in `%s`.",e,r)}return t},t.getRoot=function(e){var t=this._get(e);return"Root"!==t.kind&&n(4)(!1,"GraphQLCompilerContext: Expected `%s` to be a root, got `%s`.",e,t.kind),t},t.remove=function(e){return this._update(this._documents.delete(e))},t.withMutations=function(e){var t=this._update(this._documents.asMutable());t._isMutable=!0;var n=e(t);return n._isMutable=!1,n._documents=n._documents.asImmutable(),this._documents===n._documents?this:n},t._get=function(e){var t=this._documents.get(e);return t||n(4)(!1,"GraphQLCompilerContext: Unknown document `%s`.",e),t},t._update=function(t){var n=this._isMutable?this:new e(this.serverSchema,this.clientSchema);return n._documents=t,n},e}();e.exports=r},function(e,t,n){"use strict";e.exports=function(e){var t={};return e.forEach(function(e){"Literal"!==e.value.kind&&n(4)(!1,"getLiteralArgumentValues(): Expected all args to be literals."),t[e.name]=e.value.value}),t}},function(e,t,n){"use strict";function r(){const e=function(e){return e&&e.__esModule?e:{default:e}}(n(131));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&!r().default.keyword.isReservedWordES6(e,!0)&&("await"!==e&&r().default.keyword.isIdentifierNameES6(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(16);const i=Function.call.bind(Object.prototype.hasOwnProperty);function a(e,t){return e&&"string"==typeof e.type&&"CommentLine"!==e.type&&"CommentBlock"!==e.type?o(e,t):e}function s(e,t){return Array.isArray(e)?e.map(e=>a(e,t)):a(e,t)}function o(e,t=!0){if(!e)return e;const{type:n}=e,a={type:n};if("Identifier"===n)a.name=e.name;else{if(!i(r.NODE_FIELDS,n))throw new Error(`Unknown node type: "${n}"`);for(const o of Object.keys(r.NODE_FIELDS[n]))i(e,o)&&(a[o]=t?s(e[o],!0):e[o])}return i(e,"loc")&&(a.loc=e.loc),i(e,"leadingComments")&&(a.leadingComments=e.leadingComments),i(e,"innerComments")&&(a.innerComments=e.innerCmments),i(e,"trailingComments")&&(a.trailingComments=e.trailingComments),i(e,"extra")&&(a.extra=Object.assign({},e.extra)),a}},function(e,t){e.exports=require("crypto")},function(e,t,n){"use strict";e.exports={GLOBAL_RULES:[n(0).KnownArgumentNamesRule,n(0).NoUnusedVariablesRule,n(0).UniqueArgumentNamesRule,n(0).UniqueFragmentNamesRule,n(0).UniqueInputFieldNamesRule,n(0).UniqueOperationNamesRule,n(0).UniqueVariableNamesRule],LOCAL_RULES:[n(0).FragmentsOnCompositeTypesRule,n(0).KnownTypeNamesRule,n(0).LoneAnonymousOperationRule,n(0).PossibleFragmentSpreadsRule,n(0).ValuesOfCorrectTypeRule,n(0).VariablesAreInputTypesRule,n(0).VariablesInAllowedPositionRule],validate:n(6).instrument(function(e,t,r){var i=n(0).validate(t,e,r);if(i&&i.length>0){var a=i.map(n(0).formatError),s=i.map(function(e){return e.toString()}),o=new Error(n(28).format("You supplied a GraphQL document with validation errors:\n%s",s.join("\n")));throw o.validationErrors=a,o}},"GraphQLValidator.validate")}},function(e,t,n){"use strict";var r=" ";function i(e,t,u){var c=e.selections;if(null==c)return"";var p=c.map(function(e){return function e(t,u){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";var p;if("LinkedField"===t.kind)p=a(t,c),p+=i(t,u+r);else if("MatchField"===t.kind)p=a(t,c),p+=i(t,u+r);else if("MatchBranch"===t.kind)p=t.selections.map(function(t){return e(t,u)}).join("\n"+u+r);else if("ScalarField"===t.kind)p=a(t,c);else if("InlineFragment"===t.kind)p="... on "+t.typeCondition.toString(),p+=c,p+=s(t.directives),p+=i(t,u+r);else if("FragmentSpread"===t.kind)p="..."+t.name,p+=c,p+=function(e){var t=o(e);if(!t.length)return"";return" @arguments".concat(t)}(t.args),p+=s(t.directives);else if("Condition"===t.kind){var f=l(t.condition);null==f&&n(4)(!1,"GraphQLIRPrinter: Expected a variable for condition, got a literal `null`.");var d=t.passingValue?" @include":" @skip";d+="(if: "+f+")",d+=c;var h=t.selections.map(function(t){return e(t,u,d)});p=h.join("\n"+r)}else if("Stream"===t.kind){var m,y,v=' @stream(label: "'.concat(t.label,'"');if(null!==t.if)v+=", if: ".concat(null!==(m=l(t.if))&&void 0!==m?m:"");if(null!==t.initialCount)v+=", initial_count: ".concat(null!==(y=l(t.initialCount))&&void 0!==y?y:"");v+=")",v+=c;var T=t.selections.map(function(t){return e(t,u,v)});p=T.join("\n"+r)}else if("Defer"===t.kind){var g,S=' @defer(label: "'.concat(t.label,'"');if(null!==t.if)S+=", if: ".concat(null!==(g=l(t.if))&&void 0!==g?g:"");S+=")",S+=c;var x=t.selections.map(function(t){return e(t,u,S)});p=x.join("\n"+r)}else n(4)(!1,"GraphQLIRPrinter: Unknown selection kind `%s`.",t.kind);return p}(e,t,u)});return p.length?" {\n".concat(t+r).concat(p.join("\n"+t+r),"\n").concat(t,"}"):""}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(null!=e.alias?e.alias+": "+e.name:e.name)+o(e.args)+t+s(e.directives)+function(e){if(!e.handles)return"";var t=e.handles.map(function(e){var t=e.key===n(60).DEFAULT_HANDLE_KEY?"":', key: "'.concat(e.key,'"'),r=null==e.filters?"":", filters: ".concat(JSON.stringify(Array.from(e.filters).sort()));return'@__clientField(handle: "'.concat(e.name,'"').concat(t).concat(r,")")});return t.length?" "+t.join(" "):""}(e)}function s(e){var t=e.map(function(e){return"@"+e.name+o(e.args)});return t.length?" "+t.join(" "):""}function o(e){var t=[];return e.forEach(function(e){var n=l(e.value,e.type);null!=n&&t.push(e.name+": "+n)}),t.length?"("+t.join(", ")+")":""}function l(e,t){if(t instanceof n(0).GraphQLNonNull&&(t=t.ofType),"Variable"===e.kind)return"$"+e.variableName;if("ObjectValue"===e.kind){t instanceof n(0).GraphQLInputObjectType||n(4)(!1,"GraphQLIRPrinter: Need an InputObject type to print objects.");var r=t.getFields();return"{"+e.fields.map(function(e){var t=l(e.value,r[e.name].type);return null==t?null:e.name+": "+t}).filter(Boolean).join(", ")+"}"}if("ListValue"===e.kind){t instanceof n(0).GraphQLList||n(4)(!1,"GraphQLIRPrinter: Need a type in order to print arrays.");var i=t.ofType;return"[".concat(e.items.map(function(e){return l(e,i)}).join(", "),"]")}return null!=e.value?u(e.value,t):null}function u(e,t){if(t instanceof n(0).GraphQLNonNull&&(t=t.ofType),t instanceof n(0).GraphQLEnumType)return"string"!=typeof e&&n(4)(!1,"GraphQLIRPrinter: Expected value of type %s to be a string, got `%s`.",t.name,e),e;if(Array.isArray(e)){t instanceof n(0).GraphQLList||n(4)(!1,"GraphQLIRPrinter: Need a type in order to print arrays.");var r=t.ofType;return"["+e.map(function(e){return u(e,r)}).join(", ")+"]"}if("object"==typeof e&&null!=e){var i=[];t instanceof n(0).GraphQLInputObjectType||n(4)(!1,"GraphQLIRPrinter: Need an InputObject type to print objects.");var a=t.getFields();for(var s in e)e.hasOwnProperty(s)&&i.push(s+": "+u(e[s],a[s].type));return"{"+i.join(", ")+"}"}return t instanceof n(0).GraphQLList&&null!=e?u(e,t.ofType):JSON.stringify(e)}e.exports={print:function(e){switch(e.kind){case"Fragment":return"fragment ".concat(e.name," on ").concat(String(e.type))+function(e){var t;return e.forEach(function(e){if("LocalArgumentDefinition"===e.kind){t=t||[];var n="".concat(e.name,': {type: "').concat(e.type.toString(),'"');null!=e.defaultValue&&(n+=", defaultValue: ".concat(u(e.defaultValue,e.type))),n+="}",t.push(n)}}),t&&t.length?" @argumentDefinitions(\n".concat(r).concat(t.join("\n"+r),"\n)"):""}(e.argumentDefinitions)+s(e.directives)+i(e,"")+"\n";case"Root":return"".concat(e.operation," ").concat(e.name)+function(e){var t=e.map(function(e){var t="$".concat(e.name,": ").concat(e.type.toString());return null!=e.defaultValue&&(t+=" = "+u(e.defaultValue,e.type)),t});return t.length?"(\n".concat(r).concat(t.join("\n"+r),"\n)"):""}(e.argumentDefinitions)+s(e.directives)+i(e,"")+"\n";case"SplitOperation":return"SplitOperation ".concat(e.name," on ").concat(String(e.type))+i(e,"")+"\n";default:n(4)(!1,"GraphQLIRPrinter: Unsupported IR node `%s`.",e.kind)}},printField:a,printArguments:o,printDirectives:s}},function(e,t,n){"use strict";e.exports={generate:function(e){switch(e.kind){case"Fragment":return n(63).generate(e);case"Request":return{kind:"Request",fragment:n(63).generate(e.fragment),operation:n(65).generate(e.root),params:{operationKind:e.root.operation,name:e.name,id:e.id,text:e.text,metadata:e.metadata}};case"SplitOperation":return n(65).generate(e)}throw n(1).createCompilerError("RelayCodeGenerator: Unknown AST kind '".concat(e.kind,"'."),[e.loc])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(13);function i(e,t,n){let a=[].concat(e);const s=Object.create(null);for(;a.length;){const e=a.shift();if(!e)continue;const o=i.keys[e.type];if((0,r.isIdentifier)(e))if(t){(s[e.name]=s[e.name]||[]).push(e)}else s[e.name]=e;else if((0,r.isExportDeclaration)(e))(0,r.isDeclaration)(e.declaration)&&a.push(e.declaration);else{if(n){if((0,r.isFunctionDeclaration)(e)){a.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}if(o)for(let t=0;t<o.length;t++){const n=o[t];e[n]&&(a=a.concat(e[n]))}}}return s}i.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},function(e,t,n){"use strict";var r=n(5)(n(9));function i(e,t){var i=t.parentType,s="Condition"===e.kind||"Defer"===e.kind||"Stream"===e.kind?i:"InlineFragment"===e.kind?e.typeCondition:e.type;if(null==s)throw n(1).createCompilerError("FlattenTransform: Expected a parent type.",[e.loc]);var o=new Map,l=a(o,e,t,s)?(0,r.default)({},e,{selections:Array.from(o.values())}):e;t.parentType=s;var u=this.traverse(l,t);return t.parentType=i,u}function a(e,t,i,u){var c=!1;return t.selections.forEach(function(t){if("InlineFragment"===t.kind&&function(e,t,r){return t.flattenInlineFragments||e.typeCondition.name===n(3).getRawType(r).name||t.flattenAbstractTypes&&n(3).isAbstractType(e.typeCondition)}(t,i,u))return c=!0,void a(e,t,i,u);var p=n(87)(t),f=e.get(p);if(f)if(c=!0,"InlineFragment"===f.kind){if("InlineFragment"!==t.kind)throw n(1).createCompilerError("FlattenTransform: Expected an InlineFragment, got a '".concat(t.kind,"'"),[t.loc]);e.set(p,(0,r.default)({},f,{selections:s(f,t,i,t.typeCondition)}))}else if("Condition"===f.kind){if("Condition"!==t.kind)throw n(1).createCompilerError("FlattenTransform: Expected a Condition, got a '".concat(t.kind,"'"),[t.loc]);e.set(p,(0,r.default)({},f,{selections:s(f,t,i,u)}))}else if("FragmentSpread"===f.kind);else if("MatchField"===f.kind||"MatchBranch"===f.kind);else if("Defer"===f.kind){if("Defer"!==t.kind)throw n(1).createCompilerError("FlattenTransform: Expected a Defer, got a '".concat(t.kind,"'"),[t.loc]);e.set(p,(0,r.default)({kind:"Defer"},f,{selections:s(f,t,i,u)}))}else if("Stream"===f.kind){if("Stream"!==t.kind)throw n(1).createCompilerError("FlattenTransform: Expected a Stream, got a '".concat(t.kind,"'"),[t.loc]);e.set(p,(0,r.default)({kind:"Stream"},f,{selections:s(f,t,i,u)}))}else if("LinkedField"===f.kind){if("LinkedField"!==t.kind)throw n(1).createCompilerError("FlattenTransform: Expected a LinkedField, got a '".concat(t.kind,"'"),[t.loc]);o(t,f),e.set(p,(0,r.default)({kind:"LinkedField"},f,{handles:l(f,t),selections:s(f,t,i,t.type)}))}else{if("ScalarField"!==f.kind)throw f.kind,n(1).createCompilerError("FlattenTransform: Unknown kind '".concat(f.kind,"'"));if("ScalarField"!==t.kind)throw n(1).createCompilerError("FlattenTransform: Expected a ScalarField, got a '".concat(t.kind,"'"),[t.loc]);o(t,f),e.set(p,(0,r.default)({kind:"ScalarField"},f,{handles:l(t,f)}))}else e.set(p,t)}),c}function s(e,t,n,r){var i=new Map;return a(i,e,n,r),a(i,t,n,r),Array.from(i.values())}function o(e,t){var r;if(!function(e,t){return e.kind===t.kind&&e.name===t.name&&e.alias===t.alias&&function(e,t){return e.length===t.length&&e.every(function(e,r){var i=t[r];return e.name===i.name&&e.value.kind===i.value.kind&&e.value.variableName===i.value.variableName&&n(184)(e.value.value,i.value.value)})}(e.args,t.args)}(e,t))throw n(1).createUserError("Expected all fields on the same parent with "+"the name or alias '".concat(null!==(r=e.alias)&&void 0!==r?r:e.name,"' to have the same name and arguments."),[e.loc,t.loc])}function l(e,t){if(!e.handles)return t.handles;if(!t.handles)return e.handles;var n=new Map;return e.handles.concat(t.handles).forEach(function(e){return n.set(e.name+e.key,e)}),Array.from(n.values())}e.exports={transformWithOptions:function(e){return function(t){return function(e,t){var r={flattenAbstractTypes:!(!t||!t.flattenAbstractTypes),flattenInlineFragments:!(!t||!t.flattenInlineFragments),parentType:null};return n(10).transform(e,{Root:i,Fragment:i,Condition:i,InlineFragment:i,LinkedField:i,MatchField:i},function(){return r})}(t,e)}}}},function(e,t,n){"use strict";e.exports={getReaderSourceDefinitionName:function(e){var t,n,r="Request"===e.kind?[e.params.name,null===(t=e.params.metadata)||void 0===t?void 0:t.derivedFrom]:"SplitOperation"===e.kind?[e.name,null===(n=e.metadata)||void 0===n?void 0:n.derivedFrom]:[e.name,null],i=r[1];return"string"==typeof i?i:r[0]},getSourceDefinitionName:function(e){var t,n="Request"===e.kind||"Root"===e.kind||"SplitOperation"===e.kind?null===(t=e.metadata)||void 0===t?void 0:t.derivedFrom:null;return"string"==typeof n?n:e.name}}},function(e,t,n){"use strict";var r=function(){function e(e){this._documents=new Map,this._baseDir=e.baseDir,this._parse=n(6).instrument(e.parse,"ASTCache.parseFn")}var t=e.prototype;return t.documents=function(){return n(24).Map(this._documents)},t.parseFiles=function(e){var t=this,r=n(24).Map();return e.forEach(function(e){if(e.exists){var n=function(){try{return t._parse(t._baseDir,e)}catch(t){throw new Error("Parse error: ".concat(t,' in "').concat(e.relPath,'"'))}}();n?(r=r.set(e.relPath,n),t._documents.set(e.relPath,n)):t._documents.delete(e.relPath)}else t._documents.delete(e.relPath)}),r},e}();e.exports=r},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11));var a=function(){function e(e,t){var r=this;this._definitions=new Map,this._getFieldDefinition=n(113).getFieldDefinitionLegacy,this._schema=e;var i=new Set;if(t.forEach(function(e){if(n(3).isExecutableDefinitionAST(e)){var t=c(e);if(r._definitions.has(t))return void i.add(t);r._definitions.set(t,e)}}),i.size)throw new Error("RelayParser: Encountered duplicate defintitions for one or more documents: each document must have a unique name. Duplicated documents:\n"+Array.from(i,function(e){return"- ".concat(e)}).join("\n"))}var t=e.prototype;return t.transform=function(){var e,t=this,r=[],i=new Map;if(null==(e=n(1).eachWithErrors(this._definitions,function(e){var n=e[0],r=e[1],a=t._buildArgumentDefinitions(r);i.set(n,{definition:r,variableDefinitions:a})}))&&(e=n(1).eachWithErrors(i.values(),function(e){var n=e.definition,a=e.variableDefinitions,o=function(e,t,n,r,i){return new s(e,t,n,r,i).transform()}(t._schema,t._getFieldDefinition,i,n,a);r.push(o)})),null!=e&&0!==e.length)throw n(1).createCombinedError(e,"RelayParser");return r},t._buildArgumentDefinitions=function(e){switch(e.kind){case"OperationDefinition":return this._buildOperationArgumentDefinitions(e);case"FragmentDefinition":return this._buildFragmentArgumentDefinitions(e);default:throw n(1).createCompilerError("Unexpected ast kind '".concat(e.kind,"'."),[e])}},t._buildFragmentArgumentDefinitions=function(e){var t=this,r=(e.directives||[]).filter(function(e){return"argumentDefinitions"===c(e)});if(!r.length)return new Map;if(1!==r.length)throw n(1).createUserError("Directive @".concat("argumentDefinitions"," may be defined at most once per ")+"fragment.",null,r);var i=r[0],a=i.arguments;if(null==i||!Array.isArray(a))return new Map;if(!a.length)throw n(1).createUserError("Directive @".concat("argumentDefinitions"," requires arguments: remove the ")+"directive to skip defining local variables for this fragment.",null,[i]);var s=new Map;return a.forEach(function(e){var r=c(e),i=s.get(r);if(null!=i)throw n(1).createUserError("Duplicate definition for variable '$".concat(r,"'."),null,[i.ast,e]);var a=o(e.value,e);if(Array.isArray(a)||"object"!=typeof a||null===a||"string"!=typeof a.type)throw n(1).createUserError("Expected definition for variable '$".concat(r,"' to be an object ")+"with the shape: '{type: string, defaultValue?: mixed, nonNull?: boolean, list?: boolean}'.",null,[e.value]);var l=Object.keys(a).filter(function(e){return"type"!==e&&"defaultValue"!==e&&"nonNull"!==e&&"list"!==e});if(0!==l.length){var u="'"+l.join("', '")+"'";throw n(1).createUserError("Expected definition for variable '$".concat(r,"' to be an object ")+"with the following shape: '{type: string, defaultValue?: mixed, nonNull?: boolean, list?: boolean}', got unknown key(s) "+"".concat(u,"."),null,[e])}var p=n(0).parseType(String(a.type)),f=n(0).assertInputType(n(3).getTypeFromAST(t._schema,p));s.set(r,{ast:e,defaultValue:null!=a.defaultValue?a.defaultValue:null,defined:!0,name:r,type:f})}),s},t._buildOperationArgumentDefinitions=function(e){var t=this,r=new Map;return(e.variableDefinitions||[]).forEach(function(e){var i=c(e.variable),a=n(0).assertInputType(n(3).getTypeFromAST(t._schema,e.type)),s=e.defaultValue?o(e.defaultValue,e):null,l=r.get(i);if(null!=l)throw n(1).createUserError("Duplicate definition for variable '$".concat(i,"'."),null,[l.ast,e]);r.set(i,{ast:e,defaultValue:s,defined:!0,name:i,type:a})}),r},e}();var s=function(){function e(e,t,n,r,i){this._definition=r,this._entries=n,this._getFieldDefinition=t,this._schema=e,this._variableDefinitions=i,this._unknownVariables=new Map}var t=e.prototype;return t.transform=function(){var e=this._definition;switch(e.kind){case"OperationDefinition":return this._transformOperation(e);case"FragmentDefinition":return this._transformFragment(e);default:throw n(1).createCompilerError("Unsupported definition type ".concat(e.kind),[e])}},t._getErrorContext=function(){var e="document `".concat(c(this._definition),"`");return this._definition.loc&&this._definition.loc.source&&(e+=" file: `".concat(this._definition.loc.source.name,"`")),e},t._recordAndVerifyVariableReference=function(e,t,r){if(null!=r){var i=this._variableDefinitions.get(t);if(null!=i){var a=i.type;if(null!=i.defaultValue&&(a=new(n(0).GraphQLNonNull)(n(3).getNullableType(a))),!n(0).isTypeSubTypeOf(this._schema,a,r))throw n(1).createUserError("Variable '$".concat(t,"' was defined as type '").concat(String(i.type),"' but used in a location expecting the type '").concat(String(r),"'"),null,[i.ast,e])}else{var s=this._unknownVariables.get(t);if(s&&s.type){var o=s.type,l=s.ast;if(!n(0).isTypeSubTypeOf(this._schema,r,o)&&!n(0).isTypeSubTypeOf(this._schema,o,r))throw n(1).createUserError("Variable '$".concat(t,"' was used in locations expecting the conflicting types '").concat(String(o),"' and '").concat(String(r),"'. Source: ").concat(this._getErrorContext()),null,[l,e]);n(0).isTypeSubTypeOf(this._schema,r,o)&&this._unknownVariables.set(t,{ast:e,type:r})}else this._unknownVariables.set(t,{ast:e,type:r})}}else this._variableDefinitions.has(t)||this._unknownVariables.has(t)||this._unknownVariables.set(t,{ast:e,type:null})},t._transformFragment=function(e){var t=this._transformDirectives((e.directives||[]).filter(function(e){return"argumentDefinitions"!==c(e)})),r=n(0).assertCompositeType(n(3).getTypeFromAST(this._schema,e.typeCondition)),a=this._transformSelections(e.selectionSet,r),s=(0,i.default)(l(this._variableDefinitions)),o=!0,p=!1,f=void 0;try{for(var d,h=this._unknownVariables[Symbol.iterator]();!(o=(d=h.next()).done);o=!0){var m=d.value,y=m[0],v=m[1];s.push({kind:"RootArgumentDefinition",loc:u(v.ast.loc),metadata:null,name:y,type:v.type})}}catch(e){p=!0,f=e}finally{try{o||null==h.return||h.return()}finally{if(p)throw f}}return{kind:"Fragment",directives:t,loc:u(e.loc),metadata:null,name:c(e),selections:a,type:r,argumentDefinitions:s}},t._transformOperation=function(e){var t,r,i=c(e),a=this._transformDirectives(e.directives||[]);switch(e.operation){case"query":r="query",t=n(0).assertCompositeType(this._schema.getQueryType());break;case"mutation":r="mutation",t=n(0).assertCompositeType(this._schema.getMutationType());break;case"subscription":r="subscription",t=n(0).assertCompositeType(this._schema.getSubscriptionType());break;default:throw e.operation,n(1).createCompilerError("Unknown ast kind '".concat(e.operation,"'. Source: ").concat(this._getErrorContext(),"."),null,[e])}if(!e.selectionSet)throw n(1).createUserError("Expected operation to have selections. Source: ".concat(this._getErrorContext()),null,[e]);var s=this._transformSelections(e.selectionSet,t),o=l(this._variableDefinitions);if(0!==this._unknownVariables.size)throw n(1).createUserError("Query '".concat(i,"' references undefined variables."),null,Array.from(this._unknownVariables.values(),function(e){return e.ast}));return{kind:"Root",operation:r,loc:u(e.loc),metadata:null,name:i,argumentDefinitions:o,directives:a,selections:s,type:t}},t._transformSelections=function(e,t){var i=this;return e.selections.map(function(e){var a;if("Field"===e.kind)a=i._transformField(e,t);else if("FragmentSpread"===e.kind)a=i._transformFragmentSpread(e,t);else{if("InlineFragment"!==e.kind)throw e.kind,n(1).createCompilerError("Unknown ast kind '".concat(e.kind,"'. Source: ").concat(i._getErrorContext(),"."),[e]);a=i._transformInlineFragment(e,t)}var s=i._splitConditions(a.directives),o=s[0],l=s[1],u=function(e,t){var n=t;return e.forEach(function(e){n=[(0,r.default)({},e,{selections:n})]}),n}(o,[(0,r.default)({},a,{directives:l})]);if(1!==u.length)throw n(1).createCompilerError("Expected exactly one condition node. Source: ".concat(i._getErrorContext()),null,e.directives);return u[0]})},t._transformInlineFragment=function(e,t){var r=n(0).assertCompositeType(e.typeCondition?n(3).getTypeFromAST(this._schema,e.typeCondition):t),i=this._transformDirectives(e.directives||[]),a=this._transformSelections(e.selectionSet,r);return{kind:"InlineFragment",directives:i,loc:u(e.loc),metadata:null,selections:a,typeCondition:r}},t._transformFragmentSpread=function(e,t){var r=this,i=c(e),a=p(e.directives||[],function(e){return"arguments"!==c(e)}),s=a[0],o=a[1];if(o.length>1)throw n(1).createUserError("Directive @".concat("arguments"," may be used at most once per a fragment spread. ")+"Source: ".concat(this._getErrorContext()),null,o);var l,f=this._entries.get(i),d=null===f||void 0===f?void 0:f.variableDefinitions;o.length&&(l=(o[0].arguments||[]).map(function(e){var t,a,s=c(e),o=e.value,l=null!=d?d.get(s):null,p=null!==(t=null===l||void 0===l?void 0:l.type)&&void 0!==t?t:null;if("Variable"===o.kind)return{kind:"Argument",loc:u(e.loc),metadata:null,name:s,value:r._transformVariable(o,null),type:null};if(null==p)throw n(1).createUserError("Literal @".concat("arguments"," values are only supported when the ")+"argument is defined with @".concat("argumentDefinitions",". Check ")+"the definition of fragment '".concat(i,"'."),null,[e.value,null===(a=r._entries.get(i))||void 0===a?void 0:a.definition].filter(Boolean));var f=r._transformValue(o,p);return{kind:"Argument",loc:u(e.loc),metadata:null,name:s,value:f,type:p}}));var h=this._transformDirectives(s);return{kind:"FragmentSpread",args:l||[],metadata:null,loc:u(e.loc),name:i,directives:h}},t._transformField=function(e,t){var r=c(e),i=this._getFieldDefinition(this._schema,t,r,e);if(null==i)throw n(1).createUserError("Unknown field '".concat(r,"' on type '").concat(String(t),"'. Source: ").concat(this._getErrorContext()),null,[e]);var a=e.alias?e.alias.value:null,s=this._transformArguments(e.arguments||[],i.args),o=p(e.directives||[],function(e){return"__clientField"!==c(e)}),l=o[0],f=o[1],d=this._transformDirectives(l),h=n(0).assertOutputType(i.type),m=this._transformHandle(r,s,f);if(n(0).isLeafType(n(0).getNamedType(h))){if(e.selectionSet&&e.selectionSet.selections&&e.selectionSet.selections.length)throw n(1).createUserError("Expected no selections for scalar field '".concat(r,"'. Source: ").concat(this._getErrorContext()),null,[e]);return{kind:"ScalarField",alias:a,args:s,directives:d,handles:m,loc:u(e.loc),metadata:null,name:r,type:function(e){if(!function(e){var t=n(0).getNamedType(e);return t instanceof n(0).GraphQLScalarType||t instanceof n(0).GraphQLEnumType}(e))throw n(1).createUserError("Expected a scalar field type, got type '".concat(String(e),"'."));return e}(h)}}var y=e.selectionSet?this._transformSelections(e.selectionSet,h):null;if(null==y||0===y.length)throw n(1).createUserError("Expected at least one selection for non-scalar field '".concat(r,"' on type '").concat(String(h),"'. Source: ").concat(this._getErrorContext(),"."),null,[e]);return{kind:"LinkedField",alias:a,args:s,directives:d,handles:m,loc:u(e.loc),metadata:null,name:r,selections:y,type:h}},t._transformHandle=function(e,t,r){var i,a=this;return r.forEach(function(r){var s=(r.arguments||[]).find(function(e){return"handle"===c(e)});if(s){var l,u=n(60).DEFAULT_HANDLE_KEY,p=null,f=o(s.value,s);if("string"!=typeof f)throw n(1).createUserError("Expected a string literal argument for the @".concat("__clientField"," directive. ")+"Source: ".concat(a._getErrorContext()),null,[s.value]);l=f;var d=(r.arguments||[]).find(function(e){return"key"===c(e)});if(d){var h=o(d.value,d);if("string"!=typeof h)throw n(1).createUserError("Expected a string literal argument for the @".concat("__clientField"," directive. ")+"Source: ".concat(a._getErrorContext()),null,[d.value]);u=h}var m=(r.arguments||[]).find(function(e){return"filters"===c(e)});if(m){var y=o(m.value,m);if(!Array.isArray(y)||!y.every(function(e){return"string"==typeof e&&t.some(function(t){return t.name===e})}))throw n(1).createUserError("Expected an array of argument names on field '".concat(e,"'. ")+"Source: ".concat(a._getErrorContext()),null,[m.value]);p=y}(i=i||[]).push({name:l,key:u,filters:p})}}),i},t._transformDirectives=function(e){var t=this;return e.map(function(e){var r=c(e),i=t._schema.getDirective(r);if(null==i)throw n(1).createUserError("Unknown directive '".concat(r,"'. Source: ").concat(t._getErrorContext()),null,[e]);var a=t._transformArguments(e.arguments||[],i.args);return{kind:"Directive",loc:u(e.loc),metadata:null,name:r,args:a}})},t._transformArguments=function(e,t){var r=this;return e.map(function(e){var i=c(e),a=t.find(function(e){return e.name===i});if(null==a)throw n(1).createUserError("Unknown argument '".concat(i,"'. Source: ").concat(r._getErrorContext()),null,[e]);var s=r._transformValue(e.value,a.type);return{kind:"Argument",loc:u(e.loc),metadata:null,name:i,value:s,type:a.type}})},t._splitConditions=function(e){var t=this,r=p(e,function(e){return"include"===e.name||"skip"===e.name}),i=r[0],a=r[1];return[i.map(function(e){var r="include"===e.name,i=e.args[0];if(null==i||"if"!==i.name)throw n(1).createUserError("Expected an 'if' argument to @".concat(e.name,". Source: ").concat(t._getErrorContext()),[e.loc]);if("Variable"!==i.value.kind&&"Literal"!==i.value.kind)throw n(1).createUserError("Expected the 'if' argument to @".concat(e.name," to be a variable or literal. Source: ").concat(t._getErrorContext()),[e.loc]);return{kind:"Condition",condition:i.value,loc:e.loc,metadata:null,passingValue:r,selections:[]}}).sort(function(e,t){return"Variable"===e.condition.kind&&"Variable"===t.condition.kind?e.condition.variableName<t.condition.variableName?-1:e.condition.variableName>t.condition.variableName?1:0:"Variable"===e.condition.kind?1:"Variable"===t.condition.kind?-1:0}),a]},t._transformVariable=function(e,t){var n=c(e);return this._recordAndVerifyVariableReference(e,n,t),{kind:"Variable",loc:u(e.loc),metadata:null,variableName:n,type:t}},t._transformValue=function(e,t){if("Variable"===e.kind)return this._transformVariable(e,t);if("NullValue"===e.kind){if(t instanceof n(0).GraphQLNonNull)throw n(1).createUserError("Expected a value matching type '".concat(String(t),"'."),null,[e]);return{kind:"Literal",loc:u(e.loc),metadata:null,value:null}}return this._transformNonNullLiteral(e,t)},t._transformNonNullLiteral=function(e,t){var r=this,i=n(3).getNullableType(t);if(i instanceof n(0).GraphQLList){if("ListValue"!==e.kind)return this._transformValue(e,i.ofType);var a=n(0).assertInputType(i.ofType),s=[],o=[],l=!0;return e.values.forEach(function(e){var t=r._transformValue(e,a);"Literal"===t.kind&&s.push(t.value),o.push(t),l=l&&"Literal"===t.kind}),l?{kind:"Literal",loc:u(e.loc),metadata:null,value:s}:{kind:"ListValue",loc:u(e.loc),metadata:null,items:o}}if(i instanceof n(0).GraphQLInputObjectType){var p=i;if("ObjectValue"!==e.kind)throw n(1).createUserError("Expected a value matching type '".concat(String(t),"'."),null,[e]);var f={},d=[],h=!0;return e.fields.forEach(function(e){var i=c(e),a=p.getFields()[i];if(null==a)throw n(1).createUserError("Uknown field '".concat(i,"' on type '").concat(String(t),"'."),null,[e]);var s=n(0).assertInputType(a.type),o=r._transformValue(e.value,s);"Literal"===o.kind&&(f[e.name.value]=o.value),d.push({kind:"ObjectFieldValue",loc:u(e.loc),metadata:null,name:i,value:o}),h=h&&"Literal"===o.kind}),h?{kind:"Literal",loc:u(e.loc),metadata:null,value:f}:{kind:"ObjectValue",loc:u(e.loc),metadata:null,fields:d}}if(i===n(0).GraphQLID){if("IntValue"===e.kind)return{kind:"Literal",loc:u(e.loc),metadata:null,value:parseInt(e.value,10)};if("StringValue"===e.kind)return{kind:"Literal",loc:u(e.loc),metadata:null,value:e.value};throw n(1).createUserError("Invalid value, expected a value matching type '".concat(String(t),"'."),null,[e])}if(i instanceof n(0).GraphQLScalarType||i instanceof n(0).GraphQLEnumType){var m=i.parseLiteral(e);if(null==m)throw n(1).createUserError("Expected a value matching type '".concat(String(t),"'."),null,[e]);return{kind:"Literal",loc:u(e.loc),metadata:null,value:m}}throw n(1).createCompilerError("Unsupported type '".concat(String(t),"' for input value, expected a GraphQLList, ")+"GraphQLInputObjectType, GraphQLEnumType, or GraphQLScalarType.",null,[e])},e}();function o(e,t){switch(e.kind){case"IntValue":return parseInt(e.value,10);case"FloatValue":return parseFloat(e.value);case"StringValue":case"BooleanValue":case"EnumValue":return e.value;case"ListValue":return e.values.map(function(e){return o(e,t)});case"NullValue":return null;case"ObjectValue":var r={};return e.fields.forEach(function(e){var n=c(e),i=o(e.value,t);r[n]=i}),r;case"Variable":throw n(1).createUserError("Unexpected variable where a literal (static) value is required.",null,[e,t]);default:throw e.kind,n(1).createCompilerError("Unknown ast kind '".concat(e.kind,"'."),[e])}}function l(e){return Array.from(e.values(),function(e){var t=e.ast,n=e.name,r=e.type,i=e.defaultValue;return{kind:"LocalArgumentDefinition",loc:u(t.loc),metadata:null,name:n,type:r,defaultValue:i}})}function u(e){return null==e?{kind:"Unknown"}:{kind:"Source",start:e.start,end:e.end,source:e.source}}function c(e){var t,r=null===(t=e.name)||void 0===t?void 0:t.value;if("string"!=typeof r)throw n(1).createCompilerError("Expected ast node to have a 'name'.",null,[e]);return r}function p(e,t){for(var n=[],r=[],i=0;i<e.length;i++){var a=e[i];t(a)?n.push(a):r.push(a)}return[n,r]}e.exports={parse:function(e,t,r){var i=n(0).parse(new(n(0).Source)(t,r));return e=n(0).extendSchema(e,i,{assumeValid:!0}),new a(e,i.definitions).transform()},transform:function(e,t){return n(6).run("RelayParser.transform",function(){return new a(e,t).transform()})}}},function(e,t,n){"use strict";var r=(0,n(5)(n(11)).default)(n(36).LOCAL_RULES).concat([function(e){return{Field:function(e){if(e.alias&&"id"===e.alias.value&&"id"!==e.name.value)throw new Error("RelayValidator: Relay does not allow aliasing fields to `id`. This name is reserved for the globally unique `id` field on `Node`.")}}}]);e.exports={GLOBAL_RULES:n(36).GLOBAL_RULES,LOCAL_RULES:r,validate:n(36).validate}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=Object.keys(t);for(const r of n)if(e[r]!==t[r])return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.functionDeclarationCommon=t.functionTypeAnnotationCommon=t.functionCommon=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(33)),i=n(22),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(20));(0,a.default)("ArrayExpression",{fields:{elements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,a.default)("AssignmentExpression",{fields:{operator:{validate:(0,a.assertValueType)("string")},left:{validate:(0,a.assertNodeType)("LVal")},right:{validate:(0,a.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),(0,a.default)("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,a.assertOneOf)(...i.BINARY_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),(0,a.default)("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),(0,a.default)("Directive",{visitor:["value"],fields:{value:{validate:(0,a.assertNodeType)("DirectiveLiteral")}}}),(0,a.default)("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),(0,a.default)("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Directive"))),default:[]},body:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),(0,a.default)("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,a.default)("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:{callee:{validate:(0,a.assertNodeType)("Expression")},arguments:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","SpreadElement","JSXNamespacedName")))},optional:{validate:(0,a.assertOneOf)(!0,!1),optional:!0},typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}}),(0,a.default)("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),(0,a.default)("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Expression")},alternate:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),(0,a.default)("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,a.default)("DebuggerStatement",{aliases:["Statement"]}),(0,a.default)("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),(0,a.default)("EmptyStatement",{aliases:["Statement"]}),(0,a.default)("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),(0,a.default)("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,a.assertNodeType)("Program")}}}),(0,a.default)("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,a.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),(0,a.default)("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,a.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},update:{validate:(0,a.assertNodeType)("Expression"),optional:!0},body:{validate:(0,a.assertNodeType)("Statement")}}});const s={params:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("LVal")))},generator:{default:!1,validate:(0,a.assertValueType)("boolean")},async:{validate:(0,a.assertValueType)("boolean"),default:!1}};t.functionCommon=s;const o={returnType:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}};t.functionTypeAnnotationCommon=o;const l=Object.assign({},s,{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=l,(0,a.default)("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},l,o,{body:{validate:(0,a.assertNodeType)("BlockStatement")}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"]}),(0,a.default)("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},s,o,{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}})});const u={typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator")))}};t.patternLikeCommon=u,(0,a.default)("Identifier",{builder:["name"],visitor:["typeAnnotation"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},u,{name:{validate:(0,a.chain)(function(e,t,n){(0,r.default)(n)},(0,a.assertValueType)("string"))},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0}})}),(0,a.default)("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,a.assertNodeType)("Statement")}}}),(0,a.default)("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,a.assertNodeType)("Identifier")},body:{validate:(0,a.assertNodeType)("Statement")}}}),(0,a.default)("StringLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,a.default)("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,a.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,a.default)("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),(0,a.default)("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,a.default)("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Literal"],fields:{pattern:{validate:(0,a.assertValueType)("string")},flags:{validate:(0,a.assertValueType)("string"),default:""}}}),(0,a.default)("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,a.assertOneOf)(...i.LOGICAL_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}}}),(0,a.default)("MemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},property:{validate:function(){const e=(0,a.assertNodeType)("Identifier","PrivateName"),t=(0,a.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}()},computed:{default:!1},optional:{validate:(0,a.assertOneOf)(!0,!1),optional:!0}}}),(0,a.default)("NewExpression",{inherits:"CallExpression"}),(0,a.default)("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,a.assertValueType)("string")},sourceType:{validate:(0,a.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,a.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Directive"))),default:[]},body:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),(0,a.default)("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),(0,a.default)("ObjectMethod",{builder:["kind","key","params","body","computed"],fields:Object.assign({},s,o,{kind:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("method","get","set")),default:"method"},computed:{validate:(0,a.assertValueType)("boolean"),default:!1},key:{validate:function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,a.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}()},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator")))},body:{validate:(0,a.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),(0,a.default)("ObjectProperty",{builder:["key","value","computed","shorthand","decorators"],fields:{computed:{validate:(0,a.assertValueType)("boolean"),default:!1},key:{validate:function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,a.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}()},value:{validate:(0,a.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,a.assertValueType)("boolean"),default:!1},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"]}),(0,a.default)("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},u,{argument:{validate:(0,a.assertNodeType)("LVal")}})}),(0,a.default)("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),(0,a.default)("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression")))}},aliases:["Expression"]}),(0,a.default)("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}}}),(0,a.default)("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,a.assertNodeType)("Expression")},cases:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("SwitchCase")))}}}),(0,a.default)("ThisExpression",{aliases:["Expression"]}),(0,a.default)("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),(0,a.default)("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,a.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,a.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,a.assertNodeType)("BlockStatement")}}}),(0,a.default)("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...i.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),(0,a.default)("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...i.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),(0,a.default)("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},kind:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("var","let","const"))},declarations:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("VariableDeclarator")))}}}),(0,a.default)("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:(0,a.assertNodeType)("LVal")},definite:{optional:!0,validate:(0,a.assertValueType)("boolean")},init:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),(0,a.default)("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("BlockStatement","Statement")}}}),(0,a.default)("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("BlockStatement","Statement")}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!t)return!1;if(!(0,i.default)(t.type,e))return!1;return void 0===n||(0,r.default)(t,n)};var r=a(n(45)),i=a(n(48));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(r.ALIAS_KEYS[t])return!1;const n=r.FLIPPED_ALIAS_KEYS[t];if(n){if(n[0]===e)return!0;for(const t of n)if(e===t)return!0}return!1};var r=n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classMethodOrDeclareMethodCommon=t.classMethodOrPropertyCommon=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(20)),i=n(46);(0,r.default)("AssignmentPattern",{visitor:["left","right"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},i.patternLikeCommon,{left:{validate:(0,r.assertNodeType)("Identifier","ObjectPattern","ArrayPattern")},right:{validate:(0,r.assertNodeType)("Expression")},decorators:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Decorator")))}})}),(0,r.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},i.patternLikeCommon,{elements:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("PatternLike")))},decorators:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Decorator")))}})}),(0,r.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},i.functionCommon,i.functionTypeAnnotationCommon,{expression:{validate:(0,r.assertValueType)("boolean")},body:{validate:(0,r.assertNodeType)("BlockStatement","Expression")}})}),(0,r.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("ClassMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}});const a={typeParameters:{validate:(0,r.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,r.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,r.assertNodeType)("Expression")},superTypeParameters:{validate:(0,r.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0}};(0,r.default)("ClassDeclaration",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Statement","Declaration","Pureish"],fields:Object.assign({},a,{declare:{validate:(0,r.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,r.assertValueType)("boolean"),optional:!0},id:{validate:(0,r.assertNodeType)("Identifier"),optional:!0},decorators:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Decorator"))),optional:!0}})}),(0,r.default)("ClassExpression",{inherits:"ClassDeclaration",aliases:["Scopable","Class","Expression","Pureish"],fields:Object.assign({},a,{id:{optional:!0,validate:(0,r.assertNodeType)("Identifier")},body:{validate:(0,r.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,r.assertNodeType)("Expression")},decorators:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Decorator"))),optional:!0}})}),(0,r.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,r.assertNodeType)("StringLiteral")}}}),(0,r.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,r.assertNodeType)("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")}}}),(0,r.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,r.assertNodeType)("Declaration"),optional:!0},specifiers:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier")))},source:{validate:(0,r.assertNodeType)("StringLiteral"),optional:!0}}}),(0,r.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,r.assertNodeType)("Identifier")},exported:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("ForOfStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,r.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,r.assertNodeType)("Expression")},body:{validate:(0,r.assertNodeType)("Statement")},await:{default:!1,validate:(0,r.assertValueType)("boolean")}}}),(0,r.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{specifiers:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,r.assertNodeType)("StringLiteral")}}}),(0,r.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,r.assertNodeType)("Identifier")},imported:{validate:(0,r.assertNodeType)("Identifier")},importKind:{validate:(0,r.assertOneOf)(null,"type","typeof")}}}),(0,r.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,r.assertNodeType)("Identifier")},property:{validate:(0,r.assertNodeType)("Identifier")}}});const s={abstract:{validate:(0,r.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,r.chain)((0,r.assertValueType)("string"),(0,r.assertOneOf)("public","private","protected")),optional:!0},static:{validate:(0,r.assertValueType)("boolean"),optional:!0},computed:{default:!1,validate:(0,r.assertValueType)("boolean")},optional:{validate:(0,r.assertValueType)("boolean"),optional:!0},key:{validate:(0,r.chain)(function(){const e=(0,r.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,r.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}(),(0,r.assertNodeType)("Identifier","StringLiteral","NumericLiteral","Expression"))}};t.classMethodOrPropertyCommon=s;const o=Object.assign({},i.functionCommon,s,{kind:{validate:(0,r.chain)((0,r.assertValueType)("string"),(0,r.assertOneOf)("get","set","method","constructor")),default:"method"},access:{validate:(0,r.chain)((0,r.assertValueType)("string"),(0,r.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Decorator"))),optional:!0}});t.classMethodOrDeclareMethodCommon=o,(0,r.default)("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},o,i.functionTypeAnnotationCommon,{body:{validate:(0,r.assertNodeType)("BlockStatement")}})}),(0,r.default)("ObjectPattern",{visitor:["properties","typeAnnotation"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},i.patternLikeCommon,{properties:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("RestElement","ObjectProperty")))}})}),(0,r.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("Super",{aliases:["Expression"]}),(0,r.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,r.assertNodeType)("Expression")},quasi:{validate:(0,r.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,r.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,r.default)("TemplateElement",{builder:["value","tail"],fields:{value:{},tail:{validate:(0,r.assertValueType)("boolean"),default:!1}}}),(0,r.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TemplateElement")))},expressions:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Expression")))}}}),(0,r.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,r.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,r.assertNodeType)("Expression")}}})},function(e,t,n){"use strict";function r(){const e=function(e){return e&&e.__esModule?e:{default:e}}(n(144));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){t&&n&&(t[e]=(0,r().default)([].concat(t[e],n[e]).filter(Boolean)))}},function(e,t,n){"use strict";function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));return r=function(){return e},e}function i(){const e=function(e){return e&&e.__esModule?e:{default:e}}(n(179));return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.Identifier=function(e){this.exactSource(e.loc,()=>{this.word(e.name)})},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument,e)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;this.token("{"),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space());this.token("}")},t.ObjectMethod=function(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e),e.computed)this.token("["),this.print(e.key,e),this.token("]");else{if(r().isAssignmentPattern(e.value)&&r().isIdentifier(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&r().isIdentifier(e.key)&&r().isIdentifier(e.value)&&e.key.name===e.value.name)return}this.token(":"),this.space(),this.print(e.value,e)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,n=t.length;this.token("["),this.printInnerComments(e);for(let r=0;r<t.length;r++){const i=t[r];i?(r>0&&this.space(),this.print(i,e),r<n-1&&this.token(",")):this.token(",")}this.token("]")},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),n=e.value+"";null==t?this.number(n):this.format.minified?this.number(t.length<n.length?t:n):this.number(t)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);const n=this.format.jsescOption;this.format.jsonCompatibleStrings&&(n.json=!0);const r=(0,i().default)(e.value,n);return this.token(r)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);this.token(e.value)}},function(e,t,n){"use strict";function r(e,t,r){return e instanceof n(0).GraphQLNonNull?i(e.ofType,t,r):n(2).nullableTypeAnnotation(i(e,t,r))}function i(e,t,i){if(e instanceof n(0).GraphQLList)return n(7).readOnlyArrayOfType(r(e.ofType,t,i));if(e instanceof n(0).GraphQLObjectType||e instanceof n(0).GraphQLUnionType||e instanceof n(0).GraphQLInterfaceType)return i;if(e instanceof n(0).GraphQLScalarType)return a(e,t);if(e instanceof n(0).GraphQLEnumType)return s(e,t);throw new Error("Could not convert from GraphQL type ".concat(e.toString()))}function a(e,t){var r=t.customScalars[e.name];switch(r||e.name){case"ID":case"String":return n(2).stringTypeAnnotation();case"Float":case"Int":return n(2).numberTypeAnnotation();case"Boolean":return n(2).booleanTypeAnnotation();default:return null==r?n(2).anyTypeAnnotation():n(2).genericTypeAnnotation(n(2).identifier(r))}}function s(e,t){return t.usedEnums[e.name]=e,n(2).genericTypeAnnotation(n(2).identifier(e.name))}function o(e,t){return e instanceof n(0).GraphQLNonNull?l(e.ofType,t):n(2).nullableTypeAnnotation(l(e,t))}function l(e,t){if(e instanceof n(0).GraphQLList)return n(7).readOnlyArrayOfType(o(e.ofType,t));if(e instanceof n(0).GraphQLScalarType)return a(e,t);if(e instanceof n(0).GraphQLEnumType)return s(e,t);if(e instanceof n(0).GraphQLInputObjectType){var r=function(e){return e.name}(e);if(t.generatedInputObjectTypes[r])return n(2).genericTypeAnnotation(n(2).identifier(r));t.generatedInputObjectTypes[r]="pending";var i=e.getFields(),l=Object.keys(i).map(function(e){return i[e]}).map(function(e){var r=n(2).objectTypeProperty(n(2).identifier(e.name),o(e.type,t));return!(t.optionalInputFields.indexOf(e.name)>=0)&&e.type instanceof n(0).GraphQLNonNull||(r.optional=!0),r});return t.generatedInputObjectTypes[r]=n(7).exactObjectTypeAnnotation(l),n(2).genericTypeAnnotation(n(2).identifier(r))}throw new Error("Could not convert from GraphQL type ".concat(e.toString()))}e.exports={transformInputType:o,transformScalarType:r}},function(e,t,n){"use strict";var r=n(5)(n(9)),i="relay";function a(e){return function(t){var a=t.directives.find(function(e){return e.name===i});if(!a)return this.traverse(t);var s=n(32)(a.args),o=e(s);return this.traverse((0,r.default)({},t,{directives:t.directives.filter(function(e){return e!==a}),metadata:(0,r.default)({},t.metadata||{},o)}))}}function s(e){var t=e.mask,r=e.plural;return void 0!==r&&"boolean"!=typeof r&&n(4)(!1,'RelayRelayDirectiveTransform: Expected the "plural" argument to @relay to be a boolean literal if specified.'),void 0!==t&&"boolean"!=typeof t&&n(4)(!1,'RelayRelayDirectiveTransform: Expected the "mask" argument to @relay to be a boolean literal if specified.'),{mask:t,plural:r}}function o(e){var t=e.mask;return void 0!==t&&"boolean"!=typeof t&&n(4)(!1,'RelayRelayDirectiveTransform: Expected the "mask" argument to @relay to be a boolean literal if specified.'),{mask:t}}e.exports={RELAY:i,SCHEMA_EXTENSION:"\ndirective @relay(\n # Marks a connection field as containing nodes without 'id' fields.\n # This is used to silence the warning when diffing connections.\n isConnectionWithoutNodeID: Boolean,\n\n # Marks a fragment as intended for pattern matching (as opposed to fetching).\n # Used in Classic only.\n pattern: Boolean,\n\n # Marks a fragment as being backed by a GraphQLList.\n plural: Boolean,\n\n # Marks a fragment spread which should be unmasked if provided false\n mask: Boolean = true,\n\n # Selectively pass variables down into a fragment. Only used in Classic.\n variables: [String!],\n) on FRAGMENT_DEFINITION | FRAGMENT_SPREAD | INLINE_FRAGMENT | FIELD\n",transform:function(e){return n(10).transform(e,{Fragment:a(s),FragmentSpread:a(o)})}}},function(e,t,n){"use strict";var r="supported",i="JSDependency",a="module",s="js";function o(e,t){return this.traverse(e,e.typeCondition)}function l(e,t){var o,l=this.traverse(e,e.type);if(null==l.directives.find(function(e){return"match"===e.name}))return l;var u=n(3).getRawType(t);if(!(u instanceof n(0).GraphQLInterfaceType||u instanceof n(0).GraphQLObjectType))throw n(1).createUserError("@match may only be used on fields whose parent type is an interface "+"or object, field '".concat(e.name,"' has invalid type '").concat(String(t),"'"),[e.loc]);var c=this.getContext(),p=c.serverSchema.getType(i);if(null==p||!(p instanceof n(0).GraphQLScalarType))throw new Error("RelayMatchTransform: Expected schema to define a scalar '".concat(i,"' type."));var f=u.getFields()[l.name].args.find(function(e){e.name;return r}),d=null!=f?n(0).getNullableType(f.type):null,h=null!=d&&d instanceof n(0).GraphQLList?d.ofType:null;if(null==f||null==d||null==h||n(0).getNullableType(h)!==n(0).GraphQLString)throw new Error("RelayMatchTransform: @match used on an incompatible "+"field '".concat(l.name,"'. @match may only ")+"be used with fields that can accept '".concat(r,"' ")+"argument with type '[String!]!'.");var m=l.type;if(!(m instanceof n(0).GraphQLUnionType))throw new Error("RelayMatchTransform: You are trying to apply @match "+"directive to a field '".concat(l.name,"' that has unsupported ")+"output type. '".concat(l.name,"' output type should be union ")+"type of object types.");var y=new Map,v={},T=[];l.selections.forEach(function(e){var t,r;if("FragmentSpread"!==e.kind)throw new Error("RelayMatchTransform: all selections in a @match field should be "+"fragment spreads, got '".concat(e.kind,"'."));var o=c.getFragment(e.name);if(!(o.type instanceof n(0).GraphQLObjectType))throw new Error("RelayMatchTransform: all fragment spreads in a @match field should be for fragments on an object type. Union or interface type "+"'".concat(o.type.name,"' for '...").concat(o.name,"' is not supported."));var l=o.type;if(y.has(l))throw new Error('RelayMatchTransform: Each "match" type has to appear at-most once. '+"Type '".concat(l.name,"' was matched in both ")+"'...".concat(e.name,"' and '...").concat(y.get(l)||"(unknown)","'."));if(y.set(l,e.name),!m.getTypes().includes(l))throw new Error("RelayMatchTransform: Unsupported type '".concat(l.toString(),"' in ")+"the list of matches in the @match. Type "+'"'.concat(l.toString(),'" does not belong to the union ')+'"'.concat(m.toString(),'".'));var u=l.getFields()[s],f=u?u.args.find(function(e){return e.name===a}):null;if(null==u||null==f||n(0).getNullableType(f.type)!==n(0).GraphQLString||u.type.name!==p.name)throw new Error("RelayMatchTransform: expcted type '".concat(l.name,"' to have a '").concat(s,"(").concat(a,": String!): ").concat(i,"' field ."));var d=e.directives.find(function(e){return"module"===e.name});if(null==d||1!==e.directives.length)throw new Error("RelayMatchTransform: Fragment spreads in a @match field must have a '@module' directive and no other directives, got invalid directives "+"on fragment spread '...".concat(e.name,"'"));var h=n(32)(d.args);v[String(l)]={component:h.name,fragment:e.name};var g=n(86)(e.name)+".graphql",S={alias:"__match_component",args:[{kind:"Argument",name:a,type:f.type,value:{kind:"Literal",loc:null!==(t=null===(r=d.args[0])||void 0===r?void 0:r.loc)&&void 0!==t?t:d.loc,metadata:{},value:h.name},loc:d.loc,metadata:{}}],directives:[],handles:null,kind:"ScalarField",loc:d.loc,metadata:{storageKey:"__match_component"},name:s,type:p},x={alias:"__match_fragment",args:[{kind:"Argument",name:a,type:f.type,value:{kind:"Literal",loc:e.loc,metadata:{},value:g},loc:e.loc,metadata:{}}],directives:[],handles:null,kind:"ScalarField",loc:e.loc,metadata:{storageKey:"__match_fragment"},name:s,type:p};T.push({kind:"MatchBranch",loc:e.loc,module:h.name,name:e.name,selections:[{args:[],directives:[],kind:"FragmentSpread",loc:e.loc,metadata:{},name:e.name},{directives:[],kind:"InlineFragment",loc:e.loc,metadata:{},selections:[S,x],typeCondition:l}],type:l})});var g=[];Object.keys(v).sort().forEach(function(e){var t=v[e],n=t.component,r=t.fragment;g.push("".concat(r,":").concat(n))});var S=(null!==(o=l.alias)&&void 0!==o?o:l.name)+"(".concat(g.join(","),")");return{kind:"MatchField",alias:l.alias,args:[{kind:"Argument",name:r,type:f.type,value:{kind:"Literal",loc:e.loc,metadata:{},value:Array.from(y.keys()).map(function(e){return e.name})},loc:e.loc,metadata:{}}],directives:[],handles:null,loc:e.loc,metadata:{storageKey:S},name:l.name,type:m,selections:T}}e.exports={SCHEMA_EXTENSION:"\n directive @match on FIELD\n\n directive @module(\n name: String!\n ) on FRAGMENT_SPREAD\n",transform:function(e){return n(10).transform(e,{LinkedField:l,InlineFragment:o},function(e){return e.type})}}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=require("os")},function(e,t,n){"use strict";e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Got unexpected null or undefined";if(null!=e)return e;var n=new Error(t);throw n.framesToPop=1,n}},function(e,t,n){"use strict";var r=n(19),i=n(5)(n(11)),a=function(){function e(e){var t=this;for(var n in this.parsers={},this.parserConfigs=e.parserConfigs,this.writerConfigs=e.writerConfigs,this.onlyValidate=e.onlyValidate,this.onComplete=e.onComplete,this._reporter=e.reporter,this._sourceControl=e.sourceControl,this.parserWriters={},e.parserConfigs)this.parserWriters[n]=new Set;var r=function(n){var r=e.writerConfigs[n];r.baseParsers&&r.baseParsers.forEach(function(e){return t.parserWriters[e].add(n)}),t.parserWriters[r.parser].add(n)};for(var i in e.writerConfigs)r(i)}var t=e.prototype;return t.compileAll=function(){var e=r(function*(){for(var e in this.parsers={},this.parserConfigs)try{yield this.parseEverything(e)}catch(e){return this._reporter.reportError("CodegenRunner.compileAll",e),"ERROR"}var t=!1;for(var n in this.writerConfigs){var r=yield this.write(n);if("ERROR"===r)return"ERROR";"HAS_CHANGES"===r&&(t=!0)}return t?"HAS_CHANGES":"NO_CHANGES"});return function(){return e.apply(this,arguments)}}(),t.compile=function(){var e=r(function*(e){var t=this,r=this.writerConfigs[e],i=[r.parser];return r.baseParsers&&r.baseParsers.forEach(function(e){return i.push(e)}),yield n(6).asyncContext("CodegenRunner:parseEverything",function(){return Promise.all(i.map(function(e){return t.parseEverything(e)}))}),yield this.write(e)});return function(t){return e.apply(this,arguments)}}(),t.getDirtyWriters=function(e){var t=this;return n(6).asyncContext("CodegenRunner:getDirtyWriters",r(function*(){var i=new Set;for(var a in t.writerConfigs){var s=t.writerConfigs[a],o=!0,l=!1,u=void 0;try{for(var c,p=e[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=c.value;s.isGeneratedFile(f)&&i.add(a)}}catch(e){l=!0,u=e}finally{try{o||null==p.return||p.return()}finally{if(l)throw u}}}return yield Promise.all(Object.keys(t.parserConfigs).map(function(a){return n(6).waitFor("Watchman:query",r(function*(){var r=new(n(29)),s=t.parserConfigs[a],o=yield r.watchProject(s.baseDir),l=e.map(function(e){return n(8).relative(s.baseDir,e)}),u={expression:["allof",s.watchmanExpression,["name",l,"wholename"]],fields:["exists"],relative_root:o.relativePath},c=yield r.command("query",o.root,u);r.end(),c.files.length>0&&t.parserWriters[a].forEach(function(e){return i.add(e)})}))})),i}))},t.parseEverything=function(){var e=r(function*(e){if(!this.parsers[e]){var t=this.parserConfigs[e];this.parsers[e]=t.getParser(t.baseDir);var r,i=t.getFileFilter?t.getFileFilter(t.baseDir):s;if(t.filepaths&&t.watchmanExpression)throw new Error("Provide either `watchmanExpression` or `filepaths` but not both.");if(t.watchmanExpression)r=yield n(30).queryFiles(t.baseDir,t.watchmanExpression,i);else{if(!t.filepaths)throw new Error("Either `watchmanExpression` or `filepaths` is required to query files");r=yield n(30).queryFilepaths(t.baseDir,t.filepaths,i)}this.parseFileChanges(e,r)}});return function(t){return e.apply(this,arguments)}}(),t.parseFileChanges=function(e,t){var r=this;return n(6).run("CodegenRunner.parseFileChanges",function(){r.parsers[e].parseFiles(t)})},t.write=function(e){var t=this;return n(6).asyncContext("CodegenRunner.write",r(function*(){try{t._reporter.reportMessage("\nWriting ".concat(e));var r=t.writerConfigs[e],a=r.writeFiles,s=r.parser,o=r.baseParsers,l=r.isGeneratedFile,u=n(24).Map();o&&o.forEach(function(e){u=u.merge(t.parsers[e].documents())});var c=t.parserConfigs[s],p=c.baseDir,f=c.generatedDirectoriesWatchmanExpression,d=[];if(f)d=(yield n(30).queryDirectories(p,f)).map(function(e){return n(8).join(p,e)});var h=t.parsers[s].documents(),m=n(6).run("getSchema",function(){return t.parserConfigs[s].getSchema()}),y=yield a({onlyValidate:t.onlyValidate,schema:m,documents:h,baseDocuments:u,generatedDirectories:d,sourceControl:t._sourceControl,reporter:t._reporter}),v=!0,T=!1,g=void 0;try{for(var S,x=y.values()[Symbol.iterator]();!(v=(S=x.next()).done);v=!0){var b=S.value,E=(0,i.default)(b.changes.created).concat((0,i.default)(b.changes.updated),(0,i.default)(b.changes.deleted),(0,i.default)(b.changes.unchanged)),P=!0,A=!1,w=void 0;try{for(var k,C=E[Symbol.iterator]();!(P=(k=C.next()).done);P=!0){var N=k.value,_=b.getPath(N);l(_)||n(4)(!1,"CodegenRunner: %s returned false for isGeneratedFile, but was in generated directory",_)}}catch(e){A=!0,w=e}finally{try{P||null==C.return||C.return()}finally{if(A)throw w}}}}catch(e){T=!0,g=e}finally{try{v||null==x.return||x.return()}finally{if(T)throw g}}var O=t.onComplete;null!=O&&O(Array.from(y.values()));var D=n(26).combineChanges(Array.from(y.values()));return n(26).printChanges(D,{onlyValidate:t.onlyValidate}),n(26).hasChanges(D)?"HAS_CHANGES":"NO_CHANGES"}catch(e){return t._reporter.reportError("CodegenRunner.write",e),"ERROR"}}))},t.watchAll=function(){var e=r(function*(){for(var e in yield this.compileAll(),this.parserConfigs)yield this.watch(e)});return function(){return e.apply(this,arguments)}}(),t.watch=function(){var e=r(function*(e){var t=this,i=this.parserConfigs[e];if(!i.watchmanExpression)throw new Error("`watchmanExpression` is required to watch files");var a=!0;yield n(30).watchCompile(i.baseDir,i.watchmanExpression,i.getFileFilter?i.getFileFilter(i.baseDir):s,function(){var i=r(function*(r){if(t.parsers[e]||n(4)(!1,"Trying to watch an uncompiled parser config: %s",e),a)a=!1;else{var i=[];t.parserWriters[e].forEach(function(e){return i.push(e)});try{t.parsers[e]?t.parseFileChanges(e,r):yield t.parseEverything(e),yield Promise.all(i.map(function(e){return t.write(e)}))}catch(e){t._reporter.reportError("CodegenRunner.watch",e)}t._reporter.reportMessage("Watching for changes to ".concat(e,"..."))}});return function(e){return i.apply(this,arguments)}}()),this._reporter.reportMessage("Watching for changes to ".concat(e,"..."))});return function(t){return e.apply(this,arguments)}}(),e}();function s(e){return!0}e.exports=a},function(e,t){e.exports=require("fb-watchman")},function(e,t,n){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,n){"use strict";e.exports=function(e,t){for(var r=[e],i=new(n(31))(t.serverSchema,t.clientSchema).add(e),a={FragmentSpread:function(e){!function(e){var n=e.name;if(!i.get(n)){var a=t.getFragment(n);i=i.add(a),r.push(a)}}(e)}};r.length;)n(21).visit(r.pop(),a);return i}},function(e,t,n){"use strict";e.exports=function e(t){switch(t.kind){case"Variable":return{variable:t.variableName};case"Literal":return{value:t.value};case"ListValue":return{list:t.items.map(function(t){return e(t)})};case"ObjectValue":return{object:t.fields.map(function(t){return{name:t.name,value:e(t.value)}})};default:n(4)(!1,"getIdentifierForArgumentValue(): Unsupported AST kind `%s`.",t.kind)}}},function(e,t,n){"use strict";var r=n(5)(n(9));var i={leave:{Request:function(e){throw n(1).createCompilerError("ReaderCodeGenerator: unexpeted Request node.")},Fragment:function(e){var t=null;if(null!=e.metadata){var r,i,a,s,o=e.metadata,l=o.mask,u=o.plural,c=o.connection,p=o.refetch;if(Array.isArray(c))(t=null!==(r=t)&&void 0!==r?r:{}).connection=c;if("boolean"==typeof l)(t=null!==(i=t)&&void 0!==i?i:{}).mask=l;if("boolean"==typeof u)(t=null!==(a=t)&&void 0!==a?a:{}).plural=u;if("object"==typeof p)(t=null!==(s=t)&&void 0!==s?s:{}).refetch={connection:p.connection,operation:n(64).moduleDependency(p.operation+".graphql"),fragmentPathInResult:p.fragmentPathInResult}}return{kind:"Fragment",name:e.name,type:e.type.toString(),metadata:t,argumentDefinitions:e.argumentDefinitions,selections:e.selections}},LocalArgumentDefinition:function(e){return{kind:"LocalArgument",name:e.name,type:e.type.toString(),defaultValue:e.defaultValue}},RootArgumentDefinition:function(e){return{kind:"RootArgument",name:e.name,type:e.type?e.type.toString():null}},Condition:function(e,t,r,i){if("Variable"!==e.condition.kind)throw n(1).createCompilerError("ReaderCodeGenerator: Expected 'Condition' with static value to be pruned or inlined",[e.condition.loc]);return{kind:"Condition",passingValue:e.passingValue,condition:e.condition.variableName,selections:e.selections}},FragmentSpread:function(e){return{kind:"FragmentSpread",name:e.name,args:a(s(e.args))}},InlineFragment:function(e){return{kind:"InlineFragment",type:e.typeCondition.toString(),selections:e.selections}},LinkedField:function(e){var t=n(3).getRawType(e.type),i={kind:"LinkedField",alias:e.alias,name:e.name,storageKey:null,args:a(s(e.args)),concreteType:n(3).isAbstractType(t)?null:t.toString(),plural:function(e){return n(3).getNullableType(e)instanceof n(0).GraphQLList}(e.type),selections:e.selections},l=o(i,e.metadata);return l&&(i=(0,r.default)({},i,{storageKey:l})),i},MatchField:function(e,t,i,l){var u={};e.selections.forEach(function(t){var r;if("ScalarField"!==t.kind||"__typename"!==t.name){if("MatchBranch"!==t.kind)throw n(1).createCompilerError("ReaderCodeGenerator: Expected selection for MatchField '".concat(e.name,"' to be a 'MatchBranch', got '").concat(t.kind,"'."),[t.loc]);if(u.hasOwnProperty(t.type))throw n(1).createCompilerError("ReaderCodeGenerator: Each @match type can appear at-most once. "+"Type '".concat(String(t.type),"' was duplicated."),t.type,[t.loc]);var i=t.name,a=i.match(/^([a-zA-Z][a-zA-Z0-9]*)(?:_([a-zA-Z][_a-zA-Z0-9]*))?$/);if(!a)throw n(1).createCompilerError("ReaderCodeGenerator: @match fragments should be named "+"'FragmentName_propName', got '".concat(i,"'."),[t.loc]);var s=null!==(r=a[2])&&void 0!==r?r:"matchData";u[t.type]={fragmentPropName:s,fragmentName:i}}});var c={kind:"MatchField",alias:e.alias,name:e.name,storageKey:null,args:a(s(e.args)),matchesByType:u},p=o(c,e.metadata);return p&&(c=(0,r.default)({},c,{storageKey:p})),c},ScalarField:function(e){var t={kind:"ScalarField",alias:e.alias,name:e.name,args:a(s(e.args)),storageKey:null},n=o(t,e.metadata);return n&&(t=(0,r.default)({},t,{storageKey:n})),t},SplitOperation:function(e,t,n){return{kind:"SplitOperation",name:e.name,metadata:null,selections:e.selections}},Variable:function(e,t,n){return{kind:"Variable",name:n.name,variableName:e.variableName,type:n.type?n.type.toString():null}},Literal:function(e,t,r){return{kind:"Literal",name:r.name,value:n(12).stableCopy(e.value),type:r.type?r.type.toString():null}},Argument:function(e,t,r,i){if(!["Variable","Literal"].includes(e.value.kind)){JSON.stringify(e.value,null,2);throw n(1).createUserError("ReaderCodeGenerator: Complex argument values (Lists or InputObjects with nested variables) are not supported.",[e.value.loc])}return null!==e.value.value?e.value:null}}};function a(e){return e&&0!==e.length?e:null}function s(e){return e instanceof Array?e.slice().sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}):e}function o(e,t){var r=null===t||void 0===t?void 0:t.storageKey;return"string"==typeof r?r:!e.args||0===e.args.length||e.args.some(function(e){return"Literal"!==e.kind})?null:n(12).getStorageKey(e,{})}e.exports={generate:function(e){return n(21).visit(e,i)}}},function(e,t,n){"use strict";e.exports={moduleDependency:function(e){return"@@MODULE_START@@".concat(e,"@@MODULE_END@@")},postProcess:function(e,t){return e.replace(/"@@MODULE_START@@(.*?)@@MODULE_END@@"/g,function(e,n){return t(n)})}}},function(e,t,n){"use strict";var r=n(5)(n(9));var i={leave:{Root:function(e){return{kind:"Operation",name:e.name,argumentDefinitions:e.argumentDefinitions,selections:s(e.selections)}},Request:function(e){throw n(1).createCompilerError("NormalizationCodeGenerator: unexpected Request node.")},Fragment:function(e){throw n(1).createCompilerError("NormalizationCodeGenerator: unexpected Fragment node.")},LocalArgumentDefinition:function(e){return{kind:"LocalArgument",name:e.name,type:e.type.toString(),defaultValue:e.defaultValue}},RootArgumentDefinition:function(e){return{kind:"RootArgument",name:e.name,type:e.type?e.type.toString():null}},Condition:function(e,t,r,i){if("Variable"!==e.condition.kind)throw n(1).createCompilerError("NormalizationCodeGenerator: Expected 'Condition' with static value to be pruned or inlined",[e.condition.loc]);return{kind:"Condition",passingValue:e.passingValue,condition:e.condition.variableName,selections:s(e.selections)}},Defer:function(e,t,r,i){var a,o,l;if(null!=e.if&&"Variable"!==e.if.kind&&("Literal"!==e.if.kind||!0!==e.if.value))throw n(1).createCompilerError("NormalizationCodeGenerator: Expected @defer `if` condition to be a variable, unspecified, or the literal `true`.",[null!==(o=null===(l=e.if)||void 0===l?void 0:l.loc)&&void 0!==o?o:e.loc]);return{if:"Variable"===(null===(a=e.if)||void 0===a?void 0:a.kind)?e.if.variableName:null,kind:"Defer",label:e.label,metadata:e.metadata,selections:s(e.selections)}},FragmentSpread:function(e){return[]},InlineFragment:function(e){return{kind:"InlineFragment",type:e.typeCondition.toString(),selections:s(e.selections)}},LinkedField:function(e){var t=e.handles&&e.handles.map(function(t){return{kind:"LinkedHandle",alias:e.alias,name:e.name,args:a(o(e.args)),handle:t.name,key:t.key,filters:t.filters}})||[],i=n(3).getRawType(e.type),u={kind:"LinkedField",alias:e.alias,name:e.name,storageKey:null,args:a(o(e.args)),concreteType:n(3).isAbstractType(i)?null:i.toString(),plural:function(e){return n(3).getNullableType(e)instanceof n(0).GraphQLList}(e.type),selections:s(e.selections)},c=l(u,e.metadata);return c&&(u=(0,r.default)({},u,{storageKey:c})),[u].concat(t)},MatchField:function(e,t,i,u){var c={};s(e.selections).forEach(function(t){var r;if("ScalarField"!==t.kind||"__typename"!==t.name){if("MatchBranch"!==t.kind)throw n(1).createCompilerError("NormalizationCodeGenerator: Expected selection for MatchField '".concat(e.name,"' to be a 'MatchBranch', got '").concat(t.kind,"'."),[t.loc]);if(c.hasOwnProperty(t.type))throw n(1).createCompilerError("NormalizationCodeGenerator: Each @match type can appear at-most "+"once. Type '".concat(String(t.type),"' was duplicated."),t.type,[t.loc]);var i=t.name,a=i.match(/^([a-zA-Z][a-zA-Z0-9]*)(?:_([a-zA-Z][_a-zA-Z0-9]*))?$/);if(!a)throw n(1).createCompilerError("NormalizationCodeGenerator: @match fragments should be named "+"'FragmentName_propName', got '".concat(i,"'."),[t.loc]);var s=null!==(r=a[2])&&void 0!==r?r:"matchData";c[t.type]={fragmentPropName:s,fragmentName:i}}});var p={kind:"MatchField",alias:e.alias,name:e.name,storageKey:null,args:a(o(e.args)),matchesByType:c},f=l(p,e.metadata);return f&&(p=(0,r.default)({},p,{storageKey:f})),p},ScalarField:function(e){var t=e.handles&&e.handles.map(function(t){return{kind:"ScalarHandle",alias:e.alias,name:e.name,args:a(o(e.args)),handle:t.name,key:t.key,filters:t.filters}})||[],n={kind:"ScalarField",alias:e.alias,name:e.name,args:a(o(e.args)),storageKey:null},i=l(n,e.metadata);return i&&(n=(0,r.default)({},n,{storageKey:i})),[n].concat(t)},SplitOperation:function(e,t,n){return{kind:"SplitOperation",name:e.name,metadata:e.metadata,selections:s(e.selections)}},Stream:function(e,t,r,i){var a,o,l;if(null!=e.if&&"Variable"!==e.if.kind&&("Literal"!==e.if.kind||!0!==e.if.value))throw n(1).createCompilerError("NormalizationCodeGenerator: Expected @stream `if` condition to be a variable, unspecified, or the literal `true`.",[null!==(o=null===(l=e.if)||void 0===l?void 0:l.loc)&&void 0!==o?o:e.loc]);return{if:"Variable"===(null===(a=e.if)||void 0===a?void 0:a.kind)?e.if.variableName:null,kind:"Stream",label:e.label,metadata:e.metadata,selections:s(e.selections)}},Variable:function(e,t,n){return{kind:"Variable",name:n.name,variableName:e.variableName,type:n.type?n.type.toString():null}},Literal:function(e,t,r){return{kind:"Literal",name:r.name,value:n(12).stableCopy(e.value),type:r.type?r.type.toString():null}},Argument:function(e,t,r,i){if(!["Variable","Literal"].includes(e.value.kind))throw n(1).createUserError("RelayCodeGenerator: Complex argument values (Lists or InputObjects with nested variables) are not supported.",[e.value.loc]);return null!==e.value.value?e.value:null}}};function a(e){return e&&0!==e.length?e:null}function s(e){return e?Array.prototype.concat.apply([],e):[]}function o(e){return e instanceof Array?e.slice().sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}):e}function l(e,t){var r=null===t||void 0===t?void 0:t.storageKey;return"string"==typeof r?r:!e.args||0===e.args.length||e.args.some(function(e){return"Literal"!==e.kind})?null:n(12).getStorageKey(e,{})}e.exports={generate:function(e){if("Root"!==e.kind&&"SplitOperation"!==e.kind)throw n(1).createCompilerError("NormalizationCodeGenerator: Unsupported AST kind '".concat(e.kind,"'."),[e.loc]);return n(21).visit(e,i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.needsWhitespace=p,t.needsWhitespaceBefore=function(e,t){return p(e,t,"before")},t.needsWhitespaceAfter=function(e,t){return p(e,t,"after")},t.needsParens=function(e,t,n){if(!t)return!1;if(i().isNewExpression(t)&&t.callee===e&&function e(t){if(i().isCallExpression(t))return!0;return!!i().isMemberExpression(t)&&(e(t.object)||!t.computed&&e(t.property))}(e))return!0;return c(o,e,t,n)};var r=a(n(123));function i(){const e=a(n(2));return i=function(){return e},e}function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function s(e){const t={};function n(e,n){const r=t[e];t[e]=r?function(e,t,i){const a=r(e,t,i);return null==a?n(e,t,i):a}:n}for(const t of Object.keys(e)){const r=i().FLIPPED_ALIAS_KEYS[t];if(r)for(const i of r)n(i,e[t]);else n(t,e[t])}return t}const o=s(a(n(172))),l=s(r.nodes),u=s(r.list);function c(e,t,n,r){const i=e[t.type];return i?i(t,n,r):null}function p(e,t,n){if(!e)return 0;i().isExpressionStatement(e)&&(e=e.expression);let r=c(l,e,t);if(!r){const i=c(u,e,t);if(i)for(let t=0;t<i.length&&!(r=p(i[t],e,n));t++);}return"object"==typeof r&&null!==r&&r[n]||0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.split(".");return e=>(0,r.default)(e,n,t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(68))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!(0,r.isMemberExpression)(e))return!1;const i=Array.isArray(t)?t:t.split("."),a=[];let s;for(s=e;(0,r.isMemberExpression)(s);s=s.object)a.push(s.property);if(a.push(s),a.length<i.length)return!1;if(!n&&a.length>i.length)return!1;for(let e=0,t=a.length-1;e<i.length;e++,t--){const n=a[t];let s;if((0,r.isIdentifier)(n))s=n.name;else{if(!(0,r.isStringLiteral)(n))return!1;s=n.value}if(i[e]!==s)return!1}return!0};var r=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!e)return;const i=r.NODE_FIELDS[e.type];if(!i)return;const a=i[t];if(!a||!a.validate)return;if(a.optional&&null==n)return;a.validate(e,t,n)};var r=n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!r.VISITOR_KEYS[e.type])};var r=n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n={};const i={};const a=[];const s=[];for(let o=0;o<t.length;o++){const l=t[o];if(l&&!(s.indexOf(l)>=0)){if((0,r.isAnyTypeAnnotation)(l))return[l];if((0,r.isFlowBaseAnnotation)(l))i[l.type]=l;else if((0,r.isUnionTypeAnnotation)(l))a.indexOf(l.types)<0&&(t=t.concat(l.types),a.push(l.types));else if((0,r.isGenericTypeAnnotation)(l)){const t=l.id.name;if(n[t]){let r=n[t];r.typeParameters?l.typeParameters&&(r.typeParameters.params=e(r.typeParameters.params.concat(l.typeParameters.params))):r=l.typeParameters}else n[t]=l}else s.push(l)}}for(const e in i)s.push(i[e]);for(const e in n)s.push(n[e]);return s};var r=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(34))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!n||!e)return e;const r=`${t}Comments`;e[r]?e[r]="leading"===t?n.concat(e[r]):e[r].concat(n):e[r]=n;return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("innerComments",e,t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(50))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("leadingComments",e,t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(50))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,t),(0,i.default)(e,t),(0,a.default)(e,t),e};var r=s(n(77)),i=s(n(75)),a=s(n(74));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("trailingComments",e,t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(50))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e))return e;let n=[];(0,r.isEmptyStatement)(e)?n=[]:((0,r.isStatement)(e)||(e=(0,r.isFunction)(t)?(0,i.returnStatement)(e):(0,i.expressionStatement)(e)),n=[e]);return(0,i.blockStatement)(n)};var r=n(13),i=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e=(e=(e=(e+="").replace(/[^a-zA-Z0-9$_]/g,"-")).replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),(0,r.default)(e)||(e=`_${e}`);return e||"_"};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(33))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,i.default,t),e};var r=a(n(81)),i=a(n(82));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,i){if(!t)return;const a=r.VISITOR_KEYS[t.type];if(!a)return;i=i||{};n(t,i);for(const r of a){const a=t[r];if(Array.isArray(a))for(const t of a)e(t,n,i);else e(a,n,i)}};var r=n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const n=t.preserveComments?r:i;for(const t of n)null!=e[t]&&(e[t]=void 0);for(const t in e)"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const a=Object.getOwnPropertySymbols(e);for(const t of a)e[t]=null};const r=["tokens","start","end","loc","raw","rawValue"],i=n(22).COMMENT_KEYS.concat(["comments"]).concat(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e)&&("var"!==e.kind||e[i.BLOCK_SCOPED_SYMBOL])};var r=n(13),i=n(22)},function(e,t,n){"use strict";function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));return r=function(){return e},e}function i(e){if(e.declaration){const t=e.declaration;this.print(t,e),r().isStatement(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const t=e.specifiers.slice(0);let n=!1;for(;;){const i=t[0];if(!r().isExportDefaultSpecifier(i)&&!r().isExportNamespaceSpecifier(i))break;n=!0,this.print(t.shift(),e),t.length&&(this.token(","),this.space())}(t.length||!t.length&&!n)&&(this.token("{"),t.length&&(this.space(),this.printList(t,e),this.space()),this.token("}")),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}}Object.defineProperty(t,"__esModule",{value:!0}),t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))},t.ImportDefaultSpecifier=function(e){this.print(e.local,e)},t.ExportDefaultSpecifier=function(e){this.print(e.exported,e)},t.ExportSpecifier=function(e){this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))},t.ExportNamespaceSpecifier=function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.exported,e)},t.ExportAllDeclaration=function(e){this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space());this.token("*"),this.space(),this.word("from"),this.space(),this.print(e.source,e),this.semicolon()},t.ExportNamedDeclaration=function(e){this.format.decoratorsBeforeExport&&r().isClassDeclaration(e.declaration)&&this.printJoin(e.declaration.decorators,e);this.word("export"),this.space(),i.apply(this,arguments)},t.ExportDefaultDeclaration=function(e){this.format.decoratorsBeforeExport&&r().isClassDeclaration(e.declaration)&&this.printJoin(e.declaration.decorators,e);this.word("export"),this.space(),this.word("default"),this.space(),i.apply(this,arguments)},t.ImportDeclaration=function(e){this.word("import"),this.space(),("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space());const t=e.specifiers.slice(0);if(t&&t.length){for(;;){const n=t[0];if(!r().isImportDefaultSpecifier(n)&&!r().isImportNamespaceSpecifier(n))break;this.print(t.shift(),e),t.length&&(this.token(","),this.space())}t.length&&(this.token("{"),this.space(),this.printList(t,e),this.space(),this.token("}")),this.space(),this.word("from"),this.space()}this.print(e.source,e),this.semicolon()},t.ImportNamespaceSpecifier=function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.local,e)}},function(e,t,n){"use strict";var r=n(5)(n(9));function i(e,t){var i=this.traverse(e,t);if(0===t.reachableArguments.length)return i;var a=function(e,t,r){var i=new Map;t.argumentDefinitions.forEach(function(e){i.set(e.name,e)});var a=[];if(r.forEach(function(t){var r=t.argDef,s=t.source,o=i.get(r.name);if(o){var l=function(e,t,r){return t.kind!==r.kind||t.name!==r.name||t.defaultValue!==r.defaultValue?null:n(0).isTypeSubTypeOf(e,r.type,t.type)?r:n(0).isTypeSubTypeOf(e,t.type,r.type)?t:null}(e,o,r);null===l?a.push("Variable `$".concat(r.name,"` in `").concat(s,"`")):i.set(l.name,l)}else i.set(r.name,r)}),a.length)throw new Error("RelayMaskTransform: Cannot unmask one or more fragments in "+"`".concat(t.name,"`, the following variables are referenced more ")+"than once with incompatible kinds/types:\n"+a.map(function(e){return"* ".concat(e)}).join("\n"));return Array.from(i.values())}(this.getContext().serverSchema,e,t.reachableArguments);return(0,r.default)({},i,{argumentDefinitions:a})}function a(e,t){if(!function(e){return Boolean(e.metadata&&!1===e.metadata.mask)}(e))return e;0!==e.args.length&&n(4)(!1,"RelayMaskTransform: Cannot unmask fragment spread `%s` with arguments. Use the `ApplyFragmentArgumentTransform` before flattening",e.name);var r=this.getContext().getFragment(e.name),i={kind:"InlineFragment",directives:e.directives,loc:{kind:"Derived",source:e.loc},metadata:e.metadata,selections:r.selections,typeCondition:r.type};r.argumentDefinitions.find(function(e){return"LocalArgumentDefinition"===e.kind})&&n(4)(!1,"RelayMaskTransform: Cannot unmask fragment spread `%s` because it has local argument definition.",e.name);var a=!0,s=!1,o=void 0;try{for(var l,u=r.argumentDefinitions[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var c=l.value;t.reachableArguments.push({argDef:c,source:e.name})}}catch(e){s=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw o}}return this.traverse(i,t)}e.exports={transform:function(e){return n(10).transform(e,{FragmentSpread:a,Fragment:i},function(){return{reachableArguments:[]}})}}},function(e,t,n){"use strict";e.exports=function(e){return"".concat(e,"$normalization")}},function(e,t,n){"use strict";e.exports=function(e){if("LinkedField"===e.kind||"ScalarField"===e.kind)return 0===e.directives.length?e.alias||e.name:(e.alias||e.name)+n(37).printDirectives(e.directives);if("FragmentSpread"===e.kind)return 0===e.args.length?"..."+e.name:"..."+e.name+n(37).printArguments(e.args);if("MatchField"===e.kind){var t,r=null===(t=e.metadata)||void 0===t?void 0:t.storageKey;return"string"!=typeof r&&n(4)(!1,"getIdentifierForSelection: Expected MatchField `%s` to have a precomputed storageKey.",e.name),"M:"+r}return"MatchBranch"===e.kind?"B:"+e.name+"$"+e.module:"Defer"===e.kind?"D:"+e.label:"Stream"===e.kind?"S:"+e.label:"InlineFragment"===e.kind?"I:"+e.typeCondition.name:"Condition"===e.kind?"C:"+("Variable"===e.condition.kind?"$"+e.condition.variableName:String(e.condition.value))+String(e.passingValue):void n(4)(!1,"getIdentifierForSelection: Unexpected kind `%s`.",e.kind)}},function(e,t,n){"use strict";var r=n(5)(n(11));function i(e,t){var r=e.getRoot(t);return n(61)(r,e).documents().map(n(37).print).join("\n")}e.exports=function(e,t,a){return n(6).run("GraphQLCompiler.compile",function(){var s=e.applyTransforms((0,r.default)(t.commonTransforms).concat((0,r.default)(t.fragmentTransforms)),a),o=e.applyTransforms((0,r.default)(t.commonTransforms).concat((0,r.default)(t.queryTransforms),(0,r.default)(t.printTransforms)),a),l=e.applyTransforms((0,r.default)(t.commonTransforms).concat((0,r.default)(t.queryTransforms),(0,r.default)(t.codegenTransforms)),a),u=[],c=!0,p=!1,f=void 0;try{for(var d,h=l.documents()[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value;if("Root"===m.kind){var y=s.getRoot(m.name);u.push(n(38).generate({kind:"Request",fragment:{kind:"Fragment",argumentDefinitions:y.argumentDefinitions,directives:y.directives,loc:{kind:"Derived",source:m.loc},metadata:null,name:y.name,selections:y.selections,type:y.type},id:null,loc:m.loc,metadata:m.metadata||{},name:y.name,root:m,text:i(o,y.name)}))}else u.push(n(38).generate(m))}}catch(e){p=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw f}}var v=!0,T=!1,g=void 0;try{for(var S,x=s.documents()[Symbol.iterator]();!(v=(S=x.next()).done);v=!0){var b=S.value;"Fragment"===b.kind&&u.push(n(38).generate(b))}}catch(e){T=!0,g=e}finally{try{v||null==x.return||x.return()}finally{if(T)throw g}}return u})}},function(e,t,n){"use strict";var r=n(19),i=n(5)(n(9));function a(e){return"require('".concat(e,"')")}function s(){return(s=r(function*(e,t,r,s,o,l,u,c){var p,f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:a,d=t,h=o,m=("Request"===d.kind?d.params.name:d.name)+".graphql",y=(null!=l&&l.length>0?m+"."+l:m)+"."+c,v=function(e){switch(e.kind){case n(12).RelayConcreteNode.FRAGMENT:return"ReaderFragment";case n(12).RelayConcreteNode.REQUEST:return"ConcreteRequest";case n(12).RelayConcreteNode.SPLIT_OPERATION:return"NormalizationSplitOperation";default:n(4)(!1,"Unexpected GeneratedNode kind: `%s`.",e.kind)}}(d),T={};d.kind===n(12).RelayConcreteNode.REQUEST&&(p=d.params.text);var g=null;if(d.kind===n(12).RelayConcreteNode.REQUEST){var S=n(6).run("RelayFileWriter:compareHash",function(){var t=e.read(y),r=n(35).createHash("md5");return r.update("cache-breaker-9"),r.update(JSON.stringify(d)),r.update(u),s&&r.update(s),h&&r.update("persisted"),g=r.digest("hex"),function(e){if(null==e||0===e.length)return null;if(/<<<<<|>>>>>/.test(e))return null;var t=e.match(/@relayHash (\w{32})\b/m);return t&&t[1]}(t)});if(g===S)return e.markUnchanged(y),null;if(e.onlyValidate)return e.markUpdated(y),null;if(h)switch(d.kind){case n(12).RelayConcreteNode.REQUEST:var x=n(23)(d.params.text);T.params={text:x},d=(0,i.default)({},d,{params:(0,i.default)({},d.params,{text:null,id:yield h(x,u)})});break;case n(12).RelayConcreteNode.FRAGMENT:break;default:d.kind}}var b=n(186)("(node/*: any*/)",T),E=r({moduleName:m,documentType:v,kind:d.kind,docText:p,typeText:s,hash:g?"@relayHash ".concat(g):null,concreteText:n(64).postProcess(n(187)(d),f),devOnlyAssignments:b,sourceHash:u});return e.writeFile(y,E),d})).apply(this,arguments)}e.exports=function(e,t,n,r,i,a,o,l){return s.apply(this,arguments)}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11)),a="connection",s="handler";function o(e,t){var n=this.traverse(e,t),i=t.connectionMetadata;return i.length?(0,r.default)({},n,{metadata:(0,r.default)({},n.metadata,{connection:i})}):n}function l(e,t){var o,l=n(3).getNullableType(e.type)instanceof n(0).GraphQLList;t.path.push(l?null:e.alias||e.name);var c=this.traverse(e,t),p=e.directives.find(function(e){return e.name===a});if(!p)return t.path.pop(),c;var f=t.definitionName;!function(e,t){var r=n(12).ConnectionInterface.get().EDGES;if(!u(t,n(17).FIRST)&&!u(t,n(17).LAST))throw n(1).createUserError("Expected field `".concat(t.name,": ")+"".concat(String(t.type),"` to have a ").concat(n(17).FIRST," or ").concat(n(17).LAST," argument in ")+"document `".concat(e,"`."),[t.loc]);if(!t.selections.some(function(e){return"LinkedField"===e.kind&&e.name===r}))throw n(1).createUserError("Expected field `".concat(t.name,": ")+"".concat(String(t.type),"` to have a ").concat(r," selection in document ")+"`".concat(e,"`."),[t.loc])}(f,c),function(e,t){var r=t.type,i=n(12).ConnectionInterface.get(),a=i.CURSOR,s=i.EDGES,o=i.END_CURSOR,l=i.HAS_NEXT_PAGE,u=i.HAS_PREV_PAGE,c=i.NODE,p=i.PAGE_INFO,f=i.START_CURSOR,d=n(3).assertTypeWithFields(n(3).getNullableType(r)).getFields(),h=d[s];if(null==h)throw n(1).createUserError("Expected type '".concat(String(r),"' to have an '").concat(s,"' field in document '").concat(e,"'."),[t.loc]);var m=n(3).getNullableType(h.type);if(!(m instanceof n(0).GraphQLList))throw n(1).createUserError("Expected '".concat(s,"' field on type '").concat(String(r),"' to be a list type in document '").concat(e,"'."),[t.loc]);var y=n(3).getNullableType(m.ofType);if(!(y instanceof n(0).GraphQLObjectType))throw n(1).createUserError("Expected '".concat(s,"' field on type '").concat(String(r),"' to be a list of objects in document '").concat(e,"'."),[t.loc]);var v=y.getFields()[c];if(null==v)throw n(1).createUserError("Expected type '".concat(String(r),"' to have have a '").concat(s," { ").concat(c," }' field in in document '").concat(e,"'."),[t.loc]);var T=n(3).getNullableType(v.type);if(!(T instanceof n(0).GraphQLInterfaceType||T instanceof n(0).GraphQLUnionType||T instanceof n(0).GraphQLObjectType))throw n(1).createUserError("Expected type '".concat(String(r),"' to have a '").concat(s," { ").concat(c," }' field for which the type is an interface, object, or union in document '").concat(e,"'."),[t.loc]);var g=y.getFields()[a];if(null==g||!(n(3).getNullableType(g.type)instanceof n(0).GraphQLScalarType))throw n(1).createUserError("Expected type '".concat(String(r),"' to have a '").concat(s," { ").concat(a," }' scalar field in document '").concat(e,"'."),[t.loc]);var S=d[p];if(null==S)throw n(1).createUserError("Expected type '".concat(String(r),"' to have a '").concat(s," { ").concat(p," }' field in document '").concat(e,"'."),[t.loc]);var x=n(3).getNullableType(S.type);if(!(x instanceof n(0).GraphQLObjectType))throw n(1).createUserError("Expected type '".concat(String(r),"' to have a '").concat(s," { ").concat(p," }' field with object type in document '").concat(e,"'."),[t.loc]);[o,l,u,f].forEach(function(r){var i=x.getFields()[r];if(null==i||!(n(3).getNullableType(i.type)instanceof n(0).GraphQLScalarType))throw n(1).createUserError("Expected type '".concat(String(S.type),"' to have a '").concat(r,"' scalar field in document '").concat(e,"'."),[t.loc])})}(f,c);var d=t.path.includes(null),h=u(c,n(17).FIRST),m=u(c,n(17).LAST),y=null,v=null,T=null;h&&!m?(y="forward",v=h,T=u(c,n(17).AFTER)):m&&!h?(y="backward",v=m,T=u(c,n(17).BEFORE)):m&&h&&(y="bidirectional");var g=v&&"Variable"===v.value.kind?v.value.variableName:null,S=T&&"Variable"===T.value.kind?T.value.variableName:null;t.connectionMetadata.push({count:g,cursor:S,direction:y,path:d?null:(0,i.default)(t.path)}),t.path.pop();var x=n(32)(p.args),b=x.handler,E=x.key,P=x.filters;if(null!=b&&"string"!=typeof b){var A,w,k=p.args.find(function(e){return"key"===e.name});throw n(1).createUserError("Expected the ".concat(s," argument to ")+"@".concat(a," to be a string literal for field ").concat(e.name,"."),[null!==(A=null===k||void 0===k?void 0:null===(w=k.value)||void 0===w?void 0:w.loc)&&void 0!==A?A:p.loc])}if("string"!=typeof E){var C,N,_=p.args.find(function(e){return"key"===e.name});throw n(1).createUserError("Expected the ".concat(n(17).KEY," argument to ")+"@".concat(a," to be a string literal for field ").concat(e.name,"."),[null!==(C=null===_||void 0===_?void 0:null===(N=_.value)||void 0===N?void 0:N.loc)&&void 0!==C?C:p.loc])}var O=e.alias||e.name;if(!E.endsWith("_"+O)){var D,I,L=p.args.find(function(e){return"key"===e.name});throw n(1).createUserError("Expected the ".concat(n(17).KEY," argument to ")+"@".concat(a," to be of form <SomeName>_").concat(O,", got '").concat(E,"'. ")+"For detailed explanation, check out https://facebook.github.io/relay/docs/en/pagination-container.html#connection",[null!==(D=null===L||void 0===L?void 0:null===(I=L.value)||void 0===I?void 0:I.loc)&&void 0!==D?D:p.loc])}var F={name:null!==(o=b)&&void 0!==o?o:a,key:E,filters:P||function(){var t=e.args.filter(function(e){return!n(12).ConnectionInterface.isConnectionCall({name:e.name,value:null})}).map(function(e){return e.name});return 0===t.length?null:t}()};if(null!==y){var M=function(e,t,r,i){var a=n(12).ConnectionInterface.get(),s=a.CURSOR,o=a.EDGES,l=a.END_CURSOR,u=a.HAS_NEXT_PAGE,c=a.HAS_PREV_PAGE,p=a.NODE,f=a.PAGE_INFO,d=a.START_CURSOR,h=n(0).assertCompositeType(n(3).getNullableType(r)),m=f;m+="forward"===i?"{\n ".concat(l,"\n ").concat(u,"\n }"):"backward"===i?"{\n ".concat(c,"\n ").concat(d,"\n }"):"{\n ".concat(l,"\n ").concat(u,"\n ").concat(c,"\n ").concat(d,"\n }");var y="fragment ConnectionFragment on ".concat(String(h)," {\n ").concat(o," {\n ").concat(s,"\n ").concat(p,' {\n __typename # rely on GenerateRequisiteFieldTransform to add "id"\n }\n }\n ').concat(m,"\n }"),v=n(0).parse(y).definitions[0];if(null==v||"FragmentDefinition"!==v.kind)throw n(1).createCompilerError("RelayConnectionTransform: Expected a fragment definition AST.",null,[v].filter(Boolean));var T=n(43).transform(e.clientSchema,[v])[0];if(null==T||"Fragment"!==T.kind)throw n(1).createCompilerError("RelayConnectionTransform: Expected a connection fragment.",[null===T||void 0===T?void 0:T.loc].filter(Boolean));return{directives:[],kind:"InlineFragment",loc:{kind:"Derived",source:t},metadata:null,selections:T.selections,typeCondition:h}}(this.getContext(),c.loc,c.type,y);c=(0,r.default)({},c,{selections:c.selections.concat(M)})}return(0,r.default)({},c,{directives:c.directives.filter(function(e){return e.name!==a}),handles:c.handles?(0,i.default)(c.handles).concat([F]):[F]})}function u(e,t){return e.args&&e.args.find(function(e){return e.name===t})}e.exports={CONNECTION:a,SCHEMA_EXTENSION:"directive @connection(key: String!, filters: [String], handler: String) on FIELD",transform:function(e){return n(10).transform(e,{Fragment:o,LinkedField:l,MatchField:l,Root:o},function(e){return{path:[],connectionMetadata:[],definitionName:e.name}})}}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11)),a="Viewer",s="viewer",o="Node",l="node";function u(e){return e.map(function(e){return"LocalArgumentDefinition"===e.kind?e:{kind:"LocalArgumentDefinition",name:e.name,type:e.type,defaultValue:null,loc:e.loc,metadata:null}})}function c(e){var t=[],n=!0,r=!1,i=void 0;try{for(var a,s=e.argumentDefinitions[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var o=a.value;"LocalArgumentDefinition"===o.kind&&t.push({kind:"Argument",loc:{kind:"Derived",source:o.loc},metadata:null,name:o.name,type:o.type,value:{kind:"Variable",loc:{kind:"Derived",source:o.loc},metadata:null,variableName:o.name,type:o.type}})}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return{args:t,directives:[],kind:"FragmentSpread",loc:{kind:"Derived",source:e.loc},metadata:null,name:e.name}}function p(e,t){var n;return null!==(n=e.args.find(function(e){return e.name===t}))&&void 0!==n?n:null}e.exports={SCHEMA_EXTENSION:"\n directive @refetchable(\n queryName: String!\n ) on FRAGMENT_DEFINITION\n",transform:function(e){var t=e.serverSchema,f=t.getQueryType();if(null==f)throw n(1).createUserError("Expected the schema to define a query type.");var d=function(e){var t=new Map,r=n(1).eachWithErrors(e.documents(),function(e){if("Fragment"===e.kind){var r=function(e){var t=e.directives.find(function(e){return"refetchable"===e.name});if(null==t)return null;var r=n(32)(t.args).queryName;if("string"!=typeof r){var i,a=t.args.find(function(e){return"queryName"===e.name});throw n(1).createCompilerError("Expected the 'name' argument of @refetchable to be a string, got '".concat(String(r),"'."),[null!==(i=null===a||void 0===a?void 0:a.loc)&&void 0!==i?i:t.loc])}return r}(e);if(null!==r){var i=t.get(r);if(null!=i)throw n(1).createUserError("Duplicate definition for @refetchable operation '".concat(r,"' from fragments '").concat(e.name,"' and '").concat(i.name,"'"),[e.loc,i.loc]);t.set(r,e)}}});if(null!=r&&0!==r.length)throw n(1).createCombinedError(r,"RelayRefetchableFragmentTransform");var i=n(92)(e);return new Map(Array.from(t.entries(),function(e){var t=e[0],n=e[1];return[t,i.getFragment(n.name)]}))}(e),h=e,m=n(1).eachWithErrors(d,function(e){var d,m=e[0],y=e[1];if(n(18)(y.type,f))d=function(e,t,r){var i=n(23)(e.getQueryType());return{path:[],node:{argumentDefinitions:u(t.argumentDefinitions),directives:[],kind:"Root",loc:{kind:"Derived",source:t.loc},metadata:null,name:r,operation:"query",selections:[c(t)],type:i}}}(t,y,m);else if(String(y.type)===a)d=function(e,t,r){var i=n(23)(e.getQueryType()),o=e.getType(a),l=i.getFields()[s];if(!(o instanceof n(0).GraphQLObjectType&&null!=l&&l.type instanceof n(0).GraphQLObjectType&&n(18)(l.type,o)&&0===l.args.length&&n(18)(t.type,o)))throw n(1).createUserError("Invalid use of @refetchable on fragment '".concat(t.name,"', check that your schema defines a 'Viewer' object type and has a 'viewer: Viewer' field on the query type."),[t.loc]);return{path:[s],node:{argumentDefinitions:u(t.argumentDefinitions),directives:[],kind:"Root",loc:{kind:"Derived",source:t.loc},metadata:null,name:r,operation:"query",selections:[{alias:null,args:[],directives:[],handles:null,kind:"LinkedField",loc:{kind:"Derived",source:t.loc},metadata:null,name:s,selections:[c(t)],type:o}],type:i}}}(t,y,m);else{if(!(String(y.type)===o||y.type instanceof n(0).GraphQLObjectType&&y.type.getInterfaces().some(function(e){return String(e)===o})))throw n(1).createUserError("Invalid use of @refetchable on fragment '".concat(y.name,"', only fragments on the Query type, Viewer type, Node type, or types implementing Node are supported."),[y.loc]);d=function(e,t,r){var a=n(23)(e.getQueryType()),s=e.getType(o),p=a.getFields()[l];if(!(s instanceof n(0).GraphQLInterfaceType&&null!=p&&p.type instanceof n(0).GraphQLInterfaceType&&n(18)(p.type,s)&&1===p.args.length&&"id"===p.args[0].name&&n(18)(n(0).getNullableType(p.args[0].type),n(0).GraphQLID)&&(t.type instanceof n(0).GraphQLInterfaceType&&n(18)(t.type,s)||t.type instanceof n(0).GraphQLObjectType&&t.type.getInterfaces().some(function(e){return n(18)(e,s)}))))throw n(1).createUserError("Invalid use of @refetchable on fragment '".concat(t.name,"', check that your schema defines a 'Node { id: ID }' interface and has a 'node(id: ID): Node' field on the query type (the id argument may also be non-null)."),[t.loc]);var f=u(t.argumentDefinitions),d=f.find(function(e){return"id"===e.name});if(null!=d)throw n(1).createUserError("Invalid use of @refetchable on fragment '".concat(t.name,"', this fragment already has an '$id' variable in scope."),[d.loc]);if(null==t.selections.find(function(e){return"ScalarField"===e.kind&&"id"===e.name&&null==e.alias&&n(18)(n(0).getNullableType(e.type),n(0).GraphQLID)}))throw n(1).createUserError("Invalid use of @refetchable on fragment '".concat(t.name,"', refetchable fragments on Node (or types implementing Node) must fetch the 'id' field without an alias."),[t.loc]);var h=new(n(0).GraphQLNonNull)(n(0).GraphQLID),m=(0,i.default)(f).concat([{defaultValue:null,kind:"LocalArgumentDefinition",loc:{kind:"Derived",source:t.loc},metadata:null,name:"id",type:h}]);return{path:[l],node:{argumentDefinitions:m,directives:[],kind:"Root",loc:{kind:"Derived",source:t.loc},metadata:null,name:r,operation:"query",selections:[{alias:null,args:[{kind:"Argument",loc:{kind:"Derived",source:t.loc},metadata:null,name:"id",type:h,value:{kind:"Variable",loc:{kind:"Derived",source:t.loc},metadata:null,variableName:"id",type:h}}],directives:[],handles:null,kind:"LinkedField",loc:{kind:"Derived",source:t.loc},metadata:null,name:l,selections:[c(t)],type:s}],type:a}}}(t,y,m)}if(null!=d){var v,T=d,g=T.path,S=T.node,x=function(e){var t=[],r=null,i=null;if(n(21).visit(e,{LinkedField:{enter:function(a){if(t.push(a),a.handles&&a.handles.some(function(e){return"connection"===e.name})||a.directives.some(function(e){return"connection"===e.name})){if(null!=r)throw n(1).createUserError("Invalid use of @refetchable with @connection in fragment '".concat(e.name,"', at most once @connection can appear in a refetchable fragment."),[a.loc]);var s=t.find(function(e){return n(0).getNullableType(e.type)instanceof n(0).GraphQLList});if(s)throw n(1).createUserError("Invalid use of @refetchable with @connection in fragment '".concat(e.name,"', refetchable connections cannot appear inside plural fields."),[a.loc,s.loc]);r=a,i=t.map(function(e){var t;return null!==(t=e.alias)&&void 0!==t?t:e.name})}}},leave:function(){t.pop()}}),null!=r&&null!=i){var a=null,s=p(r,"before"),o=p(r,"last");if(s||o){if(!s||!o||"Variable"!==s.value.kind||"Variable"!==o.value.kind)throw n(1).createUserError("Invalid use of @refetchable with @connection in fragment '".concat(e.name,"', refetchable connections must use variables for the before and last arguments."),[r.loc,s&&"Variable"!==s.value.kind?s.value.loc:null,o&&"Variable"!==o.value.kind?o.value.loc:null].filter(Boolean));a={count:o.value.variableName,cursor:s.value.variableName}}var l=null,u=p(r,"after"),c=p(r,"first");if(u||c){if(!u||!c||"Variable"!==u.value.kind||"Variable"!==c.value.kind)throw n(1).createUserError("Invalid use of @refetchable with @connection in fragment '".concat(e.name,"', refetchable connections must use variables for the after and first arguments."),[r.loc,u&&"Variable"!==u.value.kind?u.value.loc:null,c&&"Variable"!==c.value.kind?c.value.loc:null].filter(Boolean));l={count:c.value.variableName,cursor:u.value.variableName}}return{forward:l,backward:a,path:i}}}(y);h=(h=h.replace((0,r.default)({},y,{metadata:(0,r.default)({},y.metadata||{},{refetch:{connection:null!==(v=x)&&void 0!==v?v:null,operation:m,fragmentPathInResult:g}})}))).add((0,r.default)({},S,{metadata:(0,r.default)({},S.metadata||{},{derivedFrom:y.name})}))}});if(null!=m&&m.length)throw n(1).createCombinedError(m,"RelayRefetchableFragmentTransform");return h}}},function(e,t,n){"use strict";var r=n(5)(n(9));function i(e,t,n){var r=n.name,i=t.get(r);if(null!=i)return i;var s=new Map;return n.argumentDefinitions.forEach(function(e){"LocalArgumentDefinition"===e.kind&&s.set(e.name,e)}),t.set(r,s),a(e,t,s,n),t.set(r,s),s}function a(e,t,r,a){n(21).visit(a,{FragmentSpread:function(n){var a;try{a=e.getFragment(n.name)}catch(e){return!1}var s=i(e,t,a);n.args.forEach(function(e){var t=s.get(e.name);null==t||"Variable"!==e.value.kind||r.has(e.value.variableName)||r.set(e.value.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:e.loc},metadata:null,name:e.value.variableName,type:t.type})});var o=!0,l=!1,u=void 0;try{for(var c,p=s.values()[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=c.value;"RootArgumentDefinition"!==f.kind||r.has(f.name)||r.set(f.name,f)}}catch(e){l=!0,u=e}finally{try{o||null==p.return||p.return()}finally{if(l)throw u}}return!1},Argument:function(e){if("Variable"!==e.value.kind)return!1;var t=e.value;return null!=e.type||null!=t.type?(r.has(t.variableName)||r.set(t.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:e.loc},metadata:null,name:t.variableName,type:t.type||e.type}),!1):void 0},Condition:function(e){var t;if("Variable"===e.condition.kind){var i=e.condition,a=null!==(t=i.type)&&void 0!==t?t:new(n(0).GraphQLNonNull)(n(0).GraphQLBoolean);r.has(i.variableName)||r.set(i.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:e.loc},metadata:null,name:i.variableName,type:a})}}})}e.exports=function(e){var t=new Map;return new(n(31))(e.serverSchema,e.clientSchema).addAll(Array.from(e.documents(),function(s){switch(s.kind){case"Fragment":var o=i(e,t,s);return(0,r.default)({},s,{argumentDefinitions:Array.from(o.values())});case"Root":return function(e,t,i){var s=new Map,o=new Map,l=!0,u=!1,c=void 0;try{for(var p,f=i.argumentDefinitions.entries()[Symbol.iterator]();!(l=(p=f.next()).done);l=!0){var d=p.value,h=d[0],m=d[1];"LocalArgumentDefinition"===m.kind&&o.set(h,m)}}catch(e){u=!0,c=e}finally{try{l||null==f.return||f.return()}finally{if(u)throw c}}return a(e,t,s,i),(0,r.default)({},i,{argumentDefinitions:Array.from(s.values(),function(e){var t,r;if("RootArgumentDefinition"!==e.kind)throw n(1).createCompilerError("inferRootArgumentDefinitions: Expected inferred variable '$".concat(e.name,"' to be a root variables."),[e.loc]);var i=o.get(e.name);return{defaultValue:null!==(t=null===i||void 0===i?void 0:i.defaultValue)&&void 0!==t?t:null,kind:"LocalArgumentDefinition",loc:e.loc,metadata:null,name:e.name,type:null!==(r=null===i||void 0===i?void 0:i.type)&&void 0!==r?r:e.type}})})}(e,t,s);case"SplitOperation":return s;default:throw n(1).createCompilerError("inferRootArgumentDefinitions: Unsupported kind '".concat(s.kind,"'."))}}))}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11));function a(e){return function e(t,a){var s=[];(function(e){return(0,i.default)(e).sort(function(e,t){return"InlineFragment"===e.kind||"Condition"===e.kind?1:"InlineFragment"===t.kind||"Condition"===t.kind?-1:0})})(t.selections).forEach(function(t){var r=n(87)(t);switch(t.kind){case"ScalarField":case"FragmentSpread":a.has(r)||(s.push(t),a=a.set(r,null));break;case"Defer":case"Stream":case"MatchBranch":case"MatchField":case"LinkedField":var i=e(t,a.get(r)||new(n(24).Map));i.node&&(s.push(i.node),a=a.set(r,i.selectionMap));break;case"InlineFragment":case"Condition":var o=e(t,a.get(r)||a);o.node&&(s.push(o.node),a=a.set(r,o.selectionMap));break;default:n(4)(!1,"SkipRedundantNodesTransform: Unexpected node kind `%s`.",t.kind)}});var o=s.length?(0,r.default)({},t,{selections:s}):null;return{selectionMap:a,node:o}}(e,new(n(24).Map)).node}e.exports={transform:function(e){return n(10).transform(e,{Root:a,Fragment:a})}}},function(e,t,n){"use strict";e.exports={getFragmentScope:function(e,t,r,i){var a=new Map;t.forEach(function(e){"Literal"===e.value.kind?a.set(e.name,e.value):"Variable"===e.value.kind&&a.set(e.name,r[e.value.variableName])});var s={},o=n(1).eachWithErrors(e,function(e){if("RootArgumentDefinition"===e.kind){if(a.has(e.name)){var r,o=t.find(function(t){return t.name===e.name});throw n(1).createUserError("Unexpected argument '".concat(e.name,"' supplied to fragment '").concat(i.name,"'. @arguments may only be provided for variables defined in the fragment's @argumentDefinitions."),[null!==(r=null===o||void 0===o?void 0:o.loc)&&void 0!==r?r:i.loc])}s[e.name]={kind:"Variable",metadata:null,variableName:e.name,type:e.type}}else{var l=a.get(e.name);if(null==l||"Literal"===l.kind&&null==l.value){if(null==e.defaultValue&&e.type instanceof n(0).GraphQLNonNull){var u,c=t.find(function(t){return t.name===e.name});throw n(1).createUserError("No value found for required argument '".concat(e.name,": ").concat(String(e.type),"' on fragment '").concat(i.name,"'."),[null!==(u=null===c||void 0===c?void 0:c.loc)&&void 0!==u?u:i.loc])}s[e.name]={kind:"Literal",value:e.defaultValue}}else s[e.name]=l}});if(null!=o&&o.length)throw n(1).createCombinedError(o);return s},getRootScope:function(e){var t={};return e.forEach(function(e){t[e.name]={kind:"Variable",metadata:null,variableName:e.name,type:e.type}}),t}}},function(e,t,n){"use strict";e.exports={hasUnaliasedSelection:function(e,t){return e.selections.some(function(e){return"ScalarField"===e.kind&&null==e.alias&&e.name===t})}}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11)),a="__typename",s="String";function o(e,t){var s=this.traverse(e,t);return n(3).isAbstractType(s.type)&&!n(95).hasUnaliasedSelection(s,a)?(0,r.default)({},s,{selections:[t.typenameField].concat((0,i.default)(s.selections))}):s}e.exports={transform:function(e){var t=n(0).assertLeafType(e.serverSchema.getType(s)),r={typenameField:{kind:"ScalarField",alias:null,args:[],directives:[],handles:null,loc:{kind:"Generated"},metadata:null,name:a,type:t}};return n(10).transform(e,{LinkedField:o,MatchField:o},function(){return r})}}},function(e,t,n){"use strict";function r(e){return this.getContext().serverSchema.getDirectives().some(function(t){return t.name===e.name})?e:null}e.exports={transform:function(e){return n(10).transform(e,{Directive:r})}}},function(e,t,n){"use strict";var r=n(99)(n(106).find);e.exports={ASTConvert:n(25),CodegenDirectory:n(26),CodegenRunner:n(58),CodegenWatcher:n(30),CompilerContext:n(31),ConsoleReporter:n(109),DotGraphQLParser:n(110),ASTCache:n(42),IRTransformer:n(10),IRVisitor:n(21),Printer:n(37),Profiler:n(6),SchemaUtils:n(3),SourceControlMercurial:n(111).SourceControlMercurial,WatchmanClient:n(29),filterContextForNode:n(61),getIdentifierForArgumentValue:n(62),getLiteralArgumentValues:n(32),isEquivalentType:n(18),nullthrows:n(57),Parser:n(43),Validator:n(44),CodeGenerator:n(38),FlowGenerator:n(114),GraphQLCompilerContext:n(31),FileIRParser:r,FileWriter:n(185),IRTransforms:n(188),JSModuleParser:r,MultiReporter:n(201),Runner:n(58),compileRelayArtifacts:n(88),formatGeneratedModule:n(202),convertASTDocuments:n(25).convertASTDocuments,transformASTSchema:n(25).transformASTSchema,getReaderSourceDefinitionName:n(41).getReaderSourceDefinitionName,getSourceDefinitionName:n(41).getSourceDefinitionName,writeRelayGeneratedFile:n(89)}},function(e,t,n){"use strict";var r=n(5)(n(11)),i=n(6).instrument(n(0).parse,"GraphQL.parse"),a={validateNames:!0};e.exports=function(e){var t=n(103).memoizedFind.bind(null,e);function s(e,t){var n=o(e,t);if(n)return n.document}function o(e,s){var o=n(15).readFileSync(n(8).join(e,s.relPath),"utf8");o.indexOf("graphql")>=0||n(4)(!1,"RelaySourceModuleParser: Files should be filtered before passed to the parser, got unfiltered file `%s`.",s.relPath);var l=[],u=[];return t(o,e,s,a).forEach(function(e){var t=new(n(0).Source)(e,s.relPath),a=i(t);a.definitions.length||n(4)(!1,"RelaySourceModuleParser: Expected GraphQL text to contain at least one definition (fragment, mutation, query, subscription), got `%s`.",e),u.push(t.body),l.push.apply(l,(0,r.default)(a.definitions))}),{document:{kind:"Document",definitions:l},sources:u}}return{getParser:function(e){return new(n(42))({baseDir:e,parse:s})},getFileFilter:function(e){return function(t){return n(15).readFileSync(n(8).join(e,t.relPath),"utf8").indexOf("graphql")>=0}},parseFile:s,parseFileWithSources:o}}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=new(n(104))("RelayFindGraphQLTags","v1");function i(e,t,r,i){var s=i.validateNames,o=e(t,r);if(s){var l=n(105)(r);o.forEach(function(e){return function(e,t,r){var i=e.template,s=e.keyName,o=e.sourceLocationOffset;n(0).parse(new(n(0).Source)(i,r,o)).definitions.forEach(function(e){e.name||a(!1,"RelayFindGraphQLTags: In module `%s`, a definition of kind `%s` requires a name.",t,e.kind);var n=e.name.value;if("OperationDefinition"===e.kind){var r=n.match(/^(.*)(Mutation|Query|Subscription)$/);r&&n.startsWith(t)||a(!1,'RelayFindGraphQLTags: Operation names in graphql tags must be prefixed with the module name and end in "Mutation", "Query", or "Subscription". Got `%s` in module `%s`.',n,t)}else"FragmentDefinition"===e.kind&&(s?n!==t+"_"+s&&a(!1,"RelayFindGraphQLTags: Container fragment names must be `<ModuleName>_<propName>`. Got `%s`, expected `%s`.",n,t+"_"+s):n.startsWith(t)||a(!1,"RelayFindGraphQLTags: Fragment names in graphql tags must be prefixed with the module name. Got `%s` in module `%s`.",n,t))})}(e,l,r)})}return o.map(function(e){return e.template})}function a(e,t){if(!e){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];throw new Error(n(28).format.apply(n(28),[t].concat(i)))}}e.exports={find:i,memoizedFind:function(e,t,s,o,l){return o.exists||a(!1,"RelayFindGraphQLTags: Called with non-existent file `%s`",o.relPath),r.getOrCompute(o.hash+(l.validateNames?"1":"0"),i.bind(null,e,t,n(8).join(s,o.relPath),l))}}},function(e,t,n){"use strict";var r=n(5)(n(55)),i=function(){function e(e,t){(0,r.default)(this,"_dir",null),this._name=e,this._cacheBreaker=t}var t=e.prototype;return t._getFile=function(e){if(null==this._dir){var t=n(56).userInfo().username,r=n(35).createHash("md5").update(this._cacheBreaker).update(t).digest("hex"),i=n(8).join(n(56).tmpdir(),"".concat(this._name,"-").concat(r));if(!n(15).existsSync(i))try{n(15).mkdirSync(i)}catch(e){if("EEXIST"!==e.code)throw e}this._dir=i}return n(8).join(this._dir,e)},t.getOrCompute=function(e,t){var r=this;return n(6).run("RelayCompilerCache.getOrCompute",function(){var i=r._getFile(e);if(n(15).existsSync(i))try{return JSON.parse(n(15).readFileSync(i,"utf8"))}catch(e){}var a=t();try{n(15).writeFileSync(i,JSON.stringify(a),"utf8")}catch(e){}return a})},e}();e.exports=i},function(e,t,n){"use strict";e.exports=function(e){var t=n(8).basename(e,n(8).extname(e)),r="index"===(t=t.replace(/(?:\.\w+)+/,""))?n(8).basename(n(8).dirname(e)):t;return r=(r=r.replace(/(?:\.\w+)+/,"")).replace(/[^a-zA-Z0-9]+(\w?)/g,function(e,t){return t.toUpperCase()})}},function(e,t,n){"use strict";var r={allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module",plugins:["asyncGenerators","classProperties",["decorators",{decoratorsBeforeExport:!0}],"doExpressions","dynamicImport","exportExtensions","flow","functionBind","functionSent","jsx","nullishCoalescingOperator","objectRestSpread","optionalChaining","optionalCatchBinding"],strictMode:!1};var i=Object.create(null,{createFragmentContainer:{value:!0},createPaginationContainer:{value:!0},createRefetchContainer:{value:!0}}),a={comments:!0,end:!0,leadingComments:!0,loc:!0,name:!0,start:!0,trailingComments:!0,type:!0};function s(e){return"Identifier"===e.type&&"graphql"===e.name}function o(e){var t=e.quasis;return t&&1===t.length||p(!1,"FindGraphQLTags: Substitutions are not allowed in graphql tags."),t[0]}function l(e){return o(e).value.raw}function u(e){var t=o(e).loc.start;return{line:t.line,column:t.column+1}}function c(e,t){if(null==t)return"(source unavailable)";var n=e.split("\n").slice(t.start.line-1,t.end.line);return n[0]=n[0].slice(t.start.column),n[n.length-1]=n[n.length-1].slice(0,t.end.column),n.join("\n")}function p(e,t){if(!e){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];throw new Error(n(28).format.apply(n(28),[t].concat(i)))}}function f(e,t){var n=t[e.type];null==n?d(e,t):n(e)}function d(e,t){for(var n in e)if(!a[n]){var r=e[n];r&&"object"==typeof r&&"string"==typeof r.type?f(r,t):Array.isArray(r)&&r.forEach(function(e){e&&"object"==typeof e&&"string"==typeof e.type&&f(e,t)})}}e.exports={find:n(6).instrument(function(e){var t=[],a={CallExpression:function(n){var r=n.callee;if("Identifier"===r.type&&i[r.name]||"MemberExpression"===r.kind&&"Identifier"===r.object.type&&"Relay"===r.object.value&&"Identifier"===r.property.type&&i[r.property.name]){var o=n.arguments[1];"ObjectExpression"===o.type?o.properties.forEach(function(r){("ObjectProperty"!==r.type||"Identifier"!==r.key.type||"TaggedTemplateExpression"!==r.value.type)&&p(!1,"FindGraphQLTags: `%s` expects fragment definitions to be `key: graphql`.",n.callee.name),s(r.value.tag)||p(!1,"FindGraphQLTags: `%s` expects fragment definitions to be tagged with `graphql`, got `%s`.",n.callee.name,c(e,r.value.tag.loc)),t.push({keyName:r.key.name,template:l(r.value.quasi),sourceLocationOffset:u(r.value.quasi)})}):(o&&"TaggedTemplateExpression"===o.type||p(!1,"FindGraphQLTags: `%s` expects a second argument of fragment definitions.",n.callee.name),s(o.tag)||p(!1,"FindGraphQLTags: `%s` expects fragment definitions to be tagged with `graphql`, got `%s`.",n.callee.name,c(e,o.tag.loc)),t.push({keyName:null,template:l(o.quasi),sourceLocationOffset:u(o.quasi)}));for(var h=2;h<n.arguments.length;h++)f(n.arguments[h],a)}else d(n,a)},TaggedTemplateExpression:function(e){s(e.tag)&&t.push({keyName:null,template:e.quasi.quasis[0].value.raw,sourceLocationOffset:u(e.quasi)})}};return f(n(107).parse(e,r),a),t},"FindGraphQLTags.find")}},function(e,t,n){"use strict";function r(e){var t,n;function r(t,n){try{var a=e[t](n),s=a.value,o=s instanceof function(e){this.wrapped=e};Promise.resolve(o?s.wrapped:s).then(function(e){o?r("next",e):i(a.done?"return":"normal",e)},function(e){r("throw",e)})}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,s){var o={key:e,arg:i,resolve:a,reject:s,next:null};n?n=n.next=o:(t=n=o,r(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}Object.defineProperty(t,"__esModule",{value:!0}),"function"==typeof Symbol&&Symbol.asyncIterator&&(r.prototype[Symbol.asyncIterator]=function(){return this}),r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)};var a=!0,s=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=0===t.binop?0:t.binop||null,this.updateContext=null};function o(e,t){return void 0===t&&(t={}),new s(e,Object.assign({},t,{keyword:e}))}function l(e,t){return new s(e,{beforeExpr:a,binop:t})}var u={num:new s("num",{startsExpr:!0}),bigint:new s("bigint",{startsExpr:!0}),regexp:new s("regexp",{startsExpr:!0}),string:new s("string",{startsExpr:!0}),name:new s("name",{startsExpr:!0}),eof:new s("eof"),bracketL:new s("[",{beforeExpr:a,startsExpr:!0}),bracketR:new s("]"),braceL:new s("{",{beforeExpr:a,startsExpr:!0}),braceBarL:new s("{|",{beforeExpr:a,startsExpr:!0}),braceR:new s("}"),braceBarR:new s("|}"),parenL:new s("(",{beforeExpr:a,startsExpr:!0}),parenR:new s(")"),comma:new s(",",{beforeExpr:a}),semi:new s(";",{beforeExpr:a}),colon:new s(":",{beforeExpr:a}),doubleColon:new s("::",{beforeExpr:a}),dot:new s("."),question:new s("?",{beforeExpr:a}),questionDot:new s("?."),arrow:new s("=>",{beforeExpr:a}),template:new s("template"),ellipsis:new s("...",{beforeExpr:a}),backQuote:new s("`",{startsExpr:!0}),dollarBraceL:new s("${",{beforeExpr:a,startsExpr:!0}),at:new s("@"),hash:new s("#"),interpreterDirective:new s("#!..."),eq:new s("=",{beforeExpr:a,isAssign:!0}),assign:new s("_=",{beforeExpr:a,isAssign:!0}),incDec:new s("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new s("!",{beforeExpr:a,prefix:!0,startsExpr:!0}),tilde:new s("~",{beforeExpr:a,prefix:!0,startsExpr:!0}),pipeline:new l("|>",0),nullishCoalescing:new l("??",1),logicalOR:new l("||",1),logicalAND:new l("&&",2),bitwiseOR:new l("|",3),bitwiseXOR:new l("^",4),bitwiseAND:new l("&",5),equality:new l("==/!=",6),relational:new l("</>",7),bitShift:new l("<</>>",8),plusMin:new s("+/-",{beforeExpr:a,binop:9,prefix:!0,startsExpr:!0}),modulo:new l("%",10),star:new l("*",10),slash:new l("/",10),exponent:new s("**",{beforeExpr:a,binop:11,rightAssociative:!0})},c={break:new o("break"),case:new o("case",{beforeExpr:a}),catch:new o("catch"),continue:new o("continue"),debugger:new o("debugger"),default:new o("default",{beforeExpr:a}),do:new o("do",{isLoop:!0,beforeExpr:a}),else:new o("else",{beforeExpr:a}),finally:new o("finally"),for:new o("for",{isLoop:!0}),function:new o("function",{startsExpr:!0}),if:new o("if"),return:new o("return",{beforeExpr:a}),switch:new o("switch"),throw:new o("throw",{beforeExpr:a,prefix:!0,startsExpr:!0}),try:new o("try"),var:new o("var"),let:new o("let"),const:new o("const"),while:new o("while",{isLoop:!0}),with:new o("with"),new:new o("new",{beforeExpr:a,startsExpr:!0}),this:new o("this",{startsExpr:!0}),super:new o("super",{startsExpr:!0}),class:new o("class"),extends:new o("extends",{beforeExpr:a}),export:new o("export"),import:new o("import",{startsExpr:!0}),yield:new o("yield",{beforeExpr:a,startsExpr:!0}),null:new o("null",{startsExpr:!0}),true:new o("true",{startsExpr:!0}),false:new o("false",{startsExpr:!0}),in:new o("in",{beforeExpr:a,binop:7}),instanceof:new o("instanceof",{beforeExpr:a,binop:7}),typeof:new o("typeof",{beforeExpr:a,prefix:!0,startsExpr:!0}),void:new o("void",{beforeExpr:a,prefix:!0,startsExpr:!0}),delete:new o("delete",{beforeExpr:a,prefix:!0,startsExpr:!0})};function p(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}Object.keys(c).forEach(function(e){u["_"+e]=c[e]});function f(e){var t=e.split(" ");return function(e){return t.indexOf(e)>=0}}var d={6:f("enum await"),strict:f("implements interface let package private protected public static yield"),strictBind:f("eval arguments")},h=f("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"),m="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",y="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",v=new RegExp("["+m+"]"),T=new RegExp("["+m+y+"]");m=y=null;var g=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],S=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function x(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function b(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&v.test(String.fromCharCode(e)):x(e,g)))}function E(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&T.test(String.fromCharCode(e)):x(e,g)||x(e,S))))}var P=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void"];function A(e){return"type"===e.importKind||"typeof"===e.importKind}function w(e){return(e.type===u.name||!!e.type.keyword)&&"from"!==e.value}var k={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var C=/\*?\s*@((?:no)?flow)\b/,N={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},_=/\r\n?|\n|\u2028|\u2029/,O=new RegExp(_.source,"g");function D(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function I(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var L=function(e,t,n,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r},F={braceStatement:new L("{",!1),braceExpression:new L("{",!0),templateQuasi:new L("${",!0),parenStatement:new L("(",!1),parenExpression:new L("(",!0),template:new L("`",!0,!0,function(e){return e.readTmplToken()}),functionExpression:new L("function",!0)};u.parenR.updateContext=u.braceR.updateContext=function(){if(1!==this.state.context.length){var e=this.state.context.pop();e===F.braceStatement&&this.curContext()===F.functionExpression?(this.state.context.pop(),this.state.exprAllowed=!1):e===F.templateQuasi?this.state.exprAllowed=!0:this.state.exprAllowed=!e.isExpr}else this.state.exprAllowed=!0},u.name.updateContext=function(e){"of"!==this.state.value||this.curContext()!==F.parenStatement?(this.state.exprAllowed=!1,e!==u._let&&e!==u._const&&e!==u._var||_.test(this.input.slice(this.state.end))&&(this.state.exprAllowed=!0),this.state.isIterator&&(this.state.isIterator=!1)):this.state.exprAllowed=!e.beforeExpr},u.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?F.braceStatement:F.braceExpression),this.state.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.state.context.push(F.templateQuasi),this.state.exprAllowed=!0},u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.state.context.push(t?F.parenStatement:F.parenExpression),this.state.exprAllowed=!0},u.incDec.updateContext=function(){},u._function.updateContext=function(e){this.state.exprAllowed&&!this.braceIsBlock(e)&&this.state.context.push(F.functionExpression),this.state.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===F.template?this.state.context.pop():this.state.context.push(F.template),this.state.exprAllowed=!1};var M=/^[\da-fA-F]+$/,j=/^\d+$/;function R(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function B(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return B(e.object)+"."+B(e.property);throw new Error("Node had unexpected type: "+e.type)}F.j_oTag=new L("<tag",!1),F.j_cTag=new L("</tag",!1),F.j_expr=new L("<tag>...</tag>",!0,!0),u.jsxName=new s("jsxName"),u.jsxText=new s("jsxText",{beforeExpr:!0}),u.jsxTagStart=new s("jsxTagStart",{startsExpr:!0}),u.jsxTagEnd=new s("jsxTagEnd"),u.jsxTagStart.updateContext=function(){this.state.context.push(F.j_expr),this.state.context.push(F.j_oTag),this.state.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===F.j_oTag&&e===u.slash||t===F.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===F.j_expr):this.state.exprAllowed=!0};var V={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1};var U=function(e,t){this.line=e,this.column=t},q=function(e,t){this.start=e,this.end=t};function K(e){return e[e.length-1]}var J=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.raise=function(e,t,n){var r=void 0===n?{}:n,i=r.missingPluginNames,a=r.code,s=function(e,t){var n,r=1,i=0;for(O.lastIndex=0;(n=O.exec(e))&&n.index<t;)r++,i=O.lastIndex;return new U(r,t-i)}(this.input,e);t+=" ("+s.line+":"+s.column+")";var o=new SyntaxError(t);throw o.pos=e,o.loc=s,i&&(o.missingPlugin=i),void 0!==a&&(o.code=a),o},t}(function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.addComment=function(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)},n.processComment=function(e){if(!("Program"===e.type&&e.body.length>0)){var t,n,r,i,a,s=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(r=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(s.length>0){var o=K(s);o.trailingComments&&o.trailingComments[0].start>=e.end&&(r=o.trailingComments,delete o.trailingComments)}for(s.length>0&&K(s).start>=e.start&&(t=s.pop());s.length>0&&K(s).start>=e.start;)n=s.pop();if(!n&&t&&(n=t),t&&this.state.leadingComments.length>0){var l=K(this.state.leadingComments);if("ObjectProperty"===t.type){if(l.start>=e.start&&this.state.commentPreviousNode){for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(t.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===e.type&&e.arguments&&e.arguments.length){var u=K(e.arguments);if(u&&l.start>=u.start&&l.end<=e.end&&this.state.commentPreviousNode){for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(u.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}}if(n){if(n.leadingComments)if(n!==e&&n.leadingComments.length>0&&K(n.leadingComments).end<=e.start)e.leadingComments=n.leadingComments,delete n.leadingComments;else for(i=n.leadingComments.length-2;i>=0;--i)if(n.leadingComments[i].end<=e.start){e.leadingComments=n.leadingComments.splice(0,i+1);break}}else if(this.state.leadingComments.length>0)if(K(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(i=0;i<this.state.leadingComments.length&&!(this.state.leadingComments[i].end>e.start);i++);var c=this.state.leadingComments.slice(0,i);c.length&&(e.leadingComments=c),0===(r=this.state.leadingComments.slice(i)).length&&(r=null)}this.state.commentPreviousNode=e,r&&(r.length&&r[0].start>=e.start&&K(r).end<=e.end?e.innerComments=r:e.trailingComments=r),s.push(e)}},t}(function(){function e(){this.sawUnambiguousESM=!1}var t=e.prototype;return t.isReservedWord=function(e){return"await"===e?this.inModule:d[6](e)},t.hasPlugin=function(e){return Object.hasOwnProperty.call(this.plugins,e)},t.getPluginOption=function(e,t){if(this.hasPlugin(e))return this.plugins[e][t]},e}())),X=function(){function e(){}var t=e.prototype;return t.init=function(e,t){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.input=t,this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inMethod=!1,this.inFunction=!1,this.inParameters=!1,this.maybeInArrowParameters=!1,this.inGenerator=!1,this.inAsync=!1,this.inPropertyName=!1,this.inType=!1,this.inClassProperty=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isIterator=!1,this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldInPossibleArrowParameters=null,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=this.lineStart=0,this.curLine=e.startLine,this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=[F.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[]},t.curPosition=function(){return new U(this.curLine,this.pos-this.lineStart)},t.clone=function(t){var n=this,r=new e;return Object.keys(this).forEach(function(e){var i=n[e];t&&"context"!==e||!Array.isArray(i)||(i=i.slice()),r[e]=i}),r},e}(),G=function(e){return e>=48&&e<=57},Y={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},W={bin:[48,49]};W.oct=W.bin.concat([50,51,52,53,54,55]),W.dec=W.oct.concat([56,57]),W.hex=W.dec.concat([65,66,67,68,69,70,97,98,99,100,101,102]);var Q=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.addExtra=function(e,t,n){e&&((e.extra=e.extra||{})[t]=n)},n.isRelational=function(e){return this.match(u.relational)&&this.state.value===e},n.isLookaheadRelational=function(e){var t=this.lookahead();return t.type==u.relational&&t.value==e},n.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected(null,u.relational)},n.eatRelational=function(e){return!!this.isRelational(e)&&(this.next(),!0)},n.isContextual=function(e){return this.match(u.name)&&this.state.value===e&&!this.state.containsEsc},n.isLookaheadContextual=function(e){var t=this.lookahead();return t.type===u.name&&t.value===e},n.eatContextual=function(e){return this.isContextual(e)&&this.eat(u.name)},n.expectContextual=function(e,t){this.eatContextual(e)||this.unexpected(null,t)},n.canInsertSemicolon=function(){return this.match(u.eof)||this.match(u.braceR)||this.hasPrecedingLineBreak()},n.hasPrecedingLineBreak=function(){return _.test(this.input.slice(this.state.lastTokEnd,this.state.start))},n.isLineTerminator=function(){return this.eat(u.semi)||this.canInsertSemicolon()},n.semicolon=function(){this.isLineTerminator()||this.unexpected(null,u.semi)},n.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},n.unexpected=function(e,t){throw void 0===t&&(t="Unexpected token"),"string"!=typeof t&&(t='Unexpected token, expected "'+t.label+'"'),this.raise(null!=e?e:this.state.start,t)},n.expectPlugin=function(e,t){if(!this.hasPlugin(e))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling the parser plugin: '"+e+"'",{missingPluginNames:[e]});return!0},n.expectOnePlugin=function(e,t){var n=this;if(!e.some(function(e){return n.hasPlugin(e)}))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling one of the following parser plugin(s): '"+e.join(", ")+"'",{missingPluginNames:e})},t}(function(e){function t(t,n){var r;return(r=e.call(this)||this).state=new X,r.state.init(t,n),r.isLookahead=!1,r}i(t,e);var n=t.prototype;return n.next=function(){this.options.tokens&&!this.isLookahead&&this.state.tokens.push(new function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new q(e.startLoc,e.endLoc)}(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},n.eat=function(e){return!!this.match(e)&&(this.next(),!0)},n.match=function(e){return this.state.type===e},n.isKeyword=function(e){return h(e)},n.lookahead=function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state;return this.state=e,t},n.setStrict=function(e){if(this.state.strict=e,this.match(u.num)||this.match(u.string)){for(this.state.pos=this.state.start;this.state.pos<this.state.lineStart;)this.state.lineStart=this.input.lastIndexOf("\n",this.state.lineStart-2)+1,--this.state.curLine;this.nextToken()}},n.curContext=function(){return this.state.context[this.state.context.length-1]},n.nextToken=function(){var e=this.curContext();e&&e.preserveSpace||this.skipSpace(),this.state.containsOctal=!1,this.state.octalPosition=null,this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.input.length?this.finishToken(u.eof):e.override?e.override(this):this.readToken(this.input.codePointAt(this.state.pos))},n.readToken=function(e){b(e)||92===e?this.readWord():this.getTokenFromCode(e)},n.pushComment=function(e,t,n,r,i,a){var s={type:e?"CommentBlock":"CommentLine",value:t,start:n,end:r,loc:new q(i,a)};this.isLookahead||(this.options.tokens&&this.state.tokens.push(s),this.state.comments.push(s),this.addComment(s))},n.skipBlockComment=function(){var e,t=this.state.curPosition(),n=this.state.pos,r=this.input.indexOf("*/",this.state.pos+=2);for(-1===r&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=r+2,O.lastIndex=n;(e=O.exec(this.input))&&e.index<this.state.pos;)++this.state.curLine,this.state.lineStart=e.index+e[0].length;this.pushComment(!0,this.input.slice(n+2,r),n,this.state.pos,t,this.state.curPosition())},n.skipLineComment=function(e){var t=this.state.pos,n=this.state.curPosition(),r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.input.length)for(;10!==r&&13!==r&&8232!==r&&8233!==r&&++this.state.pos<this.input.length;)r=this.input.charCodeAt(this.state.pos);this.pushComment(!1,this.input.slice(t+e,this.state.pos),t,this.state.pos,n,this.state.curPosition())},n.skipSpace=function(){e:for(;this.state.pos<this.input.length;){var e=this.input.charCodeAt(this.state.pos);switch(e){case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!I(e))break e;++this.state.pos}}},n.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var n=this.state.type;this.state.type=e,this.state.value=t,this.updateContext(n)},n.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)this.readNumber(!0);else{var t=this.input.charCodeAt(this.state.pos+2);46===e&&46===t?(this.state.pos+=3,this.finishToken(u.ellipsis)):(++this.state.pos,this.finishToken(u.dot))}},n.readToken_slash=function(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.slash,1)},n.readToken_interpreter=function(){if(0!==this.state.pos||this.state.input.length<2)return!1;var e=this.state.pos;this.state.pos+=1;var t=this.input.charCodeAt(this.state.pos);if(33!==t)return!1;for(;10!==t&&13!==t&&8232!==t&&8233!==t&&++this.state.pos<this.input.length;)t=this.input.charCodeAt(this.state.pos);var n=this.input.slice(e+2,this.state.pos);return this.finishToken(u.interpreterDirective,n),!0},n.readToken_mult_modulo=function(e){var t=42===e?u.star:u.modulo,n=1,r=this.input.charCodeAt(this.state.pos+1),i=this.state.exprAllowed;42===e&&42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=u.exponent),61!==r||i||(n++,t=u.assign),this.finishOp(t,n)},n.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(u.pipeline,2);if(125===t&&this.hasPlugin("flow"))return void this.finishOp(u.braceBarR,2)}61!==t?this.finishOp(124===e?u.bitwiseOR:u.bitwiseAND,1):this.finishOp(u.assign,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(u.assign,3):this.finishOp(124===e?u.logicalOR:u.logicalAND,2)},n.readToken_caret=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)},n.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.state.pos+1);if(t===e)return 45===t&&!this.inModule&&62===this.input.charCodeAt(this.state.pos+2)&&_.test(this.input.slice(this.state.lastTokEnd,this.state.pos))?(this.skipLineComment(3),this.skipSpace(),void this.nextToken()):void this.finishOp(u.incDec,2);61===t?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)},n.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.state.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+n)?void this.finishOp(u.assign,n+1):void this.finishOp(u.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===t&&(n=2),void this.finishOp(u.relational,n)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())},n.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(u.arrow)):void this.finishOp(61===e?u.eq:u.bang,1);this.finishOp(u.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2)},n.readToken_question=function(){var e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63!==e||this.state.inType?46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(u.question)):(this.state.pos+=2,this.finishToken(u.questionDot)):61===t?this.finishOp(u.assign,3):this.finishOp(u.nullishCoalescing,2)},n.getTokenFromCode=function(e){switch(e){case 35:if(0===this.state.pos&&this.readToken_interpreter())return;if((this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(u.hash);this.raise(this.state.pos,"Unexpected character '"+String.fromCodePoint(e)+"'");case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(u.parenL);case 41:return++this.state.pos,void this.finishToken(u.parenR);case 59:return++this.state.pos,void this.finishToken(u.semi);case 44:return++this.state.pos,void this.finishToken(u.comma);case 91:return++this.state.pos,void this.finishToken(u.bracketL);case 93:return++this.state.pos,void this.finishToken(u.bracketR);case 123:return void(this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.braceBarL,2):(++this.state.pos,this.finishToken(u.braceL)));case 125:return++this.state.pos,void this.finishToken(u.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.doubleColon,2):(++this.state.pos,this.finishToken(u.colon)));case 63:return void this.readToken_question();case 64:return++this.state.pos,void this.finishToken(u.at);case 96:return++this.state.pos,void this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(u.tilde,1)}this.raise(this.state.pos,"Unexpected character '"+String.fromCodePoint(e)+"'")},n.finishOp=function(e,t){var n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)},n.readRegexp=function(){for(var e,t,n=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.state.pos);if(_.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.state.pos}var i=this.input.slice(n,this.state.pos);++this.state.pos;for(var a="";this.state.pos<this.input.length;){var s=this.input[this.state.pos],o=this.input.codePointAt(this.state.pos);if("gmsiyu".indexOf(s)>-1)a.indexOf(s)>-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag"),++this.state.pos,a+=s;else{if(!E(o)&&92!==o)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}}this.finishToken(u.regexp,{pattern:i,flags:a})},n.readInt=function(e,t){for(var n=this.state.pos,r=16===e?Y.hex:Y.decBinOct,i=16===e?W.hex:10===e?W.dec:8===e?W.oct:W.bin,a=0,s=0,o=null==t?1/0:t;s<o;++s){var l=this.input.charCodeAt(this.state.pos),u=void 0;if(this.hasPlugin("numericSeparator")){var c=this.input.charCodeAt(this.state.pos-1),p=this.input.charCodeAt(this.state.pos+1);if(95===l){-1===i.indexOf(p)&&this.raise(this.state.pos,"Invalid or unexpected token"),(r.indexOf(c)>-1||r.indexOf(p)>-1||Number.isNaN(p))&&this.raise(this.state.pos,"Invalid or unexpected token"),++this.state.pos;continue}}if((u=l>=97?l-97+10:l>=65?l-65+10:G(l)?l-48:1/0)>=e)break;++this.state.pos,a=a*e+u}return this.state.pos===n||null!=t&&this.state.pos-n!==t?null:a},n.readRadixNumber=function(e){var t=this.state.pos,n=!1;this.state.pos+=2;var r=this.readInt(e);if(null==r&&this.raise(this.state.start+2,"Expected number in radix "+e),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,n=!0),b(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number"),n){var i=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(u.bigint,i)}else this.finishToken(u.num,r)},n.readNumber=function(e){var t=this.state.pos,n=48===this.input.charCodeAt(t),r=!1,i=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number"),n&&this.state.pos==t+1&&(n=!1);var a=this.input.charCodeAt(this.state.pos);46!==a||n||(++this.state.pos,this.readInt(10),r=!0,a=this.input.charCodeAt(this.state.pos)),69!==a&&101!==a||n||(43!==(a=this.input.charCodeAt(++this.state.pos))&&45!==a||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),r=!0,a=this.input.charCodeAt(this.state.pos)),this.hasPlugin("bigInt")&&110===a&&((r||n)&&this.raise(t,"Invalid BigIntLiteral"),++this.state.pos,i=!0),b(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number");var s,o=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");i?this.finishToken(u.bigint,o):(r?s=parseFloat(o):n&&1!==o.length?this.state.strict?this.raise(t,"Invalid number"):s=/[89]/.test(o)?parseInt(o,10):parseInt(o,8):s=parseInt(o,10),this.finishToken(u.num,s))},n.readCodePoint=function(e){var t;if(123===this.input.charCodeAt(this.state.pos)){var n=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===t)--this.state.invalidTemplateEscapePosition;else if(t>1114111){if(!e)return this.state.invalidTemplateEscapePosition=n-2,null;this.raise(n,"Code point out of bounds")}}else t=this.readHexChar(4,e);return t},n.readString=function(e){for(var t="",n=++this.state.pos,r=this.hasPlugin("jsonStrings");;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var i=this.input.charCodeAt(this.state.pos);if(i===e)break;92===i?(t+=this.input.slice(n,this.state.pos),t+=this.readEscapedChar(!1),n=this.state.pos):(!r||8232!==i&&8233!==i)&&D(i)?this.raise(this.state.start,"Unterminated string constant"):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(u.string,t)},n.readTmplToken=function(){for(var e="",t=this.state.pos,n=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(u.template)?36===r?(this.state.pos+=2,void this.finishToken(u.dollarBraceL)):(++this.state.pos,void this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(u.template,n?null:e));if(92===r){e+=this.input.slice(t,this.state.pos);var i=this.readEscapedChar(!0);null===i?n=!0:e+=i,t=this.state.pos}else if(D(r)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},n.readEscapedChar=function(e){var t=!e,n=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,n){case 110:return"\n";case 114:return"\r";case 120:var r=this.readHexChar(2,t);return null===r?null:String.fromCharCode(r);case 117:var i=this.readCodePoint(t);return null===i?null:String.fromCodePoint(i);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(n>=48&&n<=55){var a=this.state.pos-1,s=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(s,8);if(o>255&&(s=s.slice(0,-1),o=parseInt(s,8)),o>0){if(e)return this.state.invalidTemplateEscapePosition=a,null;this.state.strict?this.raise(a,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=a)}return this.state.pos+=s.length-1,String.fromCharCode(o)}return String.fromCharCode(n)}},n.readHexChar=function(e,t){var n=this.state.pos,r=this.readInt(16,e);return null===r&&(t?this.raise(n,"Bad character escape sequence"):(this.state.pos=n-1,this.state.invalidTemplateEscapePosition=n-1)),r},n.readWord1=function(){this.state.containsEsc=!1;for(var e="",t=!0,n=this.state.pos;this.state.pos<this.input.length;){var r=this.input.codePointAt(this.state.pos);if(E(r))this.state.pos+=r<=65535?1:2;else if(this.state.isIterator&&64===r)this.state.pos+=1;else{if(92!==r)break;this.state.containsEsc=!0,e+=this.input.slice(n,this.state.pos);var i=this.state.pos;117!==this.input.charCodeAt(++this.state.pos)&&this.raise(this.state.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.state.pos;var a=this.readCodePoint(!0);(t?b:E)(a,!0)||this.raise(i,"Invalid Unicode escape"),e+=String.fromCodePoint(a),n=this.state.pos}t=!1}return e+this.input.slice(n,this.state.pos)},n.isIterator=function(e){return"@@iterator"===e||"@@asyncIterator"===e},n.readWord=function(){var e=this.readWord1(),t=u.name;this.isKeyword(e)&&(this.state.containsEsc&&this.raise(this.state.pos,"Escape sequence in keyword "+e),t=c[e]),!this.state.isIterator||this.isIterator(e)&&this.state.inType||this.raise(this.state.pos,"Invalid identifier "+e),this.finishToken(t,e)},n.braceIsBlock=function(e){if(e===u.colon){var t=this.curContext();if(t===F.braceStatement||t===F.braceExpression)return!t.isExpr}return e===u._return?_.test(this.input.slice(this.state.lastTokEnd,this.state.start)):e===u._else||e===u.semi||e===u.eof||e===u.parenR||(e===u.braceL?this.curContext()===F.braceStatement:e===u.relational||!this.state.exprAllowed)},n.updateContext=function(e){var t,n=this.state.type;!n.keyword||e!==u.dot&&e!==u.questionDot?(t=n.updateContext)?t.call(this,e):this.state.exprAllowed=n.beforeExpr:this.state.exprAllowed=!1},t}(J)),H=["leadingComments","trailingComments","innerComments"],z=function(){function e(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new q(n),e&&e.options.ranges&&(this.range=[t,0]),e&&e.filename&&(this.loc.filename=e.filename)}return e.prototype.__clone=function(){var t=this,n=new e;return Object.keys(this).forEach(function(e){H.indexOf(e)<0&&(n[e]=t[e])}),n},e}(),$=[],Z={kind:"loop"},ee={kind:"switch"},te=function(e){function t(t,n){var r;return t=function(e){var t={};for(var n in V)t[n]=e&&null!=e[n]?e[n]:V[n];return t}(t),(r=e.call(this,t,n)||this).options=t,r.inModule="module"===r.options.sourceType,r.input=n,r.plugins=function(e){for(var t=Object.create(null),n=0;n<e.length;n++){var r=e[n],i=Array.isArray(r)?r:[r,{}],a=i[0],s=i[1],o=void 0===s?{}:s;t[a]||(t[a]=o||{})}return t}(r.options.plugins),r.filename=t.sourceFilename,r}return i(t,e),t.prototype.parse=function(){var e=this.startNode(),t=this.startNode();return this.nextToken(),this.parseTopLevel(e,t)},t}(function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.parseTopLevel=function(e,t){return t.sourceType=this.options.sourceType,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,u.eof),e.program=this.finishNode(t,"Program"),e.comments=this.state.comments,this.options.tokens&&(e.tokens=this.state.tokens),this.finishNode(e,"File")},n.stmtToDirective=function(e){var t=e.expression,n=this.startNodeAt(t.start,t.loc.start),r=this.startNodeAt(e.start,e.loc.start),i=this.input.slice(t.start,t.end),a=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",a),r.value=this.finishNodeAt(n,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(r,"Directive",e.end,e.loc.end)},n.parseInterpreterDirective=function(){if(!this.match(u.interpreterDirective))return null;var e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")},n.parseStatement=function(e,t){return this.match(u.at)&&this.parseDecorators(!0),this.parseStatementContent(e,t)},n.parseStatementContent=function(e,t){var n=this.state.type,r=this.startNode();switch(n){case u._break:case u._continue:return this.parseBreakContinueStatement(r,n.keyword);case u._debugger:return this.parseDebuggerStatement(r);case u._do:return this.parseDoStatement(r);case u._for:return this.parseForStatement(r);case u._function:if(this.lookahead().type===u.dot)break;return e||this.unexpected(),this.parseFunctionStatement(r);case u._class:return e||this.unexpected(),this.parseClass(r,!0);case u._if:return this.parseIfStatement(r);case u._return:return this.parseReturnStatement(r);case u._switch:return this.parseSwitchStatement(r);case u._throw:return this.parseThrowStatement(r);case u._try:return this.parseTryStatement(r);case u._let:case u._const:e||this.unexpected();case u._var:return this.parseVarStatement(r,n);case u._while:return this.parseWhileStatement(r);case u._with:return this.parseWithStatement(r);case u.braceL:return this.parseBlock();case u.semi:return this.parseEmptyStatement(r);case u._export:case u._import:var i,a=this.lookahead();if(a.type===u.parenL||a.type===u.dot)break;return this.options.allowImportExportEverywhere||t||this.raise(this.state.start,"'import' and 'export' may only appear at the top level"),this.next(),n==u._import?"ImportDeclaration"!==(i=this.parseImport(r)).type||i.importKind&&"value"!==i.importKind||(this.sawUnambiguousESM=!0):("ExportNamedDeclaration"!==(i=this.parseExport(r)).type||i.exportKind&&"value"!==i.exportKind)&&("ExportAllDeclaration"!==i.type||i.exportKind&&"value"!==i.exportKind)&&"ExportDefaultDeclaration"!==i.type||(this.sawUnambiguousESM=!0),this.assertModuleNodeAllowed(r),i;case u.name:if(this.isContextual("async")){var s=this.state.clone();if(this.next(),this.match(u._function)&&!this.canInsertSemicolon())return this.expect(u._function),this.parseFunction(r,!0,!1,!0);this.state=s}}var o=this.state.value,l=this.parseExpression();return n===u.name&&"Identifier"===l.type&&this.eat(u.colon)?this.parseLabeledStatement(r,o,l):this.parseExpressionStatement(r,l)},n.assertModuleNodeAllowed=function(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(e.start,"'import' and 'export' may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"})},n.takeDecorators=function(e){var t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])},n.canHaveLeadingDecorator=function(){return this.match(u._class)},n.parseDecorators=function(e){for(var t=this.state.decoratorStack[this.state.decoratorStack.length-1];this.match(u.at);){var n=this.parseDecorator();t.push(n)}this.match(u._export)?(e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.")):this.canHaveLeadingDecorator()||this.raise(this.state.start,"Leading decorators must be attached to a class declaration")},n.parseDecorator=function(){this.expectOnePlugin(["decorators-legacy","decorators"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);var t,n=this.state.start,r=this.state.startLoc;if(this.eat(u.parenL))t=this.parseExpression(),this.expect(u.parenR);else for(t=this.parseIdentifier(!1);this.eat(u.dot);){var i=this.startNodeAt(n,r);i.object=t,i.property=this.parseIdentifier(!0),i.computed=!1,t=this.finishNode(i,"MemberExpression")}if(this.eat(u.parenL)){var a=this.startNodeAt(n,r);a.callee=t,a.arguments=this.parseCallExpressionArguments(u.parenR,!1),this.toReferencedList(a.arguments),t=this.finishNode(a,"CallExpression")}e.expression=t,this.state.decoratorStack.pop()}else e.expression=this.parseMaybeAssign();return this.finishNode(e,"Decorator")},n.parseBreakContinueStatement=function(e,t){var n,r="break"===t;for(this.next(),this.isLineTerminator()?e.label=null:this.match(u.name)?(e.label=this.parseIdentifier(),this.semicolon()):this.unexpected(),n=0;n<this.state.labels.length;++n){var i=this.state.labels[n];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(r||"loop"===i.kind))break;if(e.label&&r)break}}return n===this.state.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},n.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},n.parseDoStatement=function(e){return this.next(),this.state.labels.push(Z),e.body=this.parseStatement(!1),this.state.labels.pop(),this.expect(u._while),e.test=this.parseParenExpression(),this.eat(u.semi),this.finishNode(e,"DoWhileStatement")},n.parseForStatement=function(e){this.next(),this.state.labels.push(Z);var t=!1;if(this.state.inAsync&&this.isContextual("await")&&(this.expectPlugin("asyncGenerators"),t=!0,this.next()),this.expect(u.parenL),this.match(u.semi))return t&&this.unexpected(),this.parseFor(e,null);if(this.match(u._var)||this.match(u._let)||this.match(u._const)){var n=this.startNode(),r=this.state.type;if(this.next(),this.parseVar(n,!0,r),this.finishNode(n,"VariableDeclaration"),(this.match(u._in)||this.isContextual("of"))&&1===n.declarations.length){var i=n.declarations[0],a=r===u._var&&i.init&&"ObjectPattern"!=i.id.type&&"ArrayPattern"!=i.id.type&&!this.isContextual("of");if(this.state.strict&&a)this.raise(this.state.start,"for-in initializer in strict mode");else if(a||!i.init)return this.parseForIn(e,n,t)}return t&&this.unexpected(),this.parseFor(e,n)}var s={start:0},o=this.parseExpression(!0,s);if(this.match(u._in)||this.isContextual("of")){var l=this.isContextual("of")?"for-of statement":"for-in statement";return this.toAssignable(o,void 0,l),this.checkLVal(o,void 0,void 0,l),this.parseForIn(e,o,t)}return s.start&&this.unexpected(s.start),t&&this.unexpected(),this.parseFor(e,o)},n.parseFunctionStatement=function(e){return this.next(),this.parseFunction(e,!0)},n.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!1),e.alternate=this.eat(u._else)?this.parseStatement(!1):null,this.finishNode(e,"IfStatement")},n.parseReturnStatement=function(e){return this.state.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.state.start,"'return' outside of function"),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},n.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression();var t,n,r=e.cases=[];for(this.expect(u.braceL),this.state.labels.push(ee);!this.match(u.braceR);)if(this.match(u._case)||this.match(u._default)){var i=this.match(u._case);t&&this.finishNode(t,"SwitchCase"),r.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raise(this.state.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(u.colon)}else t?t.consequent.push(this.parseStatement(!0)):this.unexpected();return t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")},n.parseThrowStatement=function(e){return this.next(),_.test(this.input.slice(this.state.lastTokEnd,this.state.start))&&this.raise(this.state.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")},n.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(u._catch)){var t=this.startNode();if(this.next(),this.match(u.parenL)){this.expect(u.parenL),t.param=this.parseBindingAtom();var n=Object.create(null);this.checkLVal(t.param,!0,n,"catch clause"),this.expect(u.parenR)}else this.expectPlugin("optionalCatchBinding"),t.param=null;t.body=this.parseBlock(),e.handler=this.finishNode(t,"CatchClause")}return e.guardedHandlers=$,e.finalizer=this.eat(u._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},n.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},n.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.state.labels.push(Z),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,"WhileStatement")},n.parseWithStatement=function(e){return this.state.strict&&this.raise(this.state.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},n.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},n.parseLabeledStatement=function(e,t,n){for(var r=0,i=this.state.labels;r<i.length;r++){i[r].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var a=this.state.type.isLoop?"loop":this.match(u._switch)?"switch":null,s=this.state.labels.length-1;s>=0;s--){var o=this.state.labels[s];if(o.statementStart!==e.start)break;o.statementStart=this.state.start,o.kind=a}return this.state.labels.push({name:t,kind:a,statementStart:this.state.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&"var"!==e.body.kind||"FunctionDeclaration"==e.body.type&&(this.state.strict||e.body.generator||e.body.async))&&this.raise(e.body.start,"Invalid labeled declaration"),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},n.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},n.parseBlock=function(e){var t=this.startNode();return this.expect(u.braceL),this.parseBlockBody(t,e,!1,u.braceR),this.finishNode(t,"BlockStatement")},n.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},n.parseBlockBody=function(e,t,n,r){var i=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:void 0,n,r)},n.parseBlockOrModuleBlockBody=function(e,t,n,r){for(var i,a,s=!1;!this.eat(r);){s||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(!0,n);if(t&&!s&&this.isValidDirective(o)){var l=this.stmtToDirective(o);t.push(l),void 0===i&&"use strict"===l.value.value&&(i=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else s=!0,e.push(o)}!1===i&&this.setStrict(!1)},n.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.match(u.semi)?null:this.parseExpression(),this.expect(u.semi),e.update=this.match(u.parenR)?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,"ForStatement")},n.parseForIn=function(e,t,n){var r=this.match(u._in)?"ForInStatement":"ForOfStatement";return n?this.eatContextual("of"):this.next(),"ForOfStatement"===r&&(e.await=!!n),e.left=t,e.right=this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,r)},n.parseVar=function(e,t,n){var r=e.declarations=[];for(e.kind=n.keyword;;){var i=this.startNode();if(this.parseVarHead(i),this.eat(u.eq)?i.init=this.parseMaybeAssign(t):(n!==u._const||this.match(u._in)||this.isContextual("of")?"Identifier"===i.id.type||t&&(this.match(u._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.hasPlugin("typescript")||this.unexpected(),i.init=null),r.push(this.finishNode(i,"VariableDeclarator")),!this.eat(u.comma))break}return e},n.parseVarHead=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0,void 0,"variable declaration")},n.parseFunction=function(e,t,n,r,i){var a=this.state.inFunction,s=this.state.inMethod,o=this.state.inGenerator,l=this.state.inClassProperty;return this.state.inFunction=!0,this.state.inMethod=!1,this.state.inClassProperty=!1,this.initFunction(e,r),this.match(u.star)&&(e.async&&this.expectPlugin("asyncGenerators"),e.generator=!0,this.next()),!t||i||this.match(u.name)||this.match(u._yield)||this.unexpected(),t||(this.state.inGenerator=e.generator),(this.match(u.name)||this.match(u._yield))&&(e.id=this.parseBindingIdentifier()),t&&(this.state.inGenerator=e.generator),this.parseFunctionParams(e),this.parseFunctionBodyAndFinish(e,t?"FunctionDeclaration":"FunctionExpression",n),this.state.inFunction=a,this.state.inMethod=s,this.state.inGenerator=o,this.state.inClassProperty=l,e},n.parseFunctionParams=function(e,t){var n=this.state.inParameters;this.state.inParameters=!0,this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,t),this.state.inParameters=n},n.parseClass=function(e,t,n){return this.next(),this.takeDecorators(e),this.parseClassId(e,t,n),this.parseClassSuper(e),this.parseClassBody(e),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},n.isClassProperty=function(){return this.match(u.eq)||this.match(u.semi)||this.match(u.braceR)},n.isClassMethod=function(){return this.match(u.parenL)},n.isNonstaticConstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},n.parseClassBody=function(e){var t=this.state.strict;this.state.strict=!0,this.state.classLevel++;var n={hadConstructor:!1},r=[],i=this.startNode();for(i.body=[],this.expect(u.braceL);!this.eat(u.braceR);)if(this.eat(u.semi))r.length>0&&this.raise(this.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(this.match(u.at))r.push(this.parseDecorator());else{var a=this.startNode();r.length&&(a.decorators=r,this.resetStartLocationFromNode(a,r[0]),r=[]),this.parseClassMember(i,a,n),"constructor"===a.kind&&a.decorators&&a.decorators.length>0&&this.raise(a.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}r.length&&this.raise(this.state.start,"You have trailing decorators with no method"),e.body=this.finishNode(i,"ClassBody"),this.state.classLevel--,this.state.strict=t},n.parseClassMember=function(e,t,n){var r=!1,i=this.state.containsEsc;if(this.match(u.name)&&"static"===this.state.value){var a=this.parseIdentifier(!0);if(this.isClassMethod()){var s=t;return s.kind="method",s.computed=!1,s.key=a,s.static=!1,void this.pushClassMethod(e,s,!1,!1,!1)}if(this.isClassProperty()){var o=t;return o.computed=!1,o.key=a,o.static=!1,void e.body.push(this.parseClassProperty(o))}if(i)throw this.unexpected();r=!0}this.parseClassMemberWithIsStatic(e,t,n,r)},n.parseClassMemberWithIsStatic=function(e,t,n,r){var i=t,a=t,s=t,o=t,l=i,c=i;if(t.static=r,this.eat(u.star))return l.kind="method",this.parseClassPropertyName(l),"PrivateName"===l.key.type?void this.pushClassPrivateMethod(e,a,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,"Constructor can't be a generator"),void this.pushClassMethod(e,i,!0,!1,!1));var p=this.parseClassPropertyName(t),f="PrivateName"===p.type,d="Identifier"===p.type;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(l.kind="method",f)return void this.pushClassPrivateMethod(e,a,!1,!1);var h=this.isNonstaticConstructor(i);h&&(i.kind="constructor",i.decorators&&this.raise(i.start,"You can't attach decorators to a class constructor"),n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.start,"Duplicate constructor in the same class"),n.hadConstructor=!0),this.pushClassMethod(e,i,!1,!1,h)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s);else if(d&&"async"===p.name&&!this.isLineTerminator()){var m=this.match(u.star);m&&(this.expectPlugin("asyncGenerators"),this.next()),l.kind="method",this.parseClassPropertyName(l),"PrivateName"===l.key.type?this.pushClassPrivateMethod(e,a,m,!0):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,"Constructor can't be an async function"),this.pushClassMethod(e,i,m,!0,!1))}else!d||"get"!==p.name&&"set"!==p.name||this.isLineTerminator()&&this.match(u.star)?this.isLineTerminator()?f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s):this.unexpected():(l.kind=p.name,this.parseClassPropertyName(i),"PrivateName"===l.key.type?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,"Constructor can't have get/set modifier"),this.pushClassMethod(e,i,!1,!1,!1)),this.checkGetterSetterParams(i))},n.parseClassPropertyName=function(e){var t=this.parsePropertyName(e);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,"Classes may not have static property named prototype"),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,"Classes may not have a private field named '#constructor'"),t},n.pushClassProperty=function(e,t){this.isNonstaticConstructor(t)&&this.raise(t.key.start,"Classes may not have a non-static field named 'constructor'"),e.body.push(this.parseClassProperty(t))},n.pushClassPrivateProperty=function(e,t){this.expectPlugin("classPrivateProperties",t.key.start),e.body.push(this.parseClassPrivateProperty(t))},n.pushClassMethod=function(e,t,n,r,i){e.body.push(this.parseMethod(t,n,r,i,"ClassMethod"))},n.pushClassPrivateMethod=function(e,t,n,r){this.expectPlugin("classPrivateMethods",t.key.start),e.body.push(this.parseMethod(t,n,r,!1,"ClassPrivateMethod"))},n.parsePostMemberNameModifiers=function(e){},n.parseAccessModifier=function(){},n.parseClassPrivateProperty=function(e){var t=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,e.value=this.eat(u.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=t,this.finishNode(e,"ClassPrivateProperty")},n.parseClassProperty=function(e){e.typeAnnotation||this.expectPlugin("classProperties");var t=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,this.match(u.eq)?(this.expectPlugin("classProperties"),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=t,this.finishNode(e,"ClassProperty")},n.parseClassId=function(e,t,n){this.match(u.name)?e.id=this.parseIdentifier():n||!t?e.id=null:this.unexpected(null,"A class name is required")},n.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts():null},n.parseExport=function(e){if(this.shouldParseExportStar()){if(this.parseExportStar(e),"ExportAllDeclaration"===e.type)return e}else if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var t=this.startNode();t.exported=this.parseIdentifier(!0);var n=[this.finishNode(t,"ExportDefaultSpecifier")];if(e.specifiers=n,this.match(u.comma)&&this.lookahead().type===u.star){this.expect(u.comma);var r=this.startNode();this.expect(u.star),this.expectContextual("as"),r.exported=this.parseIdentifier(),n.push(this.finishNode(r,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(e);this.parseExportFrom(e,!0)}else{if(this.eat(u._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){var i=this.lookahead();i.type!==u._function&&this.unexpected(i.start,'Unexpected token, expected "function"')}e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e)}else e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e)}return this.checkExport(e,!0),this.finishNode(e,"ExportNamedDeclaration")},n.parseExportDefaultExpression=function(){var e=this.startNode();if(this.eat(u._function))return this.parseFunction(e,!0,!1,!1,!0);if(this.isContextual("async")&&this.lookahead().type===u._function)return this.eatContextual("async"),this.eat(u._function),this.parseFunction(e,!0,!1,!0,!0);if(this.match(u._class))return this.parseClass(e,!0,!0);if(this.match(u.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(u._let)||this.match(u._const)||this.match(u._var))return this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");var t=this.parseMaybeAssign();return this.semicolon(),t},n.parseExportDeclaration=function(e){return this.parseStatement(!0)},n.isExportDefaultSpecifier=function(){if(this.match(u.name))return"async"!==this.state.value;if(!this.match(u._default))return!1;var e=this.lookahead();return e.type===u.comma||e.type===u.name&&"from"===e.value},n.parseExportSpecifiersMaybe=function(e){this.eat(u.comma)&&(e.specifiers=e.specifiers.concat(this.parseExportSpecifiers()))},n.parseExportFrom=function(e,t){this.eatContextual("from")?(e.source=this.match(u.string)?this.parseExprAtom():this.unexpected(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()},n.shouldParseExportStar=function(){return this.match(u.star)},n.parseExportStar=function(e){this.expect(u.star),this.isContextual("as")?this.parseExportNamespace(e):(this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration"))},n.parseExportNamespace=function(e){this.expectPlugin("exportNamespaceFrom");var t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);this.next(),t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(e),this.parseExportFrom(e,!0)},n.shouldParseExportDeclaration=function(){if(this.match(u.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isContextual("async")},n.checkExport=function(e,t,n){if(t)if(n)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length)for(var r=0,i=e.specifiers;r<i.length;r++){var a=i[r];this.checkDuplicateExports(a,a.exported.name)}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){var s=e.declaration.id;if(!s)throw new Error("Assertion failure");this.checkDuplicateExports(e,s.name)}else if("VariableDeclaration"===e.declaration.type)for(var o=0,l=e.declaration.declarations;o<l.length;o++){var u=l[o];this.checkDeclaration(u.id)}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length){var c=e.declaration&&("ClassDeclaration"===e.declaration.type||"ClassExpression"===e.declaration.type);if(!e.declaration||!c)throw this.raise(e.start,"You can only use decorators on an export when exporting a class");this.takeDecorators(e.declaration)}},n.checkDeclaration=function(e){if("ObjectPattern"===e.type)for(var t=0,n=e.properties;t<n.length;t++){var r=n[t];this.checkDeclaration(r)}else if("ArrayPattern"===e.type)for(var i=0,a=e.elements;i<a.length;i++){var s=a[i];s&&this.checkDeclaration(s)}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"Identifier"===e.type&&this.checkDuplicateExports(e,e.name)},n.checkDuplicateExports=function(e,t){this.state.exportedIdentifiers.indexOf(t)>-1&&this.raiseDuplicateExportError(e,t),this.state.exportedIdentifiers.push(t)},n.raiseDuplicateExportError=function(e,t){throw this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`"+t+"` has already been exported. Exported identifiers must be unique.")},n.parseExportSpecifiers=function(){var e,t=[],n=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(n)n=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;var r=this.match(u._default);r&&!e&&(e=!0);var i=this.startNode();i.local=this.parseIdentifier(r),i.exported=this.eatContextual("as")?this.parseIdentifier(!0):i.local.__clone(),t.push(this.finishNode(i,"ExportSpecifier"))}return e&&!this.isContextual("from")&&this.unexpected(),t},n.parseImport=function(e){return this.match(u.string)?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=[],this.parseImportSpecifiers(e),this.expectContextual("from"),e.source=this.match(u.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},n.shouldParseDefaultImport=function(e){return this.match(u.name)},n.parseImportSpecifierLocal=function(e,t,n,r){t.local=this.parseIdentifier(),this.checkLVal(t.local,!0,void 0,r),e.specifiers.push(this.finishNode(t,n))},n.parseImportSpecifiers=function(e){var t=!0;if(!this.shouldParseDefaultImport(e)||(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),this.eat(u.comma))){if(this.match(u.star)){var n=this.startNode();return this.next(),this.expectContextual("as"),void this.parseImportSpecifierLocal(e,n,"ImportNamespaceSpecifier","import namespace specifier")}for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.eat(u.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(u.comma),this.eat(u.braceR))break;this.parseImportSpecifier(e)}}},n.parseImportSpecifier=function(e){var t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,!0,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},t}(function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.checkPropClash=function(e,t){if(!e.computed&&!e.kind){var n=e.key;"__proto__"===("Identifier"===n.type?n.name:String(n.value))&&(t.proto&&this.raise(n.start,"Redefinition of __proto__ property"),t.proto=!0)}},n.getExpression=function(){this.nextToken();var e=this.parseExpression();return this.match(u.eof)||this.unexpected(),e.comments=this.state.comments,e},n.parseExpression=function(e,t){var n=this.state.start,r=this.state.startLoc,i=this.parseMaybeAssign(e,t);if(this.match(u.comma)){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(u.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return i},n.parseMaybeAssign=function(e,t,n,r){var i,a=this.state.start,s=this.state.startLoc;if(this.match(u._yield)&&this.state.inGenerator){var o=this.parseYield();return n&&(o=n.call(this,o,a,s)),o}t?i=!1:(t={start:0},i=!0),(this.match(u.parenL)||this.match(u.name)||this.match(u._yield))&&(this.state.potentialArrowAt=this.state.start);var l=this.parseMaybeConditional(e,t,r);if(n&&(l=n.call(this,l,a,s)),this.state.type.isAssign){var c,p=this.startNodeAt(a,s),f=this.state.value;if(p.operator=f,"??="===f&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==f&&"&&="!==f||this.expectPlugin("logicalAssignment"),p.left=this.match(u.eq)?this.toAssignable(l,void 0,"assignment expression"):l,t.start=0,this.checkLVal(l,void 0,void 0,"assignment expression"),l.extra&&l.extra.parenthesized)"ObjectPattern"===l.type?c="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===l.type&&(c="`([a]) = 0` use `([a] = 0)`"),c&&this.raise(l.start,"You're trying to assign to a parenthesized expression, eg. instead of "+c);return this.next(),p.right=this.parseMaybeAssign(e),this.finishNode(p,"AssignmentExpression")}return i&&t.start&&this.unexpected(t.start),l},n.parseMaybeConditional=function(e,t,n){var r=this.state.start,i=this.state.startLoc,a=this.state.potentialArrowAt,s=this.parseExprOps(e,t);return"ArrowFunctionExpression"===s.type&&s.start===a?s:t&&t.start?s:this.parseConditional(s,e,r,i,n)},n.parseConditional=function(e,t,n,r,i){if(this.eat(u.question)){var a=this.startNodeAt(n,r);return a.test=e,a.consequent=this.parseMaybeAssign(),this.expect(u.colon),a.alternate=this.parseMaybeAssign(t),this.finishNode(a,"ConditionalExpression")}return e},n.parseExprOps=function(e,t){var n=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,a=this.parseMaybeUnary(t);return"ArrowFunctionExpression"===a.type&&a.start===i?a:t&&t.start?a:this.parseExprOp(a,n,r,-1,e)},n.parseExprOp=function(e,t,n,r,i){var a=this.state.type.binop;if(!(null==a||i&&this.match(u._in))&&a>r){var s=this.startNodeAt(t,n),o=this.state.value;s.left=e,s.operator=o,"**"!==o||"UnaryExpression"!==e.type||e.extra&&e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var l=this.state.type;l===u.nullishCoalescing?this.expectPlugin("nullishCoalescingOperator"):l===u.pipeline&&this.expectPlugin("pipelineOperator"),this.next();var c=this.state.start,p=this.state.startLoc;if(l===u.pipeline&&this.match(u.name)&&"await"===this.state.value&&this.state.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');return s.right=this.parseExprOp(this.parseMaybeUnary(),c,p,l.rightAssociative?a-1:a,i),this.finishNode(s,l===u.logicalOR||l===u.logicalAND||l===u.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(s,t,n,r,i)}return e},n.parseMaybeUnary=function(e){if(this.state.type.prefix){var t=this.startNode(),n=this.match(u.incDec);if(t.operator=this.state.value,t.prefix=!0,"throw"===t.operator&&this.expectPlugin("throwExpressions"),this.next(),t.argument=this.parseMaybeUnary(),e&&e.start&&this.unexpected(e.start),n)this.checkLVal(t.argument,void 0,void 0,"prefix operation");else if(this.state.strict&&"delete"===t.operator){var r=t.argument;"Identifier"===r.type?this.raise(t.start,"Deleting local variable in strict mode"):"MemberExpression"===r.type&&"PrivateName"===r.property.type&&this.raise(t.start,"Deleting a private field is not allowed")}return this.finishNode(t,n?"UpdateExpression":"UnaryExpression")}var i=this.state.start,a=this.state.startLoc,s=this.parseExprSubscripts(e);if(e&&e.start)return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(i,a);o.operator=this.state.value,o.prefix=!1,o.argument=s,this.checkLVal(s,void 0,void 0,"postfix operation"),this.next(),s=this.finishNode(o,"UpdateExpression")}return s},n.parseExprSubscripts=function(e){var t=this.state.start,n=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprAtom(e);return"ArrowFunctionExpression"===i.type&&i.start===r?i:e&&e.start?i:this.parseSubscripts(i,t,n)},n.parseSubscripts=function(e,t,n,r){var i={optionalChainMember:!1,stop:!1};do{e=this.parseSubscript(e,t,n,r,i)}while(!i.stop);return e},n.parseSubscript=function(e,t,n,r,i){if(!r&&this.eat(u.doubleColon)){var a=this.startNodeAt(t,n);return a.object=e,a.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(a,"BindExpression"),t,n,r)}if(this.match(u.questionDot)){if(this.expectPlugin("optionalChaining"),i.optionalChainMember=!0,r&&this.lookahead().type==u.parenL)return i.stop=!0,e;this.next();var s=this.startNodeAt(t,n);if(this.eat(u.bracketL))return s.object=e,s.property=this.parseExpression(),s.computed=!0,s.optional=!0,this.expect(u.bracketR),this.finishNode(s,"OptionalMemberExpression");if(this.eat(u.parenL)){var o=this.atPossibleAsync(e);return s.callee=e,s.arguments=this.parseCallExpressionArguments(u.parenR,o),s.optional=!0,this.finishNode(s,"OptionalCallExpression")}return s.object=e,s.property=this.parseIdentifier(!0),s.computed=!1,s.optional=!0,this.finishNode(s,"OptionalMemberExpression")}if(this.eat(u.dot)){var l=this.startNodeAt(t,n);return l.object=e,l.property=this.parseMaybePrivateName(),l.computed=!1,i.optionalChainMember?(l.optional=!1,this.finishNode(l,"OptionalMemberExpression")):this.finishNode(l,"MemberExpression")}if(this.eat(u.bracketL)){var c=this.startNodeAt(t,n);return c.object=e,c.property=this.parseExpression(),c.computed=!0,this.expect(u.bracketR),i.optionalChainMember?(c.optional=!1,this.finishNode(c,"OptionalMemberExpression")):this.finishNode(c,"MemberExpression")}if(!r&&this.match(u.parenL)){var p=this.atPossibleAsync(e);this.next();var f=this.startNodeAt(t,n);f.callee=e;var d={start:-1};return f.arguments=this.parseCallExpressionArguments(u.parenR,p,d),i.optionalChainMember?this.finishOptionalCallExpression(f):this.finishCallExpression(f),p&&this.shouldParseAsyncArrow()?(i.stop=!0,d.start>-1&&this.raise(d.start,"A trailing comma is not permitted after the rest element"),this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,n),f)):(this.toReferencedList(f.arguments),f)}return this.match(u.backQuote)?this.parseTaggedTemplateExpression(t,n,e,i):(i.stop=!0,e)},n.parseTaggedTemplateExpression=function(e,t,n,r,i){var a=this.startNodeAt(e,t);return a.tag=n,a.quasi=this.parseTemplate(!0),i&&(a.typeParameters=i),r.optionalChainMember&&this.raise(e,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(a,"TaggedTemplateExpression")},n.atPossibleAsync=function(e){return!this.state.containsEsc&&this.state.potentialArrowAt===e.start&&"Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon()},n.finishCallExpression=function(e){if("Import"===e.callee.type){1!==e.arguments.length&&this.raise(e.start,"import() requires exactly one argument");var t=e.arguments[0];t&&"SpreadElement"===t.type&&this.raise(t.start,"... is not allowed in import()")}return this.finishNode(e,"CallExpression")},n.finishOptionalCallExpression=function(e){if("Import"===e.callee.type){1!==e.arguments.length&&this.raise(e.start,"import() requires exactly one argument");var t=e.arguments[0];t&&"SpreadElement"===t.type&&this.raise(t.start,"... is not allowed in import()")}return this.finishNode(e,"OptionalCallExpression")},n.parseCallExpressionArguments=function(e,t,n){for(var r,i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(u.comma),this.eat(e))break;this.match(u.parenL)&&!r&&(r=this.state.start),i.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0,t?n:void 0))}return t&&r&&this.shouldParseAsyncArrow()&&this.unexpected(),i},n.shouldParseAsyncArrow=function(){return this.match(u.arrow)},n.parseAsyncArrowFromCallExpression=function(e,t){var n=this.state.yieldInPossibleArrowParameters;return this.state.yieldInPossibleArrowParameters=null,this.expect(u.arrow),this.parseArrowExpression(e,t.arguments,!0),this.state.yieldInPossibleArrowParameters=n,e},n.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},n.parseExprAtom=function(e){var t,n=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case u._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"super is only allowed in object methods and classes"),t=this.startNode(),this.next(),this.match(u.parenL)||this.match(u.bracketL)||this.match(u.dot)||this.unexpected(),this.match(u.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(t.start,"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."),this.finishNode(t,"Super");case u._import:return this.lookahead().type===u.dot?this.parseImportMetaProperty():(this.expectPlugin("dynamicImport"),t=this.startNode(),this.next(),this.match(u.parenL)||this.unexpected(null,u.parenL),this.finishNode(t,"Import"));case u._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case u._yield:this.state.inGenerator&&this.unexpected();case u.name:t=this.startNode();var r="await"===this.state.value&&(this.state.inAsync||!this.state.inFunction&&this.options.allowAwaitOutsideFunction),i=this.state.containsEsc,a=this.shouldAllowYieldIdentifier(),s=this.parseIdentifier(r||a);if("await"===s.name){if(this.state.inAsync||this.inModule||!this.state.inFunction&&this.options.allowAwaitOutsideFunction)return this.parseAwait(t)}else{if(!i&&"async"===s.name&&this.match(u._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(t,!1,!1,!0);if(n&&"async"===s.name&&this.match(u.name)){var o=this.state.yieldInPossibleArrowParameters;this.state.yieldInPossibleArrowParameters=null;var l=[this.parseIdentifier()];return this.expect(u.arrow),this.parseArrowExpression(t,l,!0),this.state.yieldInPossibleArrowParameters=o,t}}if(n&&!this.canInsertSemicolon()&&this.eat(u.arrow)){var c=this.state.yieldInPossibleArrowParameters;return this.state.yieldInPossibleArrowParameters=null,this.parseArrowExpression(t,[s]),this.state.yieldInPossibleArrowParameters=c,t}return s;case u._do:this.expectPlugin("doExpressions");var p=this.startNode();this.next();var f=this.state.inFunction,d=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,p.body=this.parseBlock(!1),this.state.inFunction=f,this.state.labels=d,this.finishNode(p,"DoExpression");case u.regexp:var h=this.state.value;return(t=this.parseLiteral(h.value,"RegExpLiteral")).pattern=h.pattern,t.flags=h.flags,t;case u.num:return this.parseLiteral(this.state.value,"NumericLiteral");case u.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case u.string:return this.parseLiteral(this.state.value,"StringLiteral");case u._null:return t=this.startNode(),this.next(),this.finishNode(t,"NullLiteral");case u._true:case u._false:return this.parseBooleanLiteral();case u.parenL:return this.parseParenAndDistinguishExpression(n);case u.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(u.bracketR,!0,e),this.toReferencedList(t.elements),this.finishNode(t,"ArrayExpression");case u.braceL:return this.parseObj(!1,e);case u._function:return this.parseFunctionExpression();case u.at:this.parseDecorators();case u._class:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate(!1);case u.doubleColon:t=this.startNode(),this.next(),t.object=null;var m=t.callee=this.parseNoCallExpr();if("MemberExpression"===m.type)return this.finishNode(t,"BindExpression");throw this.raise(m.start,"Binding should be performed on object property.");default:throw this.unexpected()}},n.parseBooleanLiteral=function(){var e=this.startNode();return e.value=this.match(u._true),this.next(),this.finishNode(e,"BooleanLiteral")},n.parseMaybePrivateName=function(){if(this.match(u.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]);var e=this.startNode();return this.next(),e.id=this.parseIdentifier(!0),this.finishNode(e,"PrivateName")}return this.parseIdentifier(!0)},n.parseFunctionExpression=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.state.inGenerator&&this.eat(u.dot)?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e,!1)},n.parseMetaProperty=function(e,t,n){e.meta=t,"function"===t.name&&"sent"===n&&(this.isContextual(n)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(e.property.start,"The only valid meta property for "+t.name+" is "+t.name+"."+n),this.finishNode(e,"MetaProperty")},n.parseImportMetaProperty=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.expect(u.dot),"import"===t.name&&(this.isContextual("meta")?this.expectPlugin("importMeta"):this.hasPlugin("importMeta")||this.raise(t.start,"Dynamic imports require a parameter: import('a.js')")),this.inModule||this.raise(t.start,"import.meta may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0,this.parseMetaProperty(e,t,"meta")},n.parseLiteral=function(e,t,n,r){n=n||this.state.start,r=r||this.state.startLoc;var i=this.startNodeAt(n,r);return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(n,this.state.end)),i.value=e,this.next(),this.finishNode(i,t)},n.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e},n.parseParenAndDistinguishExpression=function(e){var t,n=this.state.start,r=this.state.startLoc;this.expect(u.parenL);var i=this.state.maybeInArrowParameters,a=this.state.yieldInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldInPossibleArrowParameters=null;for(var s,o,l=this.state.start,c=this.state.startLoc,p=[],f={start:0},d={start:0},h=!0;!this.match(u.parenR);){if(h)h=!1;else if(this.expect(u.comma,d.start||null),this.match(u.parenR)){o=this.state.start;break}if(this.match(u.ellipsis)){var m=this.state.start,y=this.state.startLoc;s=this.state.start,p.push(this.parseParenItem(this.parseRest(),m,y)),this.match(u.comma)&&this.lookahead().type===u.parenR&&this.raise(this.state.start,"A trailing comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,f,this.parseParenItem,d))}var v=this.state.start,T=this.state.startLoc;this.expect(u.parenR),this.state.maybeInArrowParameters=i;var g=this.startNodeAt(n,r);if(e&&this.shouldParseArrow()&&(g=this.parseArrow(g))){for(var S=0;S<p.length;S++){var x=p[S];x.extra&&x.extra.parenthesized&&this.unexpected(x.extra.parenStart)}return this.parseArrowExpression(g,p),this.state.yieldInPossibleArrowParameters=a,g}return this.state.yieldInPossibleArrowParameters=a,p.length||this.unexpected(this.state.lastTokStart),o&&this.unexpected(o),s&&this.unexpected(s),f.start&&this.unexpected(f.start),d.start&&this.unexpected(d.start),p.length>1?((t=this.startNodeAt(l,c)).expressions=p,this.toReferencedList(t.expressions),this.finishNodeAt(t,"SequenceExpression",v,T)):t=p[0],this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",n),t},n.shouldParseArrow=function(){return!this.canInsertSemicolon()},n.parseArrow=function(e){if(this.eat(u.arrow))return e},n.parseParenItem=function(e,t,n){return e},n.parseNew=function(){var e=this.startNode(),t=this.parseIdentifier(!0);if(this.eat(u.dot)){var n=this.parseMetaProperty(e,t,"target");if(!this.state.inFunction&&!this.state.inClassProperty){var r="new.target can only be used in functions";this.hasPlugin("classProperties")&&(r+=" or class properties"),this.raise(n.start,r)}return n}return e.callee=this.parseNoCallExpr(),"OptionalMemberExpression"!==e.callee.type&&"OptionalCallExpression"!==e.callee.type||this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"),this.eat(u.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(e),this.finishNode(e,"NewExpression")},n.parseNewArguments=function(e){if(this.eat(u.parenL)){var t=this.parseExprList(u.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]},n.parseTemplateElement=function(e){var t=this.startNode();return null===this.state.value&&(e?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition||0,"Invalid escape sequence in template")),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(u.backQuote),this.finishNode(t,"TemplateElement")},n.parseTemplate=function(e){var t=this.startNode();this.next(),t.expressions=[];var n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)this.expect(u.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(u.braceR),t.quasis.push(n=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")},n.parseObj=function(e,t){var n=[],r=Object.create(null),i=!0,a=this.startNode();a.properties=[],this.next();for(var s=null;!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;if(this.match(u.at))if(this.hasPlugin("decorators"))this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");else for(;this.match(u.at);)n.push(this.parseDecorator());var o=this.startNode(),l=!1,c=!1,p=void 0,f=void 0;if(n.length&&(o.decorators=n,n=[]),this.match(u.ellipsis)){if(this.expectPlugin("objectRestSpread"),o=this.parseSpread(e?{start:0}:void 0),e&&this.toAssignable(o,!0,"object pattern"),a.properties.push(o),!e)continue;var d=this.state.start;if(null!==s)this.unexpected(s,"Cannot have multiple rest elements when destructuring");else{if(this.eat(u.braceR))break;if(!this.match(u.comma)||this.lookahead().type!==u.braceR){s=d;continue}this.unexpected(d,"A trailing comma is not permitted after the rest element")}}o.method=!1,(e||t)&&(p=this.state.start,f=this.state.startLoc),e||(l=this.eat(u.star));var h=this.state.containsEsc;if(!e&&this.isContextual("async")){l&&this.unexpected();var m=this.parseIdentifier();this.match(u.colon)||this.match(u.parenL)||this.match(u.braceR)||this.match(u.eq)||this.match(u.comma)?(o.key=m,o.computed=!1):(c=!0,this.match(u.star)&&(this.expectPlugin("asyncGenerators"),this.next(),l=!0),this.parsePropertyName(o))}else this.parsePropertyName(o);this.parseObjPropValue(o,p,f,l,c,e,t,h),this.checkPropClash(o,r),o.shorthand&&this.addExtra(o,"shorthand",!0),a.properties.push(o)}return null!==s&&this.unexpected(s,"The rest element has to be the last element when destructuring"),n.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(a,e?"ObjectPattern":"ObjectExpression")},n.isGetterOrSetterMethod=function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(u.string)||this.match(u.num)||this.match(u.bracketL)||this.match(u.name)||!!this.state.type.keyword)},n.checkGetterSetterParams=function(e){var t="get"===e.kind?0:1,n=e.start;e.params.length!==t&&("get"===e.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter")),"set"===e.kind&&"RestElement"===e.params[0].type&&this.raise(n,"setter function argument must not be a rest parameter")},n.parseObjectMethod=function(e,t,n,r,i){return n||t||this.match(u.parenL)?(r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,"ObjectMethod")):!i&&this.isGetterOrSetterMethod(e,r)?((t||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):void 0},n.parseObjectProperty=function(e,t,n,r,i){return e.shorthand=!1,this.eat(u.colon)?(e.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,i),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),r?e.value=this.parseMaybeDefault(t,n,e.key.__clone()):this.match(u.eq)&&i?(i.start||(i.start=this.state.start),e.value=this.parseMaybeDefault(t,n,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))},n.parseObjPropValue=function(e,t,n,r,i,a,s,o){var l=this.parseObjectMethod(e,r,i,a,o)||this.parseObjectProperty(e,t,n,a,s);return l||this.unexpected(),l},n.parsePropertyName=function(e){if(this.eat(u.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR);else{var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=t}return e.key},n.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=!!t},n.parseMethod=function(e,t,n,r,i){var a=this.state.inFunction,s=this.state.inMethod,o=this.state.inGenerator;this.state.inFunction=!0,this.state.inMethod=e.kind||!0,this.state.inGenerator=t,this.initFunction(e,n),e.generator=!!t;var l=r;return this.parseFunctionParams(e,l),this.parseFunctionBodyAndFinish(e,i),this.state.inFunction=a,this.state.inMethod=s,this.state.inGenerator=o,e},n.parseArrowExpression=function(e,t,n){this.state.yieldInPossibleArrowParameters&&this.raise(this.state.yieldInPossibleArrowParameters.start,"yield is not allowed in the parameters of an arrow function inside a generator");var r=this.state.inFunction;this.state.inFunction=!0,this.initFunction(e,n),t&&this.setArrowFunctionParameters(e,t);var i=this.state.inGenerator,a=this.state.maybeInArrowParameters;return this.state.inGenerator=!1,this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.state.inGenerator=i,this.state.inFunction=r,this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")},n.setArrowFunctionParameters=function(e,t){e.params=this.toAssignableList(t,!0,"arrow function parameters")},n.isStrictBody=function(e){if("BlockStatement"===e.body.type&&e.body.directives.length)for(var t=0,n=e.body.directives;t<n.length;t++){if("use strict"===n[t].value.value)return!0}return!1},n.parseFunctionBodyAndFinish=function(e,t,n){this.parseFunctionBody(e,n),this.finishNode(e,t)},n.parseFunctionBody=function(e,t){var n=t&&!this.match(u.braceL),r=this.state.inParameters,i=this.state.inAsync;if(this.state.inParameters=!1,this.state.inAsync=e.async,n)e.body=this.parseMaybeAssign();else{var a=this.state.inGenerator,s=this.state.inFunction,o=this.state.labels;this.state.inGenerator=e.generator,this.state.inFunction=!0,this.state.labels=[],e.body=this.parseBlock(!0),this.state.inFunction=s,this.state.inGenerator=a,this.state.labels=o}this.state.inAsync=i,this.checkFunctionNameAndParams(e,t),this.state.inParameters=r},n.checkFunctionNameAndParams=function(e,t){var n=this.isStrictBody(e),r=this.state.strict||n||t,i=this.state.strict;if(n&&(this.state.strict=n),r){var a=Object.create(null);e.id&&this.checkLVal(e.id,!0,void 0,"function name");for(var s=0,o=e.params;s<o.length;s++){var l=o[s];n&&"Identifier"!==l.type&&this.raise(l.start,"Non-simple parameter in strict mode"),this.checkLVal(l,!0,a,"function parameter list")}}this.state.strict=i},n.parseExprList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(u.comma),this.eat(e))break;r.push(this.parseExprListItem(t,n))}return r},n.parseExprListItem=function(e,t,n,r){var i;if(e&&this.match(u.comma))i=null;else if(this.match(u.ellipsis)){var a=this.state.start,s=this.state.startLoc;i=this.parseParenItem(this.parseSpread(t,n),a,s),r&&this.match(u.comma)&&(r.start=this.state.start)}else i=this.parseMaybeAssign(!1,t,this.parseParenItem,n);return i},n.parseIdentifier=function(e){var t=this.startNode(),n=this.parseIdentifierName(t.start,e);return t.name=n,t.loc.identifierName=n,this.finishNode(t,"Identifier")},n.parseIdentifierName=function(e,t){var n;if(t||this.checkReservedWord(this.state.value,this.state.start,!!this.state.type.keyword,!1),this.match(u.name))n=this.state.value;else{if(!this.state.type.keyword)throw this.unexpected();n=this.state.type.keyword}return!t&&"await"===n&&this.state.inAsync&&this.raise(e,"invalid use of await inside of an async function"),this.next(),n},n.checkReservedWord=function(e,t,n,r){this.state.strict&&(d.strict(e)||r&&d.strictBind(e))&&this.raise(t,e+" is a reserved word in strict mode"),this.state.inGenerator&&"yield"===e&&this.raise(t,"yield is a reserved word inside generator functions"),this.state.inClassProperty&&"arguments"===e&&this.raise(t,"'arguments' is not allowed in class field initializer"),(this.isReservedWord(e)||n&&this.isKeyword(e))&&this.raise(t,e+" is a reserved word")},n.parseAwait=function(e){return this.state.inAsync||!this.state.inFunction&&this.options.allowAwaitOutsideFunction||this.unexpected(),this.match(u.star)&&this.raise(e.start,"await* has been removed from the async functions proposal. Use Promise.all() instead."),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},n.parseYield=function(){var e=this.startNode();return this.state.inParameters&&this.raise(e.start,"yield is not allowed in generator parameters"),this.state.maybeInArrowParameters&&!this.state.yieldInPossibleArrowParameters&&(this.state.yieldInPossibleArrowParameters=e),this.next(),this.match(u.semi)||this.canInsertSemicolon()||!this.match(u.star)&&!this.state.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(u.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")},t}(function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.toAssignable=function(e,t,n){if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var r=0;r<e.properties.length;r++){var i=e.properties[r],a=r===e.properties.length-1;this.toAssignableObjectExpressionProp(i,t,a)}break;case"ObjectProperty":this.toAssignable(e.value,t,n);break;case"SpreadElement":this.checkToRestConversion(e),e.type="RestElement";var s=e.argument;this.toAssignable(s,t,n);break;case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,t,n);break;case"AssignmentExpression":"="===e.operator?(e.type="AssignmentPattern",delete e.operator):this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");break;case"MemberExpression":if(!t)break;default:var o="Invalid left-hand side"+(n?" in "+n:"expression");this.raise(e.start,o)}return e},n.toAssignableObjectExpressionProp=function(e,t,n){if("ObjectMethod"===e.type){var r="get"===e.kind||"set"===e.kind?"Object pattern can't contain getter or setter":"Object pattern can't contain methods";this.raise(e.key.start,r)}else"SpreadElement"!==e.type||n?this.toAssignable(e,t,"object destructuring pattern"):this.raise(e.start,"The rest element has to be the last element when destructuring")},n.toAssignableList=function(e,t,n){var r=e.length;if(r){var i=e[r-1];if(i&&"RestElement"===i.type)--r;else if(i&&"SpreadElement"===i.type){i.type="RestElement";var a=i.argument;this.toAssignable(a,t,n),-1===["Identifier","MemberExpression","ArrayPattern","ObjectPattern"].indexOf(a.type)&&this.unexpected(a.start),--r}}for(var s=0;s<r;s++){var o=e[s];o&&"SpreadElement"===o.type&&this.raise(o.start,"The rest element has to be the last element when destructuring"),o&&this.toAssignable(o,t,n)}return e},n.toReferencedList=function(e){return e},n.parseSpread=function(e,t){var n=this.startNode();return this.next(),n.argument=this.parseMaybeAssign(!1,e,void 0,t),this.finishNode(n,"SpreadElement")},n.parseRest=function(){var e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},n.shouldAllowYieldIdentifier=function(){return this.match(u._yield)&&!this.state.strict&&!this.state.inGenerator},n.parseBindingIdentifier=function(){return this.parseIdentifier(this.shouldAllowYieldIdentifier())},n.parseBindingAtom=function(){switch(this.state.type){case u._yield:case u.name:return this.parseBindingIdentifier();case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0);default:throw this.unexpected()}},n.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(u.comma),t&&this.match(u.comma))r.push(null);else{if(this.eat(e))break;if(this.match(u.ellipsis)){r.push(this.parseAssignableListItemTypes(this.parseRest())),this.expect(e);break}var a=[];for(this.match(u.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,"Stage 2 decorators cannot be used to decorate parameters");this.match(u.at);)a.push(this.parseDecorator());r.push(this.parseAssignableListItem(n,a))}return r},n.parseAssignableListItem=function(e,t){var n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n);var r=this.parseMaybeDefault(n.start,n.loc.start,n);return t.length&&(n.decorators=t),r},n.parseAssignableListItemTypes=function(e){return e},n.parseMaybeDefault=function(e,t,n){if(t=t||this.state.startLoc,e=e||this.state.start,n=n||this.parseBindingAtom(),!this.eat(u.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},n.checkLVal=function(e,t,n,r){switch(e.type){case"Identifier":if(this.checkReservedWord(e.name,e.start,!1,!0),n){var i="_"+e.name;n[i]?this.raise(e.start,"Argument name clash in strict mode"):n[i]=!0}break;case"MemberExpression":t&&this.raise(e.start,"Binding member expression");break;case"ObjectPattern":for(var a=0,s=e.properties;a<s.length;a++){var o=s[a];"ObjectProperty"===o.type&&(o=o.value),this.checkLVal(o,t,n,"object destructuring pattern")}break;case"ArrayPattern":for(var l=0,u=e.elements;l<u.length;l++){var c=u[l];c&&this.checkLVal(c,t,n,"array destructuring pattern")}break;case"AssignmentPattern":this.checkLVal(e.left,t,n,"assignment pattern");break;case"RestElement":this.checkLVal(e.argument,t,n,"rest element");break;default:var p=(t?"Binding invalid":"Invalid")+" left-hand side"+(r?" in "+r:"expression");this.raise(e.start,p)}},n.checkToRestConversion=function(e){-1===["Identifier","MemberExpression"].indexOf(e.argument.type)&&this.raise(e.argument.start,"Invalid rest operator's argument")},t}(function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.startNode=function(){return new z(this,this.state.start,this.state.startLoc)},n.startNodeAt=function(e,t){return new z(this,e,t)},n.startNodeAtNode=function(e){return this.startNodeAt(e.start,e.loc.start)},n.finishNode=function(e,t){return this.finishNodeAt(e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)},n.finishNodeAt=function(e,t,n,r){return e.type=t,e.end=n,e.loc.end=r,this.options.ranges&&(e.range[1]=n),this.processComment(e),e},n.resetStartLocationFromNode=function(e,t){e.start=t.start,e.loc.start=t.loc.start,this.options.ranges&&(e.range[0]=t.range[0])},t}(Q)))));function ne(e){if(null==e)throw new Error("Unexpected "+e+" value.");return e}function re(e){if(!e)throw new Error("Assert fail")}function ie(e,t){return e.some(function(e){return Array.isArray(e)?e[0]===t:e===t})}function ae(e,t,n){var r=e.find(function(e){return Array.isArray(e)?e[0]===t:e===t});return r&&Array.isArray(r)?r[1][n]:null}var se=["minimal"];var oe=["estree","jsx","flow","typescript"],le={estree:function(e){return function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.estreeParseRegExpLiteral=function(e){var t=e.pattern,n=e.flags,r=null;try{r=new RegExp(t,n)}catch(e){}var i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:n},i},n.estreeParseLiteral=function(e){return this.parseLiteral(e,"Literal")},n.directiveToStmt=function(e){var t=e.value,n=this.startNodeAt(e.start,e.loc.start),r=this.startNodeAt(t.start,t.loc.start);return r.value=t.value,r.raw=t.extra.raw,n.expression=this.finishNodeAt(r,"Literal",t.end,t.loc.end),n.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(n,"ExpressionStatement",e.end,e.loc.end)},n.initFunction=function(t,n){e.prototype.initFunction.call(this,t,n),t.expression=!1},n.checkDeclaration=function(t){p(t)?this.checkDeclaration(t.value):e.prototype.checkDeclaration.call(this,t)},n.checkGetterSetterParams=function(e){var t=e,n="get"===t.kind?0:1,r=t.start;t.value.params.length!==n&&("get"===t.kind?this.raise(r,"getter must not have any formal parameters"):this.raise(r,"setter must have exactly one formal parameter")),"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raise(r,"setter function argument must not be a rest parameter")},n.checkLVal=function(t,n,r,i){var a=this;switch(t.type){case"ObjectPattern":t.properties.forEach(function(e){a.checkLVal("Property"===e.type?e.value:e,n,r,"object destructuring pattern")});break;default:e.prototype.checkLVal.call(this,t,n,r,i)}},n.checkPropClash=function(e,t){if(!e.computed&&p(e)){var n=e.key;"__proto__"===("Identifier"===n.type?n.name:String(n.value))&&(t.proto&&this.raise(n.start,"Redefinition of __proto__ property"),t.proto=!0)}},n.isStrictBody=function(e){if("BlockStatement"===e.body.type&&e.body.body.length>0)for(var t=0,n=e.body.body;t<n.length;t++){var r=n[t];if("ExpressionStatement"!==r.type||"Literal"!==r.expression.type)break;if("use strict"===r.expression.value)return!0}return!1},n.isValidDirective=function(e){return!("ExpressionStatement"!==e.type||"Literal"!==e.expression.type||"string"!=typeof e.expression.value||e.expression.extra&&e.expression.extra.parenthesized)},n.stmtToDirective=function(t){var n=e.prototype.stmtToDirective.call(this,t),r=t.expression.value;return n.value.value=r,n},n.parseBlockBody=function(t,n,r,i){var a=this;e.prototype.parseBlockBody.call(this,t,n,r,i);var s=t.directives.map(function(e){return a.directiveToStmt(e)});t.body=s.concat(t.body),delete t.directives},n.pushClassMethod=function(e,t,n,r,i){this.parseMethod(t,n,r,i,"MethodDefinition"),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)},n.parseExprAtom=function(t){switch(this.state.type){case u.regexp:return this.estreeParseRegExpLiteral(this.state.value);case u.num:case u.string:return this.estreeParseLiteral(this.state.value);case u._null:return this.estreeParseLiteral(null);case u._true:return this.estreeParseLiteral(!0);case u._false:return this.estreeParseLiteral(!1);default:return e.prototype.parseExprAtom.call(this,t)}},n.parseLiteral=function(t,n,r,i){var a=e.prototype.parseLiteral.call(this,t,n,r,i);return a.raw=a.extra.raw,delete a.extra,a},n.parseFunctionBody=function(t,n){e.prototype.parseFunctionBody.call(this,t,n),t.expression="BlockStatement"!==t.body.type},n.parseMethod=function(t,n,r,i,a){var s=this.startNode();return s.kind=t.kind,delete(s=e.prototype.parseMethod.call(this,s,n,r,i,"FunctionExpression")).kind,t.value=s,this.finishNode(t,a)},n.parseObjectMethod=function(t,n,r,i,a){var s=e.prototype.parseObjectMethod.call(this,t,n,r,i,a);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s},n.parseObjectProperty=function(t,n,r,i,a){var s=e.prototype.parseObjectProperty.call(this,t,n,r,i,a);return s&&(s.kind="init",s.type="Property"),s},n.toAssignable=function(t,n,r){return p(t)?(this.toAssignable(t.value,n,r),t):e.prototype.toAssignable.call(this,t,n,r)},n.toAssignableObjectExpressionProp=function(t,n,r){"get"===t.kind||"set"===t.kind?this.raise(t.key.start,"Object pattern can't contain getter or setter"):t.method?this.raise(t.key.start,"Object pattern can't contain methods"):e.prototype.toAssignableObjectExpressionProp.call(this,t,n,r)},t}(e)},jsx:function(e){return function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.jsxReadToken=function(){for(var e="",t=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.state.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:D(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}},n.jsxReadNewLine=function(e){var t,n=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===n&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,t},n.jsxReadString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):D(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}return t+=this.input.slice(n,this.state.pos++),this.finishToken(u.string,t)},n.jsxReadEntity=function(){for(var e,t="",n=0,r=this.input[this.state.pos],i=++this.state.pos;this.state.pos<this.input.length&&n++<10;){if(";"===(r=this.input[this.state.pos++])){"#"===t[0]?"x"===t[1]?(t=t.substr(2),M.test(t)&&(e=String.fromCodePoint(parseInt(t,16)))):(t=t.substr(1),j.test(t)&&(e=String.fromCodePoint(parseInt(t,10)))):e=N[t];break}t+=r}return e||(this.state.pos=i,"&")},n.jsxReadWord=function(){var e,t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(E(e)||45===e);return this.finishToken(u.jsxName,this.input.slice(t,this.state.pos))},n.jsxParseIdentifier=function(){var e=this.startNode();return this.match(u.jsxName)?e.name=this.state.value:this.state.type.keyword?e.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")},n.jsxParseNamespacedName=function(){var e=this.state.start,t=this.state.startLoc,n=this.jsxParseIdentifier();if(!this.eat(u.colon))return n;var r=this.startNodeAt(e,t);return r.namespace=n,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")},n.jsxParseElementName=function(){for(var e=this.state.start,t=this.state.startLoc,n=this.jsxParseNamespacedName();this.eat(u.dot);){var r=this.startNodeAt(e,t);r.object=n,r.property=this.jsxParseIdentifier(),n=this.finishNode(r,"JSXMemberExpression")}return n},n.jsxParseAttributeValue=function(){var e;switch(this.state.type){case u.braceL:if("JSXEmptyExpression"===(e=this.jsxParseExpressionContainer()).expression.type)throw this.raise(e.start,"JSX attributes must only be assigned a non-empty expression");return e;case u.jsxTagStart:case u.string:return this.parseExprAtom();default:throw this.raise(this.state.start,"JSX value should be either an expression or a quoted JSX text")}},n.jsxParseEmptyExpression=function(){var e=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.start,this.state.startLoc)},n.jsxParseSpreadChild=function(){var e=this.startNode();return this.expect(u.braceL),this.expect(u.ellipsis),e.expression=this.parseExpression(),this.expect(u.braceR),this.finishNode(e,"JSXSpreadChild")},n.jsxParseExpressionContainer=function(){var e=this.startNode();return this.next(),this.match(u.braceR)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.expect(u.braceR),this.finishNode(e,"JSXExpressionContainer")},n.jsxParseAttribute=function(){var e=this.startNode();return this.eat(u.braceL)?(this.expect(u.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(u.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(u.eq)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))},n.jsxParseOpeningElementAt=function(e,t){var n=this.startNodeAt(e,t);return this.match(u.jsxTagEnd)?(this.expect(u.jsxTagEnd),this.finishNode(n,"JSXOpeningFragment")):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))},n.jsxParseOpeningElementAfterName=function(e){for(var t=[];!this.match(u.slash)&&!this.match(u.jsxTagEnd);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(u.slash),this.expect(u.jsxTagEnd),this.finishNode(e,"JSXOpeningElement")},n.jsxParseClosingElementAt=function(e,t){var n=this.startNodeAt(e,t);return this.match(u.jsxTagEnd)?(this.expect(u.jsxTagEnd),this.finishNode(n,"JSXClosingFragment")):(n.name=this.jsxParseElementName(),this.expect(u.jsxTagEnd),this.finishNode(n,"JSXClosingElement"))},n.jsxParseElementAt=function(e,t){var n=this.startNodeAt(e,t),r=[],i=this.jsxParseOpeningElementAt(e,t),a=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case u.jsxTagStart:if(e=this.state.start,t=this.state.startLoc,this.next(),this.eat(u.slash)){a=this.jsxParseClosingElementAt(e,t);break e}r.push(this.jsxParseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case u.braceL:this.lookahead().type===u.ellipsis?r.push(this.jsxParseSpreadChild()):r.push(this.jsxParseExpressionContainer());break;default:throw this.unexpected()}R(i)&&!R(a)?this.raise(a.start,"Expected corresponding JSX closing tag for <>"):!R(i)&&R(a)?this.raise(a.start,"Expected corresponding JSX closing tag for <"+B(i.name)+">"):R(i)||R(a)||B(a.name)!==B(i.name)&&this.raise(a.start,"Expected corresponding JSX closing tag for <"+B(i.name)+">")}return R(i)?(n.openingFragment=i,n.closingFragment=a):(n.openingElement=i,n.closingElement=a),n.children=r,this.match(u.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"),R(i)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")},n.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)},n.parseExprAtom=function(t){return this.match(u.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(u.jsxTagStart)?this.jsxParseElement():e.prototype.parseExprAtom.call(this,t)},n.readToken=function(t){if(this.state.inPropertyName)return e.prototype.readToken.call(this,t);var n=this.curContext();if(n===F.j_expr)return this.jsxReadToken();if(n===F.j_oTag||n===F.j_cTag){if(b(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(u.jsxTagEnd);if((34===t||39===t)&&n===F.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.exprAllowed?(++this.state.pos,this.finishToken(u.jsxTagStart)):e.prototype.readToken.call(this,t)},n.updateContext=function(t){if(this.match(u.braceL)){var n=this.curContext();n===F.j_oTag?this.state.context.push(F.braceExpression):n===F.j_expr?this.state.context.push(F.templateQuasi):e.prototype.updateContext.call(this,t),this.state.exprAllowed=!0}else{if(!this.match(u.slash)||t!==u.jsxTagStart)return e.prototype.updateContext.call(this,t);this.state.context.length-=2,this.state.context.push(F.j_cTag),this.state.exprAllowed=!1}},t}(e)},flow:function(e){return function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).flowPragma=void 0,r}i(t,e);var n=t.prototype;return n.shouldParseTypes=function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma},n.addComment=function(t){if(void 0===this.flowPragma){var n=C.exec(t.value);if(n)if("flow"===n[1])this.flowPragma="flow";else{if("noflow"!==n[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else this.flowPragma=null}return e.prototype.addComment.call(this,t)},n.flowParseTypeInitialiser=function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||u.colon);var n=this.flowParseType();return this.state.inType=t,n},n.flowParsePredicate=function(){var e=this.startNode(),t=this.state.startLoc,n=this.state.start;this.expect(u.modulo);var r=this.state.startLoc;return this.expectContextual("checks"),t.line===r.line&&t.column===r.column-1||this.raise(n,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(u.parenL)?(e.value=this.parseExpression(),this.expect(u.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")},n.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(u.colon);var t=null,n=null;return this.match(u.modulo)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(u.modulo)&&(n=this.flowParsePredicate())),[t,n]},n.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},n.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(u.parenL);var i=this.flowParseFunctionTypeParams();n.params=i.params,n.rest=i.rest,this.expect(u.parenR);var a=this.flowParseTypeAndPredicateInitialiser();return n.returnType=a[0],e.predicate=a[1],r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.finishNode(t,t.type),this.semicolon(),this.finishNode(e,"DeclareFunction")},n.flowParseDeclare=function(e,t){if(this.match(u._class))return this.flowParseDeclareClass(e);if(this.match(u._function))return this.flowParseDeclareFunction(e);if(this.match(u._var))return this.flowParseDeclareVariable(e);if(this.isContextual("module"))return this.lookahead().type===u.dot?this.flowParseDeclareModuleExports(e):(t&&this.unexpected(null,"`declare module` cannot be used inside another `declare module`"),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(u._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()},n.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.semicolon(),this.finishNode(e,"DeclareVariable")},n.flowParseDeclareModule=function(e){var t=this;this.next(),this.match(u.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var n=e.body=this.startNode(),r=n.body=[];for(this.expect(u.braceL);!this.match(u.braceR);){var i=this.startNode();if(this.match(u._import)){var a=this.lookahead();"type"!==a.value&&"typeof"!==a.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.next(),this.parseImport(i)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),i=this.flowParseDeclare(i,!0);r.push(i)}this.expect(u.braceR),this.finishNode(n,"BlockStatement");var s=null,o=!1,l="Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module";return r.forEach(function(e){!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(o&&t.unexpected(e.start,"Duplicate `declare module.exports` statement"),"ES"===s&&t.unexpected(e.start,l),s="CommonJS",o=!0):("CommonJS"===s&&t.unexpected(e.start,l),s="ES")}),e.kind=s||"CommonJS",this.finishNode(e,"DeclareModule")},n.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(u._export),this.eat(u._default))return this.match(u._function)||this.match(u._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u._const)||this.match(u._let)||(this.isContextual("type")||this.isContextual("interface"))&&!t){var n=this.state.value,r=k[n];this.unexpected(this.state.start,"`declare export "+n+"` is not supported. Use `"+r+"` instead")}if(this.match(u._var)||this.match(u._function)||this.match(u._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u.star)||this.match(u.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()},n.flowParseDeclareModuleExports=function(e){return this.expectContextual("module"),this.expect(u.dot),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},n.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),this.finishNode(e,"DeclareTypeAlias")},n.flowParseDeclareOpaqueType=function(e){return this.next(),this.flowParseOpaqueType(e,!0),this.finishNode(e,"DeclareOpaqueType")},n.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},n.flowParseInterfaceish=function(e,t){if(void 0===t&&(t=!1),e.id=this.flowParseRestrictedIdentifier(!t),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(u.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}e.body=this.flowParseObjectType(t,!1,!1,t)},n.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},n.flowParseInterface=function(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")},n.checkReservedType=function(e,t){P.indexOf(e)>-1&&this.raise(t,"Cannot overwrite primitive type "+e)},n.flowParseRestrictedIdentifier=function(e){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(e)},n.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(u.eq),this.semicolon(),this.finishNode(e,"TypeAlias")},n.flowParseOpaqueType=function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(u.colon)&&(e.supertype=this.flowParseTypeInitialiser(u.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(u.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")},n.flowParseTypeParameter=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!1),!e&&t)throw new Error("Cannot disallow a default value (`allowDefault`) while also requiring it (`requireDefault`).");var n=this.state.start,r=this.startNode(),i=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return r.name=a.name,r.variance=i,r.bound=a.typeAnnotation,this.match(u.eq)?e?(this.eat(u.eq),r.default=this.flowParseType()):this.unexpected():t&&this.unexpected(n,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(r,"TypeParameter")},n.flowParseTypeParameterDeclaration=function(e){void 0===e&&(e=!0);var t=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected();var r=!1;do{var i=this.flowParseTypeParameter(e,r);n.params.push(i),i.default&&(r=!0),this.isRelational(">")||this.expect(u.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=t,this.finishNode(n,"TypeParameterDeclaration")},n.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(u.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},n.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma));return e.body=this.flowParseObjectType(!1,!1,!1,!1),this.finishNode(e,"InterfaceTypeAnnotation")},n.flowParseObjectPropertyKey=function(){return this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseIdentifier(!0)},n.flowParseObjectTypeIndexer=function(e,t,n){return e.static=t,this.lookahead().type===u.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(u.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")},n.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(u.bracketR),this.expect(u.bracketR),this.isRelational("<")||this.match(u.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(u.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},n.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration(!1)),this.expect(u.parenL);!this.match(u.parenR)&&!this.match(u.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(u.parenR)||this.expect(u.comma);return this.eat(u.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(u.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},n.flowParseObjectTypeCallProperty=function(e,t){var n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")},n.flowParseObjectType=function(e,t,n,r){var i=this.state.inType;this.state.inType=!0;var a,s,o=this.startNode();for(o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[],t&&this.match(u.braceBarL)?(this.expect(u.braceBarL),a=u.braceBarR,s=!0):(this.expect(u.braceL),a=u.braceR,s=!1),o.exact=s;!this.match(a);){var l=!1,c=null,p=this.startNode();if(r&&this.isContextual("proto")){var f=this.lookahead();f.type!==u.colon&&f.type!==u.question&&(this.next(),c=this.state.start,e=!1)}if(e&&this.isContextual("static")){var d=this.lookahead();d.type!==u.colon&&d.type!==u.question&&(this.next(),l=!0)}var h=this.flowParseVariance();if(this.eat(u.bracketL))null!=c&&this.unexpected(c),this.eat(u.bracketL)?(h&&this.unexpected(h.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,l))):o.indexers.push(this.flowParseObjectTypeIndexer(p,l,h));else if(this.match(u.parenL)||this.isRelational("<"))null!=c&&this.unexpected(c),h&&this.unexpected(h.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(p,l));else{var m="init";if(this.isContextual("get")||this.isContextual("set")){var y=this.lookahead();y.type!==u.name&&y.type!==u.string&&y.type!==u.num||(m=this.state.value,this.next())}o.properties.push(this.flowParseObjectTypeProperty(p,l,c,h,m,n))}this.flowObjectTypeSemicolon()}this.expect(a);var v=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=i,v},n.flowParseObjectTypeProperty=function(e,t,n,r,i,a){if(this.match(u.ellipsis))return a||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),null!=n&&this.unexpected(n),r&&this.unexpected(r.start,"Spread properties cannot have variance"),this.expect(u.ellipsis),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty");e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;var s=!1;return this.isRelational("<")||this.match(u.parenL)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(u.question)&&(s=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=s,this.finishNode(e,"ObjectTypeProperty")},n.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,n=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter")),"set"===e.kind&&e.value.rest&&this.raise(n,"setter function argument must not be a rest parameter")},n.flowObjectTypeSemicolon=function(){this.eat(u.semi)||this.eat(u.comma)||this.match(u.braceR)||this.match(u.braceBarR)||this.unexpected()},n.flowParseQualifiedTypeIdentifier=function(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;for(var r=n||this.parseIdentifier();this.eat(u.dot);){var i=this.startNodeAt(e,t);i.qualification=r,i.id=this.parseIdentifier(),r=this.finishNode(i,"QualifiedTypeIdentifier")}return r},n.flowParseGenericType=function(e,t,n){var r=this.startNodeAt(e,t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t,n),this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},n.flowParseTypeofType=function(){var e=this.startNode();return this.expect(u._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},n.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(u.bracketL);this.state.pos<this.input.length&&!this.match(u.bracketR)&&(e.types.push(this.flowParseType()),!this.match(u.bracketR));)this.expect(u.comma);return this.expect(u.bracketR),this.finishNode(e,"TupleTypeAnnotation")},n.flowParseFunctionTypeParam=function(){var e=null,t=!1,n=null,r=this.startNode(),i=this.lookahead();return i.type===u.colon||i.type===u.question?(e=this.parseIdentifier(),this.eat(u.question)&&(t=!0),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),r.name=e,r.optional=t,r.typeAnnotation=n,this.finishNode(r,"FunctionTypeParam")},n.reinterpretTypeAsFunctionTypeParam=function(e){var t=this.startNodeAt(e.start,e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")},n.flowParseFunctionTypeParams=function(e){void 0===e&&(e=[]);for(var t=null;!this.match(u.parenR)&&!this.match(u.ellipsis);)e.push(this.flowParseFunctionTypeParam()),this.match(u.parenR)||this.expect(u.comma);return this.eat(u.ellipsis)&&(t=this.flowParseFunctionTypeParam()),{params:e,rest:t}},n.flowIdentToTypeAnnotation=function(e,t,n,r){switch(r.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"void":return this.finishNode(n,"VoidTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");default:return this.flowParseGenericType(e,t,r)}},n.flowParsePrimaryType=function(){var e,t,n=this.state.start,r=this.state.startLoc,i=this.startNode(),a=!1,s=this.state.noAnonFunctionType;switch(this.state.type){case u.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(n,r,i,this.parseIdentifier());case u.braceL:return this.flowParseObjectType(!1,!1,!0,!1);case u.braceBarL:return this.flowParseObjectType(!1,!0,!0,!1);case u.bracketL:return this.flowParseTupleType();case u.relational:if("<"===this.state.value)return i.typeParameters=this.flowParseTypeParameterDeclaration(!1),this.expect(u.parenL),e=this.flowParseFunctionTypeParams(),i.params=e.params,i.rest=e.rest,this.expect(u.parenR),this.expect(u.arrow),i.returnType=this.flowParseType(),this.finishNode(i,"FunctionTypeAnnotation");break;case u.parenL:if(this.next(),!this.match(u.parenR)&&!this.match(u.ellipsis))if(this.match(u.name)){var o=this.lookahead().type;a=o!==u.question&&o!==u.colon}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(u.comma)||this.match(u.parenR)&&this.lookahead().type===u.arrow))return this.expect(u.parenR),t;this.eat(u.comma)}return e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams(),i.params=e.params,i.rest=e.rest,this.expect(u.parenR),this.expect(u.arrow),i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation");case u.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case u._true:case u._false:return i.value=this.match(u._true),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case u.plusMin:if("-"===this.state.value)return this.next(),this.match(u.num)||this.unexpected(null,'Unexpected token, expected "number"'),this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",i.start,i.loc.start);this.unexpected();case u.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case u._null:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case u._this:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case u.star:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType()}throw this.unexpected()},n.flowParsePostfixType=function(){for(var e=this.state.start,t=this.state.startLoc,n=this.flowParsePrimaryType();!this.canInsertSemicolon()&&this.match(u.bracketL);){var r=this.startNodeAt(e,t);r.elementType=n,this.expect(u.bracketL),this.expect(u.bracketR),n=this.finishNode(r,"ArrayTypeAnnotation")}return n},n.flowParsePrefixType=function(){var e=this.startNode();return this.eat(u.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()},n.flowParseAnonFunctionWithoutParens=function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(u.arrow)){var t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e},n.flowParseIntersectionType=function(){var e=this.startNode();this.eat(u.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(u.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")},n.flowParseUnionType=function(){var e=this.startNode();this.eat(u.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(u.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")},n.flowParseType=function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,t},n.flowParseTypeAnnotation=function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")},n.flowParseTypeAnnotatableIdentifier=function(e){var t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(t,t.type)),t},n.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.finishNodeAt(e.expression,e.expression.type,e.typeAnnotation.end,e.typeAnnotation.loc.end)},n.flowParseVariance=function(){var e=null;return this.match(u.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e},n.parseFunctionBody=function(t,n){var r=this;return n?this.forwardNoArrowParamsConversionAt(t,function(){return e.prototype.parseFunctionBody.call(r,t,!0)}):e.prototype.parseFunctionBody.call(this,t,!1)},n.parseFunctionBodyAndFinish=function(t,n,r){if(!r&&this.match(u.colon)){var i=this.startNode(),a=this.flowParseTypeAndPredicateInitialiser();i.typeAnnotation=a[0],t.predicate=a[1],t.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}e.prototype.parseFunctionBodyAndFinish.call(this,t,n,r)},n.parseStatement=function(t,n){if(this.state.strict&&this.match(u.name)&&"interface"===this.state.value){var r=this.startNode();return this.next(),this.flowParseInterface(r)}var i=e.prototype.parseStatement.call(this,t,n);return void 0!==this.flowPragma||this.isValidDirective(i)||(this.flowPragma=null),i},n.parseExpressionStatement=function(t,n){if("Identifier"===n.type)if("declare"===n.name){if(this.match(u._class)||this.match(u.name)||this.match(u._function)||this.match(u._var)||this.match(u._export))return this.flowParseDeclare(t)}else if(this.match(u.name)){if("interface"===n.name)return this.flowParseInterface(t);if("type"===n.name)return this.flowParseTypeAlias(t);if("opaque"===n.name)return this.flowParseOpaqueType(t,!1)}return e.prototype.parseExpressionStatement.call(this,t,n)},n.shouldParseExportDeclaration=function(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||e.prototype.shouldParseExportDeclaration.call(this)},n.isExportDefaultSpecifier=function(){return(!this.match(u.name)||"type"!==this.state.value&&"interface"!==this.state.value&&"opaque"!=this.state.value)&&e.prototype.isExportDefaultSpecifier.call(this)},n.parseConditional=function(t,n,r,i,a){var s=this;if(!this.match(u.question))return t;if(a){var o=this.state.clone();try{return e.prototype.parseConditional.call(this,t,n,r,i)}catch(e){if(e instanceof SyntaxError)return this.state=o,a.start=e.pos||this.state.start,t;throw e}}this.expect(u.question);var l=this.state.clone(),c=this.state.noArrowAt,p=this.startNodeAt(r,i),f=this.tryParseConditionalConsequent(),d=f.consequent,h=f.failed,m=this.getArrowLikeExpressions(d),y=m[0],v=m[1];if(h||v.length>0){var T=c.concat();if(v.length>0){this.state=l,this.state.noArrowAt=T;for(var g=0;g<v.length;g++)T.push(v[g].start);var S=this.tryParseConditionalConsequent();d=S.consequent,h=S.failed;var x=this.getArrowLikeExpressions(d);y=x[0],v=x[1]}if(h&&y.length>1&&this.raise(l.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),h&&1===y.length){this.state=l,this.state.noArrowAt=T.concat(y[0].start);var b=this.tryParseConditionalConsequent();d=b.consequent,h=b.failed}this.getArrowLikeExpressions(d,!0)}return this.state.noArrowAt=c,this.expect(u.colon),p.test=t,p.consequent=d,p.alternate=this.forwardNoArrowParamsConversionAt(p,function(){return s.parseMaybeAssign(n,void 0,void 0,void 0)}),this.finishNode(p,"ConditionalExpression")},n.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssign(),t=!this.match(u.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},n.getArrowLikeExpressions=function(t,n){for(var r=this,i=[t],a=[];0!==i.length;){var s=i.pop();"ArrowFunctionExpression"===s.type?(s.typeParameters||!s.returnType?(this.toAssignableList(s.params,!0,"arrow function parameters"),e.prototype.checkFunctionNameAndParams.call(this,s,!0)):a.push(s),i.push(s.body)):"ConditionalExpression"===s.type&&(i.push(s.consequent),i.push(s.alternate))}if(n){for(var o=0;o<a.length;o++)this.toAssignableList(t.params,!0,"arrow function parameters");return[a,[]]}return function(e,t){for(var n=[],r=[],i=0;i<e.length;i++)(t(e[i],i,e)?n:r).push(e[i]);return[n,r]}(a,function(e){try{return r.toAssignableList(e.params,!0,"arrow function parameters"),!0}catch(e){return!1}})},n.forwardNoArrowParamsConversionAt=function(e,t){var n;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n},n.parseParenItem=function(t,n,r){if(t=e.prototype.parseParenItem.call(this,t,n,r),this.eat(u.question)&&(t.optional=!0),this.match(u.colon)){var i=this.startNodeAt(n,r);return i.expression=t,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return t},n.assertModuleNodeAllowed=function(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||e.prototype.assertModuleNodeAllowed.call(this,t)},n.parseExport=function(t){return"ExportNamedDeclaration"!==(t=e.prototype.parseExport.call(this,t)).type&&"ExportAllDeclaration"!==t.type||(t.exportKind=t.exportKind||"value"),t},n.parseExportDeclaration=function(t){if(this.isContextual("type")){t.exportKind="type";var n=this.startNode();return this.next(),this.match(u.braceL)?(t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t),null):this.flowParseTypeAlias(n)}if(this.isContextual("opaque")){t.exportKind="type";var r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}if(this.isContextual("interface")){t.exportKind="type";var i=this.startNode();return this.next(),this.flowParseInterface(i)}return e.prototype.parseExportDeclaration.call(this,t)},n.shouldParseExportStar=function(){return e.prototype.shouldParseExportStar.call(this)||this.isContextual("type")&&this.lookahead().type===u.star},n.parseExportStar=function(t){return this.eatContextual("type")&&(t.exportKind="type"),e.prototype.parseExportStar.call(this,t)},n.parseExportNamespace=function(t){return"type"===t.exportKind&&this.unexpected(),e.prototype.parseExportNamespace.call(this,t)},n.parseClassId=function(t,n,r){e.prototype.parseClassId.call(this,t,n,r),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())},n.isKeyword=function(t){return(!this.state.inType||"void"!==t)&&e.prototype.isKeyword.call(this,t)},n.readToken=function(t){var n=this.input.charCodeAt(this.state.pos+1);return!this.state.inType||62!==t&&60!==t?function(e,t){return 64===e&&64===t}(t,n)?(this.state.isIterator=!0,e.prototype.readWord.call(this)):e.prototype.readToken.call(this,t):this.finishOp(u.relational,1)},n.toAssignable=function(t,n,r){return"TypeCastExpression"===t.type?e.prototype.toAssignable.call(this,this.typeCastToParameter(t),n,r):e.prototype.toAssignable.call(this,t,n,r)},n.toAssignableList=function(t,n,r){for(var i=0;i<t.length;i++){var a=t[i];a&&"TypeCastExpression"===a.type&&(t[i]=this.typeCastToParameter(a))}return e.prototype.toAssignableList.call(this,t,n,r)},n.toReferencedList=function(e){for(var t=0;t<e.length;t++){var n=e[t];n&&n._exprListItem&&"TypeCastExpression"===n.type&&this.raise(n.start,"Unexpected type cast")}return e},n.parseExprListItem=function(t,n,r){var i=this.startNode(),a=e.prototype.parseExprListItem.call(this,t,n,r);return this.match(u.colon)?(i._exprListItem=!0,i.expression=a,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")):a},n.checkLVal=function(t,n,r,i){if("TypeCastExpression"!==t.type)return e.prototype.checkLVal.call(this,t,n,r,i)},n.parseClassProperty=function(t){return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},n.parseClassPrivateProperty=function(t){return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},n.isClassMethod=function(){return this.isRelational("<")||e.prototype.isClassMethod.call(this)},n.isClassProperty=function(){return this.match(u.colon)||e.prototype.isClassProperty.call(this)},n.isNonstaticConstructor=function(t){return!this.match(u.colon)&&e.prototype.isNonstaticConstructor.call(this,t)},n.pushClassMethod=function(t,n,r,i,a){n.variance&&this.unexpected(n.variance.start),delete n.variance,this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterDeclaration(!1)),e.prototype.pushClassMethod.call(this,t,n,r,i,a)},n.pushClassPrivateMethod=function(t,n,r,i){n.variance&&this.unexpected(n.variance.start),delete n.variance,this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,n,r,i)},n.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();var n=t.implements=[];do{var r=this.startNode();r.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,n.push(this.finishNode(r,"ClassImplements"))}while(this.eat(u.comma))}},n.parsePropertyName=function(t){var n=this.flowParseVariance(),r=e.prototype.parsePropertyName.call(this,t);return t.variance=n,r},n.parseObjPropValue=function(t,n,r,i,a,s,o,l){var c;t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(c=this.flowParseTypeParameterDeclaration(!1),this.match(u.parenL)||this.unexpected()),e.prototype.parseObjPropValue.call(this,t,n,r,i,a,s,o,l),c&&((t.value||t).typeParameters=c)},n.parseAssignableListItemTypes=function(e){if(this.eat(u.question)){if("Identifier"!==e.type)throw this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature.");e.optional=!0}return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.finishNode(e,e.type),e},n.parseMaybeDefault=function(t,n,r){var i=e.prototype.parseMaybeDefault.call(this,t,n,r);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(i.typeAnnotation.start,"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`"),i},n.shouldParseDefaultImport=function(t){return A(t)?w(this.state):e.prototype.shouldParseDefaultImport.call(this,t)},n.parseImportSpecifierLocal=function(e,t,n,r){t.local=A(e)?this.flowParseRestrictedIdentifier(!0):this.parseIdentifier(),this.checkLVal(t.local,!0,void 0,r),e.specifiers.push(this.finishNode(t,n))},n.parseImportSpecifiers=function(t){t.importKind="value";var n=null;if(this.match(u._typeof)?n="typeof":this.isContextual("type")&&(n="type"),n){var r=this.lookahead();"type"===n&&r.type===u.star&&this.unexpected(r.start),(w(r)||r.type===u.braceL||r.type===u.star)&&(this.next(),t.importKind=n)}e.prototype.parseImportSpecifiers.call(this,t)},n.parseImportSpecifier=function(e){var t=this.startNode(),n=this.state.start,r=this.parseIdentifier(!0),i=null;"type"===r.name?i="type":"typeof"===r.name&&(i="typeof");var a=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){var s=this.parseIdentifier(!0);null===i||this.match(u.name)||this.state.type.keyword?(t.imported=r,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=s,t.importKind=i,t.local=s.__clone())}else null!==i&&(this.match(u.name)||this.state.type.keyword)?(t.imported=this.parseIdentifier(!0),t.importKind=i,this.eatContextual("as")?t.local=this.parseIdentifier():(a=!0,t.local=t.imported.__clone())):(a=!0,t.imported=r,t.importKind=null,t.local=t.imported.__clone());var o=A(e),l=A(t);o&&l&&this.raise(n,"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements"),(o||l)&&this.checkReservedType(t.local.name,t.local.start),!a||o||l||this.checkReservedWord(t.local.name,t.start,!0,!0),this.checkLVal(t.local,!0,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},n.parseFunctionParams=function(t){var n=t.kind;"get"!==n&&"set"!==n&&this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration(!1)),e.prototype.parseFunctionParams.call(this,t)},n.parseVarHead=function(t){e.prototype.parseVarHead.call(this,t),this.match(u.colon)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(t.id,t.id.type))},n.parseAsyncArrowFromCallExpression=function(t,n){if(this.match(u.colon)){var r=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=r}return e.prototype.parseAsyncArrowFromCallExpression.call(this,t,n)},n.shouldParseAsyncArrow=function(){return this.match(u.colon)||e.prototype.shouldParseAsyncArrow.call(this)},n.parseMaybeAssign=function(t,n,r,i){var a=this,s=null;if(u.jsxTagStart&&this.match(u.jsxTagStart)){var o=this.state.clone();try{return e.prototype.parseMaybeAssign.call(this,t,n,r,i)}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=o,this.state.context.length-=2,s=e}}if(null!=s||this.isRelational("<")){var l,c;try{c=this.flowParseTypeParameterDeclaration(),(l=this.forwardNoArrowParamsConversionAt(c,function(){return e.prototype.parseMaybeAssign.call(a,t,n,r,i)})).typeParameters=c,this.resetStartLocationFromNode(l,c)}catch(e){throw s||e}if("ArrowFunctionExpression"===l.type)return l;if(null!=s)throw s;this.raise(c.start,"Expected an arrow function after this type parameter declaration")}return e.prototype.parseMaybeAssign.call(this,t,n,r,i)},n.parseArrow=function(t){if(this.match(u.colon)){var n=this.state.clone();try{var r=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;var i=this.startNode(),a=this.flowParseTypeAndPredicateInitialiser();i.typeAnnotation=a[0],t.predicate=a[1],this.state.noAnonFunctionType=r,this.canInsertSemicolon()&&this.unexpected(),this.match(u.arrow)||this.unexpected(),t.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=n}}return e.prototype.parseArrow.call(this,t)},n.shouldParseArrow=function(){return this.match(u.colon)||e.prototype.shouldParseArrow.call(this)},n.setArrowFunctionParameters=function(t,n){-1!==this.state.noArrowParamsConversionAt.indexOf(t.start)?t.params=n:e.prototype.setArrowFunctionParameters.call(this,t,n)},n.checkFunctionNameAndParams=function(t,n){if(!n||-1===this.state.noArrowParamsConversionAt.indexOf(t.start))return e.prototype.checkFunctionNameAndParams.call(this,t,n)},n.parseParenAndDistinguishExpression=function(t){return e.prototype.parseParenAndDistinguishExpression.call(this,t&&-1===this.state.noArrowAt.indexOf(this.state.start))},n.parseSubscripts=function(t,n,r,i){if("Identifier"===t.type&&"async"===t.name&&-1!==this.state.noArrowAt.indexOf(n)){this.next();var a=this.startNodeAt(n,r);a.callee=t,a.arguments=this.parseCallExpressionArguments(u.parenR,!1),t=this.finishNode(a,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.isRelational("<")){var s,o=this.state.clone();try{var l=this.parseAsyncArrowWithTypeParameters(n,r);if(l)return l}catch(e){s=e}this.state=o;try{return e.prototype.parseSubscripts.call(this,t,n,r,i)}catch(e){throw s||e}}return e.prototype.parseSubscripts.call(this,t,n,r,i)},n.parseSubscript=function(t,n,r,i,a){if(this.match(u.questionDot)&&this.isLookaheadRelational("<")){if(this.expectPlugin("optionalChaining"),a.optionalChainMember=!0,i)return a.stop=!0,t;this.next();var s=this.startNodeAt(n,r);return s.callee=t,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(u.parenL),s.arguments=this.parseCallExpressionArguments(u.parenR,!1),s.optional=!0,this.finishNode(s,"OptionalCallExpression")}if(!i&&this.shouldParseTypes()&&this.isRelational("<")){var o=this.startNodeAt(n,r);o.callee=t;var l=this.state.clone();try{return o.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(u.parenL),o.arguments=this.parseCallExpressionArguments(u.parenR,!1),a.optionalChainMember?(o.optional=!1,this.finishNode(o,"OptionalCallExpression")):this.finishNode(o,"CallExpression")}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=l}}return e.prototype.parseSubscript.call(this,t,n,r,i,a)},n.parseNewArguments=function(t){var n=null;if(this.shouldParseTypes()&&this.isRelational("<")){var r=this.state.clone();try{n=this.flowParseTypeParameterInstantiation()}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=r}}t.typeArguments=n,e.prototype.parseNewArguments.call(this,t)},n.parseAsyncArrowWithTypeParameters=function(e,t){var n=this.startNodeAt(e,t);if(this.parseFunctionParams(n),this.parseArrow(n))return this.parseArrowExpression(n,void 0,!0)},n.readToken_mult_modulo=function(t){var n=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===n&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();e.prototype.readToken_mult_modulo.call(this,t)},n.skipBlockComment=function(){return this.hasPlugin("flow")&&this.hasPlugin("flowComments")&&this.skipFlowComment()?(this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0)):this.hasPlugin("flow")&&this.state.hasFlowComment?(-1===(t=this.input.indexOf("*-/",this.state.pos+=2))&&this.raise(this.state.pos-2,"Unterminated comment"),void(this.state.pos=t+3)):void e.prototype.skipBlockComment.call(this);var t},n.skipFlowComment=function(){var e=this.input.charCodeAt(this.state.pos+2),t=this.input.charCodeAt(this.state.pos+3);return 58===e&&58===t?4:"flow-include"===this.input.slice(this.state.pos+2,14)?14:58===e&&58!==t&&2},n.hasFlowCommentCompletion=function(){-1===this.input.indexOf("*/",this.state.pos)&&this.raise(this.state.pos,"Unterminated comment")},t}(e)},typescript:function(e){return function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.tsIsIdentifier=function(){return this.match(u.name)},n.tsNextTokenCanFollowModifier=function(){return this.next(),!(this.hasPrecedingLineBreak()||this.match(u.parenL)||this.match(u.parenR)||this.match(u.colon)||this.match(u.eq)||this.match(u.question))},n.tsParseModifier=function(e){if(this.match(u.name)){var t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}},n.tsIsListTerminator=function(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(u.braceR);case"HeritageClauseElement":return this.match(u.braceL);case"TupleElementTypes":return this.match(u.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")},n.tsParseList=function(e,t){for(var n=[];!this.tsIsListTerminator(e);)n.push(t());return n},n.tsParseDelimitedList=function(e,t){return ne(this.tsParseDelimitedListWorker(e,t,!0))},n.tsTryParseDelimitedList=function(e,t){return this.tsParseDelimitedListWorker(e,t,!1)},n.tsParseDelimitedListWorker=function(e,t,n){for(var r=[];!this.tsIsListTerminator(e);){var i=t();if(null==i)return;if(r.push(i),!this.eat(u.comma)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(u.comma))}}return r},n.tsParseBracketedList=function(e,t,n,r){r||(n?this.expect(u.bracketL):this.expectRelational("<"));var i=this.tsParseDelimitedList(e,t);return n?this.expect(u.bracketR):this.expectRelational(">"),i},n.tsParseEntityName=function(e){for(var t=this.parseIdentifier();this.eat(u.dot);){var n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t},n.tsParseTypeReference=function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")},n.tsParseThisTypePredicate=function(e){this.next();var t=this.startNode();return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(t,"TSTypePredicate")},n.tsParseThisTypeNode=function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")},n.tsParseTypeQuery=function(){var e=this.startNode();return this.expect(u._typeof),e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")},n.tsParseTypeParameter=function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(u._extends),e.default=this.tsEatThenParseType(u.eq),this.finishNode(e,"TSTypeParameter")},n.tsTryParseTypeParameters=function(){if(this.isRelational("<"))return this.tsParseTypeParameters()},n.tsParseTypeParameters=function(){var e=this.startNode();return this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(e,"TSTypeParameterDeclaration")},n.tsFillSignature=function(e,t){var n=e===u.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(u.parenL),t.parameters=this.tsParseBindingListForSignature(),n?t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))},n.tsParseBindingListForSignature=function(){var e=this;return this.parseBindingList(u.parenR).map(function(t){if("Identifier"!==t.type&&"RestElement"!==t.type)throw e.unexpected(t.start,"Name in a signature must be an Identifier.");return t})},n.tsParseTypeMemberSemicolon=function(){this.eat(u.comma)||this.semicolon()},n.tsParseSignatureMember=function(e){var t=this.startNode();return"TSConstructSignatureDeclaration"===e&&this.expect(u._new),this.tsFillSignature(u.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)},n.tsIsUnambiguouslyIndexSignature=function(){return this.next(),this.eat(u.name)&&this.match(u.colon)},n.tsTryParseIndexSignature=function(e){if(this.match(u.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(u.bracketL);var t=this.parseIdentifier();this.expect(u.colon),t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.expect(u.bracketR),e.parameters=[t];var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}},n.tsParsePropertyOrMethodSignature=function(e,t){this.parsePropertyName(e),this.eat(u.question)&&(e.optional=!0);var n=e;if(t||!this.match(u.parenL)&&!this.isRelational("<")){var r=n;t&&(r.readonly=!0);var i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}var a=n;return this.tsFillSignature(u.colon,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSMethodSignature")},n.tsParseTypeMember=function(){if(this.match(u.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration");if(this.match(u._new)&&this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this)))return this.tsParseSignatureMember("TSConstructSignatureDeclaration");var e=this.startNode(),t=!!this.tsParseModifier(["readonly"]),n=this.tsTryParseIndexSignature(e);return n?(t&&(e.readonly=!0),n):this.tsParsePropertyOrMethodSignature(e,t)},n.tsIsStartOfConstructSignature=function(){return this.next(),this.match(u.parenL)||this.isRelational("<")},n.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},n.tsParseObjectTypeMembers=function(){this.expect(u.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(u.braceR),e},n.tsIsStartOfMappedType=function(){return this.next(),this.eat(u.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(u.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(u._in))))},n.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(u._in),this.finishNode(e,"TSTypeParameter")},n.tsParseMappedType=function(){var e=this.startNode();return this.expect(u.braceL),this.match(u.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(u.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),this.expect(u.bracketR),this.match(u.plusMin)?(e.optional=this.state.value,this.next(),this.expect(u.question)):this.eat(u.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(u.braceR),this.finishNode(e,"TSMappedType")},n.tsParseTupleType=function(){var e=this.startNode();return e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseType.bind(this),!0,!1),this.finishNode(e,"TSTupleType")},n.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(u.parenL),e.typeAnnotation=this.tsParseType(),this.expect(u.parenR),this.finishNode(e,"TSParenthesizedType")},n.tsParseFunctionOrConstructorType=function(e){var t=this.startNode();return"TSConstructorType"===e&&this.expect(u._new),this.tsFillSignature(u.arrow,t),this.finishNode(t,e)},n.tsParseLiteralTypeNode=function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.state.type){case u.num:return e.parseLiteral(e.state.value,"NumericLiteral");case u.string:return e.parseLiteral(e.state.value,"StringLiteral");case u._true:case u._false:return e.parseBooleanLiteral();default:throw e.unexpected()}}(),this.finishNode(t,"TSLiteralType")},n.tsParseNonArrayType=function(){switch(this.state.type){case u.name:case u._void:case u._null:var e=this.match(u._void)?"TSVoidKeyword":this.match(u._null)?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";default:return}}(this.state.value);if(void 0!==e&&this.lookahead().type!==u.dot){var t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference();case u.string:case u.num:case u._true:case u._false:return this.tsParseLiteralTypeNode();case u.plusMin:if("-"===this.state.value){var n=this.startNode();if(this.next(),!this.match(u.num))throw this.unexpected();return n.literal=this.parseLiteral(-this.state.value,"NumericLiteral",n.start,n.loc.start),this.finishNode(n,"TSLiteralType")}break;case u._this:var r=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r;case u._typeof:return this.tsParseTypeQuery();case u.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case u.bracketL:return this.tsParseTupleType();case u.parenL:return this.tsParseParenthesizedType()}throw this.unexpected()},n.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(u.bracketL);)if(this.match(u.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(u.bracketR),e=this.finishNode(t,"TSArrayType")}else{var n=this.startNodeAtNode(e);n.objectType=e,n.indexType=this.tsParseType(),this.expect(u.bracketR),e=this.finishNode(n,"TSIndexedAccessType")}return e},n.tsParseTypeOperator=function(e){var t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),this.finishNode(t,"TSTypeOperator")},n.tsParseInferType=function(){var e=this.startNode();this.expectContextual("infer");var t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")},n.tsParseTypeOperatorOrHigher=function(){var e=this,t=["keyof","unique"].find(function(t){return e.isContextual(t)});return t?this.tsParseTypeOperator(t):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()},n.tsParseUnionOrIntersectionType=function(e,t,n){this.eat(n);var r=t();if(this.match(n)){for(var i=[r];this.eat(n);)i.push(t());var a=this.startNodeAtNode(r);a.types=i,r=this.finishNode(a,e)}return r},n.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),u.bitwiseAND)},n.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),u.bitwiseOR)},n.tsIsStartOfFunctionType=function(){return!!this.isRelational("<")||this.match(u.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},n.tsSkipParameterStart=function(){return!(!this.match(u.name)&&!this.match(u._this)||(this.next(),0))},n.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(u.parenR)||this.match(u.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(u.colon)||this.match(u.comma)||this.match(u.question)||this.match(u.eq))return!0;if(this.match(u.parenR)&&(this.next(),this.match(u.arrow)))return!0}return!1},n.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType(function(){var n=t.startNode();t.expect(e);var r=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!r)return t.tsParseTypeAnnotation(!1,n);var i=t.tsParseTypeAnnotation(!1),a=t.startNodeAtNode(r);return a.parameterName=r,a.typeAnnotation=i,n.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(n,"TSTypeAnnotation")})},n.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(u.colon)?this.tsParseTypeOrTypePredicateAnnotation(u.colon):void 0},n.tsTryParseTypeAnnotation=function(){return this.match(u.colon)?this.tsParseTypeAnnotation():void 0},n.tsTryParseType=function(){return this.tsEatThenParseType(u.colon)},n.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e},n.tsParseTypeAnnotation=function(e,t){var n=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType(function(){e&&n.expect(u.colon),t.typeAnnotation=n.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")},n.tsParseType=function(){re(this.state.inType);var e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(u._extends))return e;var t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(u.question),t.trueType=this.tsParseType(),this.expect(u.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")},n.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(u._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()},n.tsParseTypeAssertion=function(){var e=this,t=this.startNode();return t.typeAnnotation=this.tsInType(function(){return e.tsParseType()}),this.expectRelational(">"),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")},n.tsParseHeritageClause=function(){return this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this))},n.tsParseExpressionWithTypeArguments=function(){var e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")},n.tsParseInterfaceDeclaration=function(e){e.id=this.parseIdentifier(),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(u._extends)&&(e.extends=this.tsParseHeritageClause());var t=this.startNode();return t.body=this.tsParseObjectTypeMembers(),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},n.tsParseTypeAliasDeclaration=function(e){return e.id=this.parseIdentifier(),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsExpectThenParseType(u.eq),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},n.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},n.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},n.tsEatThenParseType=function(e){return this.match(e)?this.tsNextThenParseType():void 0},n.tsExpectThenParseType=function(e){var t=this;return this.tsDoThenParseType(function(){return t.expect(e)})},n.tsNextThenParseType=function(){var e=this;return this.tsDoThenParseType(function(){return e.next()})},n.tsDoThenParseType=function(e){var t=this;return this.tsInType(function(){return e(),t.tsParseType()})},n.tsParseEnumMember=function(){var e=this.startNode();return e.id=this.match(u.string)?this.parseLiteral(this.state.value,"StringLiteral"):this.parseIdentifier(!0),this.eat(u.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")},n.tsParseEnumDeclaration=function(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.expect(u.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(u.braceR),this.finishNode(e,"TSEnumDeclaration")},n.tsParseModuleBlock=function(){var e=this.startNode();return this.expect(u.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,u.braceR),this.finishNode(e,"TSModuleBlock")},n.tsParseModuleOrNamespaceDeclaration=function(e){if(e.id=this.parseIdentifier(),this.eat(u.dot)){var t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t),e.body=t}else e.body=this.tsParseModuleBlock();return this.finishNode(e,"TSModuleDeclaration")},n.tsParseAmbientExternalModuleDeclaration=function(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(u.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(u.braceL)?e.body=this.tsParseModuleBlock():this.semicolon(),this.finishNode(e,"TSModuleDeclaration")},n.tsParseImportEqualsDeclaration=function(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.expect(u.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},n.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookahead().type===u.parenL},n.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},n.tsParseExternalModuleReference=function(){var e=this.startNode();if(this.expectContextual("require"),this.expect(u.parenL),!this.match(u.string))throw this.unexpected();return e.expression=this.parseLiteral(this.state.value,"StringLiteral"),this.expect(u.parenR),this.finishNode(e,"TSExternalModuleReference")},n.tsLookAhead=function(e){var t=this.state.clone(),n=e();return this.state=t,n},n.tsTryParseAndCatch=function(e){var t=this.state.clone();try{return e()}catch(e){if(e instanceof SyntaxError)return void(this.state=t);throw e}},n.tsTryParse=function(e){var t=this.state.clone(),n=e();return void 0!==n&&!1!==n?n:void(this.state=t)},n.nodeWithSamePosition=function(e,t){var n=this.startNodeAtNode(e);return n.type=t,n.end=e.end,n.loc.end=e.loc.end,e.leadingComments&&(n.leadingComments=e.leadingComments),e.trailingComments&&(n.trailingComments=e.trailingComments),e.innerComments&&(n.innerComments=e.innerComments),n},n.tsTryParseDeclare=function(e){switch(this.state.type){case u._function:return this.next(),this.parseFunction(e,!0);case u._class:return this.parseClass(e,!0,!1);case u._const:if(this.match(u._const)&&this.isLookaheadContextual("enum"))return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case u._var:case u._let:return this.parseVarStatement(e,this.state.type);case u.name:var t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}},n.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)},n.tsParseExpressionStatement=function(e,t){switch(t.name){case"declare":var n=this.tsTryParseDeclare(e);if(n)return n.declare=!0,n;break;case"global":if(this.match(u.braceL)){var r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}},n.tsParseDeclaration=function(e,t,n){switch(t){case"abstract":if(n||this.match(u._class)){var r=e;return r.abstract=!0,n&&this.next(),this.parseClass(r,!0,!1)}break;case"enum":if(n||this.match(u.name))return n&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(n||this.match(u.name))return n&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(n&&this.next(),this.match(u.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(n||this.match(u.name))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(n||this.match(u.name))return n&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(n||this.match(u.name))return n&&this.next(),this.tsParseTypeAliasDeclaration(e)}},n.tsTryParseGenericAsyncArrowFunction=function(t,n){var r=this,i=this.tsTryParseAndCatch(function(){var i=r.startNodeAt(t,n);return i.typeParameters=r.tsParseTypeParameters(),e.prototype.parseFunctionParams.call(r,i),i.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(u.arrow),i});if(i)return i.id=null,i.generator=!1,i.expression=!0,i.async=!0,this.parseFunctionBody(i,!0),this.finishNode(i,"ArrowFunctionExpression")},n.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType(function(){return e.tsInNoContext(function(){return e.expectRelational("<"),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))})}),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")},n.tsIsDeclarationStart=function(){if(this.match(u.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1},n.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},n.parseAssignableListItem=function(e,t){var n,r=!1;e&&(n=this.parseAccessModifier(),r=!!this.tsParseModifier(["readonly"]));var i=this.parseMaybeDefault();this.parseAssignableListItemTypes(i);var a=this.parseMaybeDefault(i.start,i.loc.start,i);if(n||r){var s=this.startNodeAtNode(a);if(t.length&&(s.decorators=t),n&&(s.accessibility=n),r&&(s.readonly=r),"Identifier"!==a.type&&"AssignmentPattern"!==a.type)throw this.raise(s.start,"A parameter property may not be declared using a binding pattern.");return s.parameter=a,this.finishNode(s,"TSParameterProperty")}return t.length&&(i.decorators=t),a},n.parseFunctionBodyAndFinish=function(t,n,r){!r&&this.match(u.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(u.colon));var i="FunctionDeclaration"===n?"TSDeclareFunction":"ClassMethod"===n?"TSDeclareMethod":void 0;i&&!this.match(u.braceL)&&this.isLineTerminator()?this.finishNode(t,i):e.prototype.parseFunctionBodyAndFinish.call(this,t,n,r)},n.parseSubscript=function(t,n,r,i,a){var s=this;if(!this.hasPrecedingLineBreak()&&this.match(u.bang)){this.state.exprAllowed=!1,this.next();var o=this.startNodeAt(n,r);return o.expression=t,this.finishNode(o,"TSNonNullExpression")}var l=this.tsTryParseAndCatch(function(){if(s.isRelational("<")){if(!i&&s.atPossibleAsync(t)){var e=s.tsTryParseGenericAsyncArrowFunction(n,r);if(e)return e}var o=s.startNodeAt(n,r);o.callee=t;var l=s.tsParseTypeArguments();if(l){if(!i&&s.eat(u.parenL))return o.arguments=s.parseCallExpressionArguments(u.parenR,!1),o.typeParameters=l,s.finishCallExpression(o);if(s.match(u.backQuote))return s.parseTaggedTemplateExpression(n,r,t,a,l)}}s.unexpected()});return l||e.prototype.parseSubscript.call(this,t,n,r,i,a)},n.parseNewArguments=function(t){var n=this;if(this.isRelational("<")){var r=this.tsTryParseAndCatch(function(){var e=n.tsParseTypeArguments();return n.match(u.parenL)||n.unexpected(),e});r&&(t.typeParameters=r)}e.prototype.parseNewArguments.call(this,t)},n.parseExprOp=function(t,n,r,i,a){if(ne(u._in.binop)>i&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var s=this.startNodeAt(n,r);return s.expression=t,s.typeAnnotation=this.tsNextThenParseType(),this.finishNode(s,"TSAsExpression"),this.parseExprOp(s,n,r,i,a)}return e.prototype.parseExprOp.call(this,t,n,r,i,a)},n.checkReservedWord=function(e,t,n,r){},n.checkDuplicateExports=function(){},n.parseImport=function(t){return this.match(u.name)&&this.lookahead().type===u.eq?this.tsParseImportEqualsDeclaration(t):e.prototype.parseImport.call(this,t)},n.parseExport=function(t){if(this.match(u._import))return this.expect(u._import),this.tsParseImportEqualsDeclaration(t,!0);if(this.eat(u.eq)){var n=t;return n.expression=this.parseExpression(),this.semicolon(),this.finishNode(n,"TSExportAssignment")}if(this.eatContextual("as")){var r=t;return this.expectContextual("namespace"),r.id=this.parseIdentifier(),this.semicolon(),this.finishNode(r,"TSNamespaceExportDeclaration")}return e.prototype.parseExport.call(this,t)},n.isAbstractClass=function(){return this.isContextual("abstract")&&this.lookahead().type===u._class},n.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),this.parseClass(t,!0,!0),t.abstract=!0,t}if("interface"===this.state.value){var n=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(n)return n}return e.prototype.parseExportDefaultExpression.call(this)},n.parseStatementContent=function(t,n){if(this.state.type===u._const){var r=this.lookahead();if(r.type===u.name&&"enum"===r.value){var i=this.startNode();return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(i,!0)}}return e.prototype.parseStatementContent.call(this,t,n)},n.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},n.parseClassMember=function(t,n,r){var i=this.parseAccessModifier();i&&(n.accessibility=i),e.prototype.parseClassMember.call(this,t,n,r)},n.parseClassMemberWithIsStatic=function(t,n,r,i){var a=n,s=n,o=n,l=!1,u=!1;switch(this.tsParseModifier(["abstract","readonly"])){case"readonly":u=!0,l=!!this.tsParseModifier(["abstract"]);break;case"abstract":l=!0,u=!!this.tsParseModifier(["readonly"])}if(l&&(a.abstract=!0),u&&(o.readonly=!0),!l&&!i&&!a.accessibility){var c=this.tsTryParseIndexSignature(n);if(c)return void t.body.push(c)}if(u)return a.static=i,this.parseClassPropertyName(s),this.parsePostMemberNameModifiers(a),void this.pushClassProperty(t,s);e.prototype.parseClassMemberWithIsStatic.call(this,t,n,r,i)},n.parsePostMemberNameModifiers=function(e){this.eat(u.question)&&(e.optional=!0)},n.parseExpressionStatement=function(t,n){return("Identifier"===n.type?this.tsParseExpressionStatement(t,n):void 0)||e.prototype.parseExpressionStatement.call(this,t,n)},n.shouldParseExportDeclaration=function(){return!!this.tsIsDeclarationStart()||e.prototype.shouldParseExportDeclaration.call(this)},n.parseConditional=function(t,n,r,i,a){if(!a||!this.match(u.question))return e.prototype.parseConditional.call(this,t,n,r,i,a);var s=this.state.clone();try{return e.prototype.parseConditional.call(this,t,n,r,i)}catch(e){if(!(e instanceof SyntaxError))throw e;return this.state=s,a.start=e.pos||this.state.start,t}},n.parseParenItem=function(t,n,r){if(t=e.prototype.parseParenItem.call(this,t,n,r),this.eat(u.question)&&(t.optional=!0),this.match(u.colon)){var i=this.startNodeAt(n,r);return i.expression=t,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return t},n.parseExportDeclaration=function(t){var n,r=this.eatContextual("declare");return this.match(u.name)&&(n=this.tsTryParseExportDeclaration()),n||(n=e.prototype.parseExportDeclaration.call(this,t)),n&&r&&(n.declare=!0),n},n.parseClassId=function(t,n,r){if(n&&!r||!this.isContextual("implements")){e.prototype.parseClassId.apply(this,arguments);var i=this.tsTryParseTypeParameters();i&&(t.typeParameters=i)}},n.parseClassProperty=function(t){!t.optional&&this.eat(u.bang)&&(t.definite=!0);var n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),e.prototype.parseClassProperty.call(this,t)},n.pushClassMethod=function(t,n,r,i,a){var s=this.tsTryParseTypeParameters();s&&(n.typeParameters=s),e.prototype.pushClassMethod.call(this,t,n,r,i,a)},n.pushClassPrivateMethod=function(t,n,r,i){var a=this.tsTryParseTypeParameters();a&&(n.typeParameters=a),e.prototype.pushClassPrivateMethod.call(this,t,n,r,i)},n.parseClassSuper=function(t){e.prototype.parseClassSuper.call(this,t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(t.implements=this.tsParseHeritageClause())},n.parseObjPropValue=function(t){var n;if(this.isRelational("<"))throw new Error("TODO");for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(n=e.prototype.parseObjPropValue).call.apply(n,[this,t].concat(i))},n.parseFunctionParams=function(t,n){var r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r),e.prototype.parseFunctionParams.call(this,t,n)},n.parseVarHead=function(t){e.prototype.parseVarHead.call(this,t),"Identifier"===t.id.type&&this.eat(u.bang)&&(t.definite=!0);var n=this.tsTryParseTypeAnnotation();n&&(t.id.typeAnnotation=n,this.finishNode(t.id,t.id.type))},n.parseAsyncArrowFromCallExpression=function(t,n){return this.match(u.colon)&&(t.returnType=this.tsParseTypeAnnotation()),e.prototype.parseAsyncArrowFromCallExpression.call(this,t,n)},n.parseMaybeAssign=function(){for(var t,n,r,i,a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];if(this.match(u.jsxTagStart)){re(this.curContext()===F.j_oTag),re(this.state.context[this.state.context.length-2]===F.j_expr);var l=this.state.clone();try{var c;return(c=e.prototype.parseMaybeAssign).call.apply(c,[this].concat(s))}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=l,re(this.curContext()===F.j_oTag),this.state.context.pop(),re(this.curContext()===F.j_expr),this.state.context.pop(),t=e}}if(void 0===t&&!this.isRelational("<"))return(n=e.prototype.parseMaybeAssign).call.apply(n,[this].concat(s));var p=this.state.clone();try{var f;i=this.tsParseTypeParameters(),"ArrowFunctionExpression"!==(r=(f=e.prototype.parseMaybeAssign).call.apply(f,[this].concat(s))).type&&this.unexpected()}catch(n){var d;if(!(n instanceof SyntaxError))throw n;if(t)throw t;return re(!this.hasPlugin("jsx")),this.state=p,(d=e.prototype.parseMaybeAssign).call.apply(d,[this].concat(s))}return i&&0!==i.params.length&&this.resetStartLocationFromNode(r,i.params[0]),r.typeParameters=i,r},n.parseMaybeUnary=function(t){return!this.hasPlugin("jsx")&&this.eatRelational("<")?this.tsParseTypeAssertion():e.prototype.parseMaybeUnary.call(this,t)},n.parseArrow=function(t){if(this.match(u.colon)){var n=this.state.clone();try{var r=this.tsParseTypeOrTypePredicateAnnotation(u.colon);this.canInsertSemicolon()&&this.unexpected(),this.match(u.arrow)||this.unexpected(),t.returnType=r}catch(e){if(!(e instanceof SyntaxError))throw e;this.state=n}}return e.prototype.parseArrow.call(this,t)},n.parseAssignableListItemTypes=function(e){if(this.eat(u.question)){if("Identifier"!==e.type)throw this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature.");e.optional=!0}var t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.finishNode(e,e.type)},n.toAssignable=function(t,n,r){switch(t.type){case"TSTypeCastExpression":return e.prototype.toAssignable.call(this,this.typeCastToParameter(t),n,r);case"TSParameterProperty":return e.prototype.toAssignable.call(this,t,n,r);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return t.expression=this.toAssignable(t.expression,n,r),t;default:return e.prototype.toAssignable.call(this,t,n,r)}},n.checkLVal=function(t,n,r,i){switch(t.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(t.parameter,n,r,"parameter property");case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(t.expression,n,r,i);default:return void e.prototype.checkLVal.call(this,t,n,r,i)}},n.parseBindingAtom=function(){switch(this.state.type){case u._this:return this.parseIdentifier(!0);default:return e.prototype.parseBindingAtom.call(this)}},n.isClassMethod=function(){return this.isRelational("<")||e.prototype.isClassMethod.call(this)},n.isClassProperty=function(){return this.match(u.bang)||this.match(u.colon)||e.prototype.isClassProperty.call(this)},n.parseMaybeDefault=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=(t=e.prototype.parseMaybeDefault).call.apply(t,[this].concat(r));return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start<a.typeAnnotation.start&&this.raise(a.typeAnnotation.start,"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`"),a},n.readToken=function(t){return!this.state.inType||62!==t&&60!==t?e.prototype.readToken.call(this,t):this.finishOp(u.relational,1)},n.toAssignableList=function(t,n,r){for(var i=0;i<t.length;i++){var a=t[i];a&&"TSTypeCastExpression"===a.type&&(t[i]=this.typeCastToParameter(a))}return e.prototype.toAssignableList.call(this,t,n,r)},n.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.finishNodeAt(e.expression,e.expression.type,e.typeAnnotation.end,e.typeAnnotation.loc.end)},n.toReferencedList=function(e){for(var t=0;t<e.length;t++){var n=e[t];n&&n._exprListItem&&"TsTypeCastExpression"===n.type&&this.raise(n.start,"Did not expect a type annotation here.")}return e},n.shouldParseArrow=function(){return this.match(u.colon)||e.prototype.shouldParseArrow.call(this)},n.shouldParseAsyncArrow=function(){return this.match(u.colon)||e.prototype.shouldParseAsyncArrow.call(this)},n.canHaveLeadingDecorator=function(){return e.prototype.canHaveLeadingDecorator.call(this)||this.isAbstractClass()},n.jsxParseOpeningElementAfterName=function(t){var n=this,r=this.tsTryParseAndCatch(function(){return n.tsParseTypeArguments()});return r&&(t.typeParameters=r),e.prototype.jsxParseOpeningElementAfterName.call(this,t)},t}(e)}};function ue(e,t){var n=te;return e&&e.plugins&&(!function(e){if(ie(e,"decorators")){if(ie(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=ae(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean.");if("boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(ie(e,"flow")&&ie(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(ie(e,"pipelineOperator")&&!se.includes(ae(e,"pipelineOperator","proposal")))throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: "+se.join(", "))}(e.plugins),n=function(e){var t=oe.filter(function(t){return ie(e,t)}),n=t.join("/"),r=ce[n];if(!r){r=te;for(var i=0;i<t.length;i++){var a=t[i];r=le[a](r)}ce[n]=r}return r}(e.plugins)),new n(e,t)}var ce={};t.parse=function(e,t){if(!t||"unambiguous"!==t.sourceType)return ue(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var n=ue(t,e),r=n.parse();return n.sawUnambiguousESM||(r.program.sourceType="script"),r}catch(n){try{return t.sourceType="script",ue(t,e).parse()}catch(e){}throw n}},t.parseExpression=function(e,t){var n=ue(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},t.tokTypes=u},function(e,t,n){"use strict";e.exports={createUserError:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a=e.replace(/%s/g,function(e){return n[i++]});return new Error(a)}}},function(e,t,n){"use strict";var r=function(){function e(e){this._verbose=e.verbose,this._quiet=e.quiet}var t=e.prototype;return t.reportMessage=function(e){this._quiet||process.stdout.write(e+"\n")},t.reportTime=function(e,t){if(this._verbose&&!this.quiet){var r=0===t?n(27).gray(" <1ms"):t<1e3?n(27).blue(function(e,t){return new Array(e-t.length+1).join(" ")+t}(5,t+"ms")):n(27).red(Math.floor(t/10)/100+"s");process.stdout.write(" "+r+" "+n(27).gray(e)+"\n")}},t.reportError=function(e,t){if(!this._quiet&&(process.stdout.write(n(27).red("ERROR:\n"+t.message+"\n")),this._verbose)){var r=t.stack.match(/^ {4}at .*$/gm);r&&process.stdout.write(n(27).gray("From: "+e+"\n"+r.join("\n")+"\n"))}},e}();e.exports=r},function(e,t,n){"use strict";function r(e,t){var r=n(15).readFileSync(n(8).join(e,t.relPath),"utf8");return n(0).parse(new(n(0).Source)(r,t.relPath),{experimentalFragmentVariables:!0})}e.exports={parseFile:r,getParser:function(e){return new(n(42))({baseDir:e,parse:r})}}},function(e,t,n){"use strict";var r=n(19),i=n(5)(n(11));function a(e,t){return new Promise(function(r,i){n(112).execFile(e,t,function(e){e?i(e):r()})})}var s={addRemove:function(){var e=r(function*(e,t){e.length>0&&(yield a("hg",["add"].concat((0,i.default)(e)))),t.length>0&&(yield a("hg",["forget"].concat((0,i.default)(t))))});return function(t,n){return e.apply(this,arguments)}}()};e.exports={SourceControlMercurial:s}},function(e,t){e.exports=require("child_process")},function(e,t,n){"use strict";function r(e,t,r,i){var a,s=n(3).getRawType(t),o=s===e.getQueryType(),l=s instanceof n(0).GraphQLObjectType||s instanceof n(0).GraphQLInterfaceType||s instanceof n(0).GraphQLUnionType;return o&&r===n(0).SchemaMetaFieldDef.name?a=n(0).SchemaMetaFieldDef:o&&r===n(0).TypeMetaFieldDef.name?a=n(0).TypeMetaFieldDef:l&&r===n(0).TypeNameMetaFieldDef.name?a=n(0).TypeNameMetaFieldDef:(s instanceof n(0).GraphQLInterfaceType||s instanceof n(0).GraphQLObjectType)&&(a=s.getFields()[r]),a}function i(e){var t=e.name?e.name.value:null;if("string"!=typeof t)throw n(1).createCompilerError("Expected ast node to have a 'name'.",null,[e]);return t}e.exports={getFieldDefinitionLegacy:function(e,t,a,s){var o=r(e,t,a);return o||(o=function(e,t,r,a){if(n(0).isAbstractType(t)&&a&&a.directives&&a.directives.some(function(e){return"fixme_fat_interface"===i(e)})){for(var s,o=e.getPossibleTypes(n(0).assertAbstractType(t)),l=function(e){var t=o[e].getFields()[r];if(t&&(s=t,a&&a.arguments)){var n=a.arguments.every(function(e){return t.args.find(function(t){return t.name===i(e)})});if(n)return"break"}},u=0;u<o.length;u++){var c=l(u);if("break"===c)break}return s}}(e,n(3).getRawType(t),a,s)),o||null},getFieldDefinitionStrict:r}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11));function a(e,t,r,i){var a=e.key,s=e.schemaName,o=e.value,l=e.conditional,c=e.nodeType,p=e.nodeSelections;c&&(o=n(52).transformScalarType(c,t,u([Array.from(n(23)(p).values())],t,r))),"__typename"===s&&i&&(o=n(2).stringLiteralTypeAnnotation(i));var f=n(7).readOnlyObjectTypeProperty(a,o);return l&&(f.optional=!0),f}var s=function(e){return"__typename"===e.schemaName},o=function(e){return e.some(s)},l=function(e){return e.every(s)};function u(e,t,u,m){var y=new Map,v={};d(e).forEach(function(e){var t=e.concreteType;if(t){var n;v[t]=null!==(n=v[t])&&void 0!==n?n:[],v[t].push(e)}else{var r=y.get(e.key);y.set(e.key,r?c(e,r):e)}});var T=[];if(Object.keys(v).length&&l(Array.from(y.values()))&&(o(Array.from(y.values()))||Object.keys(v).every(function(e){return o(v[e])})))!function(){var e=new Set,r=function(n){T.push(h((0,i.default)(Array.from(y.values())).concat((0,i.default)(v[n]))).map(function(r){return"__typename"===r.schemaName&&e.add(r.key),a(r,t,u,n)}))};for(var s in v)r(s);T.push(Array.from(e).map(function(e){var t=n(7).readOnlyObjectTypeProperty(e,n(2).stringLiteralTypeAnnotation("%other"));return t.leadingComments=n(7).lineComments("This will never be '%other', but we need some","value in case none of the concrete values match."),t}))}();else{var g=f(Array.from(y.values()));for(var S in v)g=p(g,f(v[S].map(function(e){return(0,r.default)({},e,{conditional:!0})})));var x=h(Array.from(g.values())).map(function(e){return s(e)&&e.concreteType?a((0,r.default)({},e,{conditional:!1}),t,u,e.concreteType):a(e,t,u)});T.push(x)}return n(7).unionTypeAnnotation(T.map(function(e){return m&&e.push(n(7).readOnlyObjectTypeProperty("$refType",n(2).genericTypeAnnotation(n(2).identifier(m)))),u?n(2).objectTypeAnnotation(e):n(7).exactObjectTypeAnnotation(e)}))}function c(e,t){return e?(0,r.default)({},e,{nodeSelections:e.nodeSelections?p(e.nodeSelections,n(23)(t.nodeSelections)):null,conditional:e.conditional&&t.conditional}):(0,r.default)({},t,{conditional:!0})}function p(e,t){var n=new Map,r=!0,i=!1,a=void 0;try{for(var s,o=e.entries()[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var l=s.value,u=l[0],p=l[1];n.set(u,p)}}catch(e){i=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}var f=!0,d=!1,h=void 0;try{for(var m,y=t.entries()[Symbol.iterator]();!(f=(m=y.next()).done);f=!0){var v=m.value;u=v[0],p=v[1];n.set(u,c(e.get(u),p))}}catch(e){d=!0,h=e}finally{try{f||null==y.return||y.return()}finally{if(d)throw h}}return n}function f(e){var t=new Map;return e.forEach(function(e){var n=t.get(e.key);t.set(e.key,n?c(n,e):e)}),t}function d(e){var t=[];return e.forEach(function(e){return t.push.apply(t,(0,i.default)(e))}),t}function h(e){var t=[],r=[];if(e.forEach(function(e){e.ref?r.push(e.ref):t.push(e)}),r.length>0){var i=n(7).intersectionTypeAnnotation(r.map(function(e){return n(2).genericTypeAnnotation(n(2).identifier(v(e)))}));t.push({key:"$fragmentRefs",conditional:!1,value:i})}return t}function m(e){var t=[];if(e.usedFragments.size>0){var r=Array.from(e.usedFragments).sort(),i=!0,a=!1,s=void 0;try{for(var o,l=r[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var u=o.value,c=v(u);e.generatedFragments.has(u)||(e.useHaste&&e.existingFragmentNames.has(u)?t.push(n(7).importTypes([c],u+".graphql")):e.useSingleArtifactDirectory&&e.existingFragmentNames.has(u)?t.push(n(7).importTypes([c],"./"+u+".graphql")):t.push(n(7).anyTypeAlias(c)))}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}}return t}function y(e){var t=e.enumsHasteModule,r=e.usedEnums,i=e.noFutureProofEnums,a=Object.keys(r).sort();return 0===a.length?[]:t?[n(7).importTypes(a,t)]:a.map(function(e){var t=r[e].getValues().map(function(e){return e.value});return t.sort(),i||t.push("%future added value"),n(7).exportType(e,n(2).unionTypeAnnotation(t.map(function(e){return n(2).stringLiteralTypeAnnotation(e)})))})}function v(e){return"".concat(e,"$ref")}var T=[n(53).transform,n(85).transform,n(54).transform,n(40).transformWithOptions({})];e.exports={generate:n(6).instrument(function(e,t){var a=n(21).visit(e,function(e){var t={customScalars:e.customScalars,enumsHasteModule:e.enumsHasteModule,existingFragmentNames:e.existingFragmentNames,generatedFragments:new Set,generatedInputObjectTypes:{},optionalInputFields:e.optionalInputFields,usedEnums:{},usedFragments:new Set,useHaste:e.useHaste,useSingleArtifactDirectory:e.useSingleArtifactDirectory,noFutureProofEnums:e.noFutureProofEnums},a=!1;return{leave:{Root:function(e){var r=function(e,t){return n(7).exportType("".concat(e.name,"Variables"),n(7).exactObjectTypeAnnotation(e.argumentDefinitions.map(function(e){var r=n(2).objectTypeProperty(n(2).identifier(e.name),n(52).transformInputType(e.type,t));return e.type instanceof n(0).GraphQLNonNull||(r.optional=!0),r})))}(e,t),s=function(e){return Object.keys(e.generatedInputObjectTypes).map(function(t){var r=e.generatedInputObjectTypes[t];return"string"==typeof r&&n(4)(!1,"RelayCompilerFlowGenerator: Expected input object type to have been defined before calling `generateInputObjectTypes`"),n(7).exportType(t,r)})}(t),o=n(7).exportType("".concat(e.name,"Response"),u(e.selections,t,!1)),l=n(7).exportType(e.name,n(7).exactObjectTypeAnnotation([n(2).objectTypeProperty(n(2).identifier("variables"),n(2).genericTypeAnnotation(n(2).identifier("".concat(e.name,"Variables")))),n(2).objectTypeProperty(n(2).identifier("response"),n(2).genericTypeAnnotation(n(2).identifier("".concat(e.name,"Response"))))])),c=[];return a&&c.push("MatchPointer"),n(2).program((0,i.default)(m(t)).concat((0,i.default)(y(t)),[c.length?n(7).importTypes(c,"relay-runtime"):null],(0,i.default)(s),[r,o,l]).filter(Boolean))},Fragment:function(e){var o=d(e.selections),l=o.filter(function(e){return e.concreteType}).length;o=o.map(function(t){return l<=1&&s(t)&&!n(3).isAbstractType(e.type)?[(0,r.default)({},t,{concreteType:e.type.toString()})]:[t]}),t.generatedFragments.add(e.name);var c=v(e.name),p=n(2).declareExportDeclaration(n(2).declareOpaqueType(n(2).identifier(c),null,n(2).genericTypeAnnotation(n(2).identifier("FragmentReference")))),f=e.metadata&&!1===e.metadata.mask,h=u(o,t,f,f?void 0:c),T=function(e){return Boolean(e.metadata&&e.metadata.plural)}(e)?n(7).readOnlyArrayOfType(h):h,g=["FragmentReference"];return a&&g.push("MatchPointer"),n(2).program((0,i.default)(m(t)).concat((0,i.default)(y(t)),[n(7).importTypes(g,"relay-runtime"),p,n(7).exportType(e.name,T)]))},InlineFragment:function(e){var t=e.typeCondition;return d(e.selections).map(function(e){return n(3).isAbstractType(t)?(0,r.default)({},e,{conditional:!0}):(0,r.default)({},e,{concreteType:t.toString()})})},Condition:function(e){return d(e.selections).map(function(e){return(0,r.default)({},e,{conditional:!0})})},ScalarField:function(e){var r;return[{key:null!==(r=e.alias)&&void 0!==r?r:e.name,schemaName:e.name,value:n(52).transformScalarType(e.type,t)}]},LinkedField:function(e){var t;return[{key:null!==(t=e.alias)&&void 0!==t?t:e.name,schemaName:e.name,nodeType:e.type,nodeSelections:f(d(e.selections))}]},MatchField:function(e){var t;return a=!0,[{key:null!==(t=e.alias)&&void 0!==t?t:e.name,schemaName:e.name,value:n(2).nullableTypeAnnotation(n(2).genericTypeAnnotation(n(2).identifier("MatchPointer")))}]},FragmentSpread:function(e){return t.usedFragments.add(e.name),[{key:"__fragments_"+e.name,ref:e.name}]}}}}(t));return n(115).default(a).code},"RelayFlowGenerator.generate"),transforms:T}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return new s(e,t,n).generate()},t.CodeGenerator=void 0;var r=a(n(116)),i=a(n(118));function a(e){return e&&e.__esModule?e:{default:e}}class s extends i.default{constructor(e,t={},n){super(function(e,t){const n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,jsonCompatibleStrings:t.jsonCompatibleStrings,indent:{adjustMultilineComment:!0,style:" ",base:0},decoratorsBeforeExport:!!t.decoratorsBeforeExport,jsescOption:Object.assign({quotes:"double",wrap:!0},t.jsescOption)};n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.indexOf("@license")>=0||e.indexOf("@preserve")>=0);"auto"===n.compact&&(n.compact=e.length>5e5,n.compact&&console.error("[BABEL] Note: The code generator has deoptimised the styling of "+`${t.filename} as it exceeds the max of 500KB.`));n.compact&&(n.indent.adjustMultilineComment=!1);return n}(n,t),t.sourceMaps?new r.default(t,n):null),this.ast=e}generate(){return super.generate(this.ast)}}t.CodeGenerator=class{constructor(e,t,n){this._generator=new s(e,t,n)}generate(){return this._generator.generate()}}},function(e,t,n){"use strict";function r(){const e=function(e){return e&&e.__esModule?e:{default:e}}(n(117));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor(e,t){this._cachedMap=null,this._code=t,this._opts=e,this._rawMappings=[]}get(){if(!this._cachedMap){const e=this._cachedMap=new(r().default.SourceMapGenerator)({sourceRoot:this._opts.sourceRoot}),t=this._code;"string"==typeof t?e.setSourceContent(this._opts.sourceFileName,t):"object"==typeof t&&Object.keys(t).forEach(n=>{e.setSourceContent(n,t[n])}),this._rawMappings.forEach(e.addMapping,e)}return this._cachedMap.toJSON()}getRawMappings(){return this._rawMappings.slice()}mark(e,t,n,r,i,a,s){this._lastGenLine!==e&&null===n||(s||this._lastGenLine!==e||this._lastSourceLine!==n||this._lastSourceColumn!==r)&&(this._cachedMap=null,this._lastGenLine=e,this._lastSourceLine=n,this._lastSourceColumn=r,this._rawMappings.push({name:i||void 0,generated:{line:e,column:t},source:null==n?void 0:a||this._opts.sourceFileName,original:null==n?void 0:{line:n,column:r}}))}}},function(e,t){e.exports=require("source-map")},function(e,t,n){"use strict";function r(){const e=c(n(119));return r=function(){return e},e}function i(){const e=c(n(120));return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=c(n(121)),s=u(n(66));function o(){const e=u(n(2));return o=function(){return e},e}var l=u(n(173));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function c(e){return e&&e.__esModule?e:{default:e}}const p=/e/i,f=/\.0+$/,d=/^0[box]/;class h{constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._insideAux=!1,this._printedCommentStarts={},this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new WeakSet,this._endsWithInteger=!1,this._endsWithWord=!1,this.format=e||{},this._buf=new a.default(t)}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),this._append(";",!e)}rightBrace(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")}space(e=!1){this.format.compact||(this._buf.hasContent()&&!this.endsWith(" ")&&!this.endsWith("\n")||e)&&this._space()}word(e){(this._endsWithWord||this.endsWith("/")&&0===e.indexOf("/"))&&this._space(),this._maybeAddAuxComment(),this._append(e),this._endsWithWord=!0}number(e){this.word(e),this._endsWithInteger=(0,r().default)(+e)&&!d.test(e)&&!p.test(e)&&!f.test(e)&&"."!==e[e.length-1]}token(e){("--"===e&&this.endsWith("!")||"+"===e[0]&&this.endsWith("+")||"-"===e[0]&&this.endsWith("-")||"."===e[0]&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e)}newline(e){if(!this.format.retainLines&&!this.format.compact)if(this.format.concise)this.space();else if(!(this.endsWith("\n\n")||("number"!=typeof e&&(e=1),e=Math.min(2,e),(this.endsWith("{\n")||this.endsWith(":\n"))&&e--,e<=0)))for(let t=0;t<e;t++)this._newline()}endsWith(e){return this._buf.endsWith(e)}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){this._catchUp("start",e),this._buf.exactSource(e,t)}source(e,t){this._catchUp(e,t),this._buf.source(e,t)}withSource(e,t,n){this._catchUp(e,t),this._buf.withSource(e,t,n)}_space(){this._append(" ",!0)}_newline(){this._append("\n",!0)}_append(e,t=!1){this._maybeAddParen(e),this._maybeIndent(e),t?this._buf.queue(e):this._buf.append(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&this.endsWith("\n")&&"\n"!==e[0]&&this._buf.queue(this._getIndent())}_maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;let n;for(this._parenPushNewlineState=null,n=0;n<e.length&&" "===e[n];n++)continue;if(n===e.length)return;const r=e[n];if("\n"!==r){if("/"!==r)return;if(n+1===e.length)return;const t=e[n+1];if("/"!==t&&"*"!==t)return}this.token("("),this.indent(),t.printed=!0}_catchUp(e,t){if(!this.format.retainLines)return;const n=t?t[e]:null;if(n&&null!==n.line){const e=n.line-this._buf.getCurrentLine();for(let t=0;t<e;t++)this._newline()}}_getIndent(){return(0,i().default)(this.format.indent.style,this._indent)}startTerminatorless(e=!1){return e?(this._noLineTerminator=!0,null):this._parenPushNewlineState={printed:!1}}endTerminatorless(e){this._noLineTerminator=!1,e&&e.printed&&(this.dedent(),this.newline(),this.token(")"))}print(e,t){if(!e)return;const n=this.format.concise;if(e._compact&&(this.format.concise=!0),!this[e.type])throw new ReferenceError(`unknown node of type ${JSON.stringify(e.type)} with constructor ${JSON.stringify(e&&e.constructor.name)}`);this._printStack.push(e);const r=this._insideAux;this._insideAux=!e.loc,this._maybeAddAuxComment(this._insideAux&&!r);let i=s.needsParens(e,t,this._printStack);this.format.retainFunctionParens&&"FunctionExpression"===e.type&&e.extra&&e.extra.parenthesized&&(i=!0),i&&this.token("("),this._printLeadingComments(e,t);const a=o().isProgram(e)||o().isFile(e)?null:e.loc;this.withSource("start",a,()=>{this[e.type](e,t)}),this._printTrailingComments(e,t),i&&this.token(")"),this._printStack.pop(),this.format.concise=n,this._insideAux=r}_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})}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e})}getPossibleRaw(e){const t=e.extra;if(t&&null!=t.raw&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n={}){if(!e||!e.length)return;n.indent&&this.indent();const r={addNewlines:n.addNewlines};for(let i=0;i<e.length;i++){const a=e[i];a&&(n.statement&&this._printNewline(!0,a,t,r),this.print(a,t),n.iterator&&n.iterator(a,i),n.separator&&i<e.length-1&&n.separator.call(this),n.statement&&this._printNewline(!1,a,t,r))}n.indent&&this.dedent()}printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComments.length>0;n&&this.indent(),this.print(e,t),n&&this.dedent()}printBlock(e){const t=e.body;o().isEmptyStatement(t)||this.space(),this.print(t,e)}_printTrailingComments(e,t){this._printComments(this._getComments(!1,e,t))}_printLeadingComments(e,t){this._printComments(this._getComments(!0,e,t))}printInnerComments(e,t=!0){e.innerComments&&e.innerComments.length&&(t&&this.indent(),this._printComments(e.innerComments),t&&this.dedent())}printSequence(e,t,n={}){return n.statement=!0,this.printJoin(e,t,n)}printList(e,t,n={}){return null==n.separator&&(n.separator=m),this.printJoin(e,t,n)}_printNewline(e,t,n,r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();let i=0;if(this._buf.hasContent()){e||i++,r.addNewlines&&(i+=r.addNewlines(e,t)||0),(e?s.needsWhitespaceBefore:s.needsWhitespaceAfter)(t,n)&&i++}this.newline(i)}_getComments(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]}_printComment(e){if(!this.format.shouldPrintComment(e.value))return;if(e.ignore)return;if(this._printedComments.has(e))return;if(this._printedComments.add(e),null!=e.start){if(this._printedCommentStarts[e.start])return;this._printedCommentStarts[e.start]=!0}const t="CommentBlock"===e.type;this.newline(this._buf.hasContent()&&!this._noLineTerminator&&t?1:0),this.endsWith("[")||this.endsWith("{")||this.space();let n=t||this._noLineTerminator?`/*${e.value}*/`:`//${e.value}\n`;if(t&&this.format.indent.adjustMultilineComment){const t=e.loc&&e.loc.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");n=n.replace(e,"\n")}const r=Math.max(this._getIndent().length,this._buf.getCurrentColumn());n=n.replace(/\n(?!$)/g,`\n${(0,i().default)(" ",r)}`)}this.endsWith("/")&&this._space(),this.withSource("start",e.loc,()=>{this._append(n)}),this.newline(t&&!this._noLineTerminator?1:0)}_printComments(e){if(e&&e.length)for(const t of e)this._printComment(t)}}function m(){this.token(","),this.space()}t.default=h,Object.assign(h.prototype,l)},function(e,t){e.exports=require("lodash/isInteger")},function(e,t){e.exports=require("lodash/repeat")},function(e,t,n){"use strict";function r(){const e=function(e){return e&&e.__esModule?e:{default:e}}(n(122));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const i=/^[ \t]+$/;t.default=class{constructor(e){this._map=null,this._buf=[],this._last="",this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._disallowedPop=null,this._map=e}get(){this._flush();const e=this._map,t={code:(0,r().default)(this._buf.join("")),map:null,rawMappings:e&&e.getRawMappings()};return e&&Object.defineProperty(t,"map",{configurable:!0,enumerable:!0,get(){return this.map=e.get()},set(e){Object.defineProperty(this,"map",{value:e,writable:!0})}}),t}append(e){this._flush();const{line:t,column:n,filename:r,identifierName:i,force:a}=this._sourcePosition;this._append(e,t,n,i,r,a)}queue(e){if("\n"===e)for(;this._queue.length>0&&i.test(this._queue[0][0]);)this._queue.shift();const{line:t,column:n,filename:r,identifierName:a,force:s}=this._sourcePosition;this._queue.unshift([e,t,n,a,r,s])}_flush(){let e;for(;e=this._queue.pop();)this._append(...e)}_append(e,t,n,r,i,a){this._map&&"\n"!==e[0]&&this._map.mark(this._position.line,this._position.column,t,n,r,i,a),this._buf.push(e),this._last=e[e.length-1];for(let t=0;t<e.length;t++)"\n"===e[t]?(this._position.line++,this._position.column=0):this._position.column++}removeTrailingNewline(){this._queue.length>0&&"\n"===this._queue[0][0]&&this._queue.shift()}removeLastSemicolon(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()}endsWith(e){if(1===e.length){let t;if(this._queue.length>0){const e=this._queue[0][0];t=e[e.length-1]}else t=this._last;return t===e}const t=this._last+this._queue.reduce((e,t)=>t[0]+e,"");return e.length<=t.length&&t.slice(-e.length)===e}hasContent(){return this._queue.length>0||!!this._last}exactSource(e,t){this.source("start",e,!0),t(),this.source("end",e),this._disallowPop("start",e)}source(e,t,n){e&&!t||this._normalizePosition(e,t,this._sourcePosition,n)}withSource(e,t,n){if(!this._map)return n();const r=this._sourcePosition.line,i=this._sourcePosition.column,a=this._sourcePosition.filename,s=this._sourcePosition.identifierName;this.source(e,t),n(),this._sourcePosition.force&&this._sourcePosition.line===r&&this._sourcePosition.column===i&&this._sourcePosition.filename===a||this._disallowedPop&&this._disallowedPop.line===r&&this._disallowedPop.column===i&&this._disallowedPop.filename===a||(this._sourcePosition.line=r,this._sourcePosition.column=i,this._sourcePosition.filename=a,this._sourcePosition.identifierName=s,this._sourcePosition.force=!1,this._disallowedPop=null)}_disallowPop(e,t){e&&!t||(this._disallowedPop=this._normalizePosition(e,t))}_normalizePosition(e,t,n,r){const i=t?t[e]:null;void 0===n&&(n={identifierName:null,line:null,column:null,filename:null,force:!1});const a=n.line,s=n.column,o=n.filename;return n.identifierName="start"===e&&t&&t.identifierName||null,n.line=i?i.line:null,n.column=i?i.column:null,n.filename=t&&t.filename||null,(r||n.line!==a||n.column!==s||n.filename!==o)&&(n.force=r),n}getCurrentColumn(){const e=this._queue.reduce((e,t)=>t[0]+e,""),t=e.lastIndexOf("\n");return-1===t?this._position.column+e.length:e.length-1-t}getCurrentLine(){const e=this._queue.reduce((e,t)=>t[0]+e,"");let t=0;for(let n=0;n<e.length;n++)"\n"===e[n]&&t++;return this._position.line+t}}},function(e,t){e.exports=require("trim-right")},function(e,t,n){"use strict";function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));return r=function(){return e},e}function i(e,t={}){return r().isMemberExpression(e)?(i(e.object,t),e.computed&&i(e.property,t)):r().isBinary(e)||r().isAssignmentExpression(e)?(i(e.left,t),i(e.right,t)):r().isCallExpression(e)?(t.hasCall=!0,i(e.callee,t)):r().isFunction(e)?t.hasFunction=!0:r().isIdentifier(e)&&(t.hasHelper=t.hasHelper||a(e.callee)),t}function a(e){return r().isMemberExpression(e)?a(e.object)||a(e.property):r().isIdentifier(e)?"require"===e.name||"_"===e.name[0]:r().isCallExpression(e)?a(e.callee):!(!r().isBinary(e)&&!r().isAssignmentExpression(e))&&(r().isIdentifier(e.left)&&a(e.left)||a(e.right))}function s(e){return r().isLiteral(e)||r().isObjectExpression(e)||r().isArrayExpression(e)||r().isIdentifier(e)||r().isMemberExpression(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.list=t.nodes=void 0;const o={AssignmentExpression(e){const t=i(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}},SwitchCase:(e,t)=>({before:e.consequent.length||t.cases[0]===e,after:!e.consequent.length&&t.cases[t.cases.length-1]===e}),LogicalExpression(e){if(r().isFunction(e.left)||r().isFunction(e.right))return{after:!0}},Literal(e){if("use strict"===e.value)return{after:!0}},CallExpression(e){if(r().isFunction(e.callee)||a(e))return{before:!0,after:!0}},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=e.declarations[t];let r=a(n.id)&&!s(n.init);if(!r){const e=i(n.init);r=a(n.init)&&e.hasCall||e.hasFunction}if(r)return{before:!0,after:!0}}},IfStatement(e){if(r().isBlockStatement(e.consequent))return{before:!0,after:!0}}};t.nodes=o,o.ObjectProperty=o.ObjectTypeProperty=o.ObjectMethod=function(e,t){if(t.properties[0]===e)return{before:!0}},o.ObjectTypeCallProperty=function(e,t){if(!(t.callProperties[0]!==e||t.properties&&t.properties.length))return{before:!0}},o.ObjectTypeIndexer=function(e,t){if(!(t.indexers[0]!==e||t.properties&&t.properties.length||t.callProperties&&t.callProperties.length))return{before:!0}},o.ObjectTypeInternalSlot=function(e,t){if(!(t.internalSlots[0]!==e||t.properties&&t.properties.length||t.callProperties&&t.callProperties.length||t.indexers&&t.indexers.length))return{before:!0}};const l={VariableDeclaration:e=>e.declarations.map(e=>e.init),ArrayExpression:e=>e.elements,ObjectExpression:e=>e.properties};t.list=l,[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){"boolean"==typeof t&&(t={after:t,before:t}),[e].concat(r().FLIPPED_ALIAS_KEYS[e]||[]).forEach(function(e){o[e]=function(){return t}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,function(e){return e&&e.__esModule?e:{default:e}}(n(67)).default)("React.Component");t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let n=0;n<e.children.length;n++){let a=e.children[n];(0,r.isJSXText)(a)?(0,i.default)(a,t):((0,r.isJSXExpressionContainer)(a)&&(a=a.expression),(0,r.isJSXEmptyExpression)(a)||t.push(a))}return t};var r=n(13),i=function(e){return e&&e.__esModule?e:{default:e}}(n(127))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.value.split(/\r\n|\n|\r/);let i=0;for(let e=0;e<n.length;e++)n[e].match(/[^ \t]/)&&(i=e);let a="";for(let e=0;e<n.length;e++){const t=n[e],r=0===e,s=e===n.length-1,o=e===i;let l=t.replace(/\t/g," ");r||(l=l.replace(/^[ ]+/,"")),s||(l=l.replace(/[ ]+$/,"")),l&&(o||(l+=" "),a+=l)}a&&t.push((0,r.stringLiteral)(a))};var r=n(14)},function(e,t,n){"use strict";function r(){const e=s(n(129));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,...t){const n=i.BUILDER_KEYS[e],s=t.length;if(s>n.length)throw new Error(`${e}: Too many arguments passed. Received ${s} but can receive no more than ${n.length}`);const o={type:e};let l=0;n.forEach(n=>{const a=i.NODE_FIELDS[e][n];let u;l<s&&(u=t[l]),void 0===u&&(u=(0,r().default)(a.default)),o[n]=u,l++});for(const e in o)(0,a.default)(o,e,o[e]);return o};var i=n(16),a=s(n(69));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=require("lodash/clone")},function(e,t){e.exports=require("to-fast-properties")},function(e,t){e.exports=require("esutils")},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(20));const i=(e,t="TypeParameterDeclaration")=>{(0,r.default)(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)(t),extends:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),mixins:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),implements:(0,r.validateOptional)((0,r.arrayOfType)("ClassImplements")),body:(0,r.validateType)("ObjectTypeAnnotation")}})};(0,r.default)("AnyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow","FlowType"],fields:{elementType:(0,r.validateType)("FlowType")}}),(0,r.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("boolean"))}}),(0,r.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),i("DeclareClass","TypeParameterInstantiation"),(0,r.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),predicate:(0,r.validateOptionalType)("DeclaredPredicate")}}),i("DeclareInterface"),(0,r.default)("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)(["Identifier","StringLiteral"]),body:(0,r.validateType)("BlockStatement"),kind:(0,r.validateOptional)((0,r.assertOneOf)("CommonJS","ES"))}}),(0,r.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,r.validateType)("TypeAnnotation")}}),(0,r.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),right:(0,r.validateType)("FlowType")}}),(0,r.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,r.validateOptionalType)("FlowType")}}),(0,r.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier")}}),(0,r.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,r.validateOptionalType)("Flow"),specifiers:(0,r.validateOptional)((0,r.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,r.validateOptionalType)("StringLiteral"),default:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),(0,r.default)("DeclareExportAllDeclaration",{visitor:["source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{source:(0,r.validateType)("StringLiteral"),exportKind:(0,r.validateOptional)((0,r.assertOneOf)(["type","value"]))}}),(0,r.default)("DeclaredPredicate",{visitor:["value"],aliases:["Flow","FlowPredicate"],fields:{value:(0,r.validateType)("Flow")}}),(0,r.default)("ExistsTypeAnnotation",{aliases:["Flow","FlowType"]}),(0,r.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow","FlowType"],fields:{typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),params:(0,r.validate)((0,r.arrayOfType)("FunctionTypeParam")),rest:(0,r.validateOptionalType)("FunctionTypeParam"),returnType:(0,r.validateType)("FlowType")}}),(0,r.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{name:(0,r.validateOptionalType)("Identifier"),typeAnnotation:(0,r.validateType)("FlowType"),optional:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),(0,r.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow","FlowType"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),(0,r.default)("InferredPredicate",{aliases:["Flow","FlowPredicate"]}),(0,r.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),i("InterfaceDeclaration"),(0,r.default)("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["Flow","FlowType"],fields:{extends:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),body:(0,r.validateType)("ObjectTypeAnnotation")}}),(0,r.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),(0,r.default)("MixedTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow","FlowType"],fields:{typeAnnotation:(0,r.validateType)("FlowType")}}),(0,r.default)("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("number"))}}),(0,r.default)("NumberTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["Flow","FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,r.validate)((0,r.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,r.assertValueType)("boolean"),default:!1}}}),(0,r.default)("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,r.validateType)("Identifier"),value:(0,r.validateType)("FlowType"),optional:(0,r.validate)((0,r.assertValueType)("boolean")),static:(0,r.validate)((0,r.assertValueType)("boolean")),method:(0,r.validate)((0,r.assertValueType)("boolean"))}}),(0,r.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{value:(0,r.validateType)("FlowType"),static:(0,r.validate)((0,r.assertValueType)("boolean"))}}),(0,r.default)("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,r.validateOptionalType)("Identifier"),key:(0,r.validateType)("FlowType"),value:(0,r.validateType)("FlowType"),static:(0,r.validate)((0,r.assertValueType)("boolean")),variance:(0,r.validateOptionalType)("Variance")}}),(0,r.default)("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{key:(0,r.validateType)(["Identifier","StringLiteral"]),value:(0,r.validateType)("FlowType"),kind:(0,r.validate)((0,r.assertOneOf)("init","get","set")),static:(0,r.validate)((0,r.assertValueType)("boolean")),proto:(0,r.validate)((0,r.assertValueType)("boolean")),optional:(0,r.validate)((0,r.assertValueType)("boolean")),variance:(0,r.validateOptionalType)("Variance")}}),(0,r.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{argument:(0,r.validateType)("FlowType")}}),(0,r.default)("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,r.validateOptionalType)("FlowType"),impltype:(0,r.validateType)("FlowType")}}),(0,r.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{id:(0,r.validateType)("Identifier"),qualification:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),(0,r.default)("StringLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("string"))}}),(0,r.default)("StringTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("ThisTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),(0,r.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow","FlowType"],fields:{argument:(0,r.validateType)("FlowType")}}),(0,r.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),right:(0,r.validateType)("FlowType")}}),(0,r.default)("TypeAnnotation",{aliases:["Flow"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("FlowType")}}),(0,r.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TypeAnnotation")}}),(0,r.default)("TypeParameter",{aliases:["Flow"],visitor:["bound","default","variance"],fields:{name:(0,r.validate)((0,r.assertValueType)("string")),bound:(0,r.validateOptionalType)("TypeAnnotation"),default:(0,r.validateOptionalType)("FlowType"),variance:(0,r.validateOptionalType)("Variance")}}),(0,r.default)("TypeParameterDeclaration",{aliases:["Flow"],visitor:["params"],fields:{params:(0,r.validate)((0,r.arrayOfType)("TypeParameter"))}}),(0,r.default)("TypeParameterInstantiation",{aliases:["Flow"],visitor:["params"],fields:{params:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),(0,r.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),(0,r.default)("Variance",{aliases:["Flow"],builder:["kind"],fields:{kind:(0,r.validate)((0,r.assertOneOf)("minus","plus"))}}),(0,r.default)("VoidTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]})},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(20));(0,r.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,r.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),(0,r.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression")}}}),(0,r.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,r.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,r.assertNodeType)("JSXClosingElement")},children:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),(0,r.default)("JSXEmptyExpression",{aliases:["JSX"]}),(0,r.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("JSXIdentifier",{builder:["name"],aliases:["JSX"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),(0,r.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),(0,r.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),(0,r.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression")},selfClosing:{default:!1,validate:(0,r.assertValueType)("boolean")},attributes:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,r.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,r.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),(0,r.default)("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["JSX","Immutable","Expression"],fields:{openingFragment:{validate:(0,r.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,r.assertNodeType)("JSXClosingFragment")},children:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),(0,r.default)("JSXOpeningFragment",{aliases:["JSX","Immutable"]}),(0,r.default)("JSXClosingFragment",{aliases:["JSX","Immutable"]})},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(20));(0,r.default)("Noop",{visitor:[]}),(0,r.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}})},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(20)),i=n(49);(0,r.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{}}),(0,r.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed"],aliases:["Property"],fields:Object.assign({},i.classMethodOrPropertyCommon,{value:{validate:(0,r.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,r.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,r.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,r.assertValueType)("boolean"),optional:!0}})}),(0,r.default)("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,r.assertNodeType)("Expression")},property:{validate:function(){const e=(0,r.assertNodeType)("Identifier"),t=(0,r.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}()},computed:{default:!1},optional:{validate:(0,r.assertValueType)("boolean")}}}),(0,r.default)("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,r.assertNodeType)("Expression")},arguments:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("Expression","SpreadElement","JSXNamespacedName")))},optional:{validate:(0,r.assertValueType)("boolean")},typeArguments:{validate:(0,r.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}}),(0,r.default)("ClassPrivateProperty",{visitor:["key","value"],builder:["key","value"],aliases:["Property","Private"],fields:{key:{validate:(0,r.assertNodeType)("PrivateName")},value:{validate:(0,r.assertNodeType)("Expression"),optional:!0}}}),(0,r.default)("Import",{aliases:["Expression"]}),(0,r.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("DoExpression",{visitor:["body"],aliases:["Expression"],fields:{body:{validate:(0,r.assertNodeType)("BlockStatement")}}}),(0,r.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]})},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(20)),i=n(46),a=n(49);const s=(0,r.assertValueType)("boolean"),o={returnType:{validate:(0,r.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};(0,r.default)("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,r.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,r.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,r.assertNodeType)("Identifier","AssignmentPattern")}}}),(0,r.default)("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},i.functionDeclarationCommon,o)}),(0,r.default)("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},a.classMethodOrDeclareMethodCommon,o)}),(0,r.default)("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,r.validateType)("TSEntityName"),right:(0,r.validateType)("Identifier")}});const l={typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,r.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")},u={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:l};(0,r.default)("TSCallSignatureDeclaration",u),(0,r.default)("TSConstructSignatureDeclaration",u);const c={key:(0,r.validateType)("Expression"),computed:(0,r.validate)(s),optional:(0,r.validateOptional)(s)};(0,r.default)("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},c,{readonly:(0,r.validateOptional)(s),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),initializer:(0,r.validateOptionalType)("Expression")})}),(0,r.default)("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},l,c)}),(0,r.default)("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,r.validateOptional)(s),parameters:(0,r.validateArrayOfType)("Identifier"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}});const p=["TSAnyKeyword","TSNumberKeyword","TSObjectKeyword","TSBooleanKeyword","TSStringKeyword","TSSymbolKeyword","TSVoidKeyword","TSUndefinedKeyword","TSNullKeyword","TSNeverKeyword"];for(const e of p)(0,r.default)(e,{aliases:["TSType"],visitor:[],fields:{}});(0,r.default)("TSThisType",{aliases:["TSType"],visitor:[],fields:{}});const f={aliases:["TSType"],visitor:["typeParameters","typeAnnotation"],fields:l};(0,r.default)("TSFunctionType",f),(0,r.default)("TSConstructorType",f),(0,r.default)("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,r.default)("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],fields:{parameterName:(0,r.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,r.validateType)("TSTypeAnnotation")}}),(0,r.default)("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,r.validateType)("TSEntityName")}}),(0,r.default)("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSTypeElement")}}),(0,r.default)("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,r.validateType)("TSType")}}),(0,r.default)("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,r.validateArrayOfType)("TSType")}});const d={aliases:["TSType"],visitor:["types"],fields:{types:(0,r.validateArrayOfType)("TSType")}};(0,r.default)("TSUnionType",d),(0,r.default)("TSIntersectionType",d),(0,r.default)("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,r.validateType)("TSType"),extendsType:(0,r.validateType)("TSType"),trueType:(0,r.validateType)("TSType"),falseType:(0,r.validateType)("TSType")}}),(0,r.default)("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,r.validateType)("TSTypeParameter")}}),(0,r.default)("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,r.validate)((0,r.assertValueType)("string")),typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,r.validateType)("TSType"),indexType:(0,r.validateType)("TSType")}}),(0,r.default)("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation"],fields:{readonly:(0,r.validateOptional)(s),typeParameter:(0,r.validateType)("TSTypeParameter"),optional:(0,r.validateOptional)(s),typeAnnotation:(0,r.validateOptionalType)("TSType")}}),(0,r.default)("TSLiteralType",{aliases:["TSType"],visitor:["literal"],fields:{literal:(0,r.validateType)(["NumericLiteral","StringLiteral","BooleanLiteral"])}}),(0,r.default)("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,r.default)("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,r.validateOptional)(s),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,r.validateOptional)((0,r.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,r.validateType)("TSInterfaceBody")}}),(0,r.default)("TSInterfaceBody",{visitor:["body"],fields:{body:(0,r.validateArrayOfType)("TSTypeElement")}}),(0,r.default)("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,r.validateOptional)(s),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,r.validateType)("TSType"),expression:(0,r.validateType)("Expression")}}),(0,r.default)("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,r.validateOptional)(s),const:(0,r.validateOptional)(s),id:(0,r.validateType)("Identifier"),members:(0,r.validateArrayOfType)("TSEnumMember"),initializer:(0,r.validateOptionalType)("Expression")}}),(0,r.default)("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,r.validateType)(["Identifier","StringLiteral"]),initializer:(0,r.validateOptionalType)("Expression")}}),(0,r.default)("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,r.validateOptional)(s),global:(0,r.validateOptional)(s),id:(0,r.validateType)(["Identifier","StringLiteral"]),body:(0,r.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),(0,r.default)("TSModuleBlock",{visitor:["body"],fields:{body:(0,r.validateArrayOfType)("Statement")}}),(0,r.default)("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,r.validate)(s),id:(0,r.validateType)("Identifier"),moduleReference:(0,r.validateType)(["TSEntityName","TSExternalModuleReference"])}}),(0,r.default)("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,r.validateType)("StringLiteral")}}),(0,r.default)("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),(0,r.default)("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),(0,r.default)("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),(0,r.default)("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,r.assertNodeType)("TSType")}}}),(0,r.default)("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSType")))}}}),(0,r.default)("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSTypeParameter")))}}}),(0,r.default)("TSTypeParameter",{visitor:["constraint","default"],fields:{name:{validate:(0,r.assertValueType)("string")},constraint:{validate:(0,r.assertNodeType)("TSType"),optional:!0},default:{validate:(0,r.assertNodeType)("TSType"),optional:!0}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,r.default)(e)){const t=e&&e.type||JSON.stringify(e);throw new TypeError(`Not a valid node of type "${t}"`)}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(70))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayExpression=function(e,t={}){i("ArrayExpression",e,t)},t.assertAssignmentExpression=function(e,t={}){i("AssignmentExpression",e,t)},t.assertBinaryExpression=function(e,t={}){i("BinaryExpression",e,t)},t.assertInterpreterDirective=function(e,t={}){i("InterpreterDirective",e,t)},t.assertDirective=function(e,t={}){i("Directive",e,t)},t.assertDirectiveLiteral=function(e,t={}){i("DirectiveLiteral",e,t)},t.assertBlockStatement=function(e,t={}){i("BlockStatement",e,t)},t.assertBreakStatement=function(e,t={}){i("BreakStatement",e,t)},t.assertCallExpression=function(e,t={}){i("CallExpression",e,t)},t.assertCatchClause=function(e,t={}){i("CatchClause",e,t)},t.assertConditionalExpression=function(e,t={}){i("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t={}){i("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t={}){i("DebuggerStatement",e,t)},t.assertDoWhileStatement=function(e,t={}){i("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t={}){i("EmptyStatement",e,t)},t.assertExpressionStatement=function(e,t={}){i("ExpressionStatement",e,t)},t.assertFile=function(e,t={}){i("File",e,t)},t.assertForInStatement=function(e,t={}){i("ForInStatement",e,t)},t.assertForStatement=function(e,t={}){i("ForStatement",e,t)},t.assertFunctionDeclaration=function(e,t={}){i("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t={}){i("FunctionExpression",e,t)},t.assertIdentifier=function(e,t={}){i("Identifier",e,t)},t.assertIfStatement=function(e,t={}){i("IfStatement",e,t)},t.assertLabeledStatement=function(e,t={}){i("LabeledStatement",e,t)},t.assertStringLiteral=function(e,t={}){i("StringLiteral",e,t)},t.assertNumericLiteral=function(e,t={}){i("NumericLiteral",e,t)},t.assertNullLiteral=function(e,t={}){i("NullLiteral",e,t)},t.assertBooleanLiteral=function(e,t={}){i("BooleanLiteral",e,t)},t.assertRegExpLiteral=function(e,t={}){i("RegExpLiteral",e,t)},t.assertLogicalExpression=function(e,t={}){i("LogicalExpression",e,t)},t.assertMemberExpression=function(e,t={}){i("MemberExpression",e,t)},t.assertNewExpression=function(e,t={}){i("NewExpression",e,t)},t.assertProgram=function(e,t={}){i("Program",e,t)},t.assertObjectExpression=function(e,t={}){i("ObjectExpression",e,t)},t.assertObjectMethod=function(e,t={}){i("ObjectMethod",e,t)},t.assertObjectProperty=function(e,t={}){i("ObjectProperty",e,t)},t.assertRestElement=function(e,t={}){i("RestElement",e,t)},t.assertReturnStatement=function(e,t={}){i("ReturnStatement",e,t)},t.assertSequenceExpression=function(e,t={}){i("SequenceExpression",e,t)},t.assertSwitchCase=function(e,t={}){i("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t={}){i("SwitchStatement",e,t)},t.assertThisExpression=function(e,t={}){i("ThisExpression",e,t)},t.assertThrowStatement=function(e,t={}){i("ThrowStatement",e,t)},t.assertTryStatement=function(e,t={}){i("TryStatement",e,t)},t.assertUnaryExpression=function(e,t={}){i("UnaryExpression",e,t)},t.assertUpdateExpression=function(e,t={}){i("UpdateExpression",e,t)},t.assertVariableDeclaration=function(e,t={}){i("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t={}){i("VariableDeclarator",e,t)},t.assertWhileStatement=function(e,t={}){i("WhileStatement",e,t)},t.assertWithStatement=function(e,t={}){i("WithStatement",e,t)},t.assertAssignmentPattern=function(e,t={}){i("AssignmentPattern",e,t)},t.assertArrayPattern=function(e,t={}){i("ArrayPattern",e,t)},t.assertArrowFunctionExpression=function(e,t={}){i("ArrowFunctionExpression",e,t)},t.assertClassBody=function(e,t={}){i("ClassBody",e,t)},t.assertClassDeclaration=function(e,t={}){i("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t={}){i("ClassExpression",e,t)},t.assertExportAllDeclaration=function(e,t={}){i("ExportAllDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t={}){i("ExportDefaultDeclaration",e,t)},t.assertExportNamedDeclaration=function(e,t={}){i("ExportNamedDeclaration",e,t)},t.assertExportSpecifier=function(e,t={}){i("ExportSpecifier",e,t)},t.assertForOfStatement=function(e,t={}){i("ForOfStatement",e,t)},t.assertImportDeclaration=function(e,t={}){i("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t={}){i("ImportDefaultSpecifier",e,t)},t.assertImportNamespaceSpecifier=function(e,t={}){i("ImportNamespaceSpecifier",e,t)},t.assertImportSpecifier=function(e,t={}){i("ImportSpecifier",e,t)},t.assertMetaProperty=function(e,t={}){i("MetaProperty",e,t)},t.assertClassMethod=function(e,t={}){i("ClassMethod",e,t)},t.assertObjectPattern=function(e,t={}){i("ObjectPattern",e,t)},t.assertSpreadElement=function(e,t={}){i("SpreadElement",e,t)},t.assertSuper=function(e,t={}){i("Super",e,t)},t.assertTaggedTemplateExpression=function(e,t={}){i("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t={}){i("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t={}){i("TemplateLiteral",e,t)},t.assertYieldExpression=function(e,t={}){i("YieldExpression",e,t)},t.assertAnyTypeAnnotation=function(e,t={}){i("AnyTypeAnnotation",e,t)},t.assertArrayTypeAnnotation=function(e,t={}){i("ArrayTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t={}){i("BooleanTypeAnnotation",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t={}){i("BooleanLiteralTypeAnnotation",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t={}){i("NullLiteralTypeAnnotation",e,t)},t.assertClassImplements=function(e,t={}){i("ClassImplements",e,t)},t.assertDeclareClass=function(e,t={}){i("DeclareClass",e,t)},t.assertDeclareFunction=function(e,t={}){i("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t={}){i("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t={}){i("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t={}){i("DeclareModuleExports",e,t)},t.assertDeclareTypeAlias=function(e,t={}){i("DeclareTypeAlias",e,t)},t.assertDeclareOpaqueType=function(e,t={}){i("DeclareOpaqueType",e,t)},t.assertDeclareVariable=function(e,t={}){i("DeclareVariable",e,t)},t.assertDeclareExportDeclaration=function(e,t={}){i("DeclareExportDeclaration",e,t)},t.assertDeclareExportAllDeclaration=function(e,t={}){i("DeclareExportAllDeclaration",e,t)},t.assertDeclaredPredicate=function(e,t={}){i("DeclaredPredicate",e,t)},t.assertExistsTypeAnnotation=function(e,t={}){i("ExistsTypeAnnotation",e,t)},t.assertFunctionTypeAnnotation=function(e,t={}){i("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t={}){i("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t={}){i("GenericTypeAnnotation",e,t)},t.assertInferredPredicate=function(e,t={}){i("InferredPredicate",e,t)},t.assertInterfaceExtends=function(e,t={}){i("InterfaceExtends",e,t)},t.assertInterfaceDeclaration=function(e,t={}){i("InterfaceDeclaration",e,t)},t.assertInterfaceTypeAnnotation=function(e,t={}){i("InterfaceTypeAnnotation",e,t)},t.assertIntersectionTypeAnnotation=function(e,t={}){i("IntersectionTypeAnnotation",e,t)},t.assertMixedTypeAnnotation=function(e,t={}){i("MixedTypeAnnotation",e,t)},t.assertEmptyTypeAnnotation=function(e,t={}){i("EmptyTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t={}){i("NullableTypeAnnotation",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t={}){i("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t={}){i("NumberTypeAnnotation",e,t)},t.assertObjectTypeAnnotation=function(e,t={}){i("ObjectTypeAnnotation",e,t)},t.assertObjectTypeInternalSlot=function(e,t={}){i("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeCallProperty=function(e,t={}){i("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t={}){i("ObjectTypeIndexer",e,t)},t.assertObjectTypeProperty=function(e,t={}){i("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t={}){i("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t={}){i("OpaqueType",e,t)},t.assertQualifiedTypeIdentifier=function(e,t={}){i("QualifiedTypeIdentifier",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t={}){i("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t={}){i("StringTypeAnnotation",e,t)},t.assertThisTypeAnnotation=function(e,t={}){i("ThisTypeAnnotation",e,t)},t.assertTupleTypeAnnotation=function(e,t={}){i("TupleTypeAnnotation",e,t)},t.assertTypeofTypeAnnotation=function(e,t={}){i("TypeofTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t={}){i("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t={}){i("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t={}){i("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t={}){i("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t={}){i("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t={}){i("TypeParameterInstantiation",e,t)},t.assertUnionTypeAnnotation=function(e,t={}){i("UnionTypeAnnotation",e,t)},t.assertVariance=function(e,t={}){i("Variance",e,t)},t.assertVoidTypeAnnotation=function(e,t={}){i("VoidTypeAnnotation",e,t)},t.assertJSXAttribute=function(e,t={}){i("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t={}){i("JSXClosingElement",e,t)},t.assertJSXElement=function(e,t={}){i("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t={}){i("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t={}){i("JSXExpressionContainer",e,t)},t.assertJSXSpreadChild=function(e,t={}){i("JSXSpreadChild",e,t)},t.assertJSXIdentifier=function(e,t={}){i("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t={}){i("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t={}){i("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t={}){i("JSXOpeningElement",e,t)},t.assertJSXSpreadAttribute=function(e,t={}){i("JSXSpreadAttribute",e,t)},t.assertJSXText=function(e,t={}){i("JSXText",e,t)},t.assertJSXFragment=function(e,t={}){i("JSXFragment",e,t)},t.assertJSXOpeningFragment=function(e,t={}){i("JSXOpeningFragment",e,t)},t.assertJSXClosingFragment=function(e,t={}){i("JSXClosingFragment",e,t)},t.assertNoop=function(e,t={}){i("Noop",e,t)},t.assertParenthesizedExpression=function(e,t={}){i("ParenthesizedExpression",e,t)},t.assertAwaitExpression=function(e,t={}){i("AwaitExpression",e,t)},t.assertBindExpression=function(e,t={}){i("BindExpression",e,t)},t.assertClassProperty=function(e,t={}){i("ClassProperty",e,t)},t.assertOptionalMemberExpression=function(e,t={}){i("OptionalMemberExpression",e,t)},t.assertOptionalCallExpression=function(e,t={}){i("OptionalCallExpression",e,t)},t.assertClassPrivateProperty=function(e,t={}){i("ClassPrivateProperty",e,t)},t.assertImport=function(e,t={}){i("Import",e,t)},t.assertDecorator=function(e,t={}){i("Decorator",e,t)},t.assertDoExpression=function(e,t={}){i("DoExpression",e,t)},t.assertExportDefaultSpecifier=function(e,t={}){i("ExportDefaultSpecifier",e,t)},t.assertExportNamespaceSpecifier=function(e,t={}){i("ExportNamespaceSpecifier",e,t)},t.assertPrivateName=function(e,t={}){i("PrivateName",e,t)},t.assertBigIntLiteral=function(e,t={}){i("BigIntLiteral",e,t)},t.assertTSParameterProperty=function(e,t={}){i("TSParameterProperty",e,t)},t.assertTSDeclareFunction=function(e,t={}){i("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t={}){i("TSDeclareMethod",e,t)},t.assertTSQualifiedName=function(e,t={}){i("TSQualifiedName",e,t)},t.assertTSCallSignatureDeclaration=function(e,t={}){i("TSCallSignatureDeclaration",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t={}){i("TSConstructSignatureDeclaration",e,t)},t.assertTSPropertySignature=function(e,t={}){i("TSPropertySignature",e,t)},t.assertTSMethodSignature=function(e,t={}){i("TSMethodSignature",e,t)},t.assertTSIndexSignature=function(e,t={}){i("TSIndexSignature",e,t)},t.assertTSAnyKeyword=function(e,t={}){i("TSAnyKeyword",e,t)},t.assertTSNumberKeyword=function(e,t={}){i("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t={}){i("TSObjectKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t={}){i("TSBooleanKeyword",e,t)},t.assertTSStringKeyword=function(e,t={}){i("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t={}){i("TSSymbolKeyword",e,t)},t.assertTSVoidKeyword=function(e,t={}){i("TSVoidKeyword",e,t)},t.assertTSUndefinedKeyword=function(e,t={}){i("TSUndefinedKeyword",e,t)},t.assertTSNullKeyword=function(e,t={}){i("TSNullKeyword",e,t)},t.assertTSNeverKeyword=function(e,t={}){i("TSNeverKeyword",e,t)},t.assertTSThisType=function(e,t={}){i("TSThisType",e,t)},t.assertTSFunctionType=function(e,t={}){i("TSFunctionType",e,t)},t.assertTSConstructorType=function(e,t={}){i("TSConstructorType",e,t)},t.assertTSTypeReference=function(e,t={}){i("TSTypeReference",e,t)},t.assertTSTypePredicate=function(e,t={}){i("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t={}){i("TSTypeQuery",e,t)},t.assertTSTypeLiteral=function(e,t={}){i("TSTypeLiteral",e,t)},t.assertTSArrayType=function(e,t={}){i("TSArrayType",e,t)},t.assertTSTupleType=function(e,t={}){i("TSTupleType",e,t)},t.assertTSUnionType=function(e,t={}){i("TSUnionType",e,t)},t.assertTSIntersectionType=function(e,t={}){i("TSIntersectionType",e,t)},t.assertTSConditionalType=function(e,t={}){i("TSConditionalType",e,t)},t.assertTSInferType=function(e,t={}){i("TSInferType",e,t)},t.assertTSParenthesizedType=function(e,t={}){i("TSParenthesizedType",e,t)},t.assertTSTypeOperator=function(e,t={}){i("TSTypeOperator",e,t)},t.assertTSIndexedAccessType=function(e,t={}){i("TSIndexedAccessType",e,t)},t.assertTSMappedType=function(e,t={}){i("TSMappedType",e,t)},t.assertTSLiteralType=function(e,t={}){i("TSLiteralType",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t={}){i("TSExpressionWithTypeArguments",e,t)},t.assertTSInterfaceDeclaration=function(e,t={}){i("TSInterfaceDeclaration",e,t)},t.assertTSInterfaceBody=function(e,t={}){i("TSInterfaceBody",e,t)},t.assertTSTypeAliasDeclaration=function(e,t={}){i("TSTypeAliasDeclaration",e,t)},t.assertTSAsExpression=function(e,t={}){i("TSAsExpression",e,t)},t.assertTSTypeAssertion=function(e,t={}){i("TSTypeAssertion",e,t)},t.assertTSEnumDeclaration=function(e,t={}){i("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t={}){i("TSEnumMember",e,t)},t.assertTSModuleDeclaration=function(e,t={}){i("TSModuleDeclaration",e,t)},t.assertTSModuleBlock=function(e,t={}){i("TSModuleBlock",e,t)},t.assertTSImportEqualsDeclaration=function(e,t={}){i("TSImportEqualsDeclaration",e,t)},t.assertTSExternalModuleReference=function(e,t={}){i("TSExternalModuleReference",e,t)},t.assertTSNonNullExpression=function(e,t={}){i("TSNonNullExpression",e,t)},t.assertTSExportAssignment=function(e,t={}){i("TSExportAssignment",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t={}){i("TSNamespaceExportDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t={}){i("TSTypeAnnotation",e,t)},t.assertTSTypeParameterInstantiation=function(e,t={}){i("TSTypeParameterInstantiation",e,t)},t.assertTSTypeParameterDeclaration=function(e,t={}){i("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameter=function(e,t={}){i("TSTypeParameter",e,t)},t.assertExpression=function(e,t={}){i("Expression",e,t)},t.assertBinary=function(e,t={}){i("Binary",e,t)},t.assertScopable=function(e,t={}){i("Scopable",e,t)},t.assertBlockParent=function(e,t={}){i("BlockParent",e,t)},t.assertBlock=function(e,t={}){i("Block",e,t)},t.assertStatement=function(e,t={}){i("Statement",e,t)},t.assertTerminatorless=function(e,t={}){i("Terminatorless",e,t)},t.assertCompletionStatement=function(e,t={}){i("CompletionStatement",e,t)},t.assertConditional=function(e,t={}){i("Conditional",e,t)},t.assertLoop=function(e,t={}){i("Loop",e,t)},t.assertWhile=function(e,t={}){i("While",e,t)},t.assertExpressionWrapper=function(e,t={}){i("ExpressionWrapper",e,t)},t.assertFor=function(e,t={}){i("For",e,t)},t.assertForXStatement=function(e,t={}){i("ForXStatement",e,t)},t.assertFunction=function(e,t={}){i("Function",e,t)},t.assertFunctionParent=function(e,t={}){i("FunctionParent",e,t)},t.assertPureish=function(e,t={}){i("Pureish",e,t)},t.assertDeclaration=function(e,t={}){i("Declaration",e,t)},t.assertPatternLike=function(e,t={}){i("PatternLike",e,t)},t.assertLVal=function(e,t={}){i("LVal",e,t)},t.assertTSEntityName=function(e,t={}){i("TSEntityName",e,t)},t.assertLiteral=function(e,t={}){i("Literal",e,t)},t.assertImmutable=function(e,t={}){i("Immutable",e,t)},t.assertUserWhitespacable=function(e,t={}){i("UserWhitespacable",e,t)},t.assertMethod=function(e,t={}){i("Method",e,t)},t.assertObjectMember=function(e,t={}){i("ObjectMember",e,t)},t.assertProperty=function(e,t={}){i("Property",e,t)},t.assertUnaryLike=function(e,t={}){i("UnaryLike",e,t)},t.assertPattern=function(e,t={}){i("Pattern",e,t)},t.assertClass=function(e,t={}){i("Class",e,t)},t.assertModuleDeclaration=function(e,t={}){i("ModuleDeclaration",e,t)},t.assertExportDeclaration=function(e,t={}){i("ExportDeclaration",e,t)},t.assertModuleSpecifier=function(e,t={}){i("ModuleSpecifier",e,t)},t.assertFlow=function(e,t={}){i("Flow",e,t)},t.assertFlowType=function(e,t={}){i("FlowType",e,t)},t.assertFlowBaseAnnotation=function(e,t={}){i("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t={}){i("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t={}){i("FlowPredicate",e,t)},t.assertJSX=function(e,t={}){i("JSX",e,t)},t.assertPrivate=function(e,t={}){i("Private",e,t)},t.assertTSTypeElement=function(e,t={}){i("TSTypeElement",e,t)},t.assertTSType=function(e,t={}){i("TSType",e,t)},t.assertNumberLiteral=function(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),i("NumberLiteral",e,t)},t.assertRegexLiteral=function(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),i("RegexLiteral",e,t)},t.assertRestProperty=function(e,t){console.trace("The node type RestProperty has been renamed to RestElement"),i("RestProperty",e,t)},t.assertSpreadProperty=function(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),i("SpreadProperty",e,t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(47));function i(e,t,n){if(!(0,r.default)(e,t,n))throw new Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${t.type}".`)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"===e)return(0,r.stringTypeAnnotation)();if("number"===e)return(0,r.numberTypeAnnotation)();if("undefined"===e)return(0,r.voidTypeAnnotation)();if("boolean"===e)return(0,r.booleanTypeAnnotation)();if("function"===e)return(0,r.genericTypeAnnotation)((0,r.identifier)("Function"));if("object"===e)return(0,r.genericTypeAnnotation)((0,r.identifier)("Object"));if("symbol"===e)return(0,r.genericTypeAnnotation)((0,r.identifier)("Symbol"));throw new Error("Invalid typeof value")};var r=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,i.default)(e);return 1===t.length?t[0]:(0,r.unionTypeAnnotation)(t)};var r=n(14),i=function(e){return e&&e.__esModule?e:{default:e}}(n(71))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(34))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,r.default)(e);return t.loc=null,t};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(72))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){return(0,r.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:n}])};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(73))},function(e,t){e.exports=require("lodash/uniq")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.COMMENT_KEYS.forEach(t=>{e[t]=null}),e};var r=n(22)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.PRIVATE_TYPES=t.JSX_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.FLOWTYPE_TYPES=t.FLOW_TYPES=t.MODULESPECIFIER_TYPES=t.EXPORTDECLARATION_TYPES=t.MODULEDECLARATION_TYPES=t.CLASS_TYPES=t.PATTERN_TYPES=t.UNARYLIKE_TYPES=t.PROPERTY_TYPES=t.OBJECTMEMBER_TYPES=t.METHOD_TYPES=t.USERWHITESPACABLE_TYPES=t.IMMUTABLE_TYPES=t.LITERAL_TYPES=t.TSENTITYNAME_TYPES=t.LVAL_TYPES=t.PATTERNLIKE_TYPES=t.DECLARATION_TYPES=t.PUREISH_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTION_TYPES=t.FORXSTATEMENT_TYPES=t.FOR_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.WHILE_TYPES=t.LOOP_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.SCOPABLE_TYPES=t.BINARY_TYPES=t.EXPRESSION_TYPES=void 0;var r=n(16);const i=r.FLIPPED_ALIAS_KEYS.Expression;t.EXPRESSION_TYPES=i;const a=r.FLIPPED_ALIAS_KEYS.Binary;t.BINARY_TYPES=a;const s=r.FLIPPED_ALIAS_KEYS.Scopable;t.SCOPABLE_TYPES=s;const o=r.FLIPPED_ALIAS_KEYS.BlockParent;t.BLOCKPARENT_TYPES=o;const l=r.FLIPPED_ALIAS_KEYS.Block;t.BLOCK_TYPES=l;const u=r.FLIPPED_ALIAS_KEYS.Statement;t.STATEMENT_TYPES=u;const c=r.FLIPPED_ALIAS_KEYS.Terminatorless;t.TERMINATORLESS_TYPES=c;const p=r.FLIPPED_ALIAS_KEYS.CompletionStatement;t.COMPLETIONSTATEMENT_TYPES=p;const f=r.FLIPPED_ALIAS_KEYS.Conditional;t.CONDITIONAL_TYPES=f;const d=r.FLIPPED_ALIAS_KEYS.Loop;t.LOOP_TYPES=d;const h=r.FLIPPED_ALIAS_KEYS.While;t.WHILE_TYPES=h;const m=r.FLIPPED_ALIAS_KEYS.ExpressionWrapper;t.EXPRESSIONWRAPPER_TYPES=m;const y=r.FLIPPED_ALIAS_KEYS.For;t.FOR_TYPES=y;const v=r.FLIPPED_ALIAS_KEYS.ForXStatement;t.FORXSTATEMENT_TYPES=v;const T=r.FLIPPED_ALIAS_KEYS.Function;t.FUNCTION_TYPES=T;const g=r.FLIPPED_ALIAS_KEYS.FunctionParent;t.FUNCTIONPARENT_TYPES=g;const S=r.FLIPPED_ALIAS_KEYS.Pureish;t.PUREISH_TYPES=S;const x=r.FLIPPED_ALIAS_KEYS.Declaration;t.DECLARATION_TYPES=x;const b=r.FLIPPED_ALIAS_KEYS.PatternLike;t.PATTERNLIKE_TYPES=b;const E=r.FLIPPED_ALIAS_KEYS.LVal;t.LVAL_TYPES=E;const P=r.FLIPPED_ALIAS_KEYS.TSEntityName;t.TSENTITYNAME_TYPES=P;const A=r.FLIPPED_ALIAS_KEYS.Literal;t.LITERAL_TYPES=A;const w=r.FLIPPED_ALIAS_KEYS.Immutable;t.IMMUTABLE_TYPES=w;const k=r.FLIPPED_ALIAS_KEYS.UserWhitespacable;t.USERWHITESPACABLE_TYPES=k;const C=r.FLIPPED_ALIAS_KEYS.Method;t.METHOD_TYPES=C;const N=r.FLIPPED_ALIAS_KEYS.ObjectMember;t.OBJECTMEMBER_TYPES=N;const _=r.FLIPPED_ALIAS_KEYS.Property;t.PROPERTY_TYPES=_;const O=r.FLIPPED_ALIAS_KEYS.UnaryLike;t.UNARYLIKE_TYPES=O;const D=r.FLIPPED_ALIAS_KEYS.Pattern;t.PATTERN_TYPES=D;const I=r.FLIPPED_ALIAS_KEYS.Class;t.CLASS_TYPES=I;const L=r.FLIPPED_ALIAS_KEYS.ModuleDeclaration;t.MODULEDECLARATION_TYPES=L;const F=r.FLIPPED_ALIAS_KEYS.ExportDeclaration;t.EXPORTDECLARATION_TYPES=F;const M=r.FLIPPED_ALIAS_KEYS.ModuleSpecifier;t.MODULESPECIFIER_TYPES=M;const j=r.FLIPPED_ALIAS_KEYS.Flow;t.FLOW_TYPES=j;const R=r.FLIPPED_ALIAS_KEYS.FlowType;t.FLOWTYPE_TYPES=R;const B=r.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;t.FLOWBASEANNOTATION_TYPES=B;const V=r.FLIPPED_ALIAS_KEYS.FlowDeclaration;t.FLOWDECLARATION_TYPES=V;const U=r.FLIPPED_ALIAS_KEYS.FlowPredicate;t.FLOWPREDICATE_TYPES=U;const q=r.FLIPPED_ALIAS_KEYS.JSX;t.JSX_TYPES=q;const K=r.FLIPPED_ALIAS_KEYS.Private;t.PRIVATE_TYPES=K;const J=r.FLIPPED_ALIAS_KEYS.TSTypeElement;t.TSTYPEELEMENT_TYPES=J;const X=r.FLIPPED_ALIAS_KEYS.TSType;t.TSTYPE_TYPES=X},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){return e[t]=(0,r.default)(e[t],e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(78))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"eval"!==(e=(0,r.default)(e))&&"arguments"!==e||(e="_"+e);return e};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(79))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){!e.computed&&(0,r.isIdentifier)(t)&&(t=(0,i.stringLiteral)(t.name));return t};var r=n(13),i=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.isExpressionStatement)(e)&&(e=e.expression);if((0,r.isExpression)(e))return e;(0,r.isClass)(e)?e.type="ClassExpression":(0,r.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,r.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e};var r=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(13),i=s(n(34)),a=s(n(80));function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t=e.key){let n;return"method"===e.kind?o.increment()+"":(n=(0,r.isIdentifier)(t)?t.name:(0,r.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,a.default)((0,i.default)(t))),e.computed&&(n=`[${n}]`),e.static&&(n=`static:${n}`),n)}o.uid=0,o.increment=function(){return o.uid>=Number.MAX_SAFE_INTEGER?o.uid=0:o.uid++}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!e.length)return;const n=[],i=(0,r.default)(e,t,n);if(!i)return;for(const e of n)t.push(e);return i};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(153))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,o){const l=[];let u=!0;for(const c of t)if(u=!1,(0,i.isExpression)(c))l.push(c);else if((0,i.isExpressionStatement)(c))l.push(c.expression);else if((0,i.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(const e of c.declarations){const t=(0,r.default)(e);for(const e in t)o.push({kind:c.kind,id:(0,s.default)(t[e])});e.init&&l.push((0,a.assignmentExpression)("=",e.id,e.init))}u=!0}else if((0,i.isIfStatement)(c)){const t=c.consequent?e([c.consequent],n,o):n.buildUndefinedNode(),r=c.alternate?e([c.alternate],n,o):n.buildUndefinedNode();if(!t||!r)return;l.push((0,a.conditionalExpression)(c.test,t,r))}else if((0,i.isBlockStatement)(c)){const t=e(c.body,n,o);if(!t)return;l.push(t)}else{if(!(0,i.isEmptyStatement)(c))return;u=!0}u&&l.push(n.buildUndefinedNode());return 1===l.length?l[0]:(0,a.sequenceExpression)(l)};var r=o(n(39)),i=n(13),a=n(14),s=o(n(34));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isStatement)(e))return e;let n,a=!1;if((0,r.isClass)(e))a=!0,n="ClassDeclaration";else if((0,r.isFunction)(e))a=!0,n="FunctionDeclaration";else if((0,r.isAssignmentExpression)(e))return(0,i.expressionStatement)(e);a&&!e.id&&(n=!1);if(!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e};var r=n(13),i=n(14)},function(e,t,n){"use strict";function r(){const e=o(n(156));return r=function(){return e},e}function i(){const e=o(n(157));return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){if(void 0===t)return(0,s.identifier)("undefined");if(!0===t||!1===t)return(0,s.booleanLiteral)(t);if(null===t)return(0,s.nullLiteral)();if("string"==typeof t)return(0,s.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,s.numericLiteral)(Math.abs(t));else{let n;n=Number.isNaN(t)?(0,s.numericLiteral)(0):(0,s.numericLiteral)(1),e=(0,s.binaryExpression)("/",n,(0,s.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,s.unaryExpression)("-",e)),e}if((0,i().default)(t)){const e=t.source,n=t.toString().match(/\/([a-z]+|)$/)[1];return(0,s.regExpLiteral)(e,n)}if(Array.isArray(t))return(0,s.arrayExpression)(t.map(e));if((0,r().default)(t)){const n=[];for(const r in t){let i;i=(0,a.default)(r)?(0,s.identifier)(r):(0,s.stringLiteral)(r),n.push((0,s.objectProperty)(i,e(t[r])))}return(0,s.objectExpression)(n)}throw new Error("don't know how to turn this value into a node")};var a=o(n(33)),s=n(14);function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=require("lodash/isPlainObject")},function(e,t){e.exports=require("lodash/isRegExp")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n=!1){return e.object=(0,r.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e};var r=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const n of r.INHERIT_KEYS.optional)null==e[n]&&(e[n]=t[n]);for(const n in t)"_"===n[0]&&"__clone"!==n&&(e[n]=t[n]);for(const n of r.INHERIT_KEYS.force)e[n]=t[n];return(0,i.default)(e,t),e};var r=n(22),i=function(e){return e&&e.__esModule?e:{default:e}}(n(76))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.object=(0,r.memberExpression)(t,e.object),e};var r=n(14)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,t,!0)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(39))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"function"==typeof t&&(t={enter:t});const{enter:i,exit:a}=t;!function e(t,n,i,a,s){const o=r.VISITOR_KEYS[t.type];if(!o)return;n&&n(t,s,a);for(const r of o){const o=t[r];if(Array.isArray(o))for(let l=0;l<o.length;l++){const u=o[l];u&&(s.push({node:t,key:r,index:l}),e(u,n,i,a,s),s.pop())}else o&&(s.push({node:t,key:r}),e(o,n,i,a,s),s.pop())}i&&i(t,s,a)}(e,i,a,n,[])};var r=n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=r.default.keys[t.type];if(n)for(let r=0;r<n.length;r++){const i=n[r],a=t[i];if(Array.isArray(a)){if(a.indexOf(e)>=0)return!0}else if(a===e)return!0}return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(39))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isFunctionDeclaration)(e)||(0,r.isClassDeclaration)(e)||(0,i.default)(e)};var r=n(13),i=function(e){return e&&e.__esModule?e:{default:e}}(n(83))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e.type,"Immutable"))return!0;if((0,i.isIdentifier)(e))return"undefined"===e.name;return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(48)),i=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if("object"!=typeof t||"object"!=typeof n||null==t||null==n)return t===n;if(t.type!==n.type)return!1;const i=Object.keys(r.NODE_FIELDS[t.type]||t.type);const a=r.VISITOR_KEYS[t.type];for(const r of i){if(typeof t[r]!=typeof n[r])return!1;if(Array.isArray(t[r])){if(!Array.isArray(n[r]))return!1;if(t[r].length!==n[r].length)return!1;for(let i=0;i<t[r].length;i++)if(!e(t[r][i],n[r][i]))return!1}else if("object"!=typeof t[r]||a&&a.includes(r)){if(!e(t[r],n[r]))return!1}else for(const e in t[r])if(t[r][e]!==n[r][e])return!1}return!0};var r=n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){switch(t.type){case"MemberExpression":case"JSXMemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"ExportSpecifier":return!t.source&&t.local===e;case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":case"ClassMethod":case"ObjectMethod":return t.key===e?!!t.computed:t.value===e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"LabeledStatement":case"CatchClause":case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e)&&(0,r.isFunction)(t,{body:e}))return!1;if((0,r.isBlockStatement)(e)&&(0,r.isCatchClause)(t,{body:e}))return!1;return(0,r.isScopable)(e)};var r=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isImportDefaultSpecifier)(e)||(0,r.isIdentifier)(e.imported||e.exported,{name:"default"})};var r=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)&&!i.has(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(33));const i=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e,{kind:"var"})&&!e[i.BLOCK_SCOPED_SYMBOL]};var r=n(13),i=n(22)},function(e,t,n){"use strict";function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionTypeAnnotation=t.NullableTypeAnnotation=function(e,t){return r().isArrayTypeAnnotation(t)},t.UpdateExpression=function(e,t){return r().isMemberExpression(t,{object:e})||r().isCallExpression(t,{callee:e})||r().isNewExpression(t,{callee:e})||a(e,t)},t.ObjectExpression=function(e,t,n){return l(n,{considerArrow:!0})},t.DoExpression=function(e,t,n){return l(n)},t.Binary=function(e,t){if("**"===e.operator&&r().isBinaryExpression(t,{operator:"**"}))return t.left===e;if(a(e,t))return!0;if((r().isCallExpression(t)||r().isNewExpression(t))&&t.callee===e||r().isUnaryLike(t)||r().isMemberExpression(t)&&t.object===e||r().isAwaitExpression(t))return!0;if(r().isBinary(t)){const n=t.operator,a=i[n],s=e.operator,o=i[s];if(a===o&&t.right===e&&!r().isLogicalExpression(t)||a>o)return!0}return!1},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){return r().isArrayTypeAnnotation(t)||r().isNullableTypeAnnotation(t)||r().isIntersectionTypeAnnotation(t)||r().isUnionTypeAnnotation(t)},t.TSAsExpression=function(){return!0},t.TSTypeAssertion=function(){return!0},t.BinaryExpression=function(e,t){return"in"===e.operator&&(r().isVariableDeclarator(t)||r().isFor(t))},t.SequenceExpression=function(e,t){if(r().isForStatement(t)||r().isThrowStatement(t)||r().isReturnStatement(t)||r().isIfStatement(t)&&t.test===e||r().isWhileStatement(t)&&t.test===e||r().isForInStatement(t)&&t.right===e||r().isSwitchStatement(t)&&t.discriminant===e||r().isExpressionStatement(t)&&t.expression===e)return!1;return!0},t.AwaitExpression=t.YieldExpression=function(e,t){return r().isBinary(t)||r().isUnaryLike(t)||r().isCallExpression(t)||r().isMemberExpression(t)||r().isNewExpression(t)||r().isConditionalExpression(t)&&e===t.test||a(e,t)},t.ClassExpression=function(e,t,n){return l(n,{considerDefaultExports:!0})},t.UnaryLike=s,t.FunctionExpression=function(e,t,n){return l(n,{considerDefaultExports:!0})},t.ArrowFunctionExpression=function(e,t){return r().isExportDeclaration(t)||o(e,t)},t.ConditionalExpression=o,t.AssignmentExpression=function(e){return!!r().isObjectPattern(e.left)||o(...arguments)},t.NewExpression=function(e,t){return a(e,t)};const i={"||":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},a=(e,t)=>(r().isClassDeclaration(t)||r().isClassExpression(t))&&t.superClass===e;function s(e,t){return r().isMemberExpression(t,{object:e})||r().isCallExpression(t,{callee:e})||r().isNewExpression(t,{callee:e})||r().isBinaryExpression(t,{operator:"**",left:e})||a(e,t)}function o(e,t){return!!(r().isUnaryLike(t)||r().isBinary(t)||r().isConditionalExpression(t,{test:e})||r().isAwaitExpression(t)||r().isTaggedTemplateExpression(t)||r().isTSTypeAssertion(t)||r().isTSAsExpression(t))||s(e,t)}function l(e,{considerArrow:t=!1,considerDefaultExports:n=!1}={}){let i=e.length-1,a=e[i],s=e[--i];for(;i>0;){if(r().isExpressionStatement(s,{expression:a})||r().isTaggedTemplateExpression(s)||n&&r().isExportDefaultDeclaration(s,{declaration:a})||t&&r().isArrowFunctionExpression(s,{body:a}))return!0;if(!(r().isCallExpression(s,{callee:a})||r().isSequenceExpression(s)&&s.expressions[0]===a||r().isMemberExpression(s,{object:a})||r().isConditional(s,{test:a})||r().isBinary(s,{left:a})||r().isAssignmentExpression(s,{left:a})))return!1;a=s,s=e[--i]}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(174);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var i=n(175);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var a=n(176);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var s=n(177);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var o=n(178);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var l=n(84);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var u=n(51);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var c=n(180);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var p=n(181);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var f=n(182);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})});var d=n(183);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){const n=t.quasis[0]===e,r=t.quasis[t.quasis.length-1]===e,i=(n?"`":"}")+e.value.raw+(r?"`":"${");this.token(i)},t.TemplateLiteral=function(e){const t=e.quasis;for(let n=0;n<t.length;n++)this.print(t[n],e),n+1<t.length&&this.print(e.expressions[n],e)}},function(e,t,n){"use strict";function r(){const e=a(n(2));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.UnaryExpression=function(e){"void"===e.operator||"delete"===e.operator||"typeof"===e.operator?(this.word(e.operator),this.space()):this.token(e.operator);this.print(e.argument,e)},t.DoExpression=function(e){this.word("do"),this.space(),this.print(e.body,e)},t.ParenthesizedExpression=function(e){this.token("("),this.print(e.expression,e),this.token(")")},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.startTerminatorless(!0),this.print(e.argument,e),this.endTerminatorless(),this.token(e.operator))},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.token("?"),this.space(),this.print(e.consequent,e),this.space(),this.token(":"),this.space(),this.print(e.alternate,e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee,e),this.format.minified&&0===e.arguments.length&&!e.optional&&!r().isCallExpression(t,{callee:e})&&!r().isMemberExpression(t)&&!r().isNewExpression(t))return;this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.ThisExpression=function(){this.word("this")},t.Super=function(){this.word("super")},t.Decorator=function(e){this.token("@"),this.print(e.expression,e),this.newline()},t.OptionalMemberExpression=function(e){if(this.print(e.object,e),!e.computed&&r().isMemberExpression(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;r().isLiteral(e.property)&&"number"==typeof e.property.value&&(t=!0);e.optional&&this.token("?.");t?(this.token("["),this.print(e.property,e),this.token("]")):(e.optional||this.token("."),this.print(e.property,e))},t.OptionalCallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.CallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.token("("),this.printList(e.arguments,e),this.token(")")},t.Import=function(){this.word("import")},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.AssignmentPattern=function(e){this.print(e.left,e),e.left.optional&&this.token("?");this.print(e.left.typeAnnotation,e),this.space(),this.token("="),this.space(),this.print(e.right,e)},t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e,t){const n=this.inForStatementInitCounter&&"in"===e.operator&&!i.needsParens(e,t);n&&this.token("(");this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator);this.space(),this.print(e.right,e),n&&this.token(")")},t.BindExpression=function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&r().isMemberExpression(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;r().isLiteral(e.property)&&"number"==typeof e.property.value&&(t=!0);t?(this.token("["),this.print(e.property,e),this.token("]")):(this.token("."),this.print(e.property,e))},t.MetaProperty=function(e){this.print(e.meta,e),this.token("."),this.print(e.property,e)},t.PrivateName=function(e){this.token("#"),this.print(e.id,e)},t.AwaitExpression=t.YieldExpression=void 0;var i=a(n(66));function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function s(e){return function(t){if(this.word(e),t.delegate&&this.token("*"),t.argument){this.space();const e=this.startTerminatorless();this.print(t.argument,t),this.endTerminatorless(e)}}}const o=s("yield");t.YieldExpression=o;const l=s("await");t.AwaitExpression=l},function(e,t,n){"use strict";function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.WithStatement=function(e){this.word("with"),this.space(),this.token("("),this.print(e.object,e),this.token(")"),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.space();const t=e.alternate&&r().isIfStatement(function e(t){if(!r().isStatement(t.body))return t;return e(t.body)}(e.consequent));t&&(this.token("{"),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.token("}"));e.alternate&&(this.endsWith("}")&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.ForStatement=function(e){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.token(";"),e.test&&(this.space(),this.print(e.test,e));this.token(";"),e.update&&(this.space(),this.print(e.update,e));this.token(")"),this.printBlock(e)},t.WhileStatement=function(e){this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.printBlock(e)},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.semicolon()},t.LabeledStatement=function(e){this.print(e.label,e),this.token(":"),this.space(),this.print(e.body,e)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.token("("),this.print(e.param,e),this.token(")"),this.space());this.print(e.body,e)},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.token("("),this.print(e.discriminant,e),this.token(")"),this.space(),this.token("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1}}),this.token("}")},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.token(":")):(this.word("default"),this.token(":"));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());this.word(e.kind),this.space();let n,i=!1;if(!r().isFor(t))for(const t of e.declarations)t.init&&(i=!0);i&&(n="const"===e.kind?d:f);if(this.printList(e.declarations,e,{separator:n}),r().isFor(t)&&(t.left===e||t.init===e))return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),e.definite&&this.token("!");this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.token("="),this.space(),this.print(e.init,e))},t.ThrowStatement=t.BreakStatement=t.ReturnStatement=t.ContinueStatement=t.ForOfStatement=t.ForInStatement=void 0;const i=function(e){return function(t){this.word("for"),this.space(),"of"===e&&t.await&&(this.word("await"),this.space()),this.token("("),this.print(t.left,t),this.space(),this.word(e),this.space(),this.print(t.right,t),this.token(")"),this.printBlock(t)}},a=i("in");t.ForInStatement=a;const s=i("of");function o(e,t="label"){return function(n){this.word(e);const r=n[t];if(r){this.space();const e="label"==t,i=this.startTerminatorless(e);this.print(r,n),this.endTerminatorless(i)}this.semicolon()}}t.ForOfStatement=s;const l=o("continue");t.ContinueStatement=l;const u=o("return","argument");t.ReturnStatement=u;const c=o("break");t.BreakStatement=c;const p=o("throw","argument");function f(){if(this.token(","),this.newline(),this.endsWith("\n"))for(let e=0;e<4;e++)this.space(!0)}function d(){if(this.token(","),this.newline(),this.endsWith("\n"))for(let e=0;e<6;e++)this.space(!0)}t.ThrowStatement=p},function(e,t,n){"use strict";function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ClassExpression=t.ClassDeclaration=function(e,t){this.format.decoratorsBeforeExport&&(r().isExportDefaultDeclaration(t)||r().isExportNamedDeclaration(t))||this.printJoin(e.decorators,e);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,e));this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t.ClassBody=function(e){this.token("{"),this.printInnerComments(e),0===e.body.length?this.token("}"):(this.newline(),this.indent(),this.printSequence(e.body,e),this.dedent(),this.endsWith("\n")||this.newline(),this.rightBrace())},t.ClassProperty=function(e){this.printJoin(e.decorators,e),e.accessibility&&(this.word(e.accessibility),this.space());e.static&&(this.word("static"),this.space());e.abstract&&(this.word("abstract"),this.space());e.readonly&&(this.word("readonly"),this.space());e.computed?(this.token("["),this.print(e.key,e),this.token("]")):(this._variance(e),this.print(e.key,e));e.optional&&this.token("?");e.definite&&this.token("!");this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassPrivateProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t._classMethodHead=function(e){this.printJoin(e.decorators,e),e.accessibility&&(this.word(e.accessibility),this.space());e.abstract&&(this.word("abstract"),this.space());e.static&&(this.word("static"),this.space());this._methodHead(e)}},function(e,t,n){"use strict";function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t._params=function(e){this.print(e.typeParameters,e),this.token("("),this._parameters(e.params,e),this.token(")"),this.print(e.returnType,e)},t._parameters=function(e,t){for(let n=0;n<e.length;n++)this._param(e[n],t),n<e.length-1&&(this.token(","),this.space())},t._param=function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.token("?");this.print(e.typeAnnotation,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"),this.space());"method"!==t&&"init"!==t||e.generator&&this.token("*");e.computed?(this.token("["),this.print(n,e),this.token("]")):this.print(n,e);e.optional&&this.token("?");this._params(e)},t._predicate=function(e){e.predicate&&(e.returnType||this.token(":"),this.space(),this.print(e.predicate,e))},t._functionHead=function(e){e.async&&(this.word("async"),this.space());this.word("function"),e.generator&&this.token("*");this.space(),e.id&&this.print(e.id,e);this._params(e),this._predicate(e)},t.FunctionDeclaration=t.FunctionExpression=function(e){this._functionHead(e),this.space(),this.print(e.body,e)},t.ArrowFunctionExpression=function(e){e.async&&(this.word("async"),this.space());const t=e.params[0];1===e.params.length&&r().isIdentifier(t)&&!function(e,t){return e.typeParameters||e.returnType||t.typeAnnotation||t.optional||t.trailingComments}(e,t)?this.print(t,e):this._params(e);this._predicate(e),this.space(),this.token("=>"),this.space(),this.print(e.body,e)}},function(e,t){e.exports=require("jsesc")},function(e,t,n){"use strict";function r(){const e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e),this.token("["),this.token("]")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.DeclareClass=function(e,t){r().isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},t.DeclareFunction=function(e,t){r().isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e));this.semicolon()},t.InferredPredicate=function(){this.token("%"),this.word("checks")},t.DeclaredPredicate=function(e){this.token("%"),this.word("checks"),this.token("("),this.print(e.value,e),this.token(")")},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,e),this.space(),this.print(e.body,e)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.token("."),this.word("exports"),this.print(e.typeAnnotation,e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareOpaqueType=function(e,t){r().isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.OpaqueType(e)},t.DeclareVariable=function(e,t){r().isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());(function(e){if(e.declaration){const t=e.declaration;this.print(t,e),r().isStatement(t)||this.semicolon()}else this.token("{"),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.token("}"),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}).apply(this,arguments)},t.DeclareExportAllDeclaration=function(){this.word("declare"),this.space(),i.ExportAllDeclaration.apply(this,arguments)},t.ExistsTypeAnnotation=function(){this.token("*")},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.token("("),this.printList(e.params,e),e.rest&&(e.params.length&&(this.token(","),this.space()),this.token("..."),this.print(e.rest,e));this.token(")"),"ObjectTypeCallProperty"===t.type||"DeclareFunction"===t.type||"ObjectTypeProperty"===t.type&&t.method?this.token(":"):(this.space(),this.token("=>"));this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.token("?");e.name&&(this.token(":"),this.space());this.print(e.typeAnnotation,e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id,e),this.print(e.typeParameters,e)},t._interfaceish=function(e){this.print(e.id,e),this.print(e.typeParameters,e),e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));e.mixins&&e.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e));e.implements&&e.implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t._variance=function(e){e.variance&&("plus"===e.variance.kind?this.token("+"):"minus"===e.variance.kind&&this.token("-"))},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.InterfaceTypeAnnotation=function(e){this.word("interface"),e.extends&&e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));this.space(),this.print(e.body,e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:s})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.EmptyTypeAnnotation=function(){this.word("empty")},t.NullableTypeAnnotation=function(e){this.token("?"),this.print(e.typeAnnotation,e)},t.NumberTypeAnnotation=function(){this.word("number")},t.StringTypeAnnotation=function(){this.word("string")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.token("["),this.printList(e.types,e),this.token("]")},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.token("="),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e);e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.token(":"),this.space(),this.print(e.supertype,e));e.impltype&&(this.space(),this.token("="),this.space(),this.print(e.impltype,e));this.semicolon()},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.token("{");const t=e.properties.concat(e.callProperties||[],e.indexers||[],e.internalSlots||[]);t.length&&(this.space(),this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{1!==t.length&&(this.token(","),this.space())}}),this.space());e.exact?this.token("|}"):this.token("}")},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space());this.token("["),this.token("["),this.print(e.id,e),this.token("]"),this.token("]"),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space());this._variance(e),this.token("["),e.id&&(this.print(e.id,e),this.token(":"),this.space());this.print(e.key,e),this.token("]"),this.token(":"),this.space(),this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());this._variance(e),this.print(e.key,e),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.token("."),this.print(e.id,e)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:o})},t.TypeCastExpression=function(e){this.token("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.token(")")},t.Variance=function(e){"plus"===e.kind?this.token("+"):this.token("-")},t.VoidTypeAnnotation=function(){this.word("void")},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.NumericLiteral}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.StringLiteral}});var i=n(84),a=n(51);function s(){this.space(),this.token("&"),this.space()}function o(){this.space(),this.token("|"),this.space()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.File=function(e){e.program&&this.print(e.program.interpreter,e);this.print(e.program,e)},t.Program=function(e){this.printInnerComments(e,!1),this.printSequence(e.directives,e),e.directives&&e.directives.length&&this.newline();this.printSequence(e.body,e)},t.BlockStatement=function(e){this.token("{"),this.printInnerComments(e);const t=e.directives&&e.directives.length;e.body.length||t?(this.newline(),this.printSequence(e.directives,e,{indent:!0}),t&&this.newline(),this.printSequence(e.body,e,{indent:!0}),this.removeTrailingNewline(),this.source("end",e.loc),this.endsWith("\n")||this.newline(),this.rightBrace()):(this.source("end",e.loc),this.token("}"))},t.Noop=function(){},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.InterpreterDirective=function(e){this.token(`#!${e.value}\n`)},Object.defineProperty(t,"DirectiveLiteral",{enumerable:!0,get:function(){return r.StringLiteral}});var r=n(51)},function(e,t,n){"use strict";function r(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.token("="),this.print(e.value,e))},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.token(":"),this.print(e.name,e)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.token("."),this.print(e.property,e)},t.JSXSpreadAttribute=function(e){this.token("{"),this.token("..."),this.print(e.argument,e),this.token("}")},t.JSXExpressionContainer=function(e){this.token("{"),this.print(e.expression,e),this.token("}")},t.JSXSpreadChild=function(e){this.token("{"),this.token("..."),this.print(e.expression,e),this.token("}")},t.JSXText=function(e){const t=this.getPossibleRaw(e);null!=t?this.token(t):this.token(e.value)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t,e),t.selfClosing)return;this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingElement,e)},t.JSXOpeningElement=function(e){this.token("<"),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:r}));e.selfClosing?(this.space(),this.token("/>")):this.token(">")},t.JSXClosingElement=function(e){this.token("</"),this.print(e.name,e),this.token(">")},t.JSXEmptyExpression=function(e){this.printInnerComments(e)},t.JSXFragment=function(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)},t.JSXOpeningFragment=function(){this.token("<"),this.token(">")},t.JSXClosingFragment=function(){this.token("</"),this.token(">")}},function(e,t,n){"use strict";function r(e,t){!0!==t&&e.token(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.TSTypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")},t.TSTypeParameter=function(e){this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e));e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space());e.readonly&&(this.word("readonly"),this.space());this._param(e.parameter)},t.TSDeclareFunction=function(e){e.declare&&(this.word("declare"),this.space());this._functionHead(e),this.token(";")},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.token(";")},t.TSQualifiedName=function(e){this.print(e.left,e),this.token("."),this.print(e.right,e)},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e)},t.TSPropertySignature=function(e){const{readonly:t,initializer:n}=e;t&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),n&&(this.space(),this.token("="),this.space(),this.print(n,e));this.token(";")},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.token("[");this.print(e.key,e),e.computed&&this.token("]");e.optional&&this.token("?")},t.TSMethodSignature=function(e){this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSIndexSignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space());this.token("["),this._parameters(e.parameters,e),this.token("]"),this.print(e.typeAnnotation,e),this.token(";")},t.TSAnyKeyword=function(){this.word("any")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSVoidKeyword=function(){this.word("void")},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSNullKeyword=function(){this.word("null")},t.TSNeverKeyword=function(){this.word("never")},t.TSThisType=function(){this.word("this")},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSConstructorType=function(e){this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t,parameters:n}=e;this.print(t,e),this.token("("),this._parameters(n,e),this.token(")"),this.space(),this.token("=>"),this.space(),this.print(e.typeAnnotation.typeAnnotation,e)},t.TSTypeReference=function(e){this.print(e.typeName,e),this.print(e.typeParameters,e)},t.TSTypePredicate=function(e){this.print(e.parameterName),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)},t.TSTypeLiteral=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},t.tsPrintTypeLiteralOrInterfaceBody=function(e,t){this.tsPrintBraced(e,t)},t.tsPrintBraced=function(e,t){if(this.token("{"),e.length){this.indent(),this.newline();for(const n of e)this.print(n,t),this.newline();this.dedent(),this.rightBrace()}else this.token("}")},t.TSArrayType=function(e){this.print(e.elementType),this.token("[]")},t.TSTupleType=function(e){this.token("["),this.printList(e.elementTypes,e),this.token("]")},t.TSUnionType=function(e){this.tsPrintUnionOrIntersectionType(e,"|")},t.TSIntersectionType=function(e){this.tsPrintUnionOrIntersectionType(e,"&")},t.tsPrintUnionOrIntersectionType=function(e,t){this.printJoin(e.types,e,{separator(){this.space(),this.token(t),this.space()}})},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.token("?"),this.space(),this.print(e.trueType),this.space(),this.token(":"),this.space(),this.print(e.falseType)},t.TSInferType=function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},t.TSParenthesizedType=function(e){this.token("("),this.print(e.typeAnnotation,e),this.token(")")},t.TSTypeOperator=function(e){this.token(e.operator),this.space(),this.print(e.typeAnnotation,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},t.TSMappedType=function(e){const{readonly:t,typeParameter:n,optional:i}=e;this.token("{"),this.space(),t&&(r(this,t),this.word("readonly"),this.space());this.token("["),this.word(n.name),this.space(),this.word("in"),this.space(),this.print(n.constraint,n),this.token("]"),i&&(r(this,i),this.token("?"));this.token(":"),this.space(),this.print(e.typeAnnotation,e),this.space(),this.token("}")},t.TSLiteralType=function(e){this.print(e.literal,e)},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:r,extends:i,body:a}=e;t&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(n,e),this.print(r,e),i&&(this.space(),this.word("extends"),this.space(),this.printList(i,e));this.space(),this.print(a,e)},t.TSInterfaceBody=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},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,e),this.print(r,e),this.space(),this.token("="),this.space(),this.print(i,e),this.token(";")},t.TSAsExpression=function(e){const{expression:t,typeAnnotation:n}=e;this.print(t,e),this.space(),this.word("as"),this.space(),this.print(n,e)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:n}=e;this.token("<"),this.print(t,e),this.token(">"),this.space(),this.print(n,e)},t.TSEnumDeclaration=function(e){const{declare:t,const:n,id:r,members:i}=e;t&&(this.word("declare"),this.space());n&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(r,e),this.space(),this.tsPrintBraced(i,e)},t.TSEnumMember=function(e){const{id:t,initializer:n}=e;this.print(t,e),n&&(this.space(),this.token("="),this.space(),this.print(n,e));this.token(",")},t.TSModuleDeclaration=function(e){const{declare:t,id:n}=e;t&&(this.word("declare"),this.space());e.global||(this.word("Identifier"===n.type?"namespace":"module"),this.space());if(this.print(n,e),!e.body)return void this.token(";");let r=e.body;for(;"TSModuleDeclaration"===r.type;)this.token("."),this.print(r.id,r),r=r.body;this.space(),this.print(r,e)},t.TSModuleBlock=function(e){this.tsPrintBraced(e.body,e)},t.TSImportEqualsDeclaration=function(e){const{isExport:t,id:n,moduleReference:r}=e;t&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(n,e),this.space(),this.token("="),this.space(),this.print(r,e),this.token(";")},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression,e),this.token(")")},t.TSNonNullExpression=function(e){this.print(e.expression,e),this.token("!")},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.token("="),this.space(),this.print(e.expression,e),this.token(";")},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t,parameters:n}=e;this.print(t,e),this.token("("),this._parameters(n,e),this.token(")"),this.print(e.typeAnnotation,e)}},function(e,t,n){"use strict";var r=[],i=[];e.exports=
5/**
6 * Checks if two values are equal. Values may be primitives, arrays, or objects.
7 * Returns true if both arguments have the same keys and values.
8 *
9 * @see http://underscorejs.org
10 * @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
11 * @license MIT
12 */
13function(e,t){var n=r.length?r.pop():[],a=i.length?i.pop():[],s=function e(t,n,r,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if("object"!=typeof t||"object"!=typeof n)return!1;var a=Object.prototype.toString,s=a.call(t);if(s!==a.call(n))return!1;switch(s){case"[object String]":return t===String(n);case"[object Number]":return!isNaN(t)&&!isNaN(n)&&t===Number(n);case"[object Date]":case"[object Boolean]":return+t==+n;case"[object RegExp]":return t.source===n.source&&t.global===n.global&&t.multiline===n.multiline&&t.ignoreCase===n.ignoreCase}for(var o=r.length;o--;)if(r[o]===t)return i[o]===n;r.push(t),i.push(n);var l=0;if("[object Array]"===s){if((l=t.length)!==n.length)return!1;for(;l--;)if(!e(t[l],n[l],r,i))return!1}else{if(t.constructor!==n.constructor)return!1;if(t.hasOwnProperty("valueOf")&&n.hasOwnProperty("valueOf"))return t.valueOf()===n.valueOf();var u=Object.keys(t);if(u.length!==Object.keys(n).length)return!1;for(var c=0;c<u.length;c++)if(!("_owner"===u[c]||n.hasOwnProperty(u[c])&&e(t[u[c]],n[u[c]],r,i)))return!1}return r.pop(),i.pop(),!0}(e,t,n,a);return n.length=0,a.length=0,r.push(n),i.push(a),s}},function(e,t,n){"use strict";var r=n(19),i=n(5)(n(11));e.exports={writeAll:function(e){var t=e.config,a=e.onlyValidate,s=e.baseDocuments,o=e.documents,l=e.schema,u=e.reporter,c=e.sourceControl;return n(6).asyncContext("RelayFileWriter.writeAll",r(function*(){var e=function(e){e.baseDir;var t=e.baseDocuments,r=e.baseSchema,a=e.compilerTransforms,s=e.documents,o=e.extraValidationRules,l=e.reporter,u=e.schemaExtensions,c=e.typeGenerator,p=n(25).transformASTSchema(r,u),f=n(25).extendASTSchema(p,(0,i.default)(t).concat((0,i.default)(s))),d=(0,i.default)(n(44).LOCAL_RULES).concat((0,i.default)(n(44).GLOBAL_RULES));o&&(d=(0,i.default)(d).concat((0,i.default)(o.LOCAL_RULES||[]),(0,i.default)(o.GLOBAL_RULES||[])));var h=n(25).convertASTDocumentsWithBase(f,t,s,d,n(43).transform),m=new(n(31))(r,f).addAll(h),y=m.applyTransforms(c.transforms,l),v=m.applyTransforms((0,i.default)(a.commonTransforms).concat((0,i.default)(a.queryTransforms)),l);return{artifacts:n(88)(m,a,l),definitions:h,transformedQueryContext:v,transformedTypeContext:y}}({baseDir:t.baseDir,baseDocuments:s.valueSeq().toArray(),baseSchema:l,compilerTransforms:t.compilerTransforms,documents:o.valueSeq().toArray(),extraValidationRules:t.validationRules,reporter:u,schemaExtensions:t.schemaExtensions,typeGenerator:t.typeGenerator}),p=e.artifacts,f=e.definitions,d=e.transformedTypeContext,h=e.transformedQueryContext,m=new Set;s.forEach(function(e){e.definitions.forEach(function(e){n(3).isExecutableDefinitionAST(e)&&e.name&&m.add(e.name.value)})});var y=p.filter(function(e){var t=n(41).getReaderSourceDefinitionName(e);return!m.has(t)}),v=new Map(y.map(function(e){return["Request"===e.kind?e.params.name:e.name,e]})),T=new Set(f.map(function(e){return e.name})),g=new Map,S=function(e){var t=n(23)(v.get(e)),r=n(41).getReaderSourceDefinitionName(t),i=g.get(r);return i||n(4)(!1,"RelayFileWriter: Could not determine source for definition: `%s`.",e),i};o.forEach(function(e,r){e.definitions.forEach(function(e){e.name&&g.set(e.name.value,{dir:n(8).join(t.baseDir,n(8).dirname(r)),ast:e})})}),m.forEach(function(e){T.delete(e)});var x,b=new Map,E=function(e){var t=new(n(26))(e,{onlyValidate:a});return b.set(e,t),t},P=!0,A=!1,w=void 0;try{for(var k,C=(t.generatedDirectories||[])[Symbol.iterator]();!(P=(k=C.next()).done);P=!0){var N=k.value;E(N)}}catch(e){A=!0,w=e}finally{try{P||null==C.return||C.return()}finally{if(A)throw w}}t.outputDir&&(x=E(t.outputDir));var _=function(e){if(x)return x;var t=n(8).join(S(e).dir,"__generated__"),r=b.get(t);return r||(r=E(t)),r},O=n(6).instrument(t.formatModule,"RelayFileWriter:formatModule"),D=t.persistQuery?n(6).instrumentWait(t.persistQuery,"RelayFileWriter:persistQuery"):null;try{yield Promise.all(y.map(function(){var e=r(function*(e){var r="Request"===e.kind?e.params.name:e.name;if(!m.has(r)){var i=d.get(r),a=i?t.typeGenerator.generate(i,{customScalars:t.customScalars,enumsHasteModule:t.enumsHasteModule,existingFragmentNames:T,optionalInputFields:t.optionalInputFieldsForFlow,useHaste:t.useHaste,useSingleArtifactDirectory:!!t.outputDir,noFutureProofEnums:t.noFutureProofEnums}):"",s=n(6).run("hashGraphQL",function(){return function(e){return n(35).createHash("md5").update(e,"utf8").digest("hex")}(n(0).print(S(r).ast))});yield n(89)(_(r),e,O,a,D,t.platform,s,t.extension,t.printModuleDependency)}});return function(t){return e.apply(this,arguments)}}()));var I=t.generateExtraFiles;I&&n(6).run("RelayFileWriter:generateExtraFiles",function(){var e=t.outputDir;I(function(t){var r=t||e;r||n(4)(!1,"RelayFileWriter: cannot generate extra files without specifying an outputDir in the config or passing it in.");var i=b.get(r);return i||(i=E(r)),i},h,_)}),!0!==t.experimental_noDeleteExtraFiles&&b.forEach(function(e){e.deleteExtraFiles(t.experimental_extraFilesPatternToKeep)}),c&&!a&&(yield n(26).sourceControlAddRemove(c,Array.from(b.values())))}catch(e){var L;try{L=JSON.parse(e.message)}catch(e){}if(L&&"GraphQL2Exception"===L.name&&L.message)throw new Error("GraphQL error writing modules:\n"+L.message);throw new Error("Error writing modules:\n"+String(e.stack||e))}return b}))}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=[];!function e(t,n,r){!function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n],n);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)}(r,function(r,i){var a=n.concat(i);"object"==typeof r&&null!==r?e(t,a,r):t.push({path:a,value:r})})}(n,[],t);var r=n.map(function(t){var n=t.path,r=t.value;return function(e,t,n){var r=t.map(function(e){return"string"==typeof e?".".concat(e):"[".concat(e,"]")}).join(""),i=void 0===n?"undefined":JSON.stringify(n);return"".concat(e).concat(r," = ").concat(i,";")}(e,n,r)});return 0===r.length?"":r.join("\n")}},function(e,t,n){"use strict";e.exports=function(e){e=JSON.parse(JSON.stringify(e));var t=new Map,n=new WeakMap,r=[];!function e(r){if(null==r||"object"!=typeof r)return JSON.stringify(r);var i;if(Array.isArray(r)){i="[";for(var a=0;a<r.length;a++)i+=e(r[a])+","}else for(var s in i="{",r)r.hasOwnProperty(s)&&void 0!==r[s]&&(i+=s+":"+e(r[s])+",");var o=t.get(i);return o||(o={value:r,hash:i,isDuplicate:!1},t.set(i,o)),n.set(r,o),i}(e),function e(t){if(null!=t&&"object"==typeof t){var r=n.get(t);if(r&&r.value!==t&&r.hash.length>2)r.isDuplicate=!0;else if(Array.isArray(t))for(var i=0;i<t.length;i++)e(t[i]);else for(var a in t)t.hasOwnProperty(a)&&void 0!==t[a]&&e(t[a])}}(e);var i=function e(t,i,a){if(null==a||"object"!=typeof a)return JSON.stringify(a);if(""!==i){var s=n.get(a);if(s&&s.isDuplicate){if(!s.varName){var o=e(!0,"",a);s.varName="v"+r.length,r.push(s.varName+" = "+o)}return"("+s.varName+"/*: any*/)"}}var l,u=!0,c=i+" ";if(Array.isArray(a)){if(t&&0===a.length)return"([]/*: any*/)";l="[";for(var p=0;p<a.length;p++)l+=(u?"\n":",\n")+c+e(t,c,a[p]),u=!1;l+=u?"]":"\n".concat(i,"]")}else{for(var f in l="{",a)a.hasOwnProperty(f)&&void 0!==a[f]&&(l+=(u?"\n":",\n")+c+JSON.stringify(f)+": "+e(t,c,a[f]),u=!1);l+=u?"}":"\n".concat(i,"}")}return l}(!1,"",e);return 0===r.length?i:"(function(){\nvar ".concat(r.join(",\n"),";\nreturn ").concat(i,";\n})()")}},function(e,t,n){"use strict";var r=[n(90).SCHEMA_EXTENSION,n(54).SCHEMA_EXTENSION,n(53).SCHEMA_EXTENSION,n(91).SCHEMA_EXTENSION],i=[n(90).transform,n(189).transform,n(53).transform,n(85).transform,n(54).transform,n(91).transform],a=[n(190).transform,n(40).transformWithOptions({flattenAbstractTypes:!0}),n(93).transform],s=[n(191).transform,n(193).transform,n(194).transform,n(195).transform],o=[n(196).transform,n(197).transform,n(198).transform,n(40).transformWithOptions({flattenAbstractTypes:!0}),n(93).transform,n(96).transform,n(97).transform],l=[n(40).transformWithOptions({}),n(96).transform,n(199).transform,n(97).transform,n(200).transform];e.exports={commonTransforms:i,codegenTransforms:o,fragmentTransforms:a,printTransforms:l,queryTransforms:s,schemaExtensions:r}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11)),a="id",s="viewer",o="Viewer";function l(e){var t=this.traverse(e);if(n(3).getRawType(e.type).name!==o)return t;var a=t.handles,l={name:s,key:n(12).DEFAULT_HANDLE_KEY,filters:null};return a&&!a.find(function(e){return e.name===s})?a=(0,i.default)(a).concat([l]):a||(a=[l]),a!==t.handles?(0,r.default)({},t,{handles:a}):t}e.exports={transform:function(e){var t=e.serverSchema.getType(o);return null!=t&&t instanceof n(0).GraphQLObjectType&&null==t.getFields()[a]?n(10).transform(e,{LinkedField:l,MatchField:l}):e}}},function(e,t,n){"use strict";var r=n(5)(n(9));function i(e){"LinkedField"===e.kind&&(e=this.traverse(e));var t=e.handles;if(!t||!t.length)return e;1!==t.length&&n(4)(!1,'RelayFieldHandleTransform: Expected fields to have at most one "handle" property, got `%s`.',t.join(", "));var i=e.alias||e.name,a=t[0],s=n(12).getRelayHandleKey(a.name,a.key,e.name),o=a.filters,l=o?e.args.filter(function(e){return o.indexOf(e.name)>-1}):[];return(0,r.default)({},e,{args:l,alias:i,name:s,handles:null})}e.exports={transform:function(e){return n(10).transform(e,{LinkedField:i,MatchField:i,ScalarField:i})}}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11));function a(e,t,n,i,a){var s=o(e,t,n,i.selections,a);if(!s)return null;if(i.hasOwnProperty("directives")){var u=l(n,i.directives,a);return(0,r.default)({},i,{directives:u,selections:s})}return(0,r.default)({},i,{selections:s})}function s(e,t,a,s,u){var c=l(a,s.directives,u),p=function(e,t,a,s,l,u){var c=e.getFragment(s.name),p=function(e,t,r){if(!e.length)return null;var a=(0,i.default)(e).sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}),s=JSON.stringify(a.map(function(e){var r;if("Variable"===e.value.kind){if(null==(r=t[e.value.variableName]))throw n(1).createNonRecoverableUserError("Variable '$".concat(e.value.variableName,"' is not in scope."),[e.value.loc])}else r=e.value;return{name:e.name,value:n(62)(r)}}));return n(192)(s)}(l,a),f=p?"".concat(c.name,"_").concat(p):c.name,d=t.get(f);if(d)return d;var h=n(94).getFragmentScope(c.argumentDefinitions,l,a,s);if(null===t.get(f))throw n(1).createNonRecoverableUserError("Found a circular reference from fragment '".concat(c.name,"'."),u.map(function(e){return e.loc}));t.set(f,null);var m=null,y=o(e,t,h,c.selections,u);y&&(m=(0,r.default)({},c,{selections:y,name:f,argumentDefinitions:[]}));return t.set(f,m),m}(e,t,a,s,s.args,(0,i.default)(u).concat([s]));return p?(0,r.default)({},s,{kind:"FragmentSpread",args:[],directives:c,name:p.name}):null}function o(e,t,p,f,d){var h=null;return f.forEach(function(f){var m;if("InlineFragment"===f.kind||"MatchBranch"===f.kind)m=a(e,t,p,f,d);else if("FragmentSpread"===f.kind)m=s(e,t,p,f,d);else if("Condition"===f.kind){var y,v=function(e,t,i,a,s){var l=c(i,a.condition,s);if("Literal"!==l.kind&&"Variable"!==l.kind)throw n(1).createNonRecoverableUserError("A non-scalar value was applied to an @include or @skip directive, the `if` argument value must be a variable or a literal Boolean.",[l.loc]);if("Literal"===l.kind&&l.value!==a.passingValue)return null;var u=o(e,t,i,a.selections,s);return u?"Literal"===l.kind&&l.value===a.passingValue?u:[(0,r.default)({},a,{condition:l,selections:u})]:null}(e,t,p,f,d);if(v)(y=h=h||[]).push.apply(y,(0,i.default)(v))}else{if("LinkedField"!==f.kind&&"ScalarField"!==f.kind&&"MatchField"!==f.kind)throw"Defer"===f.kind||"Stream"===f.kind?n(1).createCompilerError("RelayApplyFragmentArgumentTransform: Expected to be applied before processing @defer/@stream.",[f.loc]):n(1).createCompilerError("RelayApplyFragmentArgumentTransform: Unsupported kind '".concat(f.kind,"'."),[f.loc]);m=function(e,t,n,i,a){var s=u(n,i.args,a),c=l(n,i.directives,a);if("LinkedField"===i.kind||"MatchField"===i.kind){var p=o(e,t,n,i.selections,a);return p?(0,r.default)({},i,{args:s,directives:c,selections:p}):null}return(0,r.default)({},i,{args:s,directives:c})}(e,t,p,f,d)}m&&(h=h||[]).push(m)}),h}function l(e,t,n){return t.map(function(t){var i=u(e,t.args,n);return(0,r.default)({},t,{args:i})})}function u(e,t,n){return t.map(function(t){var i=c(e,t.value,n);return i===t.value?t:(0,r.default)({},t,{value:i})})}function c(e,t,i){if("Variable"===t.kind){var a=e[t.variableName];if(null==a)throw n(1).createNonRecoverableUserError("Variable '$".concat(t.variableName,"' is not in scope."),[t.loc]);return a}return"ListValue"===t.kind?(0,r.default)({},t,{items:t.items.map(function(t){return c(e,t,i)})}):"ObjectValue"===t.kind?(0,r.default)({},t,{fields:t.fields.map(function(t){return(0,r.default)({},t,{value:c(e,t.value,i)})})}):t}e.exports={transform:function(e){var t=new Map,r=n(10).transform(e,{Root:function(r){var i=n(94).getRootScope(r.argumentDefinitions);return a(e,t,i,r,[r])},Fragment:function(){return null}});return Array.from(t.values()).reduce(function(e,t){return t?e.add(t):e},r)}}},function(e,t,n){"use strict";var r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";e.exports=function(e){for(var t,n=e.length,i=3&n,a=n^i,s=0,o=0;o!==a;){var l=e.charCodeAt(o+3);t=e.charCodeAt(o)^e.charCodeAt(o+1)<<8^e.charCodeAt(o+2)<<16^(255&l)<<24^(65280&l)>>8,o+=4,s=5*(s=(s^=t=13715*(t=(t=11601*t+3432906752*(65535&t)>>>0)<<15|t>>>17)+461832192*(65535&t)>>>0)<<13|s>>>19)+3864292196>>>0}switch(t=0,i){case 3:t^=e.charCodeAt(a+2)<<16;case 2:t^=e.charCodeAt(a+1)<<8;case 1:s^=t=13715*(t=(t=11601*(t^=e.charCodeAt(a))+3432906752*(65535&t)>>>0)<<15|t>>>17)+461832192*(65535&t)>>>0}if(s^=n,s=51819*(s^=s>>>16)+2246770688*(65535&s)>>>0,s=44597*(s^=s>>>13)+3266445312*(65535&s)>>>0,s^=s>>>16,!(s>>>=0))return"0";for(var u="";s;){var c=s%62;u=r[c]+u,s=(s-c)/62}return u}},function(e,t,n){"use strict";function r(e,t){if(n(3).canHaveSelections(t)&&n(3).assertTypeWithFields(t).getFields()[e.name]||e.name===n(0).SchemaMetaFieldDef.name||e.name===n(0).TypeMetaFieldDef.name||e.name===n(0).TypeNameMetaFieldDef.name||e.directives.some(function(e){return"fixme_fat_interface"===e.name})){var r=n(3).getRawType(e.type),i=this.getContext().serverSchema.getType(r.name);return i||n(4)(!1,"SkipClientFieldTransform: Expected type `%s` to be defined in the server schema.",r.name),this.traverse(e,i)}return null}function i(e,t){var n=this.getContext(),r=n.getFragment(e.name);return n.serverSchema.getType(r.type.name)?this.traverse(e,t):null}function a(e,t){var n=this.getContext().serverSchema.getType(e.typeCondition.name);return n?this.traverse(e,n):null}e.exports={transform:function(e){return n(10).transform(e,{FragmentSpread:i,InlineFragment:a,LinkedField:r,MatchField:r,ScalarField:r},function(t){return function(e,t){var n=e.serverSchema;switch(t.kind){case"Fragment":return n.getType(t.type.name);case"Root":switch(t.operation){case"query":return n.getQueryType();case"mutation":return n.getMutationType();case"subscription":return n.getSubscriptionType();default:t.operation}break;case"SplitOperation":return n.getType(t.type.name)}return null}(e,t)})}}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11)),a="fail",s="pass",o="variable";function l(e){return"Variable"===e.condition.kind?o:e.condition.value===e.passingValue?s:a}e.exports={transform:function(e){var t=new Map,a=n(10).transform(e,{Root:function(a){return function e(t,a,u){for(var c,p=(0,i.default)(u.selections);p.length;){var f=p.shift(),d=void 0;switch(f.kind){case"Condition":var h=l(f);h===s?p.unshift.apply(p,(0,i.default)(f.selections)):h===o&&(d=e(t,a,f));break;case"FragmentSpread":if(!a.has(f.name)){var m=t.getFragment(f.name),y=e(t,a,m);a.set(f.name,y)}a.get(f.name)&&(d=f);break;case"MatchBranch":case"LinkedField":case"InlineFragment":case"Defer":case"Stream":d=e(t,a,f);break;case"ScalarField":d=f;break;case"MatchField":d=e(t,a,f);break;default:f.kind,n(4)(!1,"SkipUnreachableNodeTransform: Unexpected selection kind `%s`.",f.kind)}d&&(c=c||[]).push(d)}return c?(0,r.default)({},u,{selections:c}):null}(e,t,a)},Fragment:function(e){return null}});return Array.from(t.values()).reduce(function(e,t){return t?e.add(t):e},a)}}},function(e,t,n){"use strict";var r=n(5)(n(9)),i=n(5)(n(11)),a="id",s="ID",o="Node";function l(e,t){var s=this.traverse(e,t);if(n(95).hasUnaliasedSelection(e,a))return s;var l=this.getContext().serverSchema,c=n(0).assertCompositeType(n(3).getRawType(e.type));if(n(3).canHaveSelections(c)&&n(3).hasID(l,c))return(0,r.default)({},s,{selections:(0,i.default)(s.selections).concat([t.idField])});if(n(3).isAbstractType(c)){var p=(0,i.default)(s.selections);if(n(3).mayImplement(l,c,o)){var f=n(0).assertCompositeType(l.getType(o));p.push(u(f,t.idField))}var d=n(0).assertAbstractType(c);return l.getPossibleTypes(d).forEach(function(e){!n(3).implementsInterface(e,o)&&n(3).hasID(l,e)&&p.push(u(e,t.idField))}),(0,r.default)({},s,{selections:p})}return s}function u(e,t){return{kind:"InlineFragment",directives:[],loc:{kind:"Generated"},metadata:null,typeCondition:e,selections:[t]}}e.exports={transform:function(e){var t=n(0).assertLeafType(e.serverSchema.getType(s)),r={idField:{kind:"ScalarField",alias:null,args:[],directives:[],handles:null,loc:{kind:"Generated"},metadata:null,name:a,type:t}};return n(10).transform(e,{LinkedField:l,MatchField:l},function(){return r})}}},function(e,t,n){"use strict";function r(e,t){var r=this.traverse(e,t),i={kind:"SplitOperation",name:n(86)(r.name),selections:r.selections,loc:{kind:"Derived",source:e.loc},metadata:{derivedFrom:r.name},type:r.type};return t.set(e.name,i),r}e.exports={transform:function(e){var t=new Map;return n(10).transform(e,{MatchBranch:r},function(){return t}).addAll(Array.from(t.values()))}}},function(e,t,n){"use strict";var r=n(5)(n(9));function i(e,t){var i,a,s=this.traverse(e,t),o=s.directives.find(function(e){return"stream"===e.name});if(null==o)return s;if(!(n(3).getNullableType(e.type)instanceof n(0).GraphQLList))throw n(1).createUserError("Invalid use of @stream on non-plural field '".concat(e.name,"'"),[o.loc]);s=(0,r.default)({},s,{directives:s.directives.filter(function(e){return"stream"!==e.name})});var p=o.args.find(function(e){return"if"===e.name});if(c(p))return s;var f=o.args.find(function(e){return"initial_count"===e.name}),d=l(o,"label"),h=u(t.documentName,"stream",d);return{if:null!==(i=null===p||void 0===p?void 0:p.value)&&void 0!==i?i:null,initialCount:null!==(a=null===f||void 0===f?void 0:f.value)&&void 0!==a?a:null,kind:"Stream",label:h,loc:{kind:"Derived",source:o.loc},metadata:null,selections:[s]}}function a(e,t){var r=e.directives.find(function(e){return"stream"===e.name});if(null!=r)throw n(1).createUserError("Invalid use of @stream on scalar field '".concat(e.name,"'"),[r.loc]);return this.traverse(e,t)}function s(e,t){var n,i=this.traverse(e,t),a=i.directives.find(function(e){return"defer"===e.name});if(null==a)return i;i=(0,r.default)({},i,{directives:i.directives.filter(function(e){return"defer"!==e.name})});var s=a.args.find(function(e){return"if"===e.name});if(c(s))return i;var o=l(a,"label"),p=u(t.documentName,"defer",o);return{if:null!==(n=null===s||void 0===s?void 0:s.value)&&void 0!==n?n:null,kind:"Defer",label:p,loc:{kind:"Derived",source:a.loc},metadata:null,selections:[i]}}function o(e,t){var n,i=this.traverse(e,t),a=i.directives.find(function(e){return"defer"===e.name});if(null==a)return i;i=(0,r.default)({},i,{directives:i.directives.filter(function(e){return"defer"!==e.name})});var s=a.args.find(function(e){return"if"===e.name});if(c(s))return i;var o=l(a,"label"),p=u(t.documentName,"defer",o);return{if:null!==(n=null===s||void 0===s?void 0:s.value)&&void 0!==n?n:null,kind:"Defer",label:p,loc:{kind:"Derived",source:a.loc},metadata:null,selections:[i]}}function l(e,t){var r,i=e.args.find(function(e){return e.name===t}),a=null!=i&&"Literal"===i.value.kind?i.value.value:null;if("string"!=typeof a)throw n(1).createUserError("Expected the '".concat(t,"' value to @").concat(e.name," to be a string literal."),[null!==(r=null===i||void 0===i?void 0:i.value.loc)&&void 0!==r?r:e.loc]);return a}function u(e,t,n){return"".concat(e,"$").concat(t,"$").concat(n)}function c(e){return null!=e&&"Literal"===e.value.kind&&!1===e.value.value}e.exports={transform:function(e){return n(10).transform(e,{FragmentSpread:o,InlineFragment:s,LinkedField:i,ScalarField:a},function(e){return{documentName:e.name}})}}},function(e,t,n){"use strict";function r(e){return null}function i(e){0!==e.args.length&&n(4)(!1,"InlineFragmentsTransform: Cannot flatten fragment spread `%s` with arguments. Use the `ApplyFragmentArgumentTransform` before flattening",e.name);var t=this.getContext().getFragment(e.name),r={kind:"InlineFragment",directives:e.directives,loc:{kind:"Derived",source:e.loc},metadata:e.metadata,selections:t.selections,typeCondition:t.type};return this.traverse(r)}e.exports={transform:function(e){return n(10).transform(e,{Fragment:r,FragmentSpread:i})}}},function(e,t,n){"use strict";var r=n(5)(n(9));function i(e){var t=this.traverse(e);return t.handles?(0,r.default)({},t,{handles:null}):t}e.exports={transform:function(e){return n(10).transform(e,{LinkedField:i,MatchField:i,ScalarField:i})}}},function(e,t,n){"use strict";var r=n(5)(n(9));function i(e){var t=new Map,n=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var o=a.value;t.set(o.name,o)}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return t}e.exports={transform:function(e){var t=n(92)(e),a=e,s=n(1).eachWithErrors(e.documents(),function(e){if("Root"===e.kind){var s=t.getRoot(e.name),o=i(e.argumentDefinitions),l=i(s.argumentDefinitions),u=[],c=!0,p=!1,f=void 0;try{for(var d,h=l.values()[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value;o.has(m.name)||u.push(m)}}catch(e){p=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw f}}if(0!==u.length)throw n(1).createUserError("Operation '".concat(e.name,"' references undefined variable(s):\n").concat(u.map(function(e){return"- $".concat(e.name,": ").concat(String(e.type))}).join("\n"),"."),u.map(function(e){return e.loc}));a=a.replace((0,r.default)({},e,{argumentDefinitions:e.argumentDefinitions.filter(function(e){return l.has(e.name)})}))}});if(null!=s&&0!==s.length)throw n(1).createCombinedError(s);return a}}},function(e,t,n){"use strict";var r=function(){function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._reporters=t}var t=e.prototype;return t.reportMessage=function(e){this._reporters.forEach(function(t){t.reportMessage(e)})},t.reportTime=function(e,t){this._reporters.forEach(function(n){n.reportTime(e,t)})},t.reportError=function(e,t){this._reporters.forEach(function(n){n.reportError(e,t)})},e}();e.exports=r},function(e,t,n){"use strict";e.exports=function(e){e.moduleName;var t=e.documentType,n=e.docText,r=e.concreteText,i=e.typeText,a=e.hash,s=e.sourceHash,o=t?"import type { ".concat(t," } from 'relay-runtime';"):"",l=n?"\n/*\n"+n.trim()+"\n*/\n":"",u=a?"\n * ".concat(a):"";return"/**\n * ".concat("@","flow",u,"\n */\n\n/* eslint-disable */\n\n'use strict';\n\n/*::\n").concat(o,"\n").concat(i||"","\n*/\n\n").concat(l,"\nconst node/*: ").concat(t||"empty","*/ = ").concat(r,";\n// prettier-ignore\n(node/*: any*/).hash = '").concat(s,"';\nmodule.exports = node;\n")}}]);
\No newline at end of file