Skip to content

Instantly share code, notes, and snippets.

@knowthen
Created June 29, 2018 22:25
Show Gist options
  • Save knowthen/fb61318f0df810abf9838e70de530f5a to your computer and use it in GitHub Desktop.
Save knowthen/fb61318f0df810abf9838e70de530f5a to your computer and use it in GitHub Desktop.
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({65:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.visit=n,exports.visitInParallel=r,exports.visitWithTypeInfo=a,exports.getVisitFn=o;var e=exports.QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue"],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:["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","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"]},i=exports.BREAK={};function n(n,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=void 0,l=Array.isArray(n),f=[n],p=-1,v=[],d=void 0,c=void 0,u=void 0,y=[],m=[],g=n;do{var D=++p===f.length,h=D&&0!==v.length;if(D){if(c=0===m.length?void 0:y[y.length-1],d=u,u=m.pop(),h){if(l)d=d.slice();else{var T={};for(var x in d)d.hasOwnProperty(x)&&(T[x]=d[x]);d=T}for(var V=0,b=0;b<v.length;b++){var S=v[b][0],A=v[b][1];l&&(S-=V),l&&null===A?(d.splice(S,1),V++):d[S]=A}}p=s.index,f=s.keys,v=s.edits,l=s.inArray,s=s.prev}else{if(c=u?l?p:f[p]:void 0,null==(d=u?u[c]:g))continue;u&&y.push(c)}var E=void 0;if(!Array.isArray(d)){if(!t(d))throw new Error("Invalid AST Node: "+JSON.stringify(d));var O=o(r,d.kind,D);if(O){if((E=O.call(r,d,c,u,y,m))===i)break;if(!1===E){if(!D){y.pop();continue}}else if(void 0!==E&&(v.push([c,E]),!D)){if(!t(E)){y.pop();continue}d=E}}}void 0===E&&h&&v.push([c,d]),D?y.pop():(s={inArray:l,index:p,keys:f,edits:v,prev:s},f=(l=Array.isArray(d))?d:a[d.kind]||[],p=-1,v=[],u&&m.push(u),u=d)}while(void 0!==s);return 0!==v.length&&(g=v[v.length-1][1]),g}function t(e){return Boolean(e&&"string"==typeof e.kind)}function r(e){var n=new Array(e.length);return{enter:function(t){for(var r=0;r<e.length;r++)if(!n[r]){var a=o(e[r],t.kind,!1);if(a){var s=a.apply(e[r],arguments);if(!1===s)n[r]=t;else if(s===i)n[r]=i;else if(void 0!==s)return s}}},leave:function(t){for(var r=0;r<e.length;r++)if(n[r])n[r]===t&&(n[r]=null);else{var a=o(e[r],t.kind,!0);if(a){var s=a.apply(e[r],arguments);if(s===i)n[r]=i;else if(void 0!==s&&!1!==s)return s}}}}}function a(e,i){return{enter:function(n){e.enter(n);var r=o(i,n.kind,!1);if(r){var a=r.apply(i,arguments);return void 0!==a&&(e.leave(n),t(a)&&e.enter(a)),a}},leave:function(n){var t=o(i,n.kind,!0),r=void 0;return t&&(r=t.apply(i,arguments)),e.leave(n),r}}}function o(e,i,n){var t=e[i];if(t){if(!n&&"function"==typeof t)return t;var r=n?t.leave:t.enter;if("function"==typeof r)return r}else{var a=n?e.leave:e.enter;if(a){if("function"==typeof a)return a;var o=a[i];if("function"==typeof o)return o}}}
},{}],25:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.print=n;var e=require("./visitor");function n(n){return(0,e.visit)(n,{leave:t})}var t={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return r(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var n=e.operation,t=e.name,i=a("(",r(e.variableDefinitions,", "),")"),u=r(e.directives," "),o=e.selectionSet;return t||u||i||"query"!==n?r([n,r([t,i]),u,o]," "):o},VariableDefinition:function(e){return e.variable+": "+e.type+a(" = ",e.defaultValue)},SelectionSet:function(e){return u(e.selections)},Field:function(e){var n=e.alias,t=e.name,i=e.arguments,u=e.directives,o=e.selectionSet;return r([a("",n,": ")+t+a("(",r(i,", "),")"),r(u," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+a(" ",r(e.directives," "))},InlineFragment:function(e){var n=e.typeCondition,t=e.directives,i=e.selectionSet;return r(["...",a("on ",n),r(t," "),i]," ")},FragmentDefinition:function(e){var n=e.name,t=e.typeCondition,i=e.variableDefinitions,u=e.directives,o=e.selectionSet;return"fragment "+n+a("(",r(i,", "),")")+" on "+t+" "+a("",r(u," ")," ")+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,n){var t=e.value;return e.block?c(t,"description"===n):JSON.stringify(t)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+r(e.values,", ")+"]"},ObjectValue:function(e){return"{"+r(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+a("(",r(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var n=e.directives,t=e.operationTypes;return r(["schema",r(n," "),u(t)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:i(function(e){return r(["scalar",e.name,r(e.directives," ")]," ")}),ObjectTypeDefinition:i(function(e){var n=e.name,t=e.interfaces,i=e.directives,o=e.fields;return r(["type",n,a("implements ",r(t," & ")),r(i," "),u(o)]," ")}),FieldDefinition:i(function(e){var n=e.name,t=e.arguments,i=e.type,u=e.directives;return n+a("(",r(t,", "),")")+": "+i+a(" ",r(u," "))}),InputValueDefinition:i(function(e){var n=e.name,t=e.type,i=e.defaultValue,u=e.directives;return r([n+": "+t,a("= ",i),r(u," ")]," ")}),InterfaceTypeDefinition:i(function(e){var n=e.name,t=e.directives,i=e.fields;return r(["interface",n,r(t," "),u(i)]," ")}),UnionTypeDefinition:i(function(e){var n=e.name,t=e.directives,i=e.types;return r(["union",n,r(t," "),i&&0!==i.length?"= "+r(i," | "):""]," ")}),EnumTypeDefinition:i(function(e){var n=e.name,t=e.directives,i=e.values;return r(["enum",n,r(t," "),u(i)]," ")}),EnumValueDefinition:i(function(e){return r([e.name,r(e.directives," ")]," ")}),InputObjectTypeDefinition:i(function(e){var n=e.name,t=e.directives,i=e.fields;return r(["input",n,r(t," "),u(i)]," ")}),ScalarTypeExtension:function(e){return r(["extend scalar",e.name,r(e.directives," ")]," ")},ObjectTypeExtension:function(e){var n=e.name,t=e.interfaces,i=e.directives,o=e.fields;return r(["extend type",n,a("implements ",r(t," & ")),r(i," "),u(o)]," ")},InterfaceTypeExtension:function(e){var n=e.name,t=e.directives,i=e.fields;return r(["extend interface",n,r(t," "),u(i)]," ")},UnionTypeExtension:function(e){var n=e.name,t=e.directives,i=e.types;return r(["extend union",n,r(t," "),i&&0!==i.length?"= "+r(i," | "):""]," ")},EnumTypeExtension:function(e){var n=e.name,t=e.directives,i=e.values;return r(["extend enum",n,r(t," "),u(i)]," ")},InputObjectTypeExtension:function(e){var n=e.name,t=e.directives,i=e.fields;return r(["extend input",n,r(t," "),u(i)]," ")},DirectiveDefinition:i(function(e){var n=e.name,t=e.arguments,i=e.locations;return"directive @"+n+a("(",r(t,", "),")")+" on "+r(i," | ")})};function i(e){return function(n){return r([n.description,e(n)],"\n")}}function r(e,n){return e?e.filter(function(e){return e}).join(n||""):""}function u(e){return e&&0!==e.length?"{\n"+o(r(e,"\n"))+"\n}":""}function a(e,n,t){return n?e+n+(t||""):""}function o(e){return e&&" "+e.replace(/\n/g,"\n ")}function c(e,n){var t=e.replace(/"""/g,'\\"""');return" "!==e[0]&&"\t"!==e[0]||-1!==e.indexOf("\n")?'"""\n'+(n?t:o(t))+'\n"""':'"""'+t.replace(/"$/,'"\n')+'"""'}
},{"./visitor":65}],115:[function(require,module,exports) {
"use strict";module.exports=function(r,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var e,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(e=t.cmp,function(r){return function(t,n){var i={key:t,value:r[t]},u={key:n,value:r[n]};return e(i,u)}}),u=[];return function r(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var e,o;if(Array.isArray(t)){for(o="[",e=0;e<t.length;e++)e&&(o+=","),o+=r(t[e])||"null";return o+"]"}if(null===t)return"null";if(-1!==u.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var f=u.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(o="",e=0;e<c.length;e++){var l=c[e],y=r(t[l]);y&&(o&&(o+=","),o+=JSON.stringify(l)+":"+y)}return u.splice(f,1),"{"+o+"}"}}(r)};
},{}],85:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isScalarValue=u,exports.isNumberValue=a,exports.valueToObjectRepresentation=p,exports.storeKeyNameFromField=g,exports.getStoreKeyName=k,exports.argumentsObjectFromField=y,exports.resultKeyNameFromField=b,exports.isField=h,exports.isInlineFragment=x,exports.isIdValue=F,exports.toIdValue=O,exports.isJsonValue=j,exports.valueFromNode=E;var e=require("fast-json-stable-stringify"),n=t(e);function t(e){return e&&e.__esModule?e:{default:e}}var r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var u in n=arguments[t])Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u]);return e};function u(e){return["StringValue","BooleanValue","EnumValue"].indexOf(e.kind)>-1}function a(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1}function i(e){return"StringValue"===e.kind}function o(e){return"BooleanValue"===e.kind}function l(e){return"IntValue"===e.kind}function s(e){return"FloatValue"===e.kind}function c(e){return"Variable"===e.kind}function f(e){return"ObjectValue"===e.kind}function v(e){return"ListValue"===e.kind}function d(e){return"EnumValue"===e.kind}function m(e){return"NullValue"===e.kind}function p(e,n,t,r){if(l(t)||s(t))e[n.value]=Number(t.value);else if(o(t)||i(t))e[n.value]=t.value;else if(f(t)){var u={};t.fields.map(function(e){return p(u,e.name,e.value,r)}),e[n.value]=u}else if(c(t)){var a=(r||{})[t.name.value];e[n.value]=a}else if(v(t))e[n.value]=t.values.map(function(e){var t={};return p(t,n,e,r),t[n.value]});else if(d(t))e[n.value]=t.value;else{if(!m(t))throw new Error('The inline argument "'+n.value+'" of kind "'+t.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.');e[n.value]=null}}function g(e,n){var t=null;e.directives&&(t={},e.directives.forEach(function(e){t[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var u=r.name,a=r.value;return p(t[e.name.value],u,a,n)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var t=e.name,u=e.value;return p(r,t,u,n)})),k(e.name.value,r,t)}var V=["connection","include","skip","client","rest","export"];function k(e,t,r){if(r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var u=r.connection.filter?r.connection.filter:[];u.sort();var a=t,i={};return u.forEach(function(e){i[e]=a[e]}),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}var o=e;if(t){var l=(0,n.default)(t);o+="("+l+")"}return r&&Object.keys(r).forEach(function(e){-1===V.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@"+e+"("+JSON.stringify(r[e])+")":o+="@"+e)}),o}function y(e,n){if(e.arguments&&e.arguments.length){var t={};return e.arguments.forEach(function(e){var r=e.name,u=e.value;return p(t,r,u,n)}),t}return null}function b(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function x(e){return"InlineFragment"===e.kind}function F(e){return e&&"id"===e.type}function O(e,n){return void 0===n&&(n=!1),r({type:"id",generated:n},"string"==typeof e?{id:e,typename:void 0}:e)}function j(e){return null!=e&&"object"==typeof e&&"json"===e.type}function N(e){throw new Error("Variable nodes are not supported by valueFromNode")}function E(e,n){switch(void 0===n&&(n=N),e.kind){case"Variable":return n(e);case"NullValue":return null;case"IntValue":return parseInt(e.value,10);case"FloatValue":return parseFloat(e.value);case"ListValue":return e.values.map(function(e){return E(e,n)});case"ObjectValue":for(var t={},r=0,u=e.fields;r<u.length;r++){var a=u[r];t[a.name.value]=E(a.value,n)}return t;default:return e.value}}
},{"fast-json-stable-stringify":115}],81:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDirectiveInfoFromField=r,exports.shouldInclude=t,exports.flattenSelections=n,exports.getDirectiveNames=i,exports.hasDirectives=o;var e=require("./storeUtils");function r(r,t){if(r.directives&&r.directives.length){var n={};return r.directives.forEach(function(r){n[r.name.value]=(0,e.argumentsObjectFromField)(r,t)}),n}return null}function t(e,r){if(void 0===r&&(r={}),!e.directives)return!0;var t=!0;return e.directives.forEach(function(e){if("skip"===e.name.value||"include"===e.name.value){var n=e.arguments||[],i=e.name.value;if(1!==n.length)throw new Error("Incorrect number of arguments for the @"+i+" directive.");var o=n[0];if(!o.name||"if"!==o.name.value)throw new Error("Invalid argument for the @"+i+" directive.");var c=n[0].value,u=!1;if(c&&"BooleanValue"===c.kind)u=c.value;else{if("Variable"!==c.kind)throw new Error("Argument for the @"+i+" directive must be a variable or a boolean value.");if(void 0===(u=r[c.name.value]))throw new Error("Invalid variable referenced in @"+i+" directive.")}"skip"===i&&(u=!u),u||(t=!1)}}),t}function n(e){return e.selectionSet&&e.selectionSet.selections.length>0?[e].concat(e.selectionSet.selections.map(function(e){return[e].concat(n(e))}).reduce(function(e,r){return e.concat(r)},[])):[e]}function i(e){return e.definitions.filter(function(e){return e.selectionSet&&e.selectionSet.selections}).map(function(e){return n(e)}).reduce(function(e,r){return e.concat(r)},[]).filter(function(e){return e.directives&&e.directives.length>0}).map(function(e){return e.directives}).reduce(function(e,r){return e.concat(r)},[]).map(function(e){return e.name.value})}function o(e,r){return i(r).some(function(r){return e.indexOf(r)>-1})}
},{"./storeUtils":85}],82:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFragmentQueryDocument=n;var e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e};function n(n,t){var r=t,i=[];if(n.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new Error("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed.");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r){if(1!==i.length)throw new Error("Found "+i.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.");r=i[0].name.value}return e({},n,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}].concat(n.definitions)})}
},{}],86:[function(require,module,exports) {
"use strict";function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){null!=t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.assign=e;
},{}],83:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getMutationDefinition=e,exports.checkDocument=t,exports.getOperationDefinition=r,exports.getOperationDefinitionOrDie=o,exports.getOperationName=a,exports.getFragmentDefinitions=u,exports.getQueryDefinition=f,exports.getFragmentDefinition=s,exports.getMainDefinition=p,exports.createFragmentMap=c,exports.getDefaultValues=l,exports.variablesInOperation=d;var n=require("./util/assign"),i=require("./storeUtils");function e(n){t(n);var i=n.definitions.filter(function(n){return"OperationDefinition"===n.kind&&"mutation"===n.operation})[0];if(!i)throw new Error("Must contain a mutation definition.");return i}function t(n){if("Document"!==n.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var i=n.definitions.filter(function(n){return"FragmentDefinition"!==n.kind}).map(function(n){if("OperationDefinition"!==n.kind)throw new Error('Schema type definitions not allowed in queries. Found: "'+n.kind+'"');return n});if(i.length>1)throw new Error("Ambiguous GraphQL document: contains "+i.length+" operations")}function r(n){return t(n),n.definitions.filter(function(n){return"OperationDefinition"===n.kind})[0]}function o(n){var i=r(n);if(!i)throw new Error("GraphQL document is missing an operation");return i}function a(n){return n.definitions.filter(function(n){return"OperationDefinition"===n.kind&&n.name}).map(function(n){return n.name.value})[0]||null}function u(n){return n.definitions.filter(function(n){return"FragmentDefinition"===n.kind})}function f(n){var i=r(n);if(!i||"query"!==i.operation)throw new Error("Must contain a query definition.");return i}function s(n){if("Document"!==n.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');if(n.definitions.length>1)throw new Error("Fragment must have exactly one definition.");var i=n.definitions[0];if("FragmentDefinition"!==i.kind)throw new Error("Must be a fragment definition.");return i}function p(n){var i;t(n);for(var e=0,r=n.definitions;e<r.length;e++){var o=r[e];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||i||(i=o)}if(i)return i;throw new Error("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.")}function c(n){void 0===n&&(n=[]);var i={};return n.forEach(function(n){i[n.name.value]=n}),i}function l(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(n){return n.defaultValue}).map(function(n){var e=n.variable,t=n.defaultValue,r={};return(0,i.valueToObjectRepresentation)(r,e.name,t),r});return n.assign.apply(void 0,[{}].concat(t))}return{}}function d(n){var i=new Set;if(n.variableDefinitions)for(var e=0,t=n.variableDefinitions;e<t.length;e++){var r=t[e];i.add(r.variable.name.value)}return i}
},{"./util/assign":86,"./storeUtils":85}],87:[function(require,module,exports) {
"use strict";function r(e){if(Array.isArray(e))return e.map(function(e){return r(e)});if(null!==e&&"object"==typeof e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n]));return t}return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.cloneDeep=r;
},{}],84:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.removeDirectivesFromDocument=u,exports.addTypenameToDocument=s,exports.removeConnectionDirectiveFromDocument=l,exports.getDirectivesFromDocument=v;var e=require("./util/cloneDeep"),n=require("./getFromAST"),t={kind:"Field",name:{kind:"Name",value:"__typename"}};function i(e,n){return e.selectionSet.selections.filter(function(e){return!(e&&"FragmentSpread"===e.kind&&!i(n[e.name.value],n))}).length>0}function r(e){return function(n){return e.some(function(e){return!(!e.name||e.name!==n.name.value)||!(!e.test||!e.test(n))})}}function o(e,n){if(void 0===n&&(n=!1),e.selections){if(!n)e.selections.some(function(e){return"Field"===e.kind&&"__typename"===e.name.value})||e.selections.push(t);e.selections.forEach(function(e){"Field"===e.kind?0!==e.name.value.lastIndexOf("__",0)&&e.selectionSet&&o(e.selectionSet):"InlineFragment"===e.kind&&e.selectionSet&&o(e.selectionSet)})}}function c(e,n){if(!n.selections)return n;var t=e.some(function(e){return e.remove});return n.selections=n.selections.map(function(n){if("Field"!==n.kind||!n||!n.directives)return n;var i,o=r(e);return n.directives=n.directives.filter(function(e){var n=!o(e);return i||n||!t||(i=!0),n}),i?null:n}).filter(function(e){return!!e}),n.selections.forEach(function(n){"Field"!==n.kind&&"InlineFragment"!==n.kind||!n.selectionSet||c(e,n.selectionSet)}),n}function u(t,r){var o=(0,e.cloneDeep)(r);return o.definitions.forEach(function(e){c(t,e.selectionSet)}),i((0,n.getOperationDefinitionOrDie)(o),(0,n.createFragmentMap)((0,n.getFragmentDefinitions)(o)))?o:null}function s(t){(0,n.checkDocument)(t);var i=(0,e.cloneDeep)(t);return i.definitions.forEach(function(e){var n="OperationDefinition"===e.kind;o(e.selectionSet,n)}),i}var a={test:function(e){var n="connection"===e.name.value;return n&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||console.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),n}};function l(e){return(0,n.checkDocument)(e),u([a],e)}function f(e,n,t){return void 0===t&&(t=!0),!(!n||!n.selections)&&n.selections.filter(function(n){return m(e,n,t)}).length>0}function m(e,n,t){if(void 0===t&&(t=!0),"Field"!==n.kind||!n)return!0;if(!n.directives)return!1;var i=r(e);return n.directives.filter(i).length>0||t&&f(e,n.selectionSet,t)}function d(e,n){return n.selections=n.selections.filter(function(n){return m(e,n,!0)}).map(function(n){return m(e,n,!1)?n:("Field"!==n.kind&&"InlineFragment"!==n.kind||!n.selectionSet||(n.selectionSet=d(e,n.selectionSet)),n)}),n}function v(t,r,o){void 0===o&&(o=!1),(0,n.checkDocument)(r);var c=(0,e.cloneDeep)(r);return c.definitions=c.definitions.map(function(e){return("OperationDefinition"===e.kind||"FragmentDefinition"===e.kind&&!o)&&e.selectionSet&&(e.selectionSet=d(t,e.selectionSet)),e}),i((0,n.getOperationDefinitionOrDie)(c),(0,n.createFragmentMap)((0,n.getFragmentDefinitions)(c)))?c:null}
},{"./util/cloneDeep":87,"./getFromAST":83}],116:[function(require,module,exports) {
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(t){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
},{}],88:[function(require,module,exports) {
var process = require("process");
var e=require("process");function t(){return void 0!==e?"production":"development"}function r(e){return t()===e}function n(){return!0===r("production")}function o(){return!0===r("development")}function u(){return!0===r("test")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getEnv=t,exports.isEnv=r,exports.isProduction=n,exports.isDevelopment=o,exports.isTest=u;
},{"process":116}],89:[function(require,module,exports) {
"use strict";function r(r){try{return r()}catch(r){console.error&&console.error(r)}}function e(r){return r.errors&&r.errors.length}Object.defineProperty(exports,"__esModule",{value:!0}),exports.tryFunctionOrLogError=r,exports.graphQLResultHasError=e;
},{}],90:[function(require,module,exports) {
"use strict";function e(t,r){if(t===r)return!0;if(t instanceof Date&&r instanceof Date)return t.getTime()===r.getTime();if(null!=t&&"object"==typeof t&&null!=r&&"object"==typeof r){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(!Object.prototype.hasOwnProperty.call(r,o))return!1;if(!e(t[o],r[o]))return!1}for(var o in r)if(!Object.prototype.hasOwnProperty.call(t,o))return!1;return!0}return!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isEqual=e;
},{}],91:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.maybeDeepFreeze=n;var e=require("./environment");function t(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(n){null===e[n]||"object"!=typeof e[n]&&"function"!=typeof e[n]||Object.isFrozen(e[n])||t(e[n])}),e}function n(n){if(((0,e.isDevelopment)()||(0,e.isTest)())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return t(n);return n}
},{"./environment":88}],92:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnOnceInDevelopment=o;var e=require("./environment"),r=Object.create({});function o(o,n){if(void 0===n&&(n="warn"),!(0,e.isProduction)()&&!r[o])switch((0,e.isTest)()||(r[o]=!0),n){case"error":console.error(o);break;default:console.warn(o)}}
},{"./environment":88}],93:[function(require,module,exports) {
"use strict";function e(e){return JSON.parse(JSON.stringify(e))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.stripSymbols=e;
},{}],53:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./directives");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})});var r=require("./fragments");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});var t=require("./getFromAST");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});var n=require("./transform");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});var u=require("./storeUtils");Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return u[e]}})});var o=require("./util/assign");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return o[e]}})});var c=require("./util/cloneDeep");Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return c[e]}})});var i=require("./util/environment");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return i[e]}})});var f=require("./util/errorHandling");Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return f[e]}})});var a=require("./util/isEqual");Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return a[e]}})});var l=require("./util/maybeDeepFreeze");Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return l[e]}})});var s=require("./util/warnOnce");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return s[e]}})});var d=require("./util/stripSymbols");Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return d[e]}})});
},{"./directives":81,"./fragments":82,"./getFromAST":83,"./transform":84,"./storeUtils":85,"./util/assign":86,"./util/cloneDeep":87,"./util/environment":88,"./util/errorHandling":89,"./util/isEqual":90,"./util/maybeDeepFreeze":91,"./util/warnOnce":92,"./util/stripSymbols":93}],21:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isNetworkRequestInFlight=r;var e=exports.NetworkStatus=void 0;function r(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(e||(exports.NetworkStatus=e={}));
},{}],108:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){return"function"==typeof Symbol},r=function(e){return n()&&Boolean(Symbol[e])},o=function(e){return r(e)?Symbol[e]:"@@"+e};function i(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function u(e){var t=e.constructor;return void 0!==t&&null===(t=t[o("species")])&&(t=void 0),void 0!==t?t:d}function c(e){return e instanceof d}function s(e){s.log?s.log(e):setTimeout(function(){throw e})}function f(e){Promise.resolve().then(function(){try{e()}catch(e){s(e)}})}function a(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=i(t,"unsubscribe");n&&n.call(t)}}catch(e){s(e)}}function l(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function b(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(v(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}function v(e,t,n){e._state="running";var r=e._observer;try{var o=i(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(l(e),!o)throw n;o.call(r,n);break;case"complete":l(e),o&&o.call(r)}}catch(e){s(e)}"closed"===e._state?a(e):"running"===e._state&&(e._state="ready")}function h(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void f(function(){return b(e)})):void v(e,t,n);e._queue.push({type:t,value:n})}}n()&&!r("observable")&&(Symbol.observable=Symbol("observable"));var y=function(){function n(e,r){t(this,n),this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var o=new p(this);try{this._cleanup=r.call(void 0,o)}catch(e){o.error(e)}"initializing"===this._state&&(this._state="ready")}return e(n,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(l(this),a(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),n}(),p=function(){function n(e){t(this,n),this._subscription=e}return e(n,[{key:"next",value:function(e){h(this._subscription,"next",e)}},{key:"error",value:function(e){h(this._subscription,"error",e)}},{key:"complete",value:function(){h(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),n}(),d=exports.Observable=function(){function n(e){if(t(this,n),!(this instanceof n))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return e(n,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new y(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise(function(n,r){if("function"==typeof e)var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),o.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function i(){o.unsubscribe(),n()}})}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(u(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(u(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=u(this),r=arguments.length>1,o=!1,i=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var u=!o;if(o=!0,!u||r)try{i=e(i,t)}catch(e){return n.error(e)}else i=t},error:function(e){n.error(e)},complete:function(){if(!o&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(i),n.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=u(this);return new o(function(t){var r=void 0;return function e(i){r=i.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){0===n.length?(r=void 0,t.complete()):e(o.from(n.shift()))}})}(e),function(){r&&(r=void 0).unsubscribe()}})}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=u(this);return new n(function(r){var o=[],i=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var i=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=o.indexOf(i);e>=0&&o.splice(e,1),u()}});o.push(i)},error:function(e){r.error(e)},complete:function(){u()}});function u(){i.closed&&0===o.length&&r.complete()}return function(){o.forEach(function(e){return e.unsubscribe()}),i.unsubscribe()}})}},{key:o("observable"),value:function(){return this}}],[{key:"from",value:function(e){var t="function"==typeof this?this:n;if(null==e)throw new TypeError(e+" is not an object");var u=i(e,o("observable"));if(u){var s=u.call(e);if(Object(s)!==s)throw new TypeError(s+" is not an object");return c(s)&&s.constructor===t?s:new t(function(e){return s.subscribe(e)})}if(r("iterator")&&(u=i(e,o("iterator"))))return new t(function(t){f(function(){if(!t.closed){var n=!0,r=!1,o=void 0;try{for(var i,c=u.call(e)[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var s=i.value;if(t.next(s),t.closed)return}}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}t.complete()}})});if(Array.isArray(e))return new t(function(t){f(function(){if(!t.closed){for(var n=0;n<e.length;++n)if(t.next(e[n]),t.closed)return;t.complete()}})});throw new TypeError(e+" is not observable")}},{key:"of",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return new("function"==typeof this?this:n)(function(e){f(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})})}},{key:o("species"),get:function(){return this}}]),n}();n()&&Object.defineProperty(d,Symbol("extensions"),{value:{symbol:o("observable"),hostReportError:s},configurabe:!0});
},{}],105:[function(require,module,exports) {
module.exports=require("./lib/Observable.js").Observable;
},{"./lib/Observable.js":108}],80:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Observable=void 0;var e=require("zen-observable"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}var s=exports.Observable=r.default;
},{"zen-observable":105}],45:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./zenObservable");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})}),exports.default=e.Observable;
},{"./zenObservable":80}],38:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.makePromise=exports.LinkError=void 0,exports.validateOperation=u,exports.isTerminating=p,exports.toPromise=c,exports.fromPromise=l,exports.fromError=m,exports.transformOperation=v,exports.createOperation=y,exports.getKey=b;var e=require("apollo-utilities"),r=require("zen-observable-ts"),t=o(r),n=require("graphql/language/printer");function o(e){return e&&e.__esModule?e:{default:e}}var i=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e};function u(e){for(var r=["query","operationName","variables","extensions","context"],t=0,n=Object.keys(e);t<n.length;t++){var o=n[t];if(r.indexOf(o)<0)throw new Error("illegal argument: "+o)}return e}var s=function(e){function r(r,t){var n=e.call(this,r)||this;return n.link=t,n}return i(r,e),r}(Error);function p(e){return e.request.length<=1}function c(e){var r=!1;return new Promise(function(t,n){e.subscribe({next:function(e){r?console.warn("Promise Wrapper does not support multiple results from Observable"):(r=!0,t(e))},error:n})})}exports.LinkError=s;var f=exports.makePromise=c;function l(e){return new t.default(function(r){e.then(function(e){r.next(e),r.complete()}).catch(r.error.bind(r))})}function m(e){return new t.default(function(r){r.error(e)})}function v(r){var t={variables:r.variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,e.getOperationName)(t.query):""),t}function y(e,r){var t=a({},e);return Object.defineProperty(r,"setContext",{enumerable:!1,value:function(e){t=a({},t,"function"==typeof e?e(t):e)}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:function(){return a({},t)}}),Object.defineProperty(r,"toKey",{enumerable:!1,value:function(){return b(r)}}),r}function b(e){return(0,n.print)(e.query)+"|"+JSON.stringify(e.variables)+"|"+e.operationName}
},{"apollo-utilities":53,"zen-observable-ts":45,"graphql/language/printer":25}],37:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApolloLink=exports.concat=exports.split=exports.from=exports.empty=void 0,exports.execute=l;var e=require("zen-observable-ts"),t=r(e),n=require("./linkUtils");function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e,n){return n?n(e):t.default.of()},u=function(e){return"function"==typeof e?new a(e):e},i=exports.empty=function(){return new a(function(e,n){return t.default.of()})},f=exports.from=function(e){return 0===e.length?i():e.map(u).reduce(function(e,t){return e.concat(t)})},c=exports.split=function(e,r,i){void 0===i&&(i=new a(o));var f=u(r),c=u(i);return(0,n.isTerminating)(f)&&(0,n.isTerminating)(c)?new a(function(n){return e(n)?f.request(n)||t.default.of():c.request(n)||t.default.of()}):new a(function(n,r){return e(n)?f.request(n,r)||t.default.of():c.request(n,r)||t.default.of()})},s=exports.concat=function(e,r){var o=u(e);if((0,n.isTerminating)(o))return console.warn(new n.LinkError("You are calling concat on a terminating link, which will have no effect",o)),o;var i=u(r);return(0,n.isTerminating)(i)?new a(function(e){return o.request(e,function(e){return i.request(e)||t.default.of()})||t.default.of()}):new a(function(e,n){return o.request(e,function(e){return i.request(e,n)||t.default.of()})||t.default.of()})},a=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return void 0===r&&(r=new e(o)),this.concat(c(t,n,r))},e.prototype.concat=function(e){return s(this,e)},e.prototype.request=function(e,t){throw new Error("request is not implemented")},e.empty=i,e.from=f,e.split=c,e.execute=l,e}();function l(e,r){return e.request((0,n.createOperation)(r.context,(0,n.transformOperation)((0,n.validateOperation)(r))))||t.default.of()}exports.ApolloLink=a;
},{"zen-observable-ts":45,"./linkUtils":38}],6:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Observable=exports.fromError=exports.fromPromise=exports.toPromise=exports.makePromise=exports.createOperation=void 0;var e=require("./link");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})});var r=require("./linkUtils");Object.defineProperty(exports,"createOperation",{enumerable:!0,get:function(){return r.createOperation}}),Object.defineProperty(exports,"makePromise",{enumerable:!0,get:function(){return r.makePromise}}),Object.defineProperty(exports,"toPromise",{enumerable:!0,get:function(){return r.toPromise}}),Object.defineProperty(exports,"fromPromise",{enumerable:!0,get:function(){return r.fromPromise}}),Object.defineProperty(exports,"fromError",{enumerable:!0,get:function(){return r.fromError}});var t=require("zen-observable-ts"),o=n(t);function n(e){return e&&e.__esModule?e:{default:e}}exports.Observable=o.default;
},{"./link":37,"./linkUtils":38,"zen-observable-ts":45}],114:[function(require,module,exports) {
"use strict";function e(e){var o,r=e.Symbol;return"function"==typeof r?r.observable?o=r.observable:(o=r("observable"),r.observable=o):o="@@observable",o}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],99:[function(require,module,exports) {
var global = arguments[3];
var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0});var d,n=require("./ponyfill.js"),u=o(n);function o(e){return e&&e.__esModule?e:{default:e}}d="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof module?module:Function("return this")();var t=(0,u.default)(d);exports.default=t;
},{"./ponyfill.js":114}],66:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Observable=void 0;var t=require("apollo-link"),e=require("symbol-observable"),r=o(e);function o(t){return t&&t.__esModule?t:{default:t}}var n=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype[r.default]=function(){return this},e.prototype["@@observable"]=function(){return this},e}(t.Observable);exports.Observable=u;
},{"apollo-link":6,"symbol-observable":99}],23:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isApolloError=o;var r=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var t in o)o.hasOwnProperty(t)&&(r[t]=o[t])};return function(o,t){function e(){this.constructor=o}r(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}}();function o(r){return r.hasOwnProperty("graphQLErrors")}var t=function(r){var o="";return Array.isArray(r.graphQLErrors)&&0!==r.graphQLErrors.length&&r.graphQLErrors.forEach(function(r){var t=r?r.message:"Error message not found.";o+="GraphQL error: "+t+"\n"}),r.networkError&&(o+="Network error: "+r.networkError.message+"\n"),o=o.replace(/\n$/,"")},e=function(o){function e(r){var n=r.graphQLErrors,a=r.networkError,s=r.errorMessage,p=r.extraInfo,u=o.call(this,s)||this;return u.graphQLErrors=n||[],u.networkError=a||null,u.message=s||t(u),u.extraInfo=p,u.__proto__=e.prototype,u}return r(e,o),e}(Error);exports.ApolloError=e;
},{}],22:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports.FetchType=void 0;!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(e||(exports.FetchType=e={}));
},{}],20:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ObservableQuery=exports.hasError=void 0;var r=require("apollo-utilities"),e=require("./networkStatus"),t=require("../util/Observable"),s=require("../errors/ApolloError"),o=require("./types"),i=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(e,t){function s(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}}(),n=Object.assign||function(r){for(var e,t=1,s=arguments.length;t<s;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},a=exports.hasError=function(r,e){return void 0===e&&(e="none"),r&&(r.graphQLErrors&&r.graphQLErrors.length>0&&"none"===e||r.networkError)},u=function(t){function u(r){var e=r.scheduler,s=r.options,o=r.shouldSubscribe,i=void 0===o||o,n=t.call(this,function(r){return n.onSubscribe(r)})||this;return n.isCurrentlyPolling=!1,n.isTornDown=!1,n.options=s,n.variables=s.variables||{},n.queryId=e.queryManager.generateQueryId(),n.shouldSubscribe=i,n.scheduler=e,n.queryManager=e.queryManager,n.observers=[],n.subscriptionHandles=[],n}return i(u,t),u.prototype.result=function(){var r=this;return new Promise(function(e,t){var s,o={next:function(t){e(t),r.observers.some(function(r){return r!==o})||r.queryManager.removeQuery(r.queryId),setTimeout(function(){s.unsubscribe()},0)},error:function(r){t(r)}};s=r.subscribe(o)})},u.prototype.currentResult=function(){if(this.isTornDown)return{data:this.lastError?{}:this.lastResult?this.lastResult.data:{},error:this.lastError,loading:!1,networkStatus:e.NetworkStatus.error};var r=this.queryManager.queryStore.get(this.queryId);if(a(r,this.options.errorPolicy))return{data:{},loading:!1,networkStatus:r.networkStatus,error:new s.ApolloError({graphQLErrors:r.graphQLErrors,networkError:r.networkError})};var t,o=this.queryManager.getCurrentQueryResult(this),i=o.data,u=o.partial,l=!r||r.networkStatus===e.NetworkStatus.loading,h="network-only"===this.options.fetchPolicy&&l||u&&"cache-only"!==this.options.fetchPolicy;t=r?r.networkStatus:h?e.NetworkStatus.loading:e.NetworkStatus.ready;var c={data:i,loading:(0,e.isNetworkRequestInFlight)(t),networkStatus:t};if(r&&r.graphQLErrors&&"all"===this.options.errorPolicy&&(c.errors=r.graphQLErrors),!u){this.lastResult=n({},c,{stale:!1})}return n({},c,{partial:u})},u.prototype.getLastResult=function(){return this.lastResult},u.prototype.getLastError=function(){return this.lastError},u.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastError,this.isTornDown=!1},u.prototype.refetch=function(e){var t=this.options.fetchPolicy;if("cache-only"===t)return Promise.reject(new Error("cache-only fetchPolicy option should not be used together with query refetch."));(0,r.isEqual)(this.variables,e)||(this.variables=Object.assign({},this.variables,e)),(0,r.isEqual)(this.options.variables,this.variables)||(this.options.variables=Object.assign({},this.options.variables,this.variables));var s="network-only"===t||"no-cache"===t,i=n({},this.options,{fetchPolicy:s?t:"network-only"});return this.queryManager.fetchQuery(this.queryId,i,o.FetchType.refetch).then(function(e){return(0,r.maybeDeepFreeze)(e)})},u.prototype.fetchMore=function(r){var e,t=this;if(!r.updateQuery)throw new Error("updateQuery option is required. This function defines how to update the query data with the new results.");return Promise.resolve().then(function(){var s=t.queryManager.generateQueryId();return(e=r.query?r:n({},t.options,r,{variables:Object.assign({},t.variables,r.variables)})).fetchPolicy="network-only",t.queryManager.fetchQuery(s,e,o.FetchType.normal,t.queryId)}).then(function(s){return t.updateQuery(function(t){return r.updateQuery(t,{fetchMoreResult:s.data,variables:e.variables})}),s})},u.prototype.subscribeToMore=function(r){var e=this,t=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables}).subscribe({next:function(t){r.updateQuery&&e.updateQuery(function(e,s){var o=s.variables;return r.updateQuery(e,{subscriptionData:t,variables:o})})},error:function(e){r.onError?r.onError(e):console.error("Unhandled GraphQL subscription error",e)}});return this.subscriptionHandles.push(t),function(){var r=e.subscriptionHandles.indexOf(t);r>=0&&(e.subscriptionHandles.splice(r,1),t.unsubscribe())}},u.prototype.setOptions=function(r){var e=this.options;this.options=Object.assign({},this.options,r),r.pollInterval?this.startPolling(r.pollInterval):0===r.pollInterval&&this.stopPolling();var t="network-only"!==e.fetchPolicy&&"network-only"===r.fetchPolicy||"cache-only"===e.fetchPolicy&&"cache-only"!==r.fetchPolicy||"standby"===e.fetchPolicy&&"standby"!==r.fetchPolicy||!1;return this.setVariables(this.options.variables,t,r.fetchResults)},u.prototype.setVariables=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!0),this.isTornDown=!1;var o=e||this.variables;return(0,r.isEqual)(o,this.variables)&&!t?0!==this.observers.length&&s?this.result():new Promise(function(r){return r()}):(this.variables=o,this.options.variables=o,0===this.observers.length?new Promise(function(r){return r()}):this.queryManager.fetchQuery(this.queryId,n({},this.options,{variables:this.variables})).then(function(e){return(0,r.maybeDeepFreeze)(e)}))},u.prototype.updateQuery=function(e){var t=this.queryManager.getQueryWithPreviousResult(this.queryId),s=t.previousResult,o=t.variables,i=t.document,n=(0,r.tryFunctionOrLogError)(function(){return e(s,{variables:o})});n&&(this.queryManager.dataStore.markUpdateQueryResult(i,o,n),this.queryManager.broadcastQueries())},u.prototype.stopPolling=function(){this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.options.pollInterval=void 0,this.isCurrentlyPolling=!1)},u.prototype.startPolling=function(r){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.options.pollInterval=r,this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)},u.prototype.onSubscribe=function(r){var e=this;return r._subscription&&r._subscription._observer&&!r._subscription._observer.error&&(r._subscription._observer.error=function(r){console.error("Unhandled error",r.message,r.stack)}),this.observers.push(r),r.next&&this.lastResult&&r.next(this.lastResult),r.error&&this.lastError&&r.error(this.lastError),1===this.observers.length&&this.setUpQuery(),function(){e.observers=e.observers.filter(function(e){return e!==r}),0===e.observers.length&&e.tearDownQuery()}},u.prototype.setUpQuery=function(){var r=this;if(this.shouldSubscribe&&this.queryManager.addObservableQuery(this.queryId,this),this.options.pollInterval){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)}var e={next:function(e){r.lastResult=e,r.observers.forEach(function(r){return r.next&&r.next(e)})},error:function(e){r.lastError=e,r.observers.forEach(function(r){return r.error&&r.error(e)})}};this.queryManager.startQuery(this.queryId,this.options,this.queryManager.queryListenerForObserver(this.queryId,this.options,e))},u.prototype.tearDownQuery=function(){this.isTornDown=!0,this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.subscriptionHandles.forEach(function(r){return r.unsubscribe()}),this.subscriptionHandles=[],this.queryManager.removeObservableQuery(this.queryId),this.queryManager.stopQuery(this.queryId),this.observers=[]},u}(t.Observable);exports.ObservableQuery=u;
},{"apollo-utilities":53,"./networkStatus":21,"../util/Observable":66,"../errors/ApolloError":23,"./types":22}],107:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DedupLink=void 0;var e=require("apollo-link"),t=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),r=function(r){function n(){var e=null!==r&&r.apply(this,arguments)||this;return e.inFlightRequestObservables=new Map,e.subscribers=new Map,e}return t(n,r),n.prototype.request=function(t,r){var n=this;if(t.getContext().forceFetch)return r(t);var o=t.toKey(),s=function(e){return n.inFlightRequestObservables.delete(e),n.subscribers.get(e)};if(!this.inFlightRequestObservables.get(o)){var i,u=r(t),c=new e.Observable(function(e){var t=n.subscribers.get(o);return t||(t={next:[],error:[],complete:[]}),n.subscribers.set(o,{next:t.next.concat([e.next.bind(e)]),error:t.error.concat([e.error.bind(e)]),complete:t.complete.concat([e.complete.bind(e)])}),i||(i=u.subscribe({next:function(e){var t=s(o);n.subscribers.delete(o),t&&(t.next.forEach(function(t){return t(e)}),t.complete.forEach(function(e){return e()}))},error:function(e){var t=s(o);n.subscribers.delete(o),t&&t.error.forEach(function(t){return t(e)})}})),function(){i&&i.unsubscribe(),n.inFlightRequestObservables.delete(o)}});this.inFlightRequestObservables.set(o,c)}return this.inFlightRequestObservables.get(o)},n}(e.ApolloLink);exports.DedupLink=r;
},{"apollo-link":6}],98:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./dedupLink");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})});
},{"./dedupLink":107}],95:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.QueryScheduler=void 0;var e=require("../core/types"),r=require("../core/ObservableQuery"),t=require("../core/networkStatus"),i=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},n=function(){function n(e){var r=e.queryManager,t=e.ssrMode;this.inFlightQueries={},this.registeredQueries={},this.intervalQueries={},this.pollingTimers={},this.ssrMode=!1,this.queryManager=r,this.ssrMode=t||!1}return n.prototype.checkInFlight=function(e){var r=this.queryManager.queryStore.get(e);return r&&r.networkStatus!==t.NetworkStatus.ready&&r.networkStatus!==t.NetworkStatus.error},n.prototype.fetchQuery=function(e,r,t){var i=this;return new Promise(function(n,s){i.queryManager.fetchQuery(e,r,t).then(function(e){n(e)}).catch(function(e){s(e)})})},n.prototype.startPollingQuery=function(e,r,t){if(!e.pollInterval)throw new Error("Attempted to start a polling query without a polling interval.");return this.ssrMode?r:(this.registeredQueries[r]=e,t&&this.queryManager.addQueryListener(r,t),this.addQueryOnInterval(r,e),r)},n.prototype.stopPollingQuery=function(e){delete this.registeredQueries[e]},n.prototype.fetchQueriesOnInterval=function(r){var t=this;this.intervalQueries[r]=this.intervalQueries[r].filter(function(n){if(!t.registeredQueries.hasOwnProperty(n)||t.registeredQueries[n].pollInterval!==r)return!1;if(t.checkInFlight(n))return!0;var s=t.registeredQueries[n],o=i({},s);return o.fetchPolicy="network-only",t.fetchQuery(n,o,e.FetchType.poll).catch(function(){}),!0}),0===this.intervalQueries[r].length&&(clearInterval(this.pollingTimers[r]),delete this.intervalQueries[r])},n.prototype.addQueryOnInterval=function(e,r){var t=this,i=r.pollInterval;if(!i)throw new Error("A poll interval is required to start polling query with id '"+e+"'.");this.intervalQueries.hasOwnProperty(i.toString())&&this.intervalQueries[i].length>0?this.intervalQueries[i].push(e):(this.intervalQueries[i]=[e],this.pollingTimers[i]=setInterval(function(){t.fetchQueriesOnInterval(i)},i))},n.prototype.registerPollingQuery=function(e){if(!e.pollInterval)throw new Error("Attempted to register a non-polling query with the scheduler.");return new r.ObservableQuery({scheduler:this,options:e})},n}();exports.QueryScheduler=n;
},{"../core/types":22,"../core/ObservableQuery":20,"../core/networkStatus":21}],96:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initMutation=function(t,r,o){this.store[t]={mutationString:r,variables:o||{},loading:!0,error:null}},t.prototype.markMutationError=function(t,r){var o=this.store[t];o&&(o.loading=!1,o.error=r)},t.prototype.markMutationResult=function(t){var r=this.store[t];r&&(r.loading=!1,r.error=null)},t.prototype.reset=function(){this.store={}},t}();exports.MutationStore=t;
},{}],97:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.QueryStore=void 0;var t=require("graphql/language/printer"),r=require("apollo-utilities"),e=require("../core/networkStatus"),o=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var s in r=arguments[e])Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);return t},s=function(){function s(){this.store={}}return s.prototype.getStore=function(){return this.store},s.prototype.get=function(t){return this.store[t]},s.prototype.initQuery=function(o){var s=this.store[o.queryId];if(s&&s.document!==o.document&&(0,t.print)(s.document)!==(0,t.print)(o.document))throw new Error("Internal Error: may not update existing query string in store");var i,n=!1,u=null;o.storePreviousVariables&&s&&s.networkStatus!==e.NetworkStatus.loading&&((0,r.isEqual)(s.variables,o.variables)||(n=!0,u=s.variables)),i=n?e.NetworkStatus.setVariables:o.isPoll?e.NetworkStatus.poll:o.isRefetch?e.NetworkStatus.refetch:e.NetworkStatus.loading;var a=[];s&&s.graphQLErrors&&(a=s.graphQLErrors),this.store[o.queryId]={document:o.document,variables:o.variables,previousVariables:u,networkError:null,graphQLErrors:a,networkStatus:i,metadata:o.metadata},"string"==typeof o.fetchMoreForQueryId&&this.store[o.fetchMoreForQueryId]&&(this.store[o.fetchMoreForQueryId].networkStatus=e.NetworkStatus.fetchMore)},s.prototype.markQueryResult=function(t,r,o){this.store[t]&&(this.store[t].networkError=null,this.store[t].graphQLErrors=r.errors&&r.errors.length?r.errors:[],this.store[t].previousVariables=null,this.store[t].networkStatus=e.NetworkStatus.ready,"string"==typeof o&&this.store[o]&&(this.store[o].networkStatus=e.NetworkStatus.ready))},s.prototype.markQueryError=function(t,r,o){this.store[t]&&(this.store[t].networkError=r,this.store[t].networkStatus=e.NetworkStatus.error,"string"==typeof o&&this.markQueryResultClient(o,!0))},s.prototype.markQueryResultClient=function(t,r){this.store[t]&&(this.store[t].networkError=null,this.store[t].previousVariables=null,this.store[t].networkStatus=r?e.NetworkStatus.ready:e.NetworkStatus.loading)},s.prototype.stopQuery=function(t){delete this.store[t]},s.prototype.reset=function(t){var r=this;this.store=Object.keys(this.store).filter(function(r){return t.indexOf(r)>-1}).reduce(function(t,s){return t[s]=o({},r.store[s],{networkStatus:e.NetworkStatus.loading}),t},{})},s}();exports.QueryStore=s;
},{"graphql/language/printer":25,"apollo-utilities":53,"../core/networkStatus":21}],60:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.QueryManager=void 0;var e=require("apollo-link"),t=require("graphql/language/printer"),r=require("apollo-link-dedup"),o=require("apollo-utilities"),i=require("../scheduler/scheduler"),n=require("../errors/ApolloError"),a=require("../util/Observable"),u=require("../data/mutations"),s=require("../data/queries"),c=require("./ObservableQuery"),l=require("./networkStatus"),h=require("./types"),y=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d={listeners:[],invalidated:!1,document:null,newData:null,lastRequestId:null,observableQuery:null,subscriptions:[]},f=function(){function f(t){var o=t.link,n=t.queryDeduplication,a=void 0!==n&&n,c=t.store,l=t.onBroadcast,h=void 0===l?function(){}:l,y=t.ssrMode,d=void 0!==y&&y;this.mutationStore=new u.MutationStore,this.queryStore=new s.QueryStore,this.idCounter=1,this.queries=new Map,this.fetchQueryPromises=new Map,this.queryIdsByName={},this.link=o,this.deduplicator=e.ApolloLink.from([new r.DedupLink,o]),this.queryDeduplication=a,this.dataStore=c,this.onBroadcast=h,this.scheduler=new i.QueryScheduler({queryManager:this,ssrMode:d})}return f.prototype.mutate=function(r){var i=this,a=r.mutation,u=r.variables,s=r.optimisticResponse,c=r.updateQueries,l=r.refetchQueries,h=void 0===l?[]:l,d=r.update,f=r.errorPolicy,p=void 0===f?"none":f,v=r.fetchPolicy,m=r.context,Q=void 0===m?{}:m;if(!a)throw new Error("mutation option is required. You must specify your GraphQL document in the mutation option.");if(v&&"no-cache"!==v)throw new Error("fetchPolicy for mutations currently only supports the 'no-cache' policy");var b=this.generateQueryId(),g=this.dataStore.getCache();a=g.transformDocument(a),u=(0,o.assign)({},(0,o.getDefaultValues)((0,o.getMutationDefinition)(a)),u);var w=(0,t.print)(a);this.setQuery(b,function(){return{document:a}});var q=function(){var e={};return c&&Object.keys(c).forEach(function(t){return(i.queryIdsByName[t]||[]).forEach(function(r){e[r]={updater:c[t],query:i.queryStore.get(r)}})}),e};return this.mutationStore.initMutation(b,w,u),this.dataStore.markMutationInit({mutationId:b,document:a,variables:u||{},updateQueries:q(),update:d,optimisticResponse:s}),this.broadcastQueries(),new Promise(function(t,r){var c,l,f=i.buildOperationForLink(a,u,y({},Q,{optimisticResponse:s}));(0,e.execute)(i.link,f).subscribe({next:function(e){(0,o.graphQLResultHasError)(e)&&"none"===p?l=new n.ApolloError({graphQLErrors:e.errors}):(i.mutationStore.markMutationResult(b),"no-cache"!==v&&i.dataStore.markMutationResult({mutationId:b,result:e,document:a,variables:u||{},updateQueries:q(),update:d}),c=e)},error:function(e){i.mutationStore.markMutationError(b,e),i.dataStore.markMutationComplete({mutationId:b,optimisticResponse:s}),i.broadcastQueries(),i.setQuery(b,function(){return{document:void 0}}),r(new n.ApolloError({networkError:e}))},complete:function(){l&&i.mutationStore.markMutationError(b,l),i.dataStore.markMutationComplete({mutationId:b,optimisticResponse:s}),i.broadcastQueries(),l?r(l):("function"==typeof h&&(h=h(c)),h&&h.forEach(function(e){"string"!=typeof e?i.query({query:e.query,variables:e.variables,fetchPolicy:"network-only"}):i.refetchQueryByName(e)}),i.setQuery(b,function(){return{document:void 0}}),"ignore"===p&&c&&(0,o.graphQLResultHasError)(c)&&delete c.errors,t(c))}})})},f.prototype.fetchQuery=function(e,t,r,i){var a,u=this,s=t.variables,c=void 0===s?{}:s,l=t.metadata,y=void 0===l?null:l,d=t.fetchPolicy,f=void 0===d?"cache-first":d,p=this.dataStore.getCache().transformDocument(t.query),v="network-only"===f||"no-cache"===f;if(r!==h.FetchType.refetch&&"network-only"!==f&&"no-cache"!==f){var m=this.dataStore.getCache().diff({query:p,variables:c,returnPartialData:!0,optimistic:!1});v=!m.complete||"cache-and-network"===f,a=m.result}var Q=v&&"cache-only"!==f&&"standby"!==f;(0,o.hasDirectives)(["live"],p)&&(Q=!0);var b=this.generateRequestId(),g=this.updateQueryWatch(e,p,t);if(this.setQuery(e,function(){return{document:p,lastRequestId:b,invalidated:!0,cancel:g}}),this.invalidate(!0,i),this.queryStore.initQuery({queryId:e,document:p,storePreviousVariables:Q,variables:c,isPoll:r===h.FetchType.poll,isRefetch:r===h.FetchType.refetch,metadata:y,fetchMoreForQueryId:i}),this.broadcastQueries(),(!Q||"cache-and-network"===f)&&(this.queryStore.markQueryResultClient(e,!Q),this.invalidate(!0,e,i),this.broadcastQueries()),Q){var w=this.fetchRequest({requestId:b,queryId:e,document:p,options:t,fetchMoreForQueryId:i}).catch(function(t){if((0,n.isApolloError)(t))throw t;var r=u.getQuery(e).lastRequestId;throw b>=(r||1)&&(u.queryStore.markQueryError(e,t,i),u.invalidate(!0,e,i),u.broadcastQueries()),u.removeFetchQueryPromise(b),new n.ApolloError({networkError:t})});if("cache-and-network"!==f)return w;w.catch(function(){})}return Promise.resolve({data:a})},f.prototype.queryListenerForObserver=function(e,r,i){var a=this,u=!1;return function(s,c){if(a.invalidate(!1,e),s){var h=a.getQuery(e).observableQuery,y=h?h.options.fetchPolicy:r.fetchPolicy;if("standby"!==y){var d=h?h.options.errorPolicy:r.errorPolicy,f=h?h.getLastResult():null,p=h?h.getLastError():null,v=!c&&null!=s.previousVariables||"cache-only"===y||"cache-and-network"===y,m=Boolean(f&&s.networkStatus!==f.networkStatus),Q=d&&(p&&p.graphQLErrors)!==s.graphQLErrors&&"none"!==d;if(!(0,l.isNetworkRequestInFlight)(s.networkStatus)||m&&r.notifyOnNetworkStatusChange||v){if((!d||"none"===d)&&s.graphQLErrors&&s.graphQLErrors.length>0||s.networkError){var b=new n.ApolloError({graphQLErrors:s.graphQLErrors,networkError:s.networkError});if(u=!0,i.error)try{i.error(b)}catch(e){setTimeout(function(){throw e},0)}else setTimeout(function(){throw b},0),(0,o.isProduction)()||console.info("An unhandled error was thrown because no error handler is registered for the query "+(0,t.print)(s.document));return}try{var g=void 0,w=void 0;if(c)a.setQuery(e,function(){return{newData:null}}),g=c.result,w=!c.complete||!1;else if(f&&f.data&&!Q)g=f.data,w=!1;else{var q=a.getQuery(e).document,k=a.dataStore.getCache().diff({query:q,variables:s.previousVariables||s.variables,optimistic:!0});g=k.result,w=!k.complete}var S=void 0;if(S=w&&"cache-only"!==y?{data:f&&f.data,loading:(0,l.isNetworkRequestInFlight)(s.networkStatus),networkStatus:s.networkStatus,stale:!0}:{data:g,loading:(0,l.isNetworkRequestInFlight)(s.networkStatus),networkStatus:s.networkStatus,stale:!1},"all"===d&&s.graphQLErrors&&s.graphQLErrors.length>0&&(S.errors=s.graphQLErrors),i.next)if(!(f&&S&&f.networkStatus===S.networkStatus&&f.stale===S.stale&&f.data===S.data)||u)try{i.next((0,o.maybeDeepFreeze)(S))}catch(e){setTimeout(function(){throw e},0)}u=!1}catch(e){return u=!0,void(i.error&&i.error(new n.ApolloError({networkError:e})))}}}}}},f.prototype.watchQuery=function(e,t){if(void 0===t&&(t=!0),"standby"===e.fetchPolicy)throw new Error('client.watchQuery cannot be called with fetchPolicy set to "standby"');var r=(0,o.getQueryDefinition)(e.query);if(r.variableDefinitions&&r.variableDefinitions.length){var i=(0,o.getDefaultValues)(r);e.variables=(0,o.assign)({},i,e.variables)}void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=y({},e);return new c.ObservableQuery({scheduler:this.scheduler,options:n,shouldSubscribe:t})},f.prototype.query=function(e){var t=this;if(!e.query)throw new Error("query option is required. You must specify your GraphQL document in the query option.");if("Document"!==e.query.kind)throw new Error('You must wrap the query string in a "gql" tag.');if(e.returnPartialData)throw new Error("returnPartialData option only supported on watchQuery.");if(e.pollInterval)throw new Error("pollInterval option only supported on watchQuery.");var r=this.idCounter;return new Promise(function(o,i){return t.addFetchQueryPromise(r,o,i),t.watchQuery(e,!1).result().then(function(e){t.removeFetchQueryPromise(r),o(e)}).catch(function(e){t.removeFetchQueryPromise(r),i(e)})})},f.prototype.generateQueryId=function(){var e=this.idCounter.toString();return this.idCounter++,e},f.prototype.stopQueryInStore=function(e){this.queryStore.stopQuery(e),this.invalidate(!0,e),this.broadcastQueries()},f.prototype.addQueryListener=function(e,t){this.setQuery(e,function(e){var r=e.listeners;return{listeners:(void 0===r?[]:r).concat([t]),invalidate:!1}})},f.prototype.updateQueryWatch=function(e,t,r){var o=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=o.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){o.setQuery(e,function(){return{invalidated:!0,newData:t}})}})},f.prototype.addFetchQueryPromise=function(e,t,r){this.fetchQueryPromises.set(e.toString(),{resolve:t,reject:r})},f.prototype.removeFetchQueryPromise=function(e){this.fetchQueryPromises.delete(e.toString())},f.prototype.addObservableQuery=function(e,t){this.setQuery(e,function(){return{observableQuery:t}});var r=(0,o.getQueryDefinition)(t.options.query);if(r.name&&r.name.value){var i=r.name.value;this.queryIdsByName[i]=this.queryIdsByName[i]||[],this.queryIdsByName[i].push(t.queryId)}},f.prototype.removeObservableQuery=function(e){var t=this.getQuery(e),r=t.observableQuery,i=t.cancel;if(i&&i(),r){var n=(0,o.getQueryDefinition)(r.options.query),a=n.name?n.name.value:null;this.setQuery(e,function(){return{observableQuery:null}}),a&&(this.queryIdsByName[a]=this.queryIdsByName[a].filter(function(e){return!(r.queryId===e)}))}},f.prototype.clearStore=function(){this.fetchQueryPromises.forEach(function(e){(0,e.reject)(new Error("Store reset while query was in flight(not completed in link chain)"))});var e=[];return this.queries.forEach(function(t,r){t.observableQuery&&e.push(r)}),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},f.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},f.prototype.getObservableQueryPromises=function(e){var t=this,r=[];return this.queries.forEach(function(o,i){var n=o.observableQuery;if(n){var a=n.options.fetchPolicy;n.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(n.refetch()),t.setQuery(i,function(){return{newData:null}}),t.invalidate(!0,i)}}),r},f.prototype.reFetchObservableQueries=function(e){var t=this.getObservableQueryPromises(e);return this.broadcastQueries(),Promise.all(t)},f.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch(function(){}),e},f.prototype.startGraphQLSubscription=function(t){var r,i=this,n=t.query,u=this.dataStore.getCache().transformDocument(n),s=(0,o.assign)({},(0,o.getDefaultValues)((0,o.getOperationDefinition)(n)),t.variables),c=[];return new a.Observable(function(t){if(c.push(t),1===c.length){var o={next:function(e){i.dataStore.markSubscriptionResult(e,u,s),i.broadcastQueries(),c.forEach(function(t){t.next&&t.next(e)})},error:function(e){c.forEach(function(t){t.error&&t.error(e)})}},n=i.buildOperationForLink(u,s);r=(0,e.execute)(i.link,n).subscribe(o)}return function(){0===(c=c.filter(function(e){return e!==t})).length&&r&&r.unsubscribe()}})},f.prototype.stopQuery=function(e){this.stopQueryInStore(e),this.removeQuery(e)},f.prototype.removeQuery=function(e){this.getQuery(e).subscriptions.forEach(function(e){return e.unsubscribe()}),this.queries.delete(e)},f.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,i=r.variables,n=r.query,a=e.getLastResult(),u=this.getQuery(e.queryId).newData;if(u)return(0,o.maybeDeepFreeze)({data:u.result,partial:!1});try{var s=this.dataStore.getCache().read({query:n,variables:i,previousResult:a?a.data:void 0,optimistic:t});return(0,o.maybeDeepFreeze)({data:s,partial:!1})}catch(e){return(0,o.maybeDeepFreeze)({data:{},partial:!0})}},f.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;if(!r)throw new Error("ObservableQuery with this id doesn't exist: "+e);t=r}else t=e;var o=t.options,i=o.variables,n=o.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:n}},f.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach(function(t,r){t.invalidated&&t.listeners&&t.listeners.filter(function(e){return!!e}).forEach(function(o){o(e.queryStore.get(r),t.newData)})})},f.prototype.fetchRequest=function(t){var r,o,i=this,a=t.requestId,u=t.queryId,s=t.document,c=t.options,h=t.fetchMoreForQueryId,d=c.variables,f=c.context,p=c.errorPolicy,v=void 0===p?"none":p,m=c.fetchPolicy,Q=this.buildOperationForLink(s,d,y({},f,{forceFetch:!this.queryDeduplication}));return new Promise(function(t,c){i.addFetchQueryPromise(a,t,c);var y=(0,e.execute)(i.deduplicator,Q).subscribe({next:function(e){var t=i.getQuery(u).lastRequestId;if(a>=(t||1)){if("no-cache"!==m)try{i.dataStore.markQueryResult(e,s,d,h,"ignore"===v||"all"===v)}catch(e){return void c(e)}else i.setQuery(u,function(){return{newData:{result:e.data,complete:!0}}});i.queryStore.markQueryResult(u,e,h),i.invalidate(!0,u,h),i.broadcastQueries()}if(e.errors&&"none"===v)c(new n.ApolloError({graphQLErrors:e.errors}));else if("all"===v&&(o=e.errors),h||"no-cache"===m)r=e.data;else try{r=i.dataStore.getCache().read({variables:d,query:s,optimistic:!1})}catch(e){}},error:function(e){i.removeFetchQueryPromise(a),i.setQuery(u,function(e){return{subscriptions:e.subscriptions.filter(function(e){return e!==y})}}),c(e)},complete:function(){i.removeFetchQueryPromise(a),i.setQuery(u,function(e){return{subscriptions:e.subscriptions.filter(function(e){return e!==y})}}),t({data:r,errors:o,loading:!1,networkStatus:l.NetworkStatus.ready,stale:!1})}});i.setQuery(u,function(e){return{subscriptions:e.subscriptions.concat([y])}})})},f.prototype.refetchQueryByName=function(e){var t=this,r=this.queryIdsByName[e];if(void 0!==r)return Promise.all(r.map(function(e){return t.getQuery(e).observableQuery}).filter(function(e){return!!e}).map(function(e){return e.refetch()}))},f.prototype.generateRequestId=function(){var e=this.idCounter;return this.idCounter++,e},f.prototype.getQuery=function(e){return this.queries.get(e)||y({},d)},f.prototype.setQuery=function(e,t){var r=this.getQuery(e),o=y({},r,t(r));this.queries.set(e,o)},f.prototype.invalidate=function(e,t,r){t&&this.setQuery(t,function(){return{invalidated:e}}),r&&this.setQuery(r,function(){return{invalidated:e}})},f.prototype.buildOperationForLink=function(e,t,r){var i=this.dataStore.getCache();return{query:i.transformForLink?i.transformForLink(e):e,variables:t,operationName:(0,o.getOperationName)(e)||void 0,context:y({},r,{cache:i,getCacheKey:function(e){if(i.config)return i.config.dataIdFromObject(e);throw new Error("To use context.getCacheKey, you need to use a cache that has a configurable dataIdFromObject, like apollo-cache-inmemory.")}})}},f}();exports.QueryManager=f;
},{"apollo-link":6,"graphql/language/printer":25,"apollo-link-dedup":98,"apollo-utilities":53,"../scheduler/scheduler":95,"../errors/ApolloError":23,"../util/Observable":66,"../data/mutations":96,"../data/queries":97,"./ObservableQuery":20,"./networkStatus":21,"./types":22}],61:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DataStore=void 0;var t=require("apollo-utilities"),e=function(){function e(t){this.cache=t}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,r,a,i,u){void 0===u&&(u=!1);var o=!(0,t.graphQLResultHasError)(e);u&&(0,t.graphQLResultHasError)(e)&&e.data&&(o=!0),!i&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:r,variables:a})},e.prototype.markSubscriptionResult=function(e,r,a){(0,t.graphQLResultHasError)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:r,variables:a})},e.prototype.markMutationInit=function(t){var e=this;if(t.optimisticResponse){var r;r="function"==typeof t.optimisticResponse?t.optimisticResponse(t.variables):t.optimisticResponse;this.cache.recordOptimisticTransaction(function(a){var i=e.cache;e.cache=a;try{e.markMutationResult({mutationId:t.mutationId,result:{data:r},document:t.document,variables:t.variables,updateQueries:t.updateQueries,update:t.update})}finally{e.cache=i}},t.mutationId)}},e.prototype.markMutationResult=function(e){var r=this;if(!(0,t.graphQLResultHasError)(e.result)){var a=[];a.push({result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),e.updateQueries&&Object.keys(e.updateQueries).filter(function(t){return e.updateQueries[t]}).forEach(function(i){var u=e.updateQueries[i],o=u.query,s=u.updater,n=r.cache.diff({query:o.document,variables:o.variables,returnPartialData:!0,optimistic:!1}),c=n.result;if(n.complete){var p=(0,t.tryFunctionOrLogError)(function(){return s(c,{mutationResult:e.result,queryName:(0,t.getOperationName)(o.document)||void 0,queryVariables:o.variables})});p&&a.push({result:p,dataId:"ROOT_QUERY",query:o.document,variables:o.variables})}}),this.cache.performTransaction(function(t){a.forEach(function(e){return t.write(e)})});var i=e.update;i&&this.cache.performTransaction(function(r){(0,t.tryFunctionOrLogError)(function(){return i(r,e.result)})})}},e.prototype.markMutationComplete=function(t){var e=t.mutationId;t.optimisticResponse&&this.cache.removeOptimistic(e)},e.prototype.markUpdateQueryResult=function(t,e,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:e,query:t})},e.prototype.reset=function(){return this.cache.reset()},e}();exports.DataStore=e;
},{"apollo-utilities":53}],59:[function(require,module,exports) {
exports.version="2.3.5";
},{}],19:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("apollo-link"),t=require("apollo-utilities"),r=require("./core/QueryManager"),i=require("./data/store"),o=require("./version"),n=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s=!1,a=new e.ApolloLink(function(e,r){return e.query=(0,t.removeConnectionDirectiveFromDocument)(e.query),r(e)}),u=function(){function u(e){var r=this;this.defaultOptions={},this.resetStoreCallbacks=[];var n=e.link,u=e.cache,c=e.ssrMode,h=void 0!==c&&c,l=e.ssrForceFetchDelay,y=void 0===l?0:l,p=e.connectToDevTools,d=e.queryDeduplication,f=void 0===d||d,w=e.defaultOptions;if(!n||!u)throw new Error("\n In order to initialize Apollo Client, you must specify link & cache properties on the config object.\n This is part of the required upgrade when migrating from Apollo Client 1.0 to Apollo Client 2.0.\n For more information, please visit:\n https://www.apollographql.com/docs/react/basics/setup.html\n to help you get started.\n ");this.link=a.concat(n),this.cache=u,this.store=new i.DataStore(u),this.disableNetworkFetches=h||y>0,this.queryDeduplication=f,this.ssrMode=h,this.defaultOptions=w||{},y&&setTimeout(function(){return r.disableNetworkFetches=!1},y),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);var b=!(0,t.isProduction)()&&"undefined"!=typeof window&&!window.__APOLLO_CLIENT__;(void 0===p?b:p&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),s||(0,t.isProduction)()||(s=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&void 0===window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&window.navigator&&window.navigator.userAgent.indexOf("Chrome")>-1&&console.debug("Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm")),this.version=o.version}return u.prototype.watchQuery=function(e){return this.initQueryManager(),this.defaultOptions.watchQuery&&(e=n({},this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=n({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},u.prototype.query=function(e){if(this.initQueryManager(),this.defaultOptions.query&&(e=n({},this.defaultOptions.query,e)),"cache-and-network"===e.fetchPolicy)throw new Error("cache-and-network fetchPolicy can only be used with watchQuery");return this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=n({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},u.prototype.mutate=function(e){return this.initQueryManager(),this.defaultOptions.mutate&&(e=n({},this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},u.prototype.subscribe=function(e){return this.initQueryManager(),this.queryManager.startGraphQLSubscription(e)},u.prototype.readQuery=function(e){return this.initProxy().readQuery(e)},u.prototype.readFragment=function(e){return this.initProxy().readFragment(e)},u.prototype.writeQuery=function(e){var t=this.initProxy().writeQuery(e);return this.queryManager.broadcastQueries(),t},u.prototype.writeFragment=function(e){var t=this.initProxy().writeFragment(e);return this.queryManager.broadcastQueries(),t},u.prototype.writeData=function(e){var t=this.initProxy().writeData(e);return this.queryManager.broadcastQueries(),t},u.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},u.prototype.__requestRaw=function(t){return(0,e.execute)(this.link,t)},u.prototype.initQueryManager=function(){var e=this;this.queryManager||(this.queryManager=new r.QueryManager({link:this.link,store:this.store,queryDeduplication:this.queryDeduplication,ssrMode:this.ssrMode,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}}))},u.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager?e.queryManager.clearStore():Promise.resolve(null)}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.queryManager&&e.queryManager.reFetchObservableQueries?e.queryManager.reFetchObservableQueries():Promise.resolve(null)})},u.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},u.prototype.reFetchObservableQueries=function(e){return this.queryManager?this.queryManager.reFetchObservableQueries(e):Promise.resolve(null)},u.prototype.extract=function(e){return this.initProxy().extract(e)},u.prototype.restore=function(e){return this.initProxy().restore(e)},u.prototype.initProxy=function(){return this.proxy||(this.initQueryManager(),this.proxy=this.cache),this.proxy},u}();exports.default=u;
},{"apollo-link":6,"apollo-utilities":53,"./core/QueryManager":60,"./data/store":61,"./version":59}],5:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApolloClient=exports.ApolloError=exports.NetworkStatus=exports.ObservableQuery=exports.printAST=void 0;var e=require("graphql/language/printer");Object.defineProperty(exports,"printAST",{enumerable:!0,get:function(){return e.print}});var r=require("./core/ObservableQuery");Object.defineProperty(exports,"ObservableQuery",{enumerable:!0,get:function(){return r.ObservableQuery}});var t=require("./core/networkStatus");Object.defineProperty(exports,"NetworkStatus",{enumerable:!0,get:function(){return t.NetworkStatus}});var o=require("./core/types");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return o[e]}})});var u=require("./errors/ApolloError");Object.defineProperty(exports,"ApolloError",{enumerable:!0,get:function(){return u.ApolloError}});var n=require("./ApolloClient"),l=p(n);function p(e){return e&&e.__esModule?e:{default:e}}exports.ApolloClient=l.default,exports.default=l.default;
},{"graphql/language/printer":25,"./core/ObservableQuery":20,"./core/networkStatus":21,"./core/types":22,"./errors/ApolloError":23,"./ApolloClient":19}],117:[function(require,module,exports) {
"use strict";function e(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:i(e)}]}}function n(e,n){return{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:i(e)}]}}function i(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return i(e[0]);var n=[];return Object.keys(e).forEach(function(t){var o={kind:"Field",name:{kind:"Name",value:t}},r=i(e[t]);r&&(o.selectionSet=r),n.push(o)}),{kind:"SelectionSet",selections:n}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.queryFromPojo=e,exports.fragmentFromPojo=n;var t=exports.justTypenameQuery={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]};
},{}],104:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApolloCache=void 0;var t=require("apollo-utilities"),e=require("./utils"),r=function(){function r(){}return r.prototype.transformDocument=function(t){return t},r.prototype.transformForLink=function(t){return t},r.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.read({query:t.query,variables:t.variables,optimistic:e})},r.prototype.readFragment=function(e,r){return void 0===r&&(r=!1),this.read({query:(0,t.getFragmentQueryDocument)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:r})},r.prototype.writeQuery=function(t){this.write({dataId:"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables})},r.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:(0,t.getFragmentQueryDocument)(e.fragment,e.fragmentName)})},r.prototype.writeData=function(t){var r=t.id,a=t.data;if(void 0!==r){var i=null;try{i=this.read({rootId:r,optimistic:!1,query:e.justTypenameQuery})}catch(t){}var o=i&&i.__typename||"__ClientData",n=Object.assign({__typename:o},a);this.writeFragment({id:r,fragment:(0,e.fragmentFromPojo)(n,o),data:n})}else this.writeQuery({query:(0,e.queryFromPojo)(a),data:a})},r}();exports.ApolloCache=r;
},{"apollo-utilities":53,"./utils":117}],118:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports.Cache=void 0;e||(exports.Cache=e={});
},{}],106:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Cache");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})});
},{"./Cache":118}],79:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./cache");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})});var r=require("./types");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});
},{"./cache":104,"./types":106}],34:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IntrospectionFragmentMatcher=exports.HeuristicFragmentMatcher=void 0;var e=require("apollo-utilities"),t=!1,n=function(){function n(){}return n.prototype.ensureReady=function(){return Promise.resolve()},n.prototype.canBypassInit=function(){return!0},n.prototype.match=function(n,r,o){var a=o.store.get(n.id);return!a&&"ROOT_QUERY"===n.id||!!a&&(a.__typename?a.__typename===r||((0,e.warnOnceInDevelopment)("You are using the simple (heuristic) fragment matcher, but your queries contain union or interface types.\n Apollo Client will not be able to able to accurately map fragments.To make this error go away, use the IntrospectionFragmentMatcher as described in the docs: https://www.apollographql.com/docs/react/recipes/fragment-matching.html","error"),o.returnPartialData=!0,!0):(t||(console.warn("You're using fragments in your queries, but either don't have the addTypename:\n true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename.\n Please turn on the addTypename option and include __typename when writing fragments so that Apollo Client\n can accurately match fragments."),console.warn("Could not find __typename on Fragment ",r,a),console.warn("DEPRECATION WARNING: using fragments without __typename is unsupported behavior and will be removed in future versions of Apollo client. You should fix this and set addTypename to true now."),(0,e.isTest)()||(t=!0)),o.returnPartialData=!0,!0))},n}();exports.HeuristicFragmentMatcher=n;var r=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,n){if(!this.isReady)throw new Error("FragmentMatcher.match() was called before FragmentMatcher.init()");var r=n.store.get(e.id);if(!r)return!1;if(!r.__typename)throw new Error("Cannot match fragment because __typename property is missing: "+JSON.stringify(r));if(r.__typename===t)return!0;var o=this.possibleTypesMap[t];return!!(o&&o.indexOf(r.__typename)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map(function(e){return e.name}))}),t},e}();exports.IntrospectionFragmentMatcher=r;
},{"apollo-utilities":53}],35:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultNormalizedCacheFactory=e;var t=function(){function t(t){void 0===t&&(t=Object.create(null)),this.data=t}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){this.data[t]=e},t.prototype.delete=function(t){this.data[t]=void 0},t.prototype.clear=function(){this.data=Object.create(null)},t.prototype.replace=function(t){this.data=t||Object.create(null)},t}();function e(e){return new t(e)}exports.ObjectCache=t;
},{}],33:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WriteError=void 0,exports.enhanceErrorWithDocument=i,exports.writeQueryToStore=s,exports.writeResultToStore=c,exports.writeSelectionSetToStore=d;var e=require("graphql/language/printer"),t=require("apollo-utilities"),r=require("./objectCache"),a=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function a(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}}(),n=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return a(t,e),t}(Error);function i(t,r){var a=new o("Error writing result to store for query:\n "+(0,e.print)(r));return a.message+="\n"+t.message,a.stack=t.stack,a}function s(e){var a=e.result,n=e.query,o=e.storeFactory,s=void 0===o?r.defaultNormalizedCacheFactory:o,c=e.store,u=void 0===c?s():c,l=e.variables,f=e.dataIdFromObject,p=e.fragmentMap,v=void 0===p?{}:p,m=e.fragmentMatcherFunction,h=(0,t.getQueryDefinition)(n);l=(0,t.assign)({},(0,t.getDefaultValues)(h),l);try{return d({dataId:"ROOT_QUERY",result:a,selectionSet:h.selectionSet,context:{store:u,storeFactory:s,processedData:{},variables:l,dataIdFromObject:f,fragmentMap:v,fragmentMatcherFunction:m}})}catch(e){throw i(e,n)}}function c(e){var a=e.dataId,n=e.result,o=e.document,s=e.storeFactory,c=void 0===s?r.defaultNormalizedCacheFactory:s,u=e.store,l=void 0===u?c():u,f=e.variables,p=e.dataIdFromObject,v=e.fragmentMatcherFunction,m=(0,t.getOperationDefinition)(o),h=m.selectionSet,y=(0,t.createFragmentMap)((0,t.getFragmentDefinitions)(o));f=(0,t.assign)({},(0,t.getDefaultValues)(m),f);try{return d({result:n,dataId:a,selectionSet:h,context:{store:l,storeFactory:c,processedData:{},variables:f,dataIdFromObject:p,fragmentMap:y,fragmentMatcherFunction:v}})}catch(e){throw i(e,o)}}function d(e){var a=e.result,n=e.dataId,o=e.selectionSet,i=e.context,s=i.variables,c=i.store,u=i.fragmentMap;return o.selections.forEach(function(e){var o=(0,t.shouldInclude)(e,s);if((0,t.isField)(e)){var c=(0,t.resultKeyNameFromField)(e),l=a[c];if(o)if(void 0!==l)p({dataId:n,value:l,field:e,context:i});else!(e.directives&&e.directives.length&&e.directives.some(function(e){return e.name&&"defer"===e.name.value}))&&i.fragmentMatcherFunction&&((0,t.isProduction)()||console.warn("Missing field "+c+" in "+JSON.stringify(a,null,2).substring(0,100)))}else{var f=void 0;if((0,t.isInlineFragment)(e))f=e;else if(!(f=(u||{})[e.name.value]))throw new Error("No fragment named "+e.name.value+".");var v=!0;if(i.fragmentMatcherFunction&&f.typeCondition){var m=(0,t.toIdValue)({id:"self",typename:void 0}),h={store:new r.ObjectCache({self:a}),returnPartialData:!1,hasMissingField:!1,cacheRedirects:{}};v=i.fragmentMatcherFunction(m,f.typeCondition.name.value,h),!(0,t.isProduction)()&&h.returnPartialData&&console.error("WARNING: heuristic fragment matching going on!")}o&&v&&d({result:a,selectionSet:f.selectionSet,dataId:n,context:i})}}),c}function u(e){return"$"===e[0]}function l(e,r,a){var o=a.get(e),i=a.get(r);Object.keys(o).forEach(function(s){var c=o[s],d=i[s];(0,t.isIdValue)(c)&&u(c.id)&&(0,t.isIdValue)(d)&&l(c.id,d.id,a),a.delete(e),a.set(r,n({},o,i))})}function f(e,t,r){if(!r)return!1;if(r[e]){if(r[e].indexOf(t)>=0)return!0;r[e].push(t)}else r[e]=[t];return!1}function p(r){var a,o,i=r.field,s=r.value,c=r.dataId,p=r.context,m=p.variables,h=p.dataIdFromObject,y=p.store,g=(0,t.storeKeyNameFromField)(i,m),b=!1,w="";if(i.selectionSet&&null!==s)if(Array.isArray(s)){a=v(s,c+"."+g,i.selectionSet,p)}else{var F=c+"."+g,I=!0;if(u(F)||(F="$"+F),h){var j=h(s);if(j&&u(j))throw new Error('IDs returned by dataIdFromObject cannot begin with the "$" character.');j&&(F=j,I=!1)}f(F,i,p.processedData)||d({dataId:F,result:s,selectionSet:i.selectionSet,context:p});var O=s.__typename;a=(0,t.toIdValue)({id:F,typename:O},I);var S=(o=y.get(c))&&o[g];if(S!==a&&(0,t.isIdValue)(S)){var x=void 0!==S.typename,M=void 0!==O,_=x&&M&&S.typename!==O;if(I&&!S.generated&&!_)throw new Error("Store error: the application attempted to write an object with no provided id but the store already contains an id of "+S.id+" for this object. The selectionSet that was trying to be written is:\n"+(0,e.print)(i));if(x&&!M)throw new Error("Store error: the application attempted to write an object with no provided typename but the store already contains an object with typename of "+S.typename+" for the object of id "+S.id+". The selectionSet that was trying to be written is:\n"+(0,e.print)(i));S.generated&&(w=S.id,_?I||y.delete(w):b=!0)}}else a=null!=s&&"object"==typeof s?{type:"json",json:s}:s;var D,E=n({},y.get(c),((D={})[g]=a,D));b&&l(w,a.id,y),(o=y.get(c))&&a===o[g]||y.set(c,E)}function v(e,r,a,n){return e.map(function(e,o){if(null===e)return null;var i=r+"."+o;if(Array.isArray(e))return v(e,i,a,n);var s=!0;if(n.dataIdFromObject){var c=n.dataIdFromObject(e);c&&(i=c,s=!1)}return f(i,a,n.processedData)||d({dataId:i,result:e,selectionSet:a,context:n}),(0,t.toIdValue)({id:i,typename:e.__typename},s)})}exports.WriteError=o;
},{"graphql/language/printer":25,"apollo-utilities":53,"./objectCache":35}],103:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.graphql=r,exports.merge=l;var e=require("apollo-utilities");function r(r,a,n,i,l,o){void 0===o&&(o={});var u=(0,e.getMainDefinition)(a),s=(0,e.getFragmentDefinitions)(a),c={fragmentMap:(0,e.createFragmentMap)(s),contextValue:i,variableValues:l,resultMapper:o.resultMapper,resolver:r,fragmentMatcher:o.fragmentMatcher||function(){return!0}};return t(u.selectionSet,n,c)}function t(r,n,i){var o=i.fragmentMap,u=i.contextValue,s=i.variableValues,c={};return r.selections.forEach(function(r){if((0,e.shouldInclude)(r,s))if((0,e.isField)(r)){var f=a(r,n,i),v=(0,e.resultKeyNameFromField)(r);void 0!==f&&(void 0===c[v]?c[v]=f:l(c[v],f))}else{var m=void 0;if((0,e.isInlineFragment)(r))m=r;else if(!(m=o[r.name.value]))throw new Error("No fragment named "+r.name.value);var p=m.typeCondition.name.value;if(i.fragmentMatcher(n,p,u)){var d=t(m.selectionSet,n,i);l(c,d)}}}),i.resultMapper?i.resultMapper(c,n):c}function a(r,a,i){var l=i.variableValues,o=i.contextValue,u=(0,i.resolver)(r.name.value,a,(0,e.argumentsObjectFromField)(r,l),o,{isLeaf:!r.selectionSet,resultKey:(0,e.resultKeyNameFromField)(r),directives:(0,e.getDirectiveInfoFromField)(r,l)});return r.selectionSet?null==u?u:Array.isArray(u)?n(r,u,i):t(r.selectionSet,u,i):u}function n(e,r,a){return r.map(function(r){return null===r?null:Array.isArray(r)?n(e,r,a):t(e.selectionSet,r,a)})}var i=Object.prototype.hasOwnProperty;function l(e,r){null!==r&&"object"==typeof r&&Object.keys(r).forEach(function(t){var a=r[t];i.call(e,t)?l(e[t],a):e[t]=a})}
},{"apollo-utilities":53}],102:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.filter=e,exports.check=n,exports.propType=l;var r=require("./graphql");function e(e,n){return(0,r.graphql)(function(r,e,n,t,u){return e[u.resultKey]},e,n)}function n(e,n){(0,r.graphql)(function(r,e,n,t,u){if(!{}.hasOwnProperty.call(e,u.resultKey))throw new Error(u.resultKey+" missing on "+e);return e[u.resultKey]},e,n,{},{},{fragmentMatcher:function(){return!1}})}var t="<<anonymous>>";function u(r){this.message=r,this.stack=""}u.prototype=Error.prototype;var i={prop:"prop",context:"context",childContext:"child context"};function o(r){function e(e,n,o,l,s,a){if(l=l||t,a=a||o,null==n[o]){var c=i[s];return e?null===n[o]?new u("The "+c+" `"+a+"` is marked as required in `"+l+"`, but its value is `null`."):new u("The "+c+" `"+a+"` is marked as required in `"+l+"`, but its value is `undefined`."):null}return r(n,o,l,s,a)}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function l(r){return o(function(e,t){var u=e[t];try{return u.loading||n(r,u),null}catch(r){return r}})}
},{"./graphql":103}],78:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.propType=exports.check=exports.filter=void 0;var e=require("./utilities");Object.defineProperty(exports,"filter",{enumerable:!0,get:function(){return e.filter}}),Object.defineProperty(exports,"check",{enumerable:!0,get:function(){return e.check}}),Object.defineProperty(exports,"propType",{enumerable:!0,get:function(){return e.propType}});var r=require("./graphql");exports.default=r.graphql;
},{"./utilities":102,"./graphql":103}],32:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ID_KEY=void 0,exports.readQueryFromStore=u,exports.diffQueryAgainstStore=o,exports.assertIdValue=l;var e=require("graphql-anywhere"),r=i(e),t=require("apollo-utilities");function i(e){return e&&e.__esModule?e:{default:e}}var n=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},a=exports.ID_KEY="undefined"!=typeof Symbol?Symbol("id"):"@@id";function u(e){return o(n({},e,{returnPartialData:!1})).result}var s=function(e,r,i,n,a){var u=a.resultKey,s=a.directives;l(r);var o=r.id,d=n.store.get(o),f=e;(i||s)&&(f=(0,t.getStoreKeyName)(f,i,s));var v=void 0;if(d&&void 0===(v=d[f])&&n.cacheRedirects&&(d.__typename||"ROOT_QUERY"===o)){var p=d.__typename||"Query",y=n.cacheRedirects[p];if(y){var h=y[e];h&&(v=h(d,i,{getCacheKey:function(e){return(0,t.toIdValue)({id:n.dataIdFromObject(e),typename:e.__typename})}}))}}if(void 0===v){if(!n.returnPartialData)throw new Error("Can't find field "+f+" on object ("+o+") "+JSON.stringify(d,null,2)+".");return n.hasMissingField=!0,v}return(0,t.isJsonValue)(v)?r.previousResult&&(0,t.isEqual)(r.previousResult[u],v.json)?r.previousResult[u]:v.json:(r.previousResult&&(v=c(v,r.previousResult[u])),v)};function o(e){var i=e.store,n=e.query,a=e.variables,u=e.previousResult,o=e.returnPartialData,l=void 0===o||o,c=e.rootId,f=void 0===c?"ROOT_QUERY":c,v=e.fragmentMatcherFunction,p=e.config,y=(0,t.getQueryDefinition)(n);a=(0,t.assign)({},(0,t.getDefaultValues)(y),a);var h={store:i,returnPartialData:l,dataIdFromObject:p&&p.dataIdFromObject||null,cacheRedirects:p&&p.cacheRedirects||{},hasMissingField:!1},g={type:"id",id:f,previousResult:u};return{result:(0,r.default)(s,n,g,h,a,{fragmentMatcher:v,resultMapper:d}),complete:!h.hasMissingField}}function l(e){if(!(0,t.isIdValue)(e))throw new Error("Encountered a sub-selection on the query, but the store doesn't have an object reference. This should never happen during normal use unless you have custom code that is directly manipulating the store; please file an issue.")}function c(e,r){if((0,t.isIdValue)(e))return n({},e,{previousResult:r});if(Array.isArray(e)){var i=new Map;return Array.isArray(r)&&r.forEach(function(e){e&&e[a]&&i.set(e[a],e)}),e.map(function(e,n){var a=r&&r[n];return(0,t.isIdValue)(e)&&(a=i.get(e.id)||a),c(e,a)})}return e}function d(e,r){if(r.previousResult){var t=Object.keys(e);if(Object.keys(r.previousResult).every(function(e){return t.indexOf(e)>-1})&&t.every(function(t){return f(e[t],r.previousResult[t])}))return r.previousResult}return Object.defineProperty(e,a,{enumerable:!1,configurable:!0,writable:!1,value:r.id}),e}function f(e,r){return e===r||!(!Array.isArray(e)||!Array.isArray(r)||e.length!==r.length)&&e.every(function(e,t){return f(e,r[t])})}
},{"graphql-anywhere":78,"apollo-utilities":53}],36:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.record=r;var t=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var a in e=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},e=function(){function e(t){void 0===t&&(t={}),this.data=t,this.recordedData={}}return e.prototype.record=function(t){t(this);var e=this.recordedData;return this.recordedData={},e},e.prototype.toObject=function(){return t({},this.data,this.recordedData)},e.prototype.get=function(t){return this.recordedData.hasOwnProperty(t)?this.recordedData[t]:this.data[t]},e.prototype.set=function(t,e){this.get(t)!==e&&(this.recordedData[t]=e)},e.prototype.delete=function(t){this.recordedData[t]=void 0},e.prototype.clear=function(){var t=this;Object.keys(this.data).forEach(function(e){return t.delete(e)}),this.recordedData={}},e.prototype.replace=function(e){this.clear(),this.recordedData=t({},e)},e}();function r(t,r){return new e(t).record(r)}exports.RecordingCache=e;
},{}],31:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InMemoryCache=void 0,exports.defaultDataIdFromObject=h;var t=require("apollo-cache"),e=require("apollo-utilities"),r=require("./fragmentMatcher"),a=require("./writeToStore"),o=require("./readFromStore"),i=require("./objectCache"),n=require("./recordingCache"),c=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}}(),s=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},u={fragmentMatcher:new r.HeuristicFragmentMatcher,dataIdFromObject:h,addTypename:!0,storeFactory:i.defaultNormalizedCacheFactory};function h(t){if(t.__typename){if(void 0!==t.id)return t.__typename+":"+t.id;if(void 0!==t._id)return t.__typename+":"+t._id}return null}var d=function(t){function r(e){void 0===e&&(e={});var r=t.call(this)||this;return r.optimistic=[],r.watches=[],r.typenameDocumentCache=new WeakMap,r.silenceBroadcast=!1,r.config=s({},u,e),r.config.customResolvers&&(console.warn("customResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating customResolvers in the next major version."),r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(console.warn("cacheResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating cacheResolvers in the next major version."),r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=r.config.addTypename,r.data=r.config.storeFactory(),r}return c(r,t),r.prototype.restore=function(t){return t&&this.data.replace(t),this},r.prototype.extract=function(t){if(void 0===t&&(t=!1),t&&this.optimistic.length>0){var e=this.optimistic.map(function(t){return t.data});return Object.assign.apply(Object,[{},this.data.toObject()].concat(e))}return this.data.toObject()},r.prototype.read=function(t){return t.rootId&&void 0===this.data.get(t.rootId)?null:(0,o.readQueryFromStore)({store:this.config.storeFactory(this.extract(t.optimistic)),query:this.transformDocument(t.query),variables:t.variables,rootId:t.rootId,fragmentMatcherFunction:this.config.fragmentMatcher.match,previousResult:t.previousResult,config:this.config})},r.prototype.write=function(t){(0,a.writeResultToStore)({dataId:t.dataId,result:t.result,variables:t.variables,document:this.transformDocument(t.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:this.config.fragmentMatcher.match}),this.broadcastWatches()},r.prototype.diff=function(t){return(0,o.diffQueryAgainstStore)({store:this.config.storeFactory(this.extract(t.optimistic)),query:this.transformDocument(t.query),variables:t.variables,returnPartialData:t.returnPartialData,previousResult:t.previousResult,fragmentMatcherFunction:this.config.fragmentMatcher.match,config:this.config})},r.prototype.watch=function(t){var e=this;return this.watches.push(t),function(){e.watches=e.watches.filter(function(e){return e!==t})}},r.prototype.evict=function(t){throw new Error("eviction is not implemented on InMemory Cache")},r.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},r.prototype.removeOptimistic=function(t){var e=this,r=this.optimistic.filter(function(e){return e.id!==t});this.optimistic=[],r.forEach(function(t){e.recordOptimisticTransaction(t.transaction,t.id)}),this.broadcastWatches()},r.prototype.performTransaction=function(t){var e=this.silenceBroadcast;this.silenceBroadcast=!0,t(this),e||(this.silenceBroadcast=!1),this.broadcastWatches()},r.prototype.recordOptimisticTransaction=function(t,e){var r=this;this.silenceBroadcast=!0;var a=(0,n.record)(this.extract(!0),function(e){var a=r.data;r.data=e,r.performTransaction(t),r.data=a});this.optimistic.push({id:e,transaction:t,data:a}),this.silenceBroadcast=!1,this.broadcastWatches()},r.prototype.transformDocument=function(t){if(this.addTypename){var r=this.typenameDocumentCache.get(t);return r||this.typenameDocumentCache.set(t,r=(0,e.addTypenameToDocument)(t)),r}return t},r.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.read({query:t.query,variables:t.variables,optimistic:e})},r.prototype.readFragment=function(t,r){return void 0===r&&(r=!1),this.read({query:this.transformDocument((0,e.getFragmentQueryDocument)(t.fragment,t.fragmentName)),variables:t.variables,rootId:t.id,optimistic:r})},r.prototype.writeQuery=function(t){this.write({dataId:"ROOT_QUERY",result:t.data,query:this.transformDocument(t.query),variables:t.variables})},r.prototype.writeFragment=function(t){this.write({dataId:t.id,result:t.data,query:this.transformDocument((0,e.getFragmentQueryDocument)(t.fragment,t.fragmentName)),variables:t.variables})},r.prototype.broadcastWatches=function(){var t=this;this.silenceBroadcast||this.watches.forEach(function(e){var r=t.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic});e.callback(r)})},r}(t.ApolloCache);exports.InMemoryCache=d;
},{"apollo-cache":79,"apollo-utilities":53,"./fragmentMatcher":34,"./writeToStore":33,"./readFromStore":32,"./objectCache":35,"./recordingCache":36}],7:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./inMemoryCache");Object.defineProperty(exports,"InMemoryCache",{enumerable:!0,get:function(){return e.InMemoryCache}}),Object.defineProperty(exports,"defaultDataIdFromObject",{enumerable:!0,get:function(){return e.defaultDataIdFromObject}});var r=require("./readFromStore");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});var t=require("./writeToStore");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});var n=require("./fragmentMatcher");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});var o=require("./objectCache");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return o[e]}})});var u=require("./recordingCache");Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return u[e]}})});
},{"./inMemoryCache":31,"./readFromStore":32,"./writeToStore":33,"./fragmentMatcher":34,"./objectCache":35,"./recordingCache":36}],77:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.selectURI=exports.serializeFetchParameter=exports.selectHttpOptionsAndBody=exports.createSignalIfSupported=exports.checkFetcher=exports.parseAndCheckHttpResponse=exports.throwServerError=exports.fallbackHttpConfig=void 0;var e=require("graphql/language/printer"),r=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},t={includeQuery:!0,includeExtensions:!1},n={accept:"*/*","content-type":"application/json"},o={method:"POST"},s=exports.fallbackHttpConfig={http:t,headers:n,options:o},a=exports.throwServerError=function(e,r,t){var n=new Error(t);throw n.response=e,n.statusCode=e.status,n.result=r,n},i=exports.parseAndCheckHttpResponse=function(e){return function(r){return r.text().then(function(e){try{return JSON.parse(e)}catch(n){var t=n;return t.response=r,t.statusCode=r.status,t.bodyText=e,Promise.reject(t)}}).then(function(t){return r.status>=300&&a(r,t,"Response not successful: Received status code "+r.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||a(r,t,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),t})}},p=exports.checkFetcher=function(e){if(!e&&"undefined"==typeof fetch){var r="unfetch";throw"undefined"==typeof window&&(r="node-fetch"),new Error("\nfetch is not found globally and no fetcher passed, to fix pass a fetch for\nyour environment like https://www.npmjs.com/package/"+r+".\n\nFor example:\nimport fetch from '"+r+"';\nimport { createHttpLink } from 'apollo-link-http';\n\nconst link = createHttpLink({ uri: '/graphql', fetch: fetch });")}},c=exports.createSignalIfSupported=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}},u=exports.selectHttpOptionsAndBody=function(t,n){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a=r({},n.options,{headers:n.headers,credentials:n.credentials}),i=n.http;o.forEach(function(e){a=r({},a,e.options,{headers:r({},a.headers,e.headers)}),e.credentials&&(a.credentials=e.credentials),i=r({},i,e.http)});var p=t.operationName,c=t.extensions,u=t.variables,l=t.query,f={operationName:p,variables:u};return i.includeExtensions&&(f.extensions=c),i.includeQuery&&(f.query=(0,e.print)(l)),{options:a,body:f}},l=exports.serializeFetchParameter=function(e,r){var t;try{t=JSON.stringify(e)}catch(e){var n=new Error("Network request failed. "+r+" is not serializable: "+e.message);throw n.parseError=e,n}return t},f=exports.selectURI=function(e,r){var t=e.getContext().uri;return t||("function"==typeof r?r(e):r||"/graphql")};
},{"graphql/language/printer":25}],39:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HttpLink=exports.createHttpLink=void 0;var e=require("apollo-link"),t=require("apollo-link-http-common"),r=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r},o=exports.createHttpLink=function(r){void 0===r&&(r={});var o=r.uri,a=void 0===o?"/graphql":o,s=r.fetch,c=r.includeExtensions,u=r.useGETForQueries,p=n(r,["uri","fetch","includeExtensions","useGETForQueries"]);(0,t.checkFetcher)(s),s||(s=fetch);var l={http:{includeExtensions:c},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new e.ApolloLink(function(r){var n,o=(0,t.selectURI)(r,a),c=r.getContext(),p={http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:c.headers},f=(0,t.selectHttpOptionsAndBody)(r,t.fallbackHttpConfig,l,p),h=f.options,d=f.body;if(!h.signal){var v=(0,t.createSignalIfSupported)(),y=v.controller,b=v.signal;(n=y)&&(h.signal=b)}if(u&&!r.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(h.method="GET"),"GET"===h.method){var m=i(o,d),x=m.newURI,O=m.parseError;if(O)return(0,e.fromError)(O);o=x}else try{h.body=(0,t.serializeFetchParameter)(d,"Payload")}catch(O){return(0,e.fromError)(O)}return new e.Observable(function(e){return s(o,h).then(function(e){return r.setContext({response:e}),e}).then((0,t.parseAndCheckHttpResponse)(r)).then(function(t){return e.next(t),e.complete(),t}).catch(function(t){"AbortError"!==t.name&&(t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t))}),function(){n&&n.abort()}})})};function i(e,r){var n=[],o=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in r&&o("query",r.query),r.operationName&&o("operationName",r.operationName),r.variables){var i=void 0;try{i=(0,t.serializeFetchParameter)(r.variables,"Variables map")}catch(e){return{parseError:e}}o("variables",i)}if(r.extensions){var a=void 0;try{a=(0,t.serializeFetchParameter)(r.extensions,"Extensions map")}catch(e){return{parseError:e}}o("extensions",a)}var s="",c=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),c=e.substr(0,u));var p=-1===c.indexOf("?")?"?":"&";return{newURI:c+p+n.join("&")+s}}var a=function(e){function t(t){return e.call(this,o(t).request)||this}return r(t,e),t}(e.ApolloLink);exports.HttpLink=a;
},{"apollo-link":6,"apollo-link-http-common":77}],8:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./httpLink");Object.keys(e).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
},{"./httpLink":39}],54:[function(require,module,exports) {
var define;
var global = arguments[3];
var e,t=arguments[3];!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("apollo-utilities")):"function"==typeof e&&e.amd?e(["exports","apollo-utilities"],n):n(t.graphqlAnywhereAsync={},t.apollo.utilities)}(this,function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e,t){null!==t&&"object"==typeof t&&Object.keys(t).forEach(function(a){var i=t[a];n.call(e,a)?r(e[a],i):e[a]=i})}var a=function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?a(e.value):new n(function(t){t(e.value)}).then(o,l)}u((r=r.apply(e,t||[])).next())})},i=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[0,a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function o(e,n,l){return a(this,void 0,void 0,function(){var u,c,s,f,p,v=this;return i(this,function(h){switch(h.label){case 0:return u=l.fragmentMap,c=l.contextValue,s=l.variableValues,f={},p=function(e){return a(v,void 0,void 0,function(){var p,v,h,d,y;return i(this,function(m){switch(m.label){case 0:return t.shouldInclude(e,s)?t.isField(e)?[4,function(e,n,r){return a(this,void 0,void 0,function(){var a,l,u,c,s,f,p;return i(this,function(i){switch(i.label){case 0:return a=r.variableValues,l=r.contextValue,u=r.resolver,c=e.name.value,s=t.argumentsObjectFromField(e,a),f={isLeaf:!e.selectionSet,resultKey:t.resultKeyNameFromField(e),directives:t.getDirectiveInfoFromField(e,a)},[4,u(c,n,s,l,f)];case 1:return p=i.sent(),e.selectionSet?null==p?[2,p]:Array.isArray(p)?[2,function e(t,n,r){return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?e(t,n,r):o(t.selectionSet,n,r)}))}(e,p,r)]:[2,o(e.selectionSet,p,r)]:[2,p]}})})}(e,n,l)]:[3,2]:[2];case 1:return p=m.sent(),v=t.resultKeyNameFromField(e),void 0!==p&&(void 0===f[v]?f[v]=p:r(f[v],p)),[2];case 2:if(t.isInlineFragment(e))h=e;else if(!(h=u[e.name.value]))throw new Error("No fragment named "+e.name.value);return d=h.typeCondition.name.value,l.fragmentMatcher(n,d,c)?[4,o(h.selectionSet,n,l)]:[3,4];case 3:y=m.sent(),r(f,y),m.label=4;case 4:return[2]}})})},[4,Promise.all(e.selections.map(p))];case 1:return h.sent(),l.resultMapper?[2,l.resultMapper(f,n)]:[2,f]}})})}e.graphql=function(e,n,r,a,i,l){void 0===l&&(l={});var u=t.getMainDefinition(n),c=t.getFragmentDefinitions(n),s={fragmentMap:t.createFragmentMap(c),contextValue:a,variableValues:i,resultMapper:l.resultMapper,resolver:e,fragmentMatcher:l.fragmentMatcher||function(){return!0}};return o(u.selectionSet,r,s)},Object.defineProperty(e,"__esModule",{value:!0})});
},{"apollo-utilities":53}],46:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.removeClientSetsFromDocument=o;var e=require("apollo-utilities"),t={test:function(e){return"client"===e.name.value},remove:!0},r=new Map;function o(o){var n=r.get(o);if(n)return n;(0,e.checkDocument)(o);var u=(0,e.removeDirectivesFromDocument)([t],o);return r.set(o,u),u}
},{"apollo-utilities":53}],9:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.withClientState=void 0;var e=require("apollo-link"),t=require("apollo-utilities"),r=require("graphql-anywhere/lib/async"),n=require("./utils"),i=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=exports.withClientState=function(a){void 0===a&&(a={resolvers:{},defaults:{}});var u=a.resolvers,s=a.defaults,c=a.cache,f=a.typeDefs;return c&&s&&c.writeData({data:s}),new(function(a){function l(){return null!==a&&a.apply(this,arguments)||this}return i(l,a),l.prototype.writeDefaults=function(){c&&s&&c.writeData({data:s})},l.prototype.request=function(i,a){if(void 0===a&&(a=function(){return e.Observable.of({data:{}})}),f){var c="string"==typeof f?f:f.map(function(e){return e.trim()}).join("\n");i.setContext(function(e){var t=e.schemas;return{schemas:(void 0===t?[]:t).concat([{definition:c,directives:"directive @client on FIELD"}])}})}if(!(0,t.hasDirectives)(["client"],i.query))return a(i);var l=(0,n.removeClientSetsFromDocument)(i.query),p=i.query,v=o(((0,t.getMainDefinition)(p)||{}).operation)||"Query",y=function(e,t,r,n,i){void 0===t&&(t={});var o=t[i.resultKey];if(void 0!==o)return o;var a=u[t.__typename||v];if(a){var c=a[e];if(c)return c(t,r,n,i)}return s[e]};return new e.Observable(function(t){l&&(i.query=l);var n=l&&a?a(i):e.Observable.of({data:{}}),o=t.error.bind(t),u=n.subscribe({next:function(e){var n=e.data,a=e.errors,u=i.getContext();(0,r.graphql)(y,p,n,u,i.variables).then(function(e){t.next({data:e,errors:a}),t.complete()}).catch(o)},error:o});return function(){u&&u.unsubscribe()}})},l}(e.ApolloLink))};
},{"apollo-link":6,"apollo-utilities":53,"graphql-anywhere/lib/async":54,"./utils":46}],10:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorLink=exports.onError=void 0;var r=require("apollo-link"),o=function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)o.hasOwnProperty(e)&&(r[e]=o[e])};return function(o,e){function t(){this.constructor=o}r(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}}(),e=exports.onError=function(o){return new r.ApolloLink(function(e,t){return new r.Observable(function(r){var n,i,u;try{n=t(e).subscribe({next:function(n){n.errors&&(u=o({graphQLErrors:n.errors,response:n,operation:e,forward:t}))?i=u.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(n)},error:function(n){(u=o({operation:e,networkError:n,graphQLErrors:n.result&&n.result.errors,forward:t}))?i=u.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(n)},complete:function(){u||r.complete.bind(r)()}})}catch(n){o({networkError:n,operation:e,forward:t}),r.error(n)}return function(){n&&n.unsubscribe(),i&&n.unsubscribe()}})})},t=function(r){function t(o){var t=r.call(this)||this;return t.link=e(o),t}return o(t,r),t.prototype.request=function(r,o){return this.link.request(r,o)},t}(r.ApolloLink);exports.ErrorLink=t;
},{"apollo-link":6}],100:[function(require,module,exports) {
"use strict";function e(e,r){if(!e)throw new Error(r)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],69:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Source=void 0;var e=require("../jsutils/invariant"),t=i(e);function i(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=exports.Source=function e(i,o,s){n(this,e),this.body=i,this.name=o||"GraphQL request",this.locationOffset=s||{line:1,column:1},this.locationOffset.line>0||(0,t.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,t.default)(0,"column in locationOffset is 1-indexed and must be positive")};
},{"../jsutils/invariant":100}],119:[function(require,module,exports) {
"use strict";function e(e,n){for(var o=/\r\n|[\n\r]/g,r=1,t=n+1,i=void 0;(i=o.exec(e.body))&&i.index<n;)r+=1,t=n+1-(i.index+i[0].length);return{line:r,column:t}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getLocation=e;
},{}],112:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.printError=o;var n=require("../language/location");function o(o){var e=[];if(o.nodes)o.nodes.forEach(function(o){o.loc&&e.push(t(o.loc.source,(0,n.getLocation)(o.loc.source,o.loc.start)))});else if(o.source&&o.locations){var r=o.source;o.locations.forEach(function(n){e.push(t(r,n))})}return 0===e.length?o.message:[o.message].concat(e).join("\n\n")+"\n"}function t(n,o){var t=o.line,i=n.locationOffset.line-1,l=e(n,o),u=t+i,s=o.column+l,a=(u-1).toString(),f=u.toString(),g=(u+1).toString(),h=g.length,p=n.body.split(/\r\n|[\n\r]/g);return p[0]=r(n.locationOffset.column-1)+p[0],[n.name+" ("+u+":"+s+")",t>=2&&c(h,a)+": "+p[t-2],c(h,f)+": "+p[t-1],r(2+h+s-1)+"^",t<p.length&&c(h,g)+": "+p[t]].filter(Boolean).join("\n")}function e(n,o){return 1===o.line?n.locationOffset.column-1:0}function r(n){return Array(n+1).join(" ")}function c(n,o){return r(n-o.length)+o}
},{"../language/location":119}],109:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GraphQLError=t;var r=require("./printError"),e=require("../language/location");function t(r,o,a,i,c,u,n){var l=Array.isArray(o)?0!==o.length?o:void 0:o?[o]:void 0,s=a;if(!s&&l){var v=l[0];s=v&&v.loc&&v.loc.source}var p=i;!p&&l&&(p=l.reduce(function(r,e){return e.loc&&r.push(e.loc.start),r},[])),p&&0===p.length&&(p=void 0);var d=void 0;i&&a?d=i.map(function(r){return(0,e.getLocation)(a,r)}):l&&(d=l.reduce(function(r,t){return t.loc&&r.push((0,e.getLocation)(t.loc.source,t.loc.start)),r},[])),Object.defineProperties(this,{message:{value:r,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:c||void 0,enumerable:!0},nodes:{value:l||void 0},source:{value:s||void 0},positions:{value:p||void 0},originalError:{value:u},extensions:{value:n||u&&u.extensions}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}t.prototype=Object.create(Error.prototype,{constructor:{value:t},name:{value:"GraphQLError"},toString:{value:function(){return(0,r.printError)(this)}}});
},{"./printError":112,"../language/location":119}],110:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.syntaxError=e;var r=require("./GraphQLError");function e(e,o,t){return new r.GraphQLError("Syntax Error: "+t,void 0,e,[o])}
},{"./GraphQLError":109}],111:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.locatedError=e;var r=require("./GraphQLError");function e(e,o,s){return e&&Array.isArray(e.path)?e:new r.GraphQLError(e&&e.message,e&&e.nodes||o,e&&e.source,e&&e.positions,s,e)}
},{"./GraphQLError":109}],113:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};exports.formatError=o;var r=require("../jsutils/invariant"),t=n(r);function n(e){return e&&e.__esModule?e:{default:e}}function o(r){return r||(0,t.default)(0,"Received null or undefined error."),e({},r.extensions,{message:r.message||"An unknown error occurred.",locations:r.locations,path:r.path})}
},{"../jsutils/invariant":100}],94:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./GraphQLError");Object.defineProperty(exports,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}});var e=require("./syntaxError");Object.defineProperty(exports,"syntaxError",{enumerable:!0,get:function(){return e.syntaxError}});var t=require("./locatedError");Object.defineProperty(exports,"locatedError",{enumerable:!0,get:function(){return t.locatedError}});var o=require("./printError");Object.defineProperty(exports,"printError",{enumerable:!0,get:function(){return o.printError}});var n=require("./formatError");Object.defineProperty(exports,"formatError",{enumerable:!0,get:function(){return n.formatError}});
},{"./GraphQLError":109,"./syntaxError":110,"./locatedError":111,"./printError":112,"./formatError":113}],101:[function(require,module,exports) {
"use strict";function e(e){for(var r=e.split(/\r\n|[\n\r]/g),l=null,o=1;o<r.length;o++){var f=r[o],u=n(f);if(u<f.length&&(null===l||u<l)&&0===(l=u))break}if(l)for(var i=1;i<r.length;i++)r[i]=r[i].slice(l);for(;r.length>0&&t(r[0]);)r.shift();for(;r.length>0&&t(r[r.length-1]);)r.pop();return r.join("\n")}function n(e){for(var n=0;n<e.length&&(" "===e[n]||"\t"===e[n]);)n++;return n}function t(e){return n(e)===e.length}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],70:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TokenKind=void 0,exports.createLexer=t,exports.getTokenDesc=i;var e=require("../error"),a=require("./blockStringValue"),r=n(a);function n(e){return e&&e.__esModule?e:{default:e}}function t(e,a){var r=new h(l.SOF,0,0,0,0,null);return{source:e,options:a,lastToken:r,token:r,line:1,lineStart:0,advance:c,lookahead:s}}function c(){return this.lastToken=this.token,this.token=this.lookahead()}function s(){var e=this.token;if(e.kind!==l.EOF)do{e=e.next||(e.next=f(this,e))}while(e.kind===l.COMMENT);return e}var l=exports.TokenKind=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function i(e){var a=e.value;return a?e.kind+' "'+a+'"':e.kind}var o=String.prototype.charCodeAt,u=String.prototype.slice;function h(e,a,r,n,t,c,s){this.kind=e,this.start=a,this.end=r,this.line=n,this.column=t,this.value=s,this.prev=c,this.next=null}function d(e){return isNaN(e)?l.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function f(a,r){var n=a.source,t=n.body,c=t.length,s=E(t,r.end,a),i=a.line,u=1+s-a.lineStart;if(s>=c)return new h(l.EOF,c,c,i,u,r);var f=o.call(t,s);if(f<32&&9!==f&&10!==f&&13!==f)throw(0,e.syntaxError)(n,s,"Cannot contain the invalid character "+d(f)+".");switch(f){case 33:return new h(l.BANG,s,s+1,i,u,r);case 35:return v(n,s,i,u,r);case 36:return new h(l.DOLLAR,s,s+1,i,u,r);case 38:return new h(l.AMP,s,s+1,i,u,r);case 40:return new h(l.PAREN_L,s,s+1,i,u,r);case 41:return new h(l.PAREN_R,s,s+1,i,u,r);case 46:if(46===o.call(t,s+1)&&46===o.call(t,s+2))return new h(l.SPREAD,s,s+3,i,u,r);break;case 58:return new h(l.COLON,s,s+1,i,u,r);case 61:return new h(l.EQUALS,s,s+1,i,u,r);case 64:return new h(l.AT,s,s+1,i,u,r);case 91:return new h(l.BRACKET_L,s,s+1,i,u,r);case 93:return new h(l.BRACKET_R,s,s+1,i,u,r);case 123:return new h(l.BRACE_L,s,s+1,i,u,r);case 124:return new h(l.PIPE,s,s+1,i,u,r);case 125:return new h(l.BRACE_R,s,s+1,i,u,r);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return R(n,s,i,u,r);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return k(n,s,f,i,u,r);case 34:return 34===o.call(t,s+1)&&34===o.call(t,s+2)?b(n,s,i,u,r):S(n,s,i,u,r)}throw(0,e.syntaxError)(n,s,w(f))}function w(e){return 39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character "+d(e)+"."}function E(e,a,r){for(var n=e.length,t=a;t<n;){var c=o.call(e,t);if(9===c||32===c||44===c||65279===c)++t;else if(10===c)++t,++r.line,r.lineStart=t;else{if(13!==c)break;10===o.call(e,t+1)?t+=2:++t,++r.line,r.lineStart=t}}return t}function v(e,a,r,n,t){var c=e.body,s=void 0,i=a;do{s=o.call(c,++i)}while(null!==s&&(s>31||9===s));return new h(l.COMMENT,a,i,r,n,t,u.call(c,a+1,i))}function k(a,r,n,t,c,s){var i=a.body,f=n,w=r,E=!1;if(45===f&&(f=o.call(i,++w)),48===f){if((f=o.call(i,++w))>=48&&f<=57)throw(0,e.syntaxError)(a,w,"Invalid number, unexpected digit after 0: "+d(f)+".")}else w=A(a,w,f),f=o.call(i,w);return 46===f&&(E=!0,f=o.call(i,++w),w=A(a,w,f),f=o.call(i,w)),69!==f&&101!==f||(E=!0,43!==(f=o.call(i,++w))&&45!==f||(f=o.call(i,++w)),w=A(a,w,f)),new h(E?l.FLOAT:l.INT,r,w,t,c,s,u.call(i,r,w))}function A(a,r,n){var t=a.body,c=r,s=n;if(s>=48&&s<=57){do{s=o.call(t,++c)}while(s>=48&&s<=57);return c}throw(0,e.syntaxError)(a,c,"Invalid number, expected digit but got: "+d(s)+".")}function S(a,r,n,t,c){for(var s=a.body,i=r+1,f=i,w=0,E="";i<s.length&&null!==(w=o.call(s,i))&&10!==w&&13!==w;){if(34===w)return E+=u.call(s,f,i),new h(l.STRING,r,i+1,n,t,c,E);if(w<32&&9!==w)throw(0,e.syntaxError)(a,i,"Invalid character within String: "+d(w)+".");if(++i,92===w){switch(E+=u.call(s,f,i-1),w=o.call(s,i)){case 34:E+='"';break;case 47:E+="/";break;case 92:E+="\\";break;case 98:E+="\b";break;case 102:E+="\f";break;case 110:E+="\n";break;case 114:E+="\r";break;case 116:E+="\t";break;case 117:var v=p(o.call(s,i+1),o.call(s,i+2),o.call(s,i+3),o.call(s,i+4));if(v<0)throw(0,e.syntaxError)(a,i,"Invalid character escape sequence: \\u"+s.slice(i+1,i+5)+".");E+=String.fromCharCode(v),i+=4;break;default:throw(0,e.syntaxError)(a,i,"Invalid character escape sequence: \\"+String.fromCharCode(w)+".")}f=++i}}throw(0,e.syntaxError)(a,i,"Unterminated string.")}function b(a,n,t,c,s){for(var i=a.body,f=n+3,w=f,E=0,v="";f<i.length&&null!==(E=o.call(i,f));){if(34===E&&34===o.call(i,f+1)&&34===o.call(i,f+2))return v+=u.call(i,w,f),new h(l.BLOCK_STRING,n,f+3,t,c,s,(0,r.default)(v));if(E<32&&9!==E&&10!==E&&13!==E)throw(0,e.syntaxError)(a,f,"Invalid character within String: "+d(E)+".");92===E&&34===o.call(i,f+1)&&34===o.call(i,f+2)&&34===o.call(i,f+3)?(v+=u.call(i,w,f)+'"""',w=f+=4):++f}throw(0,e.syntaxError)(a,f,"Unterminated string.")}function p(e,a,r,n){return C(e)<<12|C(a)<<8|C(r)<<4|C(n)}function C(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function R(e,a,r,n,t){for(var c=e.body,s=c.length,i=a+1,d=0;i!==s&&null!==(d=o.call(c,i))&&(95===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++i;return new h(l.NAME,a,i,r,n,t,u.call(c,a,i))}h.prototype.toJSON=h.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};
},{"../error":94,"./blockStringValue":101}],71:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports.Kind=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",VARIABLE:"Variable",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension",DIRECTIVE_DEFINITION:"DirectiveDefinition"});
},{}],72:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var I=exports.DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});
},{}],43:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parse=o,exports.parseValue=a,exports.parseType=d,exports.parseConstValue=m,exports.parseTypeReference=w,exports.parseNamedType=g;var n=require("./source"),e=require("../error"),i=require("./lexer"),r=require("./kinds"),t=require("./directiveLocation");function o(e,r){var t="string"==typeof e?new n.Source(e):e;if(!(t instanceof n.Source))throw new TypeError("Must provide Source. Received: "+String(t));return u((0,i.createLexer)(t,r||{}))}function a(e,r){var t="string"==typeof e?new n.Source(e):e,o=(0,i.createLexer)(t,r||{});Nn(o,i.TokenKind.SOF);var a=h(o,!1);return Nn(o,i.TokenKind.EOF),a}function d(e,r){var t="string"==typeof e?new n.Source(e):e,o=(0,i.createLexer)(t,r||{});Nn(o,i.TokenKind.SOF);var a=w(o);return Nn(o,i.TokenKind.EOF),a}function c(n){var e=Nn(n,i.TokenKind.NAME);return{kind:r.Kind.NAME,value:e.value,loc:En(n,e)}}function u(n){var e=n.token;Nn(n,i.TokenKind.SOF);var t=[];do{t.push(s(n))}while(!fn(n,i.TokenKind.EOF));return{kind:r.Kind.DOCUMENT,definitions:t,loc:En(n,e)}}function s(n){if(Kn(n,i.TokenKind.NAME))switch(n.token.value){case"query":case"mutation":case"subscription":case"fragment":return k(n);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return M(n)}else{if(Kn(n,i.TokenKind.BRACE_L))return k(n);if(x(n))return M(n)}throw _n(n)}function k(n){if(Kn(n,i.TokenKind.NAME))switch(n.token.value){case"query":case"mutation":case"subscription":return T(n);case"fragment":return O(n)}else if(Kn(n,i.TokenKind.BRACE_L))return T(n);throw _n(n)}function T(n){var e=n.token;if(Kn(n,i.TokenKind.BRACE_L))return{kind:r.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:f(n),loc:En(n,e)};var t=v(n),o=void 0;return Kn(n,i.TokenKind.NAME)&&(o=c(n)),{kind:r.Kind.OPERATION_DEFINITION,operation:t,name:o,variableDefinitions:E(n),directives:D(n,!1),selectionSet:f(n),loc:En(n,e)}}function v(n){var e=Nn(n,i.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw _n(n,e)}function E(n){return Kn(n,i.TokenKind.PAREN_L)?pn(n,i.TokenKind.PAREN_L,l,i.TokenKind.PAREN_R):[]}function l(n){var e=n.token;return{kind:r.Kind.VARIABLE_DEFINITION,variable:K(n),type:(Nn(n,i.TokenKind.COLON),w(n)),defaultValue:fn(n,i.TokenKind.EQUALS)?h(n,!0):void 0,loc:En(n,e)}}function K(n){var e=n.token;return Nn(n,i.TokenKind.DOLLAR),{kind:r.Kind.VARIABLE,name:c(n),loc:En(n,e)}}function f(n){var e=n.token;return{kind:r.Kind.SELECTION_SET,selections:pn(n,i.TokenKind.BRACE_L,N,i.TokenKind.BRACE_R),loc:En(n,e)}}function N(n){return Kn(n,i.TokenKind.SPREAD)?R(n):I(n)}function I(n){var e=n.token,t=c(n),o=void 0,a=void 0;return fn(n,i.TokenKind.COLON)?(o=t,a=c(n)):a=t,{kind:r.Kind.FIELD,alias:o,name:a,arguments:_(n,!1),directives:D(n,!1),selectionSet:Kn(n,i.TokenKind.BRACE_L)?f(n):void 0,loc:En(n,e)}}function _(n,e){var r=e?p:A;return Kn(n,i.TokenKind.PAREN_L)?pn(n,i.TokenKind.PAREN_L,r,i.TokenKind.PAREN_R):[]}function A(n){var e=n.token;return{kind:r.Kind.ARGUMENT,name:c(n),value:(Nn(n,i.TokenKind.COLON),h(n,!1)),loc:En(n,e)}}function p(n){var e=n.token;return{kind:r.Kind.ARGUMENT,name:c(n),value:(Nn(n,i.TokenKind.COLON),m(n)),loc:En(n,e)}}function R(n){var e=n.token;if(Nn(n,i.TokenKind.SPREAD),Kn(n,i.TokenKind.NAME)&&"on"!==n.token.value)return{kind:r.Kind.FRAGMENT_SPREAD,name:L(n),directives:D(n,!1),loc:En(n,e)};var t=void 0;return"on"===n.token.value&&(n.advance(),t=g(n)),{kind:r.Kind.INLINE_FRAGMENT,typeCondition:t,directives:D(n,!1),selectionSet:f(n),loc:En(n,e)}}function O(n){var e=n.token;return In(n,"fragment"),n.options.experimentalFragmentVariables?{kind:r.Kind.FRAGMENT_DEFINITION,name:L(n),variableDefinitions:E(n),typeCondition:(In(n,"on"),g(n)),directives:D(n,!1),selectionSet:f(n),loc:En(n,e)}:{kind:r.Kind.FRAGMENT_DEFINITION,name:L(n),typeCondition:(In(n,"on"),g(n)),directives:D(n,!1),selectionSet:f(n),loc:En(n,e)}}function L(n){if("on"===n.token.value)throw _n(n);return c(n)}function h(n,e){var t=n.token;switch(t.kind){case i.TokenKind.BRACKET_L:return S(n,e);case i.TokenKind.BRACE_L:return B(n,e);case i.TokenKind.INT:return n.advance(),{kind:r.Kind.INT,value:t.value,loc:En(n,t)};case i.TokenKind.FLOAT:return n.advance(),{kind:r.Kind.FLOAT,value:t.value,loc:En(n,t)};case i.TokenKind.STRING:case i.TokenKind.BLOCK_STRING:return C(n);case i.TokenKind.NAME:return"true"===t.value||"false"===t.value?(n.advance(),{kind:r.Kind.BOOLEAN,value:"true"===t.value,loc:En(n,t)}):"null"===t.value?(n.advance(),{kind:r.Kind.NULL,loc:En(n,t)}):(n.advance(),{kind:r.Kind.ENUM,value:t.value,loc:En(n,t)});case i.TokenKind.DOLLAR:if(!e)return K(n)}throw _n(n)}function C(n){var e=n.token;return n.advance(),{kind:r.Kind.STRING,value:e.value,block:e.kind===i.TokenKind.BLOCK_STRING,loc:En(n,e)}}function m(n){return h(n,!0)}function P(n){return h(n,!1)}function S(n,e){var t=n.token,o=e?m:P;return{kind:r.Kind.LIST,values:An(n,i.TokenKind.BRACKET_L,o,i.TokenKind.BRACKET_R),loc:En(n,t)}}function B(n,e){var t=n.token;Nn(n,i.TokenKind.BRACE_L);for(var o=[];!fn(n,i.TokenKind.BRACE_R);)o.push(y(n,e));return{kind:r.Kind.OBJECT,fields:o,loc:En(n,t)}}function y(n,e){var t=n.token;return{kind:r.Kind.OBJECT_FIELD,name:c(n),value:(Nn(n,i.TokenKind.COLON),h(n,e)),loc:En(n,t)}}function D(n,e){for(var r=[];Kn(n,i.TokenKind.AT);)r.push(F(n,e));return r}function F(n,e){var t=n.token;return Nn(n,i.TokenKind.AT),{kind:r.Kind.DIRECTIVE,name:c(n),arguments:_(n,e),loc:En(n,t)}}function w(n){var e=n.token,t=void 0;return fn(n,i.TokenKind.BRACKET_L)?(t=w(n),Nn(n,i.TokenKind.BRACKET_R),t={kind:r.Kind.LIST_TYPE,type:t,loc:En(n,e)}):t=g(n),fn(n,i.TokenKind.BANG)?{kind:r.Kind.NON_NULL_TYPE,type:t,loc:En(n,e)}:t}function g(n){var e=n.token;return{kind:r.Kind.NAMED_TYPE,name:c(n),loc:En(n,e)}}function M(n){var e=x(n)?n.lookahead():n.token;if(e.kind===i.TokenKind.NAME)switch(e.value){case"schema":return Y(n);case"scalar":return b(n);case"type":return V(n);case"interface":return H(n);case"union":return z(n);case"enum":return Z(n);case"input":return en(n);case"extend":return tn(n);case"directive":return kn(n)}throw _n(n,e)}function x(n){return Kn(n,i.TokenKind.STRING)||Kn(n,i.TokenKind.BLOCK_STRING)}function U(n){if(x(n))return C(n)}function Y(n){var e=n.token;In(n,"schema");var t=D(n,!0),o=pn(n,i.TokenKind.BRACE_L,G,i.TokenKind.BRACE_R);return{kind:r.Kind.SCHEMA_DEFINITION,directives:t,operationTypes:o,loc:En(n,e)}}function G(n){var e=n.token,t=v(n);Nn(n,i.TokenKind.COLON);var o=g(n);return{kind:r.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:o,loc:En(n,e)}}function b(n){var e=n.token,i=U(n);In(n,"scalar");var t=c(n),o=D(n,!0);return{kind:r.Kind.SCALAR_TYPE_DEFINITION,description:i,name:t,directives:o,loc:En(n,e)}}function V(n){var e=n.token,i=U(n);In(n,"type");var t=c(n),o=q(n),a=D(n,!0),d=J(n);return{kind:r.Kind.OBJECT_TYPE_DEFINITION,description:i,name:t,interfaces:o,directives:a,fields:d,loc:En(n,e)}}function q(n){var e=[];if("implements"===n.token.value){n.advance(),fn(n,i.TokenKind.AMP);do{e.push(g(n))}while(fn(n,i.TokenKind.AMP)||n.options.allowLegacySDLImplementsInterfaces&&Kn(n,i.TokenKind.NAME))}return e}function J(n){return n.options.allowLegacySDLEmptyFields&&Kn(n,i.TokenKind.BRACE_L)&&n.lookahead().kind===i.TokenKind.BRACE_R?(n.advance(),n.advance(),[]):Kn(n,i.TokenKind.BRACE_L)?pn(n,i.TokenKind.BRACE_L,X,i.TokenKind.BRACE_R):[]}function X(n){var e=n.token,t=U(n),o=c(n),a=Q(n);Nn(n,i.TokenKind.COLON);var d=w(n),u=D(n,!0);return{kind:r.Kind.FIELD_DEFINITION,description:t,name:o,arguments:a,type:d,directives:u,loc:En(n,e)}}function Q(n){return Kn(n,i.TokenKind.PAREN_L)?pn(n,i.TokenKind.PAREN_L,j,i.TokenKind.PAREN_R):[]}function j(n){var e=n.token,t=U(n),o=c(n);Nn(n,i.TokenKind.COLON);var a=w(n),d=void 0;fn(n,i.TokenKind.EQUALS)&&(d=m(n));var u=D(n,!0);return{kind:r.Kind.INPUT_VALUE_DEFINITION,description:t,name:o,type:a,defaultValue:d,directives:u,loc:En(n,e)}}function H(n){var e=n.token,i=U(n);In(n,"interface");var t=c(n),o=D(n,!0),a=J(n);return{kind:r.Kind.INTERFACE_TYPE_DEFINITION,description:i,name:t,directives:o,fields:a,loc:En(n,e)}}function z(n){var e=n.token,i=U(n);In(n,"union");var t=c(n),o=D(n,!0),a=W(n);return{kind:r.Kind.UNION_TYPE_DEFINITION,description:i,name:t,directives:o,types:a,loc:En(n,e)}}function W(n){var e=[];if(fn(n,i.TokenKind.EQUALS)){fn(n,i.TokenKind.PIPE);do{e.push(g(n))}while(fn(n,i.TokenKind.PIPE))}return e}function Z(n){var e=n.token,i=U(n);In(n,"enum");var t=c(n),o=D(n,!0),a=$(n);return{kind:r.Kind.ENUM_TYPE_DEFINITION,description:i,name:t,directives:o,values:a,loc:En(n,e)}}function $(n){return Kn(n,i.TokenKind.BRACE_L)?pn(n,i.TokenKind.BRACE_L,nn,i.TokenKind.BRACE_R):[]}function nn(n){var e=n.token,i=U(n),t=c(n),o=D(n,!0);return{kind:r.Kind.ENUM_VALUE_DEFINITION,description:i,name:t,directives:o,loc:En(n,e)}}function en(n){var e=n.token,i=U(n);In(n,"input");var t=c(n),o=D(n,!0),a=rn(n);return{kind:r.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:t,directives:o,fields:a,loc:En(n,e)}}function rn(n){return Kn(n,i.TokenKind.BRACE_L)?pn(n,i.TokenKind.BRACE_L,j,i.TokenKind.BRACE_R):[]}function tn(n){var e=n.lookahead();if(e.kind===i.TokenKind.NAME)switch(e.value){case"scalar":return on(n);case"type":return an(n);case"interface":return dn(n);case"union":return cn(n);case"enum":return un(n);case"input":return sn(n)}throw _n(n,e)}function on(n){var e=n.token;In(n,"extend"),In(n,"scalar");var i=c(n),t=D(n,!0);if(0===t.length)throw _n(n);return{kind:r.Kind.SCALAR_TYPE_EXTENSION,name:i,directives:t,loc:En(n,e)}}function an(n){var e=n.token;In(n,"extend"),In(n,"type");var i=c(n),t=q(n),o=D(n,!0),a=J(n);if(0===t.length&&0===o.length&&0===a.length)throw _n(n);return{kind:r.Kind.OBJECT_TYPE_EXTENSION,name:i,interfaces:t,directives:o,fields:a,loc:En(n,e)}}function dn(n){var e=n.token;In(n,"extend"),In(n,"interface");var i=c(n),t=D(n,!0),o=J(n);if(0===t.length&&0===o.length)throw _n(n);return{kind:r.Kind.INTERFACE_TYPE_EXTENSION,name:i,directives:t,fields:o,loc:En(n,e)}}function cn(n){var e=n.token;In(n,"extend"),In(n,"union");var i=c(n),t=D(n,!0),o=W(n);if(0===t.length&&0===o.length)throw _n(n);return{kind:r.Kind.UNION_TYPE_EXTENSION,name:i,directives:t,types:o,loc:En(n,e)}}function un(n){var e=n.token;In(n,"extend"),In(n,"enum");var i=c(n),t=D(n,!0),o=$(n);if(0===t.length&&0===o.length)throw _n(n);return{kind:r.Kind.ENUM_TYPE_EXTENSION,name:i,directives:t,values:o,loc:En(n,e)}}function sn(n){var e=n.token;In(n,"extend"),In(n,"input");var i=c(n),t=D(n,!0),o=rn(n);if(0===t.length&&0===o.length)throw _n(n);return{kind:r.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:t,fields:o,loc:En(n,e)}}function kn(n){var e=n.token,t=U(n);In(n,"directive"),Nn(n,i.TokenKind.AT);var o=c(n),a=Q(n);In(n,"on");var d=Tn(n);return{kind:r.Kind.DIRECTIVE_DEFINITION,description:t,name:o,arguments:a,locations:d,loc:En(n,e)}}function Tn(n){fn(n,i.TokenKind.PIPE);var e=[];do{e.push(vn(n))}while(fn(n,i.TokenKind.PIPE));return e}function vn(n){var e=n.token,i=c(n);if(t.DirectiveLocation.hasOwnProperty(i.value))return i;throw _n(n,e)}function En(n,e){if(!n.options.noLocation)return new ln(e,n.lastToken,n.source)}function ln(n,e,i){this.start=n.start,this.end=e.end,this.startToken=n,this.endToken=e,this.source=i}function Kn(n,e){return n.token.kind===e}function fn(n,e){var i=n.token.kind===e;return i&&n.advance(),i}function Nn(n,r){var t=n.token;if(t.kind===r)return n.advance(),t;throw(0,e.syntaxError)(n.source,t.start,"Expected "+r+", found "+(0,i.getTokenDesc)(t))}function In(n,r){var t=n.token;if(t.kind===i.TokenKind.NAME&&t.value===r)return n.advance(),t;throw(0,e.syntaxError)(n.source,t.start,'Expected "'+r+'", found '+(0,i.getTokenDesc)(t))}function _n(n,r){var t=r||n.token;return(0,e.syntaxError)(n.source,t.start,"Unexpected "+(0,i.getTokenDesc)(t))}function An(n,e,i,r){Nn(n,e);for(var t=[];!fn(n,r);)t.push(i(n));return t}function pn(n,e,i,r){Nn(n,e);for(var t=[i(n)];!fn(n,r);)t.push(i(n));return t}ln.prototype.toJSON=ln.prototype.inspect=function(){return{start:this.start,end:this.end}};
},{"./source":69,"../error":94,"./lexer":70,"./kinds":71,"./directiveLocation":72}],11:[function(require,module,exports) {
var e=require("graphql/language/parser"),r=e.parse;function n(e){return e.replace(/[\s,]+/g," ").trim()}var t={},a={};function o(e){return n(e.source.body.substring(e.start,e.end))}function i(){t={},a={}}var c=!0;function l(e){for(var r={},n=[],t=0;t<e.definitions.length;t++){var i=e.definitions[t];if("FragmentDefinition"===i.kind){var l=i.name.value,s=o(i.loc);a.hasOwnProperty(l)&&!a[l][s]?(c&&console.warn("Warning: fragment with name "+l+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"),a[l][s]=!0):a.hasOwnProperty(l)||(a[l]={},a[l][s]=!0),r[s]||(r[s]=!0,n.push(i))}else n.push(i)}return e.definitions=n,e}function s(){c=!1}function u(e,r){var n=Object.prototype.toString.call(e);if("[object Array]"===n)return e.map(function(e){return u(e,r)});if("[object Object]"!==n)throw new Error("Unexpected input.");r&&e.loc&&delete e.loc,e.loc&&(delete e.loc.startToken,delete e.loc.endToken);var t,a,o,i=Object.keys(e);for(t in i)i.hasOwnProperty(t)&&(a=e[i[t]],"[object Object]"!==(o=Object.prototype.toString.call(a))&&"[object Array]"!==o||(e[i[t]]=u(a,!0)));return e}var f=!1;function p(e){var a=n(e);if(t[a])return t[a];var o=r(e,{experimentalFragmentVariables:f});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");return o=u(o=l(o),!1),t[a]=o,o}function d(){f=!0}function m(){f=!1}function g(){for(var e=Array.prototype.slice.call(arguments),r=e[0],n="string"==typeof r?r:r[0],t=1;t<e.length;t++)e[t]&&e[t].kind&&"Document"===e[t].kind?n+=e[t].loc.source.body:n+=e[t],n+=r[t];return p(n)}g.default=g,g.resetCaches=i,g.disableFragmentWarnings=s,g.enableExperimentalFragmentVariables=d,g.disableExperimentalFragmentVariables=m,module.exports=g;
},{"graphql/language/parser":43}],3:[function(require,module,exports) {
"use strict";var e=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])};return function(r,t){function o(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}(),r=this&&this.__assign||Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e};function t(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),t(require("apollo-client")),t(require("apollo-link")),t(require("apollo-cache-inmemory"));var o=require("apollo-link"),n=require("apollo-link-http");exports.HttpLink=n.HttpLink;var i=require("apollo-link-state"),a=require("apollo-link-error"),c=require("apollo-cache-inmemory");exports.InMemoryCache=c.InMemoryCache;var l=require("graphql-tag");exports.gql=l.default;var s=require("apollo-client"),u=function(t){function l(e){void 0===e&&(e={});var l=e.request,s=e.uri,u=e.credentials,p=e.headers,h=e.fetchOptions,f=e.clientState,d=e.cacheRedirects,v=e.onError,b=e.cache;if(b&&d)throw new Error("Incompatible cache configuration. If providing `cache` then configure the provided instance with `cacheRedirects` instead.");b||(b=d?new c.InMemoryCache({cacheRedirects:d}):new c.InMemoryCache);var g=!!f&&i.withClientState(r({},f,{cache:b})),m=v?a.onError(v):a.onError(function(e){var r=e.graphQLErrors,t=e.networkError;r&&r.map(function(e){var r=e.message,t=e.locations,o=e.path;return console.log("[GraphQL error]: Message: "+r+", Location: "+t+", Path: "+o)}),t&&console.log("[Network error]: "+t)}),y=!!l&&new o.ApolloLink(function(e,r){return new o.Observable(function(t){var o;return Promise.resolve(e).then(function(e){return l(e)}).then(function(){o=r(e).subscribe({next:t.next.bind(t),error:t.error.bind(t),complete:t.complete.bind(t)})}).catch(t.error.bind(t)),function(){o&&o.unsubscribe()}})}),w=new n.HttpLink({uri:s||"/graphql",fetchOptions:h||{},credentials:u||"same-origin",headers:p||{}}),q=o.ApolloLink.from([m,y,g,w].filter(function(e){return!!e}));return t.call(this,{cache:b,link:q})||this}return e(l,t),l}(s.default);exports.default=u;
},{"apollo-client":5,"apollo-link":6,"apollo-cache-inmemory":7,"apollo-link-http":8,"apollo-link-state":9,"apollo-link-error":10,"graphql-tag":11}],1:[function(require,module,exports) {
"use strict";var e=require("apollo-boost"),o=l(e);function l(e){return e&&e.__esModule?e:{default:e}}window.ApolloClient=o.default;
},{"apollo-boost":3}]},{},[1], null)
//# sourceMappingURL=/index.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment