@txstate-mws/graphql-server
Version:
A simple graphql server designed to work with typegraphql.
1,787 lines (1,786 loc) • 4.36 MB
JavaScript
!function(e) {
var t = {};
function n(r) {
if (t[r])
return t[r].exports;
var i = t[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(i.exports, i, i.exports, n),
i.l = !0,
i.exports
}
n.m = e,
n.c = t,
n.d = function(e, t, r) {
n.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: r
})
}
,
n.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}),
Object.defineProperty(e, "__esModule", {
value: !0
})
}
,
n.t = function(e, t) {
if (1 & t && (e = n(e)),
8 & t)
return e;
if (4 & t && "object" == typeof e && e && e.__esModule)
return e;
var r = Object.create(null);
if (n.r(r),
Object.defineProperty(r, "default", {
enumerable: !0,
value: e
}),
2 & t && "string" != typeof e)
for (var i in e)
n.d(r, i, function(t) {
return e[t]
}
.bind(null, i));
return r
}
,
n.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
}
: function() {
return e
}
;
return n.d(t, "a", t),
t
}
,
n.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
,
n.p = "/",
n(n.s = 535)
}([function(e, t, n) {
"use strict";
n.d(t, "S", (function() {
return C
}
)),
n.d(t, "x", (function() {
return w
}
)),
n.d(t, "R", (function() {
return S
}
)),
n.d(t, "w", (function() {
return _
}
)),
n.d(t, "N", (function() {
return k
}
)),
n.d(t, "u", (function() {
return A
}
)),
n.d(t, "H", (function() {
return T
}
)),
n.d(t, "o", (function() {
return O
}
)),
n.d(t, "T", (function() {
return F
}
)),
n.d(t, "y", (function() {
return N
}
)),
n.d(t, "E", (function() {
return I
}
)),
n.d(t, "l", (function() {
return M
}
)),
n.d(t, "F", (function() {
return j
}
)),
n.d(t, "m", (function() {
return L
}
)),
n.d(t, "J", (function() {
return P
}
)),
n.d(t, "q", (function() {
return R
}
)),
n.d(t, "L", (function() {
return B
}
)),
n.d(t, "s", (function() {
return U
}
)),
n.d(t, "G", (function() {
return z
}
)),
n.d(t, "n", (function() {
return V
}
)),
n.d(t, "O", (function() {
return q
}
)),
n.d(t, "v", (function() {
return H
}
)),
n.d(t, "I", (function() {
return W
}
)),
n.d(t, "p", (function() {
return G
}
)),
n.d(t, "D", (function() {
return K
}
)),
n.d(t, "k", (function() {
return J
}
)),
n.d(t, "C", (function() {
return Q
}
)),
n.d(t, "j", (function() {
return Y
}
)),
n.d(t, "d", (function() {
return $
}
)),
n.d(t, "e", (function() {
return X
}
)),
n.d(t, "U", (function() {
return Z
}
)),
n.d(t, "z", (function() {
return ee
}
)),
n.d(t, "M", (function() {
return te
}
)),
n.d(t, "t", (function() {
return ne
}
)),
n.d(t, "B", (function() {
return re
}
)),
n.d(t, "K", (function() {
return ie
}
)),
n.d(t, "r", (function() {
return oe
}
)),
n.d(t, "A", (function() {
return ae
}
)),
n.d(t, "g", (function() {
return ce
}
)),
n.d(t, "f", (function() {
return le
}
)),
n.d(t, "i", (function() {
return me
}
)),
n.d(t, "P", (function() {
return ge
}
)),
n.d(t, "c", (function() {
return ye
}
)),
n.d(t, "h", (function() {
return ve
}
)),
n.d(t, "a", (function() {
return Ee
}
)),
n.d(t, "b", (function() {
return De
}
)),
n.d(t, "Q", (function() {
return we
}
));
var r = n(54)
, i = n(25)
, o = n(4)
, a = n(36)
, s = n(56)
, u = n(40)
, c = n(8)
, l = n(49)
, p = n(47)
, f = n(38)
, d = n(31);
function h(e) {
return e
}
var m = n(46)
, g = n(43)
, y = n(2)
, v = n(1)
, b = n(15)
, E = n(210);
function x(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)
}
}
function D(e, t, n) {
return t && x(e.prototype, t),
n && x(e, n),
e
}
function C(e) {
return S(e) || k(e) || T(e) || F(e) || I(e) || j(e) || P(e) || B(e)
}
function w(e) {
if (!C(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL type."));
return e
}
function S(e) {
return Object(p.a)(e, ce)
}
function _(e) {
if (!S(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL Scalar type."));
return e
}
function k(e) {
return Object(p.a)(e, le)
}
function A(e) {
if (!k(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL Object type."));
return e
}
function T(e) {
return Object(p.a)(e, ye)
}
function O(e) {
if (!T(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL Interface type."));
return e
}
function F(e) {
return Object(p.a)(e, ve)
}
function N(e) {
if (!F(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL Union type."));
return e
}
function I(e) {
return Object(p.a)(e, Ee)
}
function M(e) {
if (!I(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL Enum type."));
return e
}
function j(e) {
return Object(p.a)(e, De)
}
function L(e) {
if (!j(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL Input Object type."));
return e
}
function P(e) {
return Object(p.a)(e, $)
}
function R(e) {
if (!P(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL List type."));
return e
}
function B(e) {
return Object(p.a)(e, X)
}
function U(e) {
if (!B(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL Non-Null type."));
return e
}
function z(e) {
return S(e) || I(e) || j(e) || Z(e) && z(e.ofType)
}
function V(e) {
if (!z(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL input type."));
return e
}
function q(e) {
return S(e) || k(e) || T(e) || F(e) || I(e) || Z(e) && q(e.ofType)
}
function H(e) {
if (!q(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL output type."));
return e
}
function W(e) {
return S(e) || I(e)
}
function G(e) {
if (!W(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL leaf type."));
return e
}
function K(e) {
return k(e) || T(e) || F(e)
}
function J(e) {
if (!K(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL composite type."));
return e
}
function Q(e) {
return T(e) || F(e)
}
function Y(e) {
if (!Q(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL abstract type."));
return e
}
function $(e) {
if (!(this instanceof $))
return new $(e);
this.ofType = w(e)
}
function X(e) {
if (!(this instanceof X))
return new X(e);
this.ofType = ne(e)
}
function Z(e) {
return P(e) || B(e)
}
function ee(e) {
if (!Z(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL wrapping type."));
return e
}
function te(e) {
return C(e) && !B(e)
}
function ne(e) {
if (!te(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL nullable type."));
return e
}
function re(e) {
if (e)
return B(e) ? e.ofType : e
}
function ie(e) {
return S(e) || k(e) || T(e) || F(e) || I(e) || j(e)
}
function oe(e) {
if (!ie(e))
throw new Error("Expected ".concat(Object(o.a)(e), " to be a GraphQL named type."));
return e
}
function ae(e) {
if (e) {
for (var t = e; Z(t); )
t = t.ofType;
return t
}
}
function se(e) {
return "function" == typeof e ? e() : e
}
function ue(e) {
return e && e.length > 0 ? e : void 0
}
$.prototype.toString = function() {
return "[" + String(this.ofType) + "]"
}
,
$.prototype.toJSON = function() {
return this.toString()
}
,
Object.defineProperty($.prototype, i.c, {
get: function() {
return "GraphQLList"
}
}),
Object(m.a)($),
X.prototype.toString = function() {
return String(this.ofType) + "!"
}
,
X.prototype.toJSON = function() {
return this.toString()
}
,
Object.defineProperty(X.prototype, i.c, {
get: function() {
return "GraphQLNonNull"
}
}),
Object(m.a)(X);
var ce = function() {
function e(e) {
var t, n, r, i = null !== (t = e.parseValue) && void 0 !== t ? t : h;
this.name = e.name,
this.description = e.description,
this.specifiedByUrl = e.specifiedByUrl,
this.serialize = null !== (n = e.serialize) && void 0 !== n ? n : h,
this.parseValue = i,
this.parseLiteral = null !== (r = e.parseLiteral) && void 0 !== r ? r : function(e) {
return i(Object(E.a)(e))
}
,
this.extensions = e.extensions && Object(u.a)(e.extensions),
this.astNode = e.astNode,
this.extensionASTNodes = ue(e.extensionASTNodes),
"string" == typeof e.name || Object(c.a)(0, "Must provide name."),
null == e.specifiedByUrl || "string" == typeof e.specifiedByUrl || Object(c.a)(0, "".concat(this.name, ' must provide "specifiedByUrl" as a string, ') + "but got: ".concat(Object(o.a)(e.specifiedByUrl), ".")),
null == e.serialize || "function" == typeof e.serialize || Object(c.a)(0, "".concat(this.name, ' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),
e.parseLiteral && ("function" == typeof e.parseValue && "function" == typeof e.parseLiteral || Object(c.a)(0, "".concat(this.name, ' must provide both "parseValue" and "parseLiteral" functions.')))
}
var t = e.prototype;
return t.toConfig = function() {
var e;
return {
name: this.name,
description: this.description,
specifiedByUrl: this.specifiedByUrl,
serialize: this.serialize,
parseValue: this.parseValue,
parseLiteral: this.parseLiteral,
extensions: this.extensions,
astNode: this.astNode,
extensionASTNodes: null !== (e = this.extensionASTNodes) && void 0 !== e ? e : []
}
}
,
t.toString = function() {
return this.name
}
,
t.toJSON = function() {
return this.toString()
}
,
D(e, [{
key: i.c,
get: function() {
return "GraphQLScalarType"
}
}]),
e
}();
Object(m.a)(ce);
var le = function() {
function e(e) {
this.name = e.name,
this.description = e.description,
this.isTypeOf = e.isTypeOf,
this.extensions = e.extensions && Object(u.a)(e.extensions),
this.astNode = e.astNode,
this.extensionASTNodes = ue(e.extensionASTNodes),
this._fields = fe.bind(void 0, e),
this._interfaces = pe.bind(void 0, e),
"string" == typeof e.name || Object(c.a)(0, "Must provide name."),
null == e.isTypeOf || "function" == typeof e.isTypeOf || Object(c.a)(0, "".concat(this.name, ' must provide "isTypeOf" as a function, ') + "but got: ".concat(Object(o.a)(e.isTypeOf), "."))
}
var t = e.prototype;
return t.getFields = function() {
return "function" == typeof this._fields && (this._fields = this._fields()),
this._fields
}
,
t.getInterfaces = function() {
return "function" == typeof this._interfaces && (this._interfaces = this._interfaces()),
this._interfaces
}
,
t.toConfig = function() {
return {
name: this.name,
description: this.description,
interfaces: this.getInterfaces(),
fields: he(this.getFields()),
isTypeOf: this.isTypeOf,
extensions: this.extensions,
astNode: this.astNode,
extensionASTNodes: this.extensionASTNodes || []
}
}
,
t.toString = function() {
return this.name
}
,
t.toJSON = function() {
return this.toString()
}
,
D(e, [{
key: i.c,
get: function() {
return "GraphQLObjectType"
}
}]),
e
}();
function pe(e) {
var t, n = null !== (t = se(e.interfaces)) && void 0 !== t ? t : [];
return Array.isArray(n) || Object(c.a)(0, "".concat(e.name, " interfaces must be an Array or a function which returns an Array.")),
n
}
function fe(e) {
var t = se(e.fields);
return de(t) || Object(c.a)(0, "".concat(e.name, " fields must be an object with field names as keys or a function which returns such an object.")),
Object(s.a)(t, (function(t, n) {
var i;
de(t) || Object(c.a)(0, "".concat(e.name, ".").concat(n, " field config must be an object.")),
!("isDeprecated"in t) || Object(c.a)(0, "".concat(e.name, ".").concat(n, ' should provide "deprecationReason" instead of "isDeprecated".')),
null == t.resolve || "function" == typeof t.resolve || Object(c.a)(0, "".concat(e.name, ".").concat(n, " field resolver must be a function if ") + "provided, but got: ".concat(Object(o.a)(t.resolve), "."));
var a = null !== (i = t.args) && void 0 !== i ? i : {};
de(a) || Object(c.a)(0, "".concat(e.name, ".").concat(n, " args must be an object with argument names as keys."));
var s = Object(r.a)(a).map((function(e) {
var t = e[0]
, n = e[1];
return {
name: t,
description: n.description,
type: n.type,
defaultValue: n.defaultValue,
extensions: n.extensions && Object(u.a)(n.extensions),
astNode: n.astNode
}
}
));
return {
name: n,
description: t.description,
type: t.type,
args: s,
resolve: t.resolve,
subscribe: t.subscribe,
isDeprecated: null != t.deprecationReason,
deprecationReason: t.deprecationReason,
extensions: t.extensions && Object(u.a)(t.extensions),
astNode: t.astNode
}
}
))
}
function de(e) {
return Object(d.a)(e) && !Array.isArray(e)
}
function he(e) {
return Object(s.a)(e, (function(e) {
return {
description: e.description,
type: e.type,
args: me(e.args),
resolve: e.resolve,
subscribe: e.subscribe,
deprecationReason: e.deprecationReason,
extensions: e.extensions,
astNode: e.astNode
}
}
))
}
function me(e) {
return Object(l.a)(e, (function(e) {
return e.name
}
), (function(e) {
return {
description: e.description,
type: e.type,
defaultValue: e.defaultValue,
extensions: e.extensions,
astNode: e.astNode
}
}
))
}
function ge(e) {
return B(e.type) && void 0 === e.defaultValue
}
Object(m.a)(le);
var ye = function() {
function e(e) {
this.name = e.name,
this.description = e.description,
this.resolveType = e.resolveType,
this.extensions = e.extensions && Object(u.a)(e.extensions),
this.astNode = e.astNode,
this.extensionASTNodes = ue(e.extensionASTNodes),
this._fields = fe.bind(void 0, e),
this._interfaces = pe.bind(void 0, e),
"string" == typeof e.name || Object(c.a)(0, "Must provide name."),
null == e.resolveType || "function" == typeof e.resolveType || Object(c.a)(0, "".concat(this.name, ' must provide "resolveType" as a function, ') + "but got: ".concat(Object(o.a)(e.resolveType), "."))
}
var t = e.prototype;
return t.getFields = function() {
return "function" == typeof this._fields && (this._fields = this._fields()),
this._fields
}
,
t.getInterfaces = function() {
return "function" == typeof this._interfaces && (this._interfaces = this._interfaces()),
this._interfaces
}
,
t.toConfig = function() {
var e;
return {
name: this.name,
description: this.description,
interfaces: this.getInterfaces(),
fields: he(this.getFields()),
resolveType: this.resolveType,
extensions: this.extensions,
astNode: this.astNode,
extensionASTNodes: null !== (e = this.extensionASTNodes) && void 0 !== e ? e : []
}
}
,
t.toString = function() {
return this.name
}
,
t.toJSON = function() {
return this.toString()
}
,
D(e, [{
key: i.c,
get: function() {
return "GraphQLInterfaceType"
}
}]),
e
}();
Object(m.a)(ye);
var ve = function() {
function e(e) {
this.name = e.name,
this.description = e.description,
this.resolveType = e.resolveType,
this.extensions = e.extensions && Object(u.a)(e.extensions),
this.astNode = e.astNode,
this.extensionASTNodes = ue(e.extensionASTNodes),
this._types = be.bind(void 0, e),
"string" == typeof e.name || Object(c.a)(0, "Must provide name."),
null == e.resolveType || "function" == typeof e.resolveType || Object(c.a)(0, "".concat(this.name, ' must provide "resolveType" as a function, ') + "but got: ".concat(Object(o.a)(e.resolveType), "."))
}
var t = e.prototype;
return t.getTypes = function() {
return "function" == typeof this._types && (this._types = this._types()),
this._types
}
,
t.toConfig = function() {
var e;
return {
name: this.name,
description: this.description,
types: this.getTypes(),
resolveType: this.resolveType,
extensions: this.extensions,
astNode: this.astNode,
extensionASTNodes: null !== (e = this.extensionASTNodes) && void 0 !== e ? e : []
}
}
,
t.toString = function() {
return this.name
}
,
t.toJSON = function() {
return this.toString()
}
,
D(e, [{
key: i.c,
get: function() {
return "GraphQLUnionType"
}
}]),
e
}();
function be(e) {
var t = se(e.types);
return Array.isArray(t) || Object(c.a)(0, "Must provide Array of types or a function which returns such an array for Union ".concat(e.name, ".")),
t
}
Object(m.a)(ve);
var Ee = function() {
function e(e) {
var t, n;
this.name = e.name,
this.description = e.description,
this.extensions = e.extensions && Object(u.a)(e.extensions),
this.astNode = e.astNode,
this.extensionASTNodes = ue(e.extensionASTNodes),
this._values = (t = this.name,
de(n = e.values) || Object(c.a)(0, "".concat(t, " values must be an object with value names as keys.")),
Object(r.a)(n).map((function(e) {
var n = e[0]
, r = e[1];
return de(r) || Object(c.a)(0, "".concat(t, ".").concat(n, ' must refer to an object with a "value" key ') + "representing an internal value but got: ".concat(Object(o.a)(r), ".")),
!("isDeprecated"in r) || Object(c.a)(0, "".concat(t, ".").concat(n, ' should provide "deprecationReason" instead of "isDeprecated".')),
{
name: n,
description: r.description,
value: void 0 !== r.value ? r.value : n,
isDeprecated: null != r.deprecationReason,
deprecationReason: r.deprecationReason,
extensions: r.extensions && Object(u.a)(r.extensions),
astNode: r.astNode
}
}
))),
this._valueLookup = new Map(this._values.map((function(e) {
return [e.value, e]
}
))),
this._nameLookup = Object(a.a)(this._values, (function(e) {
return e.name
}
)),
"string" == typeof e.name || Object(c.a)(0, "Must provide name.")
}
var t = e.prototype;
return t.getValues = function() {
return this._values
}
,
t.getValue = function(e) {
return this._nameLookup[e]
}
,
t.serialize = function(e) {
var t = this._valueLookup.get(e);
if (void 0 === t)
throw new y.a('Enum "'.concat(this.name, '" cannot represent value: ').concat(Object(o.a)(e)));
return t.name
}
,
t.parseValue = function(e) {
if ("string" != typeof e) {
var t = Object(o.a)(e);
throw new y.a('Enum "'.concat(this.name, '" cannot represent non-string value: ').concat(t, ".") + xe(this, t))
}
var n = this.getValue(e);
if (null == n)
throw new y.a('Value "'.concat(e, '" does not exist in "').concat(this.name, '" enum.') + xe(this, e));
return n.value
}
,
t.parseLiteral = function(e, t) {
if (e.kind !== v.a.ENUM) {
var n = Object(b.print)(e);
throw new y.a('Enum "'.concat(this.name, '" cannot represent non-enum value: ').concat(n, ".") + xe(this, n),e)
}
var r = this.getValue(e.value);
if (null == r) {
var i = Object(b.print)(e);
throw new y.a('Value "'.concat(i, '" does not exist in "').concat(this.name, '" enum.') + xe(this, i),e)
}
return r.value
}
,
t.toConfig = function() {
var e, t = Object(l.a)(this.getValues(), (function(e) {
return e.name
}
), (function(e) {
return {
description: e.description,
value: e.value,
deprecationReason: e.deprecationReason,
extensions: e.extensions,
astNode: e.astNode
}
}
));
return {
name: this.name,
description: this.description,
values: t,
extensions: this.extensions,
astNode: this.astNode,
extensionASTNodes: null !== (e = this.extensionASTNodes) && void 0 !== e ? e : []
}
}
,
t.toString = function() {
return this.name
}
,
t.toJSON = function() {
return this.toString()
}
,
D(e, [{
key: i.c,
get: function() {
return "GraphQLEnumType"
}
}]),
e
}();
function xe(e, t) {
var n = e.getValues().map((function(e) {
return e.name
}
))
, r = Object(g.a)(t, n);
return Object(f.a)("the enum value", r)
}
Object(m.a)(Ee);
var De = function() {
function e(e) {
this.name = e.name,
this.description = e.description,
this.extensions = e.extensions && Object(u.a)(e.extensions),
this.astNode = e.astNode,
this.extensionASTNodes = ue(e.extensionASTNodes),
this._fields = Ce.bind(void 0, e),
"string" == typeof e.name || Object(c.a)(0, "Must provide name.")
}
var t = e.prototype;
return t.getFields = function() {
return "function" == typeof this._fields && (this._fields = this._fields()),
this._fields
}
,
t.toConfig = function() {
var e, t = Object(s.a)(this.getFields(), (function(e) {
return {
description: e.description,
type: e.type,
defaultValue: e.defaultValue,
extensions: e.extensions,
astNode: e.astNode
}
}
));
return {
name: this.name,
description: this.description,
fields: t,
extensions: this.extensions,
astNode: this.astNode,
extensionASTNodes: null !== (e = this.extensionASTNodes) && void 0 !== e ? e : []
}
}
,
t.toString = function() {
return this.name
}
,
t.toJSON = function() {
return this.toString()
}
,
D(e, [{
key: i.c,
get: function() {
return "GraphQLInputObjectType"
}
}]),
e
}();
function Ce(e) {
var t = se(e.fields);
return de(t) || Object(c.a)(0, "".concat(e.name, " fields must be an object with field names as keys or a function which returns such an object.")),
Object(s.a)(t, (function(t, n) {
return !("resolve"in t) || Object(c.a)(0, "".concat(e.name, ".").concat(n, " field has a resolve property, but Input Types cannot define resolvers.")),
{
name: n,
description: t.description,
type: t.type,
defaultValue: t.defaultValue,
extensions: t.extensions && Object(u.a)(t.extensions),
astNode: t.astNode
}
}
))
}
function we(e) {
return B(e.type) && void 0 === e.defaultValue
}
Object(m.a)(De)
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return r
}
));
var r = Object.freeze({
NAME: "Name",
DOCUMENT: "Document",
OPERATION_DEFINITION: "OperationDefinition",
VARIABLE_DEFINITION: "VariableDefinition",
SELECTION_SET: "SelectionSet",
FIELD: "Field",
ARGUMENT: "Argument",
FRAGMENT_SPREAD: "FragmentSpread",
INLINE_FRAGMENT: "InlineFragment",
FRAGMENT_DEFINITION: "FragmentDefinition",
VARIABLE: "Variable",
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",
DIRECTIVE_DEFINITION: "DirectiveDefinition",
SCHEMA_EXTENSION: "SchemaExtension",
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"
})
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return g
}
)),
n.d(t, "b", (function() {
return y
}
));
var r = n(31)
, i = n(25)
, o = n(94)
, a = n(137);
function s(e) {
return (s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
}
: function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
}
)(e)
}
function u(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)
}
}
function c(e, t) {
return !t || "object" !== s(t) && "function" != typeof t ? l(e) : t
}
function l(e) {
if (void 0 === e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}
function p(e) {
var t = "function" == typeof Map ? new Map : void 0;
return (p = function(e) {
if (null === e || (n = e,
-1 === Function.toString.call(n).indexOf("[native code]")))
return e;
var n;
if ("function" != typeof e)
throw new TypeError("Super expression must either be null or a function");
if (void 0 !== t) {
if (t.has(e))
return t.get(e);
t.set(e, r)
}
function r() {
return f(e, arguments, m(this).constructor)
}
return r.prototype = Object.create(e.prototype, {
constructor: {
value: r,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
h(r, e)
}
)(e)
}
function f(e, t, n) {
return (f = d() ? Reflect.construct : function(e, t, n) {
var r = [null];
r.push.apply(r, t);
var i = new (Function.bind.apply(e, r));
return n && h(i, n.prototype),
i
}
).apply(null, arguments)
}
function d() {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham)
return !1;
if ("function" == typeof Proxy)
return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], (function() {}
))),
!0
} catch (e) {
return !1
}
}
function h(e, t) {
return (h = Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t,
e
}
)(e, t)
}
function m(e) {
return (m = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
}
)(e)
}
var g = function(e) {
!function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}),
t && h(e, t)
}(g, e);
var t, n, a, s, p, f = (t = g,
n = d(),
function() {
var e, r = m(t);
if (n) {
var i = m(this).constructor;
e = Reflect.construct(r, arguments, i)
} else
e = r.apply(this, arguments);
return c(this, e)
}
);
function g(e, t, n, i, a, s, u) {
var p, d, h, m, y;
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, g),
y = f.call(this, e);
var v, b = Array.isArray(t) ? 0 !== t.length ? t : void 0 : t ? [t] : void 0, E = n;
!E && b && (E = null === (v = b[0].loc) || void 0 === v ? void 0 : v.source);
var x, D = i;
!D && b && (D = b.reduce((function(e, t) {
return t.loc && e.push(t.loc.start),
e
}
), [])),
D && 0 === D.length && (D = void 0),
i && n ? x = i.map((function(e) {
return Object(o.a)(n, e)
}
)) : b && (x = b.reduce((function(e, t) {
return t.loc && e.push(Object(o.a)(t.loc.source, t.loc.start)),
e
}
), []));
var C = u;
if (null == C && null != s) {
var w = s.extensions;
Object(r.a)(w) && (C = w)
}
return Object.defineProperties(l(y), {
name: {
value: "GraphQLError"
},
message: {
value: e,
enumerable: !0,
writable: !0
},
locations: {
value: null !== (p = x) && void 0 !== p ? p : void 0,
enumerable: null != x
},
path: {
value: null != a ? a : void 0,
enumerable: null != a
},
nodes: {
value: null != b ? b : void 0
},
source: {
value: null !== (d = E) && void 0 !== d ? d : void 0
},
positions: {
value: null !== (h = D) && void 0 !== h ? h : void 0
},
originalError: {
value: s
},
extensions: {
value: null !== (m = C) && void 0 !== m ? m : void 0,
enumerable: null != C
}
}),
(null == s ? void 0 : s.stack) ? (Object.defineProperty(l(y), "stack", {
value: s.stack,
writable: !0,
configurable: !0
}),
c(y)) : (Error.captureStackTrace ? Error.captureStackTrace(l(y), g) : Object.defineProperty(l(y), "stack", {
value: Error().stack,
writable: !0,
configurable: !0
}),
y)
}
return a = g,
(s = [{
key: "toString",
value: function() {
return y(this)
}
}, {
key: i.c,
get: function() {
return "Object"
}
}]) && u(a.prototype, s),
p && u(a, p),
g
}(p(Error));
function y(e) {
var t = e.message;
if (e.nodes)
for (var n = 0, r = e.nodes; n < r.length; n++) {
var i = r[n];
i.loc && (t += "\n\n" + Object(a.a)(i.loc))
}
else if (e.source && e.locations)
for (var o = 0, s = e.locations; o < s.length; o++) {
var u = s[o];
t += "\n\n" + Object(a.b)(e.source, u)
}
return t
}
}
, function(e, t, n) {
"use strict";
e.exports = n(252)
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return o
}
));
var r = n(93);
function i(e) {
return (i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
}
: function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
}
)(e)
}
function o(e) {
return a(e, [])
}
function a(e, t) {
switch (i(e)) {
case "string":
return JSON.stringify(e);
case "function":
return e.name ? "[function ".concat(e.name, "]") : "[function]";
case "object":
return null === e ? "null" : function(e, t) {
if (-1 !== t.indexOf(e))
return "[Circular]";
var n = [].concat(t, [e])
, i = function(e) {
var t = e[String(r.a)];
if ("function" == typeof t)
return t;
if ("function" == typeof e.inspect)
return e.inspect
}(e);
if (void 0 !== i) {
var o = i.call(e);
if (o !== e)
return "string" == typeof o ? o : a(o, n)
} else if (Array.isArray(e))
return function(e, t) {
if (0 === e.length)
return "[]";
if (t.length > 2)
return "[Array]";
for (var n = Math.min(10, e.length), r = e.length - n, i = [], o = 0; o < n; ++o)
i.push(a(e[o], t));
1 === r ? i.push("... 1 more item") : r > 1 && i.push("... ".concat(r, " more items"));
return "[" + i.join(", ") + "]"
}(e, n);
return function(e, t) {
var n = Object.keys(e);
if (0 === n.length)
return "{}";
if (t.length > 2)
return "[" + function(e) {
var t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
if ("Object" === t && "function" == typeof e.constructor) {
var n = e.constructor.name;
if ("string" == typeof n && "" !== n)
return n
}
return t
}(e) + "]";
return "{ " + n.map((function(n) {
return n + ": " + a(e[n], t)
}
)).join(", ") + " }"
}(e, n)
}(e, t);
default:
return String(e)
}
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return r
}
));
var r = 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(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return ae
}
)),
n.d(t, "b", (function() {
return L
}
)),
n.d(t, "c", (function() {
return v
}
)),
n.d(t, "d", (function() {
return R
}
)),
n.d(t, "e", (function() {
return x
}
)),
n.d(t, "f", (function() {
return c
}
)),
n.d(t, "g", (function() {
return U
}
)),
n.d(t, "h", (function() {
return K
}
)),
n.d(t, "i", (function() {
return I
}
)),
n.d(t, "j", (function() {
return $
}
)),
n.d(t, "k", (function() {
return z
}
)),
n.d(t, "l", (function() {
return X
}
)),
n.d(t, "m", (function() {
return ue
}
)),
n.d(t, "n", (function() {
return pe
}
)),
n.d(t, "o", (function() {
return oe
}
)),
n.d(t, "p", (function() {
return de
}
)),
n.d(t, "q", (function() {
return j
}
)),
n.d(t, "r", (function() {
return F
}
)),
n.d(t, "s", (function() {
return P
}
)),
n.d(t, "t", (function() {
return q
}
)),
n.d(t, "u", (function() {
return M
}
)),
n.d(t, "v", (function() {
return ve
}
)),
n.d(t, "w", (function() {
return re
}
)),
n.d(t, "x", (function() {
return Q
}
)),
n.d(t, "y", (function() {
return Z
}
)),
n.d(t, "z", (function() {
return ee
}
)),
n.d(t, "A", (function() {
return te
}
)),
n.d(t, "B", (function() {
return ne
}
)),
n.d(t, "C", (function() {
return B
}
)),
n.d(t, "D", (function() {
return se
}
)),
n.d(t, "E", (function() {
return ce
}
)),
n.d(t, "F", (function() {
return le
}
)),
n.d(t, "G", (function() {
return fe
}
)),
n.d(t, "H", (function() {
return he
}
)),
n.d(t, "I", (function() {
return me
}
)),
n.d(t, "J", (function() {
return ge
}
)),
n.d(t, "K", (function() {
return ye
}
)),
n.d(t, "L", (function() {
return V
}
)),
n.d(t, "M", (function() {
return l
}
)),
n.d(t, "N", (function() {
return H
}
)),
n.d(t, "O", (function() {
return N
}
)),
n.d(t, "P", (function() {
return W
}
)),
n.d(t, "Q", (function() {
return G
}
)),
n.d(t, "R", (function() {
return J
}
)),
n.d(t, "S", (function() {
return b
}
)),
n.d(t, "T", (function() {
return _
}
)),
n.d(t, "U", (function() {
return s
}
)),
n.d(t, "V", (function() {
return S
}
)),
n.d(t, "W", (function() {
return E
}
)),
n.d(t, "X", (function() {
return O
}
)),
n.d(t, "Y", (function() {
return h
}
)),
n.d(t, "Z", (function() {
return p
}
)),
n.d(t, "ab", (function() {
return y
}
)),
n.d(t, "bb", (function() {
return d
}
)),
n.d(t, "cb", (function() {
return w
}
)),
n.d(t, "db", (function() {
return u
}
)),
n.d(t, "eb", (function() {
return f
}
)),
n.d(t, "fb", (function() {
return k
}
)),
n.d(t, "gb", (function() {
return C
}
)),
n.d(t, "hb", (function() {
return D
}
));
var r = n(19)
, i = n(63)
, o = n(10)
, a = n(109)
, s = function(e) {
return function() {
return e
}
}(!0)
, u = function() {};
var c = function(e) {
return e
};
"function" == typeof Symbol && Symbol.asyncIterator && Symbol.asyncIterator;
function l(e, t, n) {
if (!t(e))
throw new Error(n)
}
var p = function(e, t) {
Object(i.a)(e, t),
Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(t).forEach((function(n) {
e[n] = t[n]
}
))
}
, f = function(e, t) {
var n;
return (n = []).concat.apply(n, t.map(e))
};
function d(e, t) {
var n = e.indexOf(t);
n >= 0 && e.splice(n, 1)
}
function h(e) {
var t = !1;
return function() {
t || (t = !0,
e())
}
}
var m = function(e) {
throw e
}
, g = function(e) {
return {
value: e,
done: !0
}
};
function y(e, t, n) {
void 0 === t && (t = m),
void 0 === n && (n = "iterator");
var r = {
meta: {
name: n
},
next: e,
throw: t,
return: g,
isSagaIterator: !0
};
return "undefined" != typeof Symbol && (r[Symbol.iterator] = function() {
return r
}
),
r
}
function v(e, t) {
var n = t.sagaStack;
console.error(e),
console.error(n)
}
var b = function(e) {
return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: " + e + "\n")
}
, E = function(e) {
return Array.apply(null, new Array(e))
}
, x = function(e) {
return function(t) {
return e(Object.defineProperty(t, r.f, {
value: !0
}))
}
}
, D = function(e) {
return e === r.k
}
, C = function(e) {
return e === r.j
}
, w = function(e) {
return D(e) || C(e)
};
function S(e, t) {
var n = Object.keys(e)
, r = n.length;
var i, a = 0, s = Object(o.a)(e) ? E(r) : {}, c = {};
return n.forEach((function(e) {
var n = function(n, o) {
i || (o || w(n) ? (t.cancel(),
t(n, o)) : (s[e] = n,
++a === r && (i = !0,
t(s))))
};
n.cancel = u,
c[e] = n
}
)),
t.cancel = function() {
i || (i = !0,
n.forEach((function(e) {
return c[e].cancel()
}
)))
}
,
c
}
function _(e) {
return {
name: e.name || "anonymous",
location: k(e)
}
}
function k(e) {
return e[r.g]
}
var A = {
isEmpty: s,
put: u,
take: u
};
function T(e, t) {
void 0 === e && (e = 10);
var n = new Array(e)
, r = 0
, i = 0
, o = 0
, a = function(t) {
n[i] = t,
i = (i + 1) % e,
r++
}
, s = function() {
if (0 != r) {
var t = n[o];
return n[o] = null,
r--,
o = (o + 1) % e,
t
}
}
, u = function() {
for (var e = []; r; )
e.push(s());
return e
};
return {
isEmpty: function() {
return 0 == r
},
put: function(s) {
var c;