diff --git a/CHANGELOG.md b/CHANGELOG.md index ed08f2bee0..becf5d1b73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ### vNEXT +### v3.3.0 + - **docker**: Publish images to the registry - **core**: Fix `Cannot convert object to primitive value` error for defaultValue in `ChangeType.InputFieldDefaultValueChanged` diff --git a/action/index.js b/action/index.js index 6082109ad7..604c208d7d 100644 --- a/action/index.js +++ b/action/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var r=n[t]={i:t,l:false,exports:{}};var i=true;try{e[t].call(r.exports,r,r.exports,__webpack_require__);i=false}finally{if(i)delete n[t]}r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(758)}t(__webpack_require__);return startup()}([,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,n;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;n=t.prototype;if(isObject(n)===false)return false;if(n.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},,function(e,t){function createDFS(e,t,n,i){var o={};return function(s){if(o[s]){return}var a={};var c=[];var u=[];u.push({node:s,processed:false});while(u.length>0){var l=u[u.length-1];var p=l.processed;var f=l.node;if(!p){if(o[f]){u.pop();continue}else if(a[f]){if(i){u.pop();continue}c.push(f);throw new r(c)}a[f]=true;c.push(f);var d=e[f];for(var m=d.length-1;m>=0;m--){u.push({node:d[m],processed:false})}l.processed=true}else{u.pop();c.pop();a[f]=false;o[f]=true;if(!t||e[f].length===0){n.push(f)}}}}}var n=t.DepGraph=function DepGraph(e){this.nodes={};this.outgoingEdges={};this.incomingEdges={};this.circular=e&&!!e.circular};n.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(e,t){if(!this.hasNode(e)){if(arguments.length===2){this.nodes[e]=t}else{this.nodes[e]=e}this.outgoingEdges[e]=[];this.incomingEdges[e]=[]}},removeNode:function(e){if(this.hasNode(e)){delete this.nodes[e];delete this.outgoingEdges[e];delete this.incomingEdges[e];[this.incomingEdges,this.outgoingEdges].forEach(function(t){Object.keys(t).forEach(function(n){var r=t[n].indexOf(e);if(r>=0){t[n].splice(r,1)}},this)})}},hasNode:function(e){return this.nodes.hasOwnProperty(e)},getNodeData:function(e){if(this.hasNode(e)){return this.nodes[e]}else{throw new Error("Node does not exist: "+e)}},setNodeData:function(e,t){if(this.hasNode(e)){this.nodes[e]=t}else{throw new Error("Node does not exist: "+e)}},addDependency:function(e,t){if(!this.hasNode(e)){throw new Error("Node does not exist: "+e)}if(!this.hasNode(t)){throw new Error("Node does not exist: "+t)}if(this.outgoingEdges[e].indexOf(t)===-1){this.outgoingEdges[e].push(t)}if(this.incomingEdges[t].indexOf(e)===-1){this.incomingEdges[t].push(e)}return true},removeDependency:function(e,t){var n;if(this.hasNode(e)){n=this.outgoingEdges[e].indexOf(t);if(n>=0){this.outgoingEdges[e].splice(n,1)}}if(this.hasNode(t)){n=this.incomingEdges[t].indexOf(e);if(n>=0){this.incomingEdges[t].splice(n,1)}}},clone:function(){var e=this;var t=new n;var r=Object.keys(e.nodes);r.forEach(function(n){t.nodes[n]=e.nodes[n];t.outgoingEdges[n]=e.outgoingEdges[n].slice(0);t.incomingEdges[n]=e.incomingEdges[n].slice(0)});return t},directDependenciesOf:function(e){if(this.hasNode(e)){return this.outgoingEdges[e].slice(0)}else{throw new Error("Node does not exist: "+e)}},directDependantsOf:function(e){if(this.hasNode(e)){return this.incomingEdges[e].slice(0)}else{throw new Error("Node does not exist: "+e)}},dependenciesOf:function(e,t){if(this.hasNode(e)){var n=[];var r=createDFS(this.outgoingEdges,t,n,this.circular);r(e);var i=n.indexOf(e);if(i>=0){n.splice(i,1)}return n}else{throw new Error("Node does not exist: "+e)}},dependantsOf:function(e,t){if(this.hasNode(e)){var n=[];var r=createDFS(this.incomingEdges,t,n,this.circular);r(e);var i=n.indexOf(e);if(i>=0){n.splice(i,1)}return n}else{throw new Error("Node does not exist: "+e)}},overallOrder:function(e){var t=this;var n=[];var r=Object.keys(this.nodes);if(r.length===0){return n}else{if(!this.circular){var i=createDFS(this.outgoingEdges,false,[],this.circular);r.forEach(function(e){i(e)})}var o=createDFS(this.outgoingEdges,e,n,this.circular);r.filter(function(e){return t.incomingEdges[e].length===0}).forEach(function(e){o(e)});if(this.circular){r.filter(function(e){return n.indexOf(e)===-1}).forEach(function(e){o(e)})}return n}},entryNodes:function(){var e=this;return Object.keys(this.nodes).filter(function(t){return e.incomingEdges[t].length===0})}};n.prototype.directDependentsOf=n.prototype.directDependantsOf;n.prototype.dependentsOf=n.prototype.dependantsOf;var r=t.DepGraphCycleError=function(e){var t="Dependency Cycle Found: "+e.join(" -> ");var n=new Error(t);n.cyclePath=e;Object.setPrototypeOf(n,Object.getPrototypeOf(this));if(Error.captureStackTrace){Error.captureStackTrace(n,r)}return n};r.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:false,writable:true,configurable:true}});Object.setPrototypeOf(r,Error)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var r=n(234);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const n=t.name.value;const i=e.getFragment(n);if(!i){e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,t.name))}}}}},,,,function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var n=0;ne.name.value);for(const[t,n]of s){if(n.length>1){e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,n.map(e=>e.name)))}}}}},,,,,,function(e,t,n){"use strict";var r=n(727);var i=Object.prototype.toString;function isArray(e){return i.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return i.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(i.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return i.call(e)==="[object Date]"}function isFile(e){return i.call(e)==="[object File]"}function isBlob(e){return i.call(e)==="[object Blob]"}function isFunction(e){return i.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var n=0,r=e.length;n120){const e=Math.floor(c/80);const t=c%80;const n=[];for(let e=0;e["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+printPrefixedLines([[`${s-1} |`,l[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function printPrefixedLines(e){const t=e.filter(([e,t])=>t!==undefined);const n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var r=n(234);function UniqueOperationTypesRule(e){const t=e.getSchema();const n=Object.create(null);const i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const s=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of s){const o=t.operation;const s=n[o];if(i[o]){e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,t))}else if(s){e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,[s,t]))}else{n[o]=t}}return false}}},,,function(e,t,n){var r=n(11);e.exports=r(once);e.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var n=e.name||"Function wrapped with `once`";t.onceError=n+" shouldn't be called more than once";t.called=false;return t}},,,,function(e,t,n){e.exports=n(352)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var r=n(393);var i=n(371);var o=n(174);class Source{constructor(e,t="GraphQL request",n={line:1,column:1}){typeof e==="string"||(0,i.devAssert)(false,`Body must be a string. Received: ${(0,r.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=n;this.locationOffset.line>0||(0,i.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,i.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var r=n(393);var i=n(876);var o=n(234);var s=n(326);var a=n(577);var c=n(134);var u=n(75);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i){return false}const s=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(e=>e.name.value));for(const n of i.args){if(!s.has(n.name)&&(0,u.isRequiredArgument)(n)){const s=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${s}" is required, but it was not provided.`,t))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const n=Object.create(null);const l=e.getSchema();const p=(t=l===null||l===void 0?void 0:l.getDirectives())!==null&&t!==void 0?t:c.specifiedDirectives;for(const e of p){n[e.name]=(0,i.keyMap)(e.args.filter(u.isRequiredArgument),e=>e.name)}const f=e.getDocument().definitions;for(const e of f){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){var d;const t=(d=e.arguments)!==null&&d!==void 0?d:[];n[e.name.value]=(0,i.keyMap)(t.filter(isRequiredArgumentNode),e=>e.name.value)}}return{Directive:{leave(t){const i=t.name.value;const s=n[i];if(s){var c;const n=(c=t.arguments)!==null&&c!==void 0?c:[];const l=new Set(n.map(e=>e.name.value));for(const[n,c]of Object.entries(s)){if(!l.has(n)){const s=(0,u.isType)(c.type)?(0,r.inspect)(c.type):(0,a.print)(c.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${s}" is required, but it was not provided.`,t))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===s.Kind.NON_NULL_TYPE&&e.defaultValue==null}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var r=n(393);var i=n(932);var o=n(326);var s=n(75);function typeFromAST(e,t){let n;if(t.kind===o.Kind.LIST_TYPE){n=typeFromAST(e,t.type);return n&&new s.GraphQLList(n)}if(t.kind===o.Kind.NON_NULL_TYPE){n=typeFromAST(e,t.type);return n&&new s.GraphQLNonNull(n)}if(t.kind===o.Kind.NAMED_TYPE){return e.getType(t.name.value)}false||(0,i.invariant)(false,"Unexpected type node: "+(0,r.inspect)(t))}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;var r=n(393);var i=n(876);var o=n(372);var s=n(473);var a=n(371);var c=n(857);var u=n(174);var l=n(868);var p=n(947);var f=n(518);var d=n(150);var m=n(234);var h=n(326);var g=n(577);var y=n(645);var v=n(655);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,u.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,u.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,u.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,u.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,u.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,u.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,u.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,u.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,a.devAssert)(false,`Expected ${(0,r.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,a.devAssert)(false,`Expected ${(0,r.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,n,i,o;const c=(t=e.parseValue)!==null&&t!==void 0?t:f.identityFunc;this.name=(0,v.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(n=e.serialize)!==null&&n!==void 0?n:f.identityFunc;this.parseValue=c;this.parseLiteral=(i=e.parseLiteral)!==null&&i!==void 0?i:(e,t)=>c((0,y.valueFromASTUntyped)(e,t));this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(o=e.extensionASTNodes)!==null&&o!==void 0?o:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,a.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,r.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,a.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,a.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=(()=>defineFieldMap(e));this._interfaces=(()=>defineInterfaces(e));e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,a.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,r.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const n=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(n)||(0,a.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return n}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,a.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,o.mapValue)(t,(t,n)=>{var i;isPlainObj(t)||(0,a.devAssert)(false,`${e.name}.${n} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,a.devAssert)(false,`${e.name}.${n} field resolver must be a function if `+`provided, but got: ${(0,r.inspect)(t.resolve)}.`);const o=(i=t.args)!==null&&i!==void 0?i:{};isPlainObj(o)||(0,a.devAssert)(false,`${e.name}.${n} args must be an object with argument names as keys.`);return{name:(0,v.assertName)(n),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,s.toObjMap)(t.extensions),astNode:t.astNode}})}function defineArguments(e){return Object.entries(e).map(([e,t])=>({name:(0,v.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,s.toObjMap)(t.extensions),astNode:t.astNode}))}function isPlainObj(e){return(0,p.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,o.mapValue)(e,e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function argsToArgsConfig(e){return(0,c.keyValMap)(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,a.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,r.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,a.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,r.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,a.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=defineEnumValues(this.name,e.values);this._valueLookup=new Map(this._values.map(e=>[e.value,e]));this._nameLookup=(0,i.keyMap)(this._values,e=>e.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(t===undefined){throw new m.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,r.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,r.inspect)(e);throw new m.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new m.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,g.print)(e);throw new m.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),e)}const n=this.getValue(e.value);if(n==null){const t=(0,g.print)(e);throw new m.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),e)}return n.value}toConfig(){const e=(0,c.keyValMap)(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const n=e.getValues().map(e=>e.name);const r=(0,d.suggestionList)(t,n);return(0,l.didYouMean)("the enum value",r)}function defineEnumValues(e,t){isPlainObj(t)||(0,a.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map(([t,n])=>{isPlainObj(n)||(0,a.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,r.inspect)(n)}.`);return{name:(0,v.assertEnumValueName)(t),description:n.description,value:n.value!==undefined?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,s.toObjMap)(n.extensions),astNode:n.astNode}})}class GraphQLInputObjectType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,o.mapValue)(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,a.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,o.mapValue)(t,(t,n)=>{!("resolve"in t)||(0,a.devAssert)(false,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,v.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,s.toObjMap)(t.extensions),astNode:t.astNode}})}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},,function(e,t,n){"use strict";e.exports=n(407)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var r=n(234);var i=n(577);var o=n(75);var s=n(72);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,s.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,n))}}},FragmentDefinition(t){const n=(0,s.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,t.typeCondition))}}}}},function(e,t,n){const r=n(867);const i=n(669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(247);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return t.toUpperCase()});let r=process.env[t];if(/^(yes|on|true|enabled)$/i.test(r)){r=true}else if(/^(no|off|false|disabled)$/i.test(r)){r=false}else if(r==="null"){r=null}else{r=Number(r)}e[n]=r;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:r}=this;if(r){const r=this.color;const i="[3"+(r<8?r:"8;5;"+r);const o=` ${i};1m${n} `;t[0]=o+t[0].split("\n").join("\n"+o);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;re.trim()).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},,,function(e,t,n){"use strict";var r=n(755);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},,function(e){e.exports=require("os")},,,,,,,,,,,function(e,t,n){"use strict";var r=n(843);function getLine(e,t,n,r,i){var o="";var s="";var a=Math.floor(i/2)-1;if(r-t>a){o=" ... ";t=r-a+o.length}if(n-r>a){s=" ...";n=r+a-s.length}return{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function padStart(e,t){return r.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var i=[0];var o=[];var s;var a=-1;while(s=n.exec(e.buffer)){o.push(s.index);i.push(s.index+s[0].length);if(e.position<=s.index&&a<0){a=i.length-2}}if(a<0)a=i.length-1;var c="",u,l;var p=Math.min(e.line+t.linesAfter,o.length).toString().length;var f=t.maxLength-(t.indent+p+3);for(u=1;u<=t.linesBefore;u++){if(a-u<0)break;l=getLine(e.buffer,i[a-u],o[a-u],e.position-(i[a]-i[a-u]),f);c=r.repeat(" ",t.indent)+padStart((e.line-u+1).toString(),p)+" | "+l.str+"\n"+c}l=getLine(e.buffer,i[a],o[a],e.position,f);c+=r.repeat(" ",t.indent)+padStart((e.line+1).toString(),p)+" | "+l.str+"\n";c+=r.repeat("-",t.indent+p+3+l.pos)+"^"+"\n";for(u=1;u<=t.linesAfter;u++){if(a+u>=o.length)break;l=getLine(e.buffer,i[a+u],o[a+u],e.position-(i[a]-i[a+u]),f);c+=r.repeat(" ",t.indent)+padStart((e.line+u+1).toString(),p)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},,,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=o(n(747));const a=o(n(87));const c=n(82);function issueCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}s.appendFileSync(n,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},,function(e){"use strict";e.exports=function isAxiosError(e){return typeof e==="object"&&e.isAxiosError===true}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var r=n(326);var i=n(156);var o=n(386);var s=n(75);var a=n(754);var c=n(72);class TypeInfo{constructor(e,t,n){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=n!==null&&n!==void 0?n:getFieldDef;if(t){if((0,s.isInputType)(t)){this._inputTypeStack.push(t)}if((0,s.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,s.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case r.Kind.SELECTION_SET:{const e=(0,s.getNamedType)(this.getType());this._parentTypeStack.push((0,s.isCompositeType)(e)?e:undefined);break}case r.Kind.FIELD:{const n=this.getParentType();let r;let i;if(n){r=this._getFieldDef(t,n,e);if(r){i=r.type}}this._fieldDefStack.push(r);this._typeStack.push((0,s.isOutputType)(i)?i:undefined);break}case r.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case r.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,s.isObjectType)(n)?n:undefined);break}case r.Kind.INLINE_FRAGMENT:case r.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition;const r=n?(0,c.typeFromAST)(t,n):(0,s.getNamedType)(this.getType());this._typeStack.push((0,s.isOutputType)(r)?r:undefined);break}case r.Kind.VARIABLE_DEFINITION:{const n=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,s.isInputType)(n)?n:undefined);break}case r.Kind.ARGUMENT:{var n;let t;let r;const i=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();if(i){t=i.args.find(t=>t.name===e.name.value);if(t){r=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,s.isInputType)(r)?r:undefined);break}case r.Kind.LIST:{const e=(0,s.getNullableType)(this.getInputType());const t=(0,s.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,s.isInputType)(t)?t:undefined);break}case r.Kind.OBJECT_FIELD:{const t=(0,s.getNamedType)(this.getInputType());let n;let r;if((0,s.isInputObjectType)(t)){r=t.getFields()[e.name.value];if(r){n=r.type}}this._defaultValueStack.push(r?r.defaultValue:undefined);this._inputTypeStack.push((0,s.isInputType)(n)?n:undefined);break}case r.Kind.ENUM:{const t=(0,s.getNamedType)(this.getInputType());let n;if((0,s.isEnumType)(t)){n=t.getValue(e.value)}this._enumValue=n;break}}}leave(e){switch(e.kind){case r.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case r.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case r.Kind.DIRECTIVE:this._directive=null;break;case r.Kind.OPERATION_DEFINITION:case r.Kind.INLINE_FRAGMENT:case r.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case r.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case r.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case r.Kind.LIST:case r.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case r.Kind.ENUM:this._enumValue=null;break}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,n){const r=n.name.value;if(r===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(r===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(r===a.TypeNameMetaFieldDef.name&&(0,s.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t)){return t.getFields()[r]}}function visitWithTypeInfo(e,t){return{enter(...n){const r=n[0];e.enter(r);const s=(0,o.getEnterLeaveForKind)(t,r.kind).enter;if(s){const o=s.apply(t,n);if(o!==undefined){e.leave(r);if((0,i.isNode)(o)){e.enter(o)}}return o}},leave(...n){const r=n[0];const i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let s;if(i){s=i.apply(t,n)}e.leave(r);return s}}}},function(e,t,n){"use strict";var r=n(361);var i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function validator(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};var s=r.version.split(".");function isOlderVersion(e,t){var n=t?t.split("."):s;var r=e.split(".");for(var i=0;i<3;i++){if(n[i]>r[i]){return true}else if(n[i]0){var o=r[i];var s=t[o];if(s){var a=e[o];var c=a===undefined||s(a,o,e);if(c!==true){throw new TypeError("option "+o+" must be "+c)}continue}if(n!==true){throw Error("Unknown option "+o)}}}e.exports={isOlderVersion:isOlderVersion,assertOptions:assertOptions,validators:i}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(986);var i=n(796);const o="4.5.6";class GraphqlError extends Error{constructor(e,t){const n=t.data.errors[0].message;super(n);Object.assign(this,t.data);Object.assign(this,{headers:t.headers});this.name="GraphqlError";this.request=e;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const s=["method","baseUrl","url","headers","request","query","mediaType"];const a=/\/api\/v3\/?$/;function graphql(e,t,n){if(typeof t==="string"&&n&&"query"in n){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}const r=typeof t==="string"?Object.assign({query:t},n):t;const i=Object.keys(r).reduce((e,t)=>{if(s.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});const o=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(a.test(o)){i.url=o.replace(a,"/api/graphql")}return e(i).then(e=>{if(e.data.errors){const t={};for(const n of Object.keys(e.headers)){t[n]=e.headers[n]}throw new GraphqlError(i,{headers:t,data:e.data})}return e.data.data})}function withDefaults(e,t){const n=e.defaults(t);const i=(e,t)=>{return graphql(n,e,t)};return Object.assign(i,{defaults:withDefaults.bind(null,n),endpoint:r.request.endpoint})}const c=withDefaults(r.request,{headers:{"user-agent":`octokit-graphql.js/${o} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=c;t.withCustomRequest=withCustomRequest},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var r=n(371);var i=n(326);var o=n(166);var s=n(625);var a=n(742);var c=n(134);var u=n(823);function buildASTSchema(e,t){e!=null&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,s.assertValidSDL)(e)}const n={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(n,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const l=[...o.directives,...c.specifiedDirectives.filter(e=>o.directives.every(t=>t.name!==e.name))];return new a.GraphQLSchema({...o,directives:l})}function buildSchema(e,t){const n=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(n,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var r=n(326);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===r.Kind.LIST?e.values.some(isConstValueNode):e.kind===r.Kind.OBJECT?e.fields.some(e=>isConstValueNode(e.value)):e.kind!==r.Kind.VARIABLE)}function isTypeNode(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===r.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===r.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},,,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const s=o(n(539));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new s.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},,function(e){e.exports=require("child_process")},,,,function(e,t,n){"use strict";var r=n(35);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,n){if(!t){return e}var i;if(n){i=n(t)}else if(r.isURLSearchParams(t)){i=t.toString()}else{var o=[];r.forEach(t,function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(r.isArray(e)){t=t+"[]"}else{e=[e]}r.forEach(e,function parseValue(e){if(r.isDate(e)){e=e.toISOString()}else if(r.isObject(e)){e=JSON.stringify(e)}o.push(encode(t)+"="+encode(e))})});i=o.join("&")}if(i){var s=e.indexOf("#");if(s!==-1){e=e.slice(0,s)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var r=n(393);var i=n(473);var o=n(371);var s=n(174);var a=n(947);var c=n(380);var u=n(655);var l=n(810);var p=n(75);function isDirective(e){return(0,s.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,n;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,i.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,o.devAssert)(false,`@${e.name} locations must be an Array.`);const r=(n=e.args)!==null&&n!==void 0?n:{};(0,a.isObjectLike)(r)&&!Array.isArray(r)||(0,o.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,p.defineArguments)(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,p.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const f=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=f;const d=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=d;const m="No longer supported";t.DEFAULT_DEPRECATION_REASON=m;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:m}}});t.GraphQLDeprecatedDirective=h;const g=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new p.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behaviour of this scalar."}}});t.GraphQLSpecifiedByDirective=g;const y=Object.freeze([f,d,h,g]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some(({name:t})=>t===e.name)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var r=n(393);var i=n(209);var o=n(691);var s=n(234);var a=n(635);var c=n(962);var u=n(740);var l=n(466);var p=n(300);async function subscribe(e){const{schema:t,document:n,rootValue:r,contextValue:o,variableValues:s,operationName:a,fieldResolver:c,subscribeFieldResolver:u}=e;const f=await createSourceEventStream(t,n,r,o,s,a,u);if(!(0,i.isAsyncIterable)(f)){return f}const d=e=>(0,l.execute)({schema:t,document:n,rootValue:e,contextValue:o,variableValues:s,operationName:a,fieldResolver:c});return(0,p.mapAsyncIterator)(f,d)}async function createSourceEventStream(e,t,n,o,a,c,u){(0,l.assertValidExecutionArguments)(e,t,a);const p=(0,l.buildExecutionContext)({schema:e,document:t,rootValue:n,contextValue:o,variableValues:a,operationName:c,subscribeFieldResolver:u});if(!("schema"in p)){return{errors:p}}try{const e=await executeSubscription(p);if(!(0,i.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,r.inspect)(e)}.`)}return e}catch(e){if(e instanceof s.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:p}=e;const f=t.getSubscriptionType();if(f==null){throw new s.GraphQLError("Schema is not configured to execute subscription operation.",r)}const d=(0,c.collectFields)(t,n,i,f,r.selectionSet);const[m,h]=[...d.entries()][0];const g=(0,l.getFieldDef)(t,f,h[0]);if(!g){const e=h[0].name.value;throw new s.GraphQLError(`The subscription field "${e}" is not defined.`,h)}const y=(0,o.addPath)(undefined,m,f.name);const v=(0,l.buildResolveInfo)(e,g,h,f,y);try{var b;const t=(0,u.getArgumentValues)(g,h[0],i);const n=e.contextValue;const r=(b=g.subscribe)!==null&&b!==void 0?b:e.subscribeFieldResolver;const s=await r(p,t,n,v);if(s instanceof Error){throw s}return s}catch(e){throw(0,a.locatedError)(e,h,(0,o.pathToArray)(y))}}},function(e,t,n){"use strict";var r=n(826);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise(function promiseExecutor(e){t=e});var n=this;e(function cancel(e){if(n.reason){return}n.reason=new r(e);t(n.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var t=new CancelToken(function executor(t){e=t});return{token:t,cancel:e}};e.exports=CancelToken},,,,function(e,t,n){"use strict";var r=n(937);var i=n(16);var o=n(605);var s=n(211);var a=n(614);var c=n(357);var u=n(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,n,r,i){var o=toOptions(n,r,i);for(var s=0,a=t.requests.length;s=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,o)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var r={};n.sockets.push(r);var i=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}l("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick(function(){onConnect(e,t,n)})}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",i.statusCode);s.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(r);return}if(a.length>0){l("got illegal response body from proxy");s.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(r);return}l("tunneling connection has established");n.sockets[n.sockets.indexOf(r)]=s;return t(s)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);n.removeSocket(r)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,function(e){n.request.onSocket(e)})}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,function(r){var o=e.request.getHeader("host");var s=mergeOptions({},n.options,{socket:r,servername:o?o.replace(/:.*$/,""):e.host});var a=i.connect(0,s);n.sockets[n.sockets.indexOf(r)]=a;t(a)})}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{const i=n[e]-n[t];return i!==0?i:(0,r.naturalCompare)(e,t)})}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const n=e.toLowerCase();if(this._inputLowerCase===n){return 1}let r=stringToArray(n);let i=this._inputArray;if(r.lengtht){return undefined}const a=this._rows;for(let e=0;e<=s;e++){a[0][e]=e}for(let e=1;e<=o;e++){const n=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}if(ut){return undefined}}const c=a[o%3][s];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const n=new Array(t);for(let r=0;r{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries()){n[i]=t[r]}return n})}},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,n,r,i,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const n={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=n;const r=new Set(Object.keys(n));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&r.has(t)}let i;t.OperationTypeNode=i;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(i||(t.OperationTypeNode=i={}))},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var r=n(234);var i=n(75);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const n=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var s;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(s=t.values)!==null&&s!==void 0?s:[];const u=o[a];for(const t of c){const o=t.name.value;const s=n[a];if((0,i.isEnumType)(s)&&s.getValue(o)){e.reportError(new r.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,t.name))}else if(u[o]){e.reportError(new r.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,[u[o],t.name]))}else{u[o]=t.name}}return false}}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var r=n(819);var i=n(326);var o=n(156);var s=n(730);var a=n(55);var c=n(380);var u=n(388);function parse(e,t){const n=new Parser(e,t);return n.parseDocument()}function parseValue(e,t){const n=new Parser(e,t);n.expectToken(s.TokenKind.SOF);const r=n.parseValueLiteral(false);n.expectToken(s.TokenKind.EOF);return r}function parseConstValue(e,t){const n=new Parser(e,t);n.expectToken(s.TokenKind.SOF);const r=n.parseConstValueLiteral();n.expectToken(s.TokenKind.EOF);return r}function parseType(e,t){const n=new Parser(e,t);n.expectToken(s.TokenKind.SOF);const r=n.parseTypeReference();n.expectToken(s.TokenKind.EOF);return r}class Parser{constructor(e,t){const n=(0,a.isSource)(e)?e:new a.Source(e);this._lexer=new u.Lexer(n);this._options=t}parseName(){const e=this.expectToken(s.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(s.TokenKind.SOF,this.parseDefinition,s.TokenKind.EOF)})}parseDefinition(){if(this.peek(s.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===s.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(s.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:o.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let n;if(this.peek(s.TokenKind.NAME)){n=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(s.TokenKind.NAME);switch(e.value){case"query":return o.OperationTypeNode.QUERY;case"mutation":return o.OperationTypeNode.MUTATION;case"subscription":return o.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(s.TokenKind.PAREN_L,this.parseVariableDefinition,s.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(s.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(s.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(s.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(s.TokenKind.BRACE_L,this.parseSelection,s.TokenKind.BRACE_R)})}parseSelection(){return this.peek(s.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let n;let r;if(this.expectOptionalToken(s.TokenKind.COLON)){n=t;r=this.parseName()}else{r=t}return this.node(e,{kind:i.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(s.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(s.TokenKind.PAREN_L,t,s.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const n=this.parseName();this.expectToken(s.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(s.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(s.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;this.expectKeyword("fragment");if(((e=this._options)===null||e===void 0?void 0:e.allowLegacyFragmentVariables)===true){return this.node(t,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(t,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case s.TokenKind.BRACKET_L:return this.parseList(e);case s.TokenKind.BRACE_L:return this.parseObject(e);case s.TokenKind.INT:this._lexer.advance();return this.node(t,{kind:i.Kind.INT,value:t.value});case s.TokenKind.FLOAT:this._lexer.advance();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case s.TokenKind.STRING:case s.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case s.TokenKind.NAME:this._lexer.advance();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case s.TokenKind.DOLLAR:if(e){this.expectToken(s.TokenKind.DOLLAR);if(this._lexer.token.kind===s.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this._lexer.advance();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===s.TokenKind.BLOCK_STRING})}parseList(e){const t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(s.TokenKind.BRACKET_L,t,s.TokenKind.BRACKET_R)})}parseObject(e){const t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(s.TokenKind.BRACE_L,t,s.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const n=this.parseName();this.expectToken(s.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(s.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(s.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(s.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(s.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:n})}else{t=this.parseNamedType()}if(this.expectOptionalToken(s.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(s.TokenKind.STRING)||this.peek(s.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives();const r=this.many(s.TokenKind.BRACE_L,this.parseOperationTypeDefinition,s.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(s.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName();const r=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const n=this.parseName();const r=this.parseImplementsInterfaces();const o=this.parseConstDirectives();const s=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(s.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(s.TokenKind.BRACE_L,this.parseFieldDefinition,s.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const n=this.parseName();const r=this.parseArgumentDefs();this.expectToken(s.TokenKind.COLON);const o=this.parseTypeReference();const a=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(s.TokenKind.PAREN_L,this.parseInputValueDef,s.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const n=this.parseName();this.expectToken(s.TokenKind.COLON);const r=this.parseTypeReference();let o;if(this.expectOptionalToken(s.TokenKind.EQUALS)){o=this.parseConstValueLiteral()}const a=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName();const r=this.parseImplementsInterfaces();const o=this.parseConstDirectives();const s=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const n=this.parseName();const r=this.parseConstDirectives();const o=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(s.TokenKind.EQUALS)?this.delimitedMany(s.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName();const r=this.parseConstDirectives();const o=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(s.TokenKind.BRACE_L,this.parseEnumValueDefinition,s.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const n=this.parseEnumValueName();const r=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const n=this.parseName();const r=this.parseConstDirectives();const o=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(s.TokenKind.BRACE_L,this.parseInputValueDef,s.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===s.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const n=this.optionalMany(s.TokenKind.BRACE_L,this.parseOperationTypeDefinition,s.TokenKind.BRACE_R);if(t.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const n=this.parseConstDirectives();if(n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const n=this.parseImplementsInterfaces();const r=this.parseConstDirectives();const o=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&o.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const n=this.parseImplementsInterfaces();const r=this.parseConstDirectives();const o=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&o.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const n=this.parseConstDirectives();const r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const n=this.parseConstDirectives();const r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const n=this.parseConstDirectives();const r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(s.TokenKind.AT);const n=this.parseName();const r=this.parseArgumentDefs();const o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(s.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(c.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){var n;if(((n=this._options)===null||n===void 0?void 0:n.noLocation)!==true){t.loc=new o.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this._lexer.advance();return t}throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this._lexer.advance();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===s.TokenKind.NAME&&t.value===e){this._lexer.advance()}else{throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===s.TokenKind.NAME&&t.value===e){this._lexer.advance();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];while(!this.expectOptionalToken(n)){r.push(t.call(this))}return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,u.isPunctuatorTokenKind)(e)?`"${e}"`:e}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return w.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return w.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return g.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return O.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return y.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return v.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return E.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return w.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return w.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return r.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return i.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return s.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return E.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return E.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return O.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return l.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return p.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return p.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return p.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return b.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return T.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return f.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return d.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return m.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return g.visitWithTypeInfo}});var r=n(462);var i=n(752);var o=n(580);var s=n(786);var a=n(559);var c=n(114);var u=n(823);var l=n(184);var p=n(696);var f=n(72);var d=n(820);var m=n(645);var h=n(301);var g=n(105);var y=n(702);var v=n(385);var b=n(854);var T=n(487);var E=n(441);var O=n(384);var w=n(495)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var r=n(234);var i=n(326);var o=n(123);function ExecutableDefinitionsRule(e){return{Document(t){for(const n of t.definitions){if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,n))}}return false}}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var r=n(393);const i=process.env.NODE_ENV==="production"?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var n;const i=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(n=e.constructor)===null||n===void 0?void 0:n.name;if(i===o){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=i},,function(e){e.exports=removeHook;function removeHook(e,t,n){if(!e.registry[t]){return}var r=e.registry[t].map(function(e){return e.orig}).indexOf(n);if(r===-1){return}e.registry[t].splice(r,1)}},,,,,,,function(e){e.exports=addHook;function addHook(e,t,n,r){var i=r;if(!e.registry[n]){e.registry[n]=[]}if(t==="before"){r=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){r=function(e,t){var n;return Promise.resolve().then(e.bind(null,t)).then(function(e){n=e;return i(n,t)}).then(function(){return n})}}if(t==="error"){r=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}}e.registry[n].push({hook:r,orig:i})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var r=n(393);var i=n(932);var o=n(857);var s=n(587);var a=n(742);var c=n(134);var u=n(754);var l=n(75);function lexicographicSortSchema(e){const t=e.toConfig();const n=(0,o.keyValMap)(sortByName(t.types),e=>e.name,sortNamedType);return new a.GraphQLSchema({...t,types:Object.values(n),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,l.isListType)(e)){return new l.GraphQLList(replaceType(e.ofType))}else if((0,l.isNonNullType)(e)){return new l.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return n[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,e=>e),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,e=>({...e,type:replaceType(e.type)}))}function sortFields(e){return sortObjMap(e,e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)}))}function sortInputFields(e){return sortObjMap(e,e=>({...e,type:replaceType(e.type)}))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,l.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,l.isObjectType)(e)){const t=e.toConfig();return new l.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,l.isInterfaceType)(e)){const t=e.toConfig();return new l.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,l.isUnionType)(e)){const t=e.toConfig();return new l.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,l.isEnumType)(e)){const t=e.toConfig();return new l.GraphQLEnumType({...t,values:sortObjMap(t.values,e=>e)})}if((0,l.isInputObjectType)(e)){const t=e.toConfig();return new l.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,i.invariant)(false,"Unexpected type: "+(0,r.inspect)(e))}}function sortObjMap(e,t){const n=Object.create(null);const r=sortBy(Object.entries(e),([e])=>e);for(const[e,i]of r){n[e]=t(i)}return n}function sortByName(e){return sortBy(e,e=>e.name)}function sortBy(e,t){return e.slice().sort((e,n)=>{const r=t(e);const i=t(n);return(0,s.naturalCompare)(r,i)})}},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(n,r,i){if(t===undefined){t=new WeakMap}let o=t.get(n);if(o===undefined){o=new WeakMap;t.set(n,o)}let s=o.get(r);if(s===undefined){s=new WeakMap;o.set(r,s)}let a=s.get(i);if(a===undefined){a=e(n,r,i);s.set(i,a)}return a}}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var r=n(234);var i=n(75);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const n=t?t.getTypeMap():Object.create(null);const i=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const s=t.name.value;if(!i[s]){i[s]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=i[s];for(const t of a){const i=t.name.value;if(hasField(n[s],i)){e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,t.name))}else if(c[i]){e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,[c[i],t.name]))}else{c[i]=t.name}}return false}}function hasField(e,t){if((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var r=n(649);var i=n(166);var o=n(625);var s=n(839);var a=n(466);function graphql(e){return new Promise(t=>t(graphqlImpl(e)))}function graphqlSync(e){const t=graphqlImpl(e);if((0,r.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){const{schema:t,source:n,rootValue:r,contextValue:c,variableValues:u,operationName:l,fieldResolver:p,typeResolver:f}=e;const d=(0,s.validateSchema)(t);if(d.length>0){return{errors:d}}let m;try{m=(0,i.parse)(n)}catch(e){return{errors:[e]}}const h=(0,o.validate)(t,m);if(h.length>0){return{errors:h}}return(0,a.execute)({schema:t,document:m,rootValue:r,contextValue:c,variableValues:u,operationName:l,fieldResolver:p,typeResolver:f})}},,,,,,,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},,function(e){e.exports=require("https")},,,,,,,,function(e,t,n){"use strict";var r=n(35);var i=n(564);var o=n(864);var s=n(133);var a=n(960);var c=n(631);var u=n(688);var l=n(26);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,n){var p=e.data;var f=e.headers;var d=e.responseType;if(r.isFormData(p)){delete f["Content-Type"]}var m=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"";var g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+g)}var y=a(e.baseURL,e.url);m.open(e.method.toUpperCase(),s(y,e.params,e.paramsSerializer),true);m.timeout=e.timeout;function onloadend(){if(!m){return}var r="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null;var o=!d||d==="text"||d==="json"?m.responseText:m.response;var s={data:o,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};i(t,n,s);m=null}if("onloadend"in m){m.onloadend=onloadend}else{m.onreadystatechange=function handleLoad(){if(!m||m.readyState!==4){return}if(m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}m.onabort=function handleAbort(){if(!m){return}n(l("Request aborted",e,"ECONNABORTED",m));m=null};m.onerror=function handleError(){n(l("Network Error",e,null,m));m=null};m.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m));m=null};if(r.isStandardBrowserEnv()){var v=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):undefined;if(v){f[e.xsrfHeaderName]=v}}if("setRequestHeader"in m){r.forEach(f,function setRequestHeader(e,t){if(typeof p==="undefined"&&t.toLowerCase()==="content-type"){delete f[t]}else{m.setRequestHeader(t,e)}})}if(!r.isUndefined(e.withCredentials)){m.withCredentials=!!e.withCredentials}if(d&&d!=="json"){m.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){m.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&m.upload){m.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!m){return}m.abort();n(e);m=null})}if(!p){p=null}m.send(p)})}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var r=n(234);var i=n(326);var o=n(962);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const n=e.getSchema();const s=n.getSubscriptionType();if(s){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const l=Object.create(null);for(const e of u.definitions){if(e.kind===i.Kind.FRAGMENT_DEFINITION){l[e.name.value]=e}}const p=(0,o.collectFields)(n,l,c,s,t.selectionSet);if(p.size>1){const t=[...p.values()];const n=t.slice(1);const i=n.flat();e.reportError(new r.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",i))}for(const t of p.values()){const n=t[0];const i=n.name.value;if(i.startsWith("__")){e.reportError(new r.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",t))}}}}}}}},function(e,t,n){"use strict";var r=n(755);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,n,r,o,s,a=e;s=new Array(a.length);for(t=0,n=a.length;t=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(r.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||r.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},function(e){"use strict";var t=function(){function DataLoader(e,t){if(typeof e!=="function"){throw new TypeError("DataLoader must be constructed with a function which accepts "+("Array and returns Promise>, but got: "+e+"."))}this._batchLoadFn=e;this._maxBatchSize=getValidMaxBatchSize(t);this._batchScheduleFn=getValidBatchScheduleFn(t);this._cacheKeyFn=getValidCacheKeyFn(t);this._cacheMap=getValidCacheMap(t);this._batch=null}var e=DataLoader.prototype;e.load=function load(e){if(e===null||e===undefined){throw new TypeError("The loader.load() function must be called with a value,"+("but got: "+String(e)+"."))}var t=getCurrentBatch(this);var n=this._cacheMap;var r=this._cacheKeyFn(e);if(n){var i=n.get(r);if(i){var o=t.cacheHits||(t.cacheHits=[]);return new Promise(function(e){o.push(function(){return e(i)})})}}t.keys.push(e);var s=new Promise(function(e,n){t.callbacks.push({resolve:e,reject:n})});if(n){n.set(r,s)}return s};e.loadMany=function loadMany(e){if(!isArrayLike(e)){throw new TypeError("The loader.loadMany() function must be called with Array "+("but got: "+e+"."))}var t=[];for(var n=0;n and returns Promise>, but the function did "+("not return a Promise: "+String(n)+".")))}n.then(function(e){if(!isArrayLike(e)){throw new TypeError("DataLoader must be constructed with a function which accepts "+"Array and returns Promise>, but the function did "+("not return a Promise of an Array: "+String(e)+"."))}if(e.length!==t.keys.length){throw new TypeError("DataLoader must be constructed with a function which accepts "+"Array and returns Promise>, but the function did "+"not return a Promise of an Array of the same length as the Array "+"of keys."+("\n\nKeys:\n"+String(t.keys))+("\n\nValues:\n"+String(e)))}resolveCacheHits(t);for(var n=0;n0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=t},,function(e,t,n){"use strict";var r=n(755);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var r=n(649);function promiseReduce(e,t,n){let i=n;for(const n of e){i=(0,r.isPromise)(i)?i.then(e=>t(e,n)):t(i,n)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return s.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return l.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return l.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return s.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return s.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return s.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return s.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return s.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return s.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return s.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return s.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return l.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return l.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return l.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return l.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return l.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return l.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return l.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return l.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return l.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return l.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return l.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return l.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return s.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return l.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return l.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return l.getOperationRootType}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return s.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return i.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return i.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return l.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return s.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return s.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return l.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return s.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return s.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return s.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return s.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return s.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return l.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return s.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return s.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return l.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return s.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return l.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return s.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return s.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return s.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return s.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return s.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return s.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return s.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return l.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return l.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return l.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return l.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return l.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return r.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return r.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return s.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return s.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return l.visitWithTypeInfo}});var r=n(24);var i=n(193);var o=n(737);var s=n(266);var a=n(780);var c=n(554);var u=n(764);var l=n(169)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var r=n(947);var i=n(683);var o=n(40);class GraphQLError extends Error{constructor(e,t,n,o,s,a,c){var u,l,p;super(e);this.name="GraphQLError";this.path=s!==null&&s!==void 0?s:undefined;this.originalError=a!==null&&a!==void 0?a:undefined;this.nodes=undefinedIfEmpty(Array.isArray(t)?t:t?[t]:undefined);const f=undefinedIfEmpty((u=this.nodes)===null||u===void 0?void 0:u.map(e=>e.loc).filter(e=>e!=null));this.source=n!==null&&n!==void 0?n:f===null||f===void 0?void 0:(l=f[0])===null||l===void 0?void 0:l.source;this.positions=o!==null&&o!==void 0?o:f===null||f===void 0?void 0:f.map(e=>e.start);this.locations=o&&n?o.map(e=>(0,i.getLocation)(n,e)):f===null||f===void 0?void 0:f.map(e=>(0,i.getLocation)(e.source,e.start));const d=(0,r.isObjectLike)(a===null||a===void 0?void 0:a.extensions)?a===null||a===void 0?void 0:a.extensions:undefined;this.extensions=(p=c!==null&&c!==void 0?c:d)!==null&&p!==void 0?p:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(a!==null&&a!==void 0&&a.stack){Object.defineProperty(this,"stack",{value:a.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=void 0;var r=n(172);var i=n(704);var o=n(303);var s=n(223);var a=n(367);var c=n(80);var u=n(458);var l=n(885);var p=n(269);var f=n(286);var d=n(7);var m=n(340);var h=n(601);var g=n(254);var y=n(972);var v=n(666);var b=n(698);var T=n(719);var E=n(238);var O=n(288);var w=n(29);var _=n(594);var S=n(56);var N=n(641);var D=n(428);var A=n(397);var I=n(647);var j=n(46);var R=n(332);var P=n(160);var L=n(192);var F=n(818);var C=n(423);var k=n(323);const x=Object.freeze([r.ExecutableDefinitionsRule,i.UniqueOperationNamesRule,o.LoneAnonymousOperationRule,s.SingleFieldSubscriptionsRule,a.KnownTypeNamesRule,c.FragmentsOnCompositeTypesRule,u.VariablesAreInputTypesRule,l.ScalarLeafsRule,p.FieldsOnCorrectTypeRule,f.UniqueFragmentNamesRule,d.KnownFragmentNamesRule,m.NoUnusedFragmentsRule,h.PossibleFragmentSpreadsRule,g.NoFragmentCyclesRule,y.UniqueVariableNamesRule,v.NoUndefinedVariablesRule,b.NoUnusedVariablesRule,T.KnownDirectivesRule,E.UniqueDirectivesPerLocationRule,O.KnownArgumentNamesRule,w.UniqueArgumentNamesRule,_.ValuesOfCorrectTypeRule,S.ProvidedRequiredArgumentsRule,N.VariablesInAllowedPositionRule,D.OverlappingFieldsCanBeMergedRule,A.UniqueInputFieldNamesRule]);t.specifiedRules=x;const U=Object.freeze([I.LoneSchemaDefinitionRule,j.UniqueOperationTypesRule,R.UniqueTypeNamesRule,P.UniqueEnumValueNamesRule,L.UniqueFieldDefinitionNamesRule,F.UniqueArgumentDefinitionNamesRule,C.UniqueDirectiveNamesRule,a.KnownTypeNamesRule,T.KnownDirectivesRule,E.UniqueDirectivesPerLocationRule,k.PossibleTypeExtensionsRule,O.KnownArgumentNamesOnDirectivesRule,w.UniqueArgumentNamesRule,A.UniqueInputFieldNamesRule,S.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=U},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var r=n(234);var i=n(326);var o=n(123);var s=n(134);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const n=e.getSchema();const a=n?n.getDirectives():s.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const l=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives){return}let s;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION){s=u}else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;s=l[e];if(s===undefined){l[e]=s=Object.create(null)}}else{s=Object.create(null)}for(const i of n.directives){const n=i.name.value;if(t[n]){if(s[n]){e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,[s[n],i]))}else{s[n]=i}}}}}}},,,,,,function(e,t,n){"use strict";var r=n(755);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,n,r,s,a,c,u,l=0,p=null,f,d,m;t=i.exec(e);if(t===null)t=o.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];r=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(n,r,s))}a=+t[4];c=+t[5];u=+t[6];if(t[7]){l=t[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(t[9]){f=+t[10];d=+(t[11]||0);p=(f*60+d)*6e4;if(t[9]==="-")p=-p}m=new Date(Date.UTC(n,r,s,a,c,u,l));if(p)m.setTime(m.getTime()-p);return m}function representYamlTimestamp(e){return e.toISOString()}e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},,,function(e,t,n){"use strict";const r=n(87);const i=n(867);const o=n(364);const{env:s}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(s.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var r=n(234);function NoFragmentCyclesRule(e){const t=Object.create(null);const n=[];const i=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const s=o.name.value;t[s]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}i[s]=n.length;for(const t of a){const o=t.name.value;const s=i[o];n.push(t);if(s===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=n.slice(s);const i=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${o}" within itself`+(i!==""?` via ${i}.`:"."),t))}n.pop()}i[s]=undefined}}},,,,function(e,t,n){"use strict";var r=n(755);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const r=n(747);const i=n(87);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(r.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(r.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${i.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return p.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return m.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return s.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return f.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return f.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return r.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return f.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return p.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return p.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return d.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return d.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return d.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return d.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return d.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return d.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return d.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return d.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return d.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return d.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return l.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return p.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return p.visitInParallel}});var r=n(55);var i=n(683);var o=n(40);var s=n(326);var a=n(730);var c=n(388);var u=n(166);var l=n(577);var p=n(386);var f=n(156);var d=n(123);var m=n(380)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var r=n(868);var i=n(150);var o=n(587);var s=n(234);var a=n(75);function FieldsOnCorrectTypeRule(e){return{Field(t){const n=e.getParentType();if(n){const i=e.getFieldDef();if(!i){const i=e.getSchema();const o=t.name.value;let a=(0,r.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(i,n,o));if(a===""){a=(0,r.didYouMean)(getSuggestedFieldNames(n,o))}e.reportError(new s.GraphQLError(`Cannot query field "${o}" on type "${n.name}".`+a,t))}}}}}function getSuggestedTypeNames(e,t,n){if(!(0,a.isAbstractType)(t)){return[]}const r=new Set;const i=Object.create(null);for(const o of e.getPossibleTypes(t)){if(!o.getFields()[n]){continue}r.add(o);i[o.name]=1;for(const e of o.getInterfaces()){var s;if(!e.getFields()[n]){continue}r.add(e);i[e.name]=((s=i[e.name])!==null&&s!==void 0?s:0)+1}}return[...r].sort((t,n)=>{const r=i[n.name]-i[t.name];if(r!==0){return r}if((0,a.isInterfaceType)(t)&&e.isSubType(t,n)){return-1}if((0,a.isInterfaceType)(n)&&e.isSubType(n,t)){return 1}return(0,o.naturalCompare)(t.name,n.name)}).map(e=>e.name)}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,i.suggestionList)(t,n)}return[]}},,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(35);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,function forEachHandler(t){if(t!==null){e(t)}})};e.exports=InterceptorManager},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var r=n(234);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(n){const i=n.name.value;if(t[i]){e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,[t[i],n.name]))}else{t[i]=n.name}return false}}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var r=n(868);var i=n(150);var o=n(234);var s=n(326);var a=n(134);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const n=e.getArgument();const s=e.getFieldDef();const a=e.getParentType();if(!n&&s&&a){const n=t.name.value;const c=s.args.map(e=>e.name);const u=(0,i.suggestionList)(n,c);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${a.name}.${s.name}".`+(0,r.didYouMean)(u),t))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const n=e.getSchema();const c=n?n.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map(e=>e.name)}const u=e.getDocument().definitions;for(const e of u){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){var l;const n=(l=e.arguments)!==null&&l!==void 0?l:[];t[e.name.value]=n.map(e=>e.name.value)}}return{Directive(n){const s=n.name.value;const a=t[s];if(n.arguments&&a){for(const t of n.arguments){const n=t.name.value;if(!a.includes(n)){const c=(0,i.suggestionList)(n,a);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${s}".`+(0,r.didYouMean)(c),t))}}}return false}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var r=n(932);var i=n(234);var o=n(75);function NoDeprecatedCustomRule(e){return{Field(t){const n=e.getFieldDef();const o=n===null||n===void 0?void 0:n.deprecationReason;if(n&&o!=null){const s=e.getParentType();s!=null||(0,r.invariant)(false);e.reportError(new i.GraphQLError(`The field ${s.name}.${n.name} is deprecated. ${o}`,t))}},Argument(t){const n=e.getArgument();const o=n===null||n===void 0?void 0:n.deprecationReason;if(n&&o!=null){const s=e.getDirective();if(s!=null){e.reportError(new i.GraphQLError(`Directive "@${s.name}" argument "${n.name}" is deprecated. ${o}`,t))}else{const s=e.getParentType();const a=e.getFieldDef();s!=null&&a!=null||(0,r.invariant)(false);e.reportError(new i.GraphQLError(`Field "${s.name}.${a.name}" argument "${n.name}" is deprecated. ${o}`,t))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value];const o=r===null||r===void 0?void 0:r.deprecationReason;if(o!=null){e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,t))}}},EnumValue(t){const n=e.getEnumValue();const s=n===null||n===void 0?void 0:n.deprecationReason;if(n&&s!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,r.invariant)(false);e.reportError(new i.GraphQLError(`The enum value "${a.name}.${n.name}" is deprecated. ${s}`,t))}}}}},,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const n=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof n.return==="function"){try{await n.return()}catch(e){}}throw e}}return{async next(){return mapResult(await n.next())},async return(){return typeof n.return==="function"?mapResult(await n.return()):{value:undefined,done:true}},async throw(e){if(typeof n.throw==="function"){return mapResult(await n.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var r=n(393);var i=n(932);var o=n(947);var s=n(333);var a=n(326);var c=n(810);var u=n(75);function astFromValue(e,t){if((0,u.isNonNullType)(t)){const n=astFromValue(e,t.ofType);if((n===null||n===void 0?void 0:n.kind)===a.Kind.NULL){return null}return n}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,u.isListType)(t)){const n=t.ofType;if((0,s.isIterableObject)(e)){const t=[];for(const r of e){const e=astFromValue(r,n);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,n)}if((0,u.isInputObjectType)(t)){if(!(0,o.isObjectLike)(e)){return null}const n=[];for(const r of Object.values(t.getFields())){const t=astFromValue(e[r.name],r.type);if(t){n.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:r.name},value:t})}}return{kind:a.Kind.OBJECT,fields:n}}if((0,u.isLeafType)(t)){const n=t.serialize(e);if(n==null){return null}if(typeof n==="boolean"){return{kind:a.Kind.BOOLEAN,value:n}}if(typeof n==="number"&&Number.isFinite(n)){const e=String(n);return l.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof n==="string"){if((0,u.isEnumType)(t)){return{kind:a.Kind.ENUM,value:n}}if(t===c.GraphQLID&&l.test(n)){return{kind:a.Kind.INT,value:n}}return{kind:a.Kind.STRING,value:n}}throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(n)}.`)}false||(0,i.invariant)(false,"Unexpected input type: "+(0,r.inspect)(t))}const l=/^-?(?:0|[1-9][0-9]*)$/},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var r=n(234);var i=n(326);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===i.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){if(!n.name&&t>1){e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",n))}}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,n,r){const i=t.endpoint.merge(n,r);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const n=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=n},,,function(e,t,n){"use strict";var r=n(652);var i=n(755);function compileList(e,t){var n=[];e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=r}});n[t]=e});return n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t({next(){if(!a){return Promise.resolve({done:true})}return i({method:o,url:a,headers:s}).then(normalizePaginatedListResponse).then(e=>{a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:e}})}})}}function paginate(e,t,n,r){if(typeof n==="function"){r=n;n=undefined}return gather(e,[],iterator(e,t,n)[Symbol.asyncIterator](),r)}function gather(e,t,n,r){return n.next().then(i=>{if(i.done){return t}let o=false;function done(){o=true}t=t.concat(r?r(i.value,done):i.value.data);if(o){return t}return gather(e,t,n,r)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=n;t.paginateRest=paginateRest},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var r=n(393);var i=n(932);var o=n(868);var s=n(150);var a=n(234);var c=n(326);var u=n(123);var l=n(75);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const n=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){n[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(r){const i=r.name.value;const c=n[i];const u=t===null||t===void 0?void 0:t.getType(i);let l;if(c){l=p[c.kind]}else if(u){l=typeToExtKind(u)}if(l){if(l!==r.kind){const t=extensionKindToTypeName(r.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${i}".`,c?[c,r]:r))}}else{const c=Object.keys({...n,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,s.suggestionList)(i,c);e.reportError(new a.GraphQLError(`Cannot extend type "${i}" because it is not defined.`+(0,o.didYouMean)(u),r.name))}}}const p={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,l.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,l.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,l.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,l.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,l.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,l.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,i.invariant)(false,"Unexpected type: "+(0,r.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}false||(0,i.invariant)(false,"Unexpected kind: "+(0,r.inspect)(e))}},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;let n;t.Kind=n;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(n||(t.Kind=n={}))},,,,function(e,t,n){e.exports=n(669).inspect},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var r=n(234);function UniqueTypeNamesRule(e){const t=Object.create(null);const n=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(i){const o=i.name.value;if(n!==null&&n!==void 0&&n.getType(o)){e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,i.name));return}if(t[o]){e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,[t[o],i.name]))}else{t[o]=i.name}return false}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},,,,,function(e,t,n){"use strict";var r=n(755);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,n=e;for(t in n){if(i.call(n,t)){if(n[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var r=n(234);function NoUnusedFragmentsRule(e){const t=[];const n=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){n.push(e);return false},Document:{leave(){const i=Object.create(null);for(const n of t){for(const t of e.getRecursivelyReferencedFragments(n)){i[t.name.value]=true}}for(const t of n){const n=t.name.value;if(i[n]!==true){e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,t))}}}}}}},,,,function(e,t,n){"use strict";e.exports=n(77).extend({implicit:[n(244),n(230)],explicit:[n(848),n(919),n(224),n(338)]})},,,,,,,,function(e,t,n){"use strict";var r=n(35);var i=n(727);var o=n(779);var s=n(825);var a=n(529);function createInstance(e){var t=new o(e);var n=i(o.prototype.request,t);r.extend(n,o.prototype,t);r.extend(n,t);return n}var c=createInstance(a);c.Axios=o;c.create=function create(e){return createInstance(s(c.defaults,e))};c.Cancel=n(826);c.CancelToken=n(137);c.isCancel=n(732);c.all=function all(e){return Promise.all(e)};c.spread=n(879);c.isAxiosError=n(104);e.exports=c;e.exports.default=c},,,,,function(e){e.exports=require("assert")},,,,function(e){e.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}},,,function(e){"use strict";e.exports=((e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const i=t.indexOf("--");return r!==-1&&(i===-1||re.name);function isSDLNode(e){return"kind"in e&&((0,s.isTypeSystemDefinitionNode)(e)||(0,s.isTypeSystemExtensionNode)(e))}},,function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){e.config=t;if(n){e.code=n}e.request=r;e.response=i;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return e}},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const n=Boolean(e);if(!n){throw new Error(t)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e)){n[r]=t(i,r)}return n}},,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;let n;t.DirectiveLocation=n;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(n||(t.DirectiveLocation=n={}))},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var r=n(371);var i=n(234);var o=n(655);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,r.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var r=n(326);function concatAST(e){const t=[];for(const n of e){t.push(...n.definitions)}return{kind:r.Kind.DOCUMENT,definitions:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var r=n(393);var i=n(371);var o=n(156);var s=n(326);const a=Object.freeze({});t.BREAK=a;function visit(e,t,n=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(s.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let l=Array.isArray(e);let p=[e];let f=-1;let d=[];let m=undefined;let h=undefined;let g=undefined;const y=[];const v=[];let b=e;do{f++;const e=f===p.length;const s=e&&d.length!==0;if(e){h=v.length===0?undefined:y[y.length-1];m=g;g=v.pop();if(s){if(l){m=m.slice();let e=0;for(const[t,n]of d){const r=t-e;if(n===null){m.splice(r,1);e++}else{m[r]=n}}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(const[e,t]of d){m[e]=t}}}f=u.index;p=u.keys;d=u.edits;l=u.inArray;u=u.prev}else{h=g?l?f:p[f]:undefined;m=g?g[h]:b;if(m===null||m===undefined){continue}if(g){y.push(h)}}let w;if(!Array.isArray(m)){var T,E;(0,o.isNode)(m)||(0,i.devAssert)(false,`Invalid AST Node: ${(0,r.inspect)(m)}.`);const n=e?(T=c.get(m.kind))===null||T===void 0?void 0:T.leave:(E=c.get(m.kind))===null||E===void 0?void 0:E.enter;w=n===null||n===void 0?void 0:n.call(t,m,h,g,y,v);if(w===a){break}if(w===false){if(!e){y.pop();continue}}else if(w!==undefined){d.push([h,w]);if(!e){if((0,o.isNode)(w)){m=w}else{y.pop();continue}}}}if(w===undefined&&s){d.push([h,m])}if(e){y.pop()}else{var O;u={inArray:l,index:f,keys:p,edits:d,prev:u};l=Array.isArray(m);p=l?m:(O=n[m.kind])!==null&&O!==void 0?O:[];f=-1;d=[];if(g){v.push(g)}g=m}}while(u!==undefined);if(d.length!==0){b=d[d.length-1][1]}return b}function visitInParallel(e){const t=new Array(e.length).fill(null);const n=Object.create(null);for(const r of Object.values(s.Kind)){let i=false;const o=new Array(e.length).fill(undefined);const s=new Array(e.length).fill(undefined);for(let t=0;t=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const n=e.source.body.codePointAt(t);if(n===undefined){return o.TokenKind.EOF}else if(n>=32&&n<=126){const e=String.fromCodePoint(n);return e==='"'?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,n,r,o){const s=e.line;const a=1+n-e.lineStart;return new i.Token(t,n,r,s,a,o)}function readNextToken(e,t){const n=e.source.body;const i=n.length;let s=t;while(s=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const n=e.source.body;const i=n.charCodeAt(t+1);switch(i){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function readBlockString(e,t){const n=e.source.body;const i=n.length;let a=t+3;let c=a;let u="";while(ar){return"["+getObjectTag(e)+"]"}const i=n.map(([e,n])=>e+": "+formatValue(n,t));return"{ "+i.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>r){return"[Array]"}const i=Math.min(n,e.length);const o=e.length-i;const s=[];for(let n=0;n1){s.push(`... ${o} more items`)}return"["+s.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var r=n(932);var i=n(234);function UniqueInputFieldNamesRule(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n);n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(false);n=e}},ObjectField(t){const r=t.name.value;if(n[r]){e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,[n[r],t.name]))}else{n[r]=t.name}}}}},,,,,,,,,,function(e,t,n){"use strict";e.exports=n(308).extend({implicit:[n(676),n(882),n(707),n(227)]})},,,,function(e,t,n){"use strict";var r=n(35);e.exports=function normalizeHeaderName(e,t){r.forEach(e,function processHeader(n,r){if(r!==t&&r.toUpperCase()===t.toUpperCase()){e[t]=n;delete e[r]}})}},,function(e){e.exports=require("stream")},function(e,t,n){"use strict";var r=n(450);var i=n(844);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=n(755);e.exports.Schema=n(307);e.exports.FAILSAFE_SCHEMA=n(308);e.exports.JSON_SCHEMA=n(407);e.exports.CORE_SCHEMA=n(77);e.exports.DEFAULT_SCHEMA=n(344);e.exports.load=r.load;e.exports.loadAll=r.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=n(652);e.exports.types={binary:n(848),float:n(227),map:n(85),null:n(676),pairs:n(224),set:n(338),timestamp:n(244),bool:n(882),int:n(707),merge:n(230),omap:n(919),seq:n(503),str:n(258)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},,,,,,,,function(e){var t;var n;var r;var i;var o;var s;var a;var c;var u;var l;var p;var f;var d;var m;var h;var g;var y;var v;var b;var T;var E;var O;var w;var _;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],function(e){t(createExporter(n,createExporter(e)))})}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,r){return e[n]=t?t(n,r):r}}})(function(e){var S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");S(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)if(s=e[a])o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o;return i>3&&o&&Object.defineProperty(t,n,o),o};o=function(e,t){return function(n,r){t(n,r,e)}};s=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};c=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};p=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(n=r["return"]))n.call(r)}finally{if(s)throw s.error}}return o};f=function(){for(var e=[],t=0;t1||resume(e,t)})}}function resume(e,t){try{step(r[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof h?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};y=function(e){var t,n;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:r==="return"}:i?i(t):t}:i}};v=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof l==="function"?l(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),settle(r,i,n.done,n.value)})}}function settle(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};b=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))_(t,e,n);N(t,e);return t};E=function(e){return e&&e.__esModule?e:{default:e}};O=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)};w=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n};e("__extends",t);e("__assign",n);e("__rest",r);e("__decorate",i);e("__param",o);e("__metadata",s);e("__awaiter",a);e("__generator",c);e("__exportStar",u);e("__createBinding",_);e("__values",l);e("__read",p);e("__spread",f);e("__spreadArrays",d);e("__spreadArray",m);e("__await",h);e("__asyncGenerator",g);e("__asyncDelegator",y);e("__asyncValues",v);e("__makeTemplateObject",b);e("__importStar",T);e("__importDefault",E);e("__classPrivateFieldGet",O);e("__classPrivateFieldSet",w)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var r=n(234);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(n!==null&&n!==void 0&&n.getDirective(o)){e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,i.name));return}if(t[o]){e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,[t[o],i.name]))}else{t[o]=i.name}return false}}}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var r=n(393);var i=n(234);var o=n(326);var s=n(577);var a=n(75);var c=n(72);function reasonMessage(e){if(Array.isArray(e)){return e.map(([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t)).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const n=new Map;return{SelectionSet(r){const o=findConflictsWithinSelectionSet(e,n,t,e.getParentType(),r);for(const[[t,n],r,s]of o){const o=reasonMessage(n);e.reportError(new i.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,r.concat(s)))}}}}function findConflictsWithinSelectionSet(e,t,n,r,i){const o=[];const[s,a]=getFieldsAndFragmentNames(e,t,r,i);collectConflictsWithin(e,o,t,n,s);if(a.length!==0){for(let r=0;r1){for(let i=0;i{const n=t.find(t=>t.name.value===e.name.value);if(!n){return false}return sameValue(e.value,n.value)})}function sameValue(e,t){return(0,s.print)(e)===(0,s.print)(t)}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,n,r){const i=t.get(r);if(i){return i}const o=Object.create(null);const s=Object.create(null);_collectFieldsAndFragmentNames(e,n,r,o,s);const a=[o,Object.keys(s)];t.set(r,a);return a}function getReferencedFieldsAndFragmentNames(e,t,n){const r=t.get(n.selectionSet);if(r){return r}const i=(0,c.typeFromAST)(e.getSchema(),n.typeCondition);return getFieldsAndFragmentNames(e,t,i,n.selectionSet)}function _collectFieldsAndFragmentNames(e,t,n,r,i){for(const s of n.selections){switch(s.kind){case o.Kind.FIELD:{const e=s.name.value;let n;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){n=t.getFields()[e]}const i=s.alias?s.alias.value:e;if(!r[i]){r[i]=[]}r[i].push([t,s,n]);break}case o.Kind.FRAGMENT_SPREAD:i[s.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const n=s.typeCondition;const o=n?(0,c.typeFromAST)(e.getSchema(),n):t;_collectFieldsAndFragmentNames(e,o,s.selectionSet,r,i);break}}}}function subfieldConflicts(e,t,n,r){if(e.length>0){return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=o(n(87));const a=n(82);function issueCommand(e,t,n){const r=new Command(e,t,n);process.stdout.write(r.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const r=this.properties[n];if(r){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(r)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var r=n(75);function isEqualType(e,t){if(e===t){return true}if((0,r.isNonNullType)(e)&&(0,r.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,r.isListType)(e)&&(0,r.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,n){if(t===n){return true}if((0,r.isNonNullType)(n)){if((0,r.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,n.ofType)}return false}if((0,r.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,n)}if((0,r.isListType)(n)){if((0,r.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,n.ofType)}return false}if((0,r.isListType)(t)){return false}return(0,r.isAbstractType)(n)&&((0,r.isInterfaceType)(t)||(0,r.isObjectType)(t))&&e.isSubType(n,t)}function doTypesOverlap(e,t,n){if(t===n){return true}if((0,r.isAbstractType)(t)){if((0,r.isAbstractType)(n)){return e.getPossibleTypes(t).some(t=>e.isSubType(n,t))}return e.isSubType(t,n)}if((0,r.isAbstractType)(n)){return e.isSubType(n,t)}return false}},,,,,,,,,function(e,t,n){"use strict";var r=n(843);var i=n(652);var o=n(98);var s=n(344);var a=Object.prototype.hasOwnProperty;var c=1;var u=2;var l=3;var p=4;var f=1;var d=2;var m=3;var h=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var g=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var v=/^(?:!|!!|![a-z\-]+!)$/i;var b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var T=new Array(256);var E=new Array(256);for(var O=0;O<256;O++){T[O]=simpleEscapeSequence(O)?1:0;E[O]=simpleEscapeSequence(O)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||s;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=o(n);return new i(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var w={YAML:function handleYamlDirective(e,t,n){var r,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(r===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(r[1],10);o=parseInt(r[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,n){var r,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}r=n[0];i=n[1];if(!v.test(r)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,r)){throwError(e,'there is a previously declared suffix for "'+r+'" tag handle')}if(!b.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function captureSegment(e,t,n,r){var i,o,s,a;if(t1){e.result+=r.repeat("\n",t-1)}}function readPlainScalar(e,t,n){var r,i,o,s,a,c,u,l,p=e.kind,f=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=s=e.position;a=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(d===35){r=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(r)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){c=e.line;u=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=c;e.lineStart=u;e.lineIndent=l;break}}if(a){captureSegment(e,o,s,false);writeFoldedLines(e,e.line-c);o=s=e.position;a=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,o,s,false);if(e.result){return true}e.kind=p;e.result=f;return false}function readSingleQuotedScalar(e,t){var n,r,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;r=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,r,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){r=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,r,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,r,i,o,s,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;n=r=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,n,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&T[a]){e.result+=E[a];e.position++}else if((s=escapedHexLen(a))>0){i=s;o=0;for(;i>0;i--){a=e.input.charCodeAt(++e.position);if((s=fromHexCode(a))>=0){o=(o<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}n=r=e.position}else if(is_EOL(a)){captureSegment(e,n,r,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=r=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;r=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n=true,r,i,o,s=e.tag,a,u=e.anchor,l,p,f,d,m,h=Object.create(null),g,y,v,b;b=e.input.charCodeAt(e.position);if(b===91){p=93;m=false;a=[]}else if(b===123){p=125;m=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}b=e.input.charCodeAt(++e.position);while(b!==0){skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===p){e.position++;e.tag=s;e.anchor=u;e.kind=m?"mapping":"sequence";e.result=a;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(b===44){throwError(e,"expected the node content, but found ','")}y=g=v=null;f=d=false;if(b===63){l=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(l)){f=d=true;e.position++;skipSeparationSpace(e,true,t)}}r=e.line;i=e.lineStart;o=e.position;composeNode(e,t,c,false,true);y=e.tag;g=e.result;skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if((d||e.line===r)&&b===58){f=true;b=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,c,false,true);v=e.result}if(m){storeMappingPair(e,a,h,y,g,v,r,i,o)}else if(f){a.push(storeMappingPair(e,null,h,y,g,v,r,i,o))}else{a.push(g)}skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===44){n=true;b=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,i,o=f,s=false,a=false,c=t,u=0,l=false,p,h;h=e.input.charCodeAt(e.position);if(h===124){i=false}else if(h===62){i=true}else{return false}e.kind="scalar";e.result="";while(h!==0){h=e.input.charCodeAt(++e.position);if(h===43||h===45){if(f===o){o=h===43?m:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(h))>=0){if(p===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){c=t+p-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(h)){do{h=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(h));if(h===35){do{h=e.input.charCodeAt(++e.position)}while(!is_EOL(h)&&h!==0)}}while(h!==0){readLineBreak(e);e.lineIndent=0;h=e.input.charCodeAt(e.position);while((!a||e.lineIndentc){c=e.lineIndent}if(is_EOL(h)){u++;continue}if(e.lineIndentt)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(v){s=e.line;a=e.lineStart;c=e.position}if(composeNode(e,t,p,true,i)){if(v){g=e.result}else{y=e.result}}if(!v){storeMappingPair(e,d,m,h,g,y,s,a,c);h=g=y=null}skipSeparationSpace(e,true,-1);T=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&T!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndentt){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(g=0,y=e.implicitTypes.length;g")}if(e.result!==null&&b.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"')}if(!b.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=b.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||h}function readDocument(e){var t=e.position,n,r,i,o=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}o=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}r=e.input.slice(n,e.position);i=[];if(r.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(a.call(w,r)){w[r](e,r,i)}else{throwWarning(e,'unknown document directive "'+r+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&g.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.positionconsole.warn(e));class RequestError extends Error{constructor(e,t,n){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){o(new r.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=n.headers||{};const i=Object.assign({},n.request);if(n.request.headers.authorization){i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var r=n(393);var i=n(187);var o=n(932);var s=n(371);var a=n(649);var c=n(947);var u=n(231);var l=n(153);var p=n(691);var f=n(333);var d=n(234);var m=n(635);var h=n(156);var g=n(326);var y=n(839);var v=n(754);var b=n(75);var T=n(740);var E=n(962);const O=(0,i.memoize3)((e,t,n)=>(0,E.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function execute(e){const{schema:t,document:n,variableValues:r,rootValue:i}=e;assertValidExecutionArguments(t,n,r);const o=buildExecutionContext(e);if(!("schema"in o)){return{errors:o}}try{const{operation:e}=o;const t=executeOperation(o,e,i);if((0,a.isPromise)(t)){return t.then(e=>buildResponse(e,o.errors),e=>{o.errors.push(e);return buildResponse(null,o.errors)})}return buildResponse(t,o.errors)}catch(e){o.errors.push(e);return buildResponse(null,o.errors)}}function executeSync(e){const t=execute(e);if((0,a.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,n){t||(0,s.devAssert)(false,"Must provide document.");(0,y.assertValidSchema)(e);n==null||(0,c.isObjectLike)(n)||(0,s.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:c,fieldResolver:u,typeResolver:l,subscribeFieldResolver:p}=e;let f;const m=Object.create(null);for(const e of i.definitions){switch(e.kind){case g.Kind.OPERATION_DEFINITION:if(c==null){if(f!==undefined){return[new d.GraphQLError("Must provide operation name if query contains multiple operations.")]}f=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){f=e}break;case g.Kind.FRAGMENT_DEFINITION:m[e.name.value]=e;break}}if(!f){if(c!=null){return[new d.GraphQLError(`Unknown operation named "${c}".`)]}return[new d.GraphQLError("Must provide an operation.")]}const h=(n=f.variableDefinitions)!==null&&n!==void 0?n:[];const y=(0,T.getVariableValues)(r,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(y.errors){return y.errors}return{schema:r,fragments:m,rootValue:o,contextValue:s,operation:f,variableValues:y.coerced,fieldResolver:u!==null&&u!==void 0?u:_,typeResolver:l!==null&&l!==void 0?l:w,subscribeFieldResolver:p!==null&&p!==void 0?p:_,errors:[]}}function executeOperation(e,t,n){const r=e.schema.getRootType(t.operation);if(r==null){throw new d.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,t)}const i=(0,E.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,r,n,o,i);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,r,n,o,i);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,r,n,o,i)}}function executeFieldsSerially(e,t,n,r,i){return(0,u.promiseReduce)(i.entries(),(i,[o,s])=>{const c=(0,p.addPath)(r,o,t.name);const u=executeField(e,t,n,s,c);if(u===undefined){return i}if((0,a.isPromise)(u)){return u.then(e=>{i[o]=e;return i})}i[o]=u;return i},Object.create(null))}function executeFields(e,t,n,r,i){const o=Object.create(null);let s=false;for(const[c,u]of i.entries()){const i=(0,p.addPath)(r,c,t.name);const l=executeField(e,t,n,u,i);if(l!==undefined){o[c]=l;if((0,a.isPromise)(l)){s=true}}}if(!s){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,n,r,i){var o;const s=getFieldDef(e.schema,t,r[0]);if(!s){return}const c=s.type;const u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,s,r,t,i);try{const t=(0,T.getArgumentValues)(s,r[0],e.variableValues);const o=e.contextValue;const f=u(n,t,o,l);let d;if((0,a.isPromise)(f)){d=f.then(t=>completeValue(e,c,r,l,i,t))}else{d=completeValue(e,c,r,l,i,f)}if((0,a.isPromise)(d)){return d.then(undefined,t=>{const n=(0,m.locatedError)(t,r,(0,p.pathToArray)(i));return handleFieldError(n,c,e)})}return d}catch(t){const n=(0,m.locatedError)(t,r,(0,p.pathToArray)(i));return handleFieldError(n,c,e)}}function buildResolveInfo(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,n){if((0,b.isNonNullType)(t)){throw e}n.errors.push(e);return null}function completeValue(e,t,n,i,s,a){if(a instanceof Error){throw a}if((0,b.isNonNullType)(t)){const r=completeValue(e,t.ofType,n,i,s,a);if(r===null){throw new Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`)}return r}if(a==null){return null}if((0,b.isListType)(t)){return completeListValue(e,t,n,i,s,a)}if((0,b.isLeafType)(t)){return completeLeafValue(t,a)}if((0,b.isAbstractType)(t)){return completeAbstractValue(e,t,n,i,s,a)}if((0,b.isObjectType)(t)){return completeObjectValue(e,t,n,i,s,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,r.inspect)(t))}function completeListValue(e,t,n,r,i,o){if(!(0,f.isIterableObject)(o)){throw new d.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`)}const s=t.ofType;let c=false;const u=Array.from(o,(t,o)=>{const u=(0,p.addPath)(i,o,undefined);try{let i;if((0,a.isPromise)(t)){i=t.then(t=>completeValue(e,s,n,r,u,t))}else{i=completeValue(e,s,n,r,u,t)}if((0,a.isPromise)(i)){c=true;return i.then(undefined,t=>{const r=(0,m.locatedError)(t,n,(0,p.pathToArray)(u));return handleFieldError(r,s,e)})}return i}catch(t){const r=(0,m.locatedError)(t,n,(0,p.pathToArray)(u));return handleFieldError(r,s,e)}});return c?Promise.all(u):u}function completeLeafValue(e,t){const n=e.serialize(t);if(n==null){throw new Error(`Expected \`${(0,r.inspect)(e)}.serialize(${(0,r.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,r.inspect)(n)}`)}return n}function completeAbstractValue(e,t,n,r,i,o){var s;const c=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver;const u=e.contextValue;const l=c(o,u,r,t);if((0,a.isPromise)(l)){return l.then(s=>completeObjectValue(e,ensureValidRuntimeType(s,e,t,n,r,o),n,r,i,o))}return completeObjectValue(e,ensureValidRuntimeType(l,e,t,n,r,o),n,r,i,o)}function ensureValidRuntimeType(e,t,n,i,o,s){if(e==null){throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,i)}if((0,b.isObjectType)(e)){throw new d.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,r.inspect)(s)}, received "${(0,r.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,i)}if(!(0,b.isObjectType)(a)){throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,i)}if(!t.schema.isSubType(n,a)){throw new d.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,i)}return a}function completeObjectValue(e,t,n,r,i,o){const s=O(e,t,n);if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if((0,a.isPromise)(c)){return c.then(r=>{if(!r){throw invalidReturnTypeError(t,o,n)}return executeFields(e,t,o,i,s)})}if(!c){throw invalidReturnTypeError(t,o,n)}}return executeFields(e,t,o,i,s)}function invalidReturnTypeError(e,t,n){return new d.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,r.inspect)(t)}.`,n)}const w=function(e,t,n,r){if((0,c.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const i=n.schema.getPossibleTypes(r);const o=[];for(let r=0;r{for(let t=0;te!=="");return n}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const r=["false","False","FALSE"];const i=getInput(e,t);if(n.includes(i))return true;if(r.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n})}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[n,r]of Object.entries(e)){t[n]=r}return t}},,,,,,,,,,,,,function(e,t,n){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(761);createDebug.destroy=destroy;Object.keys(e).forEach(t=>{createDebug[t]=e[t]});createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n{if(t==="%%"){return"%"}o++;const i=createDebug.formatters[r];if(typeof i==="function"){const r=e[o];t=i.call(n,r);e.splice(o,1);o--}return t});createDebug.formatArgs.call(n,e);const s=n.log||createDebug.log;s.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>n===null?createDebug.enabled(e):n,set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const r=n.length;for(t=0;t"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t0){n="\n"+n}const r=n.endsWith('"')&&!n.endsWith('\\"""');if(r||n.endsWith("\\")){n+="\n"}return'"""'+n+'"""'}},,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=dedentBlockStringValue;t.getBlockStringIndentation=getBlockStringIndentation;t.printBlockString=printBlockString;function dedentBlockStringValue(e){const t=e.split(/\r\n|[\n\r]/g);const n=getBlockStringIndentation(e);if(n!==0){for(let e=1;er&&isBlank(t[i-1])){--i}return t.slice(r,i).join("\n")}function isBlank(e){for(const t of e){if(t!==" "&&t!=="\t"){return false}}return true}function getBlockStringIndentation(e){var t;let n=true;let r=true;let i=0;let o=null;for(let t=0;te.type in f)}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter(e=>e.type in d)}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const n=[];const r=diff(e.getDirectives(),t.getDirectives());for(const e of r.removed){n.push({type:f.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of r.persisted){const r=diff(e.args,t.args);for(const t of r.added){if((0,l.isRequiredArgument)(t)){n.push({type:f.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of r.removed){n.push({type:f.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){n.push({type:f.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const r of e.locations){if(!t.locations.includes(r)){n.push({type:f.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}}}return n}function findTypeChanges(e,t){const n=[];const r=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed){n.push({type:f.TYPE_REMOVED,description:(0,u.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of r.persisted){if((0,l.isEnumType)(e)&&(0,l.isEnumType)(t)){n.push(...findEnumTypeChanges(e,t))}else if((0,l.isUnionType)(e)&&(0,l.isUnionType)(t)){n.push(...findUnionTypeChanges(e,t))}else if((0,l.isInputObjectType)(e)&&(0,l.isInputObjectType)(t)){n.push(...findInputObjectTypeChanges(e,t))}else if((0,l.isObjectType)(e)&&(0,l.isObjectType)(t)){n.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,l.isInterfaceType)(e)&&(0,l.isInterfaceType)(t)){n.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){n.push({type:f.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return n}function findInputObjectTypeChanges(e,t){const n=[];const r=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added){if((0,l.isRequiredInputField)(t)){n.push({type:f.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{n.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of r.removed){n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,i]of r.persisted){const r=isChangeSafeForInputObjectFieldOrFieldArg(t.type,i.type);if(!r){n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(i.type)}.`})}}return n}function findUnionTypeChanges(e,t){const n=[];const r=diff(e.getTypes(),t.getTypes());for(const t of r.added){n.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of r.removed){n.push({type:f.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return n}function findEnumTypeChanges(e,t){const n=[];const r=diff(e.getValues(),t.getValues());for(const t of r.added){n.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of r.removed){n.push({type:f.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return n}function findImplementedInterfacesChanges(e,t){const n=[];const r=diff(e.getInterfaces(),t.getInterfaces());for(const t of r.added){n.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of r.removed){n.push({type:f.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return n}function findFieldChanges(e,t){const n=[];const r=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed){n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,i]of r.persisted){n.push(...findArgChanges(e,t,i));const r=isChangeSafeForObjectOrInterfaceField(t.type,i.type);if(!r){n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(i.type)}.`})}}return n}function findArgChanges(e,t,n){const r=[];const i=diff(t.args,n.args);for(const n of i.removed){r.push({type:f.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`})}for(const[n,o]of i.persisted){const i=isChangeSafeForInputObjectFieldOrFieldArg(n.type,o.type);if(!i){r.push({type:f.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from `+`${String(n.type)} to ${String(o.type)}.`})}else if(n.defaultValue!==undefined){if(o.defaultValue===undefined){r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`})}else{const i=stringifyValue(n.defaultValue,n.type);const s=stringifyValue(o.defaultValue,o.type);if(i!==s){r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${s}.`})}}}}for(const n of i.added){if((0,l.isRequiredArgument)(n)){r.push({type:f.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`})}else{r.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`})}}return r}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,l.isListType)(e)){return(0,l.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,l.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,l.isNonNullType)(e)){return(0,l.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,l.isNamedType)(t)&&e.name===t.name||(0,l.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,l.isListType)(e)){return(0,l.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,l.isNonNullType)(e)){return(0,l.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,l.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,l.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,l.isScalarType)(e)){return"a Scalar type"}if((0,l.isObjectType)(e)){return"an Object type"}if((0,l.isInterfaceType)(e)){return"an Interface type"}if((0,l.isUnionType)(e)){return"a Union type"}if((0,l.isEnumType)(e)){return"an Enum type"}if((0,l.isInputObjectType)(e)){return"an Input type"}false||(0,o.invariant)(false,"Unexpected type: "+(0,i.inspect)(e))}function stringifyValue(e,t){const n=(0,p.astFromValue)(e,t);n!=null||(0,o.invariant)(false);const r=(0,c.visit)(n,{ObjectValue(e){const t=[...e.fields];t.sort((e,t)=>(0,s.naturalCompare)(e.name.value,t.name.value));return{...e,fields:t}}});return(0,a.print)(r)}function diff(e,t){const n=[];const i=[];const o=[];const s=(0,r.keyMap)(e,({name:e})=>e);const a=(0,r.keyMap)(t,({name:e})=>e);for(const t of e){const e=a[t.name];if(e===undefined){i.push(t)}else{o.push([t,e])}}for(const e of t){if(s[e.name]===undefined){n.push(e)}}return{added:n,persisted:o,removed:i}}},,,,,,,,function(e,t,n){"use strict";var r=n(755);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var r=n(234);var i=n(75);var o=n(754);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());if(n&&(0,o.isIntrospectionType)(n)){e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,t))}}}}},,,,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const s=o(n(262));const a=o(n(127));const c=n(626);const u=n(713);const l=n(322);t.context=new s.Context;const p=a.getApiBaseUrl();const f={baseUrl:p,request:{agent:a.getProxyAgent(p)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,l.paginateRest).defaults(f);function getOctokitOptions(e,t){const n=Object.assign({},t||{});const r=a.getAuthString(e,n);if(r){n.auth=r}return n}t.getOctokitOptions=getOctokitOptions},,,,,,,,function(e,t,n){"use strict";var r=n(35);var i=n(411);var o=n(369);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=n(219)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=n(670)}return e}function stringifySafely(e,t,n){if(r.isString(e)){try{(t||JSON.parse)(e);return r.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}var a={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){i(t,"Accept");i(t,"Content-Type");if(r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)){return e}if(r.isArrayBufferView(e)){return e.buffer}if(r.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(r.isObject(e)||t&&t["Content-Type"]==="application/json"){setContentTypeIfUnset(t,"application/json");return stringifySafely(e)}return e}],transformResponse:[function transformResponse(e){var t=this.transitional;var n=t&&t.silentJSONParsing;var i=t&&t.forcedJSONParsing;var s=!n&&this.responseType==="json";if(s||i&&r.isString(e)&&e.length){try{return JSON.parse(e)}catch(e){if(s){if(e.name==="SyntaxError"){throw o(e,this,"E_JSON_PARSE")}throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}};r.forEach(["delete","get","head"],function forEachMethodNoData(e){a.headers[e]={}});r.forEach(["post","put","patch"],function forEachMethodWithData(e){a.headers[e]=r.merge(s)});e.exports=a},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=n(835);const i=n(605);const o=n(211);const s=n(950);let a;var c;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(c=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const p=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const f=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const m=10;const h=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])});this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=r.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,l.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,l.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,l.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed){throw new Error("Client has already been disposed.")}let o=r.parse(t);let s=this._prepareRequest(e,o,i);let a=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let l;while(u0){const a=l.message.headers["location"];if(!a){break}let c=r.parse(a);if(o.protocol=="https:"&&o.protocol!=c.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(c.hostname!==o.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}s=this._prepareRequest(e,c,i);l=await this.requestRaw(s,n);t--}if(f.indexOf(l.message.statusCode)==-1){return l}u+=1;if(u{let i=function(e,t){if(e){r(e)}n(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,n){let r;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let o=(e,t)=>{if(!i){i=true;n(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);o(null,t)});s.on("socket",e=>{r=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(r){r.end()}o(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){o(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s=r.parsedUrl.protocol==="https:";r.httpModule=s?o:i;const a=s?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(r.options)})}return r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,n){const r=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=r(this.requestOptions.headers)[t]}return e[t]||i||n}_getAgent(e){let t;let r=s.getProxyUrl(e);let c=r&&r.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(c){if(!a){a=n(856)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o=r.protocol==="https:";if(u){i=o?a.httpsOverHttps:a.httpsOverHttp}else{i=o?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new o.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=u?o.globalAgent:i.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(m,e);const t=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==c.NotFound){n(o)}let s;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){s=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(a)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(o.result){t["result"]=o.result}r(t)}else{n(o)}})}}t.HttpClient=HttpClient},,,,,,,,,,function(e,t,n){var r=n(835);var i=r.URL;var o=n(605);var s=n(211);var a=n(413).Writable;var c=n(357);var u=n(454);var l=["abort","aborted","connect","error","socket","timeout"];var p=Object.create(null);l.forEach(function(e){p[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var f=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var d=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var m=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var h=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var n=this;this._onNativeResponse=function(e){n._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.abort=function(){abortRequest(this._currentRequest);this.emit("abort")};RedirectableRequest.prototype.write=function(e,t,n){if(this._ending){throw new h}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){n=t;t=null}if(e.length===0){if(n){n()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,n)}else{this.emit("error",new m);this.abort()}};RedirectableRequest.prototype.end=function(e,t,n){if(typeof e==="function"){n=e;e=t=null}else if(typeof t==="function"){n=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,n)}else{var r=this;var i=this._currentRequest;this.write(e,t,function(){r._ended=true;i.end(null,null,n)});this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var n=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(n._timeout){clearTimeout(n._timeout)}n._timeout=setTimeout(function(){n.emit("timeout");clearTimer()},e);destroyOnTimeout(t)}function clearTimer(){if(n._timeout){clearTimeout(n._timeout);n._timeout=null}n.removeListener("abort",clearTimer);n.removeListener("error",clearTimer);n.removeListener("response",clearTimer);if(t){n.removeListener("timeout",t)}if(!n.socket){n._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=r.format(this._options);i._redirectable=this;for(var o=0;o=400){e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[];return}abortRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new d);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var i=removeMatchingHeaders(/^host$/i,this._options.headers);var o=r.parse(this._currentUrl);var s=i||o.host;var a=/^\w+:/.test(n)?this._currentUrl:r.format(Object.assign(o,{host:s}));var c;try{c=r.resolve(a,n)}catch(e){this.emit("error",new f(e));return}u("redirecting to",c);this._isRedirect=true;var l=r.parse(c);Object.assign(this._options,l);if(l.protocol!==o.protocol&&l.protocol!=="https:"||l.host!==s&&!isSubdomain(l.host,s)){removeMatchingHeaders(/^(?:authorization|cookie)$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var p={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,p)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new f(e))}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var n={};Object.keys(e).forEach(function(o){var s=o+":";var a=n[s]=e[o];var l=t[o]=Object.create(a);function request(e,o,a){if(typeof e==="string"){var l=e;try{e=urlToOptions(new i(l))}catch(t){e=r.parse(l)}}else if(i&&e instanceof i){e=urlToOptions(e)}else{a=o;o=e;e={protocol:s}}if(typeof o==="function"){a=o;o=null}o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o);o.nativeProtocols=n;c.equal(o.protocol,s,"protocol mismatch");u("options",o);return new RedirectableRequest(o,a)}function get(e,t,n){var r=l.request(e,t,n);r.end();return r}Object.defineProperties(l,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})});return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var n;for(var r in t){if(e.test(r)){n=t[r];delete t[r]}}return n===null||typeof n==="undefined"?undefined:String(n).trim()}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);if(!e){this.message=t}else{this.message=t+": "+e.message;this.cause=e}}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}function abortRequest(e){for(var t=0;t0&&e[n]==="."&&e.endsWith(t)}e.exports=wrap({http:o,https:s});e.exports.wrap=wrap},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return s.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return l.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return p.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return f.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return d.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return P.LoneSchemaDefinitionRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return $.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return m.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return M.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return g.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return y.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return v.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return b.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return T.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return E.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return O.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return x.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return w.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return U.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return _.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return C.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return k.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return S.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return N.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return D.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return L.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return F.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return A.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return i.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return I.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return j.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return R.VariablesInAllowedPositionRule}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return r.validate}});var r=n(625);var i=n(567);var o=n(236);var s=n(172);var a=n(269);var c=n(80);var u=n(288);var l=n(719);var p=n(7);var f=n(367);var d=n(303);var m=n(254);var h=n(666);var g=n(340);var y=n(698);var v=n(428);var b=n(601);var T=n(56);var E=n(885);var O=n(223);var w=n(29);var _=n(238);var S=n(286);var N=n(397);var D=n(704);var A=n(972);var I=n(594);var j=n(458);var R=n(641);var P=n(647);var L=n(46);var F=n(332);var C=n(160);var k=n(192);var x=n(818);var U=n(423);var G=n(323);var $=n(289);var M=n(505)},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var r=n(393);var i=n(371);var o=n(857);var s=n(947);var a=n(166);var c=n(742);var u=n(134);var l=n(810);var p=n(754);var f=n(75);var d=n(820);function buildClientSchema(e,t){(0,s.isObjectLike)(e)&&(0,s.isObjectLike)(e.__schema)||(0,i.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,r.inspect)(e)}.`);const n=e.__schema;const m=(0,o.keyValMap)(n.types,e=>e.name,e=>buildType(e));for(const e of[...l.specifiedScalarTypes,...p.introspectionTypes]){if(m[e.name]){m[e.name]=e}}const h=n.queryType?getObjectType(n.queryType):null;const g=n.mutationType?getObjectType(n.mutationType):null;const y=n.subscriptionType?getObjectType(n.subscriptionType):null;const v=n.directives?n.directives.map(buildDirective):[];return new c.GraphQLSchema({description:n.description,query:h,mutation:g,subscription:y,types:Object.values(m),directives:v,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===p.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new f.GraphQLList(getType(t))}if(e.kind===p.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const n=getType(t);return new f.GraphQLNonNull((0,f.assertNullableType)(n))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,r.inspect)(e)}.`)}const n=m[t];if(!n){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return n}function getObjectType(e){return(0,f.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,f.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case p.TypeKind.SCALAR:return buildScalarDef(e);case p.TypeKind.OBJECT:return buildObjectDef(e);case p.TypeKind.INTERFACE:return buildInterfaceDef(e);case p.TypeKind.UNION:return buildUnionDef(e);case p.TypeKind.ENUM:return buildEnumDef(e);case p.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,r.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new f.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===p.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new f.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new f.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new f.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new f.GraphQLEnumType({name:e.name,description:e.description,values:(0,o.keyValMap)(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new f.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields)})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,r.inspect)(e)}.`)}return(0,o.keyValMap)(e.fields,e=>e.name,buildField)}function buildField(e){const t=getType(e.type);if(!(0,f.isOutputType)(t)){const e=(0,r.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,o.keyValMap)(e,e=>e.name,buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,f.isInputType)(t)){const e=(0,r.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=e.defaultValue!=null?(0,d.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},,,,,function(e,t,n){"use strict";var r=n(26);e.exports=function settle(e,t,n){var i=n.config.validateStatus;if(!n.status||!i||i(n.status)){e(n)}else{t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(326);var i=n(386);var o=n(105);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===r.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;while(i=n.pop()){for(const e of i.selections){if(e.kind===r.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){n.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null);const r=[e.selectionSet];let i;while(i=r.pop()){for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(n[i]!==true){n[i]=true;const e=this.getFragment(i);if(e){t.push(e);r.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,n){super(e,n);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,n,r){super(t,r);this._schema=e;this._typeInfo=n;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[];const r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>false,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}}));t=n;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(n))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.print=print;var r=n(386);var i=n(492);var o=n(710);function print(e){return(0,r.visit)(e,a)}const s=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const n=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+wrap(" = ",n)+wrap(" ",join(r," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(n,", "),")");if(a.length>s){a=o+wrap("(\n",indent(join(n,"\n")),"\n)")}return join([a,join(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>join(["...",wrap("on ",e),join(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${wrap("(",join(n,", "),")")} `+`on ${t} ${wrap("",join(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.printBlockString)(e):(0,o.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>wrap("",e,"\n")+join(["schema",join(t," "),block(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>wrap("",e,"\n")+join(["scalar",t,join(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>wrap("",e,"\n")+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>wrap("",e,"\n")+join([t+": "+n,wrap("= ",r),join(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>wrap("",e,"\n")+join(["union",t,join(n," "),wrap("= ",join(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>wrap("",e,"\n")+join(["enum",t,join(n," "),block(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>wrap("",e,"\n")+join([t,join(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>wrap("",e,"\n")+join(["input",t,join(n," "),block(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(n," "),block(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(n," "),block(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>join(["extend union",e,join(t," "),wrap("= ",join(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>join(["extend enum",e,join(t," "),block(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>join(["extend input",e,join(t," "),block(n)]," ")}};function join(e,t=""){var n;return(n=e===null||e===void 0?void 0:e.filter(e=>e).join(t))!==null&&n!==void 0?n:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some(e=>e.includes("\n")))!==null&&t!==void 0?t:false}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var r=n(234);function getOperationRootType(e,t){if(t.operation==="query"){const n=e.getQueryType();if(!n){throw new r.GraphQLError("Schema does not define the required query root type.",t)}return n}if(t.operation==="mutation"){const n=e.getMutationType();if(!n){throw new r.GraphQLError("Schema is not configured for mutations.",t)}return n}if(t.operation==="subscription"){const n=e.getSubscriptionType();if(!n){throw new r.GraphQLError("Schema is not configured for subscriptions.",t)}return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",t)}},,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let r=0;let i=0;while(r0);let c=0;do{++i;c=c*10+s-n;s=t.charCodeAt(i)}while(isDigit(s)&&c>0);if(ac){return 1}}else{if(os){return 1}++r;++i}}return e.length-t.length}const n=48;const r=57;function isDigit(e){return!isNaN(e)&&n<=e&&e<=r}},,function(e,t,n){"use strict";var r=n(35);var i=n(529);e.exports=function transformData(e,t,n){var o=this||i;r.forEach(n,function transform(n){e=n.call(o,e,t)});return e}},function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var r=n(876);var i=n(393);var o=n(868);var s=n(150);var a=n(234);var c=n(577);var u=n(75);function ValuesOfCorrectTypeRule(e){return{ListValue(t){const n=(0,u.getNullableType)(e.getParentInputType());if(!(0,u.isListType)(n)){isValidValueNode(e,t);return false}},ObjectValue(t){const n=(0,u.getNamedType)(e.getInputType());if(!(0,u.isInputObjectType)(n)){isValidValueNode(e,t);return false}const o=(0,r.keyMap)(t.fields,e=>e.name.value);for(const r of Object.values(n.getFields())){const s=o[r.name];if(!s&&(0,u.isRequiredInputField)(r)){const o=(0,i.inspect)(r.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${r.name}" of required type "${o}" was not provided.`,t))}}},ObjectField(t){const n=(0,u.getNamedType)(e.getParentInputType());const r=e.getInputType();if(!r&&(0,u.isInputObjectType)(n)){const r=(0,s.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,o.didYouMean)(r),t))}},NullValue(t){const n=e.getInputType();if((0,u.isNonNullType)(n)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,c.print)(t)}.`,t))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const n=e.getInputType();if(!n){return}const r=(0,u.getNamedType)(n);if(!(0,u.isLeafType)(r)){const r=(0,i.inspect)(n);e.reportError(new a.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,t));return}try{const o=r.parseLiteral(t,undefined);if(o===undefined){const r=(0,i.inspect)(n);e.reportError(new a.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,t))}}catch(r){const o=(0,i.inspect)(n);if(r instanceof a.GraphQLError){e.reportError(r)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,c.print)(t)}; `+r.message,t,undefined,undefined,undefined,r))}}}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var r=n(393);var i=n(234);var o=n(75);var s=n(72);var a=n(441);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const n=e.getType();const s=e.getParentType();if((0,o.isCompositeType)(n)&&(0,o.isCompositeType)(s)&&!(0,a.doTypesOverlap)(e.getSchema(),n,s)){const o=(0,r.inspect)(s);const a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,t))}},FragmentSpread(t){const n=t.name.value;const o=getFragmentType(e,n);const s=e.getParentType();if(o&&s&&!(0,a.doTypesOverlap)(e.getSchema(),o,s)){const a=(0,r.inspect)(s);const c=(0,r.inspect)(o);e.reportError(new i.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${c}".`,t))}}}}function getFragmentType(e,t){const n=e.getFragment(t);if(n){const t=(0,s.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},,,,function(e){e.exports=require("http")},,,,,,,,,function(e){e.exports=require("events")},,,,,,,,function(e){e.exports=require("path")},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var r=n(371);var i=n(234);var o=n(386);var s=n(839);var a=n(105);var c=n(236);var u=n(567);function validate(e,t,n=c.specifiedRules,l,p=new a.TypeInfo(e)){var f;const d=(f=l===null||l===void 0?void 0:l.maxErrors)!==null&&f!==void 0?f:100;t||(0,r.devAssert)(false,"Must provide document.");(0,s.assertValidSchema)(e);const m=Object.freeze({});const h=[];const g=new u.ValidationContext(e,t,p,e=>{if(h.length>=d){h.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw m}h.push(e)});const y=(0,o.visitInParallel)(n.map(e=>e(g)));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(p,y))}catch(e){if(e!==m){throw e}}return h}function validateSDL(e,t,n=c.specifiedSDLRules){const r=[];const i=new u.SDLValidationContext(e,t,e=>{r.push(e)});const s=n.map(e=>e(i));(0,o.visit)(e,(0,o.visitInParallel)(s));return r}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map(e=>e.message).join("\n\n"))}}function assertValidSDLExtension(e,t){const n=validateSDL(e,t);if(n.length!==0){throw new Error(n.map(e=>e.message).join("\n\n"))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(796);var i=n(634);var o=n(986);var s=n(113);var a=n(304);function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=(async()=>({type:"unauthenticated"}))}else{const n=a.createTokenAuth(e.auth);t.wrap("request",n.hook);this.auth=n}}else{const n=e.authStrategy(Object.assign({request:this.request},e.auth));t.wrap("request",n.hook);this.auth=n}const u=this.constructor;u.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){const t=class extends(this){constructor(...t){const n=t[0]||{};if(typeof e==="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const n=this.plugins;const r=(t=class extends(this){},t.plugins=n.concat(e.filter(e=>!n.includes(e))),t);return r}}Octokit.VERSION=c;Octokit.plugins=[];t.Octokit=Octokit},,,,,function(e,t,n){"use strict";var r=n(35);var i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var n;var o;var s;if(!e){return t}r.forEach(e.split("\n"),function parser(e){s=e.indexOf(":");n=r.trim(e.substr(0,s)).toLowerCase();o=r.trim(e.substr(s+1));if(n){if(t[n]&&i.indexOf(n)>=0){return}if(n==="set-cookie"){t[n]=(t[n]?t[n]:[]).concat([o])}else{t[n]=t[n]?t[n]+", "+o:o}}});return t}},,,function(e,t,n){var r=n(152);var i=n(183);var o=n(176);var s=Function.bind;var a=s.bind(s);function bindApi(e,t,n){var r=a(o,null).apply(null,n?[t,n]:[t]);e.api={remove:r};e.remove=r;["before","error","after","wrap"].forEach(function(r){var o=n?[t,r,n]:[t,r];e[r]=e.api[r]=a(i,null).apply(null,o)})}function HookSingular(){var e="h";var t={registry:{}};var n=r.bind(null,t,e);bindApi(n,t,e);return n}function HookCollection(){var e={registry:{}};var t=r.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var r=n(393);var i=n(234);function locatedError(e,t,n){var o;const s=e instanceof Error?e:new Error("Unexpected error value: "+(0,r.inspect)(e));if(isLocatedGraphQLError(s)){return s}return new i.GraphQLError(s.message,(o=s.nodes)!==null&&o!==void 0?o:t,s.source,s.positions,n,s)}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var r=n(393);var i=n(234);var o=n(326);var s=n(75);var a=n(72);var c=n(441);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:s,defaultValue:c}of o){const o=n.name.value;const u=t[o];if(u&&s){const t=e.getSchema();const l=(0,a.typeFromAST)(t,u.type);if(l&&!allowedVariableUsage(t,l,u.defaultValue,s,c)){const t=(0,r.inspect)(l);const a=(0,r.inspect)(s);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,[u,n]))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,n,r,i){if((0,s.isNonNullType)(r)&&!(0,s.isNonNullType)(t)){const s=n!=null&&n.kind!==o.Kind.NULL;const a=i!==undefined;if(!s&&!a){return false}const u=r.ofType;return(0,c.isTypeSubTypeOf)(e,t,u)}return(0,c.isTypeSubTypeOf)(e,t,r)}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var r=n(393);var i=n(932);var o=n(857);var s=n(326);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map(e=>valueFromASTUntyped(e,t));case s.Kind.OBJECT:return(0,o.keyValMap)(e.fields,e=>e.name.value,e=>valueFromASTUntyped(e.value,t));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}false||(0,i.invariant)(false,"Unexpected value node: "+(0,r.inspect)(e))}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var r=n(234);function LoneSchemaDefinitionRule(e){var t,n,i;const o=e.getSchema();const s=(t=(n=(i=o===null||o===void 0?void 0:o.astNode)!==null&&i!==void 0?i:o===null||o===void 0?void 0:o.getQueryType())!==null&&n!==void 0?n:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(s){e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",t));return}if(a>0){e.reportError(new r.GraphQLError("Must provide only one schema definition.",t))}++a}}}},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},,,function(e){"use strict";function formatError(e,t){var n="",r=e.reason||"(unknown reason)";if(!e.mark)return r;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return r+" "+n}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var r=n(371);var i=n(234);var o=n(429);function assertName(e){e!=null||(0,r.devAssert)(false,"Must provide name.");typeof e==="string"||(0,r.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new i.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t0)){throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`')}if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,i)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}return String(e)}if(typeof e==="bigint"){return String(e)+"n"}var c=typeof i.depth==="undefined"?5:i.depth;if(typeof n==="undefined"){n=0}if(n>=c&&c>0&&typeof e==="object"){return isArray(e)?"[Array]":"[Object]"}var p=getIndent(i,n);if(typeof r==="undefined"){r=[]}else if(indexOf(r,e)>=0){return"[Circular]"}function inspect(e,t,o){if(t){r=r.slice();r.push(t)}if(o){var s={depth:i.depth};if(has(i,"quoteStyle")){s.quoteStyle=i.quoteStyle}return inspect_(e,s,n+1,r)}return inspect_(e,i,n+1,r)}if(typeof e==="function"){var f=nameOf(e);var d=arrObjKeys(e,inspect);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(d.length>0?" { "+d.join(", ")+" }":"")}if(isSymbol(e)){var m=_?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(e);return typeof e==="object"&&!_?markBoxed(m):m}if(isElement(e)){var h="<"+String(e.nodeName).toLowerCase();var g=e.attributes||[];for(var v=0;v";return h}if(isArray(e)){if(e.length===0){return"[]"}var b=arrObjKeys(e,inspect);if(p&&!singleLineValues(b)){return"["+indentedJoin(b,p)+"]"}return"[ "+b.join(", ")+" ]"}if(isError(e)){var T=arrObjKeys(e,inspect);if(T.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+T.join(", ")+" }"}if(typeof e==="object"&&a){if(A&&typeof e[A]==="function"){return e[A]()}else if(typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var O=[];s.call(e,function(t,n){O.push(inspect(n,e,true)+" => "+inspect(t,e))});return collectionOf("Map",o.call(e),O,p)}if(isSet(e)){var S=[];l.call(e,function(t){S.push(inspect(t,e))});return collectionOf("Set",u.call(e),S,p)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(inspect(Number(e)))}if(isBigInt(e)){return markBoxed(inspect(E.call(e)))}if(isBoolean(e)){return markBoxed(y.call(e))}if(isString(e)){return markBoxed(inspect(String(e)))}if(!isDate(e)&&!isRegExp(e)){var D=arrObjKeys(e,inspect);var j=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object;var R=e instanceof Object?"":"null prototype";var P=!j&&I&&Object(e)===e&&I in e?toStr(e).slice(8,-1):R?"Object":"";var L=j||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var F=L+(P||R?"["+[].concat(P||[],R||[]).join(": ")+"] ":"");if(D.length===0){return F+"{}"}if(p){return F+"{"+indentedJoin(D,p)+"}"}return F+"{ "+D.join(", ")+" }"}return String(e)};function wrapQuotes(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function quote(e){return String(e).replace(/"/g,""")}function isArray(e){return toStr(e)==="[object Array]"&&(!I||!(typeof e==="object"&&I in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!I||!(typeof e==="object"&&I in e))}function isRegExp(e){return toStr(e)==="[object RegExp]"&&(!I||!(typeof e==="object"&&I in e))}function isError(e){return toStr(e)==="[object Error]"&&(!I||!(typeof e==="object"&&I in e))}function isString(e){return toStr(e)==="[object String]"&&(!I||!(typeof e==="object"&&I in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!I||!(typeof e==="object"&&I in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!I||!(typeof e==="object"&&I in e))}function isSymbol(e){if(_){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!w){return false}try{w.call(e);return true}catch(e){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!E){return false}try{E.call(e);return true}catch(e){}return false}var j=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return j.call(e,t)}function toStr(e){return v.call(e)}function nameOf(e){if(e.name){return e.name}var t=T.call(b.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength;var r="... "+n+" more character"+(n>1?"s":"");return inspectString(e.slice(0,t.maxStringLength),t)+r}var i=e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,lowbyte);return wrapQuotes(i,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(n){return"\\"+n}return"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,n,r){var i=r?indentedJoin(n,r):n.join(", ");return e+" ("+t+") {"+i+"}"}function singleLineValues(e){for(var t=0;t=0){return false}}return true}function getIndent(e,t){var n;if(e.indent==="\t"){n="\t"}else if(typeof e.indent==="number"&&e.indent>0){n=Array(e.indent+1).join(" ")}else{return null}return{base:n,prev:Array(t+1).join(n)}}function indentedJoin(e,t){if(e.length===0){return""}var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function arrObjKeys(e,t){var n=isArray(e);var r=[];if(n){r.length=e.length;for(var i=0;i-1){P.maxBodyLength=e.maxBodyLength}var B=M.request(P,function handleResponse(t){if(B.aborted)return;var n=t;var o=t.req||B;if(t.statusCode!==204&&o.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(f.createUnzip());delete t.headers["content-encoding"];break}}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:o};if(e.responseType==="stream"){s.data=n;i(y,v,s)}else{var a=[];var c=0;n.on("data",function handleStreamData(t){a.push(t);c+=t.length;if(e.maxContentLength>-1&&c>e.maxContentLength){n.destroy();v(m("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o))}});n.on("error",function handleStreamError(t){if(B.aborted)return;v(h(t,e,null,o))});n.on("end",function handleStreamEnd(){var t=Buffer.concat(a);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=r.stripBOM(t)}}s.data=t;i(y,v,s)})}});B.on("error",function handleRequestError(t){if(B.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;v(h(t,e,null,B))});if(e.timeout){var q=parseInt(e.timeout,10);if(isNaN(q)){v(m("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",B));return}B.setTimeout(q,function handleRequestTimeout(){B.abort();v(m("timeout of "+q+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",B))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(B.aborted)return;B.abort();v(e)})}if(r.isStream(b)){b.on("error",function handleStreamError(t){v(h(t,e,null,B))}).pipe(B)}else{B.end(b)}})}},,,,,,function(e,t,n){"use strict";var r=n(755);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var r=n(932);const i=/\r\n|[\n\r]/g;function getLocation(e,t){let n=0;let o=1;for(const s of e.body.matchAll(i)){typeof s.index==="number"||(0,r.invariant)(false);if(s.index>=t){break}n=s.index+s[0].length;o+=1}return{line:o,column:t+1-n}}},,,,,function(e,t,n){"use strict";var r=n(35);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var n;function resolveURL(n){var r=n;if(e){t.setAttribute("href",r);r=t.href}t.setAttribute("href",r);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}n=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=r.isString(e)?resolveURL(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,n){return{prev:e,key:t,typename:n}}function pathToArray(e){const t=[];let n=e;while(n){t.push(n.key);n=n.prev}return t.reverse()}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var r=n(393);var i=n(932);var o=n(326);var s=n(577);var a=n(492);var c=n(754);var u=n(810);var l=n(134);var p=n(75);var f=n(301);function printSchema(e){return printFilteredSchema(e,e=>!(0,l.isSpecifiedDirective)(e),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,l.isSpecifiedDirective,c.isIntrospectionType)}function isDefinedType(e){return!(0,u.isSpecifiedScalarType)(e)&&!(0,c.isIntrospectionType)(e)}function printFilteredSchema(e,t,n){const r=e.getDirectives().filter(t);const i=Object.values(e.getTypeMap()).filter(n);return[printSchemaDefinition(e),...r.map(e=>printDirective(e)),...i.map(e=>printType(e))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const n=e.getQueryType();if(n){t.push(` query: ${n.name}`)}const r=e.getMutationType();if(r){t.push(` mutation: ${r.name}`)}const i=e.getSubscriptionType();if(i){t.push(` subscription: ${i.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const n=e.getMutationType();if(n&&n.name!=="Mutation"){return false}const r=e.getSubscriptionType();if(r&&r.name!=="Subscription"){return false}return true}function printType(e){if((0,p.isScalarType)(e)){return printScalar(e)}if((0,p.isObjectType)(e)){return printObject(e)}if((0,p.isInterfaceType)(e)){return printInterface(e)}if((0,p.isUnionType)(e)){return printUnion(e)}if((0,p.isEnumType)(e)){return printEnum(e)}if((0,p.isInputObjectType)(e)){return printInputObject(e)}false||(0,i.invariant)(false,"Unexpected type: "+(0,r.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const n=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+n}function printEnum(e){const t=e.getValues().map((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e));return printDescription(e)+`input ${e.name}`+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every(e=>!e.description)){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map((e,n)=>printDescription(e," "+t,!n)+" "+t+printInputValue(e)).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,f.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);if(t){n+=` = ${(0,s.print)(t)}`}return n+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==l.DEFAULT_DEPRECATION_REASON){const t=(0,s.print)({kind:o.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,s.print)({kind:o.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",n=true){const{description:r}=e;if(r==null){return""}const i=r.length>70;const o=(0,a.printBlockString)(r,i);const s=t&&!n?"\n"+t:t;return s+o.replace(/\n/g,"\n"+t)+"\n"}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var r=n(234);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null);const o=e.getRecursiveVariableUsages(n);for(const{node:e}of o){i[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(i[t]!==true){e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,o))}}}},VariableDefinition(e){t.push(e)}}}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var r=n(393);var i=n(932);var o=n(868);var s=n(947);var a=n(150);var c=n(910);var u=n(691);var l=n(333);var p=n(234);var f=n(75);function coerceInputValue(e,t,n=defaultOnError){return coerceInputValueImpl(e,t,n,undefined)}function defaultOnError(e,t,n){let i="Invalid value "+(0,r.inspect)(t);if(e.length>0){i+=` at "value${(0,c.printPathArray)(e)}"`}n.message=i+": "+n.message;throw n}function coerceInputValueImpl(e,t,n,c){if((0,f.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,n,c)}n((0,u.pathToArray)(c),e,new p.GraphQLError(`Expected non-nullable type "${(0,r.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,f.isListType)(t)){const r=t.ofType;if((0,l.isIterableObject)(e)){return Array.from(e,(e,t)=>{const i=(0,u.addPath)(c,t,undefined);return coerceInputValueImpl(e,r,n,i)})}return[coerceInputValueImpl(e,r,n,c)]}if((0,f.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e)){n((0,u.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const i={};const l=t.getFields();for(const o of Object.values(l)){const s=e[o.name];if(s===undefined){if(o.defaultValue!==undefined){i[o.name]=o.defaultValue}else if((0,f.isNonNullType)(o.type)){const t=(0,r.inspect)(o.type);n((0,u.pathToArray)(c),e,new p.GraphQLError(`Field "${o.name}" of required type "${t}" was not provided.`))}continue}i[o.name]=coerceInputValueImpl(s,o.type,n,(0,u.addPath)(c,o.name,t.name))}for(const r of Object.keys(e)){if(!l[r]){const i=(0,a.suggestionList)(r,Object.keys(t.getFields()));n((0,u.pathToArray)(c),e,new p.GraphQLError(`Field "${r}" is not defined by type "${t.name}".`+(0,o.didYouMean)(i)))}}return i}if((0,f.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){if(r instanceof p.GraphQLError){n((0,u.pathToArray)(c),e,r)}else{n((0,u.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}". `+r.message,undefined,undefined,undefined,undefined,r))}return}if(r===undefined){n((0,u.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}".`))}return r}false||(0,i.invariant)(false,"Unexpected input type: "+(0,r.inspect)(t))}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var r=n(234);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;if(i){if(t[i.value]){e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,[t[i.value],i]))}else{t[i.value]=i}}return false},FragmentDefinition:()=>false}}},,,function(e,t,n){"use strict";var r=n(843);var i=n(755);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,n=0,r=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(n,escapedReplacer)}"`}const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return r[e.charCodeAt(0)]}const r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs",{mediaType:{previews:["antiope"]}}],createSuite:["POST /repos/{owner}/{repo}/check-suites",{mediaType:{previews:["antiope"]}}],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}",{mediaType:{previews:["antiope"]}}],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",{mediaType:{previews:["antiope"]}}],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs",{mediaType:{previews:["antiope"]}}],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",{mediaType:{previews:["antiope"]}}],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites",{mediaType:{previews:["antiope"]}}],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest",{mediaType:{previews:["antiope"]}}],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences",{mediaType:{previews:["antiope"]}}],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}]},codeScanning:{getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/{archive_format}/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile",{mediaType:{previews:["black-panther"]}}],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const r="4.1.4";function endpointsToMethods(e,t){const n={};for(const[r,i]of Object.entries(t)){for(const[t,o]of Object.entries(i)){const[i,s,a]=o;const[c,u]=i.split(/ /);const l=Object.assign({method:c,url:u},s);if(!n[r]){n[r]={}}const p=n[r];if(a){p[t]=decorate(e,r,t,l,a);continue}p[t]=e.request.defaults(l)}}return n}function decorate(e,t,n,r,i){const o=e.request.defaults(r);function withDecorations(...r){let s=o.endpoint.merge(...r);if(i.mapToData){s=Object.assign({},s,{data:s[i.mapToData],[i.mapToData]:undefined});return o(s)}if(i.renamed){const[r,o]=i.renamed;e.log.warn(`octokit.${t}.${n}() has been renamed to octokit.${r}.${o}()`)}if(i.deprecated){e.log.warn(i.deprecated)}if(i.renamedParameters){const s=o.endpoint.merge(...r);for(const[r,o]of Object.entries(i.renamedParameters)){if(r in s){e.log.warn(`"${r}" parameter is deprecated for "octokit.${t}.${n}()". Use "${o}" instead`);if(!(o in s)){s[o]=s[r]}delete s[r]}}return o(s)}return o(...r)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){return endpointsToMethods(e,n)}restEndpointMethods.VERSION=r;t.restEndpointMethods=restEndpointMethods},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var r=n(393);var i=n(932);var o=n(234);var s=n(326);var a=n(156);var c=n(380);var u=n(134);function KnownDirectivesRule(e){const t=Object.create(null);const n=e.getSchema();const r=n?n.getDirectives():u.specifiedDirectives;for(const e of r){t[e.name]=e.locations}const i=e.getDocument().definitions;for(const e of i){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map(e=>e.value)}}return{Directive(n,r,i,s,a){const c=n.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,n));return}const l=getDirectiveLocationForASTPath(a);if(l&&!u.includes(l)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${l}.`,n))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,i.invariant)(false);switch(t.kind){case s.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case s.Kind.FIELD:return c.DirectiveLocation.FIELD;case s.Kind.FRAGMENT_SPREAD:return c.DirectiveLocation.FRAGMENT_SPREAD;case s.Kind.INLINE_FRAGMENT:return c.DirectiveLocation.INLINE_FRAGMENT;case s.Kind.FRAGMENT_DEFINITION:return c.DirectiveLocation.FRAGMENT_DEFINITION;case s.Kind.VARIABLE_DEFINITION:return c.DirectiveLocation.VARIABLE_DEFINITION;case s.Kind.SCHEMA_DEFINITION:case s.Kind.SCHEMA_EXTENSION:return c.DirectiveLocation.SCHEMA;case s.Kind.SCALAR_TYPE_DEFINITION:case s.Kind.SCALAR_TYPE_EXTENSION:return c.DirectiveLocation.SCALAR;case s.Kind.OBJECT_TYPE_DEFINITION:case s.Kind.OBJECT_TYPE_EXTENSION:return c.DirectiveLocation.OBJECT;case s.Kind.FIELD_DEFINITION:return c.DirectiveLocation.FIELD_DEFINITION;case s.Kind.INTERFACE_TYPE_DEFINITION:case s.Kind.INTERFACE_TYPE_EXTENSION:return c.DirectiveLocation.INTERFACE;case s.Kind.UNION_TYPE_DEFINITION:case s.Kind.UNION_TYPE_EXTENSION:return c.DirectiveLocation.UNION;case s.Kind.ENUM_TYPE_DEFINITION:case s.Kind.ENUM_TYPE_EXTENSION:return c.DirectiveLocation.ENUM;case s.Kind.ENUM_VALUE_DEFINITION:return c.DirectiveLocation.ENUM_VALUE;case s.Kind.INPUT_OBJECT_TYPE_DEFINITION:case s.Kind.INPUT_OBJECT_TYPE_EXTENSION:return c.DirectiveLocation.INPUT_OBJECT;case s.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,i.invariant)(false);return t.kind===s.Kind.INPUT_OBJECT_TYPE_DEFINITION?c.DirectiveLocation.INPUT_FIELD_DEFINITION:c.DirectiveLocation.ARGUMENT_DEFINITION}}}function getDirectiveLocationForOperation(e){switch(e){case a.OperationTypeNode.QUERY:return c.DirectiveLocation.QUERY;case a.OperationTypeNode.MUTATION:return c.DirectiveLocation.MUTATION;case a.OperationTypeNode.SUBSCRIPTION:return c.DirectiveLocation.SUBSCRIPTION}false||(0,i.invariant)(false,"Unexpected operation: "+(0,r.inspect)(e))}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var r=_interopDefault(n(413));var i=_interopDefault(n(605));var o=_interopDefault(n(835));var s=_interopDefault(n(211));var a=_interopDefault(n(903));const c=r.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const n=[];let r=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=n.size;let o=i===undefined?0:i;var s=n.timeout;let a=s===undefined?0:s;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof r) ;else{e=Buffer.from(String(e))}this[f]={body:e,disturbed:false,error:null};this.size=o;this.timeout=a;if(e instanceof r){e.on("error",function(e){const n=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[f].error=n})}}Body.prototype={get body(){return this[f].body},get bodyUsed(){return this[f].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const n=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,n)}}};function consumeBody(){var e=this;if(this[f].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[f].disturbed=true;if(this[f].error){return Body.Promise.reject(this[f].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof r)){return Body.Promise.resolve(Buffer.alloc(0))}let n=[];let i=0;let o=false;return new Body.Promise(function(r,s){let a;if(e.timeout){a=setTimeout(function(){o=true;s(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){o=true;s(t)}else{s(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(o||t===null){return}if(e.size&&i+t.length>e.size){o=true;s(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;n.push(t)});t.on("end",function(){if(o){return}clearTimeout(a);try{r(Buffer.concat(n,i))}catch(t){s(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const n=t.get("content-type");let r="utf-8";let i,o;if(n){i=/charset=([^;]*)/i.exec(n)}o=e.slice(0,1024).toString();if(!i&&o){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[g]=Object.create(null);if(e instanceof Headers){const t=e.raw();const n=Object.keys(t);for(const e of n){for(const n of t[e]){this.append(e,n)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const n=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}n.push(Array.from(t))}for(const e of n){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const n=e[t];this.append(t,n)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[g],e);if(t===undefined){return null}return this[g][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let n=getHeaders(this);let r=0;while(r1&&arguments[1]!==undefined?arguments[1]:"key+value";const n=Object.keys(e[g]).sort();return n.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[g][t].join(", ")}:function(t){return[t.toLowerCase(),e[g][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const n=Object.create(v);n[y]={target:e,kind:t,index:0};return n}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,n=e.kind,r=e.index;const i=getHeaders(t,n);const o=i.length;if(r>=o){return{value:undefined,done:true}}this[y].index=r+1;return{value:i[r],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[g]);const n=find(e[g],"Host");if(n!==undefined){t[n]=t[n][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const n of Object.keys(e)){if(m.test(n)){continue}if(Array.isArray(e[n])){for(const r of e[n]){if(h.test(r)){continue}if(t[g][n]===undefined){t[g][n]=[r]}else{t[g][n].push(r)}}}else if(!h.test(e[n])){t[g][n]=[e[n]]}}return t}const b=Symbol("Response internals");const T=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const n=t.status||200;const r=new Headers(t.headers);if(e!=null&&!r.has("Content-Type")){const t=extractContentType(e);if(t){r.append("Content-Type",t)}}this[b]={url:t.url,status:n,statusText:t.statusText||T[n],headers:r,counter:t.counter}}get url(){return this[b].url||""}get status(){return this[b].status}get ok(){return this[b].status>=200&&this[b].status<300}get redirected(){return this[b].counter>0}get statusText(){return this[b].statusText}get headers(){return this[b].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const E=Symbol("Request internals");const O=o.parse;const w=o.format;const _="destroy"in r.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[E]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let n;if(!isRequest(e)){if(e&&e.href){n=O(e.href)}else{n=O(`${e}`)}e={}}else{n=O(e.url)}let r=t.method||e.method||"GET";r=r.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(r==="GET"||r==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(i!=null&&!o.has("Content-Type")){const e=extractContentType(i);if(e){o.append("Content-Type",e)}}let s=isRequest(e)?e.signal:null;if("signal"in t)s=t.signal;if(s!=null&&!isAbortSignal(s)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[E]={method:r,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:n,signal:s};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[E].method}get url(){return w(this[E].parsedURL)}get headers(){return this[E].headers}get redirect(){return this[E].redirect}get signal(){return this[E].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[E].parsedURL;const n=new Headers(e[E].headers);if(!n.has("Accept")){n.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof r.Readable&&!_){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){n.set("Content-Length",i)}if(!n.has("User-Agent")){n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!n.has("Accept-Encoding")){n.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!n.has("Connection")&&!o){n.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(n),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const S=r.PassThrough;const N=o.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(n,o){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?s:i).request;const p=c.signal;let f=null;const d=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof r.Readable){c.body.destroy(e)}if(!f||!f.body)return;f.body.emit("error",e)};if(p&&p.aborted){d();return}const m=function abortAndFinalize(){d();finalize()};const h=l(u);let g;if(p){p.addEventListener("abort",m)}function finalize(){h.abort();if(p)p.removeEventListener("abort",m);clearTimeout(g)}if(c.timeout){h.once("socket",function(e){g=setTimeout(function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()},c.timeout)})}h.on("error",function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()});h.on("response",function(e){clearTimeout(g);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const r=t.get("Location");const i=r===null?null:N(c.url,r);switch(c.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){o(e)}}break;case"follow":if(i===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const r={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){r.method="GET";r.body=undefined;r.headers.delete("content-length")}n(fetch(new Request(i,r)));finalize();return}}e.once("end",function(){if(p)p.removeEventListener("abort",m)});let r=e.pipe(new S);const i={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const s=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||s===null||e.statusCode===204||e.statusCode===304){f=new Response(r,i);n(f);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(s=="gzip"||s=="x-gzip"){r=r.pipe(a.createGunzip(u));f=new Response(r,i);n(f);return}if(s=="deflate"||s=="x-deflate"){const t=e.pipe(new S);t.once("data",function(e){if((e[0]&15)===8){r=r.pipe(a.createInflate())}else{r=r.pipe(a.createInflateRaw())}f=new Response(r,i);n(f)});return}if(s=="br"&&typeof a.createBrotliDecompress==="function"){r=r.pipe(a.createBrotliDecompress());f=new Response(r,i);n(f);return}f=new Response(r,i);n(f)});writeToStream(h,c)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},,,function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var n=new Array(arguments.length);for(var r=0;r";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(n||(t.TokenKind=n={}))},,function(e){"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return s.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return i.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return s.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return s.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return i.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return s.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return i.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return i.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return i.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return i.GraphQLObjectType}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return i.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return r.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return s.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return i.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return i.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return i.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return i.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return i.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return i.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return i.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return i.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return i.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return i.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return i.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return i.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return i.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return i.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return i.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return r.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return i.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return i.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return i.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return i.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return i.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return i.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return i.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return i.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return i.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return i.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return i.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return i.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return i.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return i.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return i.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return i.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return i.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return i.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return i.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return i.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return i.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return r.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return s.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return i.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return i.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return i.isWrappingType}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return s.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var r=n(742);var i=n(75);var o=n(134);var s=n(810);var a=n(754);var c=n(839);var u=n(655)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var r=n(876);var i=n(393);var o=n(910);var s=n(234);var a=n(326);var c=n(577);var u=n(75);var l=n(72);var p=n(820);var f=n(702);function getVariableValues(e,t,n,r){const i=[];const o=r===null||r===void 0?void 0:r.maxErrors;try{const r=coerceVariableValues(e,t,n,e=>{if(o!=null&&i.length>=o){throw new s.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}i.push(e)});if(i.length===0){return{coerced:r}}}catch(e){i.push(e)}return{errors:i}}function coerceVariableValues(e,t,n,r){const a={};for(const d of t){const t=d.variable.name.value;const m=(0,l.typeFromAST)(e,d.type);if(!(0,u.isInputType)(m)){const e=(0,c.print)(d.type);r(new s.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,d.type));continue}if(!hasOwnProperty(n,t)){if(d.defaultValue){a[t]=(0,p.valueFromAST)(d.defaultValue,m)}else if((0,u.isNonNullType)(m)){const e=(0,i.inspect)(m);r(new s.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,d))}continue}const h=n[t];if(h===null&&(0,u.isNonNullType)(m)){const e=(0,i.inspect)(m);r(new s.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,d));continue}a[t]=(0,f.coerceInputValue)(h,m,(e,n,a)=>{let c=`Variable "$${t}" got invalid value `+(0,i.inspect)(n);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}r(new s.GraphQLError(c+"; "+a.message,d,undefined,undefined,undefined,a.originalError))})}return a}function getArgumentValues(e,t,n){var o;const l={};const f=(o=t.arguments)!==null&&o!==void 0?o:[];const d=(0,r.keyMap)(f,e=>e.name.value);for(const r of e.args){const e=r.name;const o=r.type;const f=d[e];if(!f){if(r.defaultValue!==undefined){l[e]=r.defaultValue}else if((0,u.isNonNullType)(o)){throw new s.GraphQLError(`Argument "${e}" of required type "${(0,i.inspect)(o)}" `+"was not provided.",t)}continue}const m=f.value;let h=m.kind===a.Kind.NULL;if(m.kind===a.Kind.VARIABLE){const t=m.name.value;if(n==null||!hasOwnProperty(n,t)){if(r.defaultValue!==undefined){l[e]=r.defaultValue}else if((0,u.isNonNullType)(o)){throw new s.GraphQLError(`Argument "${e}" of required type "${(0,i.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,m)}continue}h=n[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new s.GraphQLError(`Argument "${e}" of non-null type "${(0,i.inspect)(o)}" `+"must not be null.",m)}const g=(0,p.valueFromAST)(m,o,n);if(g===undefined){throw new s.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(m)}.`,m)}l[e]=g}return l}function getDirectiveValues(e,t,n){var r;const i=(r=t.directives)===null||r===void 0?void 0:r.find(t=>t.name.value===e.name);if(i){return getArgumentValues(e,i,n)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var r=n(393);var i=n(473);var o=n(371);var s=n(174);var a=n(947);var c=n(754);var u=n(134);var l=n(75);function isSchema(e){return(0,s.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,n;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,a.isObjectLike)(e)||(0,o.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,o.devAssert)(false,`"types" must be Array if provided but got: ${(0,r.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,o.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,r.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,i.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(n=e.directives)!==null&&n!==void 0?n:u.specifiedDirectives;const s=new Set(e.types);if(e.types!=null){for(const t of e.types){s.delete(t);collectReferencedTypes(t,s)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,s)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,s)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,s)}for(const e of this._directives){if((0,u.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,s)}}}collectReferencedTypes(c.__Schema,s);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of s){if(e==null){continue}const t=e.name;t||(0,o.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,l.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,l.isInterfaceType)(t)){let n=this._implementationsMap[t.name];if(n===undefined){n=this._implementationsMap[t.name]={objects:[],interfaces:[]}}n.interfaces.push(e)}}}else if((0,l.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,l.isInterfaceType)(t)){let n=this._implementationsMap[t.name];if(n===undefined){n=this._implementationsMap[t.name]={objects:[],interfaces:[]}}n.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case"query":return this.getQueryType();case"mutation":return this.getMutationType();case"subscription":return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,l.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(n===undefined){n=Object.create(null);if((0,l.isUnionType)(e)){for(const t of e.getTypes()){n[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){n[e.name]=true}for(const e of t.interfaces){n[e.name]=true}}this._subTypeMap[e.name]=n}return n[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const n=(0,l.getNamedType)(e);if(!t.has(n)){t.add(n);if((0,l.isUnionType)(n)){for(const e of n.getTypes()){collectReferencedTypes(e,t)}}else if((0,l.isObjectType)(n)||(0,l.isInterfaceType)(n)){for(const e of n.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(n.getFields())){collectReferencedTypes(e.type,t);for(const n of e.args){collectReferencedTypes(n.type,t)}}}else if((0,l.isInputObjectType)(n)){for(const e of Object.values(n.getFields())){collectReferencedTypes(e.type,t)}}}return t}},,,,,function(e){e.exports=require("fs")},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var r=n(326);function getOperationAST(e,t){let n=null;for(const o of e.definitions){if(o.kind===r.Kind.OPERATION_DEFINITION){var i;if(t==null){if(n){return null}n=o}else if(((i=o.name)===null||i===void 0?void 0:i.value)===t){return o}}}return n}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var r=n(393);var i=n(932);var o=n(577);var s=n(380);var a=n(301);var c=n(810);var u=n(75);const l=new u.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:c.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(d))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new u.GraphQLNonNull(d),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:d,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:d,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(p))),resolve:e=>e.getDirectives()}})});t.__Schema=l;const p=new u.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(f))),resolve:e=>e.locations},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(h))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(e=>e.deprecationReason==null)}}})});t.__Directive=p;const f=new u.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=f;const d=new u.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new u.GraphQLNonNull(v),resolve(e){if((0,u.isScalarType)(e)){return y.SCALAR}if((0,u.isObjectType)(e)){return y.OBJECT}if((0,u.isInterfaceType)(e)){return y.INTERFACE}if((0,u.isUnionType)(e)){return y.UNION}if((0,u.isEnumType)(e)){return y.ENUM}if((0,u.isInputObjectType)(e)){return y.INPUT_OBJECT}if((0,u.isListType)(e)){return y.LIST}if((0,u.isNonNullType)(e)){return y.NON_NULL}false||(0,i.invariant)(false,`Unexpected type: "${(0,r.inspect)(e)}".`)}},name:{type:c.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:c.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:c.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new u.GraphQLList(new u.GraphQLNonNull(m)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,u.isObjectType)(e)||(0,u.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>e.deprecationReason==null)}}},interfaces:{type:new u.GraphQLList(new u.GraphQLNonNull(d)),resolve(e){if((0,u.isObjectType)(e)||(0,u.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new u.GraphQLList(new u.GraphQLNonNull(d)),resolve(e,t,n,{schema:r}){if((0,u.isAbstractType)(e)){return r.getPossibleTypes(e)}}},enumValues:{type:new u.GraphQLList(new u.GraphQLNonNull(g)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,u.isEnumType)(e)){const n=e.getValues();return t?n:n.filter(e=>e.deprecationReason==null)}}},inputFields:{type:new u.GraphQLList(new u.GraphQLNonNull(h)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,u.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>e.deprecationReason==null)}}},ofType:{type:d,resolve:e=>"ofType"in e?e.ofType:undefined}})});t.__Type=d;const m=new u.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(h))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(e=>e.deprecationReason==null)}},type:{type:new u.GraphQLNonNull(d),resolve:e=>e.type},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=m;const h=new u.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},type:{type:new u.GraphQLNonNull(d),resolve:e=>e.type},defaultValue:{type:c.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e;const r=(0,a.astFromValue)(n,t);return r?(0,o.print)(r):null}},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const g=new u.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=g;let y;t.TypeKind=y;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(y||(t.TypeKind=y={}));const v=new u.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=v;const b={name:"__schema",type:new u.GraphQLNonNull(l),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=b;const T={name:"__type",type:d,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new u.GraphQLNonNull(c.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=T;const E={name:"__typename",type:new u.GraphQLNonNull(c.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=E;const O=Object.freeze([l,p,f,d,m,h,g,v]);t.introspectionTypes=O;function isIntrospectionType(e){return O.some(({name:t})=>e.name===t)}},function(e,t,n){"use strict";var r=n(652);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})})}return t}function Type(e,t){t=t||{};Object.keys(t).forEach(function(t){if(i.indexOf(t)===-1){throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}});this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r);n.d(r,"considerUsage",function(){return E});n.d(r,"dangerousBreaking",function(){return y});n.d(r,"ignoreDescriptionChanges",function(){return T});n.d(r,"safeUnreachable",function(){return O});n.d(r,"suppressRemovalOfDeprecatedField",function(){return v});var i=n(470);var o=n(422);var s=n(228);var a=n.n(s);var c=n(414);var u=n.n(c);var l=n(53);var p=n.n(l);var f=n(232);function keyMap(e,t){return e.reduce((e,n)=>{e[t(n)]=n;return e},Object.create(null))}function isEqual(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return false;for(var n=0;n!t.some(t=>isEqual(t,e)))}function compareLists(e,t,n){const r=keyMap(e,({name:e})=>e);const i=keyMap(t,({name:e})=>e);const o=[];const s=[];const a=[];for(const t of e){const e=i[t.name];if(e===undefined){s.push(t)}else{a.push({newVersion:e,oldVersion:t})}}for(const e of t){if(r[e.name]===undefined){o.push(e)}}if(n){if(n.onAdded){o.forEach(n.onAdded)}if(n.onRemoved){s.forEach(n.onRemoved)}if(n.onMutual){a.forEach(n.onMutual)}}return{added:o,removed:s,mutual:a}}function isDeprecated(e){var t,n;if("isDeprecated"in e){return e["isDeprecated"]}if(e.deprecationReason!=null){return true}if((n=(t=e.astNode)===null||t===void 0?void 0:t.directives)===null||n===void 0?void 0:n.some(e=>e.name.value==="deprecated")){return true}return false}function safeChangeForField(e,t){if(!Object(f.isWrappingType)(e)&&!Object(f.isWrappingType)(t)){return e.toString()===t.toString()}if(Object(f.isNonNullType)(t)){const n=Object(f.isNonNullType)(e)?e.ofType:e;return safeChangeForField(n,t.ofType)}if(Object(f.isListType)(e)){return Object(f.isListType)(t)&&safeChangeForField(e.ofType,t.ofType)||Object(f.isNonNullType)(t)&&safeChangeForField(e,t.ofType)}return false}function safeChangeForInputValue(e,t){if(!Object(f.isWrappingType)(e)&&!Object(f.isWrappingType)(t)){return e.toString()===t.toString()}if(Object(f.isListType)(e)&&Object(f.isListType)(t)){return safeChangeForInputValue(e.ofType,t.ofType)}if(Object(f.isNonNullType)(e)){const n=Object(f.isNonNullType)(t)?t.ofType:t;return safeChangeForInputValue(e.ofType,n)}return false}function getKind(e){const t=e.astNode;return t&&t.kind||""}function getTypePrefix(e){const t=getKind(e);const n={[f.Kind.SCALAR_TYPE_DEFINITION]:"scalar",[f.Kind.OBJECT_TYPE_DEFINITION]:"type",[f.Kind.INTERFACE_TYPE_DEFINITION]:"interface",[f.Kind.UNION_TYPE_DEFINITION]:"union",[f.Kind.ENUM_TYPE_DEFINITION]:"enum",[f.Kind.INPUT_OBJECT_TYPE_DEFINITION]:"input"};return n[t.toString()]}function isPrimitive(e){return["String","Int","Float","Boolean","ID"].indexOf(typeof e==="string"?e:e.name)!==-1}function isForIntrospection(e){return["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive","__DirectiveLocation"].indexOf(typeof e==="string"?e:e.name)!==-1}function findDeprecatedUsages(e,t){const n=[];const r=new f.TypeInfo(e);Object(f.visit)(t,Object(f.visitWithTypeInfo)(r,{Argument(e){const t=r.getArgument();if(t){const i=t.deprecationReason;if(i){const o=r.getFieldDef();if(o){n.push(new f.GraphQLError(`The argument '${t===null||t===void 0?void 0:t.name}' of '${o.name}' is deprecated. ${i}`,[e]))}}}},Field(e){const t=r.getFieldDef();if(t&&isDeprecated(t)){const i=r.getParentType();if(i){const r=t.deprecationReason;n.push(new f.GraphQLError(`The field '${i.name}.${t.name}' is deprecated.${r?" "+r:""}`,[e]))}}},EnumValue(e){const t=r.getEnumValue();if(t&&isDeprecated(t)){const i=Object(f.getNamedType)(r.getInputType());if(i){const r=t.deprecationReason;n.push(new f.GraphQLError(`The enum value '${i.name}.${t.name}' is deprecated.${r?" "+r:""}`,[e]))}}}}));return n}function removeFieldIfDirectives(e,t){if(e.directives){if(e.directives.some(e=>t.indexOf(e.name.value)!==-1)){return null}}return e}function removeDirectives(e,t){if(e.directives){return Object.assign(Object.assign({},e),{directives:e.directives.filter(e=>t.indexOf(e.name.value)===-1)})}return e}function getReachableTypes(e){const t=new Set;const n=r=>{const i=r.name;if(t.has(i)){return}t.add(i);if(Object(f.isScalarType)(r)){return}else if(Object(f.isInterfaceType)(r)||Object(f.isObjectType)(r)){if(Object(f.isInterfaceType)(r)){const{objects:t,interfaces:i}=e.getImplementations(r);for(const e of t){n(e)}for(const e of i){n(e)}}const t=r.getFields();for(const e in t){const r=t[e];n(resolveOutputType(r.type));const i=r.args;for(const e in i){const t=i[e];n(resolveInputType(t.type))}}}else if(Object(f.isUnionType)(r)){const e=r.getTypes();for(const t of e){n(t)}}else if(Object(f.isInputObjectType)(r)){const e=r.getFields();for(const t in e){const r=e[t];n(resolveInputType(r.type))}}};for(const t of[e.getQueryType(),e.getMutationType(),e.getSubscriptionType()]){if(t){n(t)}}return t}function resolveOutputType(e){if(Object(f.isListType)(e)||Object(f.isNonNullType)(e)){return resolveOutputType(e.ofType)}return e}function resolveInputType(e){if(Object(f.isListType)(e)||Object(f.isNonNullType)(e)){return resolveInputType(e.ofType)}return e}var d;(function(e){e["FieldArgumentDescriptionChanged"]="FIELD_ARGUMENT_DESCRIPTION_CHANGED";e["FieldArgumentDefaultChanged"]="FIELD_ARGUMENT_DEFAULT_CHANGED";e["FieldArgumentTypeChanged"]="FIELD_ARGUMENT_TYPE_CHANGED";e["DirectiveRemoved"]="DIRECTIVE_REMOVED";e["DirectiveAdded"]="DIRECTIVE_ADDED";e["DirectiveDescriptionChanged"]="DIRECTIVE_DESCRIPTION_CHANGED";e["DirectiveLocationAdded"]="DIRECTIVE_LOCATION_ADDED";e["DirectiveLocationRemoved"]="DIRECTIVE_LOCATION_REMOVED";e["DirectiveArgumentAdded"]="DIRECTIVE_ARGUMENT_ADDED";e["DirectiveArgumentRemoved"]="DIRECTIVE_ARGUMENT_REMOVED";e["DirectiveArgumentDescriptionChanged"]="DIRECTIVE_ARGUMENT_DESCRIPTION_CHANGED";e["DirectiveArgumentDefaultValueChanged"]="DIRECTIVE_ARGUMENT_DEFAULT_VALUE_CHANGED";e["DirectiveArgumentTypeChanged"]="DIRECTIVE_ARGUMENT_TYPE_CHANGED";e["EnumValueRemoved"]="ENUM_VALUE_REMOVED";e["EnumValueAdded"]="ENUM_VALUE_ADDED";e["EnumValueDescriptionChanged"]="ENUM_VALUE_DESCRIPTION_CHANGED";e["EnumValueDeprecationReasonChanged"]="ENUM_VALUE_DEPRECATION_REASON_CHANGED";e["EnumValueDeprecationReasonAdded"]="ENUM_VALUE_DEPRECATION_REASON_ADDED";e["EnumValueDeprecationReasonRemoved"]="ENUM_VALUE_DEPRECATION_REASON_REMOVED";e["FieldRemoved"]="FIELD_REMOVED";e["FieldAdded"]="FIELD_ADDED";e["FieldDescriptionChanged"]="FIELD_DESCRIPTION_CHANGED";e["FieldDescriptionAdded"]="FIELD_DESCRIPTION_ADDED";e["FieldDescriptionRemoved"]="FIELD_DESCRIPTION_REMOVED";e["FieldDeprecationAdded"]="FIELD_DEPRECATION_ADDED";e["FieldDeprecationRemoved"]="FIELD_DEPRECATION_REMOVED";e["FieldDeprecationReasonChanged"]="FIELD_DEPRECATION_REASON_CHANGED";e["FieldDeprecationReasonAdded"]="FIELD_DEPRECATION_REASON_ADDED";e["FieldDeprecationReasonRemoved"]="FIELD_DEPRECATION_REASON_REMOVED";e["FieldTypeChanged"]="FIELD_TYPE_CHANGED";e["FieldArgumentAdded"]="FIELD_ARGUMENT_ADDED";e["FieldArgumentRemoved"]="FIELD_ARGUMENT_REMOVED";e["InputFieldRemoved"]="INPUT_FIELD_REMOVED";e["InputFieldAdded"]="INPUT_FIELD_ADDED";e["InputFieldDescriptionAdded"]="INPUT_FIELD_DESCRIPTION_ADDED";e["InputFieldDescriptionRemoved"]="INPUT_FIELD_DESCRIPTION_REMOVED";e["InputFieldDescriptionChanged"]="INPUT_FIELD_DESCRIPTION_CHANGED";e["InputFieldDefaultValueChanged"]="INPUT_FIELD_DEFAULT_VALUE_CHANGED";e["InputFieldTypeChanged"]="INPUT_FIELD_TYPE_CHANGED";e["ObjectTypeInterfaceAdded"]="OBJECT_TYPE_INTERFACE_ADDED";e["ObjectTypeInterfaceRemoved"]="OBJECT_TYPE_INTERFACE_REMOVED";e["SchemaQueryTypeChanged"]="SCHEMA_QUERY_TYPE_CHANGED";e["SchemaMutationTypeChanged"]="SCHEMA_MUTATION_TYPE_CHANGED";e["SchemaSubscriptionTypeChanged"]="SCHEMA_SUBSCRIPTION_TYPE_CHANGED";e["TypeRemoved"]="TYPE_REMOVED";e["TypeAdded"]="TYPE_ADDED";e["TypeKindChanged"]="TYPE_KIND_CHANGED";e["TypeDescriptionChanged"]="TYPE_DESCRIPTION_CHANGED";e["TypeDescriptionRemoved"]="TYPE_DESCRIPTION_REMOVED";e["TypeDescriptionAdded"]="TYPE_DESCRIPTION_ADDED";e["UnionMemberRemoved"]="UNION_MEMBER_REMOVED";e["UnionMemberAdded"]="UNION_MEMBER_ADDED"})(d||(d={}));var m;(function(e){e["Breaking"]="BREAKING";e["NonBreaking"]="NON_BREAKING";e["Dangerous"]="DANGEROUS"})(m||(m={}));function schemaQueryTypeChanged(e,t){const n=(e.getQueryType()||{}).name||"unknown";const r=(t.getQueryType()||{}).name||"unknown";return{criticality:{level:m.Breaking},type:d.SchemaQueryTypeChanged,message:`Schema query root has changed from '${n}' to '${r}'`}}function schemaMutationTypeChanged(e,t){const n=(e.getMutationType()||{}).name||"unknown";const r=(t.getMutationType()||{}).name||"unknown";return{criticality:{level:m.Breaking},type:d.SchemaMutationTypeChanged,message:`Schema mutation root has changed from '${n}' to '${r}'`}}function schemaSubscriptionTypeChanged(e,t){const n=(e.getSubscriptionType()||{}).name||"unknown";const r=(t.getSubscriptionType()||{}).name||"unknown";return{criticality:{level:m.Breaking},type:d.SchemaSubscriptionTypeChanged,message:`Schema subscription root has changed from '${n}' to '${r}'`}}function typeRemoved(e){return{criticality:{level:m.Breaking},type:d.TypeRemoved,message:`Type '${e.name}' was removed`,path:e.name}}function typeAdded(e){return{criticality:{level:m.NonBreaking},type:d.TypeAdded,message:`Type '${e.name}' was added`,path:e.name}}function typeKindChanged(e,t){return{criticality:{level:m.Breaking,reason:`Changing the kind of a type is a breaking change because it can cause existing queries to error. For example, turning an object type to a scalar type would break queries that define a selection set for this type.`},type:d.TypeKindChanged,message:`'${e.name}' kind changed from '${getKind(e)}' to '${getKind(t)}'`,path:e.name}}function typeDescriptionChanged(e,t){return{criticality:{level:m.NonBreaking},type:d.TypeDescriptionChanged,message:`Description '${e.description}' on type '${e.name}' has changed to '${t.description}'`,path:e.name}}function typeDescriptionRemoved(e){return{criticality:{level:m.NonBreaking},type:d.TypeDescriptionRemoved,message:`Description '${e.description}' was removed from object type '${e.name}'`,path:e.name}}function typeDescriptionAdded(e){return{criticality:{level:m.NonBreaking},type:d.TypeDescriptionAdded,message:`Object type '${e.name}' has description '${e.description}'`,path:e.name}}function directiveRemoved(e){return{criticality:{level:m.Breaking},type:d.DirectiveRemoved,message:`Directive '${e.name}' was removed`,path:`@${e.name}`}}function directiveAdded(e){return{criticality:{level:m.NonBreaking},type:d.DirectiveAdded,message:`Directive '${e.name}' was added`,path:`@${e.name}`}}function directiveDescriptionChanged(e,t){return{criticality:{level:m.NonBreaking},type:d.DirectiveDescriptionChanged,message:`Directive '${e.name}' description changed from '${e.description}' to '${t.description}'`,path:`@${e.name}`}}function directiveLocationAdded(e,t){return{criticality:{level:m.NonBreaking},type:d.DirectiveLocationAdded,message:`Location '${t}' was added to directive '${e.name}'`,path:`@${e.name}`}}function directiveLocationRemoved(e,t){return{criticality:{level:m.Breaking},type:d.DirectiveLocationRemoved,message:`Location '${t}' was removed from directive '${e.name}'`,path:`@${e.name}`}}function directiveArgumentAdded(e,t){return{criticality:{level:Object(f.isNonNullType)(t.type)?m.Breaking:m.NonBreaking},type:d.DirectiveArgumentAdded,message:`Argument '${t.name}' was added to directive '${e.name}'`,path:`@${e.name}`}}function directiveArgumentRemoved(e,t){return{criticality:{level:m.Breaking},type:d.DirectiveArgumentRemoved,message:`Argument '${t.name}' was removed from directive '${e.name}'`,path:`@${e.name}.${t.name}`}}function directiveArgumentDescriptionChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.DirectiveArgumentDescriptionChanged,message:`Description for argument '${t.name}' on directive '${e.name}' changed from '${t.description}' to '${n.description}'`,path:`@${e.name}.${t.name}`}}function directiveArgumentDefaultValueChanged(e,t,n){return{criticality:{level:m.Dangerous,reason:"Changing the default value for an argument may change the runtime behaviour of a field if it was never provided."},type:d.DirectiveArgumentDefaultValueChanged,message:typeof t.defaultValue==="undefined"?`Default value '${n.defaultValue}' was added to argument '${n.name}' on directive '${e.name}'`:`Default value for argument '${t.name}' on directive '${e.name}' changed from '${t.defaultValue}' to '${n.defaultValue}'`,path:`@${e.name}.${t.name}`}}function directiveArgumentTypeChanged(e,t,n){return{criticality:safeChangeForInputValue(t.type,n.type)?{level:m.NonBreaking,reason:"Changing an input field from non-null to null is considered non-breaking."}:{level:m.Breaking},type:d.DirectiveArgumentTypeChanged,message:`Type for argument '${t.name}' on directive '${e.name}' changed from '${t.type}' to '${n.type}'`,path:`@${e.name}.${t.name}`}}function enumValueRemoved(e,t){return{criticality:{level:m.Breaking,reason:`Removing an enum value will cause existing queries that use this enum value to error.`},type:d.EnumValueRemoved,message:`Enum value '${t.name}' ${isDeprecated(t)?"(deprecated) ":""}was removed from enum '${e.name}'`,path:[e.name,t.name].join(".")}}function enumValueAdded(e,t){return{criticality:{level:m.Dangerous,reason:`Adding an enum value may break existing clients that were not programming defensively against an added case when querying an enum.`},type:d.EnumValueAdded,message:`Enum value '${t.name}' was added to enum '${e.name}'`,path:[e.name,t.name].join(".")}}function enumValueDescriptionChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.EnumValueDescriptionChanged,message:typeof t.description==="undefined"?`Description '${n.description}' was added to enum value '${e.name}.${n.name}'`:`Description for enum value '${e.name}.${n.name}' changed from '${t.description}' to '${n.description}'`,path:[e.name,t.name].join(".")}}function enumValueDeprecationReasonChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.EnumValueDeprecationReasonChanged,message:`Enum value '${e.name}.${n.name}' deprecation reason changed from '${t.deprecationReason}' to '${n.deprecationReason}'`,path:[e.name,t.name].join(".")}}function enumValueDeprecationReasonAdded(e,t,n){return{criticality:{level:m.NonBreaking},type:d.EnumValueDeprecationReasonAdded,message:`Enum value '${e.name}.${n.name}' was deprecated with reason '${n.deprecationReason}'`,path:[e.name,t.name].join(".")}}function enumValueDeprecationReasonRemoved(e,t,n){return{criticality:{level:m.NonBreaking},type:d.EnumValueDeprecationReasonRemoved,message:`Deprecation reason was removed from enum value '${e.name}.${n.name}'`,path:[e.name,t.name].join(".")}}function changesInEnum(e,t,n){compareLists(e.getValues(),t.getValues(),{onAdded(e){n(enumValueAdded(t,e))},onRemoved(t){n(enumValueRemoved(e,t))},onMutual(e){const r=e.oldVersion;const i=e.newVersion;if(isNotEqual(r.description,i.description)){n(enumValueDescriptionChanged(t,r,i))}if(isNotEqual(r.deprecationReason,i.deprecationReason)){if(isVoid(r.deprecationReason)){n(enumValueDeprecationReasonAdded(t,r,i))}else if(isVoid(i.deprecationReason)){n(enumValueDeprecationReasonRemoved(t,r,i))}else{n(enumValueDeprecationReasonChanged(t,r,i))}}}})}function unionMemberRemoved(e,t){return{criticality:{level:m.Breaking,reason:"Removing a union member from a union can cause existing queries that use this union member in a fragment spread to error."},type:d.UnionMemberRemoved,message:`Member '${t.name}' was removed from Union type '${e.name}'`,path:e.name}}function unionMemberAdded(e,t){return{criticality:{level:m.Dangerous,reason:"Adding a possible type to Unions may break existing clients that were not programming defensively against a new possible type."},type:d.UnionMemberAdded,message:`Member '${t.name}' was added to Union type '${e.name}'`,path:e.name}}function changesInUnion(e,t,n){const r=e.getTypes();const i=t.getTypes();compareLists(r,i,{onAdded(e){n(unionMemberAdded(t,e))},onRemoved(t){n(unionMemberRemoved(e,t))}})}var h=n(656);var g=n.n(h);function compareTwoStrings(e,t){if(!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e.toUpperCase()===t.toUpperCase())return 1;if(e.length===1&&t.length===1)return 0;const n=wordLetterPairs(e);const r=wordLetterPairs(t);const i=n.length+r.length;let o=0;n.forEach(e=>{for(let t=0,n;n=r[t];t++){if(e!==n)continue;o++;r.splice(t,1);break}});return o*2/i}function findBestMatch(e,t){if(!areArgsValid(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const n=t.map(t=>({target:t,rating:compareTwoStrings(e,t.value)}));const r=Array.from(n).sort((e,t)=>t.rating-e.rating)[0];return{ratings:n,bestMatch:r}}function flattenDeep(e){return Array.isArray(e)?e.reduce((e,t)=>e.concat(flattenDeep(t)),[]):[e]}function areArgsValid(e,t){if(typeof e!=="string")return false;if(!Array.isArray(t))return false;if(!t.length)return false;if(t.find(e=>typeof e.value!=="string"))return false;return true}function letterPairs(e){const t=[];for(let n=0,r=e.length-1;n0){r(inputFieldDefaultValueChanged(e,t,n))}}else if(JSON.stringify(t.defaultValue)!==JSON.stringify(n.defaultValue)){r(inputFieldDefaultValueChanged(e,t,n))}}if(isNotEqual(t.type.toString(),n.type.toString())){r(inputFieldTypeChanged(e,t,n))}}function objectTypeInterfaceAdded(e,t){return{criticality:{level:m.Dangerous,reason:"Adding an interface to an object type may break existing clients that were not programming defensively against a new possible type."},type:d.ObjectTypeInterfaceAdded,message:`'${t.name}' object implements '${e.name}' interface`,path:t.name}}function objectTypeInterfaceRemoved(e,t){return{criticality:{level:m.Breaking,reason:"Removing an interface from an object type can cause existing queries that use this in a fragment spread to error."},type:d.ObjectTypeInterfaceRemoved,message:`'${t.name}' object type no longer implements '${e.name}' interface`,path:t.name}}function fieldRemoved(e,t){const n=Object(f.isInterfaceType)(e)?"interface":"object type";return{criticality:{level:m.Breaking,reason:t.deprecationReason?`Removing a deprecated field is a breaking change. Before removing it, you may want to look at the field's usage to see the impact of removing the field.`:`Removing a field is a breaking change. It is preferable to deprecate the field before removing it.`},type:d.FieldRemoved,message:`Field '${t.name}' ${isDeprecated(t)?"(deprecated) ":""}was removed from ${n} '${e.name}'`,path:[e.name,t.name].join(".")}}function fieldAdded(e,t){const n=Object(f.isInterfaceType)(e)?"interface":"object type";return{criticality:{level:m.NonBreaking},type:d.FieldAdded,message:`Field '${t.name}' was added to ${n} '${e.name}'`,path:[e.name,t.name].join(".")}}function fieldDescriptionChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.FieldDescriptionChanged,message:`Field '${e.name}.${t.name}' description changed from '${t.description}' to '${n.description}'`,path:[e.name,t.name].join(".")}}function fieldDescriptionAdded(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDescriptionAdded,message:`Field '${e.name}.${t.name}' has description '${t.description}'`,path:[e.name,t.name].join(".")}}function fieldDescriptionRemoved(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDescriptionRemoved,message:`Description was removed from field '${e.name}.${t.name}'`,path:[e.name,t.name].join(".")}}function fieldDeprecationAdded(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDeprecationAdded,message:`Field '${e.name}.${t.name}' is deprecated`,path:[e.name,t.name].join(".")}}function fieldDeprecationRemoved(e,t){return{criticality:{level:m.Dangerous},type:d.FieldDeprecationRemoved,message:`Field '${e.name}.${t.name}' is no longer deprecated`,path:[e.name,t.name].join(".")}}function fieldDeprecationReasonChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.FieldDeprecationReasonChanged,message:`Deprecation reason on field '${e.name}.${n.name}' has changed from '${t.deprecationReason}' to '${n.deprecationReason}'`,path:[e.name,t.name].join(".")}}function fieldDeprecationReasonAdded(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDeprecationReasonAdded,message:`Field '${e.name}.${t.name}' has deprecation reason '${t.deprecationReason}'`,path:[e.name,t.name].join(".")}}function fieldDeprecationReasonRemoved(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDeprecationReasonRemoved,message:`Deprecation reason was removed from field '${e.name}.${t.name}'`,path:[e.name,t.name].join(".")}}function fieldTypeChanged(e,t,n){return{criticality:{level:safeChangeForField(t.type,n.type)?m.NonBreaking:m.Breaking},type:d.FieldTypeChanged,message:`Field '${e}.${t.name}' changed type from '${t.type}' to '${n.type}'`,path:[e.name,t.name].join(".")}}function fieldArgumentAdded(e,t,n){const r=Object(f.isNonNullType)(n.type)&&typeof n.defaultValue==="undefined";const i=typeof n.defaultValue!=="undefined"?" (with default value) ":" ";return{criticality:r?{level:m.Breaking,reason:`Adding a required argument to an existing field is a breaking change because it will cause existing uses of this field to error.`}:{level:m.Dangerous,reason:`Adding a new argument to an existing field may involve a change in resolve function logic that potentially may cause some side effects.`},type:d.FieldArgumentAdded,message:`Argument '${n.name}: ${n.type}'${i}added to field '${e.name}.${t.name}'`,path:[e.name,t.name,n.name].join(".")}}function fieldArgumentRemoved(e,t,n){return{criticality:{level:m.Breaking,reason:`Removing a field argument is a breaking change because it will cause existing queries that use this argument to error.`},type:d.FieldArgumentRemoved,message:`Argument '${n.name}: ${n.type}' was removed from field '${e.name}.${t.name}'`,path:[e.name,t.name,n.name].join(".")}}function fieldArgumentDescriptionChanged(e,t,n,r){return{criticality:{level:m.NonBreaking},type:d.FieldArgumentDescriptionChanged,message:`Description for argument '${r.name}' on field '${e.name}.${t.name}' changed from '${n.description}' to '${r.description}'`,path:[e.name,t.name,n.name].join(".")}}function fieldArgumentDefaultChanged(e,t,n,r){return{criticality:{level:m.Dangerous,reason:"Changing the default value for an argument may change the runtime behaviour of a field if it was never provided."},type:d.FieldArgumentDefaultChanged,message:typeof n.defaultValue==="undefined"?`Default value '${safeString(r.defaultValue)}' was added to argument '${r.name}' on field '${e.name}.${t.name}'`:`Default value for argument '${r.name}' on field '${e.name}.${t.name}' changed from '${safeString(n.defaultValue)}' to '${safeString(r.defaultValue)}'`,path:[e.name,t.name,n.name].join(".")}}function fieldArgumentTypeChanged(e,t,n,r){return{criticality:safeChangeForInputValue(n.type,r.type)?{level:m.NonBreaking,reason:`Changing an input field from non-null to null is considered non-breaking.`}:{level:m.Breaking,reason:`Changing the type of a field's argument can cause existing queries that use this argument to error.`},type:d.FieldArgumentTypeChanged,message:`Type for argument '${r.name}' on field '${e.name}.${t.name}' changed from '${n.type}' to '${r.type}'`,path:[e.name,t.name,n.name].join(".")}}function changesInArgument(e,t,n,r,i){if(isNotEqual(n.description,r.description)){i(fieldArgumentDescriptionChanged(e,t,n,r))}if(isNotEqual(n.defaultValue,r.defaultValue)){if(Array.isArray(n.defaultValue)&&Array.isArray(r.defaultValue)){const o=diffArrays(n.defaultValue,r.defaultValue);if(o.length>0){i(fieldArgumentDefaultChanged(e,t,n,r))}}else if(JSON.stringify(n.defaultValue)!==JSON.stringify(r.defaultValue)){i(fieldArgumentDefaultChanged(e,t,n,r))}}if(isNotEqual(n.type.toString(),r.type.toString())){i(fieldArgumentTypeChanged(e,t,n,r))}}function changesInField(e,t,n,r){if(isNotEqual(t.description,n.description)){if(isVoid(t.description)){r(fieldDescriptionAdded(e,n))}else if(isVoid(n.description)){r(fieldDescriptionRemoved(e,t))}else{r(fieldDescriptionChanged(e,t,n))}}if(isNotEqual(isDeprecated(t),isDeprecated(n))){if(isDeprecated(n)){r(fieldDeprecationAdded(e,n))}else{r(fieldDeprecationRemoved(e,t))}}if(isNotEqual(t.deprecationReason,n.deprecationReason)){if(isVoid(t.deprecationReason)){r(fieldDeprecationReasonAdded(e,n))}else if(isVoid(n.deprecationReason)){r(fieldDeprecationReasonRemoved(e,t))}else{r(fieldDeprecationReasonChanged(e,t,n))}}if(isNotEqual(t.type.toString(),n.type.toString())){r(fieldTypeChanged(e,t,n))}compareLists(t.args,n.args,{onAdded(t){r(fieldArgumentAdded(e,n,t))},onRemoved(n){r(fieldArgumentRemoved(e,t,n))},onMutual(n){changesInArgument(e,t,n.oldVersion,n.newVersion,r)}})}function changesInObject(e,t,n){const r=e.getInterfaces();const i=t.getInterfaces();const o=e.getFields();const s=t.getFields();compareLists(r,i,{onAdded(e){n(objectTypeInterfaceAdded(e,t))},onRemoved(t){n(objectTypeInterfaceRemoved(t,e))}});compareLists(Object.values(o),Object.values(s),{onAdded(e){n(fieldAdded(t,e))},onRemoved(t){n(fieldRemoved(e,t))},onMutual(t){changesInField(e,t.oldVersion,t.newVersion,n)}})}function changesInInterface(e,t,n){compareLists(Object.values(e.getFields()),Object.values(t.getFields()),{onAdded(e){n(fieldAdded(t,e))},onRemoved(t){n(fieldRemoved(e,t))},onMutual(t){changesInField(e,t.oldVersion,t.newVersion,n)}})}function changesInDirective(e,t,n){if(isNotEqual(e.description,t.description)){n(directiveDescriptionChanged(e,t))}const r={added:diffArrays(t.locations,e.locations),removed:diffArrays(e.locations,t.locations)};r.added.forEach(e=>n(directiveLocationAdded(t,e)));r.removed.forEach(t=>n(directiveLocationRemoved(e,t)));compareLists(e.args,t.args,{onAdded(e){n(directiveArgumentAdded(t,e))},onRemoved(t){n(directiveArgumentRemoved(e,t))},onMutual(t){changesInDirectiveArgument(e,t.oldVersion,t.newVersion,n)}})}function changesInDirectiveArgument(e,t,n,r){if(isNotEqual(t.description,n.description)){r(directiveArgumentDescriptionChanged(e,t,n))}if(isNotEqual(t.defaultValue,n.defaultValue)){r(directiveArgumentDefaultValueChanged(e,t,n))}if(isNotEqual(t.type.toString(),n.type.toString())){r(directiveArgumentTypeChanged(e,t,n))}}function diffSchema(e,t){const n=[];function addChange(e){n.push(e)}changesInSchema(e,t,addChange);compareLists(Object.values(e.getTypeMap()).filter(e=>!isPrimitive(e)),Object.values(t.getTypeMap()).filter(e=>!isPrimitive(e)),{onAdded(e){addChange(typeAdded(e))},onRemoved(e){addChange(typeRemoved(e))},onMutual(e){changesInType(e.oldVersion,e.newVersion,addChange)}});compareLists(e.getDirectives(),t.getDirectives(),{onAdded(e){addChange(directiveAdded(e))},onRemoved(e){addChange(directiveRemoved(e))},onMutual(e){changesInDirective(e.oldVersion,e.newVersion,addChange)}});return n}function changesInSchema(e,t,n){var r,i,o,s,a,c;const u={query:"Query",mutation:"Mutation",subscription:"Subscription"};const l={query:(r=(e.getQueryType()||{}).name)!==null&&r!==void 0?r:u.query,mutation:(i=(e.getMutationType()||{}).name)!==null&&i!==void 0?i:u.mutation,subscription:(o=(e.getSubscriptionType()||{}).name)!==null&&o!==void 0?o:u.subscription};const p={query:(s=(t.getQueryType()||{}).name)!==null&&s!==void 0?s:u.query,mutation:(a=(t.getMutationType()||{}).name)!==null&&a!==void 0?a:u.mutation,subscription:(c=(t.getSubscriptionType()||{}).name)!==null&&c!==void 0?c:u.subscription};if(isNotEqual(l.query,p.query)){n(schemaQueryTypeChanged(e,t))}if(isNotEqual(l.mutation,p.mutation)){n(schemaMutationTypeChanged(e,t))}if(isNotEqual(l.subscription,p.subscription)){n(schemaSubscriptionTypeChanged(e,t))}}function changesInType(e,t,n){if(Object(f.isEnumType)(e)&&Object(f.isEnumType)(t)){changesInEnum(e,t,n)}else if(Object(f.isUnionType)(e)&&Object(f.isUnionType)(t)){changesInUnion(e,t,n)}else if(Object(f.isInputObjectType)(e)&&Object(f.isInputObjectType)(t)){changesInInputObject(e,t,n)}else if(Object(f.isObjectType)(e)&&Object(f.isObjectType)(t)){changesInObject(e,t,n)}else if(Object(f.isInterfaceType)(e)&&Object(f.isInterfaceType)(t)){changesInInterface(e,t,n)}else if(Object(f.isScalarType)(e)&&Object(f.isScalarType)(t)){}else{n(typeKindChanged(e,t))}if(isNotEqual(e.description,t.description)){if(isVoid(e.description)){n(typeDescriptionAdded(t))}else if(isVoid(t.description)){n(typeDescriptionRemoved(e))}else{n(typeDescriptionChanged(e,t))}}}const y=({changes:e})=>{return e.map(e=>{if(e.criticality.level===m.Dangerous){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Breaking})})}return e})};function parsePath(e){return e.split(".")}const v=({changes:e,oldSchema:t})=>{return e.map(e=>{if(e.type===d.FieldRemoved&&e.criticality.level===m.Breaking&&e.path){const[n,r]=parsePath(e.path);const i=t.getType(n);if(Object(f.isObjectType)(i)||Object(f.isInterfaceType)(i)){const t=i.getFields()[r];if(isDeprecated(t)){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Dangerous})})}}}if(e.type===d.EnumValueRemoved&&e.criticality.level===m.Breaking&&e.path){const[n,r]=parsePath(e.path);const i=t.getType(n);if(Object(f.isEnumType)(i)){const t=i.getValue(r);if(t&&isDeprecated(t)){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Dangerous})})}}}if(e.type===d.InputFieldRemoved&&e.criticality.level===m.Breaking&&e.path){const[n,r]=parsePath(e.path);const i=t.getType(n);if(Object(f.isInputObjectType)(i)){const t=i.getFields()[r];if(t&&isDeprecated(t)){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Dangerous})})}}}return e})};const b=[d.FieldArgumentDescriptionChanged,d.DirectiveDescriptionChanged,d.DirectiveArgumentDescriptionChanged,d.EnumValueDescriptionChanged,d.FieldDescriptionChanged,d.FieldDescriptionAdded,d.FieldDescriptionRemoved,d.InputFieldDescriptionAdded,d.InputFieldDescriptionRemoved,d.InputFieldDescriptionChanged,d.TypeDescriptionChanged];const T=({changes:e})=>{return e.filter(e=>b.indexOf(e.type)===-1)};const E=({changes:e,config:t})=>Object(o.__awaiter)(void 0,void 0,void 0,function*(){if(!t){throw new Error(`considerUsage rule is missing config`)}const n=[];e.forEach(e=>{if(e.criticality.level===m.Breaking&&e.path){const[t,r,i]=parsePath(e.path);n.push({type:t,field:r,argument:i})}});const r=yield t.checkUsage(n);const i=n.filter((e,t)=>r[t]===true).map(({type:e,field:t,argument:n})=>[e,t,n].filter(Boolean).join("."));return e.map(e=>{if(e.criticality.level===m.Breaking&&e.path&&i.some(t=>e.path.startsWith(t))){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Dangerous}),message:`${e.message} (non-breaking based on usage)`})}return e})});const O=({changes:e,oldSchema:t})=>{const n=getReachableTypes(t);return e.map(e=>{if(e.criticality.level===m.Breaking&&e.path){const[t]=parsePath(e.path);if(!n.has(t)){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.NonBreaking}),message:"Unreachable from root"})}}return e})};const w=r;function diff_diff(e,t,n=[],r){const i=diffSchema(e,t);return n.reduce((n,i)=>Object(o.__awaiter)(this,void 0,void 0,function*(){const o=yield n;return i({changes:o,oldSchema:e,newSchema:t,config:r})}),Promise.resolve(i))}var _=n(5);function readDocument(e){const t={source:e,fragments:[],operations:[],hasFragments:false,hasOperations:false};const n=Object(f.parse)(e.body);const r=e.name;const i=n.definitions||[];i.forEach(e=>{if(isOperation(e)){t.operations.push({node:e,source:r})}else if(isFragment(e)){t.fragments.push({node:e,source:r})}});t.hasFragments=t.fragments.length>0;t.hasOperations=t.operations.length>0;return t}function isOperation(e){return e.kind===f.Kind.OPERATION_DEFINITION}function isFragment(e){return e.kind===f.Kind.FRAGMENT_DEFINITION}function validateQueryDepth({source:e,doc:t,maxDepth:n,fragmentGraph:r}){try{calculateDepth({node:t,currentDepth:0,maxDepth:n,getFragment(e){return r.getNodeData(e)}})}catch(t){if(t instanceof Error){throw t}const r=t;return new f.GraphQLError(`Query exceeds maximum depth of ${n}`,r,e,r.loc&&r.loc.start?[r.loc.start]:undefined)}}function calculateDepth({node:e,currentDepth:t,maxDepth:n,getFragment:r}){if(n&&t>n){throw e}switch(e.kind){case f.Kind.FIELD:{if(e.name.value.startsWith("__")||!e.selectionSet){return 0}const i=calculateDepth({node:e.selectionSet,currentDepth:t+1,maxDepth:n,getFragment:r});return 1+i}case f.Kind.SELECTION_SET:{return Math.max(...e.selections.map(e=>{return calculateDepth({node:e,currentDepth:t,maxDepth:n,getFragment:r})}))}case f.Kind.DOCUMENT:{return Math.max(...e.definitions.map(e=>{return calculateDepth({node:e,currentDepth:t,maxDepth:n,getFragment:r})}))}case f.Kind.OPERATION_DEFINITION:case f.Kind.INLINE_FRAGMENT:case f.Kind.FRAGMENT_DEFINITION:{return Math.max(...e.selectionSet.selections.map(e=>{return calculateDepth({node:e,currentDepth:t,maxDepth:n,getFragment:r})}))}case f.Kind.FRAGMENT_SPREAD:return calculateDepth({node:r(e.name.value),currentDepth:t,maxDepth:n,getFragment:r});default:{throw new Error(`Couldn't handle ${e.kind}`)}}}function transformDocumentWithApollo(e,{keepClientFields:t}){return Object(f.visit)(e,{Field(e){return t?removeDirectives(e,["client"]):removeFieldIfDirectives(e,["client"])}})}function transformSchemaWithApollo(e){return Object(f.extendSchema)(e,Object(f.parse)(`\n directive @connection(key: String!, filter: [String]) on FIELD\n `))}function validate(e,t,n){const r=Object.assign({strictDeprecated:true,strictFragments:true,keepClientFields:false,apollo:false},n);const i=[];const o=t.map(readDocument);const s=[];const a=[];const c=new _.DepGraph({circular:true});o.forEach(e=>{e.fragments.forEach(e=>{a.push(e.node.name.value);s.push(e);c.addNode(e.node.name.value,e.node)})});s.forEach(e=>{const t=extractFragments(Object(f.print)(e.node));if(t){t.forEach(t=>{c.addDependency(e.node.name.value,t)})}});o.filter(e=>e.hasOperations).forEach(t=>{const n={kind:f.Kind.DOCUMENT,definitions:t.operations.map(e=>e.node)};const o=(extractFragments(Object(f.print)(n))||[]).map(e=>resolveFragment(c.getNodeData(e),c)).reduce((e,t)=>e.concat(t),[]).filter((e,t,n)=>n.findIndex(t=>t.name.value===e.name.value)===t);const s={kind:f.Kind.DOCUMENT,definitions:[...n.definitions,...o]};let u=r.apollo?transformSchemaWithApollo(e):e;const l=r.apollo?transformDocumentWithApollo(s,{keepClientFields:r.keepClientFields}):s;const p=Object(f.validate)(u,l)||[];if(r.maxDepth){const e=validateQueryDepth({source:t.source,doc:l,maxDepth:r.maxDepth,fragmentGraph:c});if(e){p.push(e)}}const d=r.strictDeprecated?findDeprecatedUsages(u,l):[];const m=r.strictFragments?findDuplicatedFragments(a):[];if(sumLengths(p,m,d)>0){i.push({source:t.source,errors:[...p,...m],deprecated:d})}});return i}function findDuplicatedFragments(e){return e.filter((e,t,n)=>n.indexOf(e)!==t).map(e=>new f.GraphQLError(`Name of '${e}' fragment is not unique`))}function resolveFragment(e,t){return t.dependenciesOf(e.name.value).reduce((e,n)=>[...e,...resolveFragment(t.getNodeData(n),t)],[e])}function extractFragments(e){return(e.match(/[\.]{3}[a-z0-9\_]+\b/gi)||[]).map(e=>e.replace("...",""))}function sumLengths(...e){return e.reduce((e,{length:t})=>e+t,0)}function similar(e,t,n=.4){const r=e.getTypeMap();const i=Object.keys(e.getTypeMap()).filter(e=>!isPrimitive(e)&&!isForIntrospection(e)).map(e=>({typeId:e,value:stripType(r[e])}));const o={};if(typeof t!=="undefined"&&!i.some(e=>e.typeId===t)){throw new Error(`Type '${t}' doesn't exist`)}(t?[{typeId:t,value:""}]:i).forEach(t=>{const r=e.getType(t.typeId);const s=i.filter(n=>e.getType(n.typeId).astNode.kind===r.astNode.kind&&n.typeId!==t.typeId);if(s.length>0){const e=similarTo(r,s,n);if(e){o[t.typeId]=e}}});return o}function similarTo(e,t,n){const r=t.filter(t=>t.typeId!==e.name);const i=findBestMatch(stripType(e),r);if(i.bestMatch.ratinge.rating>=n&&e.target!==i.bestMatch.target).sort((e,t)=>e.rating-t.rating).reverse()}}function stripType(e){return Object(f.printType)(e).trim().replace(/^[a-z]+ [^\{]+\{/g,"").replace(/\}$/g,"").trim().split("\n").map(e=>e.trim()).sort((e,t)=>e.localeCompare(t)).join(" ")}function coverage_coverage(e,t){const n={sources:t,types:{}};const r=e.getTypeMap();const i=new f.TypeInfo(e);const o=e=>({Field(t){const r=i.getFieldDef();const o=i.getParentType();if(o&&o.name&&!isForIntrospection(o.name)&&r&&r.name&&r.name!=="__typename"&&r.name!=="__schema"){const i=e.name;const s=n.types[o.name];const a=s.children[r.name];const c=a.locations[i];s.hits++;a.hits++;if(t.loc){a.locations[i]=[t.loc,...c||[]]}if(t.arguments){for(const e of t.arguments){const t=a.children[e.name.value];t.hits++;if(e.loc){t.locations[i]=[e.loc,...t.locations[i]||[]]}}}}}});for(const e in r){if(!isForIntrospection(e)&&!isPrimitive(e)){const t=r[e];if(Object(f.isObjectType)(t)||Object(f.isInterfaceType)(t)){const e={hits:0,type:t,children:{}};const r=t.getFields();for(const t in r){const n=r[t];e.children[n.name]={hits:0,locations:{},children:{}};for(const t of n.args){e.children[n.name].children[t.name]={hits:0,locations:{}}}}n.types[t.name]=e}}}const s=n.sources.map(readDocument);s.forEach((e,t)=>{const r=n.sources[t];e.operations.forEach(e=>{Object(f.visit)(e.node,Object(f.visitWithTypeInfo)(i,o(r)))});e.fragments.forEach(e=>{Object(f.visit)(e.node,Object(f.visitWithTypeInfo)(i,o(r)))})});return n}function bolderize(e){return quotesTransformer(e,"**")}function quotesTransformer(e,t="**"){const n=/\'([^']+)\'/gim;const r=/\"([^"]+)\"/gim;function transformm(e,n){return`${t}${n}${t}`}return e.replace(n,transformm).replace(r,transformm)}function slackCoderize(e){return quotesTransformer(e,"`")}function discordCoderize(e){return quotesTransformer(e,"`")}function filterChangesByLevel(e){return t=>t.criticality.level===e}function createSummary(e,t,n){const r=e.filter(filterChangesByLevel(m.Breaking));const i=e.filter(filterChangesByLevel(m.Dangerous));const o=e.filter(filterChangesByLevel(m.NonBreaking));const s=[`# Found ${e.length} change${e.length>1?"s":""}`,"",`Breaking: ${r.length}`,`Dangerous: ${i.length}`,`Safe: ${o.length}`];if(n){s.push(["","> Legacy config detected, [please migrate to a new syntax](https://graphql-inspector.com/docs/products/github#full-configuration)",""].join("\n"))}if(e.length>t){s.push(["",`Total amount of changes (${e.length}) is over the limit (${t})`,'Adjust it using "summaryLimit" option',""].join("\n"))}function addChangesToSummary(e,n){if(n.length<=t){s.push(...["",`## ${e} changes`].concat(n.map(e=>` - ${bolderize(e.message)}`)))}t-=n.length}if(r.length){addChangesToSummary("Breaking",r)}if(i.length){addChangesToSummary("Dangerous",i)}if(o.length){addChangesToSummary("Safe",o)}s.push(["","___",`We ([The Guild](https://the-guild.dev)) [recently announced an alternative to Inspector](https://the-guild.dev/blog/graphql-hive-preview) called [GraphQL Hive](https://graphql-hive.com)`,`If you interested in getting an early access, please visit GraphQL Hive and sign in.`,"","___",`Thank you for using [GraphQL Inspector](https://graphql-inspector.com/)`,`If you like it, [consider supporting the project](https://github.com/sponsors/kamilkisiela).`].join("\n"));return s.join("\n")}function isNil(e){return!e&&typeof e!=="boolean"}function parseEndpoint(e){if(typeof e==="string"){return{url:e,method:"POST"}}return{url:e.url,method:e.method||"POST",headers:e.headers}}function batch(e,t){const n=[];const r=Math.ceil(e.length/t);if(r===0){return[[]]}for(let i=0;i{e[t]=n;return e},{})}function createGetFilesQuery(e){const t=Object.keys(e).map(e=>`$${e}: String!`).join(", ");const n=Object.keys(e).map(e=>{return`\n ${e}: object(expression: $${e}) {\n ... on Blob {\n text\n }\n }\n `}).join("\n");return`\n query GetFile($repo: String!, $owner: String!, ${t}) {\n repository(name: $repo, owner: $owner) {\n ${n}\n }\n }\n `.replace(/\s+/g," ")}function createFileLoader(e){const t=new a.a(t=>Object(o.__awaiter)(this,void 0,void 0,function*(){const n=objectFromEntries(t.map(e=>[e.alias,`${e.ref}:${e.path}`]));const{context:r,repo:i,owner:s}=e;const a=yield r.octokit.graphql(createGetFilesQuery(n),Object.assign({repo:i,owner:s},n));return Promise.all(t.map(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const t=e.alias;try{if(!a){throw new Error(`No result :(`)}if(a.data){return a.data.repository[t].text}return a.repository[t].text}catch(t){const n=new Error(`Failed to load '${e.path}' (ref: ${e.ref})`);if(e.throwNotFound===false){if(e.onError){e.onError(n)}else{console.error(n)}return null}throw n}})))}),{batch:true,maxBatchSize:5,cacheKeyFn(e){return`${e.ref} - ${e.path}`}});return e=>t.load(e)}function createConfigLoader(e,t){const n=new a.a(n=>{const r=[];const i=e=>{r.push(e)};return Promise.all(n.map(n=>Object(o.__awaiter)(this,void 0,void 0,function*(){const[o,s,a]=yield Promise.all([t(Object.assign(Object.assign({},e),{alias:"yaml",path:`.github/${n}.yaml`,throwNotFound:false,onError:i})),t(Object.assign(Object.assign({},e),{alias:"yml",path:`.github/${n}.yml`,throwNotFound:false,onError:i})),t(Object.assign(Object.assign({},e),{alias:"pkg",path:"package.json",throwNotFound:false,onError:i}))]);if(o||s){return u().load(o||s)}if(a){try{const e=JSON.parse(a);if(e[n]){return e[n]}}catch(e){r.push(e)}}console.error([`Failed to load config:`,...r].join("\n"));return null})))},{batch:false});return()=>n.load("graphql-inspector")}function printSchemaFromEndpoint(e){return Object(o.__awaiter)(this,void 0,void 0,function*(){const t=parseEndpoint(e);const{data:n}=yield p().request({method:t.method,url:t.url,headers:t.headers,data:{query:Object(f.getIntrospectionQuery)().replace(/\s+/g," ").trim()}});const r=n.data;return Object(f.printSchema)(Object(f.buildClientSchema)(r,{assumeValid:true}))})}function loadSources({config:e,oldPointer:t,newPointer:n,loadFile:r}){var i;return Object(o.__awaiter)(this,void 0,void 0,function*(){const o=!isNil(e.endpoint);const[s,a]=yield Promise.all([o?printSchemaFromEndpoint(e.endpoint):r(Object.assign(Object.assign({},t),{alias:"oldSource"})),r(Object.assign(Object.assign({},n),{alias:"newSource"}))]);return{old:new f.Source(s,o?typeof e.endpoint==="string"?e.endpoint:(i=e.endpoint)===null||i===void 0?void 0:i.url:`${t.ref}:${t.path}`),new:new f.Source(a,`${n.ref}:${n.path}`)}})}const S="__default";const N="*";const D={annotations:true,failOnBreaking:true};const A=false;function normalizeConfig(e){if(config_isLegacyConfig(e)){console.log('config type - "legacy"');return{kind:"legacy",config:{[S]:{name:S,schema:e.schema.path,branch:e.schema.ref,endpoint:e.endpoint,notifications:prioritize(e.notifications,A),diff:prioritize(e.diff,D)}}}}if(isSingleEnvironmentConfig(e)){console.log('config type - "single"');return{kind:"single",config:{[e.branch]:{name:e.branch,schema:e.schema,branch:e.branch,endpoint:e.endpoint,notifications:prioritize(e.notifications,A),diff:prioritize(e.diff,D)}}}}if(isMultipleEnvironmentConfig(e)){console.log('config type - "multiple"');const t={};for(const n in e.env){if(e.env.hasOwnProperty(n)){const r=e.env[n];t[n]={name:n,schema:e.schema,branch:r.branch,endpoint:r.endpoint,diff:prioritize(r.diff,e.diff,D),notifications:prioritize(r.notifications,e.notifications,A)}}}return{kind:"multiple",config:t}}throw new Error("Invalid configuration")}function getGlobalConfig(e,t){var n;return{name:"global",schema:e.schema,branch:t,notifications:false,diff:prioritize((n=e.others)===null||n===void 0?void 0:n.diff,e.diff,D)}}function createConfig(e,t,n=[],r=N){const{config:i,kind:o}=normalizeConfig(e);let s=null;t(o);if(isNormalizedLegacyConfig(i)){s=i[S];if(n.includes(s.branch)===false){s.endpoint=undefined}return s}for(const e of n){if(!s){s=findConfigByBranch(e,i,false)}if(s){break}}if(!s){s=getGlobalConfig(e,r)}return s}function isNormalizedLegacyConfig(e){return typeof e[S]==="object"}function config_isLegacyConfig(e){return e.schema&&typeof e.schema==="object"}function isSingleEnvironmentConfig(e){return!e.env}function isMultipleEnvironmentConfig(e){return!config_isLegacyConfig(e)&&!isSingleEnvironmentConfig(e)}function findConfigByBranch(e,t,n=true){const r=[];for(const n in t){if(t.hasOwnProperty(n)){const i=t[n];if(i.branch===e){return i}r.push(i.branch)}}if(n){throw new Error(`Couldn't match branch "${e}" with branches in config. Available branches: ${r.join(", ")}`)}return null}function prioritize(e,t,n){if(e===false){return false}if(e===true||isNil(e)){if(t===true||isNil(t)){return n||false}return typeof t==="object"&&typeof n==="object"?Object.assign(Object.assign({},n),t):t}if(t&&typeof t==="object"){return Object.assign(Object.assign(Object.assign({},n),t),e)}return typeof e==="object"&&typeof n==="object"?Object.assign(Object.assign({},n),e):e}function notifyWithWebhook({url:e,changes:t,environment:n,repo:r,owner:i,commit:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){const o={repo:r,owner:i,commit:s,environment:n&&n!==S?n:"default",changes:t.map(e=>({message:e.message,level:e.criticality.level}))};yield p().post(e,o,{headers:{"content-type":"application/json"}})})}function notifyWithSlack({url:e,changes:t,environment:n,repo:r,owner:i,commit:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){const o=t.length;const a=n?`${n} schema`:`schema`;const c=s?` ()`:"";const u={username:"GraphQL Inspector",icon_url:"https://graphql-inspector/img/logo-slack.png",text:`:male-detective: Hi, I found *${o} ${pluralize("change",o)}* in ${a}${c}:`,attachments:createAttachments(t)};yield p().post(e,u,{headers:{"content-type":"application/json"}})})}function notifyWithDiscord({url:e,changes:t,environment:n,repo:r,owner:i,commit:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){const o=t.length;const a=n?`${n} schema`:`schema`;const c=s?` ([\`${s.substr(0,7)}\`](https://github.com/${i}/${r}/commit/${s}))`:"";const u={username:"GraphQL Inspector",avatar_url:"https://graphql-inspector/img/logo-slack.png",content:`:detective: Hi, I found **${o} ${pluralize("change",o)}** in ${a}${c}:`,embeds:createDiscordEmbeds(t)};yield p().post(e,u,{headers:{"content-type":"application/json"}})})}function createAttachments(e){const t=e.filter(filterChangesByLevel(m.Breaking));const n=e.filter(filterChangesByLevel(m.Dangerous));const r=e.filter(filterChangesByLevel(m.NonBreaking));const i=[];if(t.length){i.push(renderAttachments({color:"#E74C3B",title:"Breaking changes",changes:t}))}if(n.length){i.push(renderAttachments({color:"#F0C418",title:"Dangerous changes",changes:n}))}if(r.length){i.push(renderAttachments({color:"#23B99A",title:"Safe changes",changes:r}))}return i}function renderAttachments({changes:e,title:t,color:n}){const r=e.map(e=>slackCoderize(e.message)).join("\n");return{mrkdwn_in:["text","fallback"],color:n,author_name:t,text:r,fallback:r}}function createDiscordEmbeds(e){const t=e.filter(filterChangesByLevel(m.Breaking));const n=e.filter(filterChangesByLevel(m.Dangerous));const r=e.filter(filterChangesByLevel(m.NonBreaking));const i=[];if(t.length){i.push(renderDiscordEmbed({color:15158331,title:"Breaking changes",changes:t}))}if(n.length){i.push(renderDiscordEmbed({color:15778840,title:"Dangerous changes",changes:n}))}if(r.length){i.push(renderDiscordEmbed({color:2341274,title:"Safe changes",changes:r}))}return i}function renderDiscordEmbed({changes:e,title:t,color:n}){const r=e.map(e=>discordCoderize(e.message)).join("\n");return{color:n,title:t,description:r}}function pluralize(e,t){return e+(t>1?"s":"")}function createLogger(e,t,n){const r=Math.random().toString(16).substr(2,5);const i=t=>`${e} ${r} - release-${n.substr(0,7)} : ${t}`;return{log(e){t.log(i(e))},info(e){t.log.info(i(e))},warn(e){t.log.warn(i(e))},error(e,n){if(n){console.error(n)}t.log.error(i(e instanceof Error?e.message:e))}}}function handleSchemaChangeNotifications({context:e,ref:t,repo:n,owner:r,before:i,loadFile:s,loadConfig:a,onError:c,release:u,action:l}){var p,d;return Object(o.__awaiter)(this,void 0,void 0,function*(){const m=`${r}/${n}#${t}`;const h=createLogger("NOTIFICATIONS",e,u);h.info(`started - ${m}`);h.info(`action - ${l}`);const g=t.startsWith("refs/heads/");if(!g){h.warn(`Received Push event is not a branch push event (ref "${t}")`);return}const y=yield a();if(!y){h.error(`Missing config file`);return}const v=t.replace("refs/heads/","");const b=createConfig(y,()=>{},[v]);if(!b.notifications){h.info(`disabled. Skipping...`);return}else{h.info(`enabled`)}if(b.branch!==v){h.info(`Received branch "${v}" doesn't match expected branch "${b.branch}". Skipping...`);return}const T={path:b.schema,ref:i};const E={path:b.schema,ref:t};const O=yield loadSources({config:b,oldPointer:T,newPointer:E,loadFile:s});const w={old:Object(f.buildSchema)(O.old,{assumeValid:true,assumeValidSDL:true}),new:Object(f.buildSchema)(O.new,{assumeValid:true,assumeValidSDL:true})};h.info(`built schemas`);const _=yield diff_diff(w.old,w.new);if(!_.length){h.info(`schemas are equal. Skipping...`);return}const S=b.notifications;if(hasNotificationsEnabled(S)){function actionRunner(e,t){return Object(o.__awaiter)(this,void 0,void 0,function*(){try{yield t()}catch(t){c(t);h.error(`Failed to send a notification via ${e}`,t)}})}const t=[];const i=(d=(p=e.payload.commits)===null||p===void 0?void 0:p[0])===null||d===void 0?void 0:d.id;if(S.slack){t.push(actionRunner("slack",()=>notifyWithSlack({url:S.slack,changes:_,environment:b.name,repo:n,owner:r,commit:i})))}if(S.discord){t.push(actionRunner("discord",()=>notifyWithDiscord({url:S.discord,changes:_,environment:b.name,repo:n,owner:r,commit:i})))}if(S.webhook){t.push(actionRunner("webhook",()=>notifyWithWebhook({url:S.webhook,changes:_,environment:b.name,repo:n,owner:r,commit:i})))}if(t.length){yield Promise.all(t)}}})}function hasNotificationsEnabled(e){return e&&typeof e==="object"}function produceSchema(e){try{if(!e.body.trim().length){throw new Error(`Content is empty`)}return Object(f.buildSchema)(e,{assumeValid:true,assumeValidSDL:true})}catch(t){throw new Error(`Failed to parse "${e.name}": ${t.message}`)}}var I;(function(e){e["Failure"]="failure";e["Warning"]="warning";e["Notice"]="notice"})(I||(I={}));var j;(function(e){e["InProgress"]="in_progress";e["Completed"]="completed"})(j||(j={}));var R;(function(e){e["Success"]="success";e["Neutral"]="neutral";e["Failure"]="failure"})(R||(R={}));function start({context:e,owner:t,repo:n,sha:r,logger:i}){return Object(o.__awaiter)(this,void 0,void 0,function*(){try{const o=yield e.octokit.checks.create({owner:t,repo:n,name:"graphql-inspector",head_sha:r,status:j.InProgress});i.info(`check started`);return o.data.id}catch(e){i.error(`failed to start a check`,e);throw e}})}function annotate({context:e,owner:t,repo:n,checkRunId:r,annotations:i,title:s,summary:a,logger:c}){return Object(o.__awaiter)(this,void 0,void 0,function*(){const u=batch(i,50);e.log.info(`annotations to be sent: ${i.length}`);e.log.info(`title: ${s}`);try{yield Promise.all(u.map(i=>Object(o.__awaiter)(this,void 0,void 0,function*(){yield e.octokit.checks.update({owner:t,repo:n,check_run_id:r,output:{annotations:i,title:s,summary:a}});c.info(`annotations sent (${i.length})`)})))}catch(e){c.error(`failed to send annotations`,e);throw e}})}function complete({context:e,owner:t,repo:n,checkRunId:r,conclusion:i,logger:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){try{yield e.octokit.checks.update({owner:t,repo:n,check_run_id:r,conclusion:i,status:j.Completed});s.info(`check completed`)}catch(e){s.error(`failed to complete a check`,e);throw e}})}function getLocationByPath({path:e,source:t}){const[n,...r]=e.split(".");const i=n.startsWith("@");const o=Object(f.parse)(t);let s=undefined;for(const e of o.definitions){if(e.kind===f.Kind.OBJECT_TYPE_DEFINITION&&e.name.value===n){s=resolveObjectTypeDefinition(r,e);break}if(i&&e.kind===f.Kind.DIRECTIVE_DEFINITION&&e.name.value===n.substring(1)){s=resolveDirectiveDefinition(r,e);break}if(e.kind===f.Kind.ENUM_TYPE_DEFINITION&&e.name.value===n){s=resolveEnumTypeDefinition(r,e);break}if(e.kind===f.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.name.value===n){s=resolveInputObjectTypeDefinition(r,e);break}if(e.kind===f.Kind.INTERFACE_TYPE_DEFINITION&&e.name.value===n){s=resolveInterfaceTypeDefinition(r,e);break}if(e.kind===f.Kind.UNION_TYPE_DEFINITION&&e.name.value===n){s=resolveUnionTypeDefinitionNode(r,e);break}if(e.kind===f.Kind.SCALAR_TYPE_DEFINITION&&e.name.value===n){s=resolveScalarTypeDefinitionNode(r,e);break}}return resolveNodeSourceLocation(t,s)}function resolveScalarTypeDefinitionNode(e,t){return t}function resolveUnionTypeDefinitionNode(e,t){return t}function resolveArgument(e,t){var n;const r=(n=t.arguments)===null||n===void 0?void 0:n.find(t=>t.name.value===e);return r||t}function resolveFieldDefinition(e,t){var n;const[r,i]=e;const o=(n=t.fields)===null||n===void 0?void 0:n.findIndex(e=>e.name.value===r);if(typeof o==="number"&&o>-1){const e=t.fields[o];if(e.kind!==f.Kind.INPUT_VALUE_DEFINITION&&i){return resolveArgument(i,e)}return e}return t}function resolveInterfaceTypeDefinition(e,t){const[n,r]=e;if(n){return resolveFieldDefinition([n,r],t)}return t}function resolveInputObjectTypeDefinition(e,t){const[n]=e;if(n){return resolveFieldDefinition([n],t)}return t}function resolveEnumTypeDefinition(e,t){const[n]=e;if(t.values&&n){const e=t.values.find(e=>e.name.value===n);if(e){return e}}return t}function resolveObjectTypeDefinition(e,t){const[n,r]=e;if(n){return resolveFieldDefinition([n,r],t)}return t}function resolveDirectiveDefinition(e,t){const[n]=e;if(t.arguments&&n){const e=t.arguments.find(e=>e.name.value===n);if(e){return e}}return t}function resolveNodeSourceLocation(e,t){if(!t||!t.loc){return{line:1,column:1}}const n=Object(f.getLocation)(e,t.loc.start);if(t.description&&t.description.loc){return{line:Object(f.getLocation)(e,t.description.loc.end).line+1,column:n.column}}return n}function helpers_diff_diff({path:e,schemas:t,sources:n,interceptor:r,pullRequests:i,ref:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){let o=yield diff_diff(t.old,t.new);let a=null;if(!o||!o.length){return{conclusion:R.Success}}if(!isNil(r)){const e=yield interceptChanges(r,{pullRequests:i,ref:s,changes:o});o=e.changes||[];a=e.conclusion||null}const c=yield Promise.all(o.map(t=>diff_annotate({path:e,change:t,source:n.new})));let u=R.Success;if(o.some(e=>e.criticality.level===m.Breaking)){u=R.Failure}if(a){u=a}return{conclusion:u,annotations:c,changes:o}})}const P={[m.Breaking]:I.Failure,[m.Dangerous]:I.Warning,[m.NonBreaking]:I.Notice};function diff_annotate({path:e,change:t,source:n}){const r=t.criticality.level;const i=t.path?getLocationByPath({path:t.path,source:n}):{line:1,column:1};return{title:t.message,annotation_level:P[r],path:e,message:t.criticality.reason||t.message,start_line:i.line,end_line:i.line}}function interceptChanges(e,t){return Object(o.__awaiter)(this,void 0,void 0,function*(){const n=parseEndpoint(e);const{data:r}=yield p().request({url:n.url,method:n.method,data:t});return r})}class MissingConfigError extends Error{constructor(){super(["Failed to find a configuration","","https://graphql-inspector.com/docs/products/github#usage"].join("\n"))}}function handleSchemaDiff({release:e,action:t,context:n,ref:r,pullRequestNumber:i,repo:s,owner:a,before:c,pullRequests:u=[],loadFile:l,loadConfig:p,onError:f}){var d;return Object(o.__awaiter)(this,void 0,void 0,function*(){const o=`${a}/${s}#${r}`;const m=createLogger("DIFF",n,e);m.info(`Started - ${o}`);m.info(`Action: "${t}"`);const h=yield start({context:n,owner:a,repo:s,sha:r,logger:m});try{m.info(`Looking for config`);const e=yield p();if(!e){m.error(`Config file missing`);throw new MissingConfigError}const t=u.map(e=>e.base.ref);const o=t[0];const g=o||c;let y=false;m.info(`fallback branch from Pull Requests: ${o}`);m.info(`SHA before push: ${c}`);const v=createConfig(e,e=>{y=e==="legacy"},t,g);if(!v.diff){m.info(`disabled. Skipping...`);yield complete({owner:a,repo:s,checkRunId:h,context:n,conclusion:R.Success,logger:m});return}else{m.info(`enabled`)}if(!v.branch||/^[0]+$/.test(v.branch)){m.info(`Nothing to compare with. Skipping...`);yield complete({owner:a,repo:s,checkRunId:h,context:n,conclusion:R.Success,logger:m});return}if(v.diff.experimental_merge!==false){if(!i&&(u===null||u===void 0?void 0:u.length)){i=u[0].number}if(i){r=`refs/pull/${i}/merge`;m.info(`Using Pull Request: ${r}`)}}const b={path:v.schema,ref:v.branch};const T={path:b.path,ref:r};if(b.ref===N){m.error("used default ref to get old schema")}if(T.ref===N){m.error("used default ref to get new schema")}const E=yield loadSources({config:v,oldPointer:b,newPointer:T,loadFile:l});const O={old:produceSchema(E.old),new:produceSchema(E.new)};m.info(`built schemas`);const w=yield helpers_diff_diff({path:v.schema,schemas:O,sources:E});m.info(`schema diff result is ready`);let _=w.conclusion;let S=w.annotations||[];const D=w.changes||[];m.info(`changes - ${D.length}`);m.info(`annotations - ${D.length}`);const A=v.diff.summaryLimit||100;const I=createSummary(D,A,y);const j=v.diff.approveLabel||"approved-breaking-change";const P=i?(d=u[0].labels)===null||d===void 0?void 0:d.find(e=>e.name===j):false;if(v.diff.failOnBreaking===false||P){m.info("FailOnBreaking disabled. Forcing SUCCESS");_=R.Success}const L=_===R.Failure?"Something is wrong with your schema":"Everything looks good";if(v.diff.annotations===false){m.info(`Anotations are disabled. Skipping annotations...`);S=[]}else if(S.length>A){m.info(`Total amount of annotations is over the limit (${S.length} > ${A}). Skipping annotations...`);S=[]}else{m.info(`Sending annotations (${S.length})`)}yield annotate({owner:a,repo:s,checkRunId:h,context:n,title:L,summary:I,annotations:S,logger:m});m.info(`Finishing check (${_})`);yield complete({owner:a,repo:s,checkRunId:h,context:n,conclusion:_,logger:m});m.info(`done`)}catch(e){m.error(e);if(!(e instanceof MissingConfigError)){f(e)}yield annotate({owner:a,repo:s,checkRunId:h,context:n,title:`Failed to complete schema check`,summary:`ERROR: ${e.message||e}`,annotations:[],logger:m});yield complete({owner:a,repo:s,checkRunId:h,context:n,conclusion:R.Failure,logger:m})}})}const L=Symbol.for("inspector-diagnostics");function setDiagnostics(e,t){e[L]=t}function getDiagnostics(e){return e[L]}const F=["rerequested"];function handleProbot(e){const{onError:t,release:n}=getDiagnostics(e);function wrap(e){return n=>Object(o.__awaiter)(this,void 0,void 0,function*(){try{yield e(n)}catch(e){t(e);throw e}})}e.on("check_run",wrap(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const r=e.payload.check_run.head_sha;const{owner:i,repo:o}=e.repo();const s=e.payload.action;const a=e.payload.check_run.pull_requests;const c=e.payload.check_run.check_suite.before;const u="check_run."+s;if(F.includes(s)===false){return}const l=createFileLoader({context:e,owner:i,repo:o,release:n,action:u});const p=createConfigLoader({context:e,owner:i,repo:o,ref:r,release:n,action:u},l);yield handleSchemaDiff({release:n,action:u,context:e,ref:r,repo:o,owner:i,loadFile:l,loadConfig:p,before:c,pullRequests:a,onError:t})})));e.on("check_suite",wrap(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const r=e.payload.check_suite.head_sha;const{owner:i,repo:o}=e.repo();const s=e.payload.action;const a=e.payload.check_suite.pull_requests;const c=e.payload.check_suite.before;const u="check_suite."+s;if(F.includes(s)===false){return}const l=createFileLoader({context:e,owner:i,repo:o,release:n,action:u});const p=createConfigLoader({context:e,owner:i,repo:o,ref:r,release:n,action:u},l);yield handleSchemaDiff({release:n,action:u,context:e,ref:r,repo:o,owner:i,loadFile:l,loadConfig:p,before:c,pullRequests:a,onError:t})})));e.on("pull_request",wrap(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const r=e.payload.pull_request.head.sha;const i=e.payload.pull_request.number;const{owner:o,repo:s}=e.repo();const a=e.payload.action;const c=[e.payload.pull_request];const u=e.payload.pull_request.base.sha;const l="pull_request."+a;if(["opened","synchronize","edited","labeled","unlabeled"].includes(a)===false){return}const p=createFileLoader({context:e,owner:o,repo:s,release:n,action:l});const f=createConfigLoader({context:e,owner:o,repo:s,ref:r,release:n,action:l},p);yield handleSchemaDiff({release:n,action:l,context:e,ref:r,repo:s,owner:o,loadFile:p,loadConfig:f,before:u,pullRequests:c,pullRequestNumber:i,onError:t})})));e.on("push",wrap(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const r=e.payload.ref;const{owner:i,repo:o}=e.repo();const s=e.payload.before;const a="push";const c=createFileLoader({context:e,owner:i,repo:o,release:n,action:a});const u=createConfigLoader({context:e,owner:i,repo:o,ref:r,release:n,action:a},c);yield handleSchemaChangeNotifications({action:a,release:n,context:e,ref:r,before:s,repo:o,owner:i,loadFile:c,loadConfig:u,onError:t})})))}var C=handleProbot;var k=n(747);var x=n(622);var U=n(129);var G=n(469);function utils_batch(e,t){const n=[];const r=Math.ceil(e.length/t);if(r===0){return[[]]}for(let i=0;i0?n.data[0]:null})}function run(){var e,t;return Object(o.__awaiter)(this,void 0,void 0,function*(){Object(i.info)(`GraphQL Inspector started`);let n=process.env.GITHUB_SHA;const r=getCurrentCommitSha();Object(i.info)(`Ref: ${n}`);Object(i.info)(`Commit SHA: ${r}`);const o=Object(i.getInput)("github-token",{required:true});const s=Object(i.getInput)("name")||$;let a=process.env.GITHUB_WORKSPACE;if(!a){return Object(i.setFailed)("Failed to resolve workspace directory. GITHUB_WORKSPACE is missing")}const c=castToBoolean(Object(i.getInput)("experimental_merge"),true);const u=castToBoolean(Object(i.getInput)("annotations"));const l=castToBoolean(Object(i.getInput)("fail-on-breaking"));const p=Object(i.getInput)("endpoint");const d=Object(i.getInput)("approve-label")||"approved-breaking-change";const m=Object(G.getOctokit)(o);const{owner:h,repo:g}=G.context.repo;const y=yield getAssociatedPullRequest(m,r);Object(i.info)(`Creating a check named "${s}"`);const v=yield m.checks.create({owner:h,repo:g,name:s,head_sha:r,status:"in_progress"});const b=v.data.id;Object(i.info)(`Check ID: ${b}`);const T=Object(i.getInput)("schema",{required:true});const E=fileLoader({octokit:m,owner:h,repo:g});if(!T){Object(i.error)("No `schema` variable");return Object(i.setFailed)("Failed to find `schema` variable")}let[O,w]=T.split(":");if(c&&(y===null||y===void 0?void 0:y.state)=="open"){n=`refs/pull/${y.number}/merge`;a=undefined;Object(i.info)(`EXPERIMENTAL - Using Pull Request ${n}`);const t=(e=y.base)===null||e===void 0?void 0:e.ref;if(t){O=t;Object(i.info)(`EXPERIMENTAL - Using ${t} as base schema ref`)}}if(p){w=T}const _=p&&w.startsWith("http");const[S,N]=yield Promise.all([p?printSchemaFromEndpoint(p):E({ref:O,path:w}),_?printSchemaFromEndpoint(w):E({path:w,ref:n,workspace:a})]);Object(i.info)("Got both sources");let D;let A;let I;if(Object(x.extname)(w.toLowerCase())===".json"){D=p?Object(f.buildSchema)(S):Object(f.buildClientSchema)(JSON.parse(S));A=Object(f.buildClientSchema)(JSON.parse(N));I={old:new f.Source(Object(f.printSchema)(D),p||`${O}:${w}`),new:new f.Source(Object(f.printSchema)(A),w)}}else{I={old:new f.Source(S,p||`${O}:${w}`),new:new f.Source(N,w)};D=produceSchema(I.old);A=produceSchema(I.new)}const j={old:D,new:A};Object(i.info)(`Built both schemas`);Object(i.info)(`Start comparing schemas`);const P=yield helpers_diff_diff({path:w,schemas:j,sources:I});let L=P.conclusion;let F=P.annotations||[];const C=P.changes||[];Object(i.setOutput)("changes",`${C.length||0}`);Object(i.info)(`Changes: ${C.length||0}`);const k=(t=y===null||y===void 0?void 0:y.labels)===null||t===void 0?void 0:t.some(e=>e.name===d);if((l===false||k)&&L===R.Failure){Object(i.info)("FailOnBreaking disabled. Forcing SUCCESS");L=R.Success}if(u===false||_){Object(i.info)(`Anotations are disabled. Skipping annotations...`);F=[]}const U=createSummary(C,100,false);const M=L===R.Failure?"Something is wrong with your schema":"Everything looks good";Object(i.info)(`Conclusion: ${L}`);try{return yield updateCheckRun(m,b,{conclusion:L,output:{title:M,summary:U,annotations:F}})}catch(e){Object(i.error)(e.message||e);const t="Invalid config. Failed to add annotation";yield updateCheckRun(m,b,{conclusion:R.Failure,output:{title:t,summary:t,annotations:[]}});return Object(i.setFailed)(t)}})}function fileLoader({octokit:e,owner:t,repo:n}){const r=`\n query GetFile($repo: String!, $owner: String!, $expression: String!) {\n repository(name: $repo, owner: $owner) {\n object(expression: $expression) {\n ... on Blob {\n isTruncated\n oid\n text\n }\n }\n }\n }\n `;return function loadFile(s){var a,c,u,l,p,f,d,m,h,g,y,v;return Object(o.__awaiter)(this,void 0,void 0,function*(){if(s.workspace){return Object(k.readFileSync)(Object(x.resolve)(s.workspace,s.path),{encoding:"utf-8"})}const o=yield e.graphql(r,{repo:n,owner:t,expression:`${s.ref}:${s.path}`});Object(i.info)(`Query ${s.ref}:${s.path} from ${t}/${n}`);try{if(((c=(a=o===null||o===void 0?void 0:o.repository)===null||a===void 0?void 0:a.object)===null||c===void 0?void 0:c.oid)&&((l=(u=o===null||o===void 0?void 0:o.repository)===null||u===void 0?void 0:u.object)===null||l===void 0?void 0:l.isTruncated)){const r=(f=(p=o===null||o===void 0?void 0:o.repository)===null||p===void 0?void 0:p.object)===null||f===void 0?void 0:f.oid;const i=yield e.git.getBlob({owner:t,repo:n,file_sha:r});if((d=i===null||i===void 0?void 0:i.data)===null||d===void 0?void 0:d.content){return Buffer.from((m=i===null||i===void 0?void 0:i.data)===null||m===void 0?void 0:m.content,"base64").toString("utf-8")}throw new Error("getBlobResponse.data.content is null")}if((g=(h=o===null||o===void 0?void 0:o.repository)===null||h===void 0?void 0:h.object)===null||g===void 0?void 0:g.text){if(((v=(y=o===null||o===void 0?void 0:o.repository)===null||y===void 0?void 0:y.object)===null||v===void 0?void 0:v.isTruncated)===false){return o.repository.object.text}throw new Error("result.repository.object.text is truncated and oid is null")}throw new Error("result.repository.object.text is null")}catch(e){console.log(o);console.error(e);throw new Error(`Failed to load '${s.path}' (ref: ${s.ref})`)}})}}function updateCheckRun(e,t,{conclusion:n,output:r}){return Object(o.__awaiter)(this,void 0,void 0,function*(){Object(i.info)(`Updating check: ${t}`);const{title:s,summary:a,annotations:c=[]}=r;const u=utils_batch(c,50);Object(i.info)(`annotations to be sent: ${c.length}`);yield e.checks.update(Object.assign(Object.assign({check_run_id:t,completed_at:(new Date).toISOString(),status:"completed"},G.context.repo),{conclusion:n,output:{title:s,summary:a}}));try{yield Promise.all(u.map(n=>Object(o.__awaiter)(this,void 0,void 0,function*(){yield e.checks.update(Object.assign(Object.assign({check_run_id:t},G.context.repo),{output:{title:s,summary:a,annotations:n}}));Object(i.info)(`annotations sent (${n.length})`)})))}catch(e){Object(i.error)(`failed to send annotations: ${e}`);throw e}if(n===R.Failure){return Object(i.setFailed)(r.title)}})}function castToBoolean(e,t){if(typeof e==="boolean"){return e}if(e==="true"||e==="false"){return e==="true"}if(typeof t==="boolean"){return t}return true}global.navigator={userAgent:"node.js"};run().catch(e=>{Object(i.setFailed)(e.message||e)})},,,function(e){var t=1e3;var n=t*60;var r=n*60;var i=r*24;var o=i*7;var s=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=i){return Math.round(e/i)+"d"}if(o>=r){return Math.round(e/r)+"h"}if(o>=n){return Math.round(e/n)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=i){return plural(e,o,i,"day")}if(o>=r){return plural(e,o,r,"hour")}if(o>=n){return plural(e,o,n,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+" "+r+(i?"s":"")}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return r.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return r.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return r.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return i.syntaxError}});var r=n(234);var i=n(819);var o=n(635)},,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(35);var i=n(133);var o=n(283);var s=n(946);var a=n(825);var c=n(106);var u=c.validators;function Axios(e){this.defaults=e;this.interceptors={request:new o,response:new o}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=e.transitional;if(t!==undefined){c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},false)}var n=[];var r=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(t){if(typeof t.runWhen==="function"&&t.runWhen(e)===false){return}r=r&&t.synchronous;n.unshift(t.fulfilled,t.rejected)});var i=[];this.interceptors.response.forEach(function pushResponseInterceptors(e){i.push(e.fulfilled,e.rejected)});var o;if(!r){var l=[s,undefined];Array.prototype.unshift.apply(l,n);l=l.concat(i);o=Promise.resolve(e);while(l.length){o=o.then(l.shift(),l.shift())}return o}var p=e;while(n.length){var f=n.shift();var d=n.shift();try{p=f(p)}catch(e){d(e);break}}try{o=s(p)}catch(e){return Promise.reject(e)}while(i.length){o=o.then(i.shift(),i.shift())}return o};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};r.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}});r.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}});e.exports=Axios},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return i.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return i.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return i.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return i.executeSync}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return s.getDirectiveValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return r.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var r=n(691);var i=n(466);var o=n(136);var s=n(740)},,,,function(e,t,n){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(794)}else{e.exports=n(81)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var r=n(932);var i=n(166);var o=n(466);var s=n(462);function introspectionFromSchema(e,t){const n={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,...t};const a=(0,i.parse)((0,s.getIntrospectionQuery)(n));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,r.invariant)(false);return c.data}},,,,,,,,function(e,t,n){t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}r++;if(e==="%c"){i=r}});t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(486)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var r=n(393);var i=n(947);var o=n(326);var s=n(577);var a=n(234);var c=n(75);const u=2147483647;const l=-2147483648;const p=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let n=t;if(typeof t==="string"&&t!==""){n=Number(t)}if(typeof n!=="number"||!Number.isInteger(n)){throw new a.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`)}if(n>u||nu||eu||te.name===t)}function serializeObject(e){if((0,i.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,i.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var r=n(881);var i=n(234);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const n=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,n)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const n=e.name.value;const r=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of r){var i;const t=e.name.value;const r=(i=e.arguments)!==null&&i!==void 0?i:[];checkArgUniqueness(`${n}.${t}`,r)}return false}function checkArgUniqueness(t,n){const o=(0,r.groupBy)(n,e=>e.name.value);for(const[n,r]of o){if(r.length>1){e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,r.map(e=>e.name)))}}return false}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var r=n(234);function syntaxError(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,undefined,e,[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var r=n(876);var i=n(393);var o=n(932);var s=n(326);var a=n(75);function valueFromAST(e,t,n){if(!e){return}if(e.kind===s.Kind.VARIABLE){const r=e.name.value;if(n==null||n[r]===undefined){return}const i=n[r];if(i===null&&(0,a.isNonNullType)(t)){return}return i}if((0,a.isNonNullType)(t)){if(e.kind===s.Kind.NULL){return}return valueFromAST(e,t.ofType,n)}if(e.kind===s.Kind.NULL){return null}if((0,a.isListType)(t)){const r=t.ofType;if(e.kind===s.Kind.LIST){const t=[];for(const i of e.values){if(isMissingVariable(i,n)){if((0,a.isNonNullType)(r)){return}t.push(null)}else{const e=valueFromAST(i,r,n);if(e===undefined){return}t.push(e)}}return t}const i=valueFromAST(e,r,n);if(i===undefined){return}return[i]}if((0,a.isInputObjectType)(t)){if(e.kind!==s.Kind.OBJECT){return}const i=Object.create(null);const o=(0,r.keyMap)(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=o[e.name];if(!t||isMissingVariable(t.value,n)){if(e.defaultValue!==undefined){i[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const r=valueFromAST(t.value,e.type,n);if(r===undefined){return}i[e.name]=r}return i}if((0,a.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(r===undefined){return}return r}false||(0,o.invariant)(false,"Unexpected input type: "+(0,i.inspect)(t))}function isMissingVariable(e,t){return e.kind===s.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var r=n(876);var i=n(393);var o=n(372);var s=n(932);var a=n(371);var c=n(326);var u=n(123);var l=n(625);var p=n(740);var f=n(742);var d=n(810);var m=n(754);var h=n(134);var g=n(75);var y=n(820);function extendSchema(e,t,n){(0,f.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,a.devAssert)(false,"Must provide valid Document AST.");if((n===null||n===void 0?void 0:n.assumeValid)!==true&&(n===null||n===void 0?void 0:n.assumeValidSDL)!==true){(0,l.assertValidSDLExtension)(t,e)}const r=e.toConfig();const i=extendSchemaImpl(r,t,n);return r===i?e:new f.GraphQLSchema(i)}function extendSchemaImpl(e,t,n){var r,a,l,p;const f=[];const b=Object.create(null);const T=[];let E;const O=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){E=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){O.push(e)}else if((0,u.isTypeDefinitionNode)(e)){f.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const n=b[t];b[t]=n?n.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){T.push(e)}}if(Object.keys(b).length===0&&f.length===0&&T.length===0&&O.length===0&&E==null){return e}const w=Object.create(null);for(const t of e.types){w[t.name]=extendNamedType(t)}for(const e of f){var _;const t=e.name.value;w[t]=(_=v[t])!==null&&_!==void 0?_:buildType(e)}const S={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...E&&getOperationTypes([E]),...getOperationTypes(O)};return{description:(r=E)===null||r===void 0?void 0:(a=r.description)===null||a===void 0?void 0:a.value,...S,types:Object.values(w),directives:[...e.directives.map(replaceDirective),...T.map(buildDirective)],extensions:Object.create(null),astNode:(l=E)!==null&&l!==void 0?l:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(O),assumeValid:(p=n===null||n===void 0?void 0:n.assumeValid)!==null&&p!==void 0?p:false};function replaceType(e){if((0,g.isListType)(e)){return new g.GraphQLList(replaceType(e.ofType))}if((0,g.isNonNullType)(e)){return new g.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return w[e.name]}function replaceDirective(e){const t=e.toConfig();return new h.GraphQLDirective({...t,args:(0,o.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,m.isIntrospectionType)(e)||(0,d.isSpecifiedScalarType)(e)){return e}if((0,g.isScalarType)(e)){return extendScalarType(e)}if((0,g.isObjectType)(e)){return extendObjectType(e)}if((0,g.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,g.isUnionType)(e)){return extendUnionType(e)}if((0,g.isEnumType)(e)){return extendEnumType(e)}if((0,g.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,i.inspect)(e))}function extendInputObjectType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];return new g.GraphQLInputObjectType({...n,fields:()=>({...(0,o.mapValue)(n.fields,e=>({...e,type:replaceType(e.type)})),...buildInputFieldMap(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendEnumType(e){var t;const n=e.toConfig();const r=(t=b[e.name])!==null&&t!==void 0?t:[];return new g.GraphQLEnumType({...n,values:{...n.values,...buildEnumValueMap(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendScalarType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:i}return new g.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendObjectType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];return new g.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(r)],fields:()=>({...(0,o.mapValue)(n.fields,extendField),...buildFieldMap(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendInterfaceType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];return new g.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(r)],fields:()=>({...(0,o.mapValue)(n.fields,extendField),...buildFieldMap(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendUnionType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];return new g.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,o.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const r of e){var n;const e=(n=r.operationTypes)!==null&&n!==void 0?n:[];for(const n of e){t[n.operation]=getNamedType(n.type)}}return t}function getNamedType(e){var t;const n=e.name.value;const r=(t=v[n])!==null&&t!==void 0?t:w[n];if(r===undefined){throw new Error(`Unknown type: "${n}".`)}return r}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new g.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new g.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new h.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const i of e){var n;const e=(n=i.fields)!==null&&n!==void 0?n:[];for(const n of e){var r;t[n.name.value]={type:getWrappedType(n.type),description:(r=n.description)===null||r===void 0?void 0:r.value,args:buildArgumentMap(n.arguments),deprecationReason:getDeprecationReason(n),astNode:n}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const n=Object.create(null);for(const e of t){var r;const t=getWrappedType(e.type);n[e.name.value]={type:t,description:(r=e.description)===null||r===void 0?void 0:r.value,defaultValue:(0,y.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return n}function buildInputFieldMap(e){const t=Object.create(null);for(const i of e){var n;const e=(n=i.fields)!==null&&n!==void 0?n:[];for(const n of e){var r;const e=getWrappedType(n.type);t[n.name.value]={type:e,description:(r=n.description)===null||r===void 0?void 0:r.value,defaultValue:(0,y.valueFromAST)(n.defaultValue,e),deprecationReason:getDeprecationReason(n),astNode:n}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const i of e){var n;const e=(n=i.values)!==null&&n!==void 0?n:[];for(const n of e){var r;t[n.name.value]={description:(r=n.description)===null||r===void 0?void 0:r.value,deprecationReason:getDeprecationReason(n),astNode:n}}}return t}function buildInterfaces(e){return e.flatMap(e=>{var t,n;return(t=(n=e.interfaces)===null||n===void 0?void 0:n.map(getNamedType))!==null&&t!==void 0?t:[]})}function buildUnionTypes(e){return e.flatMap(e=>{var t,n;return(t=(n=e.types)===null||n===void 0?void 0:n.map(getNamedType))!==null&&t!==void 0?t:[]})}function buildType(e){var t;const n=e.name.value;const r=(t=b[n])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var o;const t=[e,...r];return new g.GraphQLObjectType({name:n,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:r})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var a;const t=[e,...r];return new g.GraphQLInterfaceType({name:n,description:(a=e.description)===null||a===void 0?void 0:a.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:r})}case c.Kind.ENUM_TYPE_DEFINITION:{var u;const t=[e,...r];return new g.GraphQLEnumType({name:n,description:(u=e.description)===null||u===void 0?void 0:u.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:r})}case c.Kind.UNION_TYPE_DEFINITION:{var l;const t=[e,...r];return new g.GraphQLUnionType({name:n,description:(l=e.description)===null||l===void 0?void 0:l.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:r})}case c.Kind.SCALAR_TYPE_DEFINITION:{var p;return new g.GraphQLScalarType({name:n,description:(p=e.description)===null||p===void 0?void 0:p.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:r})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var f;const t=[e,...r];return new g.GraphQLInputObjectType({name:n,description:(f=e.description)===null||f===void 0?void 0:f.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:r})}}false||(0,s.invariant)(false,"Unexpected type definition node: "+(0,i.inspect)(e))}}const v=(0,r.keyMap)([...d.specifiedScalarTypes,...m.introspectionTypes],e=>e.name);function getDeprecationReason(e){const t=(0,p.getDirectiveValues)(h.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,p.getDirectiveValues)(h.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}},,function(e,t,n){"use strict";var r=n(35);e.exports=function mergeConfig(e,t){t=t||{};var n={};var i=["url","method","data"];var o=["headers","auth","proxy","params"];var s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var a=["validateStatus"];function getMergedValue(e,t){if(r.isPlainObject(e)&&r.isPlainObject(t)){return r.merge(e,t)}else if(r.isPlainObject(t)){return r.merge({},t)}else if(r.isArray(t)){return t.slice()}return t}function mergeDeepProperties(i){if(!r.isUndefined(t[i])){n[i]=getMergedValue(e[i],t[i])}else if(!r.isUndefined(e[i])){n[i]=getMergedValue(undefined,e[i])}}r.forEach(i,function valueFromConfig2(e){if(!r.isUndefined(t[e])){n[e]=getMergedValue(undefined,t[e])}});r.forEach(o,mergeDeepProperties);r.forEach(s,function defaultToConfig2(i){if(!r.isUndefined(t[i])){n[i]=getMergedValue(undefined,t[i])}else if(!r.isUndefined(e[i])){n[i]=getMergedValue(undefined,e[i])}});r.forEach(a,function merge(r){if(r in t){n[r]=getMergedValue(e[r],t[r])}else if(r in e){n[r]=getMergedValue(undefined,e[r])}});var c=i.concat(o).concat(s).concat(a);var u=Object.keys(e).concat(Object.keys(t)).filter(function filterAxiosKeys(e){return c.indexOf(e)===-1});r.forEach(u,mergeDeepProperties);return n}},function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},,,,,,,,,function(e){e.exports=require("url")},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var r=n(393);var i=n(234);var o=n(156);var s=n(441);var a=n(742);var c=n(754);var u=n(134);var l=n(75);function validateSchema(e){(0,a.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const n=t.getErrors();e.__validationErrors=n;return n}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map(e=>e.message).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,n))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const n=t.getQueryType();if(!n){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,l.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,(i=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&i!==void 0?i:n.astNode)}const s=t.getMutationType();if(s&&!(0,l.isObjectType)(s)){var a;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,r.inspect)(s)}.`,(a=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:s.astNode)}const c=t.getSubscriptionType();if(c&&!(0,l.isObjectType)(c)){var u;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,r.inspect)(c)}.`,(u=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:c.astNode)}}function getOperationTypeNode(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]}).find(e=>e.operation===t))===null||n===void 0?void 0:n.type}function validateDirectives(e){for(const n of e.schema.getDirectives()){if(!(0,u.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,n===null||n===void 0?void 0:n.astNode);continue}validateName(e,n);for(const i of n.args){validateName(e,i);if(!(0,l.isInputType)(i.type)){e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type `+`but got: ${(0,r.inspect)(i.type)}.`,i.astNode)}if((0,l.isRequiredArgument)(i)&&i.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(t=i.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const n=e.schema.getTypeMap();for(const i of Object.values(n)){if(!(0,l.isNamedType)(i)){e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode);continue}if(!(0,c.isIntrospectionType)(i)){validateName(e,i)}if((0,l.isObjectType)(i)){validateFields(e,i);validateInterfaces(e,i)}else if((0,l.isInterfaceType)(i)){validateFields(e,i);validateInterfaces(e,i)}else if((0,l.isUnionType)(i)){validateUnionMembers(e,i)}else if((0,l.isEnumType)(i)){validateEnumValues(e,i)}else if((0,l.isInputObjectType)(i)){validateInputFields(e,i);t(i)}}}function validateFields(e,t){const n=Object.values(t.getFields());if(n.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const a of n){validateName(e,a);if(!(0,l.isOutputType)(a.type)){var i;e.reportError(`The type of ${t.name}.${a.name} must be Output Type `+`but got: ${(0,r.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}for(const n of a.args){const i=n.name;validateName(e,n);if(!(0,l.isInputType)(n.type)){var o;e.reportError(`The type of ${t.name}.${a.name}(${i}:) must be Input `+`Type but got: ${(0,r.inspect)(n.type)}.`,(o=n.astNode)===null||o===void 0?void 0:o.type)}if((0,l.isRequiredArgument)(n)&&n.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${a.name}(${i}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(n.astNode),(s=n.astNode)===null||s===void 0?void 0:s.type])}}}}function validateInterfaces(e,t){const n=Object.create(null);for(const i of t.getInterfaces()){if(!(0,l.isInterfaceType)(i)){e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,r.inspect)(i)}.`,getAllImplementsInterfaceNodes(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,i));continue}if(n[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,getAllImplementsInterfaceNodes(t,i));continue}n[i.name]=true;validateTypeImplementsAncestors(e,t,i);validateTypeImplementsInterface(e,t,i)}}function validateTypeImplementsInterface(e,t,n){const i=t.getFields();for(const p of Object.values(n.getFields())){const f=p.name;const d=i[f];if(!d){e.reportError(`Interface field ${n.name}.${f} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,s.isTypeSubTypeOf)(e.schema,d.type,p.type)){var o,a;e.reportError(`Interface field ${n.name}.${f} expects type `+`${(0,r.inspect)(p.type)} but ${t.name}.${f} `+`is type ${(0,r.inspect)(d.type)}.`,[(o=p.astNode)===null||o===void 0?void 0:o.type,(a=d.astNode)===null||a===void 0?void 0:a.type])}for(const i of p.args){const o=i.name;const a=d.args.find(e=>e.name===o);if(!a){e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expected but ${t.name}.${f} does not provide it.`,[i.astNode,d.astNode]);continue}if(!(0,s.isEqualType)(i.type,a.type)){var c,u;e.reportError(`Interface field argument ${n.name}.${f}(${o}:) `+`expects type ${(0,r.inspect)(i.type)} but `+`${t.name}.${f}(${o}:) is type `+`${(0,r.inspect)(a.type)}.`,[(c=i.astNode)===null||c===void 0?void 0:c.type,(u=a.astNode)===null||u===void 0?void 0:u.type])}}for(const r of d.args){const i=r.name;const o=p.args.find(e=>e.name===i);if(!o&&(0,l.isRequiredArgument)(r)){e.reportError(`Object field ${t.name}.${f} includes required argument ${i} that is missing from the Interface field ${n.name}.${f}.`,[r.astNode,p.astNode])}}}}function validateTypeImplementsAncestors(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces()){if(!r.includes(i)){e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...getAllImplementsInterfaceNodes(n,i),...getAllImplementsInterfaceNodes(t,n)])}}}function validateUnionMembers(e,t){const n=t.getTypes();if(n.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const i=Object.create(null);for(const o of n){if(i[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}i[o.name]=true;if(!(0,l.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,r.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const n=t.getValues();if(n.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of n){validateName(e,t)}}function validateInputFields(e,t){const n=Object.values(t.getFields());if(n.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const s of n){validateName(e,s);if(!(0,l.isInputType)(s.type)){var i;e.reportError(`The type of ${t.name}.${s.name} must be Input Type `+`but got: ${(0,r.inspect)(s.type)}.`,(i=s.astNode)===null||i===void 0?void 0:i.type)}if((0,l.isRequiredInputField)(s)&&s.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(o=s.astNode)===null||o===void 0?void 0:o.type])}}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const n=[];const r=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(i){if(t[i.name]){return}t[i.name]=true;r[i.name]=n.length;const o=Object.values(i.getFields());for(const t of o){if((0,l.isNonNullType)(t.type)&&(0,l.isInputObjectType)(t.type.ofType)){const i=t.type.ofType;const o=r[i.name];n.push(t);if(o===undefined){detectCycleRecursive(i)}else{const t=n.slice(o);const r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${i.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}}r[i.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:n,extensionASTNodes:r}=e;const i=n!=null?[n,...r]:r;return i.flatMap(e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]}).filter(e=>e.name.value===t.name)}function getUnionMemberTypeNodes(e,t){const{astNode:n,extensionASTNodes:r}=e;const i=n!=null?[n,...r]:r;return i.flatMap(e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]}).filter(e=>e.name.value===t)}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find(e=>e.name.value===u.GraphQLDeprecatedDirective.name)}},,,,function(e){"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var n,r,i,o;if(t){o=Object.keys(t);for(n=0,r=o.length;n=55296&&n<=56319&&t+1=56320&&r<=57343){return(n-55296)*1024+r-56320+65536}}return n}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var U=1,G=2,$=3,M=4,V=5;function chooseScalarStyle(e,t,n,r,i,o,s,a){var c;var u=0;var p=null;var f=false;var d=false;var m=r!==-1;var h=-1;var g=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||s){for(c=0;c=65536?c+=2:c++){u=codePointAt(e,c);if(!isPrintable(u)){return V}g=g&&isPlainSafe(u,p,a);p=u}}else{for(c=0;c=65536?c+=2:c++){u=codePointAt(e,c);if(u===l){f=true;if(m){d=d||c-h-1>r&&e[h+1]!==" ";h=c}}else if(!isPrintable(u)){return V}g=g&&isPlainSafe(u,p,a);p=u}d=d||m&&(c-h-1>r&&e[h+1]!==" ")}if(!f&&!d){if(g&&!s&&!i(e)){return U}return o===x?V:G}if(n>9&&needIndentIndicator(e)){return V}if(!s){return d?M:$}return o===x?V:G}function writeScalar(e,t,n,r,o){e.dump=function(){if(t.length===0){return e.quotingType===x?'""':"''"}if(!e.noCompatMode){if(F.indexOf(t)!==-1||C.test(t)){return e.quotingType===x?'"'+t+'"':"'"+t+"'"}}var s=e.indent*Math.max(1,n);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var c=r||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!r,o)){case U:return t;case G:return"'"+t.replace(/'/g,"''")+"'";case $:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,s));case M:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),s));case V:return'"'+escapeString(t,a)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):"";var r=e[e.length-1]==="\n";var i=r&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":r?"":"-";return n+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var n=/(\n+)([^\n]*)/g;var r=function(){var r=e.indexOf("\n");r=r!==-1?r:e.length;n.lastIndex=r;return foldLine(e.slice(0,r),t)}();var i=e[0]==="\n"||e[0]===" ";var o;var s;while(s=n.exec(e)){var a=s[1],c=s[2];o=c[0]===" ";r+=a+(!i&&!o&&c!==""?"\n":"")+foldLine(c,t);i=o}return r}function foldLine(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var r;var i=0,o,s=0,a=0;var c="";while(r=n.exec(e)){a=r.index;if(a-i>t){o=s>i?s:a;c+="\n"+e.slice(i,o);i=o+1}s=a}c+="\n";if(e.length-i>t&&s>i){c+=e.slice(i,s)+"\n"+e.slice(s+1)}else{c+=e.slice(i)}return c.slice(1)}function escapeString(e){var t="";var n=0;var r;for(var i=0;i=65536?i+=2:i++){n=codePointAt(e,i);r=L[n];if(!r&&isPrintable(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=r||encodeHex(n)}}return t}function writeFlowSequence(e,t,n){var r="",i=e.tag,o,s,a;for(o=0,s=n.length;o1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,u,false,false)){continue}l+=e.dump;r+=l}e.tag=i;e.dump="{"+r+"}"}function writeBlockMapping(e,t,n,r){var o="",s=e.tag,a=Object.keys(n),c,u,p,f,d,m;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(c=0,u=a.length;c1024;if(d){if(e.dump&&l===e.dump.charCodeAt(0)){m+="?"}else{m+="? "}}m+=e.dump;if(d){m+=generateNextLine(e,t)}if(!writeNode(e,t+1,f,true,d)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){m+=":"}else{m+=": "}m+=e.dump;o+=m}e.tag=s;e.dump=o||"{}"}function detectType(e,t,n){var r,o,c,u,l,p;o=n?e.explicitTypes:e.implicitTypes;for(c=0,u=o.length;c tag resolver accepts not "'+p+'" style')}e.dump=r}return true}}return false}function writeNode(e,t,n,r,o,a,c){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var u=s.call(e.dump);var l=r;var p;if(r){r=e.flowLevel<0||e.flowLevel>t}var f=u==="[object Object]"||u==="[object Array]",d,m;if(f){d=e.duplicates.indexOf(n);m=d!==-1}if(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0){o=false}if(m&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(f&&m&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(u==="[object Object]"){if(r&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(m){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(m){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object Array]"){if(r&&e.dump.length!==0){if(e.noArrayIndent&&!c&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(m){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(m){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,l)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){p="!"+p}else if(p.slice(0,18)==="tag:yaml.org,2002:"){p="!!"+p.slice(18)}else{p="!<"+p+">"}e.dump=p+" "+e.dump}}return true}function getDuplicateReferences(e,t){var n=[],r=[],i,o;inspectNode(e,n,r);for(i=0,o=r.length;i64)continue;if(t<0)return false;r+=6}return r%8===0}function constructYamlBinary(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,s=i,a=0,c=[];for(t=0;t>16&255);c.push(a>>8&255);c.push(a&255)}a=a<<6|s.indexOf(r.charAt(t))}n=o%4*6;if(n===0){c.push(a>>16&255);c.push(a>>8&255);c.push(a&255)}else if(n===18){c.push(a>>10&255);c.push(a>>2&255)}else if(n===12){c.push(a>>4&255)}return new Uint8Array(c)}function representYamlBinary(e){var t="",n=0,r,o,s=e.length,a=i;for(r=0;r>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}n=(n<<8)+e[r]}o=s%3;if(o===0){t+=a[n>>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}else if(o===2){t+=a[n>>10&63];t+=a[n>>4&63];t+=a[n<<2&63];t+=a[64]}else if(o===1){t+=a[n>>2&63];t+=a[n<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var r=n(326);var i=n(386);function separateOperations(e){const t=[];const n=Object.create(null);for(const i of e.definitions){switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=collectDependencies(i.selectionSet);break}}const i=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,n,e)}const s=o.name?o.name.value:"";i[s]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter(e=>e===o||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return i}function collectTransitiveDependencies(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==undefined){for(const n of r){collectTransitiveDependencies(e,t,n)}}}}function collectDependencies(e){const t=[];(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},,function(e,t,n){e.exports=n(141)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,n){const r=Object.create(null);for(const i of e){r[t(i)]=n(i)}return r}},,,,,,,function(e,t,n){"use strict";var r=n(35);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t));if(r.isNumber(n)){a.push("expires="+new Date(n).toGMTString())}if(r.isString(i)){a.push("path="+i)}if(r.isString(o)){a.push("domain="+o)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},,,function(e){e.exports=require("tty")},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const n=5;function didYouMean(e,t){const[r,i]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(r){o+=r+" "}const s=i.map(e=>`"${e}"`);switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}const a=s.slice(0,n);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const n=Object.create(null);for(const r of e){n[t(r)]=r}return n}},,,function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const n=new Map;for(const r of e){const e=t(r);const i=n.get(e);if(i===undefined){n.set(e,[r])}else{i.push(r)}}return n}},function(e,t,n){"use strict";var r=n(755);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var r=n(393);var i=n(234);var o=n(75);function ScalarLeafsRule(e){return{Field(t){const n=e.getType();const s=t.selectionSet;if(n){if((0,o.isLeafType)((0,o.getNamedType)(n))){if(s){const o=t.name.value;const a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,s))}}else if(!s){const o=t.name.value;const s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${s}" must have a selection of subfields. Did you mean "${o} { ... }"?`,t))}}}}}},,function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(3);var i=n(796);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,n)=>{t[n.toLowerCase()]=e[n];return t},{})}function mergeDeep(e,t){const n=Object.assign({},e);Object.keys(t).forEach(i=>{if(r.isPlainObject(t[i])){if(!(i in e))Object.assign(n,{[i]:t[i]});else n[i]=mergeDeep(e[i],t[i])}else{Object.assign(n,{[i]:t[i]})}});return n}function merge(e,t,n){if(typeof t==="string"){let[e,r]=t.split(" ");n=Object.assign(r?{method:e,url:r}:{url:e},n)}else{n=Object.assign({},t)}n.headers=lowercaseKeys(n.headers);const r=mergeDeep(e||{},n);if(e&&e.mediaType.previews.length){r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)}r.mediaType.previews=r.mediaType.previews.map(e=>e.replace(/-preview/,""));return r}function addQueryParameters(e,t){const n=/\?/.test(e)?"&":"?";const r=Object.keys(t);if(r.length===0){return e}return e+n+r.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const o=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(o);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>{t[n]=e[n];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,n){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(n){return encodeUnreserved(n)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,n,r){var i=e[n],o=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(r&&r!=="*"){i=i.substring(0,parseInt(r,10))}o.push(encodeValue(t,i,isKeyOperator(t)?n:""))}else{if(r==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){o.push(encodeValue(t,e,isKeyOperator(t)?n:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){o.push(encodeValue(t,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(n){e.push(encodeValue(t,n))})}else{Object.keys(i).forEach(function(n){if(isDefined(i[n])){e.push(encodeUnreserved(n));e.push(encodeValue(t,i[n].toString()))}})}if(isKeyOperator(t)){o.push(encodeUnreserved(n)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){o.push(encodeUnreserved(n))}}else if(i===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(n)+"=")}else if(i===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var n=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e="";const i=[];if(n.indexOf(r.charAt(0))!==-1){e=r.charAt(0);r=r.substr(1)}r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(getValues(t,e,r[1],r[2]||r[3]))});if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(i.length!==0?e:"")+i.join(o)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let t=e.method.toUpperCase();let n=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let r=Object.assign({},e.headers);let i;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const s=extractUrlVariableNames(n);n=parseUrl(n).expand(o);if(!/^http/.test(n)){n=e.baseUrl+n}const a=Object.keys(e).filter(e=>s.includes(e)).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(r.accept);if(!u){if(e.mediaType.format){r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.accept=t.concat(e.mediaType.previews).map(t=>{const n=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${n}`}).join(",")}}if(["GET","HEAD"].includes(t)){n=addQueryParameters(n,c)}else{if("data"in c){i=c.data}else{if(Object.keys(c).length){i=c}else{r["content-length"]=0}}}if(!r["content-type"]&&typeof i!=="undefined"){r["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:n,headers:r},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,n){return parse(merge(e,t,n))}function withDefaults(e,t){const n=merge(e,t);const r=endpointWithDefaults.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:withDefaults.bind(null,n),merge:merge.bind(null,n),parse:parse})}const s="6.0.6";const a=`octokit-endpoint.js/${s} ${i.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const u=withDefaults(null,c);t.endpoint=u},,,,,,,,,,,function(e){e.exports=require("zlib")},,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map(e=>typeof e==="number"?"["+e.toString()+"]":"."+e).join("")}},,,,,,,,,function(e,t,n){"use strict";var r=n(755);var i=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],n,r,s,a,c,u=e;for(n=0,r=u.length;ne.trim().toUpperCase()).filter(e=>e)){if(r.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},,,,,,,,,,function(e,t,n){"use strict";var r=n(590);var i=n(887);e.exports=function buildFullPath(e,t){if(e&&!r(t)){return i(e,t)}return t}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var r=n(326);var i=n(134);var o=n(75);var s=n(72);var a=n(740);function collectFields(e,t,n,r,i){const o=new Map;collectFieldsImpl(e,t,n,r,i,o,new Set);return o}function collectSubfields(e,t,n,r,i){const o=new Map;const s=new Set;for(const a of i){if(a.selectionSet){collectFieldsImpl(e,t,n,r,a.selectionSet,o,s)}}return o}function collectFieldsImpl(e,t,n,i,o,s,a){for(const c of o.selections){switch(c.kind){case r.Kind.FIELD:{if(!shouldIncludeNode(n,c)){continue}const e=getFieldEntryKey(c);const t=s.get(e);if(t!==undefined){t.push(c)}else{s.set(e,[c])}break}case r.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(n,c)||!doesFragmentConditionMatch(e,c,i)){continue}collectFieldsImpl(e,t,n,i,c.selectionSet,s,a);break}case r.Kind.FRAGMENT_SPREAD:{const r=c.name.value;if(a.has(r)||!shouldIncludeNode(n,c)){continue}a.add(r);const o=t[r];if(!o||!doesFragmentConditionMatch(e,o,i)){continue}collectFieldsImpl(e,t,n,i,o.selectionSet,s,a);break}}}}function shouldIncludeNode(e,t){const n=(0,a.getDirectiveValues)(i.GraphQLSkipDirective,t,e);if((n===null||n===void 0?void 0:n.if)===true){return false}const r=(0,a.getDirectiveValues)(i.GraphQLIncludeDirective,t,e);if((r===null||r===void 0?void 0:r.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,n){const r=t.typeCondition;if(!r){return true}const i=(0,s.typeFromAST)(e,r);if(i===n){return true}if((0,o.isAbstractType)(i)){return e.isSubType(i,n)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var r=n(881);var i=n(234);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var n;const o=(n=t.variableDefinitions)!==null&&n!==void 0?n:[];const s=(0,r.groupBy)(o,e=>e.variable.name.value);for(const[t,n]of s){if(n.length>1){e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,n.map(e=>e.variable.name)))}}}}}},,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var r=n(892);var i=n(796);var o=n(847);var s=_interopDefault(n(724));var a=n(463);const c="5.4.9";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(o.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let n;let r;const i=e.request&&e.request.fetch||s;return i(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(i=>{r=i.url;n=i.status;for(const e of i.headers){t[e[0]]=e[1]}if(n===204||n===205){return}if(e.method==="HEAD"){if(n<400){return}throw new a.RequestError(i.statusText,n,{headers:t,request:e})}if(n===304){throw new a.RequestError("Not modified",n,{headers:t,request:e})}if(n>=400){return i.text().then(r=>{const i=new a.RequestError(r,n,{headers:t,request:e});try{let e=JSON.parse(i.message);Object.assign(i,e);let t=e.errors;i.message=i.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw i})}const o=i.headers.get("content-type");if(/application\/json/.test(o)){return i.json()}if(!o||/^text\/|charset=utf-8$/.test(o)){return i.text()}return getBufferResponse(i)}).then(e=>{return{status:n,url:r,headers:t,data:e}}).catch(n=>{if(n instanceof a.RequestError){throw n}throw new a.RequestError(n.message,500,{headers:t,request:e})})}function withDefaults(e,t){const n=e.defaults(t);const r=function(e,t){const r=n.merge(e,t);if(!r.request||!r.request.hook){return fetchWrapper(n.parse(r))}const i=(e,t)=>{return fetchWrapper(n.parse(n.merge(e,t)))};Object.assign(i,{endpoint:n,defaults:withDefaults.bind(null,n)});return r.request.hook(i,r)};return Object.assign(r,{endpoint:n,defaults:withDefaults.bind(null,n)})}const u=withDefaults(r.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${i.getUserAgent()}`}});t.request=u}],function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){var t=Object.prototype.hasOwnProperty;e.d=function(e,n,r){if(!t.call(e,n)){Object.defineProperty(e,n,{enumerable:true,get:r})}}}();!function(){e.t=function(t,n){if(n&1)t=this(t);if(n&8)return t;if(n&4&&typeof t==="object"&&t&&t.__esModule)return t;var r=Object.create(null);e.r(r);Object.defineProperty(r,"default",{enumerable:true,value:t});if(n&2&&typeof t!="string")for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r}}();!function(){e.n=function(t){var n=t&&t.__esModule?function getDefault(){return t["default"]}:function getModuleExports(){return t};e.d(n,"a",n);return n}}()}); \ No newline at end of file +module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var r=n[t]={i:t,l:false,exports:{}};var i=true;try{e[t].call(r.exports,r,r.exports,__webpack_require__);i=false}finally{if(i)delete n[t]}r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(758)}t(__webpack_require__);return startup()}([,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,n;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;n=t.prototype;if(isObject(n)===false)return false;if(n.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},,function(e,t){function createDFS(e,t,n,i){var o={};return function(s){if(o[s]){return}var a={};var c=[];var u=[];u.push({node:s,processed:false});while(u.length>0){var l=u[u.length-1];var p=l.processed;var f=l.node;if(!p){if(o[f]){u.pop();continue}else if(a[f]){if(i){u.pop();continue}c.push(f);throw new r(c)}a[f]=true;c.push(f);var d=e[f];for(var m=d.length-1;m>=0;m--){u.push({node:d[m],processed:false})}l.processed=true}else{u.pop();c.pop();a[f]=false;o[f]=true;if(!t||e[f].length===0){n.push(f)}}}}}var n=t.DepGraph=function DepGraph(e){this.nodes={};this.outgoingEdges={};this.incomingEdges={};this.circular=e&&!!e.circular};n.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(e,t){if(!this.hasNode(e)){if(arguments.length===2){this.nodes[e]=t}else{this.nodes[e]=e}this.outgoingEdges[e]=[];this.incomingEdges[e]=[]}},removeNode:function(e){if(this.hasNode(e)){delete this.nodes[e];delete this.outgoingEdges[e];delete this.incomingEdges[e];[this.incomingEdges,this.outgoingEdges].forEach(function(t){Object.keys(t).forEach(function(n){var r=t[n].indexOf(e);if(r>=0){t[n].splice(r,1)}},this)})}},hasNode:function(e){return this.nodes.hasOwnProperty(e)},getNodeData:function(e){if(this.hasNode(e)){return this.nodes[e]}else{throw new Error("Node does not exist: "+e)}},setNodeData:function(e,t){if(this.hasNode(e)){this.nodes[e]=t}else{throw new Error("Node does not exist: "+e)}},addDependency:function(e,t){if(!this.hasNode(e)){throw new Error("Node does not exist: "+e)}if(!this.hasNode(t)){throw new Error("Node does not exist: "+t)}if(this.outgoingEdges[e].indexOf(t)===-1){this.outgoingEdges[e].push(t)}if(this.incomingEdges[t].indexOf(e)===-1){this.incomingEdges[t].push(e)}return true},removeDependency:function(e,t){var n;if(this.hasNode(e)){n=this.outgoingEdges[e].indexOf(t);if(n>=0){this.outgoingEdges[e].splice(n,1)}}if(this.hasNode(t)){n=this.incomingEdges[t].indexOf(e);if(n>=0){this.incomingEdges[t].splice(n,1)}}},clone:function(){var e=this;var t=new n;var r=Object.keys(e.nodes);r.forEach(function(n){t.nodes[n]=e.nodes[n];t.outgoingEdges[n]=e.outgoingEdges[n].slice(0);t.incomingEdges[n]=e.incomingEdges[n].slice(0)});return t},directDependenciesOf:function(e){if(this.hasNode(e)){return this.outgoingEdges[e].slice(0)}else{throw new Error("Node does not exist: "+e)}},directDependantsOf:function(e){if(this.hasNode(e)){return this.incomingEdges[e].slice(0)}else{throw new Error("Node does not exist: "+e)}},dependenciesOf:function(e,t){if(this.hasNode(e)){var n=[];var r=createDFS(this.outgoingEdges,t,n,this.circular);r(e);var i=n.indexOf(e);if(i>=0){n.splice(i,1)}return n}else{throw new Error("Node does not exist: "+e)}},dependantsOf:function(e,t){if(this.hasNode(e)){var n=[];var r=createDFS(this.incomingEdges,t,n,this.circular);r(e);var i=n.indexOf(e);if(i>=0){n.splice(i,1)}return n}else{throw new Error("Node does not exist: "+e)}},overallOrder:function(e){var t=this;var n=[];var r=Object.keys(this.nodes);if(r.length===0){return n}else{if(!this.circular){var i=createDFS(this.outgoingEdges,false,[],this.circular);r.forEach(function(e){i(e)})}var o=createDFS(this.outgoingEdges,e,n,this.circular);r.filter(function(e){return t.incomingEdges[e].length===0}).forEach(function(e){o(e)});if(this.circular){r.filter(function(e){return n.indexOf(e)===-1}).forEach(function(e){o(e)})}return n}},entryNodes:function(){var e=this;return Object.keys(this.nodes).filter(function(t){return e.incomingEdges[t].length===0})}};n.prototype.directDependentsOf=n.prototype.directDependantsOf;n.prototype.dependentsOf=n.prototype.dependantsOf;var r=t.DepGraphCycleError=function(e){var t="Dependency Cycle Found: "+e.join(" -> ");var n=new Error(t);n.cyclePath=e;Object.setPrototypeOf(n,Object.getPrototypeOf(this));if(Error.captureStackTrace){Error.captureStackTrace(n,r)}return n};r.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:false,writable:true,configurable:true}});Object.setPrototypeOf(r,Error)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var r=n(234);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const n=t.name.value;const i=e.getFragment(n);if(!i){e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,t.name))}}}}},,,,function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var n=0;ne.name.value);for(const[t,n]of s){if(n.length>1){e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,n.map(e=>e.name)))}}}}},,,,,,function(e,t,n){"use strict";var r=n(727);var i=Object.prototype.toString;function isArray(e){return i.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return i.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(i.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function isDate(e){return i.call(e)==="[object Date]"}function isFile(e){return i.call(e)==="[object File]"}function isBlob(e){return i.call(e)==="[object Blob]"}function isFunction(e){return i.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var n=0,r=e.length;n120){const e=Math.floor(c/80);const t=c%80;const n=[];for(let e=0;e["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+printPrefixedLines([[`${s-1} |`,l[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function printPrefixedLines(e){const t=e.filter(([e,t])=>t!==undefined);const n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var r=n(234);function UniqueOperationTypesRule(e){const t=e.getSchema();const n=Object.create(null);const i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const s=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of s){const o=t.operation;const s=n[o];if(i[o]){e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,t))}else if(s){e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,[s,t]))}else{n[o]=t}}return false}}},,,function(e,t,n){var r=n(11);e.exports=r(once);e.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var n=e.name||"Function wrapped with `once`";t.onceError=n+" shouldn't be called more than once";t.called=false;return t}},,,,function(e,t,n){e.exports=n(352)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var r=n(393);var i=n(371);var o=n(174);class Source{constructor(e,t="GraphQL request",n={line:1,column:1}){typeof e==="string"||(0,i.devAssert)(false,`Body must be a string. Received: ${(0,r.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=n;this.locationOffset.line>0||(0,i.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,i.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var r=n(393);var i=n(876);var o=n(234);var s=n(326);var a=n(577);var c=n(134);var u=n(75);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i){return false}const s=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(e=>e.name.value));for(const n of i.args){if(!s.has(n.name)&&(0,u.isRequiredArgument)(n)){const s=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${s}" is required, but it was not provided.`,t))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const n=Object.create(null);const l=e.getSchema();const p=(t=l===null||l===void 0?void 0:l.getDirectives())!==null&&t!==void 0?t:c.specifiedDirectives;for(const e of p){n[e.name]=(0,i.keyMap)(e.args.filter(u.isRequiredArgument),e=>e.name)}const f=e.getDocument().definitions;for(const e of f){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){var d;const t=(d=e.arguments)!==null&&d!==void 0?d:[];n[e.name.value]=(0,i.keyMap)(t.filter(isRequiredArgumentNode),e=>e.name.value)}}return{Directive:{leave(t){const i=t.name.value;const s=n[i];if(s){var c;const n=(c=t.arguments)!==null&&c!==void 0?c:[];const l=new Set(n.map(e=>e.name.value));for(const[n,c]of Object.entries(s)){if(!l.has(n)){const s=(0,u.isType)(c.type)?(0,r.inspect)(c.type):(0,a.print)(c.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${s}" is required, but it was not provided.`,t))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===s.Kind.NON_NULL_TYPE&&e.defaultValue==null}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var r=n(393);var i=n(932);var o=n(326);var s=n(75);function typeFromAST(e,t){let n;if(t.kind===o.Kind.LIST_TYPE){n=typeFromAST(e,t.type);return n&&new s.GraphQLList(n)}if(t.kind===o.Kind.NON_NULL_TYPE){n=typeFromAST(e,t.type);return n&&new s.GraphQLNonNull(n)}if(t.kind===o.Kind.NAMED_TYPE){return e.getType(t.name.value)}false||(0,i.invariant)(false,"Unexpected type node: "+(0,r.inspect)(t))}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;var r=n(393);var i=n(876);var o=n(372);var s=n(473);var a=n(371);var c=n(857);var u=n(174);var l=n(868);var p=n(947);var f=n(518);var d=n(150);var m=n(234);var h=n(326);var g=n(577);var y=n(645);var v=n(655);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,u.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,u.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,u.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,u.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,u.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,u.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,u.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,u.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,a.devAssert)(false,`Expected ${(0,r.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,a.devAssert)(false,`Expected ${(0,r.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,n,i,o;const c=(t=e.parseValue)!==null&&t!==void 0?t:f.identityFunc;this.name=(0,v.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(n=e.serialize)!==null&&n!==void 0?n:f.identityFunc;this.parseValue=c;this.parseLiteral=(i=e.parseLiteral)!==null&&i!==void 0?i:(e,t)=>c((0,y.valueFromASTUntyped)(e,t));this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(o=e.extensionASTNodes)!==null&&o!==void 0?o:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,a.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,r.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,a.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,a.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=(()=>defineFieldMap(e));this._interfaces=(()=>defineInterfaces(e));e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,a.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,r.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const n=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(n)||(0,a.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return n}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,a.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,o.mapValue)(t,(t,n)=>{var i;isPlainObj(t)||(0,a.devAssert)(false,`${e.name}.${n} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,a.devAssert)(false,`${e.name}.${n} field resolver must be a function if `+`provided, but got: ${(0,r.inspect)(t.resolve)}.`);const o=(i=t.args)!==null&&i!==void 0?i:{};isPlainObj(o)||(0,a.devAssert)(false,`${e.name}.${n} args must be an object with argument names as keys.`);return{name:(0,v.assertName)(n),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,s.toObjMap)(t.extensions),astNode:t.astNode}})}function defineArguments(e){return Object.entries(e).map(([e,t])=>({name:(0,v.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,s.toObjMap)(t.extensions),astNode:t.astNode}))}function isPlainObj(e){return(0,p.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,o.mapValue)(e,e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function argsToArgsConfig(e){return(0,c.keyValMap)(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,a.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,r.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,a.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,r.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,a.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=defineEnumValues(this.name,e.values);this._valueLookup=new Map(this._values.map(e=>[e.value,e]));this._nameLookup=(0,i.keyMap)(this._values,e=>e.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(t===undefined){throw new m.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,r.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,r.inspect)(e);throw new m.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new m.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,g.print)(e);throw new m.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),e)}const n=this.getValue(e.value);if(n==null){const t=(0,g.print)(e);throw new m.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),e)}return n.value}toConfig(){const e=(0,c.keyValMap)(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const n=e.getValues().map(e=>e.name);const r=(0,d.suggestionList)(t,n);return(0,l.didYouMean)("the enum value",r)}function defineEnumValues(e,t){isPlainObj(t)||(0,a.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map(([t,n])=>{isPlainObj(n)||(0,a.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,r.inspect)(n)}.`);return{name:(0,v.assertEnumValueName)(t),description:n.description,value:n.value!==undefined?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,s.toObjMap)(n.extensions),astNode:n.astNode}})}class GraphQLInputObjectType{constructor(e){var t;this.name=(0,v.assertName)(e.name);this.description=e.description;this.extensions=(0,s.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,o.mapValue)(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,a.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,o.mapValue)(t,(t,n)=>{!("resolve"in t)||(0,a.devAssert)(false,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,v.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,s.toObjMap)(t.extensions),astNode:t.astNode}})}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},,function(e,t,n){"use strict";e.exports=n(407)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var r=n(234);var i=n(577);var o=n(75);var s=n(72);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,s.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,n))}}},FragmentDefinition(t){const n=(0,s.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,t.typeCondition))}}}}},function(e,t,n){const r=n(867);const i=n(669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(247);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return t.toUpperCase()});let r=process.env[t];if(/^(yes|on|true|enabled)$/i.test(r)){r=true}else if(/^(no|off|false|disabled)$/i.test(r)){r=false}else if(r==="null"){r=null}else{r=Number(r)}e[n]=r;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:r}=this;if(r){const r=this.color;const i="[3"+(r<8?r:"8;5;"+r);const o=` ${i};1m${n} `;t[0]=o+t[0].split("\n").join("\n"+o);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;re.trim()).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},,,function(e,t,n){"use strict";var r=n(755);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},,function(e){e.exports=require("os")},,,,,,,,,,,function(e,t,n){"use strict";var r=n(843);function getLine(e,t,n,r,i){var o="";var s="";var a=Math.floor(i/2)-1;if(r-t>a){o=" ... ";t=r-a+o.length}if(n-r>a){s=" ...";n=r+a-s.length}return{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function padStart(e,t){return r.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var i=[0];var o=[];var s;var a=-1;while(s=n.exec(e.buffer)){o.push(s.index);i.push(s.index+s[0].length);if(e.position<=s.index&&a<0){a=i.length-2}}if(a<0)a=i.length-1;var c="",u,l;var p=Math.min(e.line+t.linesAfter,o.length).toString().length;var f=t.maxLength-(t.indent+p+3);for(u=1;u<=t.linesBefore;u++){if(a-u<0)break;l=getLine(e.buffer,i[a-u],o[a-u],e.position-(i[a]-i[a-u]),f);c=r.repeat(" ",t.indent)+padStart((e.line-u+1).toString(),p)+" | "+l.str+"\n"+c}l=getLine(e.buffer,i[a],o[a],e.position,f);c+=r.repeat(" ",t.indent)+padStart((e.line+1).toString(),p)+" | "+l.str+"\n";c+=r.repeat("-",t.indent+p+3+l.pos)+"^"+"\n";for(u=1;u<=t.linesAfter;u++){if(a+u>=o.length)break;l=getLine(e.buffer,i[a+u],o[a+u],e.position-(i[a]-i[a+u]),f);c+=r.repeat(" ",t.indent)+padStart((e.line+u+1).toString(),p)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},,,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=o(n(747));const a=o(n(87));const c=n(82);function issueCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}s.appendFileSync(n,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},,function(e){"use strict";e.exports=function isAxiosError(e){return typeof e==="object"&&e.isAxiosError===true}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var r=n(326);var i=n(156);var o=n(386);var s=n(75);var a=n(754);var c=n(72);class TypeInfo{constructor(e,t,n){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=n!==null&&n!==void 0?n:getFieldDef;if(t){if((0,s.isInputType)(t)){this._inputTypeStack.push(t)}if((0,s.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,s.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case r.Kind.SELECTION_SET:{const e=(0,s.getNamedType)(this.getType());this._parentTypeStack.push((0,s.isCompositeType)(e)?e:undefined);break}case r.Kind.FIELD:{const n=this.getParentType();let r;let i;if(n){r=this._getFieldDef(t,n,e);if(r){i=r.type}}this._fieldDefStack.push(r);this._typeStack.push((0,s.isOutputType)(i)?i:undefined);break}case r.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case r.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,s.isObjectType)(n)?n:undefined);break}case r.Kind.INLINE_FRAGMENT:case r.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition;const r=n?(0,c.typeFromAST)(t,n):(0,s.getNamedType)(this.getType());this._typeStack.push((0,s.isOutputType)(r)?r:undefined);break}case r.Kind.VARIABLE_DEFINITION:{const n=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,s.isInputType)(n)?n:undefined);break}case r.Kind.ARGUMENT:{var n;let t;let r;const i=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();if(i){t=i.args.find(t=>t.name===e.name.value);if(t){r=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,s.isInputType)(r)?r:undefined);break}case r.Kind.LIST:{const e=(0,s.getNullableType)(this.getInputType());const t=(0,s.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,s.isInputType)(t)?t:undefined);break}case r.Kind.OBJECT_FIELD:{const t=(0,s.getNamedType)(this.getInputType());let n;let r;if((0,s.isInputObjectType)(t)){r=t.getFields()[e.name.value];if(r){n=r.type}}this._defaultValueStack.push(r?r.defaultValue:undefined);this._inputTypeStack.push((0,s.isInputType)(n)?n:undefined);break}case r.Kind.ENUM:{const t=(0,s.getNamedType)(this.getInputType());let n;if((0,s.isEnumType)(t)){n=t.getValue(e.value)}this._enumValue=n;break}}}leave(e){switch(e.kind){case r.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case r.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case r.Kind.DIRECTIVE:this._directive=null;break;case r.Kind.OPERATION_DEFINITION:case r.Kind.INLINE_FRAGMENT:case r.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case r.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case r.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case r.Kind.LIST:case r.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case r.Kind.ENUM:this._enumValue=null;break}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,n){const r=n.name.value;if(r===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(r===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(r===a.TypeNameMetaFieldDef.name&&(0,s.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t)){return t.getFields()[r]}}function visitWithTypeInfo(e,t){return{enter(...n){const r=n[0];e.enter(r);const s=(0,o.getEnterLeaveForKind)(t,r.kind).enter;if(s){const o=s.apply(t,n);if(o!==undefined){e.leave(r);if((0,i.isNode)(o)){e.enter(o)}}return o}},leave(...n){const r=n[0];const i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let s;if(i){s=i.apply(t,n)}e.leave(r);return s}}}},function(e,t,n){"use strict";var r=n(361);var i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function validator(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};var s=r.version.split(".");function isOlderVersion(e,t){var n=t?t.split("."):s;var r=e.split(".");for(var i=0;i<3;i++){if(n[i]>r[i]){return true}else if(n[i]0){var o=r[i];var s=t[o];if(s){var a=e[o];var c=a===undefined||s(a,o,e);if(c!==true){throw new TypeError("option "+o+" must be "+c)}continue}if(n!==true){throw Error("Unknown option "+o)}}}e.exports={isOlderVersion:isOlderVersion,assertOptions:assertOptions,validators:i}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(986);var i=n(796);const o="4.5.6";class GraphqlError extends Error{constructor(e,t){const n=t.data.errors[0].message;super(n);Object.assign(this,t.data);Object.assign(this,{headers:t.headers});this.name="GraphqlError";this.request=e;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const s=["method","baseUrl","url","headers","request","query","mediaType"];const a=/\/api\/v3\/?$/;function graphql(e,t,n){if(typeof t==="string"&&n&&"query"in n){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}const r=typeof t==="string"?Object.assign({query:t},n):t;const i=Object.keys(r).reduce((e,t)=>{if(s.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});const o=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(a.test(o)){i.url=o.replace(a,"/api/graphql")}return e(i).then(e=>{if(e.data.errors){const t={};for(const n of Object.keys(e.headers)){t[n]=e.headers[n]}throw new GraphqlError(i,{headers:t,data:e.data})}return e.data.data})}function withDefaults(e,t){const n=e.defaults(t);const i=(e,t)=>{return graphql(n,e,t)};return Object.assign(i,{defaults:withDefaults.bind(null,n),endpoint:r.request.endpoint})}const c=withDefaults(r.request,{headers:{"user-agent":`octokit-graphql.js/${o} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=c;t.withCustomRequest=withCustomRequest},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var r=n(371);var i=n(326);var o=n(166);var s=n(625);var a=n(742);var c=n(134);var u=n(823);function buildASTSchema(e,t){e!=null&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,s.assertValidSDL)(e)}const n={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(n,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const l=[...o.directives,...c.specifiedDirectives.filter(e=>o.directives.every(t=>t.name!==e.name))];return new a.GraphQLSchema({...o,directives:l})}function buildSchema(e,t){const n=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(n,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var r=n(326);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===r.Kind.LIST?e.values.some(isConstValueNode):e.kind===r.Kind.OBJECT?e.fields.some(e=>isConstValueNode(e.value)):e.kind!==r.Kind.VARIABLE)}function isTypeNode(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===r.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===r.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},,,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const s=o(n(539));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new s.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},,function(e){e.exports=require("child_process")},,,,function(e,t,n){"use strict";var r=n(35);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,n){if(!t){return e}var i;if(n){i=n(t)}else if(r.isURLSearchParams(t)){i=t.toString()}else{var o=[];r.forEach(t,function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(r.isArray(e)){t=t+"[]"}else{e=[e]}r.forEach(e,function parseValue(e){if(r.isDate(e)){e=e.toISOString()}else if(r.isObject(e)){e=JSON.stringify(e)}o.push(encode(t)+"="+encode(e))})});i=o.join("&")}if(i){var s=e.indexOf("#");if(s!==-1){e=e.slice(0,s)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var r=n(393);var i=n(473);var o=n(371);var s=n(174);var a=n(947);var c=n(380);var u=n(655);var l=n(810);var p=n(75);function isDirective(e){return(0,s.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,n;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,i.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,o.devAssert)(false,`@${e.name} locations must be an Array.`);const r=(n=e.args)!==null&&n!==void 0?n:{};(0,a.isObjectLike)(r)&&!Array.isArray(r)||(0,o.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,p.defineArguments)(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,p.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const f=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=f;const d=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=d;const m="No longer supported";t.DEFAULT_DEPRECATION_REASON=m;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:m}}});t.GraphQLDeprecatedDirective=h;const g=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new p.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behaviour of this scalar."}}});t.GraphQLSpecifiedByDirective=g;const y=Object.freeze([f,d,h,g]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some(({name:t})=>t===e.name)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var r=n(393);var i=n(209);var o=n(691);var s=n(234);var a=n(635);var c=n(962);var u=n(740);var l=n(466);var p=n(300);async function subscribe(e){const{schema:t,document:n,rootValue:r,contextValue:o,variableValues:s,operationName:a,fieldResolver:c,subscribeFieldResolver:u}=e;const f=await createSourceEventStream(t,n,r,o,s,a,u);if(!(0,i.isAsyncIterable)(f)){return f}const d=e=>(0,l.execute)({schema:t,document:n,rootValue:e,contextValue:o,variableValues:s,operationName:a,fieldResolver:c});return(0,p.mapAsyncIterator)(f,d)}async function createSourceEventStream(e,t,n,o,a,c,u){(0,l.assertValidExecutionArguments)(e,t,a);const p=(0,l.buildExecutionContext)({schema:e,document:t,rootValue:n,contextValue:o,variableValues:a,operationName:c,subscribeFieldResolver:u});if(!("schema"in p)){return{errors:p}}try{const e=await executeSubscription(p);if(!(0,i.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,r.inspect)(e)}.`)}return e}catch(e){if(e instanceof s.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:p}=e;const f=t.getSubscriptionType();if(f==null){throw new s.GraphQLError("Schema is not configured to execute subscription operation.",r)}const d=(0,c.collectFields)(t,n,i,f,r.selectionSet);const[m,h]=[...d.entries()][0];const g=(0,l.getFieldDef)(t,f,h[0]);if(!g){const e=h[0].name.value;throw new s.GraphQLError(`The subscription field "${e}" is not defined.`,h)}const y=(0,o.addPath)(undefined,m,f.name);const v=(0,l.buildResolveInfo)(e,g,h,f,y);try{var b;const t=(0,u.getArgumentValues)(g,h[0],i);const n=e.contextValue;const r=(b=g.subscribe)!==null&&b!==void 0?b:e.subscribeFieldResolver;const s=await r(p,t,n,v);if(s instanceof Error){throw s}return s}catch(e){throw(0,a.locatedError)(e,h,(0,o.pathToArray)(y))}}},function(e,t,n){"use strict";var r=n(826);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise(function promiseExecutor(e){t=e});var n=this;e(function cancel(e){if(n.reason){return}n.reason=new r(e);t(n.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var t=new CancelToken(function executor(t){e=t});return{token:t,cancel:e}};e.exports=CancelToken},,,,function(e,t,n){"use strict";var r=n(937);var i=n(16);var o=n(605);var s=n(211);var a=n(614);var c=n(357);var u=n(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,n,r,i){var o=toOptions(n,r,i);for(var s=0,a=t.requests.length;s=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,o)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var r={};n.sockets.push(r);var i=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}l("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick(function(){onConnect(e,t,n)})}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",i.statusCode);s.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(r);return}if(a.length>0){l("got illegal response body from proxy");s.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(r);return}l("tunneling connection has established");n.sockets[n.sockets.indexOf(r)]=s;return t(s)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);n.removeSocket(r)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,function(e){n.request.onSocket(e)})}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,function(r){var o=e.request.getHeader("host");var s=mergeOptions({},n.options,{socket:r,servername:o?o.replace(/:.*$/,""):e.host});var a=i.connect(0,s);n.sockets[n.sockets.indexOf(r)]=a;t(a)})}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{const i=n[e]-n[t];return i!==0?i:(0,r.naturalCompare)(e,t)})}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const n=e.toLowerCase();if(this._inputLowerCase===n){return 1}let r=stringToArray(n);let i=this._inputArray;if(r.lengtht){return undefined}const a=this._rows;for(let e=0;e<=s;e++){a[0][e]=e}for(let e=1;e<=o;e++){const n=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}if(ut){return undefined}}const c=a[o%3][s];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const n=new Array(t);for(let r=0;r{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries()){n[i]=t[r]}return n})}},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,n,r,i,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const n={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=n;const r=new Set(Object.keys(n));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&r.has(t)}let i;t.OperationTypeNode=i;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(i||(t.OperationTypeNode=i={}))},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var r=n(234);var i=n(75);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const n=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var s;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(s=t.values)!==null&&s!==void 0?s:[];const u=o[a];for(const t of c){const o=t.name.value;const s=n[a];if((0,i.isEnumType)(s)&&s.getValue(o)){e.reportError(new r.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,t.name))}else if(u[o]){e.reportError(new r.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,[u[o],t.name]))}else{u[o]=t.name}}return false}}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var r=n(819);var i=n(326);var o=n(156);var s=n(730);var a=n(55);var c=n(380);var u=n(388);function parse(e,t){const n=new Parser(e,t);return n.parseDocument()}function parseValue(e,t){const n=new Parser(e,t);n.expectToken(s.TokenKind.SOF);const r=n.parseValueLiteral(false);n.expectToken(s.TokenKind.EOF);return r}function parseConstValue(e,t){const n=new Parser(e,t);n.expectToken(s.TokenKind.SOF);const r=n.parseConstValueLiteral();n.expectToken(s.TokenKind.EOF);return r}function parseType(e,t){const n=new Parser(e,t);n.expectToken(s.TokenKind.SOF);const r=n.parseTypeReference();n.expectToken(s.TokenKind.EOF);return r}class Parser{constructor(e,t){const n=(0,a.isSource)(e)?e:new a.Source(e);this._lexer=new u.Lexer(n);this._options=t}parseName(){const e=this.expectToken(s.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(s.TokenKind.SOF,this.parseDefinition,s.TokenKind.EOF)})}parseDefinition(){if(this.peek(s.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===s.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(s.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:o.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let n;if(this.peek(s.TokenKind.NAME)){n=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(s.TokenKind.NAME);switch(e.value){case"query":return o.OperationTypeNode.QUERY;case"mutation":return o.OperationTypeNode.MUTATION;case"subscription":return o.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(s.TokenKind.PAREN_L,this.parseVariableDefinition,s.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(s.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(s.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(s.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(s.TokenKind.BRACE_L,this.parseSelection,s.TokenKind.BRACE_R)})}parseSelection(){return this.peek(s.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let n;let r;if(this.expectOptionalToken(s.TokenKind.COLON)){n=t;r=this.parseName()}else{r=t}return this.node(e,{kind:i.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(s.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(s.TokenKind.PAREN_L,t,s.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const n=this.parseName();this.expectToken(s.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(s.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(s.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;this.expectKeyword("fragment");if(((e=this._options)===null||e===void 0?void 0:e.allowLegacyFragmentVariables)===true){return this.node(t,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(t,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case s.TokenKind.BRACKET_L:return this.parseList(e);case s.TokenKind.BRACE_L:return this.parseObject(e);case s.TokenKind.INT:this._lexer.advance();return this.node(t,{kind:i.Kind.INT,value:t.value});case s.TokenKind.FLOAT:this._lexer.advance();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case s.TokenKind.STRING:case s.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case s.TokenKind.NAME:this._lexer.advance();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case s.TokenKind.DOLLAR:if(e){this.expectToken(s.TokenKind.DOLLAR);if(this._lexer.token.kind===s.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this._lexer.advance();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===s.TokenKind.BLOCK_STRING})}parseList(e){const t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(s.TokenKind.BRACKET_L,t,s.TokenKind.BRACKET_R)})}parseObject(e){const t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(s.TokenKind.BRACE_L,t,s.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const n=this.parseName();this.expectToken(s.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(s.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(s.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(s.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(s.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:n})}else{t=this.parseNamedType()}if(this.expectOptionalToken(s.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(s.TokenKind.STRING)||this.peek(s.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives();const r=this.many(s.TokenKind.BRACE_L,this.parseOperationTypeDefinition,s.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(s.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName();const r=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const n=this.parseName();const r=this.parseImplementsInterfaces();const o=this.parseConstDirectives();const s=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(s.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(s.TokenKind.BRACE_L,this.parseFieldDefinition,s.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const n=this.parseName();const r=this.parseArgumentDefs();this.expectToken(s.TokenKind.COLON);const o=this.parseTypeReference();const a=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(s.TokenKind.PAREN_L,this.parseInputValueDef,s.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const n=this.parseName();this.expectToken(s.TokenKind.COLON);const r=this.parseTypeReference();let o;if(this.expectOptionalToken(s.TokenKind.EQUALS)){o=this.parseConstValueLiteral()}const a=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName();const r=this.parseImplementsInterfaces();const o=this.parseConstDirectives();const s=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const n=this.parseName();const r=this.parseConstDirectives();const o=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(s.TokenKind.EQUALS)?this.delimitedMany(s.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName();const r=this.parseConstDirectives();const o=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(s.TokenKind.BRACE_L,this.parseEnumValueDefinition,s.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const n=this.parseEnumValueName();const r=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const n=this.parseName();const r=this.parseConstDirectives();const o=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(s.TokenKind.BRACE_L,this.parseInputValueDef,s.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===s.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const n=this.optionalMany(s.TokenKind.BRACE_L,this.parseOperationTypeDefinition,s.TokenKind.BRACE_R);if(t.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const n=this.parseConstDirectives();if(n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const n=this.parseImplementsInterfaces();const r=this.parseConstDirectives();const o=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&o.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const n=this.parseImplementsInterfaces();const r=this.parseConstDirectives();const o=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&o.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const n=this.parseConstDirectives();const r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const n=this.parseConstDirectives();const r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const n=this.parseConstDirectives();const r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(s.TokenKind.AT);const n=this.parseName();const r=this.parseArgumentDefs();const o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(s.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(c.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){var n;if(((n=this._options)===null||n===void 0?void 0:n.noLocation)!==true){t.loc=new o.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this._lexer.advance();return t}throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this._lexer.advance();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===s.TokenKind.NAME&&t.value===e){this._lexer.advance()}else{throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===s.TokenKind.NAME&&t.value===e){this._lexer.advance();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];while(!this.expectOptionalToken(n)){r.push(t.call(this))}return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,u.isPunctuatorTokenKind)(e)?`"${e}"`:e}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return w.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return w.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return g.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return O.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return y.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return v.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return E.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return w.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return w.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return r.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return i.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return s.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return E.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return E.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return O.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return l.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return p.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return p.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return p.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return b.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return T.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return f.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return d.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return m.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return g.visitWithTypeInfo}});var r=n(462);var i=n(752);var o=n(580);var s=n(786);var a=n(559);var c=n(114);var u=n(823);var l=n(184);var p=n(696);var f=n(72);var d=n(820);var m=n(645);var h=n(301);var g=n(105);var y=n(702);var v=n(385);var b=n(854);var T=n(487);var E=n(441);var O=n(384);var w=n(495)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var r=n(234);var i=n(326);var o=n(123);function ExecutableDefinitionsRule(e){return{Document(t){for(const n of t.definitions){if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,n))}}return false}}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var r=n(393);const i=process.env.NODE_ENV==="production"?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var n;const i=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(n=e.constructor)===null||n===void 0?void 0:n.name;if(i===o){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=i},,function(e){e.exports=removeHook;function removeHook(e,t,n){if(!e.registry[t]){return}var r=e.registry[t].map(function(e){return e.orig}).indexOf(n);if(r===-1){return}e.registry[t].splice(r,1)}},,,,,,,function(e){e.exports=addHook;function addHook(e,t,n,r){var i=r;if(!e.registry[n]){e.registry[n]=[]}if(t==="before"){r=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){r=function(e,t){var n;return Promise.resolve().then(e.bind(null,t)).then(function(e){n=e;return i(n,t)}).then(function(){return n})}}if(t==="error"){r=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}}e.registry[n].push({hook:r,orig:i})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var r=n(393);var i=n(932);var o=n(857);var s=n(587);var a=n(742);var c=n(134);var u=n(754);var l=n(75);function lexicographicSortSchema(e){const t=e.toConfig();const n=(0,o.keyValMap)(sortByName(t.types),e=>e.name,sortNamedType);return new a.GraphQLSchema({...t,types:Object.values(n),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,l.isListType)(e)){return new l.GraphQLList(replaceType(e.ofType))}else if((0,l.isNonNullType)(e)){return new l.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return n[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,e=>e),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,e=>({...e,type:replaceType(e.type)}))}function sortFields(e){return sortObjMap(e,e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)}))}function sortInputFields(e){return sortObjMap(e,e=>({...e,type:replaceType(e.type)}))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,l.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,l.isObjectType)(e)){const t=e.toConfig();return new l.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,l.isInterfaceType)(e)){const t=e.toConfig();return new l.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,l.isUnionType)(e)){const t=e.toConfig();return new l.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,l.isEnumType)(e)){const t=e.toConfig();return new l.GraphQLEnumType({...t,values:sortObjMap(t.values,e=>e)})}if((0,l.isInputObjectType)(e)){const t=e.toConfig();return new l.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,i.invariant)(false,"Unexpected type: "+(0,r.inspect)(e))}}function sortObjMap(e,t){const n=Object.create(null);const r=sortBy(Object.entries(e),([e])=>e);for(const[e,i]of r){n[e]=t(i)}return n}function sortByName(e){return sortBy(e,e=>e.name)}function sortBy(e,t){return e.slice().sort((e,n)=>{const r=t(e);const i=t(n);return(0,s.naturalCompare)(r,i)})}},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(n,r,i){if(t===undefined){t=new WeakMap}let o=t.get(n);if(o===undefined){o=new WeakMap;t.set(n,o)}let s=o.get(r);if(s===undefined){s=new WeakMap;o.set(r,s)}let a=s.get(i);if(a===undefined){a=e(n,r,i);s.set(i,a)}return a}}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var r=n(234);var i=n(75);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const n=t?t.getTypeMap():Object.create(null);const i=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const s=t.name.value;if(!i[s]){i[s]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=i[s];for(const t of a){const i=t.name.value;if(hasField(n[s],i)){e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,t.name))}else if(c[i]){e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,[c[i],t.name]))}else{c[i]=t.name}}return false}}function hasField(e,t){if((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var r=n(649);var i=n(166);var o=n(625);var s=n(839);var a=n(466);function graphql(e){return new Promise(t=>t(graphqlImpl(e)))}function graphqlSync(e){const t=graphqlImpl(e);if((0,r.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){const{schema:t,source:n,rootValue:r,contextValue:c,variableValues:u,operationName:l,fieldResolver:p,typeResolver:f}=e;const d=(0,s.validateSchema)(t);if(d.length>0){return{errors:d}}let m;try{m=(0,i.parse)(n)}catch(e){return{errors:[e]}}const h=(0,o.validate)(t,m);if(h.length>0){return{errors:h}}return(0,a.execute)({schema:t,document:m,rootValue:r,contextValue:c,variableValues:u,operationName:l,fieldResolver:p,typeResolver:f})}},,,,,,,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},,function(e){e.exports=require("https")},,,,,,,,function(e,t,n){"use strict";var r=n(35);var i=n(564);var o=n(864);var s=n(133);var a=n(960);var c=n(631);var u=n(688);var l=n(26);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,n){var p=e.data;var f=e.headers;var d=e.responseType;if(r.isFormData(p)){delete f["Content-Type"]}var m=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"";var g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+g)}var y=a(e.baseURL,e.url);m.open(e.method.toUpperCase(),s(y,e.params,e.paramsSerializer),true);m.timeout=e.timeout;function onloadend(){if(!m){return}var r="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null;var o=!d||d==="text"||d==="json"?m.responseText:m.response;var s={data:o,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};i(t,n,s);m=null}if("onloadend"in m){m.onloadend=onloadend}else{m.onreadystatechange=function handleLoad(){if(!m||m.readyState!==4){return}if(m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)){return}setTimeout(onloadend)}}m.onabort=function handleAbort(){if(!m){return}n(l("Request aborted",e,"ECONNABORTED",m));m=null};m.onerror=function handleError(){n(l("Network Error",e,null,m));m=null};m.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m));m=null};if(r.isStandardBrowserEnv()){var v=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):undefined;if(v){f[e.xsrfHeaderName]=v}}if("setRequestHeader"in m){r.forEach(f,function setRequestHeader(e,t){if(typeof p==="undefined"&&t.toLowerCase()==="content-type"){delete f[t]}else{m.setRequestHeader(t,e)}})}if(!r.isUndefined(e.withCredentials)){m.withCredentials=!!e.withCredentials}if(d&&d!=="json"){m.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){m.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&m.upload){m.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!m){return}m.abort();n(e);m=null})}if(!p){p=null}m.send(p)})}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var r=n(234);var i=n(326);var o=n(962);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const n=e.getSchema();const s=n.getSubscriptionType();if(s){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const l=Object.create(null);for(const e of u.definitions){if(e.kind===i.Kind.FRAGMENT_DEFINITION){l[e.name.value]=e}}const p=(0,o.collectFields)(n,l,c,s,t.selectionSet);if(p.size>1){const t=[...p.values()];const n=t.slice(1);const i=n.flat();e.reportError(new r.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",i))}for(const t of p.values()){const n=t[0];const i=n.name.value;if(i.startsWith("__")){e.reportError(new r.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",t))}}}}}}}},function(e,t,n){"use strict";var r=n(755);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,n,r,o,s,a=e;s=new Array(a.length);for(t=0,n=a.length;t=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(r.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||r.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},function(e){"use strict";var t=function(){function DataLoader(e,t){if(typeof e!=="function"){throw new TypeError("DataLoader must be constructed with a function which accepts "+("Array and returns Promise>, but got: "+e+"."))}this._batchLoadFn=e;this._maxBatchSize=getValidMaxBatchSize(t);this._batchScheduleFn=getValidBatchScheduleFn(t);this._cacheKeyFn=getValidCacheKeyFn(t);this._cacheMap=getValidCacheMap(t);this._batch=null}var e=DataLoader.prototype;e.load=function load(e){if(e===null||e===undefined){throw new TypeError("The loader.load() function must be called with a value,"+("but got: "+String(e)+"."))}var t=getCurrentBatch(this);var n=this._cacheMap;var r=this._cacheKeyFn(e);if(n){var i=n.get(r);if(i){var o=t.cacheHits||(t.cacheHits=[]);return new Promise(function(e){o.push(function(){return e(i)})})}}t.keys.push(e);var s=new Promise(function(e,n){t.callbacks.push({resolve:e,reject:n})});if(n){n.set(r,s)}return s};e.loadMany=function loadMany(e){if(!isArrayLike(e)){throw new TypeError("The loader.loadMany() function must be called with Array "+("but got: "+e+"."))}var t=[];for(var n=0;n and returns Promise>, but the function did "+("not return a Promise: "+String(n)+".")))}n.then(function(e){if(!isArrayLike(e)){throw new TypeError("DataLoader must be constructed with a function which accepts "+"Array and returns Promise>, but the function did "+("not return a Promise of an Array: "+String(e)+"."))}if(e.length!==t.keys.length){throw new TypeError("DataLoader must be constructed with a function which accepts "+"Array and returns Promise>, but the function did "+"not return a Promise of an Array of the same length as the Array "+"of keys."+("\n\nKeys:\n"+String(t.keys))+("\n\nValues:\n"+String(e)))}resolveCacheHits(t);for(var n=0;n0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=t},,function(e,t,n){"use strict";var r=n(755);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var r=n(649);function promiseReduce(e,t,n){let i=n;for(const n of e){i=(0,r.isPromise)(i)?i.then(e=>t(e,n)):t(i,n)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return s.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return l.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return l.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return s.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return s.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return s.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return s.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return s.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return s.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return s.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return s.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return l.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return l.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return l.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return l.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return l.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return l.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return l.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return l.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return l.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return l.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return l.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return l.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return s.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return l.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return l.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return l.getOperationRootType}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return s.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return i.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return i.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return l.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return s.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return s.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return l.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return s.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return s.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return s.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return s.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return s.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return l.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return s.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return s.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return l.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return s.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return l.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return s.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return s.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return s.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return s.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return s.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return s.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return s.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return l.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return l.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return l.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return l.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return l.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return r.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return r.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return s.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return s.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return l.visitWithTypeInfo}});var r=n(24);var i=n(193);var o=n(737);var s=n(266);var a=n(780);var c=n(554);var u=n(764);var l=n(169)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var r=n(947);var i=n(683);var o=n(40);class GraphQLError extends Error{constructor(e,t,n,o,s,a,c){var u,l,p;super(e);this.name="GraphQLError";this.path=s!==null&&s!==void 0?s:undefined;this.originalError=a!==null&&a!==void 0?a:undefined;this.nodes=undefinedIfEmpty(Array.isArray(t)?t:t?[t]:undefined);const f=undefinedIfEmpty((u=this.nodes)===null||u===void 0?void 0:u.map(e=>e.loc).filter(e=>e!=null));this.source=n!==null&&n!==void 0?n:f===null||f===void 0?void 0:(l=f[0])===null||l===void 0?void 0:l.source;this.positions=o!==null&&o!==void 0?o:f===null||f===void 0?void 0:f.map(e=>e.start);this.locations=o&&n?o.map(e=>(0,i.getLocation)(n,e)):f===null||f===void 0?void 0:f.map(e=>(0,i.getLocation)(e.source,e.start));const d=(0,r.isObjectLike)(a===null||a===void 0?void 0:a.extensions)?a===null||a===void 0?void 0:a.extensions:undefined;this.extensions=(p=c!==null&&c!==void 0?c:d)!==null&&p!==void 0?p:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(a!==null&&a!==void 0&&a.stack){Object.defineProperty(this,"stack",{value:a.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=void 0;var r=n(172);var i=n(704);var o=n(303);var s=n(223);var a=n(367);var c=n(80);var u=n(458);var l=n(885);var p=n(269);var f=n(286);var d=n(7);var m=n(340);var h=n(601);var g=n(254);var y=n(972);var v=n(666);var b=n(698);var T=n(719);var E=n(238);var O=n(288);var w=n(29);var _=n(594);var S=n(56);var N=n(641);var D=n(428);var A=n(397);var I=n(647);var j=n(46);var R=n(332);var P=n(160);var L=n(192);var F=n(818);var C=n(423);var k=n(323);const x=Object.freeze([r.ExecutableDefinitionsRule,i.UniqueOperationNamesRule,o.LoneAnonymousOperationRule,s.SingleFieldSubscriptionsRule,a.KnownTypeNamesRule,c.FragmentsOnCompositeTypesRule,u.VariablesAreInputTypesRule,l.ScalarLeafsRule,p.FieldsOnCorrectTypeRule,f.UniqueFragmentNamesRule,d.KnownFragmentNamesRule,m.NoUnusedFragmentsRule,h.PossibleFragmentSpreadsRule,g.NoFragmentCyclesRule,y.UniqueVariableNamesRule,v.NoUndefinedVariablesRule,b.NoUnusedVariablesRule,T.KnownDirectivesRule,E.UniqueDirectivesPerLocationRule,O.KnownArgumentNamesRule,w.UniqueArgumentNamesRule,_.ValuesOfCorrectTypeRule,S.ProvidedRequiredArgumentsRule,N.VariablesInAllowedPositionRule,D.OverlappingFieldsCanBeMergedRule,A.UniqueInputFieldNamesRule]);t.specifiedRules=x;const U=Object.freeze([I.LoneSchemaDefinitionRule,j.UniqueOperationTypesRule,R.UniqueTypeNamesRule,P.UniqueEnumValueNamesRule,L.UniqueFieldDefinitionNamesRule,F.UniqueArgumentDefinitionNamesRule,C.UniqueDirectiveNamesRule,a.KnownTypeNamesRule,T.KnownDirectivesRule,E.UniqueDirectivesPerLocationRule,k.PossibleTypeExtensionsRule,O.KnownArgumentNamesOnDirectivesRule,w.UniqueArgumentNamesRule,A.UniqueInputFieldNamesRule,S.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=U},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var r=n(234);var i=n(326);var o=n(123);var s=n(134);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const n=e.getSchema();const a=n?n.getDirectives():s.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const l=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives){return}let s;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION){s=u}else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;s=l[e];if(s===undefined){l[e]=s=Object.create(null)}}else{s=Object.create(null)}for(const i of n.directives){const n=i.name.value;if(t[n]){if(s[n]){e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,[s[n],i]))}else{s[n]=i}}}}}}},,,,,,function(e,t,n){"use strict";var r=n(755);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,n,r,s,a,c,u,l=0,p=null,f,d,m;t=i.exec(e);if(t===null)t=o.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];r=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(n,r,s))}a=+t[4];c=+t[5];u=+t[6];if(t[7]){l=t[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(t[9]){f=+t[10];d=+(t[11]||0);p=(f*60+d)*6e4;if(t[9]==="-")p=-p}m=new Date(Date.UTC(n,r,s,a,c,u,l));if(p)m.setTime(m.getTime()-p);return m}function representYamlTimestamp(e){return e.toISOString()}e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},,,function(e,t,n){"use strict";const r=n(87);const i=n(867);const o=n(364);const{env:s}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(s.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var r=n(234);function NoFragmentCyclesRule(e){const t=Object.create(null);const n=[];const i=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const s=o.name.value;t[s]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}i[s]=n.length;for(const t of a){const o=t.name.value;const s=i[o];n.push(t);if(s===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=n.slice(s);const i=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${o}" within itself`+(i!==""?` via ${i}.`:"."),t))}n.pop()}i[s]=undefined}}},,,,function(e,t,n){"use strict";var r=n(755);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const r=n(747);const i=n(87);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(r.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(r.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${i.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10)}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return p.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return m.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return s.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return f.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return f.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return r.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return f.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return p.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return p.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return d.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return d.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return d.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return d.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return d.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return d.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return d.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return d.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return d.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return d.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return l.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return p.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return p.visitInParallel}});var r=n(55);var i=n(683);var o=n(40);var s=n(326);var a=n(730);var c=n(388);var u=n(166);var l=n(577);var p=n(386);var f=n(156);var d=n(123);var m=n(380)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var r=n(868);var i=n(150);var o=n(587);var s=n(234);var a=n(75);function FieldsOnCorrectTypeRule(e){return{Field(t){const n=e.getParentType();if(n){const i=e.getFieldDef();if(!i){const i=e.getSchema();const o=t.name.value;let a=(0,r.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(i,n,o));if(a===""){a=(0,r.didYouMean)(getSuggestedFieldNames(n,o))}e.reportError(new s.GraphQLError(`Cannot query field "${o}" on type "${n.name}".`+a,t))}}}}}function getSuggestedTypeNames(e,t,n){if(!(0,a.isAbstractType)(t)){return[]}const r=new Set;const i=Object.create(null);for(const o of e.getPossibleTypes(t)){if(!o.getFields()[n]){continue}r.add(o);i[o.name]=1;for(const e of o.getInterfaces()){var s;if(!e.getFields()[n]){continue}r.add(e);i[e.name]=((s=i[e.name])!==null&&s!==void 0?s:0)+1}}return[...r].sort((t,n)=>{const r=i[n.name]-i[t.name];if(r!==0){return r}if((0,a.isInterfaceType)(t)&&e.isSubType(t,n)){return-1}if((0,a.isInterfaceType)(n)&&e.isSubType(n,t)){return 1}return(0,o.naturalCompare)(t.name,n.name)}).map(e=>e.name)}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,i.suggestionList)(t,n)}return[]}},,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(35);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,function forEachHandler(t){if(t!==null){e(t)}})};e.exports=InterceptorManager},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var r=n(234);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(n){const i=n.name.value;if(t[i]){e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,[t[i],n.name]))}else{t[i]=n.name}return false}}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var r=n(868);var i=n(150);var o=n(234);var s=n(326);var a=n(134);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const n=e.getArgument();const s=e.getFieldDef();const a=e.getParentType();if(!n&&s&&a){const n=t.name.value;const c=s.args.map(e=>e.name);const u=(0,i.suggestionList)(n,c);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${a.name}.${s.name}".`+(0,r.didYouMean)(u),t))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const n=e.getSchema();const c=n?n.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map(e=>e.name)}const u=e.getDocument().definitions;for(const e of u){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){var l;const n=(l=e.arguments)!==null&&l!==void 0?l:[];t[e.name.value]=n.map(e=>e.name.value)}}return{Directive(n){const s=n.name.value;const a=t[s];if(n.arguments&&a){for(const t of n.arguments){const n=t.name.value;if(!a.includes(n)){const c=(0,i.suggestionList)(n,a);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${s}".`+(0,r.didYouMean)(c),t))}}}return false}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var r=n(932);var i=n(234);var o=n(75);function NoDeprecatedCustomRule(e){return{Field(t){const n=e.getFieldDef();const o=n===null||n===void 0?void 0:n.deprecationReason;if(n&&o!=null){const s=e.getParentType();s!=null||(0,r.invariant)(false);e.reportError(new i.GraphQLError(`The field ${s.name}.${n.name} is deprecated. ${o}`,t))}},Argument(t){const n=e.getArgument();const o=n===null||n===void 0?void 0:n.deprecationReason;if(n&&o!=null){const s=e.getDirective();if(s!=null){e.reportError(new i.GraphQLError(`Directive "@${s.name}" argument "${n.name}" is deprecated. ${o}`,t))}else{const s=e.getParentType();const a=e.getFieldDef();s!=null&&a!=null||(0,r.invariant)(false);e.reportError(new i.GraphQLError(`Field "${s.name}.${a.name}" argument "${n.name}" is deprecated. ${o}`,t))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value];const o=r===null||r===void 0?void 0:r.deprecationReason;if(o!=null){e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,t))}}},EnumValue(t){const n=e.getEnumValue();const s=n===null||n===void 0?void 0:n.deprecationReason;if(n&&s!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,r.invariant)(false);e.reportError(new i.GraphQLError(`The enum value "${a.name}.${n.name}" is deprecated. ${s}`,t))}}}}},,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const n=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof n.return==="function"){try{await n.return()}catch(e){}}throw e}}return{async next(){return mapResult(await n.next())},async return(){return typeof n.return==="function"?mapResult(await n.return()):{value:undefined,done:true}},async throw(e){if(typeof n.throw==="function"){return mapResult(await n.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var r=n(393);var i=n(932);var o=n(947);var s=n(333);var a=n(326);var c=n(810);var u=n(75);function astFromValue(e,t){if((0,u.isNonNullType)(t)){const n=astFromValue(e,t.ofType);if((n===null||n===void 0?void 0:n.kind)===a.Kind.NULL){return null}return n}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,u.isListType)(t)){const n=t.ofType;if((0,s.isIterableObject)(e)){const t=[];for(const r of e){const e=astFromValue(r,n);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,n)}if((0,u.isInputObjectType)(t)){if(!(0,o.isObjectLike)(e)){return null}const n=[];for(const r of Object.values(t.getFields())){const t=astFromValue(e[r.name],r.type);if(t){n.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:r.name},value:t})}}return{kind:a.Kind.OBJECT,fields:n}}if((0,u.isLeafType)(t)){const n=t.serialize(e);if(n==null){return null}if(typeof n==="boolean"){return{kind:a.Kind.BOOLEAN,value:n}}if(typeof n==="number"&&Number.isFinite(n)){const e=String(n);return l.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof n==="string"){if((0,u.isEnumType)(t)){return{kind:a.Kind.ENUM,value:n}}if(t===c.GraphQLID&&l.test(n)){return{kind:a.Kind.INT,value:n}}return{kind:a.Kind.STRING,value:n}}throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(n)}.`)}false||(0,i.invariant)(false,"Unexpected input type: "+(0,r.inspect)(t))}const l=/^-?(?:0|[1-9][0-9]*)$/},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var r=n(234);var i=n(326);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===i.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){if(!n.name&&t>1){e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",n))}}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,n,r){const i=t.endpoint.merge(n,r);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const n=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=n},,,function(e,t,n){"use strict";var r=n(652);var i=n(755);function compileList(e,t){var n=[];e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=r}});n[t]=e});return n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t({next(){if(!a){return Promise.resolve({done:true})}return i({method:o,url:a,headers:s}).then(normalizePaginatedListResponse).then(e=>{a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:e}})}})}}function paginate(e,t,n,r){if(typeof n==="function"){r=n;n=undefined}return gather(e,[],iterator(e,t,n)[Symbol.asyncIterator](),r)}function gather(e,t,n,r){return n.next().then(i=>{if(i.done){return t}let o=false;function done(){o=true}t=t.concat(r?r(i.value,done):i.value.data);if(o){return t}return gather(e,t,n,r)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=n;t.paginateRest=paginateRest},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var r=n(393);var i=n(932);var o=n(868);var s=n(150);var a=n(234);var c=n(326);var u=n(123);var l=n(75);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const n=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){n[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(r){const i=r.name.value;const c=n[i];const u=t===null||t===void 0?void 0:t.getType(i);let l;if(c){l=p[c.kind]}else if(u){l=typeToExtKind(u)}if(l){if(l!==r.kind){const t=extensionKindToTypeName(r.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${i}".`,c?[c,r]:r))}}else{const c=Object.keys({...n,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,s.suggestionList)(i,c);e.reportError(new a.GraphQLError(`Cannot extend type "${i}" because it is not defined.`+(0,o.didYouMean)(u),r.name))}}}const p={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,l.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,l.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,l.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,l.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,l.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,l.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,i.invariant)(false,"Unexpected type: "+(0,r.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}false||(0,i.invariant)(false,"Unexpected kind: "+(0,r.inspect)(e))}},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;let n;t.Kind=n;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(n||(t.Kind=n={}))},,,,function(e,t,n){e.exports=n(669).inspect},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var r=n(234);function UniqueTypeNamesRule(e){const t=Object.create(null);const n=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(i){const o=i.name.value;if(n!==null&&n!==void 0&&n.getType(o)){e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,i.name));return}if(t[o]){e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,[t[o],i.name]))}else{t[o]=i.name}return false}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},,,,,function(e,t,n){"use strict";var r=n(755);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,n=e;for(t in n){if(i.call(n,t)){if(n[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var r=n(234);function NoUnusedFragmentsRule(e){const t=[];const n=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){n.push(e);return false},Document:{leave(){const i=Object.create(null);for(const n of t){for(const t of e.getRecursivelyReferencedFragments(n)){i[t.name.value]=true}}for(const t of n){const n=t.name.value;if(i[n]!==true){e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,t))}}}}}}},,,,function(e,t,n){"use strict";e.exports=n(77).extend({implicit:[n(244),n(230)],explicit:[n(848),n(919),n(224),n(338)]})},,,,,,,,function(e,t,n){"use strict";var r=n(35);var i=n(727);var o=n(779);var s=n(825);var a=n(529);function createInstance(e){var t=new o(e);var n=i(o.prototype.request,t);r.extend(n,o.prototype,t);r.extend(n,t);return n}var c=createInstance(a);c.Axios=o;c.create=function create(e){return createInstance(s(c.defaults,e))};c.Cancel=n(826);c.CancelToken=n(137);c.isCancel=n(732);c.all=function all(e){return Promise.all(e)};c.spread=n(879);c.isAxiosError=n(104);e.exports=c;e.exports.default=c},,,,,function(e){e.exports=require("assert")},,,,function(e){e.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}},,,function(e){"use strict";e.exports=((e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const i=t.indexOf("--");return r!==-1&&(i===-1||re.name);function isSDLNode(e){return"kind"in e&&((0,s.isTypeSystemDefinitionNode)(e)||(0,s.isTypeSystemExtensionNode)(e))}},,function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){e.config=t;if(n){e.code=n}e.request=r;e.response=i;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return e}},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const n=Boolean(e);if(!n){throw new Error(t)}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e)){n[r]=t(i,r)}return n}},,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;let n;t.DirectiveLocation=n;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(n||(t.DirectiveLocation=n={}))},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var r=n(371);var i=n(234);var o=n(655);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,r.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var r=n(326);function concatAST(e){const t=[];for(const n of e){t.push(...n.definitions)}return{kind:r.Kind.DOCUMENT,definitions:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var r=n(393);var i=n(371);var o=n(156);var s=n(326);const a=Object.freeze({});t.BREAK=a;function visit(e,t,n=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(s.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let l=Array.isArray(e);let p=[e];let f=-1;let d=[];let m=undefined;let h=undefined;let g=undefined;const y=[];const v=[];let b=e;do{f++;const e=f===p.length;const s=e&&d.length!==0;if(e){h=v.length===0?undefined:y[y.length-1];m=g;g=v.pop();if(s){if(l){m=m.slice();let e=0;for(const[t,n]of d){const r=t-e;if(n===null){m.splice(r,1);e++}else{m[r]=n}}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(const[e,t]of d){m[e]=t}}}f=u.index;p=u.keys;d=u.edits;l=u.inArray;u=u.prev}else{h=g?l?f:p[f]:undefined;m=g?g[h]:b;if(m===null||m===undefined){continue}if(g){y.push(h)}}let w;if(!Array.isArray(m)){var T,E;(0,o.isNode)(m)||(0,i.devAssert)(false,`Invalid AST Node: ${(0,r.inspect)(m)}.`);const n=e?(T=c.get(m.kind))===null||T===void 0?void 0:T.leave:(E=c.get(m.kind))===null||E===void 0?void 0:E.enter;w=n===null||n===void 0?void 0:n.call(t,m,h,g,y,v);if(w===a){break}if(w===false){if(!e){y.pop();continue}}else if(w!==undefined){d.push([h,w]);if(!e){if((0,o.isNode)(w)){m=w}else{y.pop();continue}}}}if(w===undefined&&s){d.push([h,m])}if(e){y.pop()}else{var O;u={inArray:l,index:f,keys:p,edits:d,prev:u};l=Array.isArray(m);p=l?m:(O=n[m.kind])!==null&&O!==void 0?O:[];f=-1;d=[];if(g){v.push(g)}g=m}}while(u!==undefined);if(d.length!==0){b=d[d.length-1][1]}return b}function visitInParallel(e){const t=new Array(e.length).fill(null);const n=Object.create(null);for(const r of Object.values(s.Kind)){let i=false;const o=new Array(e.length).fill(undefined);const s=new Array(e.length).fill(undefined);for(let t=0;t=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const n=e.source.body.codePointAt(t);if(n===undefined){return o.TokenKind.EOF}else if(n>=32&&n<=126){const e=String.fromCodePoint(n);return e==='"'?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,n,r,o){const s=e.line;const a=1+n-e.lineStart;return new i.Token(t,n,r,s,a,o)}function readNextToken(e,t){const n=e.source.body;const i=n.length;let s=t;while(s=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const n=e.source.body;const i=n.charCodeAt(t+1);switch(i){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function readBlockString(e,t){const n=e.source.body;const i=n.length;let a=t+3;let c=a;let u="";while(ar){return"["+getObjectTag(e)+"]"}const i=n.map(([e,n])=>e+": "+formatValue(n,t));return"{ "+i.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>r){return"[Array]"}const i=Math.min(n,e.length);const o=e.length-i;const s=[];for(let n=0;n1){s.push(`... ${o} more items`)}return"["+s.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var r=n(932);var i=n(234);function UniqueInputFieldNamesRule(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n);n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(false);n=e}},ObjectField(t){const r=t.name.value;if(n[r]){e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,[n[r],t.name]))}else{n[r]=t.name}}}}},,,,,,,,,,function(e,t,n){"use strict";e.exports=n(308).extend({implicit:[n(676),n(882),n(707),n(227)]})},,,,function(e,t,n){"use strict";var r=n(35);e.exports=function normalizeHeaderName(e,t){r.forEach(e,function processHeader(n,r){if(r!==t&&r.toUpperCase()===t.toUpperCase()){e[t]=n;delete e[r]}})}},,function(e){e.exports=require("stream")},function(e,t,n){"use strict";var r=n(450);var i=n(844);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=n(755);e.exports.Schema=n(307);e.exports.FAILSAFE_SCHEMA=n(308);e.exports.JSON_SCHEMA=n(407);e.exports.CORE_SCHEMA=n(77);e.exports.DEFAULT_SCHEMA=n(344);e.exports.load=r.load;e.exports.loadAll=r.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=n(652);e.exports.types={binary:n(848),float:n(227),map:n(85),null:n(676),pairs:n(224),set:n(338),timestamp:n(244),bool:n(882),int:n(707),merge:n(230),omap:n(919),seq:n(503),str:n(258)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},,,,,,,,function(e){var t;var n;var r;var i;var o;var s;var a;var c;var u;var l;var p;var f;var d;var m;var h;var g;var y;var v;var b;var T;var E;var O;var w;var _;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],function(e){t(createExporter(n,createExporter(e)))})}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,r){return e[n]=t?t(n,r):r}}})(function(e){var S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");S(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)if(s=e[a])o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o;return i>3&&o&&Object.defineProperty(t,n,o),o};o=function(e,t){return function(n,r){t(n,r,e)}};s=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};c=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};p=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(n=r["return"]))n.call(r)}finally{if(s)throw s.error}}return o};f=function(){for(var e=[],t=0;t1||resume(e,t)})}}function resume(e,t){try{step(r[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof h?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),o.shift(),o.length)resume(o[0][0],o[0][1])}};y=function(e){var t,n;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:r==="return"}:i?i(t):t}:i}};v=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof l==="function"?l(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),settle(r,i,n.done,n.value)})}}function settle(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};b=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))_(t,e,n);N(t,e);return t};E=function(e){return e&&e.__esModule?e:{default:e}};O=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)};w=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n};e("__extends",t);e("__assign",n);e("__rest",r);e("__decorate",i);e("__param",o);e("__metadata",s);e("__awaiter",a);e("__generator",c);e("__exportStar",u);e("__createBinding",_);e("__values",l);e("__read",p);e("__spread",f);e("__spreadArrays",d);e("__spreadArray",m);e("__await",h);e("__asyncGenerator",g);e("__asyncDelegator",y);e("__asyncValues",v);e("__makeTemplateObject",b);e("__importStar",T);e("__importDefault",E);e("__classPrivateFieldGet",O);e("__classPrivateFieldSet",w)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var r=n(234);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(n!==null&&n!==void 0&&n.getDirective(o)){e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,i.name));return}if(t[o]){e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,[t[o],i.name]))}else{t[o]=i.name}return false}}}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var r=n(393);var i=n(234);var o=n(326);var s=n(577);var a=n(75);var c=n(72);function reasonMessage(e){if(Array.isArray(e)){return e.map(([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t)).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const n=new Map;return{SelectionSet(r){const o=findConflictsWithinSelectionSet(e,n,t,e.getParentType(),r);for(const[[t,n],r,s]of o){const o=reasonMessage(n);e.reportError(new i.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,r.concat(s)))}}}}function findConflictsWithinSelectionSet(e,t,n,r,i){const o=[];const[s,a]=getFieldsAndFragmentNames(e,t,r,i);collectConflictsWithin(e,o,t,n,s);if(a.length!==0){for(let r=0;r1){for(let i=0;i{const n=t.find(t=>t.name.value===e.name.value);if(!n){return false}return sameValue(e.value,n.value)})}function sameValue(e,t){return(0,s.print)(e)===(0,s.print)(t)}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,n,r){const i=t.get(r);if(i){return i}const o=Object.create(null);const s=Object.create(null);_collectFieldsAndFragmentNames(e,n,r,o,s);const a=[o,Object.keys(s)];t.set(r,a);return a}function getReferencedFieldsAndFragmentNames(e,t,n){const r=t.get(n.selectionSet);if(r){return r}const i=(0,c.typeFromAST)(e.getSchema(),n.typeCondition);return getFieldsAndFragmentNames(e,t,i,n.selectionSet)}function _collectFieldsAndFragmentNames(e,t,n,r,i){for(const s of n.selections){switch(s.kind){case o.Kind.FIELD:{const e=s.name.value;let n;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){n=t.getFields()[e]}const i=s.alias?s.alias.value:e;if(!r[i]){r[i]=[]}r[i].push([t,s,n]);break}case o.Kind.FRAGMENT_SPREAD:i[s.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const n=s.typeCondition;const o=n?(0,c.typeFromAST)(e.getSchema(),n):t;_collectFieldsAndFragmentNames(e,o,s.selectionSet,r,i);break}}}}function subfieldConflicts(e,t,n,r){if(e.length>0){return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=o(n(87));const a=n(82);function issueCommand(e,t,n){const r=new Command(e,t,n);process.stdout.write(r.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const r=this.properties[n];if(r){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(r)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var r=n(75);function isEqualType(e,t){if(e===t){return true}if((0,r.isNonNullType)(e)&&(0,r.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,r.isListType)(e)&&(0,r.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,n){if(t===n){return true}if((0,r.isNonNullType)(n)){if((0,r.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,n.ofType)}return false}if((0,r.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,n)}if((0,r.isListType)(n)){if((0,r.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,n.ofType)}return false}if((0,r.isListType)(t)){return false}return(0,r.isAbstractType)(n)&&((0,r.isInterfaceType)(t)||(0,r.isObjectType)(t))&&e.isSubType(n,t)}function doTypesOverlap(e,t,n){if(t===n){return true}if((0,r.isAbstractType)(t)){if((0,r.isAbstractType)(n)){return e.getPossibleTypes(t).some(t=>e.isSubType(n,t))}return e.isSubType(t,n)}if((0,r.isAbstractType)(n)){return e.isSubType(n,t)}return false}},,,,,,,,,function(e,t,n){"use strict";var r=n(843);var i=n(652);var o=n(98);var s=n(344);var a=Object.prototype.hasOwnProperty;var c=1;var u=2;var l=3;var p=4;var f=1;var d=2;var m=3;var h=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var g=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var v=/^(?:!|!!|![a-z\-]+!)$/i;var b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var T=new Array(256);var E=new Array(256);for(var O=0;O<256;O++){T[O]=simpleEscapeSequence(O)?1:0;E[O]=simpleEscapeSequence(O)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||s;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=o(n);return new i(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var w={YAML:function handleYamlDirective(e,t,n){var r,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(r===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(r[1],10);o=parseInt(r[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,n){var r,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}r=n[0];i=n[1];if(!v.test(r)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,r)){throwError(e,'there is a previously declared suffix for "'+r+'" tag handle')}if(!b.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function captureSegment(e,t,n,r){var i,o,s,a;if(t1){e.result+=r.repeat("\n",t-1)}}function readPlainScalar(e,t,n){var r,i,o,s,a,c,u,l,p=e.kind,f=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=s=e.position;a=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(d===35){r=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(r)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){c=e.line;u=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=c;e.lineStart=u;e.lineIndent=l;break}}if(a){captureSegment(e,o,s,false);writeFoldedLines(e,e.line-c);o=s=e.position;a=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,o,s,false);if(e.result){return true}e.kind=p;e.result=f;return false}function readSingleQuotedScalar(e,t){var n,r,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;r=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,r,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){r=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,r,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,r,i,o,s,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;n=r=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,n,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&T[a]){e.result+=E[a];e.position++}else if((s=escapedHexLen(a))>0){i=s;o=0;for(;i>0;i--){a=e.input.charCodeAt(++e.position);if((s=fromHexCode(a))>=0){o=(o<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}n=r=e.position}else if(is_EOL(a)){captureSegment(e,n,r,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=r=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;r=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n=true,r,i,o,s=e.tag,a,u=e.anchor,l,p,f,d,m,h=Object.create(null),g,y,v,b;b=e.input.charCodeAt(e.position);if(b===91){p=93;m=false;a=[]}else if(b===123){p=125;m=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}b=e.input.charCodeAt(++e.position);while(b!==0){skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===p){e.position++;e.tag=s;e.anchor=u;e.kind=m?"mapping":"sequence";e.result=a;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(b===44){throwError(e,"expected the node content, but found ','")}y=g=v=null;f=d=false;if(b===63){l=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(l)){f=d=true;e.position++;skipSeparationSpace(e,true,t)}}r=e.line;i=e.lineStart;o=e.position;composeNode(e,t,c,false,true);y=e.tag;g=e.result;skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if((d||e.line===r)&&b===58){f=true;b=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,c,false,true);v=e.result}if(m){storeMappingPair(e,a,h,y,g,v,r,i,o)}else if(f){a.push(storeMappingPair(e,null,h,y,g,v,r,i,o))}else{a.push(g)}skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===44){n=true;b=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,i,o=f,s=false,a=false,c=t,u=0,l=false,p,h;h=e.input.charCodeAt(e.position);if(h===124){i=false}else if(h===62){i=true}else{return false}e.kind="scalar";e.result="";while(h!==0){h=e.input.charCodeAt(++e.position);if(h===43||h===45){if(f===o){o=h===43?m:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(h))>=0){if(p===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){c=t+p-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(h)){do{h=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(h));if(h===35){do{h=e.input.charCodeAt(++e.position)}while(!is_EOL(h)&&h!==0)}}while(h!==0){readLineBreak(e);e.lineIndent=0;h=e.input.charCodeAt(e.position);while((!a||e.lineIndentc){c=e.lineIndent}if(is_EOL(h)){u++;continue}if(e.lineIndentt)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(v){s=e.line;a=e.lineStart;c=e.position}if(composeNode(e,t,p,true,i)){if(v){g=e.result}else{y=e.result}}if(!v){storeMappingPair(e,d,m,h,g,y,s,a,c);h=g=y=null}skipSeparationSpace(e,true,-1);T=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&T!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndentt){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(g=0,y=e.implicitTypes.length;g")}if(e.result!==null&&b.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"')}if(!b.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=b.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||h}function readDocument(e){var t=e.position,n,r,i,o=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}o=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}r=e.input.slice(n,e.position);i=[];if(r.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(a.call(w,r)){w[r](e,r,i)}else{throwWarning(e,'unknown document directive "'+r+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&g.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.positionconsole.warn(e));class RequestError extends Error{constructor(e,t,n){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){o(new r.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=n.headers||{};const i=Object.assign({},n.request);if(n.request.headers.authorization){i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var r=n(393);var i=n(187);var o=n(932);var s=n(371);var a=n(649);var c=n(947);var u=n(231);var l=n(153);var p=n(691);var f=n(333);var d=n(234);var m=n(635);var h=n(156);var g=n(326);var y=n(839);var v=n(754);var b=n(75);var T=n(740);var E=n(962);const O=(0,i.memoize3)((e,t,n)=>(0,E.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function execute(e){const{schema:t,document:n,variableValues:r,rootValue:i}=e;assertValidExecutionArguments(t,n,r);const o=buildExecutionContext(e);if(!("schema"in o)){return{errors:o}}try{const{operation:e}=o;const t=executeOperation(o,e,i);if((0,a.isPromise)(t)){return t.then(e=>buildResponse(e,o.errors),e=>{o.errors.push(e);return buildResponse(null,o.errors)})}return buildResponse(t,o.errors)}catch(e){o.errors.push(e);return buildResponse(null,o.errors)}}function executeSync(e){const t=execute(e);if((0,a.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,n){t||(0,s.devAssert)(false,"Must provide document.");(0,y.assertValidSchema)(e);n==null||(0,c.isObjectLike)(n)||(0,s.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:c,fieldResolver:u,typeResolver:l,subscribeFieldResolver:p}=e;let f;const m=Object.create(null);for(const e of i.definitions){switch(e.kind){case g.Kind.OPERATION_DEFINITION:if(c==null){if(f!==undefined){return[new d.GraphQLError("Must provide operation name if query contains multiple operations.")]}f=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){f=e}break;case g.Kind.FRAGMENT_DEFINITION:m[e.name.value]=e;break}}if(!f){if(c!=null){return[new d.GraphQLError(`Unknown operation named "${c}".`)]}return[new d.GraphQLError("Must provide an operation.")]}const h=(n=f.variableDefinitions)!==null&&n!==void 0?n:[];const y=(0,T.getVariableValues)(r,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(y.errors){return y.errors}return{schema:r,fragments:m,rootValue:o,contextValue:s,operation:f,variableValues:y.coerced,fieldResolver:u!==null&&u!==void 0?u:_,typeResolver:l!==null&&l!==void 0?l:w,subscribeFieldResolver:p!==null&&p!==void 0?p:_,errors:[]}}function executeOperation(e,t,n){const r=e.schema.getRootType(t.operation);if(r==null){throw new d.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,t)}const i=(0,E.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,r,n,o,i);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,r,n,o,i);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,r,n,o,i)}}function executeFieldsSerially(e,t,n,r,i){return(0,u.promiseReduce)(i.entries(),(i,[o,s])=>{const c=(0,p.addPath)(r,o,t.name);const u=executeField(e,t,n,s,c);if(u===undefined){return i}if((0,a.isPromise)(u)){return u.then(e=>{i[o]=e;return i})}i[o]=u;return i},Object.create(null))}function executeFields(e,t,n,r,i){const o=Object.create(null);let s=false;for(const[c,u]of i.entries()){const i=(0,p.addPath)(r,c,t.name);const l=executeField(e,t,n,u,i);if(l!==undefined){o[c]=l;if((0,a.isPromise)(l)){s=true}}}if(!s){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,n,r,i){var o;const s=getFieldDef(e.schema,t,r[0]);if(!s){return}const c=s.type;const u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,s,r,t,i);try{const t=(0,T.getArgumentValues)(s,r[0],e.variableValues);const o=e.contextValue;const f=u(n,t,o,l);let d;if((0,a.isPromise)(f)){d=f.then(t=>completeValue(e,c,r,l,i,t))}else{d=completeValue(e,c,r,l,i,f)}if((0,a.isPromise)(d)){return d.then(undefined,t=>{const n=(0,m.locatedError)(t,r,(0,p.pathToArray)(i));return handleFieldError(n,c,e)})}return d}catch(t){const n=(0,m.locatedError)(t,r,(0,p.pathToArray)(i));return handleFieldError(n,c,e)}}function buildResolveInfo(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,n){if((0,b.isNonNullType)(t)){throw e}n.errors.push(e);return null}function completeValue(e,t,n,i,s,a){if(a instanceof Error){throw a}if((0,b.isNonNullType)(t)){const r=completeValue(e,t.ofType,n,i,s,a);if(r===null){throw new Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`)}return r}if(a==null){return null}if((0,b.isListType)(t)){return completeListValue(e,t,n,i,s,a)}if((0,b.isLeafType)(t)){return completeLeafValue(t,a)}if((0,b.isAbstractType)(t)){return completeAbstractValue(e,t,n,i,s,a)}if((0,b.isObjectType)(t)){return completeObjectValue(e,t,n,i,s,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,r.inspect)(t))}function completeListValue(e,t,n,r,i,o){if(!(0,f.isIterableObject)(o)){throw new d.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`)}const s=t.ofType;let c=false;const u=Array.from(o,(t,o)=>{const u=(0,p.addPath)(i,o,undefined);try{let i;if((0,a.isPromise)(t)){i=t.then(t=>completeValue(e,s,n,r,u,t))}else{i=completeValue(e,s,n,r,u,t)}if((0,a.isPromise)(i)){c=true;return i.then(undefined,t=>{const r=(0,m.locatedError)(t,n,(0,p.pathToArray)(u));return handleFieldError(r,s,e)})}return i}catch(t){const r=(0,m.locatedError)(t,n,(0,p.pathToArray)(u));return handleFieldError(r,s,e)}});return c?Promise.all(u):u}function completeLeafValue(e,t){const n=e.serialize(t);if(n==null){throw new Error(`Expected \`${(0,r.inspect)(e)}.serialize(${(0,r.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,r.inspect)(n)}`)}return n}function completeAbstractValue(e,t,n,r,i,o){var s;const c=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver;const u=e.contextValue;const l=c(o,u,r,t);if((0,a.isPromise)(l)){return l.then(s=>completeObjectValue(e,ensureValidRuntimeType(s,e,t,n,r,o),n,r,i,o))}return completeObjectValue(e,ensureValidRuntimeType(l,e,t,n,r,o),n,r,i,o)}function ensureValidRuntimeType(e,t,n,i,o,s){if(e==null){throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,i)}if((0,b.isObjectType)(e)){throw new d.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,r.inspect)(s)}, received "${(0,r.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,i)}if(!(0,b.isObjectType)(a)){throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,i)}if(!t.schema.isSubType(n,a)){throw new d.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,i)}return a}function completeObjectValue(e,t,n,r,i,o){const s=O(e,t,n);if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if((0,a.isPromise)(c)){return c.then(r=>{if(!r){throw invalidReturnTypeError(t,o,n)}return executeFields(e,t,o,i,s)})}if(!c){throw invalidReturnTypeError(t,o,n)}}return executeFields(e,t,o,i,s)}function invalidReturnTypeError(e,t,n){return new d.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,r.inspect)(t)}.`,n)}const w=function(e,t,n,r){if((0,c.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const i=n.schema.getPossibleTypes(r);const o=[];for(let r=0;r{for(let t=0;te!=="");return n}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const r=["false","False","FALSE"];const i=getInput(e,t);if(n.includes(i))return true;if(r.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n})}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[n,r]of Object.entries(e)){t[n]=r}return t}},,,,,,,,,,,,,function(e,t,n){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(761);createDebug.destroy=destroy;Object.keys(e).forEach(t=>{createDebug[t]=e[t]});createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n{if(t==="%%"){return"%"}o++;const i=createDebug.formatters[r];if(typeof i==="function"){const r=e[o];t=i.call(n,r);e.splice(o,1);o--}return t});createDebug.formatArgs.call(n,e);const s=n.log||createDebug.log;s.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>n===null?createDebug.enabled(e):n,set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const r=n.length;for(t=0;t"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t0){n="\n"+n}const r=n.endsWith('"')&&!n.endsWith('\\"""');if(r||n.endsWith("\\")){n+="\n"}return'"""'+n+'"""'}},,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=dedentBlockStringValue;t.getBlockStringIndentation=getBlockStringIndentation;t.printBlockString=printBlockString;function dedentBlockStringValue(e){const t=e.split(/\r\n|[\n\r]/g);const n=getBlockStringIndentation(e);if(n!==0){for(let e=1;er&&isBlank(t[i-1])){--i}return t.slice(r,i).join("\n")}function isBlank(e){for(const t of e){if(t!==" "&&t!=="\t"){return false}}return true}function getBlockStringIndentation(e){var t;let n=true;let r=true;let i=0;let o=null;for(let t=0;te.type in f)}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter(e=>e.type in d)}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const n=[];const r=diff(e.getDirectives(),t.getDirectives());for(const e of r.removed){n.push({type:f.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of r.persisted){const r=diff(e.args,t.args);for(const t of r.added){if((0,l.isRequiredArgument)(t)){n.push({type:f.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of r.removed){n.push({type:f.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){n.push({type:f.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const r of e.locations){if(!t.locations.includes(r)){n.push({type:f.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}}}return n}function findTypeChanges(e,t){const n=[];const r=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed){n.push({type:f.TYPE_REMOVED,description:(0,u.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of r.persisted){if((0,l.isEnumType)(e)&&(0,l.isEnumType)(t)){n.push(...findEnumTypeChanges(e,t))}else if((0,l.isUnionType)(e)&&(0,l.isUnionType)(t)){n.push(...findUnionTypeChanges(e,t))}else if((0,l.isInputObjectType)(e)&&(0,l.isInputObjectType)(t)){n.push(...findInputObjectTypeChanges(e,t))}else if((0,l.isObjectType)(e)&&(0,l.isObjectType)(t)){n.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,l.isInterfaceType)(e)&&(0,l.isInterfaceType)(t)){n.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){n.push({type:f.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return n}function findInputObjectTypeChanges(e,t){const n=[];const r=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added){if((0,l.isRequiredInputField)(t)){n.push({type:f.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{n.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of r.removed){n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,i]of r.persisted){const r=isChangeSafeForInputObjectFieldOrFieldArg(t.type,i.type);if(!r){n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(i.type)}.`})}}return n}function findUnionTypeChanges(e,t){const n=[];const r=diff(e.getTypes(),t.getTypes());for(const t of r.added){n.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of r.removed){n.push({type:f.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return n}function findEnumTypeChanges(e,t){const n=[];const r=diff(e.getValues(),t.getValues());for(const t of r.added){n.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of r.removed){n.push({type:f.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return n}function findImplementedInterfacesChanges(e,t){const n=[];const r=diff(e.getInterfaces(),t.getInterfaces());for(const t of r.added){n.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of r.removed){n.push({type:f.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return n}function findFieldChanges(e,t){const n=[];const r=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed){n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,i]of r.persisted){n.push(...findArgChanges(e,t,i));const r=isChangeSafeForObjectOrInterfaceField(t.type,i.type);if(!r){n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(i.type)}.`})}}return n}function findArgChanges(e,t,n){const r=[];const i=diff(t.args,n.args);for(const n of i.removed){r.push({type:f.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`})}for(const[n,o]of i.persisted){const i=isChangeSafeForInputObjectFieldOrFieldArg(n.type,o.type);if(!i){r.push({type:f.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from `+`${String(n.type)} to ${String(o.type)}.`})}else if(n.defaultValue!==undefined){if(o.defaultValue===undefined){r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`})}else{const i=stringifyValue(n.defaultValue,n.type);const s=stringifyValue(o.defaultValue,o.type);if(i!==s){r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${s}.`})}}}}for(const n of i.added){if((0,l.isRequiredArgument)(n)){r.push({type:f.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`})}else{r.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`})}}return r}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,l.isListType)(e)){return(0,l.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,l.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,l.isNonNullType)(e)){return(0,l.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,l.isNamedType)(t)&&e.name===t.name||(0,l.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,l.isListType)(e)){return(0,l.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,l.isNonNullType)(e)){return(0,l.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,l.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,l.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,l.isScalarType)(e)){return"a Scalar type"}if((0,l.isObjectType)(e)){return"an Object type"}if((0,l.isInterfaceType)(e)){return"an Interface type"}if((0,l.isUnionType)(e)){return"a Union type"}if((0,l.isEnumType)(e)){return"an Enum type"}if((0,l.isInputObjectType)(e)){return"an Input type"}false||(0,o.invariant)(false,"Unexpected type: "+(0,i.inspect)(e))}function stringifyValue(e,t){const n=(0,p.astFromValue)(e,t);n!=null||(0,o.invariant)(false);const r=(0,c.visit)(n,{ObjectValue(e){const t=[...e.fields];t.sort((e,t)=>(0,s.naturalCompare)(e.name.value,t.name.value));return{...e,fields:t}}});return(0,a.print)(r)}function diff(e,t){const n=[];const i=[];const o=[];const s=(0,r.keyMap)(e,({name:e})=>e);const a=(0,r.keyMap)(t,({name:e})=>e);for(const t of e){const e=a[t.name];if(e===undefined){i.push(t)}else{o.push([t,e])}}for(const e of t){if(s[e.name]===undefined){n.push(e)}}return{added:n,persisted:o,removed:i}}},,,,,,,,function(e,t,n){"use strict";var r=n(755);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var r=n(234);var i=n(75);var o=n(754);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());if(n&&(0,o.isIntrospectionType)(n)){e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,t))}}}}},,,,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const s=o(n(262));const a=o(n(127));const c=n(626);const u=n(713);const l=n(322);t.context=new s.Context;const p=a.getApiBaseUrl();const f={baseUrl:p,request:{agent:a.getProxyAgent(p)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,l.paginateRest).defaults(f);function getOctokitOptions(e,t){const n=Object.assign({},t||{});const r=a.getAuthString(e,n);if(r){n.auth=r}return n}t.getOctokitOptions=getOctokitOptions},,,,,,,,function(e,t,n){"use strict";var r=n(35);var i=n(411);var o=n(369);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=n(219)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=n(670)}return e}function stringifySafely(e,t,n){if(r.isString(e)){try{(t||JSON.parse)(e);return r.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}var a={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){i(t,"Accept");i(t,"Content-Type");if(r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)){return e}if(r.isArrayBufferView(e)){return e.buffer}if(r.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(r.isObject(e)||t&&t["Content-Type"]==="application/json"){setContentTypeIfUnset(t,"application/json");return stringifySafely(e)}return e}],transformResponse:[function transformResponse(e){var t=this.transitional;var n=t&&t.silentJSONParsing;var i=t&&t.forcedJSONParsing;var s=!n&&this.responseType==="json";if(s||i&&r.isString(e)&&e.length){try{return JSON.parse(e)}catch(e){if(s){if(e.name==="SyntaxError"){throw o(e,this,"E_JSON_PARSE")}throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}};r.forEach(["delete","get","head"],function forEachMethodNoData(e){a.headers[e]={}});r.forEach(["post","put","patch"],function forEachMethodWithData(e){a.headers[e]=r.merge(s)});e.exports=a},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=n(835);const i=n(605);const o=n(211);const s=n(950);let a;var c;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(c=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=s.getProxyUrl(r.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const p=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const f=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const d=["OPTIONS","GET","DELETE","HEAD"];const m=10;const h=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",e=>{n=Buffer.concat([n,e])});this.message.on("end",()=>{e(n.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=r.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,l.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,l.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,l.ApplicationJson);let i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,l.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,l.ApplicationJson);let i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){let r=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,l.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,l.ApplicationJson);let i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,i){if(this._disposed){throw new Error("Client has already been disposed.")}let o=r.parse(t);let s=this._prepareRequest(e,o,i);let a=this._allowRetries&&d.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let l;while(u0){const a=l.message.headers["location"];if(!a){break}let c=r.parse(a);if(o.protocol=="https:"&&o.protocol!=c.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(c.hostname!==o.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}s=this._prepareRequest(e,c,i);l=await this.requestRaw(s,n);t--}if(f.indexOf(l.message.statusCode)==-1){return l}u+=1;if(u{let i=function(e,t){if(e){r(e)}n(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,n){let r;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let o=(e,t)=>{if(!i){i=true;n(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);o(null,t)});s.on("socket",e=>{r=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(r){r.end()}o(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){o(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}getAgent(e){let t=r.parse(e);return this._getAgent(t)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const s=r.parsedUrl.protocol==="https:";r.httpModule=s?o:i;const a=s?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(r.options)})}return r}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,n){const r=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=r(this.requestOptions.headers)[t]}return e[t]||i||n}_getAgent(e){let t;let r=s.getProxyUrl(e);let c=r&&r.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(c){if(!a){a=n(856)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:r.auth,host:r.hostname,port:r.port}};let i;const o=r.protocol==="https:";if(u){i=o?a.httpsOverHttps:a.httpsOverHttp}else{i=o?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new o.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=u?o.globalAgent:i.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(m,e);const t=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(n,r)=>{const i=e.message.statusCode;const o={statusCode:i,result:null,headers:{}};if(i==c.NotFound){n(o)}let s;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){s=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(a)}o.result=s}o.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(o.result){t["result"]=o.result}r(t)}else{n(o)}})}}t.HttpClient=HttpClient},,,,,,,,,,function(e,t,n){var r=n(835);var i=r.URL;var o=n(605);var s=n(211);var a=n(413).Writable;var c=n(357);var u=n(454);var l=["abort","aborted","connect","error","socket","timeout"];var p=Object.create(null);l.forEach(function(e){p[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var f=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var d=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var m=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var h=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,t){a.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var n=this;this._onNativeResponse=function(e){n._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.abort=function(){abortRequest(this._currentRequest);this.emit("abort")};RedirectableRequest.prototype.write=function(e,t,n){if(this._ending){throw new h}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){n=t;t=null}if(e.length===0){if(n){n()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,n)}else{this.emit("error",new m);this.abort()}};RedirectableRequest.prototype.end=function(e,t,n){if(typeof e==="function"){n=e;e=t=null}else if(typeof t==="function"){n=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,n)}else{var r=this;var i=this._currentRequest;this.write(e,t,function(){r._ended=true;i.end(null,null,n)});this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var n=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(n._timeout){clearTimeout(n._timeout)}n._timeout=setTimeout(function(){n.emit("timeout");clearTimer()},e);destroyOnTimeout(t)}function clearTimer(){if(n._timeout){clearTimeout(n._timeout);n._timeout=null}n.removeListener("abort",clearTimer);n.removeListener("error",clearTimer);n.removeListener("response",clearTimer);if(t){n.removeListener("timeout",t)}if(!n.socket){n._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=r.format(this._options);i._redirectable=this;for(var o=0;o=400){e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[];return}abortRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new d);return}if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var i=removeMatchingHeaders(/^host$/i,this._options.headers);var o=r.parse(this._currentUrl);var s=i||o.host;var a=/^\w+:/.test(n)?this._currentUrl:r.format(Object.assign(o,{host:s}));var c;try{c=r.resolve(a,n)}catch(e){this.emit("error",new f(e));return}u("redirecting to",c);this._isRedirect=true;var l=r.parse(c);Object.assign(this._options,l);if(l.protocol!==o.protocol&&l.protocol!=="https:"||l.host!==s&&!isSubdomain(l.host,s)){removeMatchingHeaders(/^(?:authorization|cookie)$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var p={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,p)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new f(e))}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var n={};Object.keys(e).forEach(function(o){var s=o+":";var a=n[s]=e[o];var l=t[o]=Object.create(a);function request(e,o,a){if(typeof e==="string"){var l=e;try{e=urlToOptions(new i(l))}catch(t){e=r.parse(l)}}else if(i&&e instanceof i){e=urlToOptions(e)}else{a=o;o=e;e={protocol:s}}if(typeof o==="function"){a=o;o=null}o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o);o.nativeProtocols=n;c.equal(o.protocol,s,"protocol mismatch");u("options",o);return new RedirectableRequest(o,a)}function get(e,t,n){var r=l.request(e,t,n);r.end();return r}Object.defineProperties(l,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})});return t}function noop(){}function urlToOptions(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){t.port=Number(e.port)}return t}function removeMatchingHeaders(e,t){var n;for(var r in t){if(e.test(r)){n=t[r];delete t[r]}}return n===null||typeof n==="undefined"?undefined:String(n).trim()}function createErrorType(e,t){function CustomError(e){Error.captureStackTrace(this,this.constructor);if(!e){this.message=t}else{this.message=t+": "+e.message;this.cause=e}}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}function abortRequest(e){for(var t=0;t0&&e[n]==="."&&e.endsWith(t)}e.exports=wrap({http:o,https:s});e.exports.wrap=wrap},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return s.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return l.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return p.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return f.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return d.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return P.LoneSchemaDefinitionRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return $.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return m.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return M.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return g.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return y.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return v.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return b.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return T.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return E.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return O.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return x.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return w.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return U.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return _.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return C.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return k.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return S.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return N.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return D.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return L.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return F.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return A.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return i.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return I.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return j.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return R.VariablesInAllowedPositionRule}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return r.validate}});var r=n(625);var i=n(567);var o=n(236);var s=n(172);var a=n(269);var c=n(80);var u=n(288);var l=n(719);var p=n(7);var f=n(367);var d=n(303);var m=n(254);var h=n(666);var g=n(340);var y=n(698);var v=n(428);var b=n(601);var T=n(56);var E=n(885);var O=n(223);var w=n(29);var _=n(238);var S=n(286);var N=n(397);var D=n(704);var A=n(972);var I=n(594);var j=n(458);var R=n(641);var P=n(647);var L=n(46);var F=n(332);var C=n(160);var k=n(192);var x=n(818);var U=n(423);var G=n(323);var $=n(289);var M=n(505)},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var r=n(393);var i=n(371);var o=n(857);var s=n(947);var a=n(166);var c=n(742);var u=n(134);var l=n(810);var p=n(754);var f=n(75);var d=n(820);function buildClientSchema(e,t){(0,s.isObjectLike)(e)&&(0,s.isObjectLike)(e.__schema)||(0,i.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,r.inspect)(e)}.`);const n=e.__schema;const m=(0,o.keyValMap)(n.types,e=>e.name,e=>buildType(e));for(const e of[...l.specifiedScalarTypes,...p.introspectionTypes]){if(m[e.name]){m[e.name]=e}}const h=n.queryType?getObjectType(n.queryType):null;const g=n.mutationType?getObjectType(n.mutationType):null;const y=n.subscriptionType?getObjectType(n.subscriptionType):null;const v=n.directives?n.directives.map(buildDirective):[];return new c.GraphQLSchema({description:n.description,query:h,mutation:g,subscription:y,types:Object.values(m),directives:v,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===p.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new f.GraphQLList(getType(t))}if(e.kind===p.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const n=getType(t);return new f.GraphQLNonNull((0,f.assertNullableType)(n))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,r.inspect)(e)}.`)}const n=m[t];if(!n){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return n}function getObjectType(e){return(0,f.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,f.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case p.TypeKind.SCALAR:return buildScalarDef(e);case p.TypeKind.OBJECT:return buildObjectDef(e);case p.TypeKind.INTERFACE:return buildInterfaceDef(e);case p.TypeKind.UNION:return buildUnionDef(e);case p.TypeKind.ENUM:return buildEnumDef(e);case p.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,r.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new f.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===p.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new f.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new f.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new f.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new f.GraphQLEnumType({name:e.name,description:e.description,values:(0,o.keyValMap)(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new f.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields)})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,r.inspect)(e)}.`)}return(0,o.keyValMap)(e.fields,e=>e.name,buildField)}function buildField(e){const t=getType(e.type);if(!(0,f.isOutputType)(t)){const e=(0,r.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,o.keyValMap)(e,e=>e.name,buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,f.isInputType)(t)){const e=(0,r.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=e.defaultValue!=null?(0,d.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,r.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},,,,,function(e,t,n){"use strict";var r=n(26);e.exports=function settle(e,t,n){var i=n.config.validateStatus;if(!n.status||!i||i(n.status)){e(n)}else{t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(326);var i=n(386);var o=n(105);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===r.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;while(i=n.pop()){for(const e of i.selections){if(e.kind===r.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){n.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null);const r=[e.selectionSet];let i;while(i=r.pop()){for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(n[i]!==true){n[i]=true;const e=this.getFragment(i);if(e){t.push(e);r.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,n){super(e,n);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,n,r){super(t,r);this._schema=e;this._typeInfo=n;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[];const r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>false,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}}));t=n;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(n))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.print=print;var r=n(386);var i=n(492);var o=n(710);function print(e){return(0,r.visit)(e,a)}const s=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const n=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+wrap(" = ",n)+wrap(" ",join(r," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(n,", "),")");if(a.length>s){a=o+wrap("(\n",indent(join(n,"\n")),"\n)")}return join([a,join(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>join(["...",wrap("on ",e),join(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${wrap("(",join(n,", "),")")} `+`on ${t} ${wrap("",join(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.printBlockString)(e):(0,o.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>wrap("",e,"\n")+join(["schema",join(t," "),block(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>wrap("",e,"\n")+join(["scalar",t,join(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>wrap("",e,"\n")+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>wrap("",e,"\n")+join([t+": "+n,wrap("= ",r),join(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>wrap("",e,"\n")+join(["union",t,join(n," "),wrap("= ",join(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>wrap("",e,"\n")+join(["enum",t,join(n," "),block(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>wrap("",e,"\n")+join([t,join(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>wrap("",e,"\n")+join(["input",t,join(n," "),block(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(n," "),block(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(n," "),block(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>join(["extend union",e,join(t," "),wrap("= ",join(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>join(["extend enum",e,join(t," "),block(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>join(["extend input",e,join(t," "),block(n)]," ")}};function join(e,t=""){var n;return(n=e===null||e===void 0?void 0:e.filter(e=>e).join(t))!==null&&n!==void 0?n:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some(e=>e.includes("\n")))!==null&&t!==void 0?t:false}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var r=n(234);function getOperationRootType(e,t){if(t.operation==="query"){const n=e.getQueryType();if(!n){throw new r.GraphQLError("Schema does not define the required query root type.",t)}return n}if(t.operation==="mutation"){const n=e.getMutationType();if(!n){throw new r.GraphQLError("Schema is not configured for mutations.",t)}return n}if(t.operation==="subscription"){const n=e.getSubscriptionType();if(!n){throw new r.GraphQLError("Schema is not configured for subscriptions.",t)}return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",t)}},,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let r=0;let i=0;while(r0);let c=0;do{++i;c=c*10+s-n;s=t.charCodeAt(i)}while(isDigit(s)&&c>0);if(ac){return 1}}else{if(os){return 1}++r;++i}}return e.length-t.length}const n=48;const r=57;function isDigit(e){return!isNaN(e)&&n<=e&&e<=r}},,function(e,t,n){"use strict";var r=n(35);var i=n(529);e.exports=function transformData(e,t,n){var o=this||i;r.forEach(n,function transform(n){e=n.call(o,e,t)});return e}},function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var r=n(876);var i=n(393);var o=n(868);var s=n(150);var a=n(234);var c=n(577);var u=n(75);function ValuesOfCorrectTypeRule(e){return{ListValue(t){const n=(0,u.getNullableType)(e.getParentInputType());if(!(0,u.isListType)(n)){isValidValueNode(e,t);return false}},ObjectValue(t){const n=(0,u.getNamedType)(e.getInputType());if(!(0,u.isInputObjectType)(n)){isValidValueNode(e,t);return false}const o=(0,r.keyMap)(t.fields,e=>e.name.value);for(const r of Object.values(n.getFields())){const s=o[r.name];if(!s&&(0,u.isRequiredInputField)(r)){const o=(0,i.inspect)(r.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${r.name}" of required type "${o}" was not provided.`,t))}}},ObjectField(t){const n=(0,u.getNamedType)(e.getParentInputType());const r=e.getInputType();if(!r&&(0,u.isInputObjectType)(n)){const r=(0,s.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,o.didYouMean)(r),t))}},NullValue(t){const n=e.getInputType();if((0,u.isNonNullType)(n)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,c.print)(t)}.`,t))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const n=e.getInputType();if(!n){return}const r=(0,u.getNamedType)(n);if(!(0,u.isLeafType)(r)){const r=(0,i.inspect)(n);e.reportError(new a.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,t));return}try{const o=r.parseLiteral(t,undefined);if(o===undefined){const r=(0,i.inspect)(n);e.reportError(new a.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,t))}}catch(r){const o=(0,i.inspect)(n);if(r instanceof a.GraphQLError){e.reportError(r)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,c.print)(t)}; `+r.message,t,undefined,undefined,undefined,r))}}}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var r=n(393);var i=n(234);var o=n(75);var s=n(72);var a=n(441);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const n=e.getType();const s=e.getParentType();if((0,o.isCompositeType)(n)&&(0,o.isCompositeType)(s)&&!(0,a.doTypesOverlap)(e.getSchema(),n,s)){const o=(0,r.inspect)(s);const a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,t))}},FragmentSpread(t){const n=t.name.value;const o=getFragmentType(e,n);const s=e.getParentType();if(o&&s&&!(0,a.doTypesOverlap)(e.getSchema(),o,s)){const a=(0,r.inspect)(s);const c=(0,r.inspect)(o);e.reportError(new i.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${c}".`,t))}}}}function getFragmentType(e,t){const n=e.getFragment(t);if(n){const t=(0,s.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},,,,function(e){e.exports=require("http")},,,,,,,,,function(e){e.exports=require("events")},,,,,,,,function(e){e.exports=require("path")},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var r=n(371);var i=n(234);var o=n(386);var s=n(839);var a=n(105);var c=n(236);var u=n(567);function validate(e,t,n=c.specifiedRules,l,p=new a.TypeInfo(e)){var f;const d=(f=l===null||l===void 0?void 0:l.maxErrors)!==null&&f!==void 0?f:100;t||(0,r.devAssert)(false,"Must provide document.");(0,s.assertValidSchema)(e);const m=Object.freeze({});const h=[];const g=new u.ValidationContext(e,t,p,e=>{if(h.length>=d){h.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw m}h.push(e)});const y=(0,o.visitInParallel)(n.map(e=>e(g)));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(p,y))}catch(e){if(e!==m){throw e}}return h}function validateSDL(e,t,n=c.specifiedSDLRules){const r=[];const i=new u.SDLValidationContext(e,t,e=>{r.push(e)});const s=n.map(e=>e(i));(0,o.visit)(e,(0,o.visitInParallel)(s));return r}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map(e=>e.message).join("\n\n"))}}function assertValidSDLExtension(e,t){const n=validateSDL(e,t);if(n.length!==0){throw new Error(n.map(e=>e.message).join("\n\n"))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(796);var i=n(634);var o=n(986);var s=n(113);var a=n(304);function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=(async()=>({type:"unauthenticated"}))}else{const n=a.createTokenAuth(e.auth);t.wrap("request",n.hook);this.auth=n}}else{const n=e.authStrategy(Object.assign({request:this.request},e.auth));t.wrap("request",n.hook);this.auth=n}const u=this.constructor;u.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){const t=class extends(this){constructor(...t){const n=t[0]||{};if(typeof e==="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const n=this.plugins;const r=(t=class extends(this){},t.plugins=n.concat(e.filter(e=>!n.includes(e))),t);return r}}Octokit.VERSION=c;Octokit.plugins=[];t.Octokit=Octokit},,,,,function(e,t,n){"use strict";var r=n(35);var i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var n;var o;var s;if(!e){return t}r.forEach(e.split("\n"),function parser(e){s=e.indexOf(":");n=r.trim(e.substr(0,s)).toLowerCase();o=r.trim(e.substr(s+1));if(n){if(t[n]&&i.indexOf(n)>=0){return}if(n==="set-cookie"){t[n]=(t[n]?t[n]:[]).concat([o])}else{t[n]=t[n]?t[n]+", "+o:o}}});return t}},,,function(e,t,n){var r=n(152);var i=n(183);var o=n(176);var s=Function.bind;var a=s.bind(s);function bindApi(e,t,n){var r=a(o,null).apply(null,n?[t,n]:[t]);e.api={remove:r};e.remove=r;["before","error","after","wrap"].forEach(function(r){var o=n?[t,r,n]:[t,r];e[r]=e.api[r]=a(i,null).apply(null,o)})}function HookSingular(){var e="h";var t={registry:{}};var n=r.bind(null,t,e);bindApi(n,t,e);return n}function HookCollection(){var e={registry:{}};var t=r.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var r=n(393);var i=n(234);function locatedError(e,t,n){var o;const s=e instanceof Error?e:new Error("Unexpected error value: "+(0,r.inspect)(e));if(isLocatedGraphQLError(s)){return s}return new i.GraphQLError(s.message,(o=s.nodes)!==null&&o!==void 0?o:t,s.source,s.positions,n,s)}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var r=n(393);var i=n(234);var o=n(326);var s=n(75);var a=n(72);var c=n(441);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:s,defaultValue:c}of o){const o=n.name.value;const u=t[o];if(u&&s){const t=e.getSchema();const l=(0,a.typeFromAST)(t,u.type);if(l&&!allowedVariableUsage(t,l,u.defaultValue,s,c)){const t=(0,r.inspect)(l);const a=(0,r.inspect)(s);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,[u,n]))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,n,r,i){if((0,s.isNonNullType)(r)&&!(0,s.isNonNullType)(t)){const s=n!=null&&n.kind!==o.Kind.NULL;const a=i!==undefined;if(!s&&!a){return false}const u=r.ofType;return(0,c.isTypeSubTypeOf)(e,t,u)}return(0,c.isTypeSubTypeOf)(e,t,r)}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var r=n(393);var i=n(932);var o=n(857);var s=n(326);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map(e=>valueFromASTUntyped(e,t));case s.Kind.OBJECT:return(0,o.keyValMap)(e.fields,e=>e.name.value,e=>valueFromASTUntyped(e.value,t));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}false||(0,i.invariant)(false,"Unexpected value node: "+(0,r.inspect)(e))}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var r=n(234);function LoneSchemaDefinitionRule(e){var t,n,i;const o=e.getSchema();const s=(t=(n=(i=o===null||o===void 0?void 0:o.astNode)!==null&&i!==void 0?i:o===null||o===void 0?void 0:o.getQueryType())!==null&&n!==void 0?n:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(s){e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",t));return}if(a>0){e.reportError(new r.GraphQLError("Must provide only one schema definition.",t))}++a}}}},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},,,function(e){"use strict";function formatError(e,t){var n="",r=e.reason||"(unknown reason)";if(!e.mark)return r;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return r+" "+n}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var r=n(371);var i=n(234);var o=n(429);function assertName(e){e!=null||(0,r.devAssert)(false,"Must provide name.");typeof e==="string"||(0,r.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new i.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t0)){throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`')}if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,i)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}return String(e)}if(typeof e==="bigint"){return String(e)+"n"}var c=typeof i.depth==="undefined"?5:i.depth;if(typeof n==="undefined"){n=0}if(n>=c&&c>0&&typeof e==="object"){return isArray(e)?"[Array]":"[Object]"}var p=getIndent(i,n);if(typeof r==="undefined"){r=[]}else if(indexOf(r,e)>=0){return"[Circular]"}function inspect(e,t,o){if(t){r=r.slice();r.push(t)}if(o){var s={depth:i.depth};if(has(i,"quoteStyle")){s.quoteStyle=i.quoteStyle}return inspect_(e,s,n+1,r)}return inspect_(e,i,n+1,r)}if(typeof e==="function"){var f=nameOf(e);var d=arrObjKeys(e,inspect);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(d.length>0?" { "+d.join(", ")+" }":"")}if(isSymbol(e)){var m=_?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(e);return typeof e==="object"&&!_?markBoxed(m):m}if(isElement(e)){var h="<"+String(e.nodeName).toLowerCase();var g=e.attributes||[];for(var v=0;v";return h}if(isArray(e)){if(e.length===0){return"[]"}var b=arrObjKeys(e,inspect);if(p&&!singleLineValues(b)){return"["+indentedJoin(b,p)+"]"}return"[ "+b.join(", ")+" ]"}if(isError(e)){var T=arrObjKeys(e,inspect);if(T.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+T.join(", ")+" }"}if(typeof e==="object"&&a){if(A&&typeof e[A]==="function"){return e[A]()}else if(typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var O=[];s.call(e,function(t,n){O.push(inspect(n,e,true)+" => "+inspect(t,e))});return collectionOf("Map",o.call(e),O,p)}if(isSet(e)){var S=[];l.call(e,function(t){S.push(inspect(t,e))});return collectionOf("Set",u.call(e),S,p)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(inspect(Number(e)))}if(isBigInt(e)){return markBoxed(inspect(E.call(e)))}if(isBoolean(e)){return markBoxed(y.call(e))}if(isString(e)){return markBoxed(inspect(String(e)))}if(!isDate(e)&&!isRegExp(e)){var D=arrObjKeys(e,inspect);var j=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object;var R=e instanceof Object?"":"null prototype";var P=!j&&I&&Object(e)===e&&I in e?toStr(e).slice(8,-1):R?"Object":"";var L=j||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var F=L+(P||R?"["+[].concat(P||[],R||[]).join(": ")+"] ":"");if(D.length===0){return F+"{}"}if(p){return F+"{"+indentedJoin(D,p)+"}"}return F+"{ "+D.join(", ")+" }"}return String(e)};function wrapQuotes(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function quote(e){return String(e).replace(/"/g,""")}function isArray(e){return toStr(e)==="[object Array]"&&(!I||!(typeof e==="object"&&I in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!I||!(typeof e==="object"&&I in e))}function isRegExp(e){return toStr(e)==="[object RegExp]"&&(!I||!(typeof e==="object"&&I in e))}function isError(e){return toStr(e)==="[object Error]"&&(!I||!(typeof e==="object"&&I in e))}function isString(e){return toStr(e)==="[object String]"&&(!I||!(typeof e==="object"&&I in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!I||!(typeof e==="object"&&I in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!I||!(typeof e==="object"&&I in e))}function isSymbol(e){if(_){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!w){return false}try{w.call(e);return true}catch(e){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!E){return false}try{E.call(e);return true}catch(e){}return false}var j=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return j.call(e,t)}function toStr(e){return v.call(e)}function nameOf(e){if(e.name){return e.name}var t=T.call(b.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength;var r="... "+n+" more character"+(n>1?"s":"");return inspectString(e.slice(0,t.maxStringLength),t)+r}var i=e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,lowbyte);return wrapQuotes(i,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(n){return"\\"+n}return"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,n,r){var i=r?indentedJoin(n,r):n.join(", ");return e+" ("+t+") {"+i+"}"}function singleLineValues(e){for(var t=0;t=0){return false}}return true}function getIndent(e,t){var n;if(e.indent==="\t"){n="\t"}else if(typeof e.indent==="number"&&e.indent>0){n=Array(e.indent+1).join(" ")}else{return null}return{base:n,prev:Array(t+1).join(n)}}function indentedJoin(e,t){if(e.length===0){return""}var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function arrObjKeys(e,t){var n=isArray(e);var r=[];if(n){r.length=e.length;for(var i=0;i-1){P.maxBodyLength=e.maxBodyLength}var B=M.request(P,function handleResponse(t){if(B.aborted)return;var n=t;var o=t.req||B;if(t.statusCode!==204&&o.method!=="HEAD"&&e.decompress!==false){switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(f.createUnzip());delete t.headers["content-encoding"];break}}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:o};if(e.responseType==="stream"){s.data=n;i(y,v,s)}else{var a=[];var c=0;n.on("data",function handleStreamData(t){a.push(t);c+=t.length;if(e.maxContentLength>-1&&c>e.maxContentLength){n.destroy();v(m("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o))}});n.on("error",function handleStreamError(t){if(B.aborted)return;v(h(t,e,null,o))});n.on("end",function handleStreamEnd(){var t=Buffer.concat(a);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){t=r.stripBOM(t)}}s.data=t;i(y,v,s)})}});B.on("error",function handleRequestError(t){if(B.aborted&&t.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;v(h(t,e,null,B))});if(e.timeout){var q=parseInt(e.timeout,10);if(isNaN(q)){v(m("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",B));return}B.setTimeout(q,function handleRequestTimeout(){B.abort();v(m("timeout of "+q+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",B))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(B.aborted)return;B.abort();v(e)})}if(r.isStream(b)){b.on("error",function handleStreamError(t){v(h(t,e,null,B))}).pipe(B)}else{B.end(b)}})}},,,,,,function(e,t,n){"use strict";var r=n(755);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var r=n(932);const i=/\r\n|[\n\r]/g;function getLocation(e,t){let n=0;let o=1;for(const s of e.body.matchAll(i)){typeof s.index==="number"||(0,r.invariant)(false);if(s.index>=t){break}n=s.index+s[0].length;o+=1}return{line:o,column:t+1-n}}},,,,,function(e,t,n){"use strict";var r=n(35);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var n;function resolveURL(n){var r=n;if(e){t.setAttribute("href",r);r=t.href}t.setAttribute("href",r);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}n=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=r.isString(e)?resolveURL(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,n){return{prev:e,key:t,typename:n}}function pathToArray(e){const t=[];let n=e;while(n){t.push(n.key);n=n.prev}return t.reverse()}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var r=n(393);var i=n(932);var o=n(326);var s=n(577);var a=n(492);var c=n(754);var u=n(810);var l=n(134);var p=n(75);var f=n(301);function printSchema(e){return printFilteredSchema(e,e=>!(0,l.isSpecifiedDirective)(e),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,l.isSpecifiedDirective,c.isIntrospectionType)}function isDefinedType(e){return!(0,u.isSpecifiedScalarType)(e)&&!(0,c.isIntrospectionType)(e)}function printFilteredSchema(e,t,n){const r=e.getDirectives().filter(t);const i=Object.values(e.getTypeMap()).filter(n);return[printSchemaDefinition(e),...r.map(e=>printDirective(e)),...i.map(e=>printType(e))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const n=e.getQueryType();if(n){t.push(` query: ${n.name}`)}const r=e.getMutationType();if(r){t.push(` mutation: ${r.name}`)}const i=e.getSubscriptionType();if(i){t.push(` subscription: ${i.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const n=e.getMutationType();if(n&&n.name!=="Mutation"){return false}const r=e.getSubscriptionType();if(r&&r.name!=="Subscription"){return false}return true}function printType(e){if((0,p.isScalarType)(e)){return printScalar(e)}if((0,p.isObjectType)(e)){return printObject(e)}if((0,p.isInterfaceType)(e)){return printInterface(e)}if((0,p.isUnionType)(e)){return printUnion(e)}if((0,p.isEnumType)(e)){return printEnum(e)}if((0,p.isInputObjectType)(e)){return printInputObject(e)}false||(0,i.invariant)(false,"Unexpected type: "+(0,r.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const n=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+n}function printEnum(e){const t=e.getValues().map((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e));return printDescription(e)+`input ${e.name}`+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every(e=>!e.description)){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map((e,n)=>printDescription(e," "+t,!n)+" "+t+printInputValue(e)).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,f.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);if(t){n+=` = ${(0,s.print)(t)}`}return n+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==l.DEFAULT_DEPRECATION_REASON){const t=(0,s.print)({kind:o.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,s.print)({kind:o.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",n=true){const{description:r}=e;if(r==null){return""}const i=r.length>70;const o=(0,a.printBlockString)(r,i);const s=t&&!n?"\n"+t:t;return s+o.replace(/\n/g,"\n"+t)+"\n"}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var r=n(234);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null);const o=e.getRecursiveVariableUsages(n);for(const{node:e}of o){i[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(i[t]!==true){e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,o))}}}},VariableDefinition(e){t.push(e)}}}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var r=n(393);var i=n(932);var o=n(868);var s=n(947);var a=n(150);var c=n(910);var u=n(691);var l=n(333);var p=n(234);var f=n(75);function coerceInputValue(e,t,n=defaultOnError){return coerceInputValueImpl(e,t,n,undefined)}function defaultOnError(e,t,n){let i="Invalid value "+(0,r.inspect)(t);if(e.length>0){i+=` at "value${(0,c.printPathArray)(e)}"`}n.message=i+": "+n.message;throw n}function coerceInputValueImpl(e,t,n,c){if((0,f.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,n,c)}n((0,u.pathToArray)(c),e,new p.GraphQLError(`Expected non-nullable type "${(0,r.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,f.isListType)(t)){const r=t.ofType;if((0,l.isIterableObject)(e)){return Array.from(e,(e,t)=>{const i=(0,u.addPath)(c,t,undefined);return coerceInputValueImpl(e,r,n,i)})}return[coerceInputValueImpl(e,r,n,c)]}if((0,f.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e)){n((0,u.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const i={};const l=t.getFields();for(const o of Object.values(l)){const s=e[o.name];if(s===undefined){if(o.defaultValue!==undefined){i[o.name]=o.defaultValue}else if((0,f.isNonNullType)(o.type)){const t=(0,r.inspect)(o.type);n((0,u.pathToArray)(c),e,new p.GraphQLError(`Field "${o.name}" of required type "${t}" was not provided.`))}continue}i[o.name]=coerceInputValueImpl(s,o.type,n,(0,u.addPath)(c,o.name,t.name))}for(const r of Object.keys(e)){if(!l[r]){const i=(0,a.suggestionList)(r,Object.keys(t.getFields()));n((0,u.pathToArray)(c),e,new p.GraphQLError(`Field "${r}" is not defined by type "${t.name}".`+(0,o.didYouMean)(i)))}}return i}if((0,f.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){if(r instanceof p.GraphQLError){n((0,u.pathToArray)(c),e,r)}else{n((0,u.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}". `+r.message,undefined,undefined,undefined,undefined,r))}return}if(r===undefined){n((0,u.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}".`))}return r}false||(0,i.invariant)(false,"Unexpected input type: "+(0,r.inspect)(t))}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var r=n(234);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;if(i){if(t[i.value]){e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,[t[i.value],i]))}else{t[i.value]=i}}return false},FragmentDefinition:()=>false}}},,,function(e,t,n){"use strict";var r=n(843);var i=n(755);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,n=0,r=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(n,escapedReplacer)}"`}const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return r[e.charCodeAt(0)]}const r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs",{mediaType:{previews:["antiope"]}}],createSuite:["POST /repos/{owner}/{repo}/check-suites",{mediaType:{previews:["antiope"]}}],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}",{mediaType:{previews:["antiope"]}}],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",{mediaType:{previews:["antiope"]}}],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs",{mediaType:{previews:["antiope"]}}],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",{mediaType:{previews:["antiope"]}}],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites",{mediaType:{previews:["antiope"]}}],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest",{mediaType:{previews:["antiope"]}}],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences",{mediaType:{previews:["antiope"]}}],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}]},codeScanning:{getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/{archive_format}/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile",{mediaType:{previews:["black-panther"]}}],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const r="4.1.4";function endpointsToMethods(e,t){const n={};for(const[r,i]of Object.entries(t)){for(const[t,o]of Object.entries(i)){const[i,s,a]=o;const[c,u]=i.split(/ /);const l=Object.assign({method:c,url:u},s);if(!n[r]){n[r]={}}const p=n[r];if(a){p[t]=decorate(e,r,t,l,a);continue}p[t]=e.request.defaults(l)}}return n}function decorate(e,t,n,r,i){const o=e.request.defaults(r);function withDecorations(...r){let s=o.endpoint.merge(...r);if(i.mapToData){s=Object.assign({},s,{data:s[i.mapToData],[i.mapToData]:undefined});return o(s)}if(i.renamed){const[r,o]=i.renamed;e.log.warn(`octokit.${t}.${n}() has been renamed to octokit.${r}.${o}()`)}if(i.deprecated){e.log.warn(i.deprecated)}if(i.renamedParameters){const s=o.endpoint.merge(...r);for(const[r,o]of Object.entries(i.renamedParameters)){if(r in s){e.log.warn(`"${r}" parameter is deprecated for "octokit.${t}.${n}()". Use "${o}" instead`);if(!(o in s)){s[o]=s[r]}delete s[r]}}return o(s)}return o(...r)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){return endpointsToMethods(e,n)}restEndpointMethods.VERSION=r;t.restEndpointMethods=restEndpointMethods},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var r=n(393);var i=n(932);var o=n(234);var s=n(326);var a=n(156);var c=n(380);var u=n(134);function KnownDirectivesRule(e){const t=Object.create(null);const n=e.getSchema();const r=n?n.getDirectives():u.specifiedDirectives;for(const e of r){t[e.name]=e.locations}const i=e.getDocument().definitions;for(const e of i){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map(e=>e.value)}}return{Directive(n,r,i,s,a){const c=n.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,n));return}const l=getDirectiveLocationForASTPath(a);if(l&&!u.includes(l)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${l}.`,n))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,i.invariant)(false);switch(t.kind){case s.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case s.Kind.FIELD:return c.DirectiveLocation.FIELD;case s.Kind.FRAGMENT_SPREAD:return c.DirectiveLocation.FRAGMENT_SPREAD;case s.Kind.INLINE_FRAGMENT:return c.DirectiveLocation.INLINE_FRAGMENT;case s.Kind.FRAGMENT_DEFINITION:return c.DirectiveLocation.FRAGMENT_DEFINITION;case s.Kind.VARIABLE_DEFINITION:return c.DirectiveLocation.VARIABLE_DEFINITION;case s.Kind.SCHEMA_DEFINITION:case s.Kind.SCHEMA_EXTENSION:return c.DirectiveLocation.SCHEMA;case s.Kind.SCALAR_TYPE_DEFINITION:case s.Kind.SCALAR_TYPE_EXTENSION:return c.DirectiveLocation.SCALAR;case s.Kind.OBJECT_TYPE_DEFINITION:case s.Kind.OBJECT_TYPE_EXTENSION:return c.DirectiveLocation.OBJECT;case s.Kind.FIELD_DEFINITION:return c.DirectiveLocation.FIELD_DEFINITION;case s.Kind.INTERFACE_TYPE_DEFINITION:case s.Kind.INTERFACE_TYPE_EXTENSION:return c.DirectiveLocation.INTERFACE;case s.Kind.UNION_TYPE_DEFINITION:case s.Kind.UNION_TYPE_EXTENSION:return c.DirectiveLocation.UNION;case s.Kind.ENUM_TYPE_DEFINITION:case s.Kind.ENUM_TYPE_EXTENSION:return c.DirectiveLocation.ENUM;case s.Kind.ENUM_VALUE_DEFINITION:return c.DirectiveLocation.ENUM_VALUE;case s.Kind.INPUT_OBJECT_TYPE_DEFINITION:case s.Kind.INPUT_OBJECT_TYPE_EXTENSION:return c.DirectiveLocation.INPUT_OBJECT;case s.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,i.invariant)(false);return t.kind===s.Kind.INPUT_OBJECT_TYPE_DEFINITION?c.DirectiveLocation.INPUT_FIELD_DEFINITION:c.DirectiveLocation.ARGUMENT_DEFINITION}}}function getDirectiveLocationForOperation(e){switch(e){case a.OperationTypeNode.QUERY:return c.DirectiveLocation.QUERY;case a.OperationTypeNode.MUTATION:return c.DirectiveLocation.MUTATION;case a.OperationTypeNode.SUBSCRIPTION:return c.DirectiveLocation.SUBSCRIPTION}false||(0,i.invariant)(false,"Unexpected operation: "+(0,r.inspect)(e))}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var r=_interopDefault(n(413));var i=_interopDefault(n(605));var o=_interopDefault(n(835));var s=_interopDefault(n(211));var a=_interopDefault(n(903));const c=r.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const n=[];let r=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=n.size;let o=i===undefined?0:i;var s=n.timeout;let a=s===undefined?0:s;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof r) ;else{e=Buffer.from(String(e))}this[f]={body:e,disturbed:false,error:null};this.size=o;this.timeout=a;if(e instanceof r){e.on("error",function(e){const n=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[f].error=n})}}Body.prototype={get body(){return this[f].body},get bodyUsed(){return this[f].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const n=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,n)}}};function consumeBody(){var e=this;if(this[f].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[f].disturbed=true;if(this[f].error){return Body.Promise.reject(this[f].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof r)){return Body.Promise.resolve(Buffer.alloc(0))}let n=[];let i=0;let o=false;return new Body.Promise(function(r,s){let a;if(e.timeout){a=setTimeout(function(){o=true;s(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){o=true;s(t)}else{s(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(o||t===null){return}if(e.size&&i+t.length>e.size){o=true;s(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;n.push(t)});t.on("end",function(){if(o){return}clearTimeout(a);try{r(Buffer.concat(n,i))}catch(t){s(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const n=t.get("content-type");let r="utf-8";let i,o;if(n){i=/charset=([^;]*)/i.exec(n)}o=e.slice(0,1024).toString();if(!i&&o){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[g]=Object.create(null);if(e instanceof Headers){const t=e.raw();const n=Object.keys(t);for(const e of n){for(const n of t[e]){this.append(e,n)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const n=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}n.push(Array.from(t))}for(const e of n){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const n=e[t];this.append(t,n)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[g],e);if(t===undefined){return null}return this[g][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let n=getHeaders(this);let r=0;while(r1&&arguments[1]!==undefined?arguments[1]:"key+value";const n=Object.keys(e[g]).sort();return n.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[g][t].join(", ")}:function(t){return[t.toLowerCase(),e[g][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const n=Object.create(v);n[y]={target:e,kind:t,index:0};return n}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,n=e.kind,r=e.index;const i=getHeaders(t,n);const o=i.length;if(r>=o){return{value:undefined,done:true}}this[y].index=r+1;return{value:i[r],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[g]);const n=find(e[g],"Host");if(n!==undefined){t[n]=t[n][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const n of Object.keys(e)){if(m.test(n)){continue}if(Array.isArray(e[n])){for(const r of e[n]){if(h.test(r)){continue}if(t[g][n]===undefined){t[g][n]=[r]}else{t[g][n].push(r)}}}else if(!h.test(e[n])){t[g][n]=[e[n]]}}return t}const b=Symbol("Response internals");const T=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const n=t.status||200;const r=new Headers(t.headers);if(e!=null&&!r.has("Content-Type")){const t=extractContentType(e);if(t){r.append("Content-Type",t)}}this[b]={url:t.url,status:n,statusText:t.statusText||T[n],headers:r,counter:t.counter}}get url(){return this[b].url||""}get status(){return this[b].status}get ok(){return this[b].status>=200&&this[b].status<300}get redirected(){return this[b].counter>0}get statusText(){return this[b].statusText}get headers(){return this[b].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const E=Symbol("Request internals");const O=o.parse;const w=o.format;const _="destroy"in r.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[E]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let n;if(!isRequest(e)){if(e&&e.href){n=O(e.href)}else{n=O(`${e}`)}e={}}else{n=O(e.url)}let r=t.method||e.method||"GET";r=r.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(r==="GET"||r==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(i!=null&&!o.has("Content-Type")){const e=extractContentType(i);if(e){o.append("Content-Type",e)}}let s=isRequest(e)?e.signal:null;if("signal"in t)s=t.signal;if(s!=null&&!isAbortSignal(s)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[E]={method:r,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:n,signal:s};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[E].method}get url(){return w(this[E].parsedURL)}get headers(){return this[E].headers}get redirect(){return this[E].redirect}get signal(){return this[E].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[E].parsedURL;const n=new Headers(e[E].headers);if(!n.has("Accept")){n.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof r.Readable&&!_){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){n.set("Content-Length",i)}if(!n.has("User-Agent")){n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!n.has("Accept-Encoding")){n.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!n.has("Connection")&&!o){n.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(n),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const S=r.PassThrough;const N=o.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(n,o){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?s:i).request;const p=c.signal;let f=null;const d=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof r.Readable){c.body.destroy(e)}if(!f||!f.body)return;f.body.emit("error",e)};if(p&&p.aborted){d();return}const m=function abortAndFinalize(){d();finalize()};const h=l(u);let g;if(p){p.addEventListener("abort",m)}function finalize(){h.abort();if(p)p.removeEventListener("abort",m);clearTimeout(g)}if(c.timeout){h.once("socket",function(e){g=setTimeout(function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()},c.timeout)})}h.on("error",function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()});h.on("response",function(e){clearTimeout(g);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const r=t.get("Location");const i=r===null?null:N(c.url,r);switch(c.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){o(e)}}break;case"follow":if(i===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const r={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){r.method="GET";r.body=undefined;r.headers.delete("content-length")}n(fetch(new Request(i,r)));finalize();return}}e.once("end",function(){if(p)p.removeEventListener("abort",m)});let r=e.pipe(new S);const i={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const s=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||s===null||e.statusCode===204||e.statusCode===304){f=new Response(r,i);n(f);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(s=="gzip"||s=="x-gzip"){r=r.pipe(a.createGunzip(u));f=new Response(r,i);n(f);return}if(s=="deflate"||s=="x-deflate"){const t=e.pipe(new S);t.once("data",function(e){if((e[0]&15)===8){r=r.pipe(a.createInflate())}else{r=r.pipe(a.createInflateRaw())}f=new Response(r,i);n(f)});return}if(s=="br"&&typeof a.createBrotliDecompress==="function"){r=r.pipe(a.createBrotliDecompress());f=new Response(r,i);n(f);return}f=new Response(r,i);n(f)});writeToStream(h,c)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},,,function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var n=new Array(arguments.length);for(var r=0;r";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(n||(t.TokenKind=n={}))},,function(e){"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return s.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return i.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return s.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return s.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return i.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return s.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return i.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return i.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return i.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return i.GraphQLObjectType}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return i.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return r.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return s.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return i.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return i.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return i.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return i.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return i.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return i.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return i.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return i.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return i.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return i.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return i.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return i.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return i.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return i.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return i.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return r.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return i.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return i.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return i.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return i.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return i.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return i.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return i.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return i.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return i.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return i.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return i.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return i.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return i.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return i.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return i.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return i.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return i.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return i.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return i.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return i.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return i.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return r.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return s.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return i.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return i.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return i.isWrappingType}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return s.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var r=n(742);var i=n(75);var o=n(134);var s=n(810);var a=n(754);var c=n(839);var u=n(655)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var r=n(876);var i=n(393);var o=n(910);var s=n(234);var a=n(326);var c=n(577);var u=n(75);var l=n(72);var p=n(820);var f=n(702);function getVariableValues(e,t,n,r){const i=[];const o=r===null||r===void 0?void 0:r.maxErrors;try{const r=coerceVariableValues(e,t,n,e=>{if(o!=null&&i.length>=o){throw new s.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}i.push(e)});if(i.length===0){return{coerced:r}}}catch(e){i.push(e)}return{errors:i}}function coerceVariableValues(e,t,n,r){const a={};for(const d of t){const t=d.variable.name.value;const m=(0,l.typeFromAST)(e,d.type);if(!(0,u.isInputType)(m)){const e=(0,c.print)(d.type);r(new s.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,d.type));continue}if(!hasOwnProperty(n,t)){if(d.defaultValue){a[t]=(0,p.valueFromAST)(d.defaultValue,m)}else if((0,u.isNonNullType)(m)){const e=(0,i.inspect)(m);r(new s.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,d))}continue}const h=n[t];if(h===null&&(0,u.isNonNullType)(m)){const e=(0,i.inspect)(m);r(new s.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,d));continue}a[t]=(0,f.coerceInputValue)(h,m,(e,n,a)=>{let c=`Variable "$${t}" got invalid value `+(0,i.inspect)(n);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}r(new s.GraphQLError(c+"; "+a.message,d,undefined,undefined,undefined,a.originalError))})}return a}function getArgumentValues(e,t,n){var o;const l={};const f=(o=t.arguments)!==null&&o!==void 0?o:[];const d=(0,r.keyMap)(f,e=>e.name.value);for(const r of e.args){const e=r.name;const o=r.type;const f=d[e];if(!f){if(r.defaultValue!==undefined){l[e]=r.defaultValue}else if((0,u.isNonNullType)(o)){throw new s.GraphQLError(`Argument "${e}" of required type "${(0,i.inspect)(o)}" `+"was not provided.",t)}continue}const m=f.value;let h=m.kind===a.Kind.NULL;if(m.kind===a.Kind.VARIABLE){const t=m.name.value;if(n==null||!hasOwnProperty(n,t)){if(r.defaultValue!==undefined){l[e]=r.defaultValue}else if((0,u.isNonNullType)(o)){throw new s.GraphQLError(`Argument "${e}" of required type "${(0,i.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,m)}continue}h=n[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new s.GraphQLError(`Argument "${e}" of non-null type "${(0,i.inspect)(o)}" `+"must not be null.",m)}const g=(0,p.valueFromAST)(m,o,n);if(g===undefined){throw new s.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(m)}.`,m)}l[e]=g}return l}function getDirectiveValues(e,t,n){var r;const i=(r=t.directives)===null||r===void 0?void 0:r.find(t=>t.name.value===e.name);if(i){return getArgumentValues(e,i,n)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var r=n(393);var i=n(473);var o=n(371);var s=n(174);var a=n(947);var c=n(754);var u=n(134);var l=n(75);function isSchema(e){return(0,s.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,r.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,n;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,a.isObjectLike)(e)||(0,o.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,o.devAssert)(false,`"types" must be Array if provided but got: ${(0,r.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,o.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,r.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,i.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(n=e.directives)!==null&&n!==void 0?n:u.specifiedDirectives;const s=new Set(e.types);if(e.types!=null){for(const t of e.types){s.delete(t);collectReferencedTypes(t,s)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,s)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,s)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,s)}for(const e of this._directives){if((0,u.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,s)}}}collectReferencedTypes(c.__Schema,s);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of s){if(e==null){continue}const t=e.name;t||(0,o.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,l.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,l.isInterfaceType)(t)){let n=this._implementationsMap[t.name];if(n===undefined){n=this._implementationsMap[t.name]={objects:[],interfaces:[]}}n.interfaces.push(e)}}}else if((0,l.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,l.isInterfaceType)(t)){let n=this._implementationsMap[t.name];if(n===undefined){n=this._implementationsMap[t.name]={objects:[],interfaces:[]}}n.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case"query":return this.getQueryType();case"mutation":return this.getMutationType();case"subscription":return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,l.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(n===undefined){n=Object.create(null);if((0,l.isUnionType)(e)){for(const t of e.getTypes()){n[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){n[e.name]=true}for(const e of t.interfaces){n[e.name]=true}}this._subTypeMap[e.name]=n}return n[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const n=(0,l.getNamedType)(e);if(!t.has(n)){t.add(n);if((0,l.isUnionType)(n)){for(const e of n.getTypes()){collectReferencedTypes(e,t)}}else if((0,l.isObjectType)(n)||(0,l.isInterfaceType)(n)){for(const e of n.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(n.getFields())){collectReferencedTypes(e.type,t);for(const n of e.args){collectReferencedTypes(n.type,t)}}}else if((0,l.isInputObjectType)(n)){for(const e of Object.values(n.getFields())){collectReferencedTypes(e.type,t)}}}return t}},,,,,function(e){e.exports=require("fs")},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var r=n(326);function getOperationAST(e,t){let n=null;for(const o of e.definitions){if(o.kind===r.Kind.OPERATION_DEFINITION){var i;if(t==null){if(n){return null}n=o}else if(((i=o.name)===null||i===void 0?void 0:i.value)===t){return o}}}return n}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var r=n(393);var i=n(932);var o=n(577);var s=n(380);var a=n(301);var c=n(810);var u=n(75);const l=new u.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:c.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(d))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new u.GraphQLNonNull(d),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:d,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:d,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(p))),resolve:e=>e.getDirectives()}})});t.__Schema=l;const p=new u.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(f))),resolve:e=>e.locations},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(h))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(e=>e.deprecationReason==null)}}})});t.__Directive=p;const f=new u.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=f;const d=new u.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new u.GraphQLNonNull(v),resolve(e){if((0,u.isScalarType)(e)){return y.SCALAR}if((0,u.isObjectType)(e)){return y.OBJECT}if((0,u.isInterfaceType)(e)){return y.INTERFACE}if((0,u.isUnionType)(e)){return y.UNION}if((0,u.isEnumType)(e)){return y.ENUM}if((0,u.isInputObjectType)(e)){return y.INPUT_OBJECT}if((0,u.isListType)(e)){return y.LIST}if((0,u.isNonNullType)(e)){return y.NON_NULL}false||(0,i.invariant)(false,`Unexpected type: "${(0,r.inspect)(e)}".`)}},name:{type:c.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:c.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:c.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new u.GraphQLList(new u.GraphQLNonNull(m)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,u.isObjectType)(e)||(0,u.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>e.deprecationReason==null)}}},interfaces:{type:new u.GraphQLList(new u.GraphQLNonNull(d)),resolve(e){if((0,u.isObjectType)(e)||(0,u.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new u.GraphQLList(new u.GraphQLNonNull(d)),resolve(e,t,n,{schema:r}){if((0,u.isAbstractType)(e)){return r.getPossibleTypes(e)}}},enumValues:{type:new u.GraphQLList(new u.GraphQLNonNull(g)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,u.isEnumType)(e)){const n=e.getValues();return t?n:n.filter(e=>e.deprecationReason==null)}}},inputFields:{type:new u.GraphQLList(new u.GraphQLNonNull(h)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,u.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>e.deprecationReason==null)}}},ofType:{type:d,resolve:e=>"ofType"in e?e.ofType:undefined}})});t.__Type=d;const m=new u.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(h))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(e=>e.deprecationReason==null)}},type:{type:new u.GraphQLNonNull(d),resolve:e=>e.type},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=m;const h=new u.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},type:{type:new u.GraphQLNonNull(d),resolve:e=>e.type},defaultValue:{type:c.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e;const r=(0,a.astFromValue)(n,t);return r?(0,o.print)(r):null}},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const g=new u.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=g;let y;t.TypeKind=y;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(y||(t.TypeKind=y={}));const v=new u.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=v;const b={name:"__schema",type:new u.GraphQLNonNull(l),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=b;const T={name:"__type",type:d,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new u.GraphQLNonNull(c.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=T;const E={name:"__typename",type:new u.GraphQLNonNull(c.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=E;const O=Object.freeze([l,p,f,d,m,h,g,v]);t.introspectionTypes=O;function isIntrospectionType(e){return O.some(({name:t})=>e.name===t)}},function(e,t,n){"use strict";var r=n(652);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})})}return t}function Type(e,t){t=t||{};Object.keys(t).forEach(function(t){if(i.indexOf(t)===-1){throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}});this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r);n.d(r,"considerUsage",function(){return E});n.d(r,"dangerousBreaking",function(){return y});n.d(r,"ignoreDescriptionChanges",function(){return T});n.d(r,"safeUnreachable",function(){return O});n.d(r,"suppressRemovalOfDeprecatedField",function(){return v});var i=n(470);var o=n(422);var s=n(228);var a=n.n(s);var c=n(414);var u=n.n(c);var l=n(53);var p=n.n(l);var f=n(232);function keyMap(e,t){return e.reduce((e,n)=>{e[t(n)]=n;return e},Object.create(null))}function isEqual(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return false;for(var n=0;n!t.some(t=>isEqual(t,e)))}function compareLists(e,t,n){const r=keyMap(e,({name:e})=>e);const i=keyMap(t,({name:e})=>e);const o=[];const s=[];const a=[];for(const t of e){const e=i[t.name];if(e===undefined){s.push(t)}else{a.push({newVersion:e,oldVersion:t})}}for(const e of t){if(r[e.name]===undefined){o.push(e)}}if(n){if(n.onAdded){o.forEach(n.onAdded)}if(n.onRemoved){s.forEach(n.onRemoved)}if(n.onMutual){a.forEach(n.onMutual)}}return{added:o,removed:s,mutual:a}}function isDeprecated(e){var t,n;if("isDeprecated"in e){return e["isDeprecated"]}if(e.deprecationReason!=null){return true}if((n=(t=e.astNode)===null||t===void 0?void 0:t.directives)===null||n===void 0?void 0:n.some(e=>e.name.value==="deprecated")){return true}return false}function safeChangeForField(e,t){if(!Object(f.isWrappingType)(e)&&!Object(f.isWrappingType)(t)){return e.toString()===t.toString()}if(Object(f.isNonNullType)(t)){const n=Object(f.isNonNullType)(e)?e.ofType:e;return safeChangeForField(n,t.ofType)}if(Object(f.isListType)(e)){return Object(f.isListType)(t)&&safeChangeForField(e.ofType,t.ofType)||Object(f.isNonNullType)(t)&&safeChangeForField(e,t.ofType)}return false}function safeChangeForInputValue(e,t){if(!Object(f.isWrappingType)(e)&&!Object(f.isWrappingType)(t)){return e.toString()===t.toString()}if(Object(f.isListType)(e)&&Object(f.isListType)(t)){return safeChangeForInputValue(e.ofType,t.ofType)}if(Object(f.isNonNullType)(e)){const n=Object(f.isNonNullType)(t)?t.ofType:t;return safeChangeForInputValue(e.ofType,n)}return false}function getKind(e){const t=e.astNode;return t&&t.kind||""}function getTypePrefix(e){const t=getKind(e);const n={[f.Kind.SCALAR_TYPE_DEFINITION]:"scalar",[f.Kind.OBJECT_TYPE_DEFINITION]:"type",[f.Kind.INTERFACE_TYPE_DEFINITION]:"interface",[f.Kind.UNION_TYPE_DEFINITION]:"union",[f.Kind.ENUM_TYPE_DEFINITION]:"enum",[f.Kind.INPUT_OBJECT_TYPE_DEFINITION]:"input"};return n[t.toString()]}function isPrimitive(e){return["String","Int","Float","Boolean","ID"].indexOf(typeof e==="string"?e:e.name)!==-1}function isForIntrospection(e){return["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive","__DirectiveLocation"].indexOf(typeof e==="string"?e:e.name)!==-1}function findDeprecatedUsages(e,t){const n=[];const r=new f.TypeInfo(e);Object(f.visit)(t,Object(f.visitWithTypeInfo)(r,{Argument(e){const t=r.getArgument();if(t){const i=t.deprecationReason;if(i){const o=r.getFieldDef();if(o){n.push(new f.GraphQLError(`The argument '${t===null||t===void 0?void 0:t.name}' of '${o.name}' is deprecated. ${i}`,[e]))}}}},Field(e){const t=r.getFieldDef();if(t&&isDeprecated(t)){const i=r.getParentType();if(i){const r=t.deprecationReason;n.push(new f.GraphQLError(`The field '${i.name}.${t.name}' is deprecated.${r?" "+r:""}`,[e]))}}},EnumValue(e){const t=r.getEnumValue();if(t&&isDeprecated(t)){const i=Object(f.getNamedType)(r.getInputType());if(i){const r=t.deprecationReason;n.push(new f.GraphQLError(`The enum value '${i.name}.${t.name}' is deprecated.${r?" "+r:""}`,[e]))}}}}));return n}function removeFieldIfDirectives(e,t){if(e.directives){if(e.directives.some(e=>t.indexOf(e.name.value)!==-1)){return null}}return e}function removeDirectives(e,t){if(e.directives){return Object.assign(Object.assign({},e),{directives:e.directives.filter(e=>t.indexOf(e.name.value)===-1)})}return e}function getReachableTypes(e){const t=new Set;const n=r=>{const i=r.name;if(t.has(i)){return}t.add(i);if(Object(f.isScalarType)(r)){return}else if(Object(f.isInterfaceType)(r)||Object(f.isObjectType)(r)){if(Object(f.isInterfaceType)(r)){const{objects:t,interfaces:i}=e.getImplementations(r);for(const e of t){n(e)}for(const e of i){n(e)}}const t=r.getFields();for(const e in t){const r=t[e];n(resolveOutputType(r.type));const i=r.args;for(const e in i){const t=i[e];n(resolveInputType(t.type))}}}else if(Object(f.isUnionType)(r)){const e=r.getTypes();for(const t of e){n(t)}}else if(Object(f.isInputObjectType)(r)){const e=r.getFields();for(const t in e){const r=e[t];n(resolveInputType(r.type))}}};for(const t of[e.getQueryType(),e.getMutationType(),e.getSubscriptionType()]){if(t){n(t)}}return t}function resolveOutputType(e){if(Object(f.isListType)(e)||Object(f.isNonNullType)(e)){return resolveOutputType(e.ofType)}return e}function resolveInputType(e){if(Object(f.isListType)(e)||Object(f.isNonNullType)(e)){return resolveInputType(e.ofType)}return e}var d;(function(e){e["FieldArgumentDescriptionChanged"]="FIELD_ARGUMENT_DESCRIPTION_CHANGED";e["FieldArgumentDefaultChanged"]="FIELD_ARGUMENT_DEFAULT_CHANGED";e["FieldArgumentTypeChanged"]="FIELD_ARGUMENT_TYPE_CHANGED";e["DirectiveRemoved"]="DIRECTIVE_REMOVED";e["DirectiveAdded"]="DIRECTIVE_ADDED";e["DirectiveDescriptionChanged"]="DIRECTIVE_DESCRIPTION_CHANGED";e["DirectiveLocationAdded"]="DIRECTIVE_LOCATION_ADDED";e["DirectiveLocationRemoved"]="DIRECTIVE_LOCATION_REMOVED";e["DirectiveArgumentAdded"]="DIRECTIVE_ARGUMENT_ADDED";e["DirectiveArgumentRemoved"]="DIRECTIVE_ARGUMENT_REMOVED";e["DirectiveArgumentDescriptionChanged"]="DIRECTIVE_ARGUMENT_DESCRIPTION_CHANGED";e["DirectiveArgumentDefaultValueChanged"]="DIRECTIVE_ARGUMENT_DEFAULT_VALUE_CHANGED";e["DirectiveArgumentTypeChanged"]="DIRECTIVE_ARGUMENT_TYPE_CHANGED";e["EnumValueRemoved"]="ENUM_VALUE_REMOVED";e["EnumValueAdded"]="ENUM_VALUE_ADDED";e["EnumValueDescriptionChanged"]="ENUM_VALUE_DESCRIPTION_CHANGED";e["EnumValueDeprecationReasonChanged"]="ENUM_VALUE_DEPRECATION_REASON_CHANGED";e["EnumValueDeprecationReasonAdded"]="ENUM_VALUE_DEPRECATION_REASON_ADDED";e["EnumValueDeprecationReasonRemoved"]="ENUM_VALUE_DEPRECATION_REASON_REMOVED";e["FieldRemoved"]="FIELD_REMOVED";e["FieldAdded"]="FIELD_ADDED";e["FieldDescriptionChanged"]="FIELD_DESCRIPTION_CHANGED";e["FieldDescriptionAdded"]="FIELD_DESCRIPTION_ADDED";e["FieldDescriptionRemoved"]="FIELD_DESCRIPTION_REMOVED";e["FieldDeprecationAdded"]="FIELD_DEPRECATION_ADDED";e["FieldDeprecationRemoved"]="FIELD_DEPRECATION_REMOVED";e["FieldDeprecationReasonChanged"]="FIELD_DEPRECATION_REASON_CHANGED";e["FieldDeprecationReasonAdded"]="FIELD_DEPRECATION_REASON_ADDED";e["FieldDeprecationReasonRemoved"]="FIELD_DEPRECATION_REASON_REMOVED";e["FieldTypeChanged"]="FIELD_TYPE_CHANGED";e["FieldArgumentAdded"]="FIELD_ARGUMENT_ADDED";e["FieldArgumentRemoved"]="FIELD_ARGUMENT_REMOVED";e["InputFieldRemoved"]="INPUT_FIELD_REMOVED";e["InputFieldAdded"]="INPUT_FIELD_ADDED";e["InputFieldDescriptionAdded"]="INPUT_FIELD_DESCRIPTION_ADDED";e["InputFieldDescriptionRemoved"]="INPUT_FIELD_DESCRIPTION_REMOVED";e["InputFieldDescriptionChanged"]="INPUT_FIELD_DESCRIPTION_CHANGED";e["InputFieldDefaultValueChanged"]="INPUT_FIELD_DEFAULT_VALUE_CHANGED";e["InputFieldTypeChanged"]="INPUT_FIELD_TYPE_CHANGED";e["ObjectTypeInterfaceAdded"]="OBJECT_TYPE_INTERFACE_ADDED";e["ObjectTypeInterfaceRemoved"]="OBJECT_TYPE_INTERFACE_REMOVED";e["SchemaQueryTypeChanged"]="SCHEMA_QUERY_TYPE_CHANGED";e["SchemaMutationTypeChanged"]="SCHEMA_MUTATION_TYPE_CHANGED";e["SchemaSubscriptionTypeChanged"]="SCHEMA_SUBSCRIPTION_TYPE_CHANGED";e["TypeRemoved"]="TYPE_REMOVED";e["TypeAdded"]="TYPE_ADDED";e["TypeKindChanged"]="TYPE_KIND_CHANGED";e["TypeDescriptionChanged"]="TYPE_DESCRIPTION_CHANGED";e["TypeDescriptionRemoved"]="TYPE_DESCRIPTION_REMOVED";e["TypeDescriptionAdded"]="TYPE_DESCRIPTION_ADDED";e["UnionMemberRemoved"]="UNION_MEMBER_REMOVED";e["UnionMemberAdded"]="UNION_MEMBER_ADDED"})(d||(d={}));var m;(function(e){e["Breaking"]="BREAKING";e["NonBreaking"]="NON_BREAKING";e["Dangerous"]="DANGEROUS"})(m||(m={}));function schemaQueryTypeChanged(e,t){const n=(e.getQueryType()||{}).name||"unknown";const r=(t.getQueryType()||{}).name||"unknown";return{criticality:{level:m.Breaking},type:d.SchemaQueryTypeChanged,message:`Schema query root has changed from '${n}' to '${r}'`}}function schemaMutationTypeChanged(e,t){const n=(e.getMutationType()||{}).name||"unknown";const r=(t.getMutationType()||{}).name||"unknown";return{criticality:{level:m.Breaking},type:d.SchemaMutationTypeChanged,message:`Schema mutation root has changed from '${n}' to '${r}'`}}function schemaSubscriptionTypeChanged(e,t){const n=(e.getSubscriptionType()||{}).name||"unknown";const r=(t.getSubscriptionType()||{}).name||"unknown";return{criticality:{level:m.Breaking},type:d.SchemaSubscriptionTypeChanged,message:`Schema subscription root has changed from '${n}' to '${r}'`}}function typeRemoved(e){return{criticality:{level:m.Breaking},type:d.TypeRemoved,message:`Type '${e.name}' was removed`,path:e.name}}function typeAdded(e){return{criticality:{level:m.NonBreaking},type:d.TypeAdded,message:`Type '${e.name}' was added`,path:e.name}}function typeKindChanged(e,t){return{criticality:{level:m.Breaking,reason:`Changing the kind of a type is a breaking change because it can cause existing queries to error. For example, turning an object type to a scalar type would break queries that define a selection set for this type.`},type:d.TypeKindChanged,message:`'${e.name}' kind changed from '${getKind(e)}' to '${getKind(t)}'`,path:e.name}}function typeDescriptionChanged(e,t){return{criticality:{level:m.NonBreaking},type:d.TypeDescriptionChanged,message:`Description '${e.description}' on type '${e.name}' has changed to '${t.description}'`,path:e.name}}function typeDescriptionRemoved(e){return{criticality:{level:m.NonBreaking},type:d.TypeDescriptionRemoved,message:`Description '${e.description}' was removed from object type '${e.name}'`,path:e.name}}function typeDescriptionAdded(e){return{criticality:{level:m.NonBreaking},type:d.TypeDescriptionAdded,message:`Object type '${e.name}' has description '${e.description}'`,path:e.name}}function directiveRemoved(e){return{criticality:{level:m.Breaking},type:d.DirectiveRemoved,message:`Directive '${e.name}' was removed`,path:`@${e.name}`}}function directiveAdded(e){return{criticality:{level:m.NonBreaking},type:d.DirectiveAdded,message:`Directive '${e.name}' was added`,path:`@${e.name}`}}function directiveDescriptionChanged(e,t){return{criticality:{level:m.NonBreaking},type:d.DirectiveDescriptionChanged,message:`Directive '${e.name}' description changed from '${e.description}' to '${t.description}'`,path:`@${e.name}`}}function directiveLocationAdded(e,t){return{criticality:{level:m.NonBreaking},type:d.DirectiveLocationAdded,message:`Location '${t}' was added to directive '${e.name}'`,path:`@${e.name}`}}function directiveLocationRemoved(e,t){return{criticality:{level:m.Breaking},type:d.DirectiveLocationRemoved,message:`Location '${t}' was removed from directive '${e.name}'`,path:`@${e.name}`}}function directiveArgumentAdded(e,t){return{criticality:{level:Object(f.isNonNullType)(t.type)?m.Breaking:m.NonBreaking},type:d.DirectiveArgumentAdded,message:`Argument '${t.name}' was added to directive '${e.name}'`,path:`@${e.name}`}}function directiveArgumentRemoved(e,t){return{criticality:{level:m.Breaking},type:d.DirectiveArgumentRemoved,message:`Argument '${t.name}' was removed from directive '${e.name}'`,path:`@${e.name}.${t.name}`}}function directiveArgumentDescriptionChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.DirectiveArgumentDescriptionChanged,message:`Description for argument '${t.name}' on directive '${e.name}' changed from '${t.description}' to '${n.description}'`,path:`@${e.name}.${t.name}`}}function directiveArgumentDefaultValueChanged(e,t,n){return{criticality:{level:m.Dangerous,reason:"Changing the default value for an argument may change the runtime behaviour of a field if it was never provided."},type:d.DirectiveArgumentDefaultValueChanged,message:typeof t.defaultValue==="undefined"?`Default value '${n.defaultValue}' was added to argument '${n.name}' on directive '${e.name}'`:`Default value for argument '${t.name}' on directive '${e.name}' changed from '${t.defaultValue}' to '${n.defaultValue}'`,path:`@${e.name}.${t.name}`}}function directiveArgumentTypeChanged(e,t,n){return{criticality:safeChangeForInputValue(t.type,n.type)?{level:m.NonBreaking,reason:"Changing an input field from non-null to null is considered non-breaking."}:{level:m.Breaking},type:d.DirectiveArgumentTypeChanged,message:`Type for argument '${t.name}' on directive '${e.name}' changed from '${t.type}' to '${n.type}'`,path:`@${e.name}.${t.name}`}}function enumValueRemoved(e,t){return{criticality:{level:m.Breaking,reason:`Removing an enum value will cause existing queries that use this enum value to error.`},type:d.EnumValueRemoved,message:`Enum value '${t.name}' ${isDeprecated(t)?"(deprecated) ":""}was removed from enum '${e.name}'`,path:[e.name,t.name].join(".")}}function enumValueAdded(e,t){return{criticality:{level:m.Dangerous,reason:`Adding an enum value may break existing clients that were not programming defensively against an added case when querying an enum.`},type:d.EnumValueAdded,message:`Enum value '${t.name}' was added to enum '${e.name}'`,path:[e.name,t.name].join(".")}}function enumValueDescriptionChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.EnumValueDescriptionChanged,message:typeof t.description==="undefined"?`Description '${n.description}' was added to enum value '${e.name}.${n.name}'`:`Description for enum value '${e.name}.${n.name}' changed from '${t.description}' to '${n.description}'`,path:[e.name,t.name].join(".")}}function enumValueDeprecationReasonChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.EnumValueDeprecationReasonChanged,message:`Enum value '${e.name}.${n.name}' deprecation reason changed from '${t.deprecationReason}' to '${n.deprecationReason}'`,path:[e.name,t.name].join(".")}}function enumValueDeprecationReasonAdded(e,t,n){return{criticality:{level:m.NonBreaking},type:d.EnumValueDeprecationReasonAdded,message:`Enum value '${e.name}.${n.name}' was deprecated with reason '${n.deprecationReason}'`,path:[e.name,t.name].join(".")}}function enumValueDeprecationReasonRemoved(e,t,n){return{criticality:{level:m.NonBreaking},type:d.EnumValueDeprecationReasonRemoved,message:`Deprecation reason was removed from enum value '${e.name}.${n.name}'`,path:[e.name,t.name].join(".")}}function changesInEnum(e,t,n){compareLists(e.getValues(),t.getValues(),{onAdded(e){n(enumValueAdded(t,e))},onRemoved(t){n(enumValueRemoved(e,t))},onMutual(e){const r=e.oldVersion;const i=e.newVersion;if(isNotEqual(r.description,i.description)){n(enumValueDescriptionChanged(t,r,i))}if(isNotEqual(r.deprecationReason,i.deprecationReason)){if(isVoid(r.deprecationReason)){n(enumValueDeprecationReasonAdded(t,r,i))}else if(isVoid(i.deprecationReason)){n(enumValueDeprecationReasonRemoved(t,r,i))}else{n(enumValueDeprecationReasonChanged(t,r,i))}}}})}function unionMemberRemoved(e,t){return{criticality:{level:m.Breaking,reason:"Removing a union member from a union can cause existing queries that use this union member in a fragment spread to error."},type:d.UnionMemberRemoved,message:`Member '${t.name}' was removed from Union type '${e.name}'`,path:e.name}}function unionMemberAdded(e,t){return{criticality:{level:m.Dangerous,reason:"Adding a possible type to Unions may break existing clients that were not programming defensively against a new possible type."},type:d.UnionMemberAdded,message:`Member '${t.name}' was added to Union type '${e.name}'`,path:e.name}}function changesInUnion(e,t,n){const r=e.getTypes();const i=t.getTypes();compareLists(r,i,{onAdded(e){n(unionMemberAdded(t,e))},onRemoved(t){n(unionMemberRemoved(e,t))}})}var h=n(656);var g=n.n(h);function compareTwoStrings(e,t){if(!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e.toUpperCase()===t.toUpperCase())return 1;if(e.length===1&&t.length===1)return 0;const n=wordLetterPairs(e);const r=wordLetterPairs(t);const i=n.length+r.length;let o=0;n.forEach(e=>{for(let t=0,n;n=r[t];t++){if(e!==n)continue;o++;r.splice(t,1);break}});return o*2/i}function findBestMatch(e,t){if(!areArgsValid(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const n=t.map(t=>({target:t,rating:compareTwoStrings(e,t.value)}));const r=Array.from(n).sort((e,t)=>t.rating-e.rating)[0];return{ratings:n,bestMatch:r}}function flattenDeep(e){return Array.isArray(e)?e.reduce((e,t)=>e.concat(flattenDeep(t)),[]):[e]}function areArgsValid(e,t){if(typeof e!=="string")return false;if(!Array.isArray(t))return false;if(!t.length)return false;if(t.find(e=>typeof e.value!=="string"))return false;return true}function letterPairs(e){const t=[];for(let n=0,r=e.length-1;n0){r(inputFieldDefaultValueChanged(e,t,n))}}else if(JSON.stringify(t.defaultValue)!==JSON.stringify(n.defaultValue)){r(inputFieldDefaultValueChanged(e,t,n))}}if(isNotEqual(t.type.toString(),n.type.toString())){r(inputFieldTypeChanged(e,t,n))}}function objectTypeInterfaceAdded(e,t){return{criticality:{level:m.Dangerous,reason:"Adding an interface to an object type may break existing clients that were not programming defensively against a new possible type."},type:d.ObjectTypeInterfaceAdded,message:`'${t.name}' object implements '${e.name}' interface`,path:t.name}}function objectTypeInterfaceRemoved(e,t){return{criticality:{level:m.Breaking,reason:"Removing an interface from an object type can cause existing queries that use this in a fragment spread to error."},type:d.ObjectTypeInterfaceRemoved,message:`'${t.name}' object type no longer implements '${e.name}' interface`,path:t.name}}function fieldRemoved(e,t){const n=Object(f.isInterfaceType)(e)?"interface":"object type";return{criticality:{level:m.Breaking,reason:t.deprecationReason?`Removing a deprecated field is a breaking change. Before removing it, you may want to look at the field's usage to see the impact of removing the field.`:`Removing a field is a breaking change. It is preferable to deprecate the field before removing it.`},type:d.FieldRemoved,message:`Field '${t.name}' ${isDeprecated(t)?"(deprecated) ":""}was removed from ${n} '${e.name}'`,path:[e.name,t.name].join(".")}}function fieldAdded(e,t){const n=Object(f.isInterfaceType)(e)?"interface":"object type";return{criticality:{level:m.NonBreaking},type:d.FieldAdded,message:`Field '${t.name}' was added to ${n} '${e.name}'`,path:[e.name,t.name].join(".")}}function fieldDescriptionChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.FieldDescriptionChanged,message:`Field '${e.name}.${t.name}' description changed from '${t.description}' to '${n.description}'`,path:[e.name,t.name].join(".")}}function fieldDescriptionAdded(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDescriptionAdded,message:`Field '${e.name}.${t.name}' has description '${t.description}'`,path:[e.name,t.name].join(".")}}function fieldDescriptionRemoved(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDescriptionRemoved,message:`Description was removed from field '${e.name}.${t.name}'`,path:[e.name,t.name].join(".")}}function fieldDeprecationAdded(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDeprecationAdded,message:`Field '${e.name}.${t.name}' is deprecated`,path:[e.name,t.name].join(".")}}function fieldDeprecationRemoved(e,t){return{criticality:{level:m.Dangerous},type:d.FieldDeprecationRemoved,message:`Field '${e.name}.${t.name}' is no longer deprecated`,path:[e.name,t.name].join(".")}}function fieldDeprecationReasonChanged(e,t,n){return{criticality:{level:m.NonBreaking},type:d.FieldDeprecationReasonChanged,message:`Deprecation reason on field '${e.name}.${n.name}' has changed from '${t.deprecationReason}' to '${n.deprecationReason}'`,path:[e.name,t.name].join(".")}}function fieldDeprecationReasonAdded(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDeprecationReasonAdded,message:`Field '${e.name}.${t.name}' has deprecation reason '${t.deprecationReason}'`,path:[e.name,t.name].join(".")}}function fieldDeprecationReasonRemoved(e,t){return{criticality:{level:m.NonBreaking},type:d.FieldDeprecationReasonRemoved,message:`Deprecation reason was removed from field '${e.name}.${t.name}'`,path:[e.name,t.name].join(".")}}function fieldTypeChanged(e,t,n){return{criticality:{level:safeChangeForField(t.type,n.type)?m.NonBreaking:m.Breaking},type:d.FieldTypeChanged,message:`Field '${e}.${t.name}' changed type from '${t.type}' to '${n.type}'`,path:[e.name,t.name].join(".")}}function fieldArgumentAdded(e,t,n){const r=Object(f.isNonNullType)(n.type)&&typeof n.defaultValue==="undefined";const i=typeof n.defaultValue!=="undefined"?" (with default value) ":" ";return{criticality:r?{level:m.Breaking,reason:`Adding a required argument to an existing field is a breaking change because it will cause existing uses of this field to error.`}:{level:m.Dangerous,reason:`Adding a new argument to an existing field may involve a change in resolve function logic that potentially may cause some side effects.`},type:d.FieldArgumentAdded,message:`Argument '${n.name}: ${n.type}'${i}added to field '${e.name}.${t.name}'`,path:[e.name,t.name,n.name].join(".")}}function fieldArgumentRemoved(e,t,n){return{criticality:{level:m.Breaking,reason:`Removing a field argument is a breaking change because it will cause existing queries that use this argument to error.`},type:d.FieldArgumentRemoved,message:`Argument '${n.name}: ${n.type}' was removed from field '${e.name}.${t.name}'`,path:[e.name,t.name,n.name].join(".")}}function fieldArgumentDescriptionChanged(e,t,n,r){return{criticality:{level:m.NonBreaking},type:d.FieldArgumentDescriptionChanged,message:`Description for argument '${r.name}' on field '${e.name}.${t.name}' changed from '${n.description}' to '${r.description}'`,path:[e.name,t.name,n.name].join(".")}}function fieldArgumentDefaultChanged(e,t,n,r){return{criticality:{level:m.Dangerous,reason:"Changing the default value for an argument may change the runtime behaviour of a field if it was never provided."},type:d.FieldArgumentDefaultChanged,message:typeof n.defaultValue==="undefined"?`Default value '${safeString(r.defaultValue)}' was added to argument '${r.name}' on field '${e.name}.${t.name}'`:`Default value for argument '${r.name}' on field '${e.name}.${t.name}' changed from '${safeString(n.defaultValue)}' to '${safeString(r.defaultValue)}'`,path:[e.name,t.name,n.name].join(".")}}function fieldArgumentTypeChanged(e,t,n,r){return{criticality:safeChangeForInputValue(n.type,r.type)?{level:m.NonBreaking,reason:`Changing an input field from non-null to null is considered non-breaking.`}:{level:m.Breaking,reason:`Changing the type of a field's argument can cause existing queries that use this argument to error.`},type:d.FieldArgumentTypeChanged,message:`Type for argument '${r.name}' on field '${e.name}.${t.name}' changed from '${n.type}' to '${r.type}'`,path:[e.name,t.name,n.name].join(".")}}function changesInArgument(e,t,n,r,i){if(isNotEqual(n.description,r.description)){i(fieldArgumentDescriptionChanged(e,t,n,r))}if(isNotEqual(n.defaultValue,r.defaultValue)){if(Array.isArray(n.defaultValue)&&Array.isArray(r.defaultValue)){const o=diffArrays(n.defaultValue,r.defaultValue);if(o.length>0){i(fieldArgumentDefaultChanged(e,t,n,r))}}else if(JSON.stringify(n.defaultValue)!==JSON.stringify(r.defaultValue)){i(fieldArgumentDefaultChanged(e,t,n,r))}}if(isNotEqual(n.type.toString(),r.type.toString())){i(fieldArgumentTypeChanged(e,t,n,r))}}function changesInField(e,t,n,r){if(isNotEqual(t.description,n.description)){if(isVoid(t.description)){r(fieldDescriptionAdded(e,n))}else if(isVoid(n.description)){r(fieldDescriptionRemoved(e,t))}else{r(fieldDescriptionChanged(e,t,n))}}if(isNotEqual(isDeprecated(t),isDeprecated(n))){if(isDeprecated(n)){r(fieldDeprecationAdded(e,n))}else{r(fieldDeprecationRemoved(e,t))}}if(isNotEqual(t.deprecationReason,n.deprecationReason)){if(isVoid(t.deprecationReason)){r(fieldDeprecationReasonAdded(e,n))}else if(isVoid(n.deprecationReason)){r(fieldDeprecationReasonRemoved(e,t))}else{r(fieldDeprecationReasonChanged(e,t,n))}}if(isNotEqual(t.type.toString(),n.type.toString())){r(fieldTypeChanged(e,t,n))}compareLists(t.args,n.args,{onAdded(t){r(fieldArgumentAdded(e,n,t))},onRemoved(n){r(fieldArgumentRemoved(e,t,n))},onMutual(n){changesInArgument(e,t,n.oldVersion,n.newVersion,r)}})}function changesInObject(e,t,n){const r=e.getInterfaces();const i=t.getInterfaces();const o=e.getFields();const s=t.getFields();compareLists(r,i,{onAdded(e){n(objectTypeInterfaceAdded(e,t))},onRemoved(t){n(objectTypeInterfaceRemoved(t,e))}});compareLists(Object.values(o),Object.values(s),{onAdded(e){n(fieldAdded(t,e))},onRemoved(t){n(fieldRemoved(e,t))},onMutual(t){changesInField(e,t.oldVersion,t.newVersion,n)}})}function changesInInterface(e,t,n){compareLists(Object.values(e.getFields()),Object.values(t.getFields()),{onAdded(e){n(fieldAdded(t,e))},onRemoved(t){n(fieldRemoved(e,t))},onMutual(t){changesInField(e,t.oldVersion,t.newVersion,n)}})}function changesInDirective(e,t,n){if(isNotEqual(e.description,t.description)){n(directiveDescriptionChanged(e,t))}const r={added:diffArrays(t.locations,e.locations),removed:diffArrays(e.locations,t.locations)};r.added.forEach(e=>n(directiveLocationAdded(t,e)));r.removed.forEach(t=>n(directiveLocationRemoved(e,t)));compareLists(e.args,t.args,{onAdded(e){n(directiveArgumentAdded(t,e))},onRemoved(t){n(directiveArgumentRemoved(e,t))},onMutual(t){changesInDirectiveArgument(e,t.oldVersion,t.newVersion,n)}})}function changesInDirectiveArgument(e,t,n,r){if(isNotEqual(t.description,n.description)){r(directiveArgumentDescriptionChanged(e,t,n))}if(isNotEqual(t.defaultValue,n.defaultValue)){r(directiveArgumentDefaultValueChanged(e,t,n))}if(isNotEqual(t.type.toString(),n.type.toString())){r(directiveArgumentTypeChanged(e,t,n))}}function diffSchema(e,t){const n=[];function addChange(e){n.push(e)}changesInSchema(e,t,addChange);compareLists(Object.values(e.getTypeMap()).filter(e=>!isPrimitive(e)),Object.values(t.getTypeMap()).filter(e=>!isPrimitive(e)),{onAdded(e){addChange(typeAdded(e))},onRemoved(e){addChange(typeRemoved(e))},onMutual(e){changesInType(e.oldVersion,e.newVersion,addChange)}});compareLists(e.getDirectives(),t.getDirectives(),{onAdded(e){addChange(directiveAdded(e))},onRemoved(e){addChange(directiveRemoved(e))},onMutual(e){changesInDirective(e.oldVersion,e.newVersion,addChange)}});return n}function changesInSchema(e,t,n){var r,i,o,s,a,c;const u={query:"Query",mutation:"Mutation",subscription:"Subscription"};const l={query:(r=(e.getQueryType()||{}).name)!==null&&r!==void 0?r:u.query,mutation:(i=(e.getMutationType()||{}).name)!==null&&i!==void 0?i:u.mutation,subscription:(o=(e.getSubscriptionType()||{}).name)!==null&&o!==void 0?o:u.subscription};const p={query:(s=(t.getQueryType()||{}).name)!==null&&s!==void 0?s:u.query,mutation:(a=(t.getMutationType()||{}).name)!==null&&a!==void 0?a:u.mutation,subscription:(c=(t.getSubscriptionType()||{}).name)!==null&&c!==void 0?c:u.subscription};if(isNotEqual(l.query,p.query)){n(schemaQueryTypeChanged(e,t))}if(isNotEqual(l.mutation,p.mutation)){n(schemaMutationTypeChanged(e,t))}if(isNotEqual(l.subscription,p.subscription)){n(schemaSubscriptionTypeChanged(e,t))}}function changesInType(e,t,n){if(Object(f.isEnumType)(e)&&Object(f.isEnumType)(t)){changesInEnum(e,t,n)}else if(Object(f.isUnionType)(e)&&Object(f.isUnionType)(t)){changesInUnion(e,t,n)}else if(Object(f.isInputObjectType)(e)&&Object(f.isInputObjectType)(t)){changesInInputObject(e,t,n)}else if(Object(f.isObjectType)(e)&&Object(f.isObjectType)(t)){changesInObject(e,t,n)}else if(Object(f.isInterfaceType)(e)&&Object(f.isInterfaceType)(t)){changesInInterface(e,t,n)}else if(Object(f.isScalarType)(e)&&Object(f.isScalarType)(t)){}else{n(typeKindChanged(e,t))}if(isNotEqual(e.description,t.description)){if(isVoid(e.description)){n(typeDescriptionAdded(t))}else if(isVoid(t.description)){n(typeDescriptionRemoved(e))}else{n(typeDescriptionChanged(e,t))}}}const y=({changes:e})=>{return e.map(e=>{if(e.criticality.level===m.Dangerous){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Breaking})})}return e})};function parsePath(e){return e.split(".")}const v=({changes:e,oldSchema:t})=>{return e.map(e=>{if(e.type===d.FieldRemoved&&e.criticality.level===m.Breaking&&e.path){const[n,r]=parsePath(e.path);const i=t.getType(n);if(Object(f.isObjectType)(i)||Object(f.isInterfaceType)(i)){const t=i.getFields()[r];if(isDeprecated(t)){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Dangerous})})}}}if(e.type===d.EnumValueRemoved&&e.criticality.level===m.Breaking&&e.path){const[n,r]=parsePath(e.path);const i=t.getType(n);if(Object(f.isEnumType)(i)){const t=i.getValue(r);if(t&&isDeprecated(t)){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Dangerous})})}}}if(e.type===d.InputFieldRemoved&&e.criticality.level===m.Breaking&&e.path){const[n,r]=parsePath(e.path);const i=t.getType(n);if(Object(f.isInputObjectType)(i)){const t=i.getFields()[r];if(t&&isDeprecated(t)){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Dangerous})})}}}return e})};const b=[d.FieldArgumentDescriptionChanged,d.DirectiveDescriptionChanged,d.DirectiveArgumentDescriptionChanged,d.EnumValueDescriptionChanged,d.FieldDescriptionChanged,d.FieldDescriptionAdded,d.FieldDescriptionRemoved,d.InputFieldDescriptionAdded,d.InputFieldDescriptionRemoved,d.InputFieldDescriptionChanged,d.TypeDescriptionChanged];const T=({changes:e})=>{return e.filter(e=>b.indexOf(e.type)===-1)};const E=({changes:e,config:t})=>Object(o.__awaiter)(void 0,void 0,void 0,function*(){if(!t){throw new Error(`considerUsage rule is missing config`)}const n=[];e.forEach(e=>{if(e.criticality.level===m.Breaking&&e.path){const[t,r,i]=parsePath(e.path);n.push({type:t,field:r,argument:i})}});const r=yield t.checkUsage(n);const i=n.filter((e,t)=>r[t]===true).map(({type:e,field:t,argument:n})=>[e,t,n].filter(Boolean).join("."));return e.map(e=>{if(e.criticality.level===m.Breaking&&e.path&&i.some(t=>e.path.startsWith(t))){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.Dangerous}),message:`${e.message} (non-breaking based on usage)`})}return e})});const O=({changes:e,oldSchema:t})=>{const n=getReachableTypes(t);return e.map(e=>{if(e.criticality.level===m.Breaking&&e.path){const[t]=parsePath(e.path);if(!n.has(t)){return Object.assign(Object.assign({},e),{criticality:Object.assign(Object.assign({},e.criticality),{level:m.NonBreaking}),message:"Unreachable from root"})}}return e})};const w=r;function diff_diff(e,t,n=[],r){const i=diffSchema(e,t);return n.reduce((n,i)=>Object(o.__awaiter)(this,void 0,void 0,function*(){const o=yield n;return i({changes:o,oldSchema:e,newSchema:t,config:r})}),Promise.resolve(i))}var _=n(5);function readDocument(e){const t={source:e,fragments:[],operations:[],hasFragments:false,hasOperations:false};const n=Object(f.parse)(e.body);const r=e.name;const i=n.definitions||[];i.forEach(e=>{if(isOperation(e)){t.operations.push({node:e,source:r})}else if(isFragment(e)){t.fragments.push({node:e,source:r})}});t.hasFragments=t.fragments.length>0;t.hasOperations=t.operations.length>0;return t}function isOperation(e){return e.kind===f.Kind.OPERATION_DEFINITION}function isFragment(e){return e.kind===f.Kind.FRAGMENT_DEFINITION}function validateQueryDepth({source:e,doc:t,maxDepth:n,fragmentGraph:r}){try{calculateDepth({node:t,currentDepth:0,maxDepth:n,getFragment(e){return r.getNodeData(e)}})}catch(t){if(t instanceof Error){throw t}const r=t;return new f.GraphQLError(`Query exceeds maximum depth of ${n}`,r,e,r.loc&&r.loc.start?[r.loc.start]:undefined)}}function calculateDepth({node:e,currentDepth:t,maxDepth:n,getFragment:r}){if(n&&t>n){throw e}switch(e.kind){case f.Kind.FIELD:{if(e.name.value.startsWith("__")||!e.selectionSet){return 0}const i=calculateDepth({node:e.selectionSet,currentDepth:t+1,maxDepth:n,getFragment:r});return 1+i}case f.Kind.SELECTION_SET:{return Math.max(...e.selections.map(e=>{return calculateDepth({node:e,currentDepth:t,maxDepth:n,getFragment:r})}))}case f.Kind.DOCUMENT:{return Math.max(...e.definitions.map(e=>{return calculateDepth({node:e,currentDepth:t,maxDepth:n,getFragment:r})}))}case f.Kind.OPERATION_DEFINITION:case f.Kind.INLINE_FRAGMENT:case f.Kind.FRAGMENT_DEFINITION:{return Math.max(...e.selectionSet.selections.map(e=>{return calculateDepth({node:e,currentDepth:t,maxDepth:n,getFragment:r})}))}case f.Kind.FRAGMENT_SPREAD:return calculateDepth({node:r(e.name.value),currentDepth:t,maxDepth:n,getFragment:r});default:{throw new Error(`Couldn't handle ${e.kind}`)}}}function transformDocumentWithApollo(e,{keepClientFields:t}){return Object(f.visit)(e,{Field(e){return t?removeDirectives(e,["client"]):removeFieldIfDirectives(e,["client"])}})}function transformSchemaWithApollo(e){return Object(f.extendSchema)(e,Object(f.parse)(`\n directive @connection(key: String!, filter: [String]) on FIELD\n `))}function validate(e,t,n){const r=Object.assign({strictDeprecated:true,strictFragments:true,keepClientFields:false,apollo:false},n);const i=[];const o=t.map(readDocument);const s=[];const a=[];const c=new _.DepGraph({circular:true});o.forEach(e=>{e.fragments.forEach(e=>{a.push(e.node.name.value);s.push(e);c.addNode(e.node.name.value,e.node)})});s.forEach(e=>{const t=extractFragments(Object(f.print)(e.node));if(t){t.forEach(t=>{c.addDependency(e.node.name.value,t)})}});o.filter(e=>e.hasOperations).forEach(t=>{const n={kind:f.Kind.DOCUMENT,definitions:t.operations.map(e=>e.node)};const o=(extractFragments(Object(f.print)(n))||[]).map(e=>resolveFragment(c.getNodeData(e),c)).reduce((e,t)=>e.concat(t),[]).filter((e,t,n)=>n.findIndex(t=>t.name.value===e.name.value)===t);const s={kind:f.Kind.DOCUMENT,definitions:[...n.definitions,...o]};let u=r.apollo?transformSchemaWithApollo(e):e;const l=r.apollo?transformDocumentWithApollo(s,{keepClientFields:r.keepClientFields}):s;const p=Object(f.validate)(u,l)||[];if(r.maxDepth){const e=validateQueryDepth({source:t.source,doc:l,maxDepth:r.maxDepth,fragmentGraph:c});if(e){p.push(e)}}const d=r.strictDeprecated?findDeprecatedUsages(u,l):[];const m=r.strictFragments?findDuplicatedFragments(a):[];if(sumLengths(p,m,d)>0){i.push({source:t.source,errors:[...p,...m],deprecated:d})}});return i}function findDuplicatedFragments(e){return e.filter((e,t,n)=>n.indexOf(e)!==t).map(e=>new f.GraphQLError(`Name of '${e}' fragment is not unique`))}function resolveFragment(e,t){return t.dependenciesOf(e.name.value).reduce((e,n)=>[...e,...resolveFragment(t.getNodeData(n),t)],[e])}function extractFragments(e){return(e.match(/[\.]{3}[a-z0-9\_]+\b/gi)||[]).map(e=>e.replace("...",""))}function sumLengths(...e){return e.reduce((e,{length:t})=>e+t,0)}function similar(e,t,n=.4){const r=e.getTypeMap();const i=Object.keys(e.getTypeMap()).filter(e=>!isPrimitive(e)&&!isForIntrospection(e)).map(e=>({typeId:e,value:stripType(r[e])}));const o={};if(typeof t!=="undefined"&&!i.some(e=>e.typeId===t)){throw new Error(`Type '${t}' doesn't exist`)}(t?[{typeId:t,value:""}]:i).forEach(t=>{const r=e.getType(t.typeId);const s=i.filter(n=>e.getType(n.typeId).astNode.kind===r.astNode.kind&&n.typeId!==t.typeId);if(s.length>0){const e=similarTo(r,s,n);if(e){o[t.typeId]=e}}});return o}function similarTo(e,t,n){const r=t.filter(t=>t.typeId!==e.name);const i=findBestMatch(stripType(e),r);if(i.bestMatch.ratinge.rating>=n&&e.target!==i.bestMatch.target).sort((e,t)=>e.rating-t.rating).reverse()}}function stripType(e){return Object(f.printType)(e).trim().replace(/^[a-z]+ [^\{]+\{/g,"").replace(/\}$/g,"").trim().split("\n").map(e=>e.trim()).sort((e,t)=>e.localeCompare(t)).join(" ")}function coverage_coverage(e,t){const n={sources:t,types:{}};const r=e.getTypeMap();const i=new f.TypeInfo(e);const o=e=>({Field(t){const r=i.getFieldDef();const o=i.getParentType();if(o&&o.name&&!isForIntrospection(o.name)&&r&&r.name&&r.name!=="__typename"&&r.name!=="__schema"){const i=e.name;const s=n.types[o.name];const a=s.children[r.name];const c=a.locations[i];s.hits++;a.hits++;if(t.loc){a.locations[i]=[t.loc,...c||[]]}if(t.arguments){for(const e of t.arguments){const t=a.children[e.name.value];t.hits++;if(e.loc){t.locations[i]=[e.loc,...t.locations[i]||[]]}}}}}});for(const e in r){if(!isForIntrospection(e)&&!isPrimitive(e)){const t=r[e];if(Object(f.isObjectType)(t)||Object(f.isInterfaceType)(t)){const e={hits:0,type:t,children:{}};const r=t.getFields();for(const t in r){const n=r[t];e.children[n.name]={hits:0,locations:{},children:{}};for(const t of n.args){e.children[n.name].children[t.name]={hits:0,locations:{}}}}n.types[t.name]=e}}}const s=n.sources.map(readDocument);s.forEach((e,t)=>{const r=n.sources[t];e.operations.forEach(e=>{Object(f.visit)(e.node,Object(f.visitWithTypeInfo)(i,o(r)))});e.fragments.forEach(e=>{Object(f.visit)(e.node,Object(f.visitWithTypeInfo)(i,o(r)))})});return n}function bolderize(e){return quotesTransformer(e,"**")}function quotesTransformer(e,t="**"){const n=/\'([^']+)\'/gim;const r=/\"([^"]+)\"/gim;function transformm(e,n){return`${t}${n}${t}`}return e.replace(n,transformm).replace(r,transformm)}function slackCoderize(e){return quotesTransformer(e,"`")}function discordCoderize(e){return quotesTransformer(e,"`")}function filterChangesByLevel(e){return t=>t.criticality.level===e}function createSummary(e,t,n){const r=e.filter(filterChangesByLevel(m.Breaking));const i=e.filter(filterChangesByLevel(m.Dangerous));const o=e.filter(filterChangesByLevel(m.NonBreaking));const s=[`# Found ${e.length} change${e.length>1?"s":""}`,"",`Breaking: ${r.length}`,`Dangerous: ${i.length}`,`Safe: ${o.length}`];if(n){s.push(["","> Legacy config detected, [please migrate to a new syntax](https://graphql-inspector.com/docs/products/github#full-configuration)",""].join("\n"))}if(e.length>t){s.push(["",`Total amount of changes (${e.length}) is over the limit (${t})`,'Adjust it using "summaryLimit" option',""].join("\n"))}function addChangesToSummary(e,n){if(n.length<=t){s.push(...["",`## ${e} changes`].concat(n.map(e=>` - ${bolderize(e.message)}`)))}t-=n.length}if(r.length){addChangesToSummary("Breaking",r)}if(i.length){addChangesToSummary("Dangerous",i)}if(o.length){addChangesToSummary("Safe",o)}s.push(["","___",`Looking for more advanced tool? Try [GraphQL Hive](https://graphql-hive.com)!`].join("\n"));return s.join("\n")}function isNil(e){return!e&&typeof e!=="boolean"}function parseEndpoint(e){if(typeof e==="string"){return{url:e,method:"POST"}}return{url:e.url,method:e.method||"POST",headers:e.headers}}function batch(e,t){const n=[];const r=Math.ceil(e.length/t);if(r===0){return[[]]}for(let i=0;i{e[t]=n;return e},{})}function createGetFilesQuery(e){const t=Object.keys(e).map(e=>`$${e}: String!`).join(", ");const n=Object.keys(e).map(e=>{return`\n ${e}: object(expression: $${e}) {\n ... on Blob {\n text\n }\n }\n `}).join("\n");return`\n query GetFile($repo: String!, $owner: String!, ${t}) {\n repository(name: $repo, owner: $owner) {\n ${n}\n }\n }\n `.replace(/\s+/g," ")}function createFileLoader(e){const t=new a.a(t=>Object(o.__awaiter)(this,void 0,void 0,function*(){const n=objectFromEntries(t.map(e=>[e.alias,`${e.ref}:${e.path}`]));const{context:r,repo:i,owner:s}=e;const a=yield r.octokit.graphql(createGetFilesQuery(n),Object.assign({repo:i,owner:s},n));return Promise.all(t.map(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const t=e.alias;try{if(!a){throw new Error(`No result :(`)}if(a.data){return a.data.repository[t].text}return a.repository[t].text}catch(t){const n=new Error(`Failed to load '${e.path}' (ref: ${e.ref})`);if(e.throwNotFound===false){if(e.onError){e.onError(n)}else{console.error(n)}return null}throw n}})))}),{batch:true,maxBatchSize:5,cacheKeyFn(e){return`${e.ref} - ${e.path}`}});return e=>t.load(e)}function createConfigLoader(e,t){const n=new a.a(n=>{const r=[];const i=e=>{r.push(e)};return Promise.all(n.map(n=>Object(o.__awaiter)(this,void 0,void 0,function*(){const[o,s,a]=yield Promise.all([t(Object.assign(Object.assign({},e),{alias:"yaml",path:`.github/${n}.yaml`,throwNotFound:false,onError:i})),t(Object.assign(Object.assign({},e),{alias:"yml",path:`.github/${n}.yml`,throwNotFound:false,onError:i})),t(Object.assign(Object.assign({},e),{alias:"pkg",path:"package.json",throwNotFound:false,onError:i}))]);if(o||s){return u().load(o||s)}if(a){try{const e=JSON.parse(a);if(e[n]){return e[n]}}catch(e){r.push(e)}}console.error([`Failed to load config:`,...r].join("\n"));return null})))},{batch:false});return()=>n.load("graphql-inspector")}function printSchemaFromEndpoint(e){return Object(o.__awaiter)(this,void 0,void 0,function*(){const t=parseEndpoint(e);const{data:n}=yield p().request({method:t.method,url:t.url,headers:t.headers,data:{query:Object(f.getIntrospectionQuery)().replace(/\s+/g," ").trim()}});const r=n.data;return Object(f.printSchema)(Object(f.buildClientSchema)(r,{assumeValid:true}))})}function loadSources({config:e,oldPointer:t,newPointer:n,loadFile:r}){var i;return Object(o.__awaiter)(this,void 0,void 0,function*(){const o=!isNil(e.endpoint);const[s,a]=yield Promise.all([o?printSchemaFromEndpoint(e.endpoint):r(Object.assign(Object.assign({},t),{alias:"oldSource"})),r(Object.assign(Object.assign({},n),{alias:"newSource"}))]);return{old:new f.Source(s,o?typeof e.endpoint==="string"?e.endpoint:(i=e.endpoint)===null||i===void 0?void 0:i.url:`${t.ref}:${t.path}`),new:new f.Source(a,`${n.ref}:${n.path}`)}})}const S="__default";const N="*";const D={annotations:true,failOnBreaking:true};const A=false;function normalizeConfig(e){if(config_isLegacyConfig(e)){console.log('config type - "legacy"');return{kind:"legacy",config:{[S]:{name:S,schema:e.schema.path,branch:e.schema.ref,endpoint:e.endpoint,notifications:prioritize(e.notifications,A),diff:prioritize(e.diff,D)}}}}if(isSingleEnvironmentConfig(e)){console.log('config type - "single"');return{kind:"single",config:{[e.branch]:{name:e.branch,schema:e.schema,branch:e.branch,endpoint:e.endpoint,notifications:prioritize(e.notifications,A),diff:prioritize(e.diff,D)}}}}if(isMultipleEnvironmentConfig(e)){console.log('config type - "multiple"');const t={};for(const n in e.env){if(e.env.hasOwnProperty(n)){const r=e.env[n];t[n]={name:n,schema:e.schema,branch:r.branch,endpoint:r.endpoint,diff:prioritize(r.diff,e.diff,D),notifications:prioritize(r.notifications,e.notifications,A)}}}return{kind:"multiple",config:t}}throw new Error("Invalid configuration")}function getGlobalConfig(e,t){var n;return{name:"global",schema:e.schema,branch:t,notifications:false,diff:prioritize((n=e.others)===null||n===void 0?void 0:n.diff,e.diff,D)}}function createConfig(e,t,n=[],r=N){const{config:i,kind:o}=normalizeConfig(e);let s=null;t(o);if(isNormalizedLegacyConfig(i)){s=i[S];if(n.includes(s.branch)===false){s.endpoint=undefined}return s}for(const e of n){if(!s){s=findConfigByBranch(e,i,false)}if(s){break}}if(!s){s=getGlobalConfig(e,r)}return s}function isNormalizedLegacyConfig(e){return typeof e[S]==="object"}function config_isLegacyConfig(e){return e.schema&&typeof e.schema==="object"}function isSingleEnvironmentConfig(e){return!e.env}function isMultipleEnvironmentConfig(e){return!config_isLegacyConfig(e)&&!isSingleEnvironmentConfig(e)}function findConfigByBranch(e,t,n=true){const r=[];for(const n in t){if(t.hasOwnProperty(n)){const i=t[n];if(i.branch===e){return i}r.push(i.branch)}}if(n){throw new Error(`Couldn't match branch "${e}" with branches in config. Available branches: ${r.join(", ")}`)}return null}function prioritize(e,t,n){if(e===false){return false}if(e===true||isNil(e)){if(t===true||isNil(t)){return n||false}return typeof t==="object"&&typeof n==="object"?Object.assign(Object.assign({},n),t):t}if(t&&typeof t==="object"){return Object.assign(Object.assign(Object.assign({},n),t),e)}return typeof e==="object"&&typeof n==="object"?Object.assign(Object.assign({},n),e):e}function notifyWithWebhook({url:e,changes:t,environment:n,repo:r,owner:i,commit:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){const o={repo:r,owner:i,commit:s,environment:n&&n!==S?n:"default",changes:t.map(e=>({message:e.message,level:e.criticality.level}))};yield p().post(e,o,{headers:{"content-type":"application/json"}})})}function notifyWithSlack({url:e,changes:t,environment:n,repo:r,owner:i,commit:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){const o=t.length;const a=n?`${n} schema`:`schema`;const c=s?` ()`:"";const u={username:"GraphQL Inspector",icon_url:"https://graphql-inspector/img/logo-slack.png",text:`:male-detective: Hi, I found *${o} ${pluralize("change",o)}* in ${a}${c}:`,attachments:createAttachments(t)};yield p().post(e,u,{headers:{"content-type":"application/json"}})})}function notifyWithDiscord({url:e,changes:t,environment:n,repo:r,owner:i,commit:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){const o=t.length;const a=n?`${n} schema`:`schema`;const c=s?` ([\`${s.substr(0,7)}\`](https://github.com/${i}/${r}/commit/${s}))`:"";const u={username:"GraphQL Inspector",avatar_url:"https://graphql-inspector/img/logo-slack.png",content:`:detective: Hi, I found **${o} ${pluralize("change",o)}** in ${a}${c}:`,embeds:createDiscordEmbeds(t)};yield p().post(e,u,{headers:{"content-type":"application/json"}})})}function createAttachments(e){const t=e.filter(filterChangesByLevel(m.Breaking));const n=e.filter(filterChangesByLevel(m.Dangerous));const r=e.filter(filterChangesByLevel(m.NonBreaking));const i=[];if(t.length){i.push(renderAttachments({color:"#E74C3B",title:"Breaking changes",changes:t}))}if(n.length){i.push(renderAttachments({color:"#F0C418",title:"Dangerous changes",changes:n}))}if(r.length){i.push(renderAttachments({color:"#23B99A",title:"Safe changes",changes:r}))}return i}function renderAttachments({changes:e,title:t,color:n}){const r=e.map(e=>slackCoderize(e.message)).join("\n");return{mrkdwn_in:["text","fallback"],color:n,author_name:t,text:r,fallback:r}}function createDiscordEmbeds(e){const t=e.filter(filterChangesByLevel(m.Breaking));const n=e.filter(filterChangesByLevel(m.Dangerous));const r=e.filter(filterChangesByLevel(m.NonBreaking));const i=[];if(t.length){i.push(renderDiscordEmbed({color:15158331,title:"Breaking changes",changes:t}))}if(n.length){i.push(renderDiscordEmbed({color:15778840,title:"Dangerous changes",changes:n}))}if(r.length){i.push(renderDiscordEmbed({color:2341274,title:"Safe changes",changes:r}))}return i}function renderDiscordEmbed({changes:e,title:t,color:n}){const r=e.map(e=>discordCoderize(e.message)).join("\n");return{color:n,title:t,description:r}}function pluralize(e,t){return e+(t>1?"s":"")}function createLogger(e,t,n){const r=Math.random().toString(16).substr(2,5);const i=t=>`${e} ${r} - release-${n.substr(0,7)} : ${t}`;return{log(e){t.log(i(e))},info(e){t.log.info(i(e))},warn(e){t.log.warn(i(e))},error(e,n){if(n){console.error(n)}t.log.error(i(e instanceof Error?e.message:e))}}}function handleSchemaChangeNotifications({context:e,ref:t,repo:n,owner:r,before:i,loadFile:s,loadConfig:a,onError:c,release:u,action:l}){var p,d;return Object(o.__awaiter)(this,void 0,void 0,function*(){const m=`${r}/${n}#${t}`;const h=createLogger("NOTIFICATIONS",e,u);h.info(`started - ${m}`);h.info(`action - ${l}`);const g=t.startsWith("refs/heads/");if(!g){h.warn(`Received Push event is not a branch push event (ref "${t}")`);return}const y=yield a();if(!y){h.error(`Missing config file`);return}const v=t.replace("refs/heads/","");const b=createConfig(y,()=>{},[v]);if(!b.notifications){h.info(`disabled. Skipping...`);return}else{h.info(`enabled`)}if(b.branch!==v){h.info(`Received branch "${v}" doesn't match expected branch "${b.branch}". Skipping...`);return}const T={path:b.schema,ref:i};const E={path:b.schema,ref:t};const O=yield loadSources({config:b,oldPointer:T,newPointer:E,loadFile:s});const w={old:Object(f.buildSchema)(O.old,{assumeValid:true,assumeValidSDL:true}),new:Object(f.buildSchema)(O.new,{assumeValid:true,assumeValidSDL:true})};h.info(`built schemas`);const _=yield diff_diff(w.old,w.new);if(!_.length){h.info(`schemas are equal. Skipping...`);return}const S=b.notifications;if(hasNotificationsEnabled(S)){function actionRunner(e,t){return Object(o.__awaiter)(this,void 0,void 0,function*(){try{yield t()}catch(t){c(t);h.error(`Failed to send a notification via ${e}`,t)}})}const t=[];const i=(d=(p=e.payload.commits)===null||p===void 0?void 0:p[0])===null||d===void 0?void 0:d.id;if(S.slack){t.push(actionRunner("slack",()=>notifyWithSlack({url:S.slack,changes:_,environment:b.name,repo:n,owner:r,commit:i})))}if(S.discord){t.push(actionRunner("discord",()=>notifyWithDiscord({url:S.discord,changes:_,environment:b.name,repo:n,owner:r,commit:i})))}if(S.webhook){t.push(actionRunner("webhook",()=>notifyWithWebhook({url:S.webhook,changes:_,environment:b.name,repo:n,owner:r,commit:i})))}if(t.length){yield Promise.all(t)}}})}function hasNotificationsEnabled(e){return e&&typeof e==="object"}function produceSchema(e){try{if(!e.body.trim().length){throw new Error(`Content is empty`)}return Object(f.buildSchema)(e,{assumeValid:true,assumeValidSDL:true})}catch(t){throw new Error(`Failed to parse "${e.name}": ${t.message}`)}}var I;(function(e){e["Failure"]="failure";e["Warning"]="warning";e["Notice"]="notice"})(I||(I={}));var j;(function(e){e["InProgress"]="in_progress";e["Completed"]="completed"})(j||(j={}));var R;(function(e){e["Success"]="success";e["Neutral"]="neutral";e["Failure"]="failure"})(R||(R={}));function start({context:e,owner:t,repo:n,sha:r,logger:i}){return Object(o.__awaiter)(this,void 0,void 0,function*(){try{const o=yield e.octokit.checks.create({owner:t,repo:n,name:"graphql-inspector",head_sha:r,status:j.InProgress});i.info(`check started`);return o.data.id}catch(e){i.error(`failed to start a check`,e);throw e}})}function annotate({context:e,owner:t,repo:n,checkRunId:r,annotations:i,title:s,summary:a,logger:c}){return Object(o.__awaiter)(this,void 0,void 0,function*(){const u=batch(i,50);e.log.info(`annotations to be sent: ${i.length}`);e.log.info(`title: ${s}`);try{yield Promise.all(u.map(i=>Object(o.__awaiter)(this,void 0,void 0,function*(){yield e.octokit.checks.update({owner:t,repo:n,check_run_id:r,output:{annotations:i,title:s,summary:a}});c.info(`annotations sent (${i.length})`)})))}catch(e){c.error(`failed to send annotations`,e);throw e}})}function complete({context:e,owner:t,repo:n,checkRunId:r,conclusion:i,logger:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){try{yield e.octokit.checks.update({owner:t,repo:n,check_run_id:r,conclusion:i,status:j.Completed});s.info(`check completed`)}catch(e){s.error(`failed to complete a check`,e);throw e}})}function getLocationByPath({path:e,source:t}){const[n,...r]=e.split(".");const i=n.startsWith("@");const o=Object(f.parse)(t);let s=undefined;for(const e of o.definitions){if(e.kind===f.Kind.OBJECT_TYPE_DEFINITION&&e.name.value===n){s=resolveObjectTypeDefinition(r,e);break}if(i&&e.kind===f.Kind.DIRECTIVE_DEFINITION&&e.name.value===n.substring(1)){s=resolveDirectiveDefinition(r,e);break}if(e.kind===f.Kind.ENUM_TYPE_DEFINITION&&e.name.value===n){s=resolveEnumTypeDefinition(r,e);break}if(e.kind===f.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.name.value===n){s=resolveInputObjectTypeDefinition(r,e);break}if(e.kind===f.Kind.INTERFACE_TYPE_DEFINITION&&e.name.value===n){s=resolveInterfaceTypeDefinition(r,e);break}if(e.kind===f.Kind.UNION_TYPE_DEFINITION&&e.name.value===n){s=resolveUnionTypeDefinitionNode(r,e);break}if(e.kind===f.Kind.SCALAR_TYPE_DEFINITION&&e.name.value===n){s=resolveScalarTypeDefinitionNode(r,e);break}}return resolveNodeSourceLocation(t,s)}function resolveScalarTypeDefinitionNode(e,t){return t}function resolveUnionTypeDefinitionNode(e,t){return t}function resolveArgument(e,t){var n;const r=(n=t.arguments)===null||n===void 0?void 0:n.find(t=>t.name.value===e);return r||t}function resolveFieldDefinition(e,t){var n;const[r,i]=e;const o=(n=t.fields)===null||n===void 0?void 0:n.findIndex(e=>e.name.value===r);if(typeof o==="number"&&o>-1){const e=t.fields[o];if(e.kind!==f.Kind.INPUT_VALUE_DEFINITION&&i){return resolveArgument(i,e)}return e}return t}function resolveInterfaceTypeDefinition(e,t){const[n,r]=e;if(n){return resolveFieldDefinition([n,r],t)}return t}function resolveInputObjectTypeDefinition(e,t){const[n]=e;if(n){return resolveFieldDefinition([n],t)}return t}function resolveEnumTypeDefinition(e,t){const[n]=e;if(t.values&&n){const e=t.values.find(e=>e.name.value===n);if(e){return e}}return t}function resolveObjectTypeDefinition(e,t){const[n,r]=e;if(n){return resolveFieldDefinition([n,r],t)}return t}function resolveDirectiveDefinition(e,t){const[n]=e;if(t.arguments&&n){const e=t.arguments.find(e=>e.name.value===n);if(e){return e}}return t}function resolveNodeSourceLocation(e,t){if(!t||!t.loc){return{line:1,column:1}}const n=Object(f.getLocation)(e,t.loc.start);if(t.description&&t.description.loc){return{line:Object(f.getLocation)(e,t.description.loc.end).line+1,column:n.column}}return n}function helpers_diff_diff({path:e,schemas:t,sources:n,interceptor:r,pullRequests:i,ref:s}){return Object(o.__awaiter)(this,void 0,void 0,function*(){let o=yield diff_diff(t.old,t.new);let a=null;if(!o||!o.length){return{conclusion:R.Success}}if(!isNil(r)){const e=yield interceptChanges(r,{pullRequests:i,ref:s,changes:o});o=e.changes||[];a=e.conclusion||null}const c=yield Promise.all(o.map(t=>diff_annotate({path:e,change:t,source:n.new})));let u=R.Success;if(o.some(e=>e.criticality.level===m.Breaking)){u=R.Failure}if(a){u=a}return{conclusion:u,annotations:c,changes:o}})}const P={[m.Breaking]:I.Failure,[m.Dangerous]:I.Warning,[m.NonBreaking]:I.Notice};function diff_annotate({path:e,change:t,source:n}){const r=t.criticality.level;const i=t.path?getLocationByPath({path:t.path,source:n}):{line:1,column:1};return{title:t.message,annotation_level:P[r],path:e,message:t.criticality.reason||t.message,start_line:i.line,end_line:i.line}}function interceptChanges(e,t){return Object(o.__awaiter)(this,void 0,void 0,function*(){const n=parseEndpoint(e);const{data:r}=yield p().request({url:n.url,method:n.method,data:t});return r})}class MissingConfigError extends Error{constructor(){super(["Failed to find a configuration","","https://graphql-inspector.com/docs/products/github#usage"].join("\n"))}}function handleSchemaDiff({release:e,action:t,context:n,ref:r,pullRequestNumber:i,repo:s,owner:a,before:c,pullRequests:u=[],loadFile:l,loadConfig:p,onError:f}){var d;return Object(o.__awaiter)(this,void 0,void 0,function*(){const o=`${a}/${s}#${r}`;const m=createLogger("DIFF",n,e);m.info(`Started - ${o}`);m.info(`Action: "${t}"`);const h=yield start({context:n,owner:a,repo:s,sha:r,logger:m});try{m.info(`Looking for config`);const e=yield p();if(!e){m.error(`Config file missing`);throw new MissingConfigError}const t=u.map(e=>e.base.ref);const o=t[0];const g=o||c;let y=false;m.info(`fallback branch from Pull Requests: ${o}`);m.info(`SHA before push: ${c}`);const v=createConfig(e,e=>{y=e==="legacy"},t,g);if(!v.diff){m.info(`disabled. Skipping...`);yield complete({owner:a,repo:s,checkRunId:h,context:n,conclusion:R.Success,logger:m});return}else{m.info(`enabled`)}if(!v.branch||/^[0]+$/.test(v.branch)){m.info(`Nothing to compare with. Skipping...`);yield complete({owner:a,repo:s,checkRunId:h,context:n,conclusion:R.Success,logger:m});return}if(v.diff.experimental_merge!==false){if(!i&&(u===null||u===void 0?void 0:u.length)){i=u[0].number}if(i){r=`refs/pull/${i}/merge`;m.info(`Using Pull Request: ${r}`)}}const b={path:v.schema,ref:v.branch};const T={path:b.path,ref:r};if(b.ref===N){m.error("used default ref to get old schema")}if(T.ref===N){m.error("used default ref to get new schema")}const E=yield loadSources({config:v,oldPointer:b,newPointer:T,loadFile:l});const O={old:produceSchema(E.old),new:produceSchema(E.new)};m.info(`built schemas`);const w=yield helpers_diff_diff({path:v.schema,schemas:O,sources:E});m.info(`schema diff result is ready`);let _=w.conclusion;let S=w.annotations||[];const D=w.changes||[];m.info(`changes - ${D.length}`);m.info(`annotations - ${D.length}`);const A=v.diff.summaryLimit||100;const I=createSummary(D,A,y);const j=v.diff.approveLabel||"approved-breaking-change";const P=i?(d=u[0].labels)===null||d===void 0?void 0:d.find(e=>e.name===j):false;if(v.diff.failOnBreaking===false||P){m.info("FailOnBreaking disabled. Forcing SUCCESS");_=R.Success}const L=_===R.Failure?"Something is wrong with your schema":"Everything looks good";if(v.diff.annotations===false){m.info(`Anotations are disabled. Skipping annotations...`);S=[]}else if(S.length>A){m.info(`Total amount of annotations is over the limit (${S.length} > ${A}). Skipping annotations...`);S=[]}else{m.info(`Sending annotations (${S.length})`)}yield annotate({owner:a,repo:s,checkRunId:h,context:n,title:L,summary:I,annotations:S,logger:m});m.info(`Finishing check (${_})`);yield complete({owner:a,repo:s,checkRunId:h,context:n,conclusion:_,logger:m});m.info(`done`)}catch(e){m.error(e);if(!(e instanceof MissingConfigError)){f(e)}yield annotate({owner:a,repo:s,checkRunId:h,context:n,title:`Failed to complete schema check`,summary:`ERROR: ${e.message||e}`,annotations:[],logger:m});yield complete({owner:a,repo:s,checkRunId:h,context:n,conclusion:R.Failure,logger:m})}})}const L=Symbol.for("inspector-diagnostics");function setDiagnostics(e,t){e[L]=t}function getDiagnostics(e){return e[L]}const F=["rerequested"];function handleProbot(e){const{onError:t,release:n}=getDiagnostics(e);function wrap(e){return n=>Object(o.__awaiter)(this,void 0,void 0,function*(){try{yield e(n)}catch(e){t(e);throw e}})}e.on("check_run",wrap(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const r=e.payload.check_run.head_sha;const{owner:i,repo:o}=e.repo();const s=e.payload.action;const a=e.payload.check_run.pull_requests;const c=e.payload.check_run.check_suite.before;const u="check_run."+s;if(F.includes(s)===false){return}const l=createFileLoader({context:e,owner:i,repo:o,release:n,action:u});const p=createConfigLoader({context:e,owner:i,repo:o,ref:r,release:n,action:u},l);yield handleSchemaDiff({release:n,action:u,context:e,ref:r,repo:o,owner:i,loadFile:l,loadConfig:p,before:c,pullRequests:a,onError:t})})));e.on("check_suite",wrap(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const r=e.payload.check_suite.head_sha;const{owner:i,repo:o}=e.repo();const s=e.payload.action;const a=e.payload.check_suite.pull_requests;const c=e.payload.check_suite.before;const u="check_suite."+s;if(F.includes(s)===false){return}const l=createFileLoader({context:e,owner:i,repo:o,release:n,action:u});const p=createConfigLoader({context:e,owner:i,repo:o,ref:r,release:n,action:u},l);yield handleSchemaDiff({release:n,action:u,context:e,ref:r,repo:o,owner:i,loadFile:l,loadConfig:p,before:c,pullRequests:a,onError:t})})));e.on("pull_request",wrap(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const r=e.payload.pull_request.head.sha;const i=e.payload.pull_request.number;const{owner:o,repo:s}=e.repo();const a=e.payload.action;const c=[e.payload.pull_request];const u=e.payload.pull_request.base.sha;const l="pull_request."+a;if(["opened","synchronize","edited","labeled","unlabeled"].includes(a)===false){return}const p=createFileLoader({context:e,owner:o,repo:s,release:n,action:l});const f=createConfigLoader({context:e,owner:o,repo:s,ref:r,release:n,action:l},p);yield handleSchemaDiff({release:n,action:l,context:e,ref:r,repo:s,owner:o,loadFile:p,loadConfig:f,before:u,pullRequests:c,pullRequestNumber:i,onError:t})})));e.on("push",wrap(e=>Object(o.__awaiter)(this,void 0,void 0,function*(){const r=e.payload.ref;const{owner:i,repo:o}=e.repo();const s=e.payload.before;const a="push";const c=createFileLoader({context:e,owner:i,repo:o,release:n,action:a});const u=createConfigLoader({context:e,owner:i,repo:o,ref:r,release:n,action:a},c);yield handleSchemaChangeNotifications({action:a,release:n,context:e,ref:r,before:s,repo:o,owner:i,loadFile:c,loadConfig:u,onError:t})})))}var C=handleProbot;var k=n(747);var x=n(622);var U=n(129);var G=n(469);function utils_batch(e,t){const n=[];const r=Math.ceil(e.length/t);if(r===0){return[[]]}for(let i=0;i0?n.data[0]:null})}function run(){var e,t;return Object(o.__awaiter)(this,void 0,void 0,function*(){Object(i.info)(`GraphQL Inspector started`);let n=process.env.GITHUB_SHA;const r=getCurrentCommitSha();Object(i.info)(`Ref: ${n}`);Object(i.info)(`Commit SHA: ${r}`);const o=Object(i.getInput)("github-token",{required:true});const s=Object(i.getInput)("name")||$;let a=process.env.GITHUB_WORKSPACE;if(!a){return Object(i.setFailed)("Failed to resolve workspace directory. GITHUB_WORKSPACE is missing")}const c=castToBoolean(Object(i.getInput)("experimental_merge"),true);const u=castToBoolean(Object(i.getInput)("annotations"));const l=castToBoolean(Object(i.getInput)("fail-on-breaking"));const p=Object(i.getInput)("endpoint");const d=Object(i.getInput)("approve-label")||"approved-breaking-change";const m=Object(G.getOctokit)(o);const{owner:h,repo:g}=G.context.repo;const y=yield getAssociatedPullRequest(m,r);Object(i.info)(`Creating a check named "${s}"`);const v=yield m.checks.create({owner:h,repo:g,name:s,head_sha:r,status:"in_progress"});const b=v.data.id;Object(i.info)(`Check ID: ${b}`);const T=Object(i.getInput)("schema",{required:true});const E=fileLoader({octokit:m,owner:h,repo:g});if(!T){Object(i.error)("No `schema` variable");return Object(i.setFailed)("Failed to find `schema` variable")}let[O,w]=T.split(":");if(c&&(y===null||y===void 0?void 0:y.state)=="open"){n=`refs/pull/${y.number}/merge`;a=undefined;Object(i.info)(`EXPERIMENTAL - Using Pull Request ${n}`);const t=(e=y.base)===null||e===void 0?void 0:e.ref;if(t){O=t;Object(i.info)(`EXPERIMENTAL - Using ${t} as base schema ref`)}}if(p){w=T}const _=p&&w.startsWith("http");const[S,N]=yield Promise.all([p?printSchemaFromEndpoint(p):E({ref:O,path:w}),_?printSchemaFromEndpoint(w):E({path:w,ref:n,workspace:a})]);Object(i.info)("Got both sources");let D;let A;let I;if(Object(x.extname)(w.toLowerCase())===".json"){D=p?Object(f.buildSchema)(S):Object(f.buildClientSchema)(JSON.parse(S));A=Object(f.buildClientSchema)(JSON.parse(N));I={old:new f.Source(Object(f.printSchema)(D),p||`${O}:${w}`),new:new f.Source(Object(f.printSchema)(A),w)}}else{I={old:new f.Source(S,p||`${O}:${w}`),new:new f.Source(N,w)};D=produceSchema(I.old);A=produceSchema(I.new)}const j={old:D,new:A};Object(i.info)(`Built both schemas`);Object(i.info)(`Start comparing schemas`);const P=yield helpers_diff_diff({path:w,schemas:j,sources:I});let L=P.conclusion;let F=P.annotations||[];const C=P.changes||[];Object(i.setOutput)("changes",`${C.length||0}`);Object(i.info)(`Changes: ${C.length||0}`);const k=(t=y===null||y===void 0?void 0:y.labels)===null||t===void 0?void 0:t.some(e=>e.name===d);if((l===false||k)&&L===R.Failure){Object(i.info)("FailOnBreaking disabled. Forcing SUCCESS");L=R.Success}if(u===false||_){Object(i.info)(`Anotations are disabled. Skipping annotations...`);F=[]}const U=createSummary(C,100,false);const M=L===R.Failure?"Something is wrong with your schema":"Everything looks good";Object(i.info)(`Conclusion: ${L}`);try{return yield updateCheckRun(m,b,{conclusion:L,output:{title:M,summary:U,annotations:F}})}catch(e){Object(i.error)(e.message||e);const t="Invalid config. Failed to add annotation";yield updateCheckRun(m,b,{conclusion:R.Failure,output:{title:t,summary:t,annotations:[]}});return Object(i.setFailed)(t)}})}function fileLoader({octokit:e,owner:t,repo:n}){const r=`\n query GetFile($repo: String!, $owner: String!, $expression: String!) {\n repository(name: $repo, owner: $owner) {\n object(expression: $expression) {\n ... on Blob {\n isTruncated\n oid\n text\n }\n }\n }\n }\n `;return function loadFile(s){var a,c,u,l,p,f,d,m,h,g,y,v;return Object(o.__awaiter)(this,void 0,void 0,function*(){if(s.workspace){return Object(k.readFileSync)(Object(x.resolve)(s.workspace,s.path),{encoding:"utf-8"})}const o=yield e.graphql(r,{repo:n,owner:t,expression:`${s.ref}:${s.path}`});Object(i.info)(`Query ${s.ref}:${s.path} from ${t}/${n}`);try{if(((c=(a=o===null||o===void 0?void 0:o.repository)===null||a===void 0?void 0:a.object)===null||c===void 0?void 0:c.oid)&&((l=(u=o===null||o===void 0?void 0:o.repository)===null||u===void 0?void 0:u.object)===null||l===void 0?void 0:l.isTruncated)){const r=(f=(p=o===null||o===void 0?void 0:o.repository)===null||p===void 0?void 0:p.object)===null||f===void 0?void 0:f.oid;const i=yield e.git.getBlob({owner:t,repo:n,file_sha:r});if((d=i===null||i===void 0?void 0:i.data)===null||d===void 0?void 0:d.content){return Buffer.from((m=i===null||i===void 0?void 0:i.data)===null||m===void 0?void 0:m.content,"base64").toString("utf-8")}throw new Error("getBlobResponse.data.content is null")}if((g=(h=o===null||o===void 0?void 0:o.repository)===null||h===void 0?void 0:h.object)===null||g===void 0?void 0:g.text){if(((v=(y=o===null||o===void 0?void 0:o.repository)===null||y===void 0?void 0:y.object)===null||v===void 0?void 0:v.isTruncated)===false){return o.repository.object.text}throw new Error("result.repository.object.text is truncated and oid is null")}throw new Error("result.repository.object.text is null")}catch(e){console.log(o);console.error(e);throw new Error(`Failed to load '${s.path}' (ref: ${s.ref})`)}})}}function updateCheckRun(e,t,{conclusion:n,output:r}){return Object(o.__awaiter)(this,void 0,void 0,function*(){Object(i.info)(`Updating check: ${t}`);const{title:s,summary:a,annotations:c=[]}=r;const u=utils_batch(c,50);Object(i.info)(`annotations to be sent: ${c.length}`);yield e.checks.update(Object.assign(Object.assign({check_run_id:t,completed_at:(new Date).toISOString(),status:"completed"},G.context.repo),{conclusion:n,output:{title:s,summary:a}}));try{yield Promise.all(u.map(n=>Object(o.__awaiter)(this,void 0,void 0,function*(){yield e.checks.update(Object.assign(Object.assign({check_run_id:t},G.context.repo),{output:{title:s,summary:a,annotations:n}}));Object(i.info)(`annotations sent (${n.length})`)})))}catch(e){Object(i.error)(`failed to send annotations: ${e}`);throw e}if(n===R.Failure){return Object(i.setFailed)(r.title)}})}function castToBoolean(e,t){if(typeof e==="boolean"){return e}if(e==="true"||e==="false"){return e==="true"}if(typeof t==="boolean"){return t}return true}global.navigator={userAgent:"node.js"};run().catch(e=>{Object(i.setFailed)(e.message||e)})},,,function(e){var t=1e3;var n=t*60;var r=n*60;var i=r*24;var o=i*7;var s=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=i){return Math.round(e/i)+"d"}if(o>=r){return Math.round(e/r)+"h"}if(o>=n){return Math.round(e/n)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=i){return plural(e,o,i,"day")}if(o>=r){return plural(e,o,r,"hour")}if(o>=n){return plural(e,o,n,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+" "+r+(i?"s":"")}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return r.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return r.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return r.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return i.syntaxError}});var r=n(234);var i=n(819);var o=n(635)},,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(35);var i=n(133);var o=n(283);var s=n(946);var a=n(825);var c=n(106);var u=c.validators;function Axios(e){this.defaults=e;this.interceptors={request:new o,response:new o}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=e.transitional;if(t!==undefined){c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},false)}var n=[];var r=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(t){if(typeof t.runWhen==="function"&&t.runWhen(e)===false){return}r=r&&t.synchronous;n.unshift(t.fulfilled,t.rejected)});var i=[];this.interceptors.response.forEach(function pushResponseInterceptors(e){i.push(e.fulfilled,e.rejected)});var o;if(!r){var l=[s,undefined];Array.prototype.unshift.apply(l,n);l=l.concat(i);o=Promise.resolve(e);while(l.length){o=o.then(l.shift(),l.shift())}return o}var p=e;while(n.length){var f=n.shift();var d=n.shift();try{p=f(p)}catch(e){d(e);break}}try{o=s(p)}catch(e){return Promise.reject(e)}while(i.length){o=o.then(i.shift(),i.shift())}return o};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};r.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}});r.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}});e.exports=Axios},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return i.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return i.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return i.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return i.executeSync}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return s.getDirectiveValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return r.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var r=n(691);var i=n(466);var o=n(136);var s=n(740)},,,,function(e,t,n){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(794)}else{e.exports=n(81)}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var r=n(932);var i=n(166);var o=n(466);var s=n(462);function introspectionFromSchema(e,t){const n={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,...t};const a=(0,i.parse)((0,s.getIntrospectionQuery)(n));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,r.invariant)(false);return c.data}},,,,,,,,function(e,t,n){t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}r++;if(e==="%c"){i=r}});t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(486)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var r=n(393);var i=n(947);var o=n(326);var s=n(577);var a=n(234);var c=n(75);const u=2147483647;const l=-2147483648;const p=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let n=t;if(typeof t==="string"&&t!==""){n=Number(t)}if(typeof n!=="number"||!Number.isInteger(n)){throw new a.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`)}if(n>u||nu||eu||te.name===t)}function serializeObject(e){if((0,i.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,i.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var r=n(881);var i=n(234);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const n=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,n)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const n=e.name.value;const r=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of r){var i;const t=e.name.value;const r=(i=e.arguments)!==null&&i!==void 0?i:[];checkArgUniqueness(`${n}.${t}`,r)}return false}function checkArgUniqueness(t,n){const o=(0,r.groupBy)(n,e=>e.name.value);for(const[n,r]of o){if(r.length>1){e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,r.map(e=>e.name)))}}return false}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var r=n(234);function syntaxError(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,undefined,e,[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var r=n(876);var i=n(393);var o=n(932);var s=n(326);var a=n(75);function valueFromAST(e,t,n){if(!e){return}if(e.kind===s.Kind.VARIABLE){const r=e.name.value;if(n==null||n[r]===undefined){return}const i=n[r];if(i===null&&(0,a.isNonNullType)(t)){return}return i}if((0,a.isNonNullType)(t)){if(e.kind===s.Kind.NULL){return}return valueFromAST(e,t.ofType,n)}if(e.kind===s.Kind.NULL){return null}if((0,a.isListType)(t)){const r=t.ofType;if(e.kind===s.Kind.LIST){const t=[];for(const i of e.values){if(isMissingVariable(i,n)){if((0,a.isNonNullType)(r)){return}t.push(null)}else{const e=valueFromAST(i,r,n);if(e===undefined){return}t.push(e)}}return t}const i=valueFromAST(e,r,n);if(i===undefined){return}return[i]}if((0,a.isInputObjectType)(t)){if(e.kind!==s.Kind.OBJECT){return}const i=Object.create(null);const o=(0,r.keyMap)(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=o[e.name];if(!t||isMissingVariable(t.value,n)){if(e.defaultValue!==undefined){i[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const r=valueFromAST(t.value,e.type,n);if(r===undefined){return}i[e.name]=r}return i}if((0,a.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(r===undefined){return}return r}false||(0,o.invariant)(false,"Unexpected input type: "+(0,i.inspect)(t))}function isMissingVariable(e,t){return e.kind===s.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var r=n(876);var i=n(393);var o=n(372);var s=n(932);var a=n(371);var c=n(326);var u=n(123);var l=n(625);var p=n(740);var f=n(742);var d=n(810);var m=n(754);var h=n(134);var g=n(75);var y=n(820);function extendSchema(e,t,n){(0,f.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,a.devAssert)(false,"Must provide valid Document AST.");if((n===null||n===void 0?void 0:n.assumeValid)!==true&&(n===null||n===void 0?void 0:n.assumeValidSDL)!==true){(0,l.assertValidSDLExtension)(t,e)}const r=e.toConfig();const i=extendSchemaImpl(r,t,n);return r===i?e:new f.GraphQLSchema(i)}function extendSchemaImpl(e,t,n){var r,a,l,p;const f=[];const b=Object.create(null);const T=[];let E;const O=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){E=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){O.push(e)}else if((0,u.isTypeDefinitionNode)(e)){f.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const n=b[t];b[t]=n?n.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){T.push(e)}}if(Object.keys(b).length===0&&f.length===0&&T.length===0&&O.length===0&&E==null){return e}const w=Object.create(null);for(const t of e.types){w[t.name]=extendNamedType(t)}for(const e of f){var _;const t=e.name.value;w[t]=(_=v[t])!==null&&_!==void 0?_:buildType(e)}const S={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...E&&getOperationTypes([E]),...getOperationTypes(O)};return{description:(r=E)===null||r===void 0?void 0:(a=r.description)===null||a===void 0?void 0:a.value,...S,types:Object.values(w),directives:[...e.directives.map(replaceDirective),...T.map(buildDirective)],extensions:Object.create(null),astNode:(l=E)!==null&&l!==void 0?l:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(O),assumeValid:(p=n===null||n===void 0?void 0:n.assumeValid)!==null&&p!==void 0?p:false};function replaceType(e){if((0,g.isListType)(e)){return new g.GraphQLList(replaceType(e.ofType))}if((0,g.isNonNullType)(e)){return new g.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return w[e.name]}function replaceDirective(e){const t=e.toConfig();return new h.GraphQLDirective({...t,args:(0,o.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,m.isIntrospectionType)(e)||(0,d.isSpecifiedScalarType)(e)){return e}if((0,g.isScalarType)(e)){return extendScalarType(e)}if((0,g.isObjectType)(e)){return extendObjectType(e)}if((0,g.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,g.isUnionType)(e)){return extendUnionType(e)}if((0,g.isEnumType)(e)){return extendEnumType(e)}if((0,g.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,i.inspect)(e))}function extendInputObjectType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];return new g.GraphQLInputObjectType({...n,fields:()=>({...(0,o.mapValue)(n.fields,e=>({...e,type:replaceType(e.type)})),...buildInputFieldMap(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendEnumType(e){var t;const n=e.toConfig();const r=(t=b[e.name])!==null&&t!==void 0?t:[];return new g.GraphQLEnumType({...n,values:{...n.values,...buildEnumValueMap(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendScalarType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:i}return new g.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendObjectType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];return new g.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(r)],fields:()=>({...(0,o.mapValue)(n.fields,extendField),...buildFieldMap(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendInterfaceType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];return new g.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(r)],fields:()=>({...(0,o.mapValue)(n.fields,extendField),...buildFieldMap(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendUnionType(e){var t;const n=e.toConfig();const r=(t=b[n.name])!==null&&t!==void 0?t:[];return new g.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,o.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const r of e){var n;const e=(n=r.operationTypes)!==null&&n!==void 0?n:[];for(const n of e){t[n.operation]=getNamedType(n.type)}}return t}function getNamedType(e){var t;const n=e.name.value;const r=(t=v[n])!==null&&t!==void 0?t:w[n];if(r===undefined){throw new Error(`Unknown type: "${n}".`)}return r}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new g.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new g.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new h.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const i of e){var n;const e=(n=i.fields)!==null&&n!==void 0?n:[];for(const n of e){var r;t[n.name.value]={type:getWrappedType(n.type),description:(r=n.description)===null||r===void 0?void 0:r.value,args:buildArgumentMap(n.arguments),deprecationReason:getDeprecationReason(n),astNode:n}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const n=Object.create(null);for(const e of t){var r;const t=getWrappedType(e.type);n[e.name.value]={type:t,description:(r=e.description)===null||r===void 0?void 0:r.value,defaultValue:(0,y.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return n}function buildInputFieldMap(e){const t=Object.create(null);for(const i of e){var n;const e=(n=i.fields)!==null&&n!==void 0?n:[];for(const n of e){var r;const e=getWrappedType(n.type);t[n.name.value]={type:e,description:(r=n.description)===null||r===void 0?void 0:r.value,defaultValue:(0,y.valueFromAST)(n.defaultValue,e),deprecationReason:getDeprecationReason(n),astNode:n}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const i of e){var n;const e=(n=i.values)!==null&&n!==void 0?n:[];for(const n of e){var r;t[n.name.value]={description:(r=n.description)===null||r===void 0?void 0:r.value,deprecationReason:getDeprecationReason(n),astNode:n}}}return t}function buildInterfaces(e){return e.flatMap(e=>{var t,n;return(t=(n=e.interfaces)===null||n===void 0?void 0:n.map(getNamedType))!==null&&t!==void 0?t:[]})}function buildUnionTypes(e){return e.flatMap(e=>{var t,n;return(t=(n=e.types)===null||n===void 0?void 0:n.map(getNamedType))!==null&&t!==void 0?t:[]})}function buildType(e){var t;const n=e.name.value;const r=(t=b[n])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var o;const t=[e,...r];return new g.GraphQLObjectType({name:n,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:r})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var a;const t=[e,...r];return new g.GraphQLInterfaceType({name:n,description:(a=e.description)===null||a===void 0?void 0:a.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:r})}case c.Kind.ENUM_TYPE_DEFINITION:{var u;const t=[e,...r];return new g.GraphQLEnumType({name:n,description:(u=e.description)===null||u===void 0?void 0:u.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:r})}case c.Kind.UNION_TYPE_DEFINITION:{var l;const t=[e,...r];return new g.GraphQLUnionType({name:n,description:(l=e.description)===null||l===void 0?void 0:l.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:r})}case c.Kind.SCALAR_TYPE_DEFINITION:{var p;return new g.GraphQLScalarType({name:n,description:(p=e.description)===null||p===void 0?void 0:p.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:r})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var f;const t=[e,...r];return new g.GraphQLInputObjectType({name:n,description:(f=e.description)===null||f===void 0?void 0:f.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:r})}}false||(0,s.invariant)(false,"Unexpected type definition node: "+(0,i.inspect)(e))}}const v=(0,r.keyMap)([...d.specifiedScalarTypes,...m.introspectionTypes],e=>e.name);function getDeprecationReason(e){const t=(0,p.getDirectiveValues)(h.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,p.getDirectiveValues)(h.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}},,function(e,t,n){"use strict";var r=n(35);e.exports=function mergeConfig(e,t){t=t||{};var n={};var i=["url","method","data"];var o=["headers","auth","proxy","params"];var s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var a=["validateStatus"];function getMergedValue(e,t){if(r.isPlainObject(e)&&r.isPlainObject(t)){return r.merge(e,t)}else if(r.isPlainObject(t)){return r.merge({},t)}else if(r.isArray(t)){return t.slice()}return t}function mergeDeepProperties(i){if(!r.isUndefined(t[i])){n[i]=getMergedValue(e[i],t[i])}else if(!r.isUndefined(e[i])){n[i]=getMergedValue(undefined,e[i])}}r.forEach(i,function valueFromConfig2(e){if(!r.isUndefined(t[e])){n[e]=getMergedValue(undefined,t[e])}});r.forEach(o,mergeDeepProperties);r.forEach(s,function defaultToConfig2(i){if(!r.isUndefined(t[i])){n[i]=getMergedValue(undefined,t[i])}else if(!r.isUndefined(e[i])){n[i]=getMergedValue(undefined,e[i])}});r.forEach(a,function merge(r){if(r in t){n[r]=getMergedValue(e[r],t[r])}else if(r in e){n[r]=getMergedValue(undefined,e[r])}});var c=i.concat(o).concat(s).concat(a);var u=Object.keys(e).concat(Object.keys(t)).filter(function filterAxiosKeys(e){return c.indexOf(e)===-1});r.forEach(u,mergeDeepProperties);return n}},function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},,,,,,,,,function(e){e.exports=require("url")},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var r=n(393);var i=n(234);var o=n(156);var s=n(441);var a=n(742);var c=n(754);var u=n(134);var l=n(75);function validateSchema(e){(0,a.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const n=t.getErrors();e.__validationErrors=n;return n}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map(e=>e.message).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,n))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const n=t.getQueryType();if(!n){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,l.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,(i=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&i!==void 0?i:n.astNode)}const s=t.getMutationType();if(s&&!(0,l.isObjectType)(s)){var a;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,r.inspect)(s)}.`,(a=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:s.astNode)}const c=t.getSubscriptionType();if(c&&!(0,l.isObjectType)(c)){var u;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,r.inspect)(c)}.`,(u=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:c.astNode)}}function getOperationTypeNode(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]}).find(e=>e.operation===t))===null||n===void 0?void 0:n.type}function validateDirectives(e){for(const n of e.schema.getDirectives()){if(!(0,u.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,n===null||n===void 0?void 0:n.astNode);continue}validateName(e,n);for(const i of n.args){validateName(e,i);if(!(0,l.isInputType)(i.type)){e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type `+`but got: ${(0,r.inspect)(i.type)}.`,i.astNode)}if((0,l.isRequiredArgument)(i)&&i.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(t=i.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const n=e.schema.getTypeMap();for(const i of Object.values(n)){if(!(0,l.isNamedType)(i)){e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode);continue}if(!(0,c.isIntrospectionType)(i)){validateName(e,i)}if((0,l.isObjectType)(i)){validateFields(e,i);validateInterfaces(e,i)}else if((0,l.isInterfaceType)(i)){validateFields(e,i);validateInterfaces(e,i)}else if((0,l.isUnionType)(i)){validateUnionMembers(e,i)}else if((0,l.isEnumType)(i)){validateEnumValues(e,i)}else if((0,l.isInputObjectType)(i)){validateInputFields(e,i);t(i)}}}function validateFields(e,t){const n=Object.values(t.getFields());if(n.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const a of n){validateName(e,a);if(!(0,l.isOutputType)(a.type)){var i;e.reportError(`The type of ${t.name}.${a.name} must be Output Type `+`but got: ${(0,r.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}for(const n of a.args){const i=n.name;validateName(e,n);if(!(0,l.isInputType)(n.type)){var o;e.reportError(`The type of ${t.name}.${a.name}(${i}:) must be Input `+`Type but got: ${(0,r.inspect)(n.type)}.`,(o=n.astNode)===null||o===void 0?void 0:o.type)}if((0,l.isRequiredArgument)(n)&&n.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${a.name}(${i}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(n.astNode),(s=n.astNode)===null||s===void 0?void 0:s.type])}}}}function validateInterfaces(e,t){const n=Object.create(null);for(const i of t.getInterfaces()){if(!(0,l.isInterfaceType)(i)){e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,r.inspect)(i)}.`,getAllImplementsInterfaceNodes(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,i));continue}if(n[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,getAllImplementsInterfaceNodes(t,i));continue}n[i.name]=true;validateTypeImplementsAncestors(e,t,i);validateTypeImplementsInterface(e,t,i)}}function validateTypeImplementsInterface(e,t,n){const i=t.getFields();for(const p of Object.values(n.getFields())){const f=p.name;const d=i[f];if(!d){e.reportError(`Interface field ${n.name}.${f} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,s.isTypeSubTypeOf)(e.schema,d.type,p.type)){var o,a;e.reportError(`Interface field ${n.name}.${f} expects type `+`${(0,r.inspect)(p.type)} but ${t.name}.${f} `+`is type ${(0,r.inspect)(d.type)}.`,[(o=p.astNode)===null||o===void 0?void 0:o.type,(a=d.astNode)===null||a===void 0?void 0:a.type])}for(const i of p.args){const o=i.name;const a=d.args.find(e=>e.name===o);if(!a){e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expected but ${t.name}.${f} does not provide it.`,[i.astNode,d.astNode]);continue}if(!(0,s.isEqualType)(i.type,a.type)){var c,u;e.reportError(`Interface field argument ${n.name}.${f}(${o}:) `+`expects type ${(0,r.inspect)(i.type)} but `+`${t.name}.${f}(${o}:) is type `+`${(0,r.inspect)(a.type)}.`,[(c=i.astNode)===null||c===void 0?void 0:c.type,(u=a.astNode)===null||u===void 0?void 0:u.type])}}for(const r of d.args){const i=r.name;const o=p.args.find(e=>e.name===i);if(!o&&(0,l.isRequiredArgument)(r)){e.reportError(`Object field ${t.name}.${f} includes required argument ${i} that is missing from the Interface field ${n.name}.${f}.`,[r.astNode,p.astNode])}}}}function validateTypeImplementsAncestors(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces()){if(!r.includes(i)){e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...getAllImplementsInterfaceNodes(n,i),...getAllImplementsInterfaceNodes(t,n)])}}}function validateUnionMembers(e,t){const n=t.getTypes();if(n.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const i=Object.create(null);for(const o of n){if(i[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}i[o.name]=true;if(!(0,l.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,r.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const n=t.getValues();if(n.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of n){validateName(e,t)}}function validateInputFields(e,t){const n=Object.values(t.getFields());if(n.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const s of n){validateName(e,s);if(!(0,l.isInputType)(s.type)){var i;e.reportError(`The type of ${t.name}.${s.name} must be Input Type `+`but got: ${(0,r.inspect)(s.type)}.`,(i=s.astNode)===null||i===void 0?void 0:i.type)}if((0,l.isRequiredInputField)(s)&&s.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(o=s.astNode)===null||o===void 0?void 0:o.type])}}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const n=[];const r=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(i){if(t[i.name]){return}t[i.name]=true;r[i.name]=n.length;const o=Object.values(i.getFields());for(const t of o){if((0,l.isNonNullType)(t.type)&&(0,l.isInputObjectType)(t.type.ofType)){const i=t.type.ofType;const o=r[i.name];n.push(t);if(o===undefined){detectCycleRecursive(i)}else{const t=n.slice(o);const r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${i.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}}r[i.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:n,extensionASTNodes:r}=e;const i=n!=null?[n,...r]:r;return i.flatMap(e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]}).filter(e=>e.name.value===t.name)}function getUnionMemberTypeNodes(e,t){const{astNode:n,extensionASTNodes:r}=e;const i=n!=null?[n,...r]:r;return i.flatMap(e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]}).filter(e=>e.name.value===t)}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find(e=>e.name.value===u.GraphQLDeprecatedDirective.name)}},,,,function(e){"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var n,r,i,o;if(t){o=Object.keys(t);for(n=0,r=o.length;n=55296&&n<=56319&&t+1=56320&&r<=57343){return(n-55296)*1024+r-56320+65536}}return n}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var U=1,G=2,$=3,M=4,V=5;function chooseScalarStyle(e,t,n,r,i,o,s,a){var c;var u=0;var p=null;var f=false;var d=false;var m=r!==-1;var h=-1;var g=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||s){for(c=0;c=65536?c+=2:c++){u=codePointAt(e,c);if(!isPrintable(u)){return V}g=g&&isPlainSafe(u,p,a);p=u}}else{for(c=0;c=65536?c+=2:c++){u=codePointAt(e,c);if(u===l){f=true;if(m){d=d||c-h-1>r&&e[h+1]!==" ";h=c}}else if(!isPrintable(u)){return V}g=g&&isPlainSafe(u,p,a);p=u}d=d||m&&(c-h-1>r&&e[h+1]!==" ")}if(!f&&!d){if(g&&!s&&!i(e)){return U}return o===x?V:G}if(n>9&&needIndentIndicator(e)){return V}if(!s){return d?M:$}return o===x?V:G}function writeScalar(e,t,n,r,o){e.dump=function(){if(t.length===0){return e.quotingType===x?'""':"''"}if(!e.noCompatMode){if(F.indexOf(t)!==-1||C.test(t)){return e.quotingType===x?'"'+t+'"':"'"+t+"'"}}var s=e.indent*Math.max(1,n);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var c=r||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!r,o)){case U:return t;case G:return"'"+t.replace(/'/g,"''")+"'";case $:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,s));case M:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),s));case V:return'"'+escapeString(t,a)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):"";var r=e[e.length-1]==="\n";var i=r&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":r?"":"-";return n+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var n=/(\n+)([^\n]*)/g;var r=function(){var r=e.indexOf("\n");r=r!==-1?r:e.length;n.lastIndex=r;return foldLine(e.slice(0,r),t)}();var i=e[0]==="\n"||e[0]===" ";var o;var s;while(s=n.exec(e)){var a=s[1],c=s[2];o=c[0]===" ";r+=a+(!i&&!o&&c!==""?"\n":"")+foldLine(c,t);i=o}return r}function foldLine(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var r;var i=0,o,s=0,a=0;var c="";while(r=n.exec(e)){a=r.index;if(a-i>t){o=s>i?s:a;c+="\n"+e.slice(i,o);i=o+1}s=a}c+="\n";if(e.length-i>t&&s>i){c+=e.slice(i,s)+"\n"+e.slice(s+1)}else{c+=e.slice(i)}return c.slice(1)}function escapeString(e){var t="";var n=0;var r;for(var i=0;i=65536?i+=2:i++){n=codePointAt(e,i);r=L[n];if(!r&&isPrintable(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=r||encodeHex(n)}}return t}function writeFlowSequence(e,t,n){var r="",i=e.tag,o,s,a;for(o=0,s=n.length;o1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,u,false,false)){continue}l+=e.dump;r+=l}e.tag=i;e.dump="{"+r+"}"}function writeBlockMapping(e,t,n,r){var o="",s=e.tag,a=Object.keys(n),c,u,p,f,d,m;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(c=0,u=a.length;c1024;if(d){if(e.dump&&l===e.dump.charCodeAt(0)){m+="?"}else{m+="? "}}m+=e.dump;if(d){m+=generateNextLine(e,t)}if(!writeNode(e,t+1,f,true,d)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){m+=":"}else{m+=": "}m+=e.dump;o+=m}e.tag=s;e.dump=o||"{}"}function detectType(e,t,n){var r,o,c,u,l,p;o=n?e.explicitTypes:e.implicitTypes;for(c=0,u=o.length;c tag resolver accepts not "'+p+'" style')}e.dump=r}return true}}return false}function writeNode(e,t,n,r,o,a,c){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var u=s.call(e.dump);var l=r;var p;if(r){r=e.flowLevel<0||e.flowLevel>t}var f=u==="[object Object]"||u==="[object Array]",d,m;if(f){d=e.duplicates.indexOf(n);m=d!==-1}if(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0){o=false}if(m&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(f&&m&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(u==="[object Object]"){if(r&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(m){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,t,e.dump);if(m){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object Array]"){if(r&&e.dump.length!==0){if(e.noArrayIndent&&!c&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(m){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,t,e.dump);if(m){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,l)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){p="!"+p}else if(p.slice(0,18)==="tag:yaml.org,2002:"){p="!!"+p.slice(18)}else{p="!<"+p+">"}e.dump=p+" "+e.dump}}return true}function getDuplicateReferences(e,t){var n=[],r=[],i,o;inspectNode(e,n,r);for(i=0,o=r.length;i64)continue;if(t<0)return false;r+=6}return r%8===0}function constructYamlBinary(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,s=i,a=0,c=[];for(t=0;t>16&255);c.push(a>>8&255);c.push(a&255)}a=a<<6|s.indexOf(r.charAt(t))}n=o%4*6;if(n===0){c.push(a>>16&255);c.push(a>>8&255);c.push(a&255)}else if(n===18){c.push(a>>10&255);c.push(a>>2&255)}else if(n===12){c.push(a>>4&255)}return new Uint8Array(c)}function representYamlBinary(e){var t="",n=0,r,o,s=e.length,a=i;for(r=0;r>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}n=(n<<8)+e[r]}o=s%3;if(o===0){t+=a[n>>18&63];t+=a[n>>12&63];t+=a[n>>6&63];t+=a[n&63]}else if(o===2){t+=a[n>>10&63];t+=a[n>>4&63];t+=a[n<<2&63];t+=a[64]}else if(o===1){t+=a[n>>2&63];t+=a[n<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var r=n(326);var i=n(386);function separateOperations(e){const t=[];const n=Object.create(null);for(const i of e.definitions){switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=collectDependencies(i.selectionSet);break}}const i=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,n,e)}const s=o.name?o.name.value:"";i[s]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter(e=>e===o||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return i}function collectTransitiveDependencies(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==undefined){for(const n of r){collectTransitiveDependencies(e,t,n)}}}}function collectDependencies(e){const t=[];(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},,function(e,t,n){e.exports=n(141)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,n){const r=Object.create(null);for(const i of e){r[t(i)]=n(i)}return r}},,,,,,,function(e,t,n){"use strict";var r=n(35);e.exports=r.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t));if(r.isNumber(n)){a.push("expires="+new Date(n).toGMTString())}if(r.isString(i)){a.push("path="+i)}if(r.isString(o)){a.push("domain="+o)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},,,function(e){e.exports=require("tty")},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const n=5;function didYouMean(e,t){const[r,i]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(r){o+=r+" "}const s=i.map(e=>`"${e}"`);switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}const a=s.slice(0,n);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const n=Object.create(null);for(const r of e){n[t(r)]=r}return n}},,,function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const n=new Map;for(const r of e){const e=t(r);const i=n.get(e);if(i===undefined){n.set(e,[r])}else{i.push(r)}}return n}},function(e,t,n){"use strict";var r=n(755);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var r=n(393);var i=n(234);var o=n(75);function ScalarLeafsRule(e){return{Field(t){const n=e.getType();const s=t.selectionSet;if(n){if((0,o.isLeafType)((0,o.getNamedType)(n))){if(s){const o=t.name.value;const a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,s))}}else if(!s){const o=t.name.value;const s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${s}" must have a selection of subfields. Did you mean "${o} { ... }"?`,t))}}}}}},,function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(3);var i=n(796);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,n)=>{t[n.toLowerCase()]=e[n];return t},{})}function mergeDeep(e,t){const n=Object.assign({},e);Object.keys(t).forEach(i=>{if(r.isPlainObject(t[i])){if(!(i in e))Object.assign(n,{[i]:t[i]});else n[i]=mergeDeep(e[i],t[i])}else{Object.assign(n,{[i]:t[i]})}});return n}function merge(e,t,n){if(typeof t==="string"){let[e,r]=t.split(" ");n=Object.assign(r?{method:e,url:r}:{url:e},n)}else{n=Object.assign({},t)}n.headers=lowercaseKeys(n.headers);const r=mergeDeep(e||{},n);if(e&&e.mediaType.previews.length){r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)}r.mediaType.previews=r.mediaType.previews.map(e=>e.replace(/-preview/,""));return r}function addQueryParameters(e,t){const n=/\?/.test(e)?"&":"?";const r=Object.keys(t);if(r.length===0){return e}return e+n+r.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const o=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(o);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>{t[n]=e[n];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,n){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(n){return encodeUnreserved(n)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,n,r){var i=e[n],o=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(r&&r!=="*"){i=i.substring(0,parseInt(r,10))}o.push(encodeValue(t,i,isKeyOperator(t)?n:""))}else{if(r==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){o.push(encodeValue(t,e,isKeyOperator(t)?n:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){o.push(encodeValue(t,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(n){e.push(encodeValue(t,n))})}else{Object.keys(i).forEach(function(n){if(isDefined(i[n])){e.push(encodeUnreserved(n));e.push(encodeValue(t,i[n].toString()))}})}if(isKeyOperator(t)){o.push(encodeUnreserved(n)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){o.push(encodeUnreserved(n))}}else if(i===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(n)+"=")}else if(i===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var n=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e="";const i=[];if(n.indexOf(r.charAt(0))!==-1){e=r.charAt(0);r=r.substr(1)}r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(getValues(t,e,r[1],r[2]||r[3]))});if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(i.length!==0?e:"")+i.join(o)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let t=e.method.toUpperCase();let n=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let r=Object.assign({},e.headers);let i;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const s=extractUrlVariableNames(n);n=parseUrl(n).expand(o);if(!/^http/.test(n)){n=e.baseUrl+n}const a=Object.keys(e).filter(e=>s.includes(e)).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(r.accept);if(!u){if(e.mediaType.format){r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.accept=t.concat(e.mediaType.previews).map(t=>{const n=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${n}`}).join(",")}}if(["GET","HEAD"].includes(t)){n=addQueryParameters(n,c)}else{if("data"in c){i=c.data}else{if(Object.keys(c).length){i=c}else{r["content-length"]=0}}}if(!r["content-type"]&&typeof i!=="undefined"){r["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:n,headers:r},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,n){return parse(merge(e,t,n))}function withDefaults(e,t){const n=merge(e,t);const r=endpointWithDefaults.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:withDefaults.bind(null,n),merge:merge.bind(null,n),parse:parse})}const s="6.0.6";const a=`octokit-endpoint.js/${s} ${i.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const u=withDefaults(null,c);t.endpoint=u},,,,,,,,,,,function(e){e.exports=require("zlib")},,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map(e=>typeof e==="number"?"["+e.toString()+"]":"."+e).join("")}},,,,,,,,,function(e,t,n){"use strict";var r=n(755);var i=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],n,r,s,a,c,u=e;for(n=0,r=u.length;ne.trim().toUpperCase()).filter(e=>e)){if(r.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},,,,,,,,,,function(e,t,n){"use strict";var r=n(590);var i=n(887);e.exports=function buildFullPath(e,t){if(e&&!r(t)){return i(e,t)}return t}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var r=n(326);var i=n(134);var o=n(75);var s=n(72);var a=n(740);function collectFields(e,t,n,r,i){const o=new Map;collectFieldsImpl(e,t,n,r,i,o,new Set);return o}function collectSubfields(e,t,n,r,i){const o=new Map;const s=new Set;for(const a of i){if(a.selectionSet){collectFieldsImpl(e,t,n,r,a.selectionSet,o,s)}}return o}function collectFieldsImpl(e,t,n,i,o,s,a){for(const c of o.selections){switch(c.kind){case r.Kind.FIELD:{if(!shouldIncludeNode(n,c)){continue}const e=getFieldEntryKey(c);const t=s.get(e);if(t!==undefined){t.push(c)}else{s.set(e,[c])}break}case r.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(n,c)||!doesFragmentConditionMatch(e,c,i)){continue}collectFieldsImpl(e,t,n,i,c.selectionSet,s,a);break}case r.Kind.FRAGMENT_SPREAD:{const r=c.name.value;if(a.has(r)||!shouldIncludeNode(n,c)){continue}a.add(r);const o=t[r];if(!o||!doesFragmentConditionMatch(e,o,i)){continue}collectFieldsImpl(e,t,n,i,o.selectionSet,s,a);break}}}}function shouldIncludeNode(e,t){const n=(0,a.getDirectiveValues)(i.GraphQLSkipDirective,t,e);if((n===null||n===void 0?void 0:n.if)===true){return false}const r=(0,a.getDirectiveValues)(i.GraphQLIncludeDirective,t,e);if((r===null||r===void 0?void 0:r.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,n){const r=t.typeCondition;if(!r){return true}const i=(0,s.typeFromAST)(e,r);if(i===n){return true}if((0,o.isAbstractType)(i)){return e.isSubType(i,n)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var r=n(881);var i=n(234);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var n;const o=(n=t.variableDefinitions)!==null&&n!==void 0?n:[];const s=(0,r.groupBy)(o,e=>e.variable.name.value);for(const[t,n]of s){if(n.length>1){e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,n.map(e=>e.variable.name)))}}}}}},,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var r=n(892);var i=n(796);var o=n(847);var s=_interopDefault(n(724));var a=n(463);const c="5.4.9";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(o.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let n;let r;const i=e.request&&e.request.fetch||s;return i(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(i=>{r=i.url;n=i.status;for(const e of i.headers){t[e[0]]=e[1]}if(n===204||n===205){return}if(e.method==="HEAD"){if(n<400){return}throw new a.RequestError(i.statusText,n,{headers:t,request:e})}if(n===304){throw new a.RequestError("Not modified",n,{headers:t,request:e})}if(n>=400){return i.text().then(r=>{const i=new a.RequestError(r,n,{headers:t,request:e});try{let e=JSON.parse(i.message);Object.assign(i,e);let t=e.errors;i.message=i.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw i})}const o=i.headers.get("content-type");if(/application\/json/.test(o)){return i.json()}if(!o||/^text\/|charset=utf-8$/.test(o)){return i.text()}return getBufferResponse(i)}).then(e=>{return{status:n,url:r,headers:t,data:e}}).catch(n=>{if(n instanceof a.RequestError){throw n}throw new a.RequestError(n.message,500,{headers:t,request:e})})}function withDefaults(e,t){const n=e.defaults(t);const r=function(e,t){const r=n.merge(e,t);if(!r.request||!r.request.hook){return fetchWrapper(n.parse(r))}const i=(e,t)=>{return fetchWrapper(n.parse(n.merge(e,t)))};Object.assign(i,{endpoint:n,defaults:withDefaults.bind(null,n)});return r.request.hook(i,r)};return Object.assign(r,{endpoint:n,defaults:withDefaults.bind(null,n)})}const u=withDefaults(r.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${i.getUserAgent()}`}});t.request=u}],function(e){"use strict";!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){var t=Object.prototype.hasOwnProperty;e.d=function(e,n,r){if(!t.call(e,n)){Object.defineProperty(e,n,{enumerable:true,get:r})}}}();!function(){e.t=function(t,n){if(n&1)t=this(t);if(n&8)return t;if(n&4&&typeof t==="object"&&t&&t.__esModule)return t;var r=Object.create(null);e.r(r);Object.defineProperty(r,"default",{enumerable:true,value:t});if(n&2&&typeof t!="string")for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r}}();!function(){e.n=function(t){var n=t&&t.__esModule?function getDefault(){return t["default"]}:function getModuleExports(){return t};e.d(n,"a",n);return n}}()}); \ No newline at end of file