relay-compiler 0.0.0-main-17affbe5 → 0.0.0-main-fda6335f

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Relay v0.0.0-main-17affbe5
3
+ * Relay v0.0.0-main-fda6335f
4
4
  *
5
5
  * Copyright (c) Facebook, Inc. and its affiliates.
6
6
  *
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-17affbe5
2
+ * Relay v0.0.0-main-fda6335f
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relay-compiler",
3
3
  "description": "A compiler tool for building GraphQL-driven applications.",
4
- "version": "0.0.0-main-17affbe5",
4
+ "version": "0.0.0-main-fda6335f",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
@@ -29,7 +29,7 @@
29
29
  "immutable": "~3.7.6",
30
30
  "invariant": "^2.2.4",
31
31
  "nullthrows": "^1.1.1",
32
- "relay-runtime": "0.0.0-main-17affbe5",
32
+ "relay-runtime": "0.0.0-main-fda6335f",
33
33
  "signedsource": "^1.0.0",
34
34
  "yargs": "^15.3.1"
35
35
  },
package/relay-compiler.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-17affbe5
2
+ * Relay v0.0.0-main-fda6335f
3
3
  */
4
4
  module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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=75)}([function(e,t){e.exports=require("@babel/runtime/helpers/interopRequireDefault")},function(e,t,n){"use strict";var r=n(0)(n(3)),a=n(7).GraphQLError;function i(e,t,n){var r=e;if(null!=t){var i=s(t);r=0===i.length?e:[e].concat(i).join("\n\n")+"\n"}return new a(r,null!=n?n:[])}function o(e,t,n){var r=e;if(null!=t){var i=s(t);r=0===i.length?e:[e].concat(i).join("\n\n")+"\n"}var o=new a("Internal Error: ".concat(r),null!=n?n:[]);return new Error(o.message)}function s(e){var t,n=[],a=(0,r.default)(e);try{for(a.s();!(t=a.n()).done;){for(var i=t.value,s=i;"Derived"===s.kind;)s=s.source;switch(s.kind){case"Source":var u=s===i?"Source: ":"Source (derived): ";n.push(u+l(s.source,c(s.source,s.start)));break;case"Generated":n.push("Source: (generated)");break;case"Unknown":n.push("Source: (unknown)");break;default:throw o("CompilerError: cannot print location '".concat(String(s),"'."))}}}catch(e){a.e(e)}finally{a.f()}return n}function l(e,t){var n=e.locationOffset.column-1,a=u(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=1===t.line?n:0,c=t.column+l,f=a.split(/\r\n|[\n\r]/g);return"".concat(e.name," (").concat(s,":").concat(c,")\n")+function(e){var t,n=e.filter((function(e){e[0];return void 0!==e[1]})),a=0,i=(0,r.default)(n);try{for(i.s();!(t=i.n()).done;){var o=t.value[0];a=Math.max(a,o.length)}}catch(e){i.e(e)}finally{i.f()}return n.map((function(e){var t,n=e[0],r=e[1];return u(a-(t=n).length)+t+r})).join("\n")}([["".concat(s-1,": "),f[i-1]],["".concat(s,": "),f[i]],["",u(c-1)+"^"],["".concat(s+1,": "),f[i+1]]])}function u(e){return Array(e+1).join(" ")}function c(e,t){for(var n,r=/\r\n|[\n\r]/g,a=1,i=t+1;(n=r.exec(e.body))&&n.index<t;)a+=1,i=t+1-(n.index+n[0].length);return{line:a,column:i}}e.exports={createCompilerError:o,createNonRecoverableUserError:function(e,t,n){var r=e;if(null!=t){var i=s(t);r=0===i.length?e:[e].concat(i).join("\n\n")+"\n"}var o=new a(r,null!=n?n:[]);return new Error(o.message)},createUserError:i,eachWithCombinedError:function(e,t){var n,o=[],s=(0,r.default)(e);try{for(s.s();!(n=s.n()).done;){var l=n.value;try{t(l)}catch(e){if(!(e instanceof a))throw e;o.push(e)}}}catch(e){s.e(e)}finally{s.f()}if(o.length>0){if(1===o.length)throw i(String(o[0]).split("\n").map((function(e,t){return 0===t?"- ".concat(e):" ".concat(e)})).join("\n"));throw i("Encountered ".concat(o.length," errors:\n")+o.map((function(e){return String(e).split("\n").map((function(e,t){return 0===t?"- ".concat(e):" ".concat(e)})).join("\n")})).join("\n"))}}}},function(e,t){e.exports=require("@babel/runtime/helpers/objectSpread2")},function(e,t){e.exports=require("@babel/runtime/helpers/createForOfIteratorHelper")},function(e,t,n){"use strict";var r=n(0)(n(2)),a=n(1).eachWithCombinedError,i=n(6);var o=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"ClientExtension":t=this._traverseChildren(e,["selections"]);break;case"Directive":t=this._traverseChildren(e,["args"]);break;case"ModuleImport":(t=this._traverseChildren(e,["selections"])).selections.length||(t=null);break;case"FragmentSpread":case"ScalarField":t=this._traverseChildren(e,["args","directives"]);break;case"InlineDataFragmentSpread":t=this._traverseChildren(e,["selections"]);break;case"LinkedField":(t=this._traverseChildren(e,["args","directives","selections"])).selections.length||(t=null);break;case"ListValue":t=this._traverseChildren(e,["items"]);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:i(!1,"IRTransformer: Unknown kind `%s`.",e.kind)}return t},t._traverseChildren=function(e,t,n){var a,o=this;return t&&t.forEach((function(t){var n=e[t];if(n){Array.isArray(n)||i(!1,"IRTransformer: Expected data for `%s` to be an array, got `%s`.",t,n);var s=o._map(n);(a||s!==n)&&((a=a||(0,r.default)({},e))[t]=s)}})),n&&n.forEach((function(t){var n=e[t];if(n){var i=o._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,a){var i=n._visit(r);(t||i!==r)&&(t=t||e.slice(0,a),i&&t.push(i))})),t||e},t._getState=function(){return this._states.length||i(!1,"IRTransformer: 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,n){var r=new o(e,t);return e.withMutations((function(t){var i=t;return a(e.documents(),(function(e){var t;if(void 0===n)t=r.visit(e,void 0);else{var a=n(e);null!=a&&(t=r.visit(e,a))}t?t!==e&&(i=i.replace(t)):i=i.remove(e.name)})),i}))}}},function(e,t){e.exports=require("@babel/runtime/helpers/toConsumableArray")},function(e,t){e.exports=require("invariant")},function(e,t){e.exports=require("graphql")},function(e,t,n){"use strict";var r=n(9),a=n(6),i=!1,o=[{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 l(e,t){var n;if(!i)return e;var r=null!==(n=null!=t?t:e.displayName)&&void 0!==n?n:e.name,a=function(){var t=p(r);try{return e.apply(this,arguments)}finally{v(t)}};return a.displayName=r,a}function u(e,t){var n;if(!i)return e;var a=null!==(n=null!=t?t:e.displayName)&&void 0!==n?n:e.name,o=function(){var t=r((function*(){var t=p(a);try{return yield e.apply(this,arguments)}finally{v(t)}}));return function(){return t.apply(this,arguments)}}();return o.displayName=a,o}function c(e,t){var n;if(!i)return e;var a=null!==(n=null!=t?t:e.displayName)&&void 0!==n?n:e.name,o=function(){var t=r((function*(){var t=h(a);try{return yield e.apply(this,arguments)}finally{v(t)}}));return function(){return t.apply(this,arguments)}}();return o.displayName=a,o}var f=process.hrtime();function d(){var e=process.hrtime(f);return 0|1e6*e[0]+Math.round(e[1]/1e3)}function p(e){var t={ph:"B",name:e,pid:0,tid:0,ts:d()};return o.push(t),s.push(t),o.length-1}var m=0;function h(e){return o.push({ph:"b",name:e,cat:"wait",id:m++,pid:0,tid:0,ts:d()}),o.length-1}function v(e){var t=o[e];"b"!==t.ph?("B"!==t.ph&&a(!1,"Begin trace phase"),s.pop()!==t&&a(!1,"GraphQLCompilerProfiler: The profile trace %s ended before nested traces. If it is async, try using Profile.waitFor or Profile.profileWait.",t.name),t!==o[o.length-1]?o.push({ph:"E",name:t.name,pid:t.pid,tid:t.tid,ts:d()}):o[e]={ph:"X",name:t.name,pid:t.pid,tid:t.tid,ts:t.ts,dur:d()-t.ts}):o.push({ph:"e",cat:t.cat,name:t.name,id:t.id,pid:t.pid,tid:t.tid,ts:d()})}e.exports={enable:function(){i=!0},getTraces:function(){return o},run:function(e,t){return l(t,e)()},asyncContext:function(e,t){return u(t,e)()},waitFor:function(e,t){return c(t,e)()},instrument:l,instrumentAsyncContext:u,instrumentWait:c,start:p,startWait:h,end:v}},function(e,t){e.exports=require("@babel/runtime/helpers/asyncToGenerator")},function(e,t,n){"use strict";var r=n(1).createCompilerError;e.exports={generateIDField:function(e,t){var n=e.getFieldByName(t,"id");if(null==n)throw new r("Expected an 'id' field on type '".concat(e.getTypeString(t),"'."));return{kind:"ScalarField",alias:"id",args:[],directives:[],handles:null,loc:{kind:"Generated"},metadata:null,name:"id",type:e.assertScalarFieldType(e.getFieldType(n))}},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},getNullableBooleanInput:function(e){return e.assertInputType(e.expectBooleanType())},getNonNullBooleanInput:function(e){return e.assertInputType(e.getNonNullType(e.expectBooleanType()))},getNullableStringInput:function(e){return e.assertInputType(e.expectStringType())},getNonNullStringInput:function(e){return e.assertInputType(e.getNonNullType(e.expectStringType()))},getNullableIdInput:function(e){return e.assertInputType(e.expectIdType())},getNonNullIdInput:function(e){return e.assertInputType(e.getNonNullType(e.expectIdType()))}}},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("relay-runtime")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("crypto")},function(e,t,n){"use strict";e.exports=function(e){return n(14).createHash("md5").update(e,"utf8").digest("hex")}},function(e,t){e.exports=require("nullthrows")},function(e,t){e.exports=require("immutable")},function(e,t,n){"use strict";var r=n(1).createUserError,a=n(8),i=n(17).OrderedMap,o=n(6),s=function(){function e(e){this._isMutable=!1,this._documents=new i,this._withTransform=new WeakMap,this._schema=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||o(!1,"CompilerContext: Expected to replace existing node %s, but one 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&&o(!1,"CompilerContext: 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 n=this;return a.run("applyTransforms",(function(){return e.reduce((function(e,n){return e.applyTransform(n,t)}),n)}))},t.applyTransform=function(e,t){var n=this._withTransform.get(e);if(!n){var r=process.hrtime();n=a.instrument(e)(this);var i=process.hrtime(r),o=Math.round((1e9*i[0]+i[1])/1e6);t&&t.reportTime(e.name,o),this._withTransform.set(e,n)}return n},t.get=function(e){return this._documents.get(e)},t.getFragment=function(e,t){var n=this._documents.get(e);if(null==n)throw r("Cannot find fragment '".concat(e,"'."),null!=t?[t]:null);if("Fragment"!==n.kind)throw r("Cannot find fragment '".concat(e,"', a document with this name exists ")+"but is not a fragment.",[n.loc,t].filter(Boolean));return n},t.getRoot=function(e){var t=this._documents.get(e);if(null==t)throw r("Cannot find root '".concat(e,"'."));if("Root"!==t.kind)throw r("Cannot find root '".concat(e,"', a document with this name exists but ")+"is not a root.",[t.loc]);return 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._update=function(t){var n=this._isMutable?this:new e(this.getSchema());return n._documents=t,n},t.getSchema=function(){return this._schema},e}();e.exports=s},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=[],r=[],a=0;a<e.length;a++){var i=e[a];t(i)?n.push(i):r.push(i)}return[n,r]}},function(e,t,n){"use strict";var r=n(7).visit,a={Argument:["value"],ClientExtension:["selections"],Condition:["condition","selections"],Defer:["selections","if"],Directive:["args"],Fragment:["argumentDefinitions","directives","selections"],FragmentSpread:["args","directives"],InlineDataFragmentSpread:["selections"],InlineFragment:["directives","selections"],LinkedField:["args","directives","selections"],Literal:[],LocalArgumentDefinition:[],ModuleImport:["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 r(e,t,a)}}},function(e,t,n){"use strict";e.exports=function(e){var t={};return e.forEach((function(e){"Literal"===e.value.kind&&(t[e.name]=e.value.value)})),t}},function(e,t,n){"use strict";e.exports={getName:function(e){if(null==e.name)throw new Error("All fragments and operations have to have names in Relay");return e.name.value}}},function(e,t,n){"use strict";var r=n(9),a=n(42),i=n(77);function o(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 i.Client,this._attemptLimit=Math.max(Math.min(5,e),0)}e.isAvailable=function(){return new Promise((function(e){var t=a.spawn("watchman",["version"]);t.on("error",(function(){e(!1)})),t.on("close",(function(t){e(0===t)}))}))};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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;;)try{return e++,yield this._command.apply(this,n)}catch(t){if(e>this._attemptLimit)throw t;yield o(500*Math.pow(2,e)),this._client.end(),this._client=new i.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(0),a=r(n(2)),i=r(n(3)),o=r(n(5)),s=n(47).DEFAULT_HANDLE_KEY,l=n(78),u=n(19),c=n(1),f=c.createCompilerError,d=c.createUserError,p=c.eachWithCombinedError,m=n(48).getFieldDefinitionLegacy,h=n(8),v=n(10).isExecutableDefinitionAST,y=n(7),g=y.Source,b=y.parse,T=y.parseType,S=y.print,w=new Set(["argumentDefinitions","uncheckedArguments_DEPRECATED","arguments"]);var _=function(){function e(e,t){var n=this;this._definitions=new Map,this._getFieldDefinition=m,this._schema=e;var r=new Set;if(t.forEach((function(e){if(v(e)){var t=N(e);if(n._definitions.has(t))return void r.add(t);n._definitions.set(t,e)}})),r.size)throw d("RelayParser: Encountered duplicate definitions for one or more documents: each document must have a unique name. Duplicated documents:\n"+Array.from(r,(function(e){return"- ".concat(e)})).join("\n"))}var t=e.prototype;return t.transform=function(){var e=this,t=[],n=new Map;return p(this._definitions,(function(t){var r=t[0],a=t[1],i=e._buildArgumentDefinitions(a);n.set(r,{definition:a,variableDefinitions:i})})),p(n.values(),(function(r){var a=r.definition,i=r.variableDefinitions,o=function(e,t,n,r,a){return new k(e,t,n,r,a).transform()}(e._schema,e._getFieldDefinition,n,a,i);t.push(o)})),t},t._buildArgumentDefinitions=function(e){switch(e.kind){case"OperationDefinition":return this._buildOperationArgumentDefinitions(e);case"FragmentDefinition":return this._buildFragmentArgumentDefinitions(e);default:throw f("Unexpected ast kind '".concat(e.kind,"'."),[e])}},t._buildFragmentArgumentDefinitions=function(e){var t=this,n=(e.directives||[]).filter((function(e){return"argumentDefinitions"===N(e)}));if(!n.length)return new Map;if(1!==n.length)throw d("Directive @".concat("argumentDefinitions"," may be defined at most once per ")+"fragment.",null,n);var r=n[0],a=r.arguments;if(null==r||!Array.isArray(a))return new Map;if(!a.length)throw d("Directive @".concat("argumentDefinitions"," requires arguments: remove the ")+"directive to skip defining local variables for this fragment.",null,[r]);var i=new Map;return a.forEach((function(e){var n,r,a,o=N(e),s=i.get(o);if(null!=s)throw d("Duplicate definition for variable '$".concat(o,"'."),null,[s.ast,e]);if("ObjectValue"!==e.value.kind)throw d("Expected definition for variable '$".concat(o,"' to be an object ")+"with the shape: '{type: string, defaultValue?: mixed}.",null,[e.value]);if(e.value.fields.forEach((function(t){var n=N(t);if("type"===n)a=E(t.value,t);else{if("defaultValue"!==n)throw d("Expected definition for variable '$".concat(o,"' to be an object ")+"with the shape: '{type: string, defaultValue?: mixed}.",null,[e.value]);r=t.value}})),"string"!=typeof a)throw d("Expected definition for variable '$".concat(o,"' to be an object ")+"with the shape: '{type: string, defaultValue?: mixed}.",null,[e.value]);var l=t._schema.getTypeFromAST(T(a));if(null==l)throw d('Unknown type "'.concat(a,'" referenced in the argument definitions.'),null,[e]);var u=t._schema.asInputType(l);if(null==u)throw d('Expected type "'.concat(a,'" to be an input type in the "').concat(e.name.value,'" argument definitions.'),null,[e.value]);var c=null!=r?F(t._schema,r,u,(function(e){throw d("Expected 'defaultValue' to be a literal, got a variable.",null,[e])})):null;if(null!=c&&"Literal"!==c.kind)throw d("Expected 'defaultValue' to be a literal, got a variable.",[c.loc]);i.set(o,{ast:e,defaultValue:null!==(n=null==c?void 0:c.value)&&void 0!==n?n:null,defined:!0,name:o,type:u})})),i},t._buildOperationArgumentDefinitions=function(e){var t=this._schema,n=new Map;return(e.variableDefinitions||[]).forEach((function(e){var r=N(e.variable),a=t.getTypeFromAST(e.type);if(null==a)throw d("Unknown type: '".concat(D(e.type),"'."),null,[e.type]);var i=t.asInputType(a);if(null==i)throw d('Expected type "'.concat(D(e.type),'" to be an input type.'),null,[e.type]);var o=e.defaultValue?E(e.defaultValue,e):null,s=n.get(r);if(null!=s)throw d("Duplicate definition for variable '$".concat(r,"'."),null,[s.ast,e]);n.set(r,{ast:e,defaultValue:o,defined:!0,name:r,type:i})})),n},e}();var k=function(){function e(e,t,n,r,a){this._definition=r,this._entries=n,this._getFieldDefinition=t,this._schema=e,this._variableDefinitions=a,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 f("Unsupported definition type ".concat(e.kind),[e])}},t._recordAndVerifyVariableReference=function(e,t,n){if(null!=n){var r=this._variableDefinitions.get(t);if(null!=r){var a=r.type;if(null!=r.defaultValue&&(a=this._schema.getNonNullType(this._schema.getNullableType(a))),!this._schema.isTypeSubTypeOf(a,n))throw d("Variable '$".concat(t,"' was defined as type '").concat(String(r.type),"' but used in a location expecting the type '").concat(String(n),"'"),null,[r.ast,e])}else{var i=this._unknownVariables.get(t);if(i&&i.type){var o=i.ast,s=i.type;if(!this._schema.isTypeSubTypeOf(n,s)&&!this._schema.isTypeSubTypeOf(s,n))throw d("Variable '$".concat(t,"' was used in locations expecting the conflicting types '").concat(String(s),"' and '").concat(String(n),"'."),null,[o,e]);this._schema.isTypeSubTypeOf(n,s)&&this._unknownVariables.set(t,{ast:e,type:n})}else this._unknownVariables.set(t,{ast:e,type:n})}}else this._variableDefinitions.has(t)||this._unknownVariables.has(t)||this._unknownVariables.set(t,{ast:e,type:null})},t._getDirectiveLocations=function(){if(!this._directiveLocations){var e=this._schema.getDirectives();this._directiveLocations=new Map;var t,n=(0,i.default)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._directiveLocations.set(r.name,r.locations)}}catch(e){n.e(e)}finally{n.f()}}return this._directiveLocations},t._validateDirectivesLocation=function(e,t){if(e&&e.length){var n=this._getDirectiveLocations(),r=e.filter((function(e){var r=N(e);if(w.has(r))return!1;var a=n.get(r);if(null==a)throw d("Unknown directive '".concat(r,"'."),null,[e]);return!a.some((function(e){return e===t}))}));if(r.length){var a=r.map((function(e){return"@"+N(e)})).join(", ");throw d("Invalid directives ".concat(a," found on ").concat(t,"."),null,r)}}},t._transformFragment=function(e){var t=this._transformDirectives((e.directives||[]).filter((function(e){return"argumentDefinitions"!==N(e)})),"FRAGMENT_DEFINITION"),n=this._schema.getTypeFromAST(e.typeCondition);if(null==n)throw d('Fragment "'.concat(e.name.value,'" cannot condition on unknown ')+'type "'.concat(String(e.typeCondition.name.value),'".'),null,[e.typeCondition]);var r=this._schema.asCompositeType(n);if(null==r)throw d('Fragment "'.concat(e.name.value,'" cannot condition on non composite ')+'type "'.concat(String(r),'".'),null,[e.typeCondition]);var a,s=this._transformSelections(e.selectionSet,r,e.typeCondition),l=(0,o.default)(x(this._variableDefinitions)),u=(0,i.default)(this._unknownVariables);try{for(u.s();!(a=u.n()).done;){var c=a.value,f=c[0],p=c[1];l.push({kind:"RootArgumentDefinition",loc:C(p.ast.loc),name:f,type:p.type})}}catch(e){u.e(e)}finally{u.f()}return{kind:"Fragment",directives:t,loc:C(e.loc),metadata:null,name:N(e),selections:s,type:r,argumentDefinitions:l}},t._getLocationFromOperation=function(e){switch(e.operation){case"query":return"QUERY";case"mutation":return"MUTATION";case"subscription":return"SUBSCRIPTION";default:throw e.operation,f("Unknown operation type '".concat(e.operation,"'."),null,[e])}},t._transformOperation=function(e){var t,n,r=N(e),a=this._transformDirectives(e.directives||[],this._getLocationFromOperation(e)),i=this._schema;switch(e.operation){case"query":n="query",t=i.expectQueryType();break;case"mutation":n="mutation",t=i.expectMutationType();break;case"subscription":n="subscription",t=i.expectSubscriptionType();break;default:throw e.operation,f("Unknown operation type '".concat(e.operation,"'."),null,[e])}if(!e.selectionSet)throw d("Expected operation to have selections.",null,[e]);var o=this._transformSelections(e.selectionSet,t),s=x(this._variableDefinitions);if(0!==this._unknownVariables.size)throw d("Query '".concat(r,"' references undefined variables."),null,Array.from(this._unknownVariables.values(),(function(e){return e.ast})));return{kind:"Root",operation:n,loc:C(e.loc),metadata:null,name:r,argumentDefinitions:s,directives:a,selections:o,type:t}},t._transformSelections=function(e,t,n){var r=this;return e.selections.map((function(e){var i;if("Field"===e.kind)i=r._transformField(e,t);else if("FragmentSpread"===e.kind)i=r._transformFragmentSpread(e,t,n);else{if("InlineFragment"!==e.kind)throw e.kind,f("Unknown ast kind '".concat(e.kind,"'."),[e]);i=r._transformInlineFragment(e,t,n)}var o=r._splitConditions(i.directives),s=o[0],l=o[1],u=function(e,t){var n=t;return e.forEach((function(e){n=[(0,a.default)((0,a.default)({},e),{},{selections:n})]})),n}(s,[(0,a.default)((0,a.default)({},i),{},{directives:l})]);if(1!==u.length)throw f("Expected exactly one condition node.",null,e.directives);return u[0]}))},t._transformInlineFragment=function(e,t,n){var r,a=this._schema,i=null!=e.typeCondition?a.getTypeFromAST(e.typeCondition):t;if(null==i)throw d("Inline fragments can only be on object, interface or union types"+", got unknown type '".concat(D(e.typeCondition),"'."),null,[null!==(r=e.typeCondition)&&void 0!==r?r:e]);var o,s=a.getTypeString(i);if(null==(i=a.asCompositeType(i)))throw d("Inline fragments can only be on object, interface or union types"+", got '".concat(s,"'."),null,[null!==(o=e.typeCondition)&&void 0!==o?o:e]);var l=this._schema.assertCompositeType(this._schema.getRawType(t));I(this._schema,i,l,null,e.typeCondition,n);var u=this._transformDirectives(e.directives||[],"INLINE_FRAGMENT"),c=this._transformSelections(e.selectionSet,i,e.typeCondition);return{kind:"InlineFragment",directives:u,loc:C(e.loc),metadata:null,selections:c,typeCondition:i}},t._transformFragmentSpread=function(e,t,n){var r=this,a=N(e),i=u(e.directives||[],(function(e){var t=N(e);return"arguments"===t||"uncheckedArguments_DEPRECATED"===t})),o=i[0],s=i[1];if(o.length>1)throw d("Directive @".concat("arguments"," may be used at most once per a fragment spread."),null,o);var l=this._entries.get(a);if(null==l)throw d("Unknown fragment '".concat(a,"'."),null,[e.name]);var c=function(e){if("FragmentDefinition"===e.kind)return e.typeCondition;throw f("Expected ast node to be a FragmentDefinition node.",null,[e])}(l.definition),p=this._schema.assertCompositeType(this._schema.expectTypeFromAST(c)),m=this._schema.assertCompositeType(this._schema.getRawType(t));I(this._schema,p,m,e.name.value,e,n);var h,v=l.variableDefinitions,y=o[0];if(null!=y){var g="uncheckedArguments_DEPRECATED"===N(y),b=!1;if(h=(y.arguments||[]).map((function(e){var t,n=N(e),i=e.value,o=v.get(n),s=null!==(t=null==o?void 0:o.type)&&void 0!==t?t:null;if("Variable"===i.kind){if(null==o&&!g)throw d("Variable @".concat("arguments"," values are only supported when the ")+"argument is defined with @".concat("argumentDefinitions",". Check ")+"the definition of fragment '".concat(a,"'."),null,[e.value,l.definition]);return b=b||null==o,{kind:"Argument",loc:C(e.loc),name:n,value:r._transformVariable(i,null),type:null}}if(null==s)throw d("Literal @".concat("arguments"," values are only supported when the ")+"argument is defined with @".concat("argumentDefinitions",". Check ")+"the definition of fragment '".concat(a,"'."),null,[e.value,l.definition]);var u=r._transformValue(i,s);return{kind:"Argument",loc:C(e.loc),name:n,value:u,type:s}})),g&&!b)throw d("Invalid use of @".concat("uncheckedArguments_DEPRECATED",": all arguments ")+"are defined, use @".concat("arguments"," instead."),null,[y])}var T=this._transformDirectives(s,"FRAGMENT_SPREAD");return{kind:"FragmentSpread",args:h||[],metadata:null,loc:C(e.loc),name:a,directives:T}},t._transformField=function(e,t){var n,r,a=this._schema,i=N(e),o=this._getFieldDefinition(a,t,i,e);if(null==o)throw d("Unknown field '".concat(i,"' on type '").concat(a.getTypeString(t),"'."),null,[e]);var s=null!==(n=null===(r=e.alias)||void 0===r?void 0:r.value)&&void 0!==n?n:i,l=this._transformArguments(e.arguments||[],a.getFieldArgs(o),o),c=u(e.directives||[],(function(e){return"__clientField"!==N(e)})),f=c[0],p=c[1],m=this._transformDirectives(f,"FIELD"),h=a.getFieldType(o),v=this._transformHandle(i,l,p);if(a.isLeafType(a.getRawType(h))){if(e.selectionSet&&e.selectionSet.selections&&e.selectionSet.selections.length)throw d("Expected no selections for scalar field '".concat(i,"'."),null,[e]);return{kind:"ScalarField",alias:s,args:l,directives:m,handles:v,loc:C(e.loc),metadata:null,name:i,type:a.assertScalarFieldType(h)}}var y=e.selectionSet?this._transformSelections(e.selectionSet,h):null;if(null==y||0===y.length)throw d("Expected at least one selection for non-scalar field '".concat(i,"' on type '").concat(a.getTypeString(h),"'."),null,[e]);return{kind:"LinkedField",alias:s,args:l,connection:!1,directives:m,handles:v,loc:C(e.loc),metadata:null,name:i,selections:y,type:a.assertLinkedFieldType(h)}},t._transformHandle=function(e,t,n){var r=null;return n.forEach((function(n){var a=(n.arguments||[]).find((function(e){return"handle"===N(e)}));if(a){var i,o=s,l=null,u=E(a.value,a);if("string"!=typeof u)throw d("Expected a string literal argument for the @".concat("__clientField"," directive."),null,[a.value]);i=u;var c=(n.arguments||[]).find((function(e){return"key"===N(e)}));if(c){var f=E(c.value,c);if("string"!=typeof f)throw d("Expected a string literal argument for the @".concat("__clientField"," directive."),null,[c.value]);o=f}var p=(n.arguments||[]).find((function(e){return"filters"===N(e)}));if(p){var m=E(p.value,p);if(!Array.isArray(m)||!m.every((function(e){return"string"==typeof e&&t.some((function(t){return t.name===e}))})))throw d("Expected an array of argument names on field '".concat(e,"'."),null,[p.value]);l=m}var h=(n.arguments||[]).find((function(e){return"dynamicKey_UNSTABLE"===N(e)}));if(null!=h)throw d("Dynamic keys are only supported with @connection.",null,[h.value]);(r=r||[]).push({name:i,key:o,filters:l,dynamicKey:null})}})),r},t._transformDirectives=function(e,t){var n=this;return this._validateDirectivesLocation(e,t),e.map((function(e){var t=N(e),r=n._schema.getDirective(t);if(null==r)throw d("Unknown directive '".concat(t,"'."),null,[e]);var a=n._transformArguments(e.arguments||[],r.args.map((function(e){return{name:e.name,type:e.type,defaultValue:e.defaultValue}})),null,t);return{kind:"Directive",loc:C(e.loc),name:t,args:a}}))},t._transformArguments=function(e,t,n,r){var a=this;return e.map((function(e){var i=N(e),o=t.find((function(e){return e.name===i}));if(null==o){var s="Unknown argument '".concat(i,"'")+(n?" on field '".concat(a._schema.getFieldName(n),"'")+" of type '".concat(a._schema.getTypeString(a._schema.getFieldParentType(n)),"'."):null!=r?" on directive '@".concat(r,"'."):".");throw d(s,null,[e])}var l=a._transformValue(e.value,o.type);return{kind:"Argument",loc:C(e.loc),name:i,value:l,type:o.type}}))},t._splitConditions=function(e){var t=u(e,(function(e){return"include"===e.name||"skip"===e.name})),n=t[0],r=t[1];return[n.map((function(e){var t="include"===e.name,n=e.args[0];if(null==n||"if"!==n.name)throw d("Expected an 'if' argument to @".concat(e.name,"."),[e.loc]);if("Variable"!==n.value.kind&&"Literal"!==n.value.kind)throw d("Expected the 'if' argument to @".concat(e.name," to be a variable or literal."),[e.loc]);return{kind:"Condition",condition:n.value,loc:e.loc,passingValue:t,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})),r]},t._transformVariable=function(e,t){var n=N(e);return this._recordAndVerifyVariableReference(e,n,t),{kind:"Variable",loc:C(e.loc),variableName:n,type:t}},t._transformValue=function(e,t){var n=this;return F(this._schema,e,t,(function(e,t){return n._transformVariable(e,t)}))},e}();function F(e,t,n,r){if("Variable"===t.kind)return r(t,n);if("NullValue"===t.kind){if(e.isNonNull(n))throw d("Expected a value matching type '".concat(String(n),"'."),null,[t]);return{kind:"Literal",loc:C(t.loc),value:null}}return function(e,t,n,r){var a=e.getNullableType(n);if(e.isList(a)){if("ListValue"!==t.kind){if(!e.isInputType(e.getListItemType(a)))throw d("Expected type ".concat(e.getTypeString(a)," to be an input type."),null,[t]);return F(e,t,e.assertInputType(e.getListItemType(a)),r)}var i=e.assertInputType(e.getListItemType(a)),o=[],s=[],u=!0;return t.values.forEach((function(t){var n=F(e,t,i,r);"Literal"===n.kind&&o.push(n.value),s.push(n),u=u&&"Literal"===n.kind})),u?{kind:"Literal",loc:C(t.loc),value:o}:{kind:"ListValue",loc:C(t.loc),items:s}}if(e.isInputObject(a)){if("ObjectValue"!==t.kind)throw d("Expected a value matching type '".concat(e.getTypeString(n),"'."),null,[t]);var c={},p=[],m=!0,h=e.assertInputObjectType(a),v=new Set(e.getFields(h).filter((function(t){return e.isNonNull(e.getFieldType(t))})).map((function(t){return e.getFieldName(t)}))),y=new Map;if(t.fields.forEach((function(t){var n=N(t),a=y.get(n);if(a)throw d("Duplicated field name '".concat(n,"' in the input object."),null,[t,a]);var i=e.getFieldByName(h,n);if(!i)throw d("Unknown field '".concat(n,"' on type '").concat(e.getTypeString(h),"'."),null,[t]);var o=e.getFieldConfig(i),s=e.assertInputType(o.type),l=F(e,t.value,s,r);"Literal"===l.kind&&(c[t.name.value]=l.value),p.push({kind:"ObjectFieldValue",loc:C(t.loc),name:n,value:l}),y.set(n,t),v.delete(n),m=m&&"Literal"===l.kind})),v.size>0){var g=Array.from(v).map((function(e){return"'".concat(e,"'")})).join(", ");throw d("Missing non-optional field".concat(v.size>1?"s:":""," ").concat(g," for input type '").concat(e.getTypeString(h),"'."),null,[t])}return m?{kind:"Literal",loc:C(t.loc),value:c}:{kind:"ObjectValue",loc:C(t.loc),fields:p}}if(e.isId(a)){if("IntValue"===t.kind)return{kind:"Literal",loc:C(t.loc),value:parseInt(t.value,10)};if("StringValue"===t.kind)return{kind:"Literal",loc:C(t.loc),value:t.value};throw d("Invalid value, expected a value matching type '".concat(e.getTypeString(n),"'."),null,[t])}if(e.isEnum(a)){var b=e.assertEnumType(a),T=e.parseLiteral(b,t);if(null==T){var S=e.getEnumValues(b);throw d("Expected a value matching type '".concat(e.getTypeString(n),"'. Possible values: ").concat(l(S),"?'"),null,[t])}return{kind:"Literal",loc:C(t.loc),value:T}}if(e.isScalar(a)){var w=e.parseLiteral(e.assertScalarType(a),t);if(null==w)throw d("Expected a value matching type '".concat(e.getTypeString(n),"'."),null,[t]);return{kind:"Literal",loc:C(t.loc),value:w}}throw f("Unsupported type '".concat(e.getTypeString(n),"' for input value, expected a GraphQLList, ")+"GraphQLInputObjectType, GraphQLEnumType, or GraphQLScalarType.",null,[t])}(e,t,n,r)}function E(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 E(e,t)}));case"NullValue":return null;case"ObjectValue":var n={};return e.fields.forEach((function(e){var r=N(e),a=E(e.value,t);n[r]=a})),n;case"Variable":throw d("Unexpected variable where a literal (static) value is required.",null,[e,t]);default:throw e.kind,f("Unknown ast kind '".concat(e.kind,"'."),[e])}}function x(e){return Array.from(e.values(),(function(e){var t=e.ast,n=e.name,r=e.defaultValue,a=e.type;return{kind:"LocalArgumentDefinition",loc:C(t.loc),name:n,type:a,defaultValue:r}}))}function C(e){return null==e?{kind:"Unknown"}:{kind:"Source",start:e.start,end:e.end,source:e.source}}function N(e){var t,n=null===(t=e.name)||void 0===t?void 0:t.value;if("string"!=typeof n)throw f("Expected ast node to have a 'name'.",null,[e]);return n}function D(e){return e?S(e):"Undefined Type Name"}function I(e,t,n,r,a,i){if(!e.doTypesOverlap(t,e.assertCompositeType(n))){var o=[];i&&o.push(i),a&&o.push(a);var s=e.isAbstractType(n)?Array.from(e.getPossibleTypes(e.assertAbstractType(n))):[],l="";throw 0!==s.length&&(l=" Possible concrete types include ".concat(s.sort().slice(0,3).map((function(t){return"'".concat(e.getTypeString(t),"'")})).join(", "),", etc.")),d((null!=r?"Fragment '".concat(r,"' cannot be spread here as objects of "):"Fragment cannot be spread here as objects of ")+"type '".concat(e.getTypeString(n),"' ")+"can never be of type '".concat(e.getTypeString(t),"'.")+l,null,o)}}e.exports={parse:function(e,t,n){var r=b(new g(t,n));return new _(e.extend(r),r.definitions).transform()},transform:function(e,t){return h.run("RelayParser.transform",(function(){return new _(e,t).transform()}))}}},function(e,t,n){"use strict";var r=n(1).createCompilerError;e.exports=function(e,t){if(!e.isAbstractType(t))throw r("Expected an abstract type");return"__is".concat(e.getTypeString(t))}},function(e,t,n){"use strict";var r=n(0),a=r(n(3)),i=r(n(2)),o=n(18),s=n(1).createCompilerError,l=n(20),u=n(10);function c(e,t,n){var r=n.name,a=t.get(r);if(null!=a)return a;var i=new Map;return n.argumentDefinitions.forEach((function(e){"LocalArgumentDefinition"===e.kind&&i.set(e.name,e)})),t.set(r,i),f(e,t,i,n),t.set(r,i),i}function f(e,t,n,r){l.visit(r,{FragmentSpread:function(r){var i=e.getFragment(r.name,r.loc),o=c(e,t,i);r.args.forEach((function(e){var t=o.get(e.name);null==t||"Variable"!==e.value.kind||n.has(e.value.variableName)||n.set(e.value.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:e.loc},name:e.value.variableName,type:t.type})}));var s,l=(0,a.default)(o.values());try{for(l.s();!(s=l.n()).done;){var u=s.value;"RootArgumentDefinition"===u.kind&&n.set(u.name,u)}}catch(e){l.e(e)}finally{l.f()}},Argument:function(e){if("Literal"===e.value.kind)return!1;for(var t=[e.value];t.length>0;){var r=t.pop();if("Variable"===r.kind){var a,i=null!==(a=r.type)&&void 0!==a?a:e.type;if(null==i)continue;n.has(r.variableName)||n.set(r.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:e.loc},name:r.variableName,type:i})}else"ObjectValue"===r.kind?r.fields.forEach((function(e){"Literal"!==e.value.kind&&t.push(e.value)})):"ListValue"===r.kind&&r.items.forEach((function(e){"Literal"!==e.kind&&t.push(e)}))}return!1},Condition:function(t){var r,a=t.condition;if("Variable"===a.kind){var i=null!==(r=a.type)&&void 0!==r?r:u.getNonNullBooleanInput(e.getSchema());n.has(a.variableName)||n.set(a.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:a.loc},name:a.variableName,type:i})}},Defer:function(t){var r,a=t.if;if(null!=a&&"Variable"===a.kind){var i=null!==(r=a.type)&&void 0!==r?r:u.getNonNullBooleanInput(e.getSchema());n.has(a.variableName)||n.set(a.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:a.loc},name:a.variableName,type:i})}},Stream:function(t){[t.if,t.initialCount].forEach((function(t){var r;if(null!=t&&"Variable"===t.kind){var a=null!==(r=t.type)&&void 0!==r?r:u.getNonNullBooleanInput(e.getSchema());n.has(t.variableName)||n.set(t.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:t.loc},name:t.variableName,type:a})}}))},LinkedField:function(t){t.handles&&t.handles.forEach((function(t){var r,a=t.dynamicKey;if(null!=a){var i=null!==(r=a.type)&&void 0!==r?r:u.getNullableStringInput(e.getSchema());n.has(a.variableName)||n.set(a.variableName,{kind:"RootArgumentDefinition",loc:{kind:"Derived",source:a.loc},name:a.variableName,type:i})}}))}})}e.exports=function(e){var t=new Map;return new o(e.getSchema()).addAll(Array.from(e.documents(),(function(n){switch(n.kind){case"Fragment":var r=c(e,t,n);return(0,i.default)((0,i.default)({},n),{},{argumentDefinitions:Array.from(r.values())});case"Root":return function(e,t,n){var r,o=new Map,l=new Map,u=(0,a.default)(n.argumentDefinitions.entries());try{for(u.s();!(r=u.n()).done;){var c=r.value,d=c[0],p=c[1];"LocalArgumentDefinition"===p.kind&&l.set(d,p)}}catch(e){u.e(e)}finally{u.f()}return f(e,t,o,n),(0,i.default)((0,i.default)({},n),{},{argumentDefinitions:Array.from(o.values(),(function(e){var t,n;if("RootArgumentDefinition"!==e.kind)throw s("inferRootArgumentDefinitions: Expected inferred variable '$".concat(e.name,"' to be a root variables."),[e.loc]);var r=l.get(e.name),a=null!==(t=null==r?void 0:r.type)&&void 0!==t?t:e.type;return{defaultValue:null!==(n=null==r?void 0:r.defaultValue)&&void 0!==n?n:null,kind:"LocalArgumentDefinition",loc:e.loc,name:e.name,type:a}}))})}(e,t,n);case"SplitOperation":return n;default:throw s("inferRootArgumentDefinitions: Unsupported kind '".concat(n.kind,"'."))}})))}},function(e,t,n){"use strict";var r=n(0)(n(3));e.exports={buildFragmentSpread:function(e){var t,n=[],a=(0,r.default)(e.argumentDefinitions);try{for(a.s();!(t=a.n()).done;){var i=t.value;"LocalArgumentDefinition"===i.kind&&n.push({kind:"Argument",loc:{kind:"Derived",source:i.loc},name:i.name,type:i.type,value:{kind:"Variable",loc:{kind:"Derived",source:i.loc},variableName:i.name,type:i.type}})}}catch(e){a.e(e)}finally{a.f()}return{args:n,directives:[],kind:"FragmentSpread",loc:{kind:"Derived",source:e.loc},metadata:null,name:e.name}},buildOperationArgumentDefinitions:function(e){var t=e.map((function(e){return"LocalArgumentDefinition"===e.kind?e:{kind:"LocalArgumentDefinition",name:e.name,type:e.type,defaultValue:null,loc:e.loc}}));return t.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),t}}},function(e,t){e.exports=require("@babel/runtime/helpers/defineProperty")},function(e,t,n){"use strict";var r=n(0),a=r(n(3)),i=r(n(43)),o=n(1).createCompilerError,s=n(10).isSchemaDefinitionAST,l=n(7),u=l.GraphQLBoolean,c=l.GraphQLFloat,f=l.GraphQLID,d=l.GraphQLInt,p=l.GraphQLString,m=l.parse,h=l.parseType,v=l.print,y=l.valueFromASTUntyped,g=function(){function e(e,t){this.name=e,this.isClient=t}var t=e.prototype;return t.toString=function(){return this.name},t.toJSON=function(){return String(this)},e}(),b=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.default)(t,e),t}(g),T=function(e){function t(t,n,r){var a;return(a=e.call(this,t,r)||this).values=n,a}return(0,i.default)(t,e),t}(g),S=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.default)(t,e),t}(g),w=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.default)(t,e),t}(g),_=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.default)(t,e),t}(g),k=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.default)(t,e),t}(g),F=function(){function e(e){this.ofType=e,this._typeString="[".concat(String(this.ofType),"]")}var t=e.prototype;return t.toString=function(){return this._typeString},t.toJSON=function(){return this.toString()},e}(),E=function(){function e(e){this.ofType=e,this._typeString="".concat(String(this.ofType),"!")}var t=e.prototype;return t.toString=function(){return this._typeString},t.toJSON=function(){return this.toString()},e}(),x=function(e,t,n,r,a,i,o){this.name=t,this.type=n,this.belongsTo=r,this.isClient=o,this.args=function(e,t){return new Map(H(e,t).map((function(e){return[e.name,e]})))}(e,a),this.directives=i};function C(e){return e instanceof E||e instanceof F?C(e.ofType):e}function N(e,t,n){return U(t)&&function(e,t){var n=new Set;return e.getPossibleTypes(t).forEach((function(e){O(e)&&n.add(e)})),Array.from(n)}(e,t).some((function(t){return e.implementsInterface(e.assertCompositeType(t),n)}))}var D=Symbol("Query"),I=Symbol("Mutation"),A=Symbol("Subscription");function R(e){return e instanceof b}function O(e){return e instanceof w}function M(e){return e instanceof T}function L(e){return e instanceof S}function j(e){return e instanceof _}function V(e){return e instanceof k}function q(e){return e instanceof F||e instanceof E}function P(e){return e instanceof b||e instanceof w||e instanceof T||e instanceof S||e instanceof _||e instanceof k}function U(e){return e instanceof S||e instanceof k}function G(e){return e instanceof w||e instanceof S||e instanceof k}function B(e){return e instanceof _||e instanceof b||e instanceof T}var W=function(){function e(e){var t=this;this._typeMap=e,this._typeWrappersMap=new Map,this._fieldsMap=new Map,this._typeNameMap=new Map,this._clientIdMap=new Map,this._directiveMap=new Map(e.getDirectives().map((function(e){return[e.name,{locations:e.locations,args:H(t,e.args),name:e.name,isClient:e.isClient}]})))}var t=e.prototype;return t.getTypes=function(){return this._typeMap.getTypes()},t.getTypeFromAST=function(e){if("NonNullType"===e.kind){var t=this.getTypeFromAST(e.type);if(!t)return;if(t instanceof E)throw o("Unable to wrap non-nullable type with non-null wrapper.");var n="".concat(this.getTypeString(t),"!"),r=this._typeWrappersMap.get(n);return r||(r=new E(t),this._typeWrappersMap.set(n,r),r)}if("ListType"===e.kind){var a=this.getTypeFromAST(e.type);if(!a)return;var i="[".concat(this.getTypeString(a),"]"),s=this._typeWrappersMap.get(i);return s||(s=new F(a),this._typeWrappersMap.set(i,s),s)}return this._typeMap.getTypeByName(e.name.value)},t._getRawType=function(e){var t,n=this._typeWrappersMap.get(e);return n||("string"==typeof e?this.getTypeFromAST(h(e)):(e===D?t=this._typeMap.getQueryType():e===I?t=this._typeMap.getMutationType():e===A&&(t=this._typeMap.getSubscriptionType()),t instanceof w?t:void 0))},t.getTypeFromString=function(e){return this._getRawType(e)},t.expectTypeFromString=function(e){var t=this.getTypeFromString(e);if(null==t)throw o("Unknown type: '".concat(e,"'."));return t},t.expectTypeFromAST=function(e){var t=this.getTypeFromAST(e);if(null==t)throw o("Unknown type: '".concat(v(e),"'."),null,[e]);return t},t.getNonNullType=function(e){if(e instanceof E)return e;var t="".concat(String(e),"!"),n=this._typeWrappersMap.get(t);return n||(n=new E(e),this._typeWrappersMap.set(t,n),n)},t.getRawType=function(e){return C(e)},t.getNullableType=function(e){return e instanceof E?e.ofType:e},t.getListItemType=function(e){return e instanceof F?e.ofType:e},t.mapListItemType=function(e,t){if(!(e instanceof F))throw o("Expected List type");var n=t(e.ofType),r="[".concat(this.getTypeString(n),"]"),a=this._typeWrappersMap.get(r);return a||(a=new F(n),this._typeWrappersMap.set(r,a),a)},t.areEqualTypes=function(e,t){return e===t||(e instanceof E&&t instanceof E||e instanceof F&&t instanceof F?this.areEqualTypes(e.ofType,t.ofType):!(!P(e)||!P(t))&&e.name===t.name)},t.mayImplement=function(e,t){return this.areEqualTypes(e,t)||this.implementsInterface(e,t)||this.isAbstractType(e)&&N(this,e,t)},t.implementsInterface=function(e,t){var n=this;return this.getInterfaces(e).some((function(e){return n.areEqualTypes(e,t)}))},t.canHaveSelections=function(e){return this.isObject(e)||this.isInterface(e)},t.getTypeString=function(e){return e.toString()},t.isTypeSubTypeOf=function(e,t){return e===t||(t instanceof E?e instanceof E&&this.isTypeSubTypeOf(e.ofType,t.ofType):e instanceof E?this.isTypeSubTypeOf(e.ofType,t):t instanceof F?e instanceof F&&this.isTypeSubTypeOf(e.ofType,t.ofType):!(e instanceof F)&&!!(this.isAbstractType(t)&&this.isObject(e)&&this.isPossibleType(this.assertAbstractType(t),this.assertObjectType(e))))},t.doTypesOverlap=function(e,t){var n=this;return e===t||(U(e)?U(t)?Array.from(this.getPossibleTypes(e)).some((function(e){if(O(e))return n.isPossibleType(t,e)})):this.isPossibleType(e,t):!!U(t)&&this.isPossibleType(t,e))},t.isPossibleType=function(e,t){return this._typeMap.getPossibleTypeSet(e).has(t)},t.assertScalarFieldType=function(e){if(q(e)&&!R(C(e))&&!M(C(e))||!q(e)&&!R(e)&&!M(e))throw o("Expected ".concat(String(e)," to be a Scalar or Enum type."));return e},t.assertLinkedFieldType=function(e){if(q(e)&&!G(C(e))||!q(e)&&!G(e))throw o("Expected ".concat(String(e)," to be a Object, Interface or a Union Type."));return e},t.assertInputType=function(e){if(q(e)&&!B(C(e))||!q(e)&&!B(e))throw o("Expected ".concat(String(e)," to be a Input, Scalar or Enum type."));return e},t.asCompositeType=function(e){if(G(e))return e},t.asInputType=function(e){if(q(e)&&B(C(e))||!q(e)&&B(e))return e},t.asScalarFieldType=function(e){if(R(e)||M(e))return e},t.assertScalarType=function(e){if(!R(e))throw o("Expected ".concat(this.getTypeString(e)," to be a scalar type, got ").concat(this.getTypeString(e),"."));return e},t.assertObjectType=function(e){if(!O(e))throw o("Expected ".concat(this.getTypeString(e)," to be an object type."));return e},t.assertInputObjectType=function(e){if(!j(e))throw o("Expected ".concat(this.getTypeString(e)," to be an input type."));return e},t.asInputObjectType=function(e){return j(e)?e:null},t.assertInterfaceType=function(e){if(!V(e))throw o("Expected ".concat(this.getTypeString(e)," to be an interface type."));return e},t.assertCompositeType=function(e){if(!G(e))throw o("Expected ".concat(this.getTypeString(e)," to be a composite type."));return e},t.assertAbstractType=function(e){if(!U(e))throw o("Expected ".concat(this.getTypeString(e)," to be an abstract type."));return e},t.assertLeafType=function(e){if(!this.isLeafType(e))throw o("Expected ".concat(this.getTypeString(e)," to be a leaf type."));return e},t.assertUnionType=function(e){if(!L(e))throw o("Expected ".concat(this.getTypeString(e)," to be a union type."));return e},t.assertEnumType=function(e){if(!M(e))throw o("Expected ".concat(String(e)," to be an enum type."));return e},t.assertIntType=function(e){if(!R(e)||!this.isInt(e))throw o("Expected ".concat(String(e)," to be an 'Int' type."));return e},t.assertFloatType=function(e){if(!R(e)||!this.isFloat(e))throw o("Expected ".concat(this.getTypeString(e)," to be a 'Float' type."));return e},t.assertBooleanType=function(e){if(!R(e)||!this.isBoolean(e))throw o("Expected ".concat(this.getTypeString(e)," to be a 'Boolean' type."));return e},t.assertStringType=function(e){if(!R(e)||!this.isString(e))throw o("Expected ".concat(this.getTypeString(e)," to be a 'String' type."));return e},t.assertIdType=function(e){if(!R(e)||!this.isId(e))throw o("Expected ".concat(this.getTypeString(e)," to be an ID type."));return e},t.expectBooleanType=function(){return this.assertScalarType(this.expectTypeFromString("Boolean"))},t.expectIntType=function(){return this.assertScalarType(this.expectTypeFromString("Int"))},t.expectFloatType=function(){return this.assertScalarType(this.expectTypeFromString("Float"))},t.expectStringType=function(){return this.assertScalarType(this.expectTypeFromString("String"))},t.expectIdType=function(){return this.assertScalarType(this.expectTypeFromString("ID"))},t.getQueryType=function(){var e=this._getRawType(D);if(e&&O(e))return e},t.getMutationType=function(){var e=this._getRawType(I);if(e&&O(e))return e},t.getSubscriptionType=function(){var e=this._getRawType(A);if(e&&O(e))return e},t.expectQueryType=function(){var e=this.getQueryType();if(null==e)throw o("Query type is not defined on the Schema");return e},t.expectMutationType=function(){var e=this.getMutationType();if(null==e)throw o("Mutation type is not defined the Schema");return e},t.expectSubscriptionType=function(){var e=this.getSubscriptionType();if(null==e)throw o("Subscription type is not defined the Schema");return e},t.isNonNull=function(e){return e instanceof E},t.isList=function(e){return e instanceof F},t.isWrapper=function(e){return q(e)},t.isScalar=function(e){return R(e)},t.isObject=function(e){return O(e)},t.isEnum=function(e){return M(e)},t.isUnion=function(e){return L(e)},t.isInputObject=function(e){return j(e)},t.isInterface=function(e){return V(e)},t.isInputType=function(e){return B(e)||q(e)&&B(C(e))},t.isCompositeType=function(e){return G(e)},t.isAbstractType=function(e){return U(e)},t.isLeafType=function(e){return this.isScalar(e)||this.isEnum(e)},t.isId=function(e){return e instanceof b&&"ID"===e.name},t.isInt=function(e){return e instanceof b&&"Int"===e.name},t.isFloat=function(e){return e instanceof b&&"Float"===e.name},t.isBoolean=function(e){return e instanceof b&&"Boolean"===e.name},t.isString=function(e){return e instanceof b&&"String"===e.name},t.hasField=function(e,t){return!(!this.isObject(e)&&!this.isAbstractType(e)||"__typename"!==t&&"__id"!==t)||(e instanceof w||e instanceof k?null!=this._typeMap.getField(e,t):e instanceof _&&null!=this._typeMap.getInputField(e,t))},t.hasId=function(e){if(!this.hasField(e,"id"))return!1;var t=this.expectField(e,"id");return this.areEqualTypes(this.getNullableType(this.getFieldType(t)),this.expectIdType())},t.getFields=function(e){var t=this._getFieldsMap(e);return Array.from(t.values())},t._getFieldsMap=function(e){var t=this._fieldsMap.get(e);if(null!=t)return t;var n=new Map;if(e instanceof w||e instanceof k){var r=this._typeMap.getFieldMap(e);if(r){var i,s=(0,a.default)(r);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l[0],c=l[1],f=this.expectTypeFromAST(c.type);n.set(u,new x(this,u,f,this.assertCompositeType(e),c.arguments,c.directives,c.isClient))}}catch(e){s.e(e)}finally{s.f()}}}else if(e instanceof _){var d=this._typeMap.getInputFieldMap(e);if(d){var p,m=(0,a.default)(d);try{for(m.s();!(p=m.n()).done;){var h=p.value,v=h[0],y=h[1],g=this.expectTypeFromAST(y);n.set(v,new x(this,v,g,e,[],null,!1))}}catch(e){m.e(e)}finally{m.f()}}}if(0===n.size)throw o("_getFieldsMap: Type '".concat(e.name,"' should have fields."));return this._fieldsMap.set(e,n),n},t.getFieldByName=function(e,t){if(this.hasField(e,t)){if("__typename"===t){var n=this._typeNameMap.get(e);return n||(n=new x(this,"__typename",this.getNonNullType(this.expectStringType()),e,[],null,!1),this._typeNameMap.set(e,n)),n}if("__id"===t){var r=this._clientIdMap.get(e);return r||(r=new x(this,"__id",this.getNonNullType(this.expectIdType()),e,[],null,!0),this._clientIdMap.set(e,r)),r}if(L(e))throw o("Unexpected union type '".concat(this.getTypeString(e),"' in the 'getFieldByName(...)'. Expected type with fields"));return this._getFieldsMap(e).get(t)}},t.expectField=function(e,t){var n=this.getFieldByName(e,t);if(!n)throw o("Unknown field '".concat(t,"' on type '").concat(this.getTypeString(e),"'."));return n},t.getFieldConfig=function(e){return{type:e.type,args:Array.from(e.args.values())}},t.getFieldName=function(e){return e.name},t.getFieldType=function(e){return e.type},t.getFieldParentType=function(e){return e.belongsTo},t.getFieldArgs=function(e){return Array.from(e.args.values())},t.getFieldArgByName=function(e,t){return e.args.get(t)},t.getEnumValues=function(e){return e.values},t.getUnionTypes=function(e){return Array.from(this._typeMap.getPossibleTypeSet(e))},t.getInterfaces=function(e){return e instanceof w?this._typeMap.getInterfaces(e):[]},t.getPossibleTypes=function(e){return this._typeMap.getPossibleTypeSet(e)},t.getFetchableFieldName=function(e){return this._typeMap.getFetchableFieldName(e)},t.parseLiteral=function(e,t){if(e instanceof T&&"EnumValue"===t.kind)return this.parseValue(e,t.value);if(e instanceof b){if("BooleanValue"===t.kind&&"Boolean"===e.name)return u.parseLiteral(t);if("FloatValue"===t.kind&&"Float"===e.name)return c.parseLiteral(t);if("IntValue"===t.kind&&("Int"===e.name||"ID"===e.name||"Float"===e.name))return d.parseLiteral(t);if("StringValue"===t.kind&&("String"===e.name||"ID"===e.name))return p.parseLiteral(t);if(!z(e.name))return y(t)}},t.parseValue=function(e,t){if(e instanceof T)return e.values.includes(t)?t:void 0;if(e instanceof b)switch(e.name){case"Boolean":return u.parseValue(t);case"Float":return c.parseValue(t);case"Int":return d.parseValue(t);case"String":return p.parseValue(t);case"ID":return f.parseValue(t);default:return t}},t.serialize=function(e,t){if(e instanceof T)return e.values.includes(t)?t:void 0;if(e instanceof b)switch(e.name){case"Boolean":return u.serialize(t);case"Float":return c.serialize(t);case"Int":return d.serialize(t);case"String":return p.serialize(t);case"ID":return f.serialize(t);default:return t}},t.getDirectives=function(){return Array.from(this._directiveMap.values())},t.getDirective=function(e){return this._directiveMap.get(e)},t.isServerType=function(e){return!1===C(e).isClient},t.isServerField=function(e){return!1===e.isClient},t.isServerDirective=function(e){var t=this._directiveMap.get(e);return!1===(null==t?void 0:t.isClient)},t.isServerDefinedField=function(e,t){return this.isAbstractType(e)&&t.directives.some((function(e){return"fixme_fat_interface"===e.name}))||this.hasField(e,t.name)&&this.isServerField(this.expectField(e,t.name))},t.isClientDefinedField=function(e,t){return!this.isServerDefinedField(e,t)},t.extend=function(t){var n=Array.isArray(t)?m(t.join("\n")):t,r=[];return n.definitions.forEach((function(e){s(e)&&r.push(e)})),r.length>0?new e(this._typeMap.extend(r)):this},e}(),Q=function(){function e(e,t){this._types=new Map([["ID",new b("ID",!1)],["String",new b("String",!1)],["Boolean",new b("Boolean",!1)],["Float",new b("Float",!1)],["Int",new b("Int",!1)]]),this._typeInterfaces=new Map,this._unionTypes=new Map,this._interfaceImplementations=new Map,this._fields=new Map,this._inputFields=new Map,this._directives=new Map([["include",{name:"include",isClient:!1,locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",typeNode:h("Boolean!"),defaultValue:void 0}]}],["skip",{name:"skip",isClient:!1,locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",typeNode:h("Boolean!"),defaultValue:void 0}]}],["deprecated",{name:"deprecated",isClient:!1,locations:["FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",typeNode:h("String"),defaultValue:{kind:"StringValue",value:"No longer supported"}}]}]]),this._queryTypeName="Query",this._mutationTypeName="Mutation",this._subscriptionTypeName="Subscription",this._source=e,this._extensions=t,this._fetchable=new Map,this._parse(e),this._extend(t)}var t=e.prototype;return t._parse=function(e){var t=this;m(e,{noLocation:!0}).definitions.forEach((function(e){switch(e.kind){case"SchemaDefinition":t._parseSchemaDefinition(e);break;case"ScalarTypeDefinition":t._parseScalarNode(e,!1);break;case"EnumTypeDefinition":t._parseEnumNode(e,!1);break;case"ObjectTypeDefinition":t._parseObjectTypeNode(e,!1);break;case"InputObjectTypeDefinition":t._parseInputObjectTypeNode(e,!1);break;case"UnionTypeDefinition":t._parseUnionNode(e,!1);break;case"InterfaceTypeDefinition":t._parseInterfaceNode(e,!1);break;case"DirectiveDefinition":t._parseDirective(e,!1)}}))},t._parseSchemaDefinition=function(e){var t=this;e.operationTypes.forEach((function(e){switch(e.operation){case"query":t._queryTypeName=e.type.name.value;break;case"mutation":t._mutationTypeName=e.type.name.value;break;case"subscription":t._subscriptionTypeName=e.type.name.value}}))},t._parseScalarNode=function(e,t){var n=e.name.value;if(!z(n)&&this._types.has(n))throw o("_parseScalarNode: Duplicate definition for type ".concat(n,"."),null,[e]);this._types.set(n,new b(n,t))},t._parseEnumNode=function(e,t){var n=e.name.value;if(this._types.has(n))throw o("_parseEnumNode: Duplicate definition for type ".concat(n,"."),null,[e]);var r=e.values?e.values.map((function(e){return e.name.value})):[];this._types.set(n,new T(n,r,t))},t._parseObjectTypeNode=function(e,t){var n,r=this,a=e.name.value,i=null!==(n=this._types.get(a))&&void 0!==n?n:new w(a,t);if(!(i instanceof w))throw o("_parseObjectTypeNode: Expected object type, got ".concat(String(i)),null,[e]);if(i.isClient!==t)throw o("_parseObjectTypeNode: Cannot create object type '".concat(a,"' defined as a client type."),null,[e]);var s=[];e.interfaces&&e.interfaces.forEach((function(e){var n,a=e.name.value,l=r._types.get(a);if(l||(l=new k(a,t),r._types.set(a,l)),!(l instanceof k))throw o("_parseObjectTypeNode: Expected interface type",null,[e]);var u=null!==(n=r._interfaceImplementations.get(l))&&void 0!==n?n:new Set;u.add(i),r._interfaceImplementations.set(l,u),s.push(l)}));var l=null;e.directives&&e.directives.forEach((function(e){if("fetchable"===e.name.value){var t=e.arguments&&e.arguments.find((function(e){return"field_name"===e.name.value}));null!=t&&"StringValue"===t.value.kind&&(l={field_name:t.value.value})}})),this._typeInterfaces.set(i,s),this._types.set(a,i),null!=l&&this._fetchable.set(i,l),e.fields&&this._handleTypeFieldsStrict(i,e.fields,t)},t._parseInputObjectTypeNode=function(e,t){var n=e.name.value;if(this._types.has(n))throw o("_parseInputObjectTypeNode: Unable to parse schema file. Duplicate definition for object type",null,[e]);var r=new _(n,t);this._types.set(n,r),this._parseInputObjectFields(r,e)},t._parseUnionNode=function(e,t){var n=this,r=e.name.value;if(this._types.has(r))throw o("_parseUnionNode: Unable to parse schema file. Duplicate definition for object type",null,[e]);var a=new S(r,t);this._types.set(r,a),this._unionTypes.set(a,new Set(e.types?e.types.map((function(e){var t,r=e.name.value,a=null!==(t=n._types.get(r))&&void 0!==t?t:new w(r,!1);if(!(a instanceof w))throw o("_parseUnionNode: Expected object type",null,[e]);return n._types.set(r,a),a})):[]))},t._parseInterfaceNode=function(e,t){var n=e.name.value,r=this._types.get(n);if(r||(r=new k(n,t),this._types.set(n,r)),!(r instanceof k))throw o("_parseInterfaceNode: Expected interface type. Got ".concat(String(r)),null,[e]);if(r.isClient!==t)throw o("_parseInterfaceNode: Cannot create interface '".concat(n,"' defined as a client interface"),null,[e]);e.fields&&this._handleTypeFieldsStrict(r,e.fields,t)},t._handleTypeFieldsStrict=function(e,t,n){if(this._fields.has(e))throw o("_handleTypeFieldsStrict: Unable to parse schema file. Duplicate definition for object type");this._handleTypeFields(e,t,n)},t._handleTypeFields=function(e,t,n){var r,a=null!==(r=this._fields.get(e))&&void 0!==r?r:new Map;t.forEach((function(e){var t=e.name.value;if(a.has(t))throw o("_handleTypeFields: Duplicate definition for field '".concat(t,"'."));a.set(t,{arguments:e.arguments?e.arguments.map((function(e){return{name:e.name.value,typeNode:e.type,defaultValue:e.defaultValue}})):[],directives:e.directives?e.directives.map((function(e){return{name:e.name.value,args:e.arguments?e.arguments.map((function(e){return{name:e.name.value,value:e.value}})):[]}})):null,type:e.type,isClient:n})})),this._fields.set(e,a)},t._parseInputObjectFields=function(e,t){if(this._inputFields.has(e))throw o("_parseInputObjectFields: Unable to parse schema file. Duplicate definition for type",null,[t]);var n=new Map;t.fields&&t.fields.forEach((function(e){n.set(e.name.value,e.type)})),this._inputFields.set(e,n)},t._parseDirective=function(e,t){var n=e.name.value;this._directives.set(n,{name:n,args:e.arguments?e.arguments.map((function(e){return{name:e.name.value,typeNode:e.type,defaultValue:e.defaultValue}})):[],locations:e.locations.map((function(e){switch(e.value){case"QUERY":case"MUTATION":case"SUBSCRIPTION":case"FIELD":case"FRAGMENT_DEFINITION":case"FRAGMENT_SPREAD":case"INLINE_FRAGMENT":case"VARIABLE_DEFINITION":case"SCHEMA":case"SCALAR":case"OBJECT":case"FIELD_DEFINITION":case"ARGUMENT_DEFINITION":case"INTERFACE":case"UNION":case"ENUM":case"ENUM_VALUE":case"INPUT_OBJECT":case"INPUT_FIELD_DEFINITION":return e.value;default:throw o("Invalid directive location")}})),isClient:t})},t._parseObjectTypeExtension=function(e){var t=this._types.get(e.name.value);if(!(t instanceof w))throw o("_parseObjectTypeExtension: Expected to find type with the name '".concat(e.name.value,"'"),null,[e]);e.fields&&this._handleTypeFields(t,e.fields,!0)},t._parseInterfaceTypeExtension=function(e){var t=this._types.get(e.name.value);if(!(t instanceof k))throw o("_parseInterfaceTypeExtension: Expected to have an interface type");e.fields&&this._handleTypeFields(t,e.fields,!0)},t._extend=function(e){var t=this;e.forEach((function(e){if("ObjectTypeDefinition"===e.kind)t._parseObjectTypeNode(e,!0);else if("InterfaceTypeDefinition"===e.kind)t._parseInterfaceNode(e,!0);else if("ScalarTypeDefinition"===e.kind)t._parseScalarNode(e,!0);else if("EnumTypeDefinition"===e.kind)t._parseEnumNode(e,!0);else if("InterfaceTypeExtension"===e.kind)t._parseInterfaceTypeExtension(e);else if("ObjectTypeExtension"===e.kind)t._parseObjectTypeExtension(e);else{if("DirectiveDefinition"!==e.kind)throw o("Unexpected extension kind: '".concat(e.kind,"'"),null,[e]);t._parseDirective(e,!0)}}))},t.getTypes=function(){return Array.from(this._types.values())},t.getTypeByName=function(e){return this._types.get(e)},t.getInterfaces=function(e){var t;return null!==(t=this._typeInterfaces.get(e))&&void 0!==t?t:[]},t.getPossibleTypeSet=function(e){var t;if(e instanceof k){var n;t=null!==(n=this._interfaceImplementations.get(e))&&void 0!==n?n:new Set}else{if(!(e instanceof S))throw o('Invalid type supplied to "getPossibleTypeSet"');var r;t=null!==(r=this._unionTypes.get(e))&&void 0!==r?r:new Set}if(!t)throw o("Unable to find possible types for ".concat(e.name));return t},t.getFetchableFieldName=function(e){var t,n;return null!==(t=null===(n=this._fetchable.get(e))||void 0===n?void 0:n.field_name)&&void 0!==t?t:null},t.getQueryType=function(){return this._types.get(this._queryTypeName)},t.getMutationType=function(){return this._types.get(this._mutationTypeName)},t.getSubscriptionType=function(){return this._types.get(this._subscriptionTypeName)},t.getField=function(e,t){var n=this._fields.get(e);if(n)return n.get(t)},t.getFieldMap=function(e){return this._fields.get(e)},t.getInputField=function(e,t){var n=this._inputFields.get(e);if(n)return n.get(t)},t.getInputFieldMap=function(e){return this._inputFields.get(e)},t.getDirectives=function(){return Array.from(this._directives.values())},t.extend=function(t){return new e(this._source,this._extensions.concat(t))},e}();function H(e,t){return t.map((function(t){var n,r=e.assertInputType(e.expectTypeFromAST(t.typeNode)),a=t.defaultValue;if(null!=a){var i=e.getNullableType(r);if(!1===e.isNonNull(r)&&"NullValue"===a.kind?n=null:i instanceof b||i instanceof T?n=e.parseLiteral(i,a):(i instanceof F&&"ListValue"===a.kind||i instanceof _&&"ObjectValue"===a.kind)&&(n=y(a)),void 0===n)throw o("parseInputArgumentDefinitions: Unexpected default value: ".concat(String(a),". Expected to have a value of type ").concat(String(i),"."))}return{name:t.name,type:r,defaultValue:n}}))}function z(e){return new Set(["ID","String","Boolean","Int","Float"]).has(e)}e.exports={create:function(e,t,n){var r=[];return n&&n.forEach((function(e){m(e,{noLocation:!0}).definitions.forEach((function(e){s(e)&&r.push(e)}))})),t&&t.forEach((function(e){e.definitions.forEach((function(e){s(e)&&r.push(e)}))})),new W(new Q(e,r))}}},function(e,t,n){"use strict";var r=n(0),a=n(9),i=r(n(5)),o=n(8),s=n(14),l=n(6),u=n(11),c=function(){function e(e,t){var r,a,i=this;if(this._filesystem=null!==(r=t.filesystem)&&void 0!==r?r:n(13),this.onlyValidate=t.onlyValidate,this._shards=null!==(a=t.shards)&&void 0!==a?a:1,this._filesystem.existsSync(e)&&(this._filesystem.statSync(e).isDirectory()||l(!1,"Expected `%s` to be a directory.",e)),!this.onlyValidate){for(var o=[],s=e;!this._filesystem.existsSync(s);)o.unshift(s),s=u.dirname(s);if(o.forEach((function(e){return i._filesystem.mkdirSync(e)})),this._shards>1)for(var c=0;c<this._shards;c++){var f=u.join(e,this._getShardName(c));this._filesystem.existsSync(f)?this._filesystem.statSync(e).isDirectory()||l(!1,"Expected `%s` to be a directory.",e):this._filesystem.mkdirSync(f)}}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,o;(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)),(o=t.unchanged).push.apply(o,(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.formatChanges=function(e,t){var n=[];function r(e,t){t.length>0&&(n.push(e+":"),t.forEach((function(e){n.push(" - "+e)})))}return 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"))),n.join("\n")},e.printChanges=function(t,n){o.run("CodegenDirectory.printChanges",(function(){var r=e.formatChanges(t,n);console.log(r)}))},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=a((function*(t,n){var r=e.getAddedRemovedFiles(n),a=r.added,i=r.removed;t.addRemove(a,i)}));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=u.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 n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o.run("CodegenDirectory.writeFile",(function(){n._addGenerated(e);var a=n.getPath(e);n._filesystem.existsSync(a)?n._filesystem.readFileSync(a,"utf8")!==t||r?(n._writeFile(a,t),n.changes.updated.push(e)):n.changes.unchanged.push(e):(n._writeFile(a,t),n.changes.created.push(e))}))},t._writeFile=function(e,t){this.onlyValidate||this._filesystem.writeFileSync(e,t,"utf8")},t.deleteExtraFiles=function(e){var t=this;o.run("CodegenDirectory.deleteExtraFiles",(function(){t._shards>1?t._filesystem.readdirSync(t._dir).forEach((function(n){if(!n.startsWith(".")){var r=u.join(t._dir,n);t._filesystem.statSync(r).isDirectory()?t._filesystem.readdirSync(r).forEach((function(n){if(!(e&&e(n)||t._files.has(n))){if(!t.onlyValidate)try{t._filesystem.unlinkSync(u.join(r,n))}catch(e){throw new Error("CodegenDirectory: Failed to delete `"+n+"` in `"+t._dir+"`.")}t.changes.deleted.push(n)}})):t._filesystem.unlinkSync(r)}})):t._filesystem.readdirSync(t._dir).forEach((function(n){if(!(e&&e(n)||n.startsWith(".")||t._files.has(n))){if(!t.onlyValidate)try{t._filesystem.unlinkSync(u.join(t._dir,n))}catch(e){throw new Error("CodegenDirectory: Failed to delete `"+n+"` in `"+t._dir+"`.")}t.changes.deleted.push(n)}}))}))},t.getPath=function(e){if(this._shards>1){var t=s.createHash("md5");t.update(e,"utf8");var n=t.digest().readUInt32BE(0)%this._shards;return u.join(this._dir,this._getShardName(n),e)}return u.join(this._dir,e)},t._getShardName=function(e){var t=Math.ceil(Math.log2(256)/4);return e.toString(16).padStart(t,"0")},t._addGenerated=function(e){this._files.has(e)&&l(!1,"CodegenDirectory: Tried to generate `%s` twice in `%s`.",e,this._dir),this._files.add(e)},e}();e.exports=c},function(e,t,n){"use strict";var r=n(8),a=n(10),i=a.isExecutableDefinitionAST,o=a.isSchemaDefinitionAST,s=n(7),l=s.extendSchema,u=s.parse,c=s.print,f=s.visit;function d(e,t,n){var r=[];return t.forEach((function(e){i(e)&&r.push(e)})),n(e,r)}function p(e){var t=[];return e.forEach((function(e){e.definitions.forEach((function(e){return t.push(e)}))})),t}var m=new Map;function h(e,t,n){var r=m.get(e);r||(r={},m.set(e,r));var a=r[t];return a||(a=n(),r[t]=a),a}e.exports={convertASTDocuments:function(e,t,n){return r.run("ASTConvert.convertASTDocuments",(function(){var r=p(t),a=[];return t.forEach((function(e){e.definitions.forEach((function(e){i(e)&&a.push(e)}))})),d(e,r,n)}))},convertASTDocumentsWithBase:function(e,t,n,a){return r.run("ASTConvert.convertASTDocumentsWithBase",(function(){var r=p(t),o=p(n),s=new Map,l=new Map;r.forEach((function(e){if(i(e)){var t=e.name&&e.name.value;if(null!=t){if(l.has(t))throw new Error("Duplicate definition of '".concat(t,"'."));l.set(t,e)}}}));var u=[];for(o.forEach((function(e){i(e)&&u.push(e)}));u.length>0;){var c=u.pop(),m=c.name&&c.name.value;if(null!=m)if(s.has(m)){if(s.get(m)!==c)throw new Error("Duplicate definition of '".concat(m,"'."))}else s.set(m,c),f(c,{FragmentSpread:function(e){var t=l.get(e.name.value);t&&u.push(t)}})}var h=[];return s.forEach((function(e){return h.push(e)})),d(e,h,a)}))},extendASTSchema:function(e,t){return r.run("ASTConvert.extendASTSchema",(function(){var n=[];if(t.forEach((function(e){e.definitions.forEach((function(e){o(e)&&n.push(e)}))})),0===n.length)return e;var r=n.map(c).join("\n");return h(e,r,(function(){return l(e,{kind:"Document",definitions:n},{assumeValid:!0})}))}))},transformASTSchema:function(e,t){return r.run("ASTConvert.transformASTSchema",(function(){if(0===t.length)return e;var n=t.join("\n");return h(e,n,(function(){return l(e,u(n))}))}))}}},function(e,t,n){"use strict";var r=n(0),a=r(n(3)),i=r(n(5)),o=n(49),s=n(8),l=n(33),u=n(50);var c={Root:0,SplitOperation:1,Fragment:2};function f(e,t){var n=e.getRoot(t);return o(n,e).documents().sort((function(e,t){return e.kind!==t.kind?c[e.kind]-c[t.kind]:e.name<t.name?-1:1})).map((function(t){return l.print(e.getSchema(),t)})).join("\n")}e.exports=function(e,t,n){return s.run("GraphQLCompiler.compile",(function(){var r=function(e,t,n){return e.applyTransforms([].concat((0,i.default)(t.commonTransforms),(0,i.default)(t.fragmentTransforms)),n)}(e,t,n),o=function(e,t,n){return e.applyTransforms([].concat((0,i.default)(t.commonTransforms),(0,i.default)(t.queryTransforms),(0,i.default)(t.printTransforms)),n)}(e,t,n),s=function(e,t,n){return e.applyTransforms([].concat((0,i.default)(t.commonTransforms),(0,i.default)(t.queryTransforms),(0,i.default)(t.codegenTransforms)),n)}(e,t,n);return function(e,t,n,r){var i,o=[],s=e.getSchema(),l=(0,a.default)(r.documents());try{for(l.s();!(i=l.n()).done;){var c=i.value;if("Root"===c.kind){var d=t.getRoot(c.name),p={kind:"Request",fragment:{kind:"Fragment",argumentDefinitions:d.argumentDefinitions,directives:d.directives,loc:{kind:"Derived",source:c.loc},metadata:null,name:d.name,selections:d.selections,type:d.type},id:null,loc:c.loc,metadata:c.metadata||{},name:d.name,root:c,text:f(n,d.name)};o.push([p,u.generate(s,p)])}else o.push([c,u.generate(s,c)])}}catch(e){l.e(e)}finally{l.f()}var m,h=(0,a.default)(t.documents());try{for(h.s();!(m=h.n()).done;){var v=m.value;"Fragment"===v.kind&&o.push([v,u.generate(s,v)])}}catch(e){h.e(e)}finally{h.f()}return o}(e,r,o,s)}))}},function(e,t,n){"use strict";var r=n(47).DEFAULT_HANDLE_KEY,a=n(6);function i(e,t,n,r){var c=t.selections;if(null==c)return"";var f=c.map((function(t){return function e(t,n,r,c){var f,d,p=null!==(f=null==c?void 0:c.parentDirectives)&&void 0!==f?f:"",m=!0===(null==c?void 0:c.isClientExtension);if("LinkedField"===n.kind)d=o(t,n,{parentDirectives:p,isClientExtension:m}),d+=i(t,n,r+" ",{isClientExtension:m});else if("ModuleImport"===n.kind)d=n.selections.map((function(n){return e(t,n,r,{parentDirectives:p,isClientExtension:m})})).join("\n"+r+" ");else if("ScalarField"===n.kind)d=o(t,n,{parentDirectives:p,isClientExtension:m});else if("InlineFragment"===n.kind)d="",m&&(d+="# "),d+="... on "+t.getTypeString(n.typeCondition),d+=p,d+=s(t,n.directives),d+=i(t,n,r+" ",{isClientExtension:m});else if("FragmentSpread"===n.kind)d="",m&&(d+="# "),d+="..."+n.name,d+=p,d+=function(e,t){var n=l(e,t);if(!n.length)return"";return" @arguments".concat(n)}(t,n.args),d+=s(t,n.directives);else if("InlineDataFragmentSpread"===n.kind)d="# ".concat(n.name," @inline")+"\n".concat(r).concat(" ","...")+p+i(t,n,r+" ",{});else if("Condition"===n.kind){var h=u(t,n.condition,null);null==h&&a(!1,"IRPrinter: Expected a variable for condition, got a literal `null`.");var v=n.passingValue?" @include":" @skip";v+="(if: "+h+")",v+=p;var y=n.selections.map((function(n){return e(t,n,r,{parentDirectives:v,isClientExtension:m})}));d=y.join("\n"+r+" ")}else if("Stream"===n.kind){var g,b,T,S=p;if(S+=' @stream(label: "'.concat(n.label,'"'),null!==n.if)S+=", if: ".concat(null!==(g=u(t,n.if,null))&&void 0!==g?g:"");if(null!==n.initialCount)S+=", initial_count: ".concat(null!==(b=u(t,n.initialCount,null))&&void 0!==b?b:"");if(null!==n.useCustomizedBatch)S+=", use_customized_batch: ".concat(null!==(T=u(t,n.useCustomizedBatch,null))&&void 0!==T?T:"false");S+=")";var w=n.selections.map((function(n){return e(t,n,r,{parentDirectives:S,isClientExtension:m})}));d=w.join("\n ")}else if("Defer"===n.kind){var _,k=p;if(k+=' @defer(label: "'.concat(n.label,'"'),null!==n.if)k+=", if: ".concat(null!==(_=u(t,n.if,null))&&void 0!==_?_:"");if(k+=")",n.selections.every((function(e){return"InlineFragment"===e.kind||"FragmentSpread"===e.kind}))){var F=n.selections.map((function(n){return e(t,n,r,{parentDirectives:k,isClientExtension:m})}));d=F.join("\n ")}else d="..."+k,d+=i(t,n,r+" ",{isClientExtension:m})}else"ClientExtension"===n.kind?(!1!==m&&a(!1,"IRPrinter: Did not expect to encounter a ClientExtension node as a descendant of another ClientExtension node."),d="# Client-only selections:\n"+r+" "+n.selections.map((function(n){return e(t,n,r,{parentDirectives:p,isClientExtension:!0})})).join("\n"+r+" ")):a(!1,"IRPrinter: Unknown selection kind `%s`.",n.kind);return d}(e,t,n,r)}));return f.length?" {\n".concat(n+" ").concat(f.join("\n"+n+" "),"\n").concat(n).concat(!0===(null==r?void 0:r.isClientExtension)?"# ":"","}"):""}function o(e,t,n){var a,i=null!==(a=null==n?void 0:n.parentDirectives)&&void 0!==a?a:"";return(!0===(null==n?void 0:n.isClientExtension)?"# ":"")+(t.alias===t.name?t.name:t.alias+": "+t.name)+l(e,t.args)+i+s(e,t.directives)+function(e,t){if(!t.handles)return"";var n=t.handles.map((function(t){var n=t.key===r?"":', key: "'.concat(t.key,'"'),a=null==t.filters?"":", filters: ".concat(JSON.stringify(Array.from(t.filters).sort())),i=null==t.handleArgs?"":", handleArgs: ".concat(l(e,t.handleArgs));return'@__clientField(handle: "'.concat(t.name,'"').concat(n).concat(a).concat(i,")")}));return n.length?" "+n.join(" "):""}(e,t)}function s(e,t){var n=t.map((function(t){return"@"+t.name+l(e,t.args)}));return n.length?" "+n.join(" "):""}function l(e,t){var n=[];return t.forEach((function(t){var r=u(e,t.value,t.type);null!=r&&n.push(t.name+": "+r)})),n.length?"("+n.join(", ")+")":""}function u(e,t,n){if(null!=n&&e.isNonNull(n)&&(n=e.getNullableType(n)),"Variable"===t.kind)return"$"+t.variableName;if("ObjectValue"===t.kind){var r=null!=n?e.asInputObjectType(n):null;return"{"+t.fields.map((function(t){var n=null!=r&&e.hasField(r,t.name)?e.getFieldConfig(e.expectField(r,t.name)):null,a=u(e,t.value,null==n?void 0:n.type);return null==a?null:t.name+": "+a})).filter(Boolean).join(", ")+"}"}if("ListValue"===t.kind){n&&e.isList(n)||a(!1,"GraphQLIRPrinter: Need a type in order to print arrays.");var i=e.getListItemType(n);return"[".concat(t.items.map((function(t){return u(e,t,i)})).join(", "),"]")}return null!=t.value?c(e,t.value,n):null}function c(e,t,n){var r,i,o;if(null==t)return null!==(r=JSON.stringify(t))&&void 0!==r?r:"null";if(null!=n&&e.isNonNull(n)&&(n=e.getNullableType(n)),n&&e.isEnum(n)){var s,l=e.serialize(e.assertEnumType(n),t);return null==l&&"string"==typeof t&&(l=t),"string"!=typeof l&&a(!1,"IRPrinter: Expected value of type %s to be a valid enum value, got `%s`.",e.getTypeString(n),null!==(s=JSON.stringify(t))&&void 0!==s?s:"null"),l}if(n&&(e.isId(n)||e.isInt(n)))return null!==(i=JSON.stringify(t))&&void 0!==i?i:"";if(n&&e.isScalar(n)){var u,f=e.serialize(e.assertScalarType(n),t);return null!==(u=JSON.stringify(f))&&void 0!==u?u:""}if(Array.isArray(t)){n&&e.isList(n)||a(!1,"IRPrinter: Need a type in order to print arrays.");var d=e.getListItemType(n);return"["+t.map((function(t){return c(e,t,d)})).join(", ")+"]"}if(n&&e.isList(n)&&null!=t)return c(e,t,e.getListItemType(n));if("object"==typeof t&&null!=t){var p=[];n&&e.isInputObject(n)||a(!1,"IRPrinter: Need an InputObject type to print objects.");var m=e.assertInputObjectType(n);for(var h in t)if(t.hasOwnProperty(h)){var v=e.getFieldConfig(e.expectField(m,h));p.push(h+": "+c(e,t[h],v.type))}return"{"+p.join(", ")+"}"}return null!==(o=JSON.stringify(t))&&void 0!==o?o:"null"}e.exports={print:function(e,t){switch(t.kind){case"Fragment":return"fragment ".concat(t.name," on ").concat(e.getTypeString(t.type))+function(e,t){var n;return t.forEach((function(t){if("LocalArgumentDefinition"===t.kind){n=n||[];var r="".concat(t.name,': {type: "').concat(e.getTypeString(t.type),'"');null!=t.defaultValue&&(r+=", defaultValue: ".concat(c(e,t.defaultValue,t.type))),r+="}",n.push(r)}})),n&&n.length?" @argumentDefinitions(\n".concat(" ").concat(n.join("\n "),"\n)"):""}(e,t.argumentDefinitions)+s(e,t.directives)+i(e,t,"",{})+"\n";case"Root":return"".concat(t.operation," ").concat(t.name)+function(e,t){var n=t.map((function(t){var n="$".concat(t.name,": ").concat(e.getTypeString(t.type));return null!=t.defaultValue&&(n+=" = "+c(e,t.defaultValue,t.type)),n}));return n.length?"(\n".concat(" ").concat(n.join("\n "),"\n)"):""}(e,t.argumentDefinitions)+s(e,t.directives)+i(e,t,"",{})+"\n";case"SplitOperation":return"SplitOperation ".concat(t.name," on ").concat(e.getTypeString(t.type))+i(e,t,"",{})+"\n";default:a(!1,"IRPrinter: Unsupported IR node `%s`.",t.kind)}},printField:o,printArguments:l,printDirectives:s}},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)}))},transform:function e(t,n){if(null==t)return t;if(Array.isArray(t))return t.map((function(t){return e(t,n)}));if("object"==typeof t){var r={};return Object.keys(t).forEach((function(a){r[a]=e(t[a],n)})),r}if("string"==typeof t){var a=/^@@MODULE_START@@(.*?)@@MODULE_END@@$/.exec(t);if(null!=a){var i=a[1];if(n.hasOwnProperty(i))return n[i];throw new Error("Could not find a value for CodeMarker value '".concat(i,"', ")+"make sure to supply one in the module mapping.")}if(t.indexOf("@@MODULE_START")>=0)throw new Error("Found unprocessed CodeMarker value '".concat(t,"'."));return t}return t}}},function(e,t,n){"use strict";var r=n(8),a=n(17).Map,i=function(){function e(e){this._documents=new Map,this._baseDir=e.baseDir,this._parse=r.instrument(e.parse,"ASTCache.parseFn")}var t=e.prototype;return t.documents=function(){return a(this._documents)},t.parseFiles=function(e){var t=this,n=a();return e.forEach((function(e){if(e.exists){var r=function(){try{return t._parse(t._baseDir,e)}catch(t){throw new Error("Parse error: ".concat(t,' in "').concat(e.relPath,'"'))}}();r?(n=n.set(e.relPath,r),t._documents.set(e.relPath,r)):t._documents.delete(e.relPath)}else t._documents.delete(e.relPath)})),n},e}();e.exports=i},function(e,t,n){"use strict";var r=n(0),a=r(n(3)),i=r(n(2)),o=r(n(5)),s=n(8),l=n(20),u=n(56),c=n(58),f=n(59),d=n(60),p=n(61),m=n(62),h=(n(25),n(19),n(63)),v=h.anyTypeAlias,y=h.declareExportOpaqueType,g=h.exactObjectTypeAnnotation,b=h.exportType,T=h.exportTypes,S=h.importTypes,w=h.inexactObjectTypeAnnotation,_=h.intersectionTypeAnnotation,k=h.lineComments,F=h.readOnlyArrayOfType,E=h.readOnlyObjectTypeProperty,x=h.unionTypeAnnotation,C=n(91),N=C.transformInputType,D=C.transformScalarType,I=n(92).default,A=n(38),R=n(6),O=n(16);function M(e,t,n,r,a){var i=t.key,o=t.schemaName,s=t.value,l=t.conditional,u=t.nodeType,c=t.nodeSelections;"__typename"===o&&a?s=A.stringLiteralTypeAnnotation(a):u&&(s=D(e,u,n,V(e,[Array.from(O(c).values())],n,r)));var f=E(i,s);return l&&(f.optional=!0),f}var L=function(e){return"__typename"===e.schemaName},j=function(e){return e.some(L)};function V(e,t,n,r,a){var s=new Map,l={};$(t).forEach((function(e){var t=e.concreteType;if(t){var n;l[t]=null!==(n=l[t])&&void 0!==n?n:[],l[t].push(e)}else{var r=s.get(e.key);s.set(e.key,r?q(e,r):e)}}));var u=[];if(Object.keys(l).length>0&&function(e){return e.every(L)}(Array.from(s.values()))&&(j(Array.from(s.values()))||Object.keys(l).every((function(e){return j(l[e])}))))!function(){var t=new Set,a=function(a){u.push(J([].concat((0,o.default)(Array.from(s.values())),(0,o.default)(l[a]))).map((function(i){return"__typename"===i.schemaName&&t.add(i.key),M(e,i,n,r,a)})))};for(var i in l)a(i);u.push(Array.from(t).map((function(e){var t=E(e,A.stringLiteralTypeAnnotation("%other"));return t.leadingComments=k("This will never be '%other', but we need some","value in case none of the concrete values match."),t})))}();else{var c=K(Array.from(s.values()));for(var f in l)c=P(c,K(l[f].map((function(e){return(0,i.default)((0,i.default)({},e),{},{conditional:!0})}))));var d=J(Array.from(c.values())).map((function(t){return L(t)&&t.concreteType?M(e,(0,i.default)((0,i.default)({},t),{},{conditional:!1}),n,r,t.concreteType):M(e,t,n,r)}));u.push(d)}return x(u.map((function(e){return a&&e.push(E("$refType",A.genericTypeAnnotation(A.identifier(a)))),r?w(e):g(e)})))}function q(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e?(0,i.default)((0,i.default)({},e),{},{nodeSelections:e.nodeSelections?P(e.nodeSelections,O(t.nodeSelections),n):null,conditional:e.conditional&&t.conditional}):n?(0,i.default)((0,i.default)({},t),{},{conditional:!0}):t}function P(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=new Map,o=(0,a.default)(e.entries());try{for(o.s();!(n=o.n()).done;){var s=n.value,l=s[0],u=s[1];i.set(l,u)}}catch(e){o.e(e)}finally{o.f()}var c,f=(0,a.default)(t.entries());try{for(f.s();!(c=f.n()).done;){var d=c.value,p=d[0],m=d[1];i.set(p,q(e.get(p),m,r))}}catch(e){f.e(e)}finally{f.f()}return i}function U(e){return $(e.selections)}function G(e,t,n){var r,a=null!=(null===(r=t.metadata)||void 0===r?void 0:r.required)?e.getNonNullType(t.type):t.type;return[{key:t.alias,schemaName:t.name,value:D(e,a,n)}]}function B(e,t){var n,r;if(null!=(null===(n=t.metadata)||void 0===n?void 0:n.required))return e.getNonNullType(t.type);if(!0===(null===(r=t.metadata)||void 0===r?void 0:r.childrenCanBubbleNull)){if(e.isList(t.type))return e.mapListItemType(t.type,(function(t){return e.getNullableType(t)}));if(e.isNonNull(t.type)){var a=e.getNullableType(t.type);return e.isList(a)?e.getNonNullType(e.mapListItemType(a,(function(t){return e.getNullableType(t)}))):a}return t.type}return t.type}function W(e,t){return[{key:t.alias,schemaName:t.name,nodeType:B(e,t),nodeSelections:K($(t.selections),!0)}]}function Q(e,t,n,r){var a=t.key,i=t.schemaName,o=t.value,s=t.conditional,l=t.nodeType,u=t.nodeSelections;if("ModuleImport"===t.kind)return A.objectTypeSpreadProperty(A.genericTypeAnnotation(A.identifier(a)));"__typename"===i&&r?o=A.stringLiteralTypeAnnotation(r):l&&(o=D(e,l,n,H(e,[Array.from(O(u).values())],n,e.isAbstractType(l)||e.isWrapper(l)?null:e.getTypeString(l))));var c=E(a,o);return s&&(c.optional=!0),c}function H(e,t,n,r){var a=[],i={};$(t).forEach((function(e){var t,n=e.concreteType;n?(i[n]=null!==(t=i[n])&&void 0!==t?t:[],i[n].push(e)):a.push(e)}));var o=[];if(Object.keys(i).length){var s=K(a),l=function(t){var r=Array.from(P(s,K(i[t]),!1).values());o.push(g(r.map((function(r){return Q(e,r,n,t)})))),z(o,r,e,n,t)};for(var u in i)l(u)}return a.length>0&&(o.push(g(a.map((function(t){return Q(e,t,n,r)})))),z(o,a,e,n,r)),x(o)}function z(e,t,n,r,a){var i=t.find((function(e){return"ModuleImport"===e.kind}));i&&(r.runtimeImports.add("Local3DPayload"),e.push(A.genericTypeAnnotation(A.identifier("Local3DPayload"),A.typeParameterInstantiation([A.stringLiteralTypeAnnotation(O(i.documentName)),g(t.filter((function(e){return"js"!==e.schemaName})).map((function(e){return Q(n,e,r,a)})))]))))}function K(e,t){var n=new Map;return e.forEach((function(e){var r=t&&e.concreteType?"".concat(e.key,"::").concat(e.concreteType):e.key,a=n.get(r);n.set(r,a?q(a,e):e)})),n}function $(e){var t=[];return e.forEach((function(e){t.push.apply(t,(0,o.default)(e))})),t}function J(e){var t=[],n=[];if(e.forEach((function(e){e.ref?n.push(e.ref):t.push(e)})),n.length>0){var r=_(n.map((function(e){return A.genericTypeAnnotation(A.identifier(Z(e)))})));t.push({key:"$fragmentRefs",conditional:!1,value:r})}return t}function X(e){var t=[];if(e.usedFragments.size>0){var n,r=Array.from(e.usedFragments).sort(),i=(0,a.default)(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=Z(o);e.generatedFragments.has(o)||(e.useHaste?t.push(S([s],o+".graphql")):e.useSingleArtifactDirectory?t.push(S([s],"./"+o+".graphql")):t.push(v(s)))}}catch(e){i.e(e)}finally{i.f()}}return t}function Y(e,t){var n=t.enumsHasteModule,r=t.usedEnums,a=t.noFutureProofEnums,i=Object.keys(r).sort();return 0===i.length?[]:"string"==typeof n?[S(i,n)]:"function"==typeof n?i.map((function(e){return S([e],n(e))})):i.map((function(t){var n=[].concat(e.getEnumValues(r[t]));return n.sort(),a||n.push("%future added value"),b(t,A.unionTypeAnnotation(n.map((function(e){return A.stringLiteralTypeAnnotation(e)}))))}))}function Z(e){return"".concat(e,"$ref")}function ee(e){return"".concat(e,"$fragmentType")}var te=[p.transform,c.transform,f.transform,m.transform,u.transformWithOptions({}),d.transform],ne="raw_response_type";e.exports={generate:s.instrument((function(e,t,n){var r=l.visit(t,function(e,t){var n={customScalars:t.customScalars,enumsHasteModule:t.enumsHasteModule,generatedFragments:new Set,generatedInputObjectTypes:{},optionalInputFields:t.optionalInputFields,usedEnums:{},usedFragments:new Set,useHaste:t.useHaste,useSingleArtifactDirectory:t.useSingleArtifactDirectory,noFutureProofEnums:t.noFutureProofEnums,matchFields:new Map,runtimeImports:new Set};return{leave:{Root:function(r){var s,u=function(e,t,n){return b("".concat(t.name,"Variables"),g(t.argumentDefinitions.map((function(t){var r=A.objectTypeProperty(A.identifier(t.name),N(e,t.type,n));return e.isNonNull(t.type)||(r.optional=!0),r}))))}(e,r,n),c=function(e){return Object.keys(e.generatedInputObjectTypes).map((function(t){var n=e.generatedInputObjectTypes[t];return"string"==typeof n&&R(!1,"RelayCompilerFlowGenerator: Expected input object type to have been defined before calling `generateInputObjectTypes`"),b(t,n)}))}(n),f=V(e,r.selections,n,!1);!0===(null===(s=r.metadata)||void 0===s?void 0:s.childrenCanBubbleNull)&&(f=A.nullableTypeAnnotation(f));var d,p=b("".concat(r.name,"Response"),f),m=[A.objectTypeProperty(A.identifier("variables"),A.genericTypeAnnotation(A.identifier("".concat(r.name,"Variables")))),A.objectTypeProperty(A.identifier("response"),A.genericTypeAnnotation(A.identifier("".concat(r.name,"Response"))))],h=t.normalizationIR;h&&r.directives.some((function(e){return e.name===ne}))&&(d=l.visit(h,function(e,t){return{leave:{Root:function(n){return b("".concat(n.name,"RawResponse"),H(e,n.selections,t,null))},InlineFragment:function(t){var n=t.typeCondition;return $(t.selections).map((function(t){return e.isAbstractType(n)?t:(0,i.default)((0,i.default)({},t),{},{concreteType:e.getTypeString(n)})}))},ScalarField:function(n){return G(e,n,t)},ClientExtension:function(e){return $(e.selections).map((function(e){return(0,i.default)((0,i.default)({},e),{},{conditional:!0})}))},LinkedField:function(t){return W(e,t)},Condition:U,Defer:U,Stream:U,ModuleImport:function(n){return function(e,t,n){var r=t.selections,a=t.name,i=r.filter((function(e){return e.length&&"js"===e[0].schemaName})).map((function(e){return e[0]}));if(!n.matchFields.has(a)){var s=H(e,t.selections.filter((function(e){return e.length>1||"js"!==e[0].schemaName})),n,null);n.matchFields.set(a,s)}return[].concat((0,o.default)(i),[{key:a,kind:"ModuleImport",documentName:t.key}])}(e,n,t)},FragmentSpread:function(e){R(!1,"A fragment spread is found when traversing the AST, make sure you are passing the codegen IR")}}}}(e,n)));var v=function(e,t){if(!(null==t?void 0:t.isRefetchableQuery)||!e.useHaste&&!e.useSingleArtifactDirectory)return null;var n=null==t?void 0:t.derivedFrom;if(null!=n&&"string"==typeof n)return n;return null}(n,r.metadata);null!=v&&n.runtimeImports.add("FragmentReference");var T,w,_,k=[];if(n.runtimeImports.size&&k.push(S(Array.from(n.runtimeImports).sort(),"relay-runtime")),k.push.apply(k,(0,o.default)(v?(T=v,w=Z(T),_=ee(T),[y(w,"FragmentReference"),y(_,w)]):X(n)).concat((0,o.default)(Y(e,n)),(0,o.default)(c),[u,p])),d){var F,E=(0,a.default)(n.matchFields);try{for(E.s();!(F=E.n()).done;){var x=F.value,C=x[0],D=x[1];k.push(b(C,D))}}catch(e){E.e(e)}finally{E.f()}m.push(A.objectTypeProperty(A.identifier("rawResponse"),A.genericTypeAnnotation(A.identifier("".concat(r.name,"RawResponse"))))),k.push(d)}return k.push(b(r.name,g(m))),A.program(k)},Fragment:function(t){var r,a=$(t.selections),s=a.filter((function(e){return e.concreteType})).length;a=a.map((function(n){return s<=1&&L(n)&&!e.isAbstractType(t.type)?[(0,i.default)((0,i.default)({},n),{},{concreteType:e.getTypeString(t.type)})]:[n]})),n.generatedFragments.add(t.name);var l,u=function(e,t){var n=Z(e),r=ee(e);if(t)return[S([n,r],t),T([n,r])];return[y(n,"FragmentReference"),y(r,n)]}(t.name,function(e,t){var n,r;if(!e.useHaste&&!e.useSingleArtifactDirectory)return;var a=null===(n=t.find((function(e){return"refetchable"===e.name})))||void 0===n?void 0:n.args;if(!a)return;var i=a.find((function(e){return"Argument"===e.kind&&"queryName"===e.name}));i&&i.value&&"Literal"===i.value.kind&&"string"==typeof i.value.value&&(r=i.value.value,e.useHaste||(r="./"+r),r+=".graphql");return r}(n,t.directives)),c=(l=t.name,"".concat(l,"$key")),f=E("$data",A.genericTypeAnnotation(A.identifier("".concat(t.name,"$data"))));f.optional=!0;var d=E("$fragmentRefs",A.genericTypeAnnotation(A.identifier(Z(t.name)))),p=function(e){return Boolean(e.metadata&&e.metadata.plural)}(t),m=w([f,d]),h=function(e){return"".concat(e,"$data")}(t.name),v=A.genericTypeAnnotation(A.identifier(t.name)),g=null!=t.metadata&&!1===t.metadata.mask,_=V(e,a,n,g,g?void 0:Z(t.name)),k=p?F(_):_;return!0===(null===(r=t.metadata)||void 0===r?void 0:r.childrenCanBubbleNull)&&(k=A.nullableTypeAnnotation(k)),n.runtimeImports.add("FragmentReference"),A.program([].concat((0,o.default)(X(n)),(0,o.default)(Y(e,n)),[S(Array.from(n.runtimeImports).sort(),"relay-runtime")],(0,o.default)(u),[b(t.name,k),b(h,v),b(c,p?F(m):m)]))},InlineFragment:function(t){return $(t.selections).map((function(n){return e.isAbstractType(t.typeCondition)?(0,i.default)((0,i.default)({},n),{},{conditional:!0}):(0,i.default)((0,i.default)({},n),{},{concreteType:e.getTypeString(t.typeCondition)})}))},Condition:function(e){return $(e.selections).map((function(e){return(0,i.default)((0,i.default)({},e),{},{conditional:!0})}))},ScalarField:function(t){return G(e,t,n)},LinkedField:function(t){return W(e,t)},ModuleImport:function(t){return[{key:"__fragmentPropName",conditional:!0,value:D(e,e.expectStringType(),n)},{key:"__module_component",conditional:!0,value:D(e,e.expectStringType(),n)},{key:"__fragments_"+t.name,ref:t.name}]},FragmentSpread:function(e){return n.usedFragments.add(e.name),[{key:"__fragments_"+e.name,ref:e.name}]}}}}(e,n));return I(r).code}),"RelayFlowGenerator.generate"),transforms:te,SCHEMA_EXTENSION:"directive @".concat(ne," on QUERY | MUTATION | SUBSCRIPTION")}},function(e,t,n){"use strict";e.exports=function(e){return"".concat(e,"$normalization")}},function(e,t){e.exports=require("@babel/types")},function(e,t,n){"use strict";var r=n(6);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:r(!1,"getIdentifierForArgumentValue(): Unsupported AST kind `%s`.",t.kind)}}},function(e,t,n){"use strict";var r=n(8),a=n(124),i=n(69),o={allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module",plugins:["asyncGenerators","classProperties",["decorators",{decoratorsBeforeExport:!0}],"doExpressions","dynamicImport","exportExtensions",["flow",{enums:!0}],"functionBind","functionSent","jsx","nullishCoalescingOperator","objectRestSpread","optionalChaining","optionalCatchBinding"],strictMode:!1};var s={comments:!0,end:!0,leadingComments:!0,loc:!0,name:!0,start:!0,trailingComments:!0,type:!0};function l(e){var t=e.quasis;return t&&1===t.length||function(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];throw new Error(i.format.apply(i,[t].concat(r)))}}(!1,"FindGraphQLTags: Substitutions are not allowed in graphql tags."),t[0]}function u(e,t){var n=t[e.type];null==n?function(e,t){for(var n in e)if(!s[n]){var r=e[n];r&&"object"==typeof r&&"string"==typeof r.type?u(r,t):Array.isArray(r)&&r.forEach((function(e){e&&"object"==typeof e&&"string"==typeof e.type&&u(e,t)}))}}(e,t):n(e)}e.exports={find:r.instrument((function(e){var t=[];return u(a.parse(e,o),{TaggedTemplateExpression:function(e){var n,r,a;"Identifier"===(a=e.tag).type&&"graphql"===a.name&&t.push({keyName:null,template:e.quasi.quasis[0].value.raw,sourceLocationOffset:(n=e.quasi,r=l(n).loc.start,{line:r.line,column:r.column+1})})}}),t}),"FindGraphQLTags.find")}},function(e,t,n){"use strict";var r=n(0),a=n(9),i=r(n(3)),o=r(n(5)),s=n(8),l=n(23),u=n(29).create,c=n(30),f=n(44),d=n(17).Map,p=n(6),m=n(11),h=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 a in e.writerConfigs)r(a)}var t=e.prototype;return t.compileAll=function(){var e=a((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=a((function*(e){var t=this,n=this.writerConfigs[e],r=[n.parser];return n.baseParsers&&n.baseParsers.forEach((function(e){return r.push(e)})),yield s.asyncContext("CodegenRunner:parseEverything",(function(){return Promise.all(r.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 s.asyncContext("CodegenRunner:getDirtyWriters",a((function*(){var n=new Set;for(var r in t.writerConfigs){var o,u=t.writerConfigs[r],c=(0,i.default)(e);try{for(c.s();!(o=c.n()).done;){var f=o.value;u.isGeneratedFile(f)&&n.add(r)}}catch(e){c.e(e)}finally{c.f()}}return yield Promise.all(Object.keys(t.parserConfigs).map((function(r){return s.waitFor("Watchman:query",a((function*(){var a=new l,i=t.parserConfigs[r],o=yield a.watchProject(i.baseDir),s=e.map((function(e){return m.relative(i.baseDir,e)})),u={expression:["allof",i.watchmanExpression,["name",s,"wholename"]],fields:["exists"],relative_root:o.relativePath},c=yield a.command("query",o.root,u);a.end(),c.files.length>0&&t.parserWriters[r].forEach((function(e){return n.add(e)}))})))}))),n})))},t.parseEverything=function(){var e=a((function*(e){if(!this.parsers[e]){var t=this.parserConfigs[e];this.parsers[e]=t.getParser(t.baseDir);var n,r=t.getFileFilter?t.getFileFilter(t.baseDir):v;if(t.filepaths&&t.watchmanExpression)throw new Error("Provide either `watchmanExpression` or `filepaths` but not both.");if(t.watchmanExpression)n=yield f.queryFiles(t.baseDir,t.watchmanExpression,r);else{if(!t.filepaths)throw new Error("Either `watchmanExpression` or `filepaths` is required to query files");n=yield f.queryFilepaths(t.baseDir,t.filepaths,r)}this.parseFileChanges(e,n)}}));return function(t){return e.apply(this,arguments)}}(),t.parseFileChanges=function(e,t){var n=this;return s.run("CodegenRunner.parseFileChanges",(function(){n.parsers[e].parseFiles(t)}))},t.write=function(e){var t=this;return s.asyncContext("CodegenRunner.write",a((function*(){try{t._reporter.reportMessage("\nWriting ".concat(e));var n=t.writerConfigs[e],r=n.writeFiles,a=n.parser,l=n.baseParsers,h=n.isGeneratedFile,v=d();l&&l.forEach((function(e){null==t.parsers[e]&&p(!1,"Trying to access an uncompiled base parser config: %s",e),v=v.merge(t.parsers[e].documents())}));var y=t.parserConfigs[a],g=y.baseDir,b=y.generatedDirectoriesWatchmanExpression,T=[];if(b)T=(yield f.queryDirectories(g,b)).map((function(e){return m.join(g,e)}));var S,w=t.parsers[a].documents(),_=s.run("getSchema",(function(){return u(t.parserConfigs[a].getSchemaSource(),v.toArray(),t.parserConfigs[a].schemaExtensions)})),k=yield r({onlyValidate:t.onlyValidate,schema:_,documents:w,baseDocuments:v,generatedDirectories:T,sourceControl:t._sourceControl,reporter:t._reporter}),F=(0,i.default)(k.values());try{for(F.s();!(S=F.n()).done;){var E,x=S.value,C=[].concat((0,o.default)(x.changes.created),(0,o.default)(x.changes.updated),(0,o.default)(x.changes.deleted),(0,o.default)(x.changes.unchanged)),N=(0,i.default)(C);try{for(N.s();!(E=N.n()).done;){var D=E.value,I=x.getPath(D);h(I)||p(!1,"CodegenRunner: %s returned false for isGeneratedFile, but was in generated directory",I)}}catch(e){N.e(e)}finally{N.f()}}}catch(e){F.e(e)}finally{F.f()}var A=t.onComplete;null!=A&&A(Array.from(k.values()));var R=c.combineChanges(Array.from(k.values()));return t._reporter.reportMessage(c.formatChanges(R,{onlyValidate:t.onlyValidate})),c.hasChanges(R)?"HAS_CHANGES":"NO_CHANGES"}catch(e){return t._reporter.reportError("CodegenRunner.write",e),"ERROR"}})))},t.watchAll=function(){var e=a((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=a((function*(e){var t=this,n=this.parserConfigs[e];if(!n.watchmanExpression)throw new Error("`watchmanExpression` is required to watch files");var r=!0;yield f.watchCompile(n.baseDir,n.watchmanExpression,n.getFileFilter?n.getFileFilter(n.baseDir):v,function(){var n=a((function*(n){if(null==t.parsers[e]&&p(!1,"Trying to watch an uncompiled parser config: %s",e),r)r=!1;else{var a=[];t.parserWriters[e].forEach((function(e){return a.push(e)}));try{t.parsers[e]?t.parseFileChanges(e,n):yield t.parseEverything(e),yield Promise.all(a.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 n.apply(this,arguments)}}()),this._reporter.reportMessage("Watching for changes to ".concat(e,"..."))}));return function(t){return e.apply(this,arguments)}}(),e}();function v(e){return!0}e.exports=h},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("@babel/runtime/helpers/inheritsLoose")},function(e,t,n){"use strict";var r=n(9),a=n(8),i=n(23),o=n(14),s=n(13),l=n(11);function u(){return(u=r((function*(e,t,n){return yield a.waitFor("Watchman:query",r((function*(){var r=new i(3),a=yield Promise.all([r.watchProject(e),f(r)]),o=a[0],s=a[1],l=yield r.command("query",o.root,{expression:t,fields:s,relative_root:o.relativePath});return r.end(),S(new Set,e,n,l.files)})))}))).apply(this,arguments)}function c(){return(c=r((function*(e,t){return yield a.waitFor("Watchman:query",r((function*(){var n=new i,r=yield n.watchProject(e),a=yield n.command("query",r.root,{expression:t,fields:["name"],relative_root:r.relativePath});return n.end(),a.files})))}))).apply(this,arguments)}function f(e){return d.apply(this,arguments)}function d(){return(d=r((function*(e){var t=["name","exists"];return(yield e.hasCapability("field-content.sha1hex"))&&t.push("content.sha1hex"),t}))).apply(this,arguments)}function p(){return(p=r((function*(e,t,n){var r=t.map((function(e){return{name:e,exists:!0,"content.sha1hex":null}}));return S(new Set,e,n,r)}))).apply(this,arguments)}function m(e,t,n){return h.apply(this,arguments)}function h(){return(h=r((function*(e,t,n){return yield a.waitFor("Watchman:subscribe",r((function*(){var r=new i,a=yield r.watchProject(e);yield v(r,a.root,a.relativePath,t,n)})))}))).apply(this,arguments)}function v(e,t,n,r,a){return y.apply(this,arguments)}function y(){return(y=r((function*(e,t,n,r,a){e.on("subscription",(function(e){"graphql-codegen"===e.subscription&&a(e)}));var i=yield f(e);yield e.command("subscribe",t,"graphql-codegen",{expression:r,fields:i,relative_root:n})}))).apply(this,arguments)}function g(e,t,n,r){return b.apply(this,arguments)}function b(){return(b=r((function*(e,t,n,r){var a=new Set;yield m(e,t,(function(t){t.files&&(a=S(a,e,n,t.files),r(a))}))}))).apply(this,arguments)}function T(){return(T=r((function*(e,t,n,a){var i=!1,o=!1,s=null;g(e,t,n,function(){var e=r((function*(e){if(o=!0,s=e,!i){for(i=!0;o;)o=!1,yield a(s);i=!1}}));return function(t){return e.apply(this,arguments)}}())}))).apply(this,arguments)}function S(e,t,n,r){var a=new Map;return e.forEach((function(e){e.exists&&a.set(e.relPath,e)})),r.forEach((function(e){var r,i,u=e.name,c=e.exists,f=e["content.sha1hex"],d=!c;if(!d){var p={exists:!0,relPath:u,hash:f||(r=l.join(t,u),i=s.readFileSync(r),o.createHash("sha1").update(i).digest("hex"))};n(p)?a.set(u,p):d=!0}d&&a.set(u,{exists:!1,relPath:u})})),new Set(a.values())}e.exports={queryDirectories:function(e,t){return c.apply(this,arguments)},queryFiles:function(e,t,n){return u.apply(this,arguments)},queryFilepaths:function(e,t,n){return p.apply(this,arguments)},watch:m,watchFiles:g,watchCompile:function(e,t,n,r){return T.apply(this,arguments)}}},function(e,t,n){"use strict";var r=n(0),a=n(9),i=r(n(3)),o=r(n(5)),s=n(31),l=n(18),u=n(8),c=n(46).getReaderSourceDefinitionName,f=n(24),d=n(10).isExecutableDefinitionAST,p=n(15),m=n(30),h=n(32),v=n(53),y=n(7),g=(n(17).Map,n(6)),b=n(16),T=n(11);e.exports={writeAll:function(e){var t=e.config,n=e.onlyValidate,r=e.baseDocuments,S=e.documents,w=e.schema,_=e.reporter,k=e.sourceControl,F=e.languagePlugin;return u.asyncContext("RelayFileWriter.writeAll",a((function*(){var e=function(e){e.baseDir;var t=e.baseDocuments,n=e.schema,r=e.compilerTransforms,a=e.documents,i=e.reporter,u=e.typeGenerator,c=s.convertASTDocumentsWithBase(n,t,a,f.transform),d=new l(n).addAll(c),p=d.applyTransforms(u.transforms,i),m=d.applyTransforms([].concat((0,o.default)(r.commonTransforms),(0,o.default)(r.queryTransforms)),i);return{artifacts:h(d,r,i),definitions:c,transformedQueryContext:m,transformedTypeContext:p}}({schema:w,baseDir:t.baseDir,baseDocuments:r.valueSeq().toArray(),compilerTransforms:t.compilerTransforms,documents:S.valueSeq().toArray(),reporter:_,typeGenerator:t.typeGenerator}),E=e.artifacts,x=e.transformedTypeContext,C=e.transformedQueryContext,N=new Set;r.forEach((function(e){e.definitions.forEach((function(e){d(e)&&e.name&&N.add(e.name.value)}))}));var D=E.filter((function(e){e[0];var t=e[1],n=c(t);return!N.has(n)})),I=new Map(D.map((function(e){e[0];var t=e[1];return["Request"===t.kind?t.params.name:t.name,t]}))),A=new Map,R=function(e){var t=b(I.get(e)),n=c(t),r=A.get(n);return r||g(!1,"RelayFileWriter: Could not determine source for definition: `%s`.",e),r};S.forEach((function(e,n){e.definitions.forEach((function(e){e.name&&A.set(e.name.value,{dir:T.join(t.baseDir,T.dirname(n)),ast:e})}))}));var O,M,L=new Map,j=function(e){var r=new m(e,{onlyValidate:n,filesystem:t.filesystem});return L.set(e,r),r},V=(0,i.default)(t.generatedDirectories||[]);try{for(V.s();!(O=V.n()).done;){var q=O.value;j(q)}}catch(e){V.e(e)}finally{V.f()}t.outputDir&&(M=j(t.outputDir));var P=function(e){if(M)return M;var t=T.join(R(e).dir,"__generated__"),n=L.get(t);return n||(n=j(t)),n},U=u.instrument(t.formatModule,"RelayFileWriter:formatModule"),G=t.persistQuery?u.instrumentWait(t.persistQuery,"RelayFileWriter:persistQuery"):null;try{yield Promise.all(D.map(function(){var e=a((function*(e){var n,r,a=e[0],i=e[1],o="Request"===i.kind?i.params.name:i.name;if(!N.has(o)){var s=x.get(o),l=s?t.typeGenerator.generate(w,s,{customScalars:t.customScalars,enumsHasteModule:t.enumsHasteModule,optionalInputFields:t.optionalInputFieldsForFlow,useHaste:t.useHaste,useSingleArtifactDirectory:!!t.outputDir,noFutureProofEnums:t.noFutureProofEnums,normalizationIR:"Request"===a.kind?a.root:void 0}):"",c=u.run("hashGraphQL",(function(){return p(y.print(R(o).ast))}));yield v(w,P(o),a,i,U,l,G,c,t.extension,t.printModuleDependency,null!==(n=t.repersist)&&void 0!==n&&n,null!==(r=t.writeQueryParameters)&&void 0!==r?r:function(){},F)}}));return function(t){return e.apply(this,arguments)}}()));var B=t.generateExtraFiles;B&&u.run("RelayFileWriter:generateExtraFiles",(function(){var e=t.outputDir;B((function(t){var n=t||e;n||g(!1,"RelayFileWriter: cannot generate extra files without specifying an outputDir in the config or passing it in.");var r=L.get(n);return r||(r=j(n)),r}),C,P)})),L.forEach((function(e){e.deleteExtraFiles(null==F?void 0:F.keepExtraFile)})),k&&!n&&(yield m.sourceControlAddRemove(k,Array.from(L.values())))}catch(e){var W;try{W=JSON.parse(e.message)}catch(e){}if(W&&"GraphQL2Exception"===W.name&&W.message)throw new Error("GraphQL error writing modules:\n"+W.message);throw new Error("Error writing modules:\n"+String(e.stack||e))}return L})))}}},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],a=r[1];return"string"==typeof a?a:r[0]}}},function(e,t,n){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,n){"use strict";var r=n(0)(n(3)),a=n(1).createCompilerError,i=n(7),o=i.SchemaMetaFieldDef,s=i.TypeMetaFieldDef;function l(e,t,n){var r,a=e.getRawType(t),i=e.getQueryType(),l=null!=i&&e.areEqualTypes(a,i),u=e.isAbstractType(a)||e.isObject(a);if(l&&n===o.name)r=null!=i?e.getFieldByName(i,"__schema"):null;else if(l&&n===s.name)r=null!=i?e.getFieldByName(i,"__type"):null;else if(u&&"__typename"===n)r=e.getFieldByName(e.assertCompositeType(a),"__typename");else if(u&&"__id"===n)r=e.getFieldByName(e.assertCompositeType(a),"__id");else if(e.isInterface(a)||e.isObject(a)){var c=e.assertCompositeType(a);if(!e.hasField(c,n))return null;r=e.getFieldByName(c,n)}return r}function u(e){var t=e.name?e.name.value:null;if("string"!=typeof t)throw a("Expected ast node to have a 'name'.",null,[e]);return t}e.exports={getFieldDefinitionLegacy:function(e,t,n,a){var i,o=l(e,t,n);return o||(o=function(e,t,n,a){var i=e.getRawType(t);if(e.isAbstractType(i)&&a&&a.directives&&a.directives.some((function(e){return"fixme_fat_interface"===u(e)}))){var o,s,l=e.getPossibleTypes(e.assertAbstractType(i)),c=(0,r.default)(l);try{var f=function(){var t=s.value,r=e.getFieldByName(t,n);if(r&&(o=r,a&&a.arguments&&a.arguments.every((function(t){return null!=e.getFieldArgByName(r,u(t))}))))return"break"};for(c.s();!(s=c.n()).done;){if("break"===f())break}}catch(e){c.e(e)}finally{c.f()}return o}}(e,t,n,a)),null!==(i=o)&&void 0!==i?i:null},getFieldDefinitionStrict:l}},function(e,t,n){"use strict";var r=n(18),a=n(20).visit;e.exports=function(e,t){for(var n=[e],i=new r(t.getSchema()).add(e),o={FragmentSpread:function(e){!function(e){var r=e.name;if(!i.get(r)){var a=t.getFragment(r);i=i.add(a),n.push(a)}}(e)}};n.length;)a(n.pop(),o);return i}},function(e,t,n){"use strict";var r=n(1).createCompilerError,a=n(15),i=n(79),o=n(80),s=n(52),l=n(16);e.exports={generate:function(e,t){var n;switch(t.kind){case"Fragment":return!0===(null===(n=t.metadata)||void 0===n?void 0:n.inlineData)?{kind:"InlineDataFragment",name:t.name}:o.generate(e,t);case"Request":return{fragment:o.generate(e,t.fragment),kind:"Request",operation:i.generate(e,t.root),params:null!=t.id?{id:t.id,metadata:s(t.metadata),name:t.name,operationKind:t.root.operation}:{cacheID:a(l(t.text)),metadata:s(t.metadata),name:t.name,operationKind:t.root.operation,text:t.text}};case"SplitOperation":return i.generate(e,t)}throw r("RelayCodeGenerator: Unknown AST kind '".concat(t.kind,"'."),[t.loc])}}},function(e,t,n){"use strict";e.exports=function e(t){if(null==t)return!1;switch(t.kind){case"Variable":return!0;case"Literal":return!1;case"ListValue":return t.items.some(e);case"ObjectValue":return t.fields.some(e);default:return t.kind,!1}}},function(e,t,n){"use strict";var r=n(0)(n(3));e.exports=function(e){if(null==e)return e;var t,n={},a=(0,r.default)(Object.keys(e).sort());try{for(a.s();!(t=a.n()).done;){var i=t.value;n[i]=e[i]}}catch(e){a.e(e)}finally{a.f()}return n}},function(e,t,n){"use strict";var r=n(0),a=n(9),i=r(n(2)),o=r(n(81)),s=n(34),l=n(82),u=n(15),c=n(83),f=n(6),d=n(12).RelayConcreteNode;function p(e){switch(e.kind){case d.FRAGMENT:return"ReaderFragment";case d.REQUEST:return"ConcreteRequest";case d.SPLIT_OPERATION:return"NormalizationSplitOperation";case d.INLINE_DATA_FRAGMENT:return"ReaderInlineDataFragment";default:f(!1,"Unexpected GeneratedNode kind: `%s`.",e.kind)}}function m(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]}function h(e){if(null==e||0===e.length)return null;if(/<<<<<|>>>>>/.test(e))return null;var t=e.match(/@relayRequestID (.+)/);return t?t[1]:null}e.exports=function(e,t,n,r,v,y,g,b,T){var S,w=arguments.length>9&&void 0!==arguments[9]?arguments[9]:c(),_=arguments.length>10?arguments[10]:void 0,k=arguments.length>11?arguments[11]:void 0,F=arguments.length>12?arguments[12]:void 0,E=r,x=g,C="Request"===E.kind?E.params.name:E.name,N=(null==F?void 0:F.getModuleName)?F.getModuleName(C):C+".graphql",D=N+"."+T,I="Request"===E.kind?"".concat(E.params.name,"$Parameters.").concat(T):null,A=p(E);return E.kind===d.REQUEST&&(S=null!=E.params.text?E.params.text:null),Promise.resolve().then(a((function*(){var r,a=null;if(E.kind===d.REQUEST){null==S&&f(!1,"writeRelayGeneratedFile: Expected `text` for operations to be set.");var c,p=E.params.metadata,g=(p.isRefetchableQuery,p.derivedFrom,(0,o.default)(p,["isRefetchableQuery","derivedFrom"]));if(null!=x){a=u(S);var T=null;if(!_){var F=t.read(D),C=m(F),R=h(F);a===C&&null!=R&&(T=R)}null==T&&(T=yield x(S)),c={id:T,metadata:g,name:E.params.name,operationKind:E.params.operationKind,text:null}}else c={cacheID:u(S),id:null,metadata:g,name:E.params.name,operationKind:E.params.operationKind,text:S};E=(0,i.default)((0,i.default)({},E),{},{params:c})}if(E.kind===d.SPLIT_OPERATION&&null!=(null===(r=E.metadata)||void 0===r?void 0:r.derivedFrom)){var O=E.metadata,M=(O.derivedFrom,(0,o.default)(O,["derivedFrom"]));E=(0,i.default)((0,i.default)({},E),{},{metadata:M})}var L=v({moduleName:N,documentType:A,definition:n,kind:E.kind,docText:S,typeText:y,hash:null!=a?"@relayHash ".concat(a):null,concreteText:s.postProcess(l(E),w),sourceHash:b,node:E,schema:e});return t.writeFile(D,L,_),k&&null!=I&&E.kind===d.REQUEST&&"query"===E.params.operationKind&&k(t,I,N,E.params),E})))}},function(e,t,n){"use strict";var r=n(35),a=n(13),i=n(7),o=i.Source,s=i.parse,l=n(11);function u(e,t){var n=a.readFileSync(l.join(e,t.relPath),"utf8");return s(new o(n,t.relPath),{experimentalFragmentVariables:!0})}e.exports={parseFile:u,getParser:function(e){return new r({baseDir:e,parse:u})}}},function(e,t,n){"use strict";var r=n(36),a=n(93),i=n(95),o=n(96),s=n(97),l=n(98),u=n(99),c=n(100),f=n(101),d=n(102),p=n(103),m=n(56),h=n(104),v=n(105),y=n(106),g=n(107),b=n(58),T=n(59),S=n(108),w=n(60),_=n(61),k=n(62),F=n(109),E=n(110),x=n(111),C=n(112),N=n(113),D=n(114),I=n(115),A=n(116),R=n(117),O=n(118),M=n(119),L=[o.SCHEMA_EXTENSION,s.SCHEMA_EXTENSION,y.SCHEMA_EXTENSION,T.SCHEMA_EXTENSION,k.SCHEMA_EXTENSION,w.SCHEMA_EXTENSION,_.SCHEMA_EXTENSION,r.SCHEMA_EXTENSION,A.SCHEMA_EXTENSION,M.SCHEMA_EXTENSION],j=[u.transform,o.transform,_.transform,b.transform,T.transform,w.transform,l.transform,S.transform],V=[i.transform,f.transform,y.transform,m.transformWithOptions({isForCodegen:!0}),k.transform,x.transform],q=[I.transform,c.transform,M.transform,a.transform,R.transform,h.transform,s.transform],P=[d.transform,N.transform,g.transform,i.transform,v.transform,m.transformWithOptions({isForCodegen:!0}),x.transform,A.transform],U=[C.transform,i.transform,F.transform,N.transform,v.transform,m.transformWithOptions({}),E.transform,p.transform,D.transform,O.transform];e.exports={commonTransforms:j,codegenTransforms:P,fragmentTransforms:V,printTransforms:U,queryTransforms:q,schemaExtensions:L}},function(e,t,n){"use strict";var r=n(0)(n(2)),a=n(1),i=a.createCompilerError,o=a.createUserError,s=n(57),l=n(4),u=n(84);function c(e,t){var n,a={isForCodegen:!(!t||!t.isForCodegen),parentType:null},o=(n=new Map,function(e,t){var a=this.getContext(),o=n.get(e);null==o&&(o=new Map,n.set(e,o));var s=t.parentType,l=o.get(s);if(null!=l)return l;var u="LinkedField"===e.kind||"Fragment"===e.kind||"Root"===e.kind||"SplitOperation"===e.kind?e.type:"InlineFragment"===e.kind?e.typeCondition:s;if(null==u)throw i("FlattenTransform: Expected a parent type.",[e.loc]);var c=new Map,d=f(a.getSchema(),c,e,t,u)?(0,r.default)((0,r.default)({},e),{},{selections:Array.from(c.values())}):e;t.parentType=u;var p=this.traverse(d,t);return t.parentType=s,o.set(s,p),p});return l.transform(e,{Condition:o,Defer:o,Fragment:o,InlineDataFragmentSpread:o,InlineFragment:o,LinkedField:o,ModuleImport:o,Root:o,SplitOperation:o},(function(){return a}))}function f(e,t,n,a,l){var u=!1;return n.selections.forEach((function(n){if("InlineFragment"===n.kind&&function(e,t,n,r){return e.areEqualTypes(t.typeCondition,e.getRawType(r))&&(n.isForCodegen||0===t.directives.length)}(e,n,a,l))return u=!0,void f(e,t,n,a,l);var c=s(e,n),h=t.get(c);if(h)if(u=!0,"InlineFragment"===h.kind){if("InlineFragment"!==n.kind)throw i("FlattenTransform: Expected an InlineFragment, got a '".concat(n.kind,"'"),[n.loc]);t.set(c,(0,r.default)((0,r.default)({},h),{},{selections:d(e,h,n,a,n.typeCondition)}))}else if("Condition"===h.kind){if("Condition"!==n.kind)throw i("FlattenTransform: Expected a Condition, got a '".concat(n.kind,"'"),[n.loc]);t.set(c,(0,r.default)((0,r.default)({},h),{},{selections:d(e,h,n,a,l)}))}else if("ClientExtension"===h.kind){if("ClientExtension"!==n.kind)throw i("FlattenTransform: Expected a ClientExtension, got a '".concat(n.kind,"'"),[n.loc]);t.set(c,(0,r.default)((0,r.default)({},h),{},{selections:d(e,h,n,a,l)}))}else if("FragmentSpread"===h.kind);else if("ModuleImport"===h.kind){if("ModuleImport"!==n.kind)throw i("FlattenTransform: Expected a ModuleImport, got a '".concat(n.kind,"'"),[n.loc]);if(n.name!==h.name||n.module!==h.module||n.key!==h.key)throw o("Found conflicting @module selections: use a unique alias on the parent fields.",[n.loc,h.loc]);t.set(c,(0,r.default)((0,r.default)({},h),{},{selections:d(e,h,n,a,l)}))}else if("Defer"===h.kind){if("Defer"!==n.kind)throw i("FlattenTransform: Expected a Defer, got a '".concat(n.kind,"'"),[n.loc]);t.set(c,(0,r.default)((0,r.default)({kind:"Defer"},h),{},{selections:d(e,h,n,a,l)}))}else if("Stream"===h.kind){if("Stream"!==n.kind)throw i("FlattenTransform: Expected a Stream, got a '".concat(n.kind,"'"),[n.loc]);t.set(c,(0,r.default)((0,r.default)({kind:"Stream"},h),{},{selections:d(e,h,n,a,l)}))}else if("LinkedField"===h.kind){if("LinkedField"!==n.kind)throw i("FlattenTransform: Expected a LinkedField, got a '".concat(n.kind,"'"),[n.loc]);p(n,h),t.set(c,{kind:"LinkedField",alias:h.alias,args:h.args,connection:h.connection||n.connection,directives:h.directives,handles:m(h,n),loc:h.loc,metadata:h.metadata,name:h.name,selections:d(e,h,n,a,n.type),type:h.type})}else{if("ScalarField"!==h.kind)throw"InlineDataFragmentSpread"===h.kind?i("FlattenTransform: did not expect an InlineDataFragmentSpread node. Only expecting InlineDataFragmentSpread in reader ASTs and this transform to run only on normalization ASTs.",[n.loc]):(h.kind,i("FlattenTransform: Unknown kind '".concat(h.kind,"'")));if("ScalarField"!==n.kind)throw i("FlattenTransform: Expected a ScalarField, got a '".concat(n.kind,"'"),[n.loc]);p(n,h),n.handles&&n.handles.length>0&&t.set(c,(0,r.default)((0,r.default)({kind:"ScalarField"},h),{},{handles:m(n,h)}))}else t.set(c,n)})),u}function d(e,t,n,r,a){var i=new Map;return f(e,i,t,r,a),f(e,i,n,r,a),Array.from(i.values())}function p(e,t){if(r=t,(n=e).kind!==r.kind||n.name!==r.name||n.alias!==r.alias||(a=n.args,i=r.args,a.length!==i.length||!a.every((function(e,t){var n=i[t];return e.name===n.name&&e.value.kind===n.value.kind&&e.value.variableName===n.value.variableName&&u(e.value.value,n.value.value)}))))throw o("Expected all fields on the same parent with the name or alias "+"'".concat(e.alias,"' to have the same name and arguments."),[e.loc,t.loc]);var n,r,a,i}function m(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 c(t,e)}}}},function(e,t,n){"use strict";var r=n(33),a=r.printArguments,i=r.printDirectives,o=n(6);e.exports=function(e,t){return"LinkedField"===t.kind||"ScalarField"===t.kind?"Field: "+t.directives.length===0?t.alias:t.alias+i(e,t.directives):"FragmentSpread"===t.kind?"FragmentSpread:"+t.args.length===0?t.name:t.name+a(e,t.args):"ModuleImport"===t.kind?"ModuleImport:":"Defer"===t.kind?"Defer:"+t.label:"Stream"===t.kind?"Stream:"+t.label:"InlineFragment"===t.kind?"InlineFragment:"+e.getTypeString(t.typeCondition)+i(e,t.directives):"ClientExtension"===t.kind?"ClientExtension:":"InlineDataFragmentSpread"===t.kind?"InlineDataFragment:"+t.name:"Condition"===t.kind?"Condition:"+("Variable"===t.condition.kind?"$"+t.condition.variableName:String(t.condition.value))+String(t.passingValue):void o(!1,"getIdentifierForSelection: Unexpected kind `%s`.",t.kind)}},function(e,t,n){"use strict";var r=n(0),a=r(n(3)),i=r(n(2)),o=n(1).createUserError,s=n(4),l=n(85),u=n(6);function c(e,t){var n=this.traverse(e,t);if(0===t.reachableArguments.length)return n;var r=l(this.getContext().getSchema(),e,t.reachableArguments,"@relay(unmask: true)");return(0,i.default)((0,i.default)({},n),{},{argumentDefinitions:r})}function f(e,t){if(n=e,!Boolean(n.metadata&&!1===n.metadata.mask))return e;var n;0!==e.args.length&&u(!1,"MaskTransform: 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};if(r.directives.length>0)throw new o("Cannot use @relay(mask: false) on fragment spreads for fragments with directives.",[e.loc,r.directives[0].loc]);var s=r.argumentDefinitions.find((function(e){return"LocalArgumentDefinition"===e.kind}));if(null!=s)throw o("MaskTransform: Cannot use @relay(mask: false) on fragment spread because the fragment definition uses @argumentDefinitions.",[e.loc,s.loc]);var l,c=(0,a.default)(r.argumentDefinitions);try{for(c.s();!(l=c.n()).done;){var f=l.value;t.reachableArguments.push(f)}}catch(e){c.e(e)}finally{c.f()}return this.traverse(i,t)}e.exports={transform:function(e){return s.transform(e,{FragmentSpread:f,Fragment:c},(function(){return{reachableArguments:[]}}))}}},function(e,t,n){"use strict";var r=n(0),a=r(n(2)),i=r(n(5)),o=n(1),s=o.createCompilerError,l=o.createUserError,u=n(21),c=n(37),f=n(4),d=n(12),p=d.getModuleComponentKey,m=d.getModuleOperationKey,h="module";function v(e,t){return this.traverse(e,(0,a.default)((0,a.default)({},t),{},{parentType:e.typeCondition}))}function y(e){var t=this.getContext().getSchema();if("js"===e.name){var n=t.getTypeFromString("JSDependency");if(null==n||!t.isServerType(n))throw new l("'".concat("js","' should be defined on the server schema."),[e.loc]);if(t.isScalar(n)&&t.areEqualTypes(t.getRawType(e.type),n))throw new l("Direct use of the '".concat("js","' field is not allowed, use ")+"@match/@module instead.",[e.loc])}return e}function g(e,t){var n,r=this.getContext().getSchema(),o=e.directives.find((function(e){return"match"===e.name})),s=null;if(null!=o&&(null!=(s=u(o.args).key)&&("string"!=typeof s||!s.startsWith(t.documentName))))throw l("Expected the 'key' argument of @match to be a literal string starting "+"with the document name, e.g. '".concat(t.documentName,"_<localName>'."),[(null!==(n=o.args.find((function(e){return"key"===e.name})))&&void 0!==n?n:o).loc]);t.path.push(e);var c=this.traverse(e,(0,a.default)((0,a.default)({},t),{},{moduleKey:s,parentType:e.type}));if(t.path.pop(),null==o)return c;var f=t.parentType,d=r.getRawType(f);if(!r.isInterface(d)&&!r.isObject(d))throw l("@match used on incompatible field '".concat(c.name,"'.")+"@match may only be used with fields whose parent type is an "+"interface or object, got invalid type '".concat(r.getTypeString(f),"'."),[e.loc]);var p=r.getFieldConfig(r.expectField(r.assertCompositeType(d),c.name)).args.find((function(e){return"supported"===e.name}));if(null==p){if(null==s)throw l("@match on a field without the `supported` argument is a no-op, please remove the `@match`.",[e.loc]);return c}var m=r.getNullableType(p.type),h=null!=m&&r.isList(m)?r.getListItemType(m):null;if(null==m||null==h||!r.isString(r.getNullableType(h)))throw l("@match used on incompatible field '".concat(c.name,"'. ")+"@match may only be used with fields that accept a 'supported: [String!]!' argument.",[e.loc]);var v=r.getRawType(c.type);if(!r.isAbstractType(v))throw l("@match used on incompatible field '".concat(c.name,"'.")+"@match may only be used with fields that return a union or interface.",[e.loc]);var y=new Map,g=[];if(c.selections.forEach((function(e){if("ScalarField"!==e.kind||"__typename"!==e.name){var t="InlineFragment"===e.kind?e.selections[0]:null;if("InlineFragment"!==e.kind||null==t||"ModuleImport"!==t.kind)throw l("Invalid @match selection: all selections should be fragment spreads with @module.",[e.loc]);var n=e.typeCondition;y.set(n,e),g.push(e)}else g.push(e)})),0===y.size)throw l("Invalid @match selection: expected at least one @module selection. Remove @match or add a '...Fragment @module()' selection.",[o.loc]);var b=c.args.find((function(e){return"supported"===e.name}));if(null!=b)throw l("Invalid @match selection: the '".concat("supported","' argument ")+"is automatically added and cannot be supplied explicitly.",[b.loc]);return{kind:"LinkedField",alias:c.alias,args:[].concat((0,i.default)(c.args),[{kind:"Argument",name:"supported",type:p.type,value:{kind:"Literal",loc:e.loc,value:Array.from(y.keys()).map((function(e){return r.getTypeString(e)}))},loc:e.loc}]),connection:!1,directives:[],handles:null,loc:e.loc,metadata:null,name:c.name,type:c.type,selections:g}}function b(e,t){var n,r,i,o,f,d,v,y=t.documentName,g=t.path,b=t.matchesForPath,T=t.moduleKey,S=this.traverse(e),w=S.directives.find((function(e){return"module"===e.name}));if(null==w)return S;if(0!==e.args.length)throw l("@module does not support @arguments.",[null===(v=e.args[0])||void 0===v?void 0:v.loc].filter(Boolean));var _=this.getContext(),k=_.getSchema(),F=k.asScalarFieldType(k.getTypeFromString("JSDependency"));if(null==F||!k.isServerType(F))throw new l("'".concat("js","' should be defined on the server schema."),[e.loc]);if(!k.isScalar(F))throw l("Using @module requires the schema to define a scalar "+"'".concat("JSDependency","' type."));var E=_.getFragment(e.name,e.loc);if(!k.isObject(E.type))throw l("@module used on invalid fragment spread '...".concat(e.name,"'. @module ")+"may only be used with fragments on a concrete (object) type, "+"but the fragment has abstract type '".concat(k.getTypeString(E.type),"'."),[e.loc,E.loc]);var x=k.getFieldByName(E.type,"js");if(!x)throw l("@module used on invalid fragment spread '...".concat(e.name,"'. @module ")+"requires the fragment type '".concat(k.getTypeString(E.type),"' to have a ")+"'".concat("js","(").concat(h,": String! ")+"[".concat("id",": String]): ").concat("JSDependency","' field (your ")+"schema may choose to omit the 'id' argument but if present it must accept a 'String').",[w.loc]);var C=k.getFieldConfig(x),N=C?C.args.find((function(e){return e.name===h})):null,D=C?C.args.find((function(e){return"id"===e.name})):null;if(null==N||!k.isString(k.getNullableType(N.type))||null!=D&&!k.isString(D.type)||C.type!==F)throw l("@module used on invalid fragment spread '...".concat(e.name,"'. @module ")+"requires the fragment type '".concat(k.getTypeString(E.type),"' to have a ")+"'".concat("js","(").concat(h,": String! ")+"[".concat("id",": String]): ").concat("JSDependency","' field (your ")+"schema may choose to omit the 'id' argument but if present it must accept a 'String').",[w.loc]);if(1!==e.directives.length)throw l("@module used on invalid fragment spread '...".concat(e.name,"'. @module ")+"may not have additional directives.",[e.loc]);var I,A=u(w.args).name;if("string"!=typeof A)throw l("Expected the 'name' argument of @module to be a literal string",[(null!==(I=w.args.find((function(e){return"name"===e.name})))&&void 0!==I?I:e).loc]);var R,O=g[g.length-1],M=null!=T?T:y,L=g.map((function(e){return e.alias})).join("."),j=""===L?y:"".concat(y,".").concat(L),V=k.getTypeString(E.type),q=b.get(L);if(null==q){var P;if(0!==b.size)if(null!=Array.from(b.values()).find((function(e){return e.key===M}))){if(null==O)throw s("Cannot have @module selections at multiple paths unless the selections are within fields.",[e.loc]);throw l("Invalid @module selection: documents with multiple fields containing 3D selections must specify a unique 'key' value "+"for each field: use '".concat(O.alias,' @match(key: "').concat(y,"_<localName>\")'."),[O.loc])}q={key:M,location:null!==(P=null==O?void 0:O.loc)&&void 0!==P?P:e.loc,types:new Map},b.set(L,q)}if(M!==q.key)throw s("Invalid @module selection: expected all selections at path "+"'".concat(L," to have the same 'key', got '").concat(M,"' and '").concat(q.key,"'."),[null!==(R=null==O?void 0:O.loc)&&void 0!==R?R:e.loc]);var U=q.types.get(V);if(null!=U&&(U.fragment!==e.name||U.module!==A))throw l("Invalid @module selection: concrete type "+"'".concat(V,"' was matched multiple times at path ")+"'".concat(L,"' but with a different fragment or module name."),[e.loc,U.location]);q.types.set(V,{location:e.loc,fragment:e.name,module:A});var G=c(e.name)+".graphql",B={alias:p(M),args:[{kind:"Argument",name:h,type:N.type,value:{kind:"Literal",loc:null!==(n=null===(r=w.args[0])||void 0===r?void 0:r.loc)&&void 0!==n?n:w.loc,value:A},loc:w.loc},null!=D?{kind:"Argument",name:"id",type:D.type,value:{kind:"Literal",loc:null!==(i=null===(o=w.args[0])||void 0===o?void 0:o.loc)&&void 0!==i?i:w.loc,value:j},loc:w.loc}:null].filter(Boolean),directives:[],handles:null,kind:"ScalarField",loc:w.loc,metadata:{skipNormalizationNode:!0},name:"js",type:F},W={alias:m(M),args:[{kind:"Argument",name:h,type:N.type,value:{kind:"Literal",loc:w.loc,value:G},loc:w.loc},null!=D?{kind:"Argument",name:"id",type:D.type,value:{kind:"Literal",loc:null!==(f=null===(d=w.args[0])||void 0===d?void 0:d.loc)&&void 0!==f?f:w.loc,value:j},loc:w.loc}:null].filter(Boolean),directives:[],handles:null,kind:"ScalarField",loc:w.loc,metadata:{skipNormalizationNode:!0},name:"js",type:F};return{kind:"InlineFragment",directives:[],loc:w.loc,metadata:null,selections:[{kind:"ModuleImport",loc:w.loc,key:M,id:j,module:A,sourceDocument:y,name:e.name,selections:[(0,a.default)((0,a.default)({},e),{},{directives:e.directives.filter((function(e){return e!==w}))}),W,B]}],typeCondition:E.type}}e.exports={SCHEMA_EXTENSION:"\n directive @match(key: String) on FIELD\n\n directive @module(\n name: String!\n ) on FRAGMENT_SPREAD\n",transform:function(e){return f.transform(e,{FragmentSpread:b,LinkedField:g,InlineFragment:v,ScalarField:y},(function(e){return{documentName:e.name,matchesForPath:new Map,moduleKey:null,parentType:e.type,path:[]}}))}}},function(e,t,n){"use strict";var r=n(0)(n(2)),a=n(1),i=a.createUserError,o=a.eachWithCombinedError,s=n(21),l=n(26),u=n(20),c=n(86).buildRefetchOperation;function f(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.getSchema(),n=function(e){var t=new Map;o(e.documents(),(function(e){if("Fragment"===e.kind){var n=function(e){var t=e.directives.find((function(e){return"refetchable"===e.name}));if(null==t)return null;var n=s(t.args).queryName;if(null==n)throw i("Expected the 'queryName' argument of @refetchable to be provided",[t.loc]);if("string"!=typeof n){var r,a=t.args.find((function(e){return"queryName"===e.name}));throw i("Expected the 'queryName' argument of @refetchable to be a string, got '".concat(String(n),"'."),[null!==(r=null==a?void 0:a.loc)&&void 0!==r?r:t.loc])}return n}(e);if(null!==n){var r=t.get(n);if(null!=r)throw i("Duplicate definition for @refetchable operation '".concat(n,"' from fragments '").concat(e.name,"' and '").concat(r.name,"'"),[e.loc,r.loc]);t.set(n,e)}}}));var n=l(e);return new Map(Array.from(t.entries(),(function(e){var t=e[0],r=e[1];return[t,n.getFragment(r.name)]})))}(e),a=e;return o(n,(function(n){var o=n[0],s=n[1],l=c(t,s,o),d=l.identifierField,p=l.path,m=l.node,h=l.transformedFragment,v=function(e,t){var n=[],r=null,a=null;if(u.visit(t,{LinkedField:{enter:function(o){if(n.push(o),!0===o.connection||o.handles&&o.handles.some((function(e){return"connection"===e.name}))){if(null!=r)throw i("Invalid use of @refetchable with @connection in fragment '".concat(t.name,"', at most once @connection can appear in a refetchable fragment."),[o.loc]);var s=n.find((function(t){return e.isList(e.getNullableType(t.type))}));if(s)throw i("Invalid use of @refetchable with @connection in fragment '".concat(t.name,"', refetchable connections cannot appear inside plural fields."),[o.loc,s.loc]);r=o,a=n.map((function(e){return e.alias}))}},leave:function(){n.pop()}}}),null==r||null==a)return;var o=null,s=f(r,"before"),l=f(r,"last");if(s||l){if(!s||!l||"Variable"!==s.value.kind||"Variable"!==l.value.kind)throw i("Invalid use of @refetchable with @connection in fragment '".concat(t.name,"', refetchable connections must use variables for the before and last arguments."),[r.loc,s&&"Variable"!==s.value.kind?s.value.loc:null,l&&"Variable"!==l.value.kind?l.value.loc:null].filter(Boolean));o={count:l.value.variableName,cursor:s.value.variableName}}var c=null,d=f(r,"after"),p=f(r,"first");if(d||p){if(!d||!p||"Variable"!==d.value.kind||"Variable"!==p.value.kind)throw i("Invalid use of @refetchable with @connection in fragment '".concat(t.name,"', refetchable connections must use variables for the after and first arguments."),[r.loc,d&&"Variable"!==d.value.kind?d.value.loc:null,p&&"Variable"!==p.value.kind?p.value.loc:null].filter(Boolean));c={count:p.value.variableName,cursor:d.value.variableName}}return{forward:c,backward:o,path:a}}(e.getSchema(),h);a=(a=a.replace((0,r.default)((0,r.default)({},h),{},{metadata:(0,r.default)((0,r.default)({},h.metadata||{}),{},{refetch:{connection:null!=v?v:null,operation:o,fragmentPathInResult:p,identifierField:d}})}))).add((0,r.default)((0,r.default)({},m),{},{metadata:(0,r.default)((0,r.default)({},m.metadata||{}),{},{derivedFrom:h.name,isRefetchableQuery:!0})}))})),a}}},function(e,t,n){"use strict";var r=n(0)(n(2)),a=n(21),i=n(4),o=n(6);function s(e){return function(t){var n=t.directives.find((function(e){return"relay"===e.name}));if(!n)return this.traverse(t);var i=a(n.args),o=e(i);return this.traverse((0,r.default)((0,r.default)({},t),{},{directives:t.directives.filter((function(e){return e!==n})),metadata:(0,r.default)((0,r.default)({},t.metadata||{}),o)}))}}function l(e){var t=e.mask,n=e.plural;return void 0!==n&&"boolean"!=typeof n&&o(!1,'RelayDirectiveTransform: Expected the "plural" argument to @relay to be a boolean literal if specified.'),void 0!==t&&"boolean"!=typeof t&&o(!1,'RelayDirectiveTransform: Expected the "mask" argument to @relay to be a boolean literal if specified.'),{mask:t,plural:n}}function u(e){var t=e.mask;return void 0!==t&&"boolean"!=typeof t&&o(!1,'RelayDirectiveTransform: Expected the "mask" argument to @relay to be a boolean literal if specified.'),{mask:t}}e.exports={RELAY:"relay",SCHEMA_EXTENSION:"\ndirective @relay(\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) on FRAGMENT_DEFINITION | FRAGMENT_SPREAD\n",transform:function(e){return i.transform(e,{Fragment:s(l),FragmentSpread:s(u)})}}},function(e,t,n){"use strict";var r=n(0),a=r(n(3)),i=r(n(2)),o=r(n(5)),s=n(1),l=s.createCompilerError,u=s.createUserError,c=n(4),f=n(19),d=n(12).RelayFeatureFlags;function p(e,t){return b(this.traverse(e,t),t)}function m(e,t){return b(this.traverse(e,t),t)}function h(e,t){var n,r=null!==(n=t.parentAbstractInlineFragment)&&void 0!==n?n:function(e,t){var n=e.typeCondition;if(t.isAbstractType(n))return e;return null}(e,t.schema);return this.traverse(e,(0,i.default)((0,i.default)({},t),{},{parentAbstractInlineFragment:r}))}function v(e){switch(e){case"NONE":return 0;case"LOG":return 1;case"THROW":return 2;default:throw l("Unhandled action type ".concat(e))}}function y(e,t){var n=[].concat((0,o.default)(t.path),[e.alias]),r=(0,i.default)((0,i.default)({},t),{},{currentNodeRequiredChildren:new Map,path:n,parentAbstractInlineFragment:null}),s=this.traverse(e,r),c=n.join(".");!function(e,t,n){var r=n.currentNodeRequiredChildren,i=n.pathRequiredMap,o=n.requiredChildrenMap.get(t);if(null==o)return;var s,u=(0,a.default)(r);try{for(u.s();!(s=u.n()).done;){var c=s.value,f=c[0],d=c[1];if(!o.has(f)){var p=i.get(t);if(null==p)throw l('Could not find other parent node at path "'.concat(t,'".'),[d.loc]);throw _(d,p)}}}catch(e){u.e(e)}finally{u.f()}var m,h=(0,a.default)(o);try{for(h.s();!(m=h.n()).done;){var v=m.value,y=v[0],g=v[1];if(!r.has(y))throw _(g,e)}}catch(e){h.e(e)}finally{h.f()}}(e,c,r),S(s=k(s,c,t.documentName),c,r.pathRequiredMap);var f=w(s);if(null!=f){T(t.schema,f,t.parentAbstractInlineFragment),t.currentNodeRequiredChildren.set(e.alias,s);var d=v(f.action);r.currentNodeRequiredChildren.forEach((function(e){var t=w(e);if(null!=t&&v(t.action)<d)throw u("The @required field [1] may not have an `action` less severe than that of its @required parent [2]. [1] should probably be `action: ".concat(f.action,"`."),[t.actionLoc,f.actionLoc])}))}return t.requiredChildrenMap.set(c,r.currentNodeRequiredChildren),b(s,r)}function g(e,t){var n=[].concat((0,o.default)(t.path),[e.alias]).join("."),r=k(e,n,t.documentName),a=w(r);return null!=a&&(T(t.schema,a,t.parentAbstractInlineFragment),t.currentNodeRequiredChildren.set(e.alias,r)),S(r,n,t.pathRequiredMap),r}function b(e,t){var n,r=(0,a.default)(t.currentNodeRequiredChildren.values());try{for(r.s();!(n=r.n()).done;){var o=w(n.value);if(null!=o&&"THROW"!==o.action){var s=(0,i.default)((0,i.default)({},e.metadata),{},{childrenCanBubbleNull:!0});return(0,i.default)((0,i.default)({},e),{},{metadata:s})}}}catch(e){r.e(e)}finally{r.f()}return e}function T(e,t,n){if(null!=n){var r=n.typeCondition;throw e.isUnion(r)?u("The @required directive [1] may not be used anywhere within an inline fragment on a union type [2].",[t.directiveLoc,n.loc]):e.isInterface(r)?u("The @required directive [1] may not be used anywhere within an inline fragment on an interface type [2].",[t.directiveLoc,n.loc]):l("Unexpected abstract inline fragment type.",[n.loc])}}function S(e,t,n){var r=n.get(t);if(null!=r){var a=w(e),i=w(r);if((null==a?void 0:a.action)!==(null==i?void 0:i.action)){if(null==a)throw u('The field "'.concat(e.alias,'" is @required in [1] but not in [2].'),[r.loc,e.loc]);if(null==i)throw u('The field "'.concat(e.alias,'" is @required in [1] but not in [2].'),[e.loc,r.loc]);throw u('The field "'.concat(e.alias,'" has a different @required action in [1] than in [2].'),[a.actionLoc,i.actionLoc])}}else n.set(t,e)}function w(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.required}function _(e,t){var n=e.alias;return u('The field "'.concat(n,'" is marked as @required in [1] but is missing in [2].'),[e.loc,t.loc])}function k(e,t,n){var r=f(e.directives,(function(e){return"required"===e.name})),a=r[0],o=r[1];if(0===a.length)return e;if(!function(e){var t=d.ENABLE_REQUIRED_DIRECTIVES;return"boolean"==typeof t?t:"LIMITED"===t?e.startsWith("RelayRequiredTest"):"string"==typeof t&&t.split("|").some((function(t){return e.startsWith(t)}))}(n))throw new u("The @required directive is experimental and not yet supported for use in product code",a.map((function(e){return e.loc})));if(a.length>1)throw new u("Did not expect multiple @required directives.",a.map((function(e){return e.loc})));var s=a[0],l=s.args[0];if(null==l)throw u("The @required directive requires an `action` argument.",[s.loc]);if("Literal"!==l.value.kind)throw u("Expected @required `action` argument to be a literal.",[l.value.loc]);return(0,i.default)((0,i.default)({},e),{},{directives:o,metadata:(0,i.default)((0,i.default)({},e.metadata),{},{required:{action:l.value.value,actionLoc:l.loc,directiveLoc:s.loc,path:t}})})}e.exports={SCHEMA_EXTENSION:"\n enum RequiredFieldAction {\n NONE\n LOG\n THROW\n }\n directive @required(\n action: RequiredFieldAction!\n ) on FIELD\n",transform:function(e){var t=e.getSchema();return c.transform(e,{LinkedField:y,ScalarField:g,InlineFragment:h,Fragment:p,Root:m},(function(e){return{schema:t,documentName:e.name,path:[],pathRequiredMap:new Map,currentNodeRequiredChildren:new Map,requiredChildrenMap:new Map,parentAbstractInlineFragment:null}}))}}},function(e,t,n){"use strict";var r=n(38),a=n(6);e.exports={anyTypeAlias:function(e){return r.typeAlias(r.identifier(e),void 0,r.anyTypeAnnotation())},declareExportOpaqueType:function(e,t){return r.declareExportDeclaration(r.declareOpaqueType(r.identifier(e),void 0,r.genericTypeAnnotation(r.identifier(t))))},exactObjectTypeAnnotation:function(e){var t=r.objectTypeAnnotation(e);return t.exact=!0,t},inexactObjectTypeAnnotation:function(e){var t=r.objectTypeAnnotation(e);return t.inexact=!0,t},exportType:function(e,t){return r.exportNamedDeclaration(r.typeAlias(r.identifier(e),void 0,t),[],void 0)},exportTypes:function(e){var t=r.exportNamedDeclaration(void 0,e.map((function(e){return r.exportSpecifier(r.identifier(e),r.identifier(e))})),void 0);return t.exportKind="type",t},importTypes:function(e,t){var n=r.importDeclaration(e.map((function(e){return r.importSpecifier(r.identifier(e),r.identifier(e))})),r.stringLiteral(t));return n.importKind="type",n},intersectionTypeAnnotation:function(e){return e.length>0||a(!1,"RelayFlowBabelFactories: cannot create an intersection of 0 types"),1===e.length?e[0]:r.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 r.genericTypeAnnotation(r.identifier("$ReadOnlyArray"),r.typeParameterInstantiation([e]))},readOnlyObjectTypeProperty:function(e,t){var n=r.objectTypeProperty(r.identifier(e),t);return n.variance=r.variance("plus"),n},stringLiteralTypeAnnotation:function(e){return r.stringLiteralTypeAnnotation(e)},unionTypeAnnotation:function(e){return e.length>0||a(!1,"RelayFlowBabelFactories: cannot create a union of 0 types"),1===e.length?e[0]:r.unionTypeAnnotation(e)}}},function(e,t,n){"use strict";
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-17affbe5
2
+ * Relay v0.0.0-main-fda6335f
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *