Files
30-seconds-of-code/node_modules/gatsby-graphiql-explorer/app.js
2019-08-20 15:52:05 +02:00

38 lines
874 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!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=122)}([function(e,t,n){"use strict";n.d(t,"R",function(){return v}),n.d(t,"w",function(){return g}),n.d(t,"Q",function(){return y}),n.d(t,"v",function(){return b}),n.d(t,"M",function(){return w}),n.d(t,"t",function(){return k}),n.d(t,"G",function(){return x}),n.d(t,"n",function(){return T}),n.d(t,"S",function(){return E}),n.d(t,"x",function(){return _}),n.d(t,"D",function(){return S}),n.d(t,"k",function(){return O}),n.d(t,"E",function(){return C}),n.d(t,"l",function(){return N}),n.d(t,"I",function(){return A}),n.d(t,"p",function(){return D}),n.d(t,"K",function(){return I}),n.d(t,"r",function(){return L}),n.d(t,"F",function(){return j}),n.d(t,"m",function(){return M}),n.d(t,"N",function(){return F}),n.d(t,"u",function(){return R}),n.d(t,"H",function(){return P}),n.d(t,"o",function(){return V}),n.d(t,"C",function(){return U}),n.d(t,"j",function(){return B}),n.d(t,"B",function(){return q}),n.d(t,"i",function(){return z}),n.d(t,"d",function(){return K}),n.d(t,"e",function(){return H}),n.d(t,"T",function(){return G}),n.d(t,"y",function(){return W}),n.d(t,"L",function(){return Q}),n.d(t,"s",function(){return Y}),n.d(t,"A",function(){return J}),n.d(t,"J",function(){return $}),n.d(t,"q",function(){return X}),n.d(t,"z",function(){return Z}),n.d(t,"g",function(){return te}),n.d(t,"f",function(){return ne}),n.d(t,"O",function(){return oe}),n.d(t,"c",function(){return ae}),n.d(t,"h",function(){return le}),n.d(t,"a",function(){return ue}),n.d(t,"b",function(){return se}),n.d(t,"P",function(){return ce});var r=n(24),i=n(20),o=n(22),a=n(23),l=n(3),u=n(4),s=n(17),c=n(37),f=n(1),p=n(60);function d(e){return(d="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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){m(e,t,n[t])})}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return y(e)||w(e)||x(e)||E(e)||S(e)||C(e)||A(e)||I(e)}function g(e){return v(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL type.")),e}function y(e){return Object(a.a)(e,te)}function b(e){return y(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL Scalar type.")),e}function w(e){return Object(a.a)(e,ne)}function k(e){return w(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL Object type.")),e}function x(e){return Object(a.a)(e,ae)}function T(e){return x(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL Interface type.")),e}function E(e){return Object(a.a)(e,le)}function _(e){return E(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL Union type.")),e}function S(e){return Object(a.a)(e,ue)}function O(e){return S(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL Enum type.")),e}function C(e){return Object(a.a)(e,se)}function N(e){return C(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL Input Object type.")),e}function A(e){return Object(a.a)(e,K)}function D(e){return A(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL List type.")),e}function I(e){return Object(a.a)(e,H)}function L(e){return I(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL Non-Null type.")),e}function j(e){return y(e)||S(e)||C(e)||G(e)&&j(e.ofType)}function M(e){return j(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL input type.")),e}function F(e){return y(e)||w(e)||x(e)||E(e)||S(e)||G(e)&&F(e.ofType)}function R(e){return F(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL output type.")),e}function P(e){return y(e)||S(e)}function V(e){return P(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL leaf type.")),e}function U(e){return w(e)||x(e)||E(e)}function B(e){return U(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL composite type.")),e}function q(e){return x(e)||E(e)}function z(e){return q(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL abstract type.")),e}function K(e){if(!(this instanceof K))return new K(e);this.ofType=g(e)}function H(e){if(!(this instanceof H))return new H(e);this.ofType=Y(e)}function G(e){return A(e)||I(e)}function W(e){return G(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL wrapping type.")),e}function Q(e){return v(e)&&!I(e)}function Y(e){return Q(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL nullable type.")),e}function J(e){if(e)return I(e)?e.ofType:e}function $(e){return y(e)||w(e)||x(e)||E(e)||S(e)||C(e)}function X(e){return $(e)||Object(u.a)(0,"Expected ".concat(Object(l.a)(e)," to be a GraphQL named type.")),e}function Z(e){if(e){for(var t=e;G(t);)t=t.ofType;return t}}function ee(e){return"function"==typeof e?e():e}K.prototype.toString=function(){return"["+String(this.ofType)+"]"},Object(i.a)(K),H.prototype.toString=function(){return String(this.ofType)+"!"},Object(i.a)(H);var te=function(){function e(e){this.name=e.name,this.description=e.description,this.serialize=e.serialize,this.parseValue=e.parseValue||function(e){return e},this.parseLiteral=e.parseLiteral||p.a,this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,"string"!=typeof e.name&&Object(u.a)(0,"Must provide name."),"function"!=typeof e.serialize&&Object(u.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.parseValue||e.parseLiteral)&&("function"!=typeof e.parseValue||"function"!=typeof e.parseLiteral)&&Object(u.a)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" ')+"functions.")}return e.prototype.toString=function(){return this.name},e}();Object(o.a)(te),Object(i.a)(te);var ne=function(){function e(e){this.name=e.name,this.description=e.description,this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.isTypeOf=e.isTypeOf,this._fields=re.bind(void 0,e),this._interfaces=function(e){var t=ee(e.interfaces)||[];return Array.isArray(t)||Object(u.a)(0,"".concat(e.name," interfaces must be an Array or a function which returns ")+"an Array."),t}.bind(void 0,e),"string"!=typeof e.name&&Object(u.a)(0,"Must provide name."),null!=e.isTypeOf&&"function"!=typeof e.isTypeOf&&Object(u.a)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(l.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.toString=function(){return this.name},e}();function re(e){var t=ee(e.fields)||{};return ie(t)||Object(u.a)(0,"".concat(e.name," fields must be an object with field names as keys or a ")+"function which returns such an object."),Object(c.a)(t,function(t,n){ie(t)||Object(u.a)(0,"".concat(e.name,".").concat(n," field config must be an object")),t.hasOwnProperty("isDeprecated")&&Object(u.a)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" ')+'instead of "isDeprecated".'),null!=t.resolve&&"function"!=typeof t.resolve&&Object(u.a)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(l.a)(t.resolve),"."));var i=t.args||{};ie(i)||Object(u.a)(0,"".concat(e.name,".").concat(n," args must be an object with argument ")+"names as keys.");var o=Object(r.a)(i).map(function(e){var t=e[0],n=e[1];return{name:t,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,astNode:n.astNode}});return h({},t,{isDeprecated:Boolean(t.deprecationReason),name:n,args:o})})}function ie(e){return e&&"object"===d(e)&&!Array.isArray(e)}function oe(e){return I(e.type)&&void 0===e.defaultValue}Object(o.a)(ne),Object(i.a)(ne);var ae=function(){function e(e){this.name=e.name,this.description=e.description,this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.resolveType=e.resolveType,this._fields=re.bind(void 0,e),"string"!=typeof e.name&&Object(u.a)(0,"Must provide name."),null!=e.resolveType&&"function"!=typeof e.resolveType&&Object(u.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(l.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toString=function(){return this.name},e}();Object(o.a)(ae),Object(i.a)(ae);var le=function(){function e(e){this.name=e.name,this.description=e.description,this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.resolveType=e.resolveType,this._types=function(e){var t=ee(e.types)||[];return Array.isArray(t)||Object(u.a)(0,"Must provide Array of types or a function which returns "+"such an array for Union ".concat(e.name,".")),t}.bind(void 0,e),"string"!=typeof e.name&&Object(u.a)(0,"Must provide name."),null!=e.resolveType&&"function"!=typeof e.resolveType&&Object(u.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(l.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toString=function(){return this.name},e}();Object(o.a)(le),Object(i.a)(le);var ue=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._values=(t=this,ie(n=e.values)||Object(u.a)(0,"".concat(t.name," 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 ie(r)||Object(u.a)(0,"".concat(t.name,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(l.a)(r),".")),r.hasOwnProperty("isDeprecated")&&Object(u.a)(0,"".concat(t.name,".").concat(n,' should provide "deprecationReason" instead ')+'of "isDeprecated".'),{name:n,description:r.description,isDeprecated:Boolean(r.deprecationReason),deprecationReason:r.deprecationReason,astNode:r.astNode,value:r.hasOwnProperty("value")?r.value:n}})),this._valueLookup=new Map(this._values.map(function(e){return[e.value,e]})),this._nameLookup=Object(s.a)(this._values,function(e){return e.name}),"string"!=typeof e.name&&Object(u.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(t)return t.name},t.parseValue=function(e){if("string"==typeof e){var t=this.getValue(e);if(t)return t.value}},t.parseLiteral=function(e,t){if(e.kind===f.Kind.ENUM){var n=this.getValue(e.value);if(n)return n.value}},t.toString=function(){return this.name},e}();Object(o.a)(ue),Object(i.a)(ue);var se=function(){function e(e){this.name=e.name,this.description=e.description,this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._fields=function(e){var t=ee(e.fields)||{};return ie(t)||Object(u.a)(0,"".concat(e.name," fields must be an object with field names as keys or a ")+"function which returns such an object."),Object(c.a)(t,function(t,n){return t.hasOwnProperty("resolve")&&Object(u.a)(0,"".concat(e.name,".").concat(n," field has a resolve property, but ")+"Input Types cannot define resolvers."),h({},t,{name:n})})}.bind(void 0,e),"string"!=typeof e.name&&Object(u.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.toString=function(){return this.name},e}();function ce(e){return I(e.type)&&void 0===e.defaultValue}Object(o.a)(se),Object(i.a)(se)},function(e,t,n){"use strict";n.r(t),n.d(t,"Kind",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 o});var r=n(61),i=n(33);function o(e,t,n,r,a,l,u){var s=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,c=n;if(!c&&s){var f=s[0];c=f&&f.loc&&f.loc.source}var p,d=r;!d&&s&&(d=s.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),d&&0===d.length&&(d=void 0),r&&n?p=r.map(function(e){return Object(i.a)(n,e)}):s&&(p=s.reduce(function(e,t){return t.loc&&e.push(Object(i.a)(t.loc.source,t.loc.start)),e},[]));var h=u||l&&l.extensions;Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:p||void 0,enumerable:Boolean(p)},path:{value:a||void 0,enumerable:Boolean(a)},nodes:{value:s||void 0},source:{value:c||void 0},positions:{value:d||void 0},originalError:{value:l},extensions:{value:h||void 0,enumerable:Boolean(h)}}),l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}o.prototype=Object.create(Error.prototype,{constructor:{value:o},name:{value:"GraphQLError"},toString:{value:function(){return Object(r.a)(this)}}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(51);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){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e){var t=function(e){var t=e[String(r.a)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(t){var n=t.call(e);return"string"==typeof n?n:o(n)}if(Array.isArray(e))return"["+e.map(o).join(", ")+"]";var a=Object.keys(e).map(function(t){return"".concat(t,": ").concat(o(e[t]))}).join(", ");return a?"{ "+a+" }":"{}"}return String(e);default:return String(e)}}},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.r(t),n.d(t,"__Schema",function(){return c}),n.d(t,"__Directive",function(){return f}),n.d(t,"__DirectiveLocation",function(){return p}),n.d(t,"__Type",function(){return d}),n.d(t,"__Field",function(){return h}),n.d(t,"__InputValue",function(){return m}),n.d(t,"__EnumValue",function(){return v}),n.d(t,"TypeKind",function(){return g}),n.d(t,"__TypeKind",function(){return y}),n.d(t,"SchemaMetaFieldDef",function(){return b}),n.d(t,"TypeMetaFieldDef",function(){return w}),n.d(t,"TypeNameMetaFieldDef",function(){return k}),n.d(t,"introspectionTypes",function(){return x}),n.d(t,"isIntrospectionType",function(){return T});var r=n(9),i=n(16),o=n(32),a=n(11),l=n(0),u=n(7),s=n(6),c=new l.f({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this server.",type:Object(l.e)(Object(l.d)(Object(l.e)(d))),resolve:function(e){return Object(r.a)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:Object(l.e)(d),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:d,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:d,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:Object(l.e)(Object(l.d)(Object(l.e)(f))),resolve:function(e){return e.getDirectives()}}}}}),f=new l.f({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:Object(l.e)(u.e),resolve:function(e){return e.name}},description:{type:u.e,resolve:function(e){return e.description}},locations:{type:Object(l.e)(Object(l.d)(Object(l.e)(p))),resolve:function(e){return e.locations}},args:{type:Object(l.e)(Object(l.d)(Object(l.e)(m))),resolve:function(e){return e.args||[]}}}}}),p=new l.a({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.a.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.a.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.a.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.a.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.a.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.a.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.a.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.a.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.a.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.a.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.a.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.a.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.a.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.a.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.a.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.a.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.a.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.a.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.a.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),d=new l.f({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:Object(l.e)(y),resolve:function(e){if(Object(l.Q)(e))return g.SCALAR;if(Object(l.M)(e))return g.OBJECT;if(Object(l.G)(e))return g.INTERFACE;if(Object(l.S)(e))return g.UNION;if(Object(l.D)(e))return g.ENUM;if(Object(l.E)(e))return g.INPUT_OBJECT;if(Object(l.I)(e))return g.LIST;if(Object(l.K)(e))return g.NON_NULL;throw new Error("Unknown kind of type: "+e)}},name:{type:u.e,resolve:function(e){return e.name}},description:{type:u.e,resolve:function(e){return e.description}},fields:{type:Object(l.d)(Object(l.e)(h)),args:{includeDeprecated:{type:u.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.M)(e)||Object(l.G)(e)){var i=Object(r.a)(e.getFields());return n||(i=i.filter(function(e){return!e.deprecationReason})),i}return null}},interfaces:{type:Object(l.d)(Object(l.e)(d)),resolve:function(e){if(Object(l.M)(e))return e.getInterfaces()}},possibleTypes:{type:Object(l.d)(Object(l.e)(d)),resolve:function(e,t,n,r){var i=r.schema;if(Object(l.B)(e))return i.getPossibleTypes(e)}},enumValues:{type:Object(l.d)(Object(l.e)(v)),args:{includeDeprecated:{type:u.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.D)(e)){var r=e.getValues();return n||(r=r.filter(function(e){return!e.deprecationReason})),r}}},inputFields:{type:Object(l.d)(Object(l.e)(m)),resolve:function(e){if(Object(l.E)(e))return Object(r.a)(e.getFields())}},ofType:{type:d,resolve:function(e){return e.ofType}}}}}),h=new l.f({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:Object(l.e)(u.e),resolve:function(e){return e.name}},description:{type:u.e,resolve:function(e){return e.description}},args:{type:Object(l.e)(Object(l.d)(Object(l.e)(m))),resolve:function(e){return e.args||[]}},type:{type:Object(l.e)(d),resolve:function(e){return e.type}},isDeprecated:{type:Object(l.e)(u.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:u.e,resolve:function(e){return e.deprecationReason}}}}}),m=new l.f({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:Object(l.e)(u.e),resolve:function(e){return e.name}},description:{type:u.e,resolve:function(e){return e.description}},type:{type:Object(l.e)(d),resolve:function(e){return e.type}},defaultValue:{type:u.e,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){return Object(i.a)(e.defaultValue)?null:Object(a.a)(Object(o.a)(e.defaultValue,e.type))}}}}}),v=new l.f({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:Object(l.e)(u.e),resolve:function(e){return e.name}},description:{type:u.e,resolve:function(e){return e.description}},isDeprecated:{type:Object(l.e)(u.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:u.e,resolve:function(e){return e.deprecationReason}}}}}),g={SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"},y=new l.a({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:g.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:g.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:g.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:g.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:g.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:g.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:g.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:g.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),b={name:"__schema",type:Object(l.e)(c),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema}},w={name:"__type",type:d,description:"Request the type information of a single type.",args:[{name:"name",type:Object(l.e)(u.e)}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)}},k={name:"__typename",type:Object(l.e)(u.e),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name}},x=[c,f,p,d,h,m,v,y];function T(e){return Object(l.J)(e)&&(e.name===c.name||e.name===f.name||e.name===p.name||e.name===d.name||e.name===h.name||e.name===m.name||e.name===v.name||e.name===y.name)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",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"})},function(e,t,n){"use strict";var r=Number.isFinite||function(e){return"number"==typeof e&&r(e)},i=r,o=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},a=n(3),l=n(0),u=n(1);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)}n.d(t,"d",function(){return p}),n.d(t,"b",function(){return d}),n.d(t,"e",function(){return m}),n.d(t,"a",function(){return v}),n.d(t,"c",function(){return g}),n.d(t,"g",function(){return y}),n.d(t,"f",function(){return b});var c=2147483647,f=-2147483648;var p=new l.g({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!o(t))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(a.a)(e)));if(t>c||t<f)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(a.a)(e)));return t},parseValue:function(e){if(!o(e))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(a.a)(e)));if(e>c||e<f)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){if(e.kind===u.Kind.INT){var t=parseInt(e.value,10);if(t<=c&&t>=f)return t}}});var d=new l.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!i(t))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(a.a)(e)));return t},parseValue:function(e){if(!i(e))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.FLOAT||e.kind===u.Kind.INT?parseFloat(e.value):void 0}});function h(e){if("object"===s(e)&&null!==e){if("function"==typeof e.valueOf){var t=e.valueOf();if("object"!==s(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var m=new l.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=h(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(i(t))return t.toString();throw new TypeError("String cannot represent value: ".concat(Object(a.a)(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.STRING?e.value:void 0}});var v=new l.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if(i(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(a.a)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.BOOLEAN?e.value:void 0}});var g=new l.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=h(e);if("string"==typeof t)return t;if(o(t))return String(t);throw new TypeError("ID cannot represent value: ".concat(Object(a.a)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(o(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat(Object(a.a)(e)))},parseLiteral:function(e){return e.kind===u.Kind.STRING||e.kind===u.Kind.INT?e.value:void 0}}),y=[m,p,d,v,g];function b(e){return Object(l.J)(e)&&(e.name===m.name||e.name===p.name||e.name===d.name||e.name===v.name||e.name===g.name)}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(l.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),s=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(95);var f=/[&<>"]/,p=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var v=n(71);t.lib={},t.lib.mdurl=n(96),t.lib.ucmicro=n(174),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(l,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,function(e,t,n){return t||function(e,t){var n=0;return i(c,t)?c[t]:35===t.charCodeAt(0)&&s.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)})},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return f.test(e)?e.replace(p,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return v.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";var r=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})};t.a=r},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,l=a&&(r?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(e),s=u&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),k=f&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(f=!1,u=!0);var x=y&&(s||f&&(null==k||k<12.11)),T=n||a&&l>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _,S=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function C(e,t){return O(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function A(e,t,n,r){var i=N(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function L(e,t){var n=e.className;E(t).test(n)||(e.className+=(n?" ":"")+t)}function j(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(t)&&(t+=" "+n[r]);return t}_=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var M=function(e){e.select()};function F(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function R(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function P(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var l=e.indexOf("\t",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}m?M=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(M=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null};function U(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}V.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var B=30,q={toString:function(){return"CodeMirror.Pass"}},z={scroll:!1},K={origin:"*mouse"},H={origin:"+move"};function G(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var W=[""];function Q(e){for(;W.length<=e;)W.push(Y(W)+" ");return W[e]}function Y(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function $(){}function X(e,t){var n;return Object.create?n=Object.create(e):($.prototype=e,n=new $),t&&R(t,n),n}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Z.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&re.test(e)}function oe(e,t,n){for(;(n<0?t>0:t<e.length)&&ie(e.charAt(t));)t+=n;return t}function ae(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var le=null;function ue(e,t,n){var r;le=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:le=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:le=i)}return null!=r?r:le}var se=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(u,s){var c,f="ltr"==s?"L":"R";if(0==u.length||"ltr"==s&&!n.test(u))return!1;for(var p=u.length,d=[],h=0;h<p;++h)d.push((c=u.charCodeAt(h))<=247?e.charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?t.charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":8204==c?"b":"L");for(var m=0,v=f;m<p;++m){var g=d[m];"m"==g?d[m]=v:v=g}for(var y=0,b=f;y<p;++y){var w=d[y];"1"==w&&"r"==b?d[y]="n":i.test(w)&&(b=w,"r"==w&&(d[y]="R"))}for(var k=1,x=d[0];k<p-1;++k){var T=d[k];"+"==T&&"1"==x&&"1"==d[k+1]?d[k]="1":","!=T||x!=d[k+1]||"1"!=x&&"n"!=x||(d[k]=x),x=T}for(var E=0;E<p;++E){var _=d[E];if(","==_)d[E]="N";else if("%"==_){var S=void 0;for(S=E+1;S<p&&"%"==d[S];++S);for(var O=E&&"!"==d[E-1]||S<p&&"1"==d[S]?"1":"N",C=E;C<S;++C)d[C]=O;E=S-1}}for(var N=0,A=f;N<p;++N){var D=d[N];"L"==A&&"1"==D?d[N]="L":i.test(D)&&(A=D)}for(var I=0;I<p;++I)if(r.test(d[I])){var L=void 0;for(L=I+1;L<p&&r.test(d[L]);++L);for(var j="L"==(I?d[I-1]:f),M="L"==(L<p?d[L]:f),F=j==M?j?"L":"R":f,R=I;R<L;++R)d[R]=F;I=L-1}for(var P,V=[],U=0;U<p;)if(o.test(d[U])){var B=U;for(++U;U<p&&o.test(d[U]);++U);V.push(new l(0,B,U))}else{var q=U,z=V.length;for(++U;U<p&&"L"!=d[U];++U);for(var K=q;K<U;)if(a.test(d[K])){q<K&&V.splice(z,0,new l(1,q,K));var H=K;for(++K;K<U&&a.test(d[K]);++K);V.splice(z,0,new l(2,H,K)),q=K}else++K;q<U&&V.splice(z,0,new l(1,q,U))}return"ltr"==s&&(1==V[0].level&&(P=u.match(/^\s+/))&&(V[0].from=P[0].length,V.unshift(new l(0,0,P[0].length))),1==Y(V).level&&(P=u.match(/\s+$/))&&(Y(V).to-=P[0].length,V.push(new l(0,p-P[0].length,p)))),"rtl"==s?V.reverse():V}}();function ce(e,t){var n=e.order;return null==n&&(n=e.order=se(e.text,t)),n}var fe=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||fe).concat(n)}};function de(e,t){return e._handlers&&e._handlers[t]||fe}function he(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=U(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function me(e,t){var n=de(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ve(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),me(e,n||t.type,e,t),xe(t)||t.codemirrorIgnore}function ge(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==U(n,t[r])&&n.push(t[r])}function ye(e,t){return de(e,t).length>0}function be(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){he(this,e,t)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){we(e),ke(e)}function Ee(e){return e.target||e.srcElement}function _e(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Se,Oe,Ce=function(){if(a&&l<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function Ne(e){if(null==Se){var t=N("span","");C(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Se?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ae(e){if(null!=Oe)return Oe;var t=C(e,document.createTextNode("AخA")),n=_(t,0,1).getBoundingClientRect(),r=_(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var De,Ie=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Le=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},je="oncopy"in(De=N("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Me=null,Fe={},Re={};function Pe(e){if("string"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&"string"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Pe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Pe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Pe(t);var n=Fe[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var i=Ue[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function Be(e,t){var n=Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={};R(t,n)}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function ze(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var He=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ge(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function We(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function Qe(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function Ye(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Je(e){if(null==e.parent)return null;for(var t=e.parent,n=U(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function $e(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a],u=l.height;if(t<u)break;t-=u}return n+a}function Xe(e,t){return t>=e.first&&t<e.first+e.size}function Ze(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function lt(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,Ge(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,Ge(e,t.line).text.length)}function ut(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=lt(e,t[r]);return n}He.prototype.eol=function(){return this.pos>=this.string.length},He.prototype.sol=function(){return this.pos==this.lineStart},He.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},He.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},He.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},He.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},He.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},He.prototype.skipToEnd=function(){this.pos=this.string.length},He.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},He.prototype.backUp=function(e){this.pos-=e},He.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=P(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},He.prototype.indentation=function(){return P(this.string,null,this.tabSize)-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},He.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},He.prototype.current=function(){return this.string.slice(this.start,this.pos)},He.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},He.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},He.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var st=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){var i=[e.state.modeGen],o={};wt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,l=function(r){n.baseTokens=i;var l=e.state.overlays[r],u=1,s=0;n.state=!0,wt(e,t.text,l.mode,n,function(e,t){for(var n=u;s<e;){var r=i[u];r>e&&i.splice(u,1,e,i[u+1],r),u+=2,s=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;n<u;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},u=0;u<e.state.overlays.length;++u)l(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function pt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=dt(e,Je(t)),i=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=ft(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ct(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var u=Ge(o,l-1),s=u.stateAfter;if(s&&(!n||l+(s instanceof st?s.lookAhead:0)<=o.modeFrontier))return l;var c=P(u.text,null,e.options.tabSize);(null==i||r>c)&&(i=l-1,r=c)}return i}(e,t,n),a=o>r.first&&Ge(r,o-1).stateAfter,l=a?ct.fromSaved(r,a,o):new ct(r,Ke(r.mode),o);return r.iter(o,t,function(n){ht(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?l.save():null,l.nextLine()}),n&&(r.modeFrontier=l.line),l}function ht(e,t,n,r){var i=e.doc.mode,o=new He(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&mt(i,n.state);!o.eol();)vt(i,o,n.state),o.start=o.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=ze(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function vt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=ze(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,n){return t instanceof st?new ct(e,qe(e.mode,t.state),n,t.lookAhead):new ct(e,qe(e.mode,t),n)},ct.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new st(t,this.maxLookAhead):t};var gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var i,o=e.doc,a=o.mode;t=lt(o,t);var l,u=Ge(o,t.line),s=dt(e,t.line,n),c=new He(u.text,e.options.tabSize,s);for(r&&(l=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=vt(a,c,s.state),r&&l.push(new gt(c,i,qe(o.mode,s.state)));return r?l:new gt(c,i,s.state)}function bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function wt(e,t,n,r,i,o,a){var l=n.flattenSpans;null==l&&(l=e.options.flattenSpans);var u,s=0,c=null,f=new He(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&bt(mt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(l=!1,a&&ht(e,t,r,f.pos),f.pos=t.length,u=null):u=bt(vt(n,f,r.state,p),o),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!l||c!=u){for(;s<f.start;)s=Math.min(f.start,s+5e3),i(s,c);c=u}f.start=f.pos}for(;s<f.pos;){var h=Math.min(f.pos,s+5e3);i(h,c),s=h}}var kt=!1,xt=!1;function Tt(e,t,n){this.marker=e,this.from=t,this.to=n}function Et(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function _t(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function St(e,t){if(t.full)return null;var n=Xe(e,t.from.line)&&Ge(e,t.from.line).markedSpans,r=Xe(e,t.to.line)&&Ge(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==tt(t.from,t.to),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(l||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var u=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Tt(a,o.from,u?null:o.to))}}return r}(n,i,a),u=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(l||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var u=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Tt(a,u?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),s=1==t.text.length,c=Y(t.text).length+(s?i:0);if(l)for(var f=0;f<l.length;++f){var p=l[f];if(null==p.to){var d=Et(u,p.marker);d?s&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(u)for(var h=0;h<u.length;++h){var m=u[h];if(null!=m.to&&(m.to+=c),null==m.from){var v=Et(l,m.marker);v||(m.from=c,s&&(l||(l=[])).push(m))}else m.from+=c,s&&(l||(l=[])).push(m)}l&&(l=Ot(l)),u&&u!=l&&(u=Ot(u));var g=[l];if(!s){var y,b=t.text.length-2;if(b>0&&l)for(var w=0;w<l.length;++w)null==l[w].to&&(y||(y=[])).push(new Tt(l[w].marker,null,null));for(var k=0;k<b;++k)g.push(y);g.push(u)}return g}function Ot(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ct(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Nt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function At(e){return e.inclusiveLeft?-1:0}function Dt(e){return e.inclusiveRight?1:0}function It(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=tt(r.from,i.from)||At(e)-At(t);if(o)return-o;var a=tt(r.to,i.to)||Dt(e)-Dt(t);return a||t.id-e.id}function Lt(e,t){var n,r=xt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||It(n,i.marker)<0)&&(n=i.marker);return n}function jt(e){return Lt(e,!0)}function Mt(e){return Lt(e,!1)}function Ft(e,t){var n,r=xt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||It(n,o.marker)<0)&&(n=o.marker)}return n}function Rt(e,t,n,r,i){var o=Ge(e,t),a=xt&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];if(u.marker.collapsed){var s=u.marker.find(0),c=tt(s.from,n)||At(u.marker)-At(i),f=tt(s.to,r)||Dt(u.marker)-Dt(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?tt(s.to,n)>=0:tt(s.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?tt(s.from,r)<=0:tt(s.from,r)<0)))return!0}}}function Pt(e){for(var t;t=jt(e);)e=t.find(-1,!0).line;return e}function Vt(e,t){var n=Ge(e,t),r=Pt(n);return n==r?t:Je(r)}function Ut(e,t){if(t>e.lastLine())return t;var n,r=Ge(e,t);if(!Bt(e,r))return t;for(;n=Mt(r);)r=n.find(1,!0).line;return Je(r)+1}function Bt(e,t){var n=xt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&qt(e,t,r))return!0}}function qt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return qt(e,r.line,Et(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&qt(e,t,i))return!0}function zt(e){e=Pt(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==n)break;t+=l.height}return t}function Kt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=jt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Mt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function Ht(e){var t=e.display,n=e.doc;t.maxLine=Ge(n,n.first),t.maxLineLength=Kt(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=Kt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Gt=function(e,t,n){this.text=e,Nt(this,t),this.height=n?n(this):1};function Wt(e){e.parent=null,Ct(e)}Gt.prototype.lineNo=function(){return Je(this)},be(Gt);var Qt={},Yt={};function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Yt:Qt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function $t(e,t){var n=A("span",null,null,u?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zt,Ae(e.display.measure)&&(a=ce(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[];var l=t!=e.display.externalMeasured&&Je(o);nn(o,r,pt(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ne(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function Xt(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,u){if(t){var s,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,f=e.cm.state.specialChars,p=!1;if(f.test(t)){s=document.createDocumentFragment();for(var d=0;;){f.lastIndex=d;var h=f.exec(t),m=h?h.index-d:t.length-d;if(m){var v=document.createTextNode(c.slice(d,d+m));a&&l<9?s.appendChild(N("span",[v])):s.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=s.appendChild(N("span",Q(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=s.appendChild(N("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&l<9?s.appendChild(N("span",[g])):s.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,s=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,s),a&&l<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||p||o){var w=n||"";r&&(w+=r),i&&(w+=i);var k=N("span",[s],w,o);if(u)for(var x in u)u.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&k.setAttribute(x,u[x]);return e.content.appendChild(k)}e.content.appendChild(s)}}function en(e,t){return function(n,r,i,o,a,l,u){i=i?i+" cm-force-border":"cm-force-border";for(var s=n.pos,c=s+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>s&&f.from<=s);p++);if(f.to>=c)return e(n,r,i,o,a,l,u);e(n,r.slice(0,f.to-s),i,o,null,l,u),o=null,r=r.slice(f.to-s),s=f.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,u,s,c,f,p,d=i.length,h=0,m=1,v="",g=0;;){if(g==h){u=s=c=l="",p=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var k=r[w],x=k.marker;if("bookmark"==x.type&&k.from==h&&x.widgetNode)y.push(x);else if(k.from<=h&&(null==k.to||k.to>h||x.collapsed&&k.to==h&&k.from==h)){if(null!=k.to&&k.to!=h&&g>k.to&&(g=k.to,s=""),x.className&&(u+=" "+x.className),x.css&&(l=(l?l+";":"")+x.css),x.startStyle&&k.from==h&&(c+=" "+x.startStyle),x.endStyle&&k.to==g&&(b||(b=[])).push(x.endStyle,k.to),x.title&&((p||(p={})).title=x.title),x.attributes)for(var T in x.attributes)(p||(p={}))[T]=x.attributes[T];x.collapsed&&(!f||It(f.marker,x)<0)&&(f=k)}else k.from>h&&g>k.from&&(g=k.from)}if(b)for(var E=0;E<b.length;E+=2)b[E+1]==g&&(s+=" "+b[E]);if(!f||f.from==h)for(var _=0;_<y.length;++_)tn(t,0,y[_]);if(f&&(f.from||0)==h){if(tn(t,(null==f.to?d+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=d)break;for(var S=Math.min(d,g);;){if(v){var O=h+v.length;if(!f){var C=O>S?v.slice(0,S-h):v;t.addToken(t,C,a?a+u:u,c,h+C.length==g?s:"",l,p)}if(O>=S){v=v.slice(S-h),h=S;break}h=O,c=""}v=i.slice(o,o=n[m++]),a=Jt(n[m++],t.cm.options)}}else for(var N=1;N<n.length;N+=2)t.addToken(t,i.slice(o,o=n[N]),Jt(n[N+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Mt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Je(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Bt(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new rn(e.doc,Ge(e.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,ln=null;function un(e,t){var n=de(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:ln?r=ln:(r=ln=[],setTimeout(sn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function sn(){var e=ln;ln=null;for(var t=0;t<e.length;++t)e[t]()}function cn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?dn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?hn(e,t):"widget"==o&&vn(e,t,r)}t.changes=null}function fn(e){return e.node==e.text&&(e.node=N("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&l<8&&(e.node.style.zIndex=2)),e.node}function pn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):$t(e,t)}function dn(e,t){var n=t.text.className,r=pn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=fn(t);t.background=r.insertBefore(N("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=fn(t);t.gutterBackground=N("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=fn(t),l=t.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(N("div",Ze(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<e.display.gutterSpecs.length;++u){var s=e.display.gutterSpecs[u].className,c=o.hasOwnProperty(s)&&o[s];c&&l.appendChild(N("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[s]+"px; width: "+r.gutterWidth[s]+"px"))}}}function vn(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);yn(e,t,n)}function gn(e,t,n,r){var i=pn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),mn(e,t,n,r),yn(e,t,r),t.node}function yn(e,t,n){if(bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)bn(e,t.rest[r],t,n,!1)}function bn(e,t,n,r,i){if(t.widgets)for(var o=fn(n),a=0,l=t.widgets;a<l.length;++a){var u=l[a],s=N("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||s.setAttribute("cm-ignore-events","true"),wn(u,s,n,r),e.display.input.setUneditable(s),i&&u.above?o.insertBefore(s,n.gutter||n.text):o.appendChild(s),un(u,"redraw")}}function wn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function kn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),C(t.display.measure,N("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function xn(e,t){for(var n=Ee(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Tn(e){return e.lineSpace.offsetTop}function En(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function _n(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=C(e.measure,N("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Sn(e){return B-e.display.nativeBarWidth}function On(e){return e.display.scroller.clientWidth-Sn(e)-e.display.barWidth}function Cn(e){return e.display.scroller.clientHeight-Sn(e)-e.display.barHeight}function Nn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Je(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function An(e,t,n,r){return Ln(e,In(e,t),n,r)}function Dn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ur(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function In(e,t){var n=Je(t),r=Dn(e,n);r&&!r.text?r=null:r&&r.changes&&(cn(e,r,n,rr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Je(t=Pt(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=$t(e,r);return r.text=i.pre,C(e.display.lineMeasure,i.pre),r}(e,t));var i=Nn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Ln(e,t,n,r,i){t.before&&(n=-1);var o,u=n+(r||"");return t.cache.hasOwnProperty(u)?o=t.cache[u]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&On(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var u=a[l],s=a[l+1];Math.abs(u.bottom-s.bottom)>2&&o.push((u.bottom+s.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Fn(t.map,n,r),u=o.node,s=o.start,c=o.end,f=o.collapse;if(3==u.nodeType){for(var p=0;p<4;p++){for(;s&&ie(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+c<o.coverEnd&&ie(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&l<9&&0==s&&c==o.coverEnd-o.coverStart?u.parentNode.getBoundingClientRect():Rn(_(u,s,c).getClientRects(),r)).left||i.right||0==s)break;c=s,s-=1,f="right"}a&&l<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Me)return Me;var t=C(e,N("span","x")),n=t.getBoundingClientRect(),r=_(t,0,1).getBoundingClientRect();return Me=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;s>0&&(f=r="right"),i=e.options.lineWrapping&&(d=u.getClientRects()).length>1?d["right"==r?d.length-1:0]:u.getBoundingClientRect()}if(a&&l<9&&!s&&(!i||!i.left&&!i.right)){var h=u.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+nr(e.display),top:h.top,bottom:h.bottom}:Mn}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(g<y[b]);b++);var w=b?y[b-1]:0,k=y[b],x={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:w,bottom:k};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=v),x}(e,t,n,r)).bogus||(t.cache[u]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var jn,Mn={left:0,right:0,top:0,bottom:0};function Fn(e,t,n){for(var r,i,o,a,l,u,s=0;s<e.length;s+=3)if(l=e[s],u=e[s+1],t<l?(i=0,o=1,a="left"):t<u?o=1+(i=t-l):(s==e.length-3||t==u&&e[s+3]>t)&&(i=(o=u-l)-1,t>=u&&(a="right")),null!=i){if(r=e[s+2],l==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[2+(s-=3)],a="left";if("right"==n&&i==u-l)for(;s<e.length-3&&e[s+3]==e[s+4]&&!e[s+5].insertLeft;)r=e[(s+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:l,coverEnd:u}}function Rn(e,t){var n=Mn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Pn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Vn(e){e.display.externalMeasure=null,O(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Pn(e.display.view[t])}function Un(e){Vn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Bn(){return c&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function qn(){return c&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function zn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=kn(e.widgets[n]));return t}function Kn(e,t,n,r,i){if(!i){var o=zn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=zt(t);if("local"==r?a+=Tn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+("window"==r?0:qn());var u=l.left+("window"==r?0:Bn());n.left+=u,n.right+=u}return n.top+=a,n.bottom+=a,n}function Hn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Bn(),i-=qn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Gn(e,t,n,r,i){return r||(r=Ge(e.doc,t.line)),Kn(e,r,An(e,r,t.ch,i),n)}function Wn(e,t,n,r,i,o){function a(t,a){var l=Ln(e,i,t,a?"right":"left",o);return a?l.left=l.right:l.right=l.left,Kn(e,r,l,n)}r=r||Ge(e.doc,t.line),i||(i=In(e,r));var l=ce(r,e.doc.direction),u=t.ch,s=t.sticky;if(u>=r.text.length?(u=r.text.length,s="before"):u<=0&&(u=0,s="after"),!l)return a("before"==s?u-1:u,"before"==s);function c(e,t,n){var r=l[t],i=1==r.level;return a(n?e-1:e,i!=n)}var f=ue(l,u,s),p=le,d=c(u,f,"before"==s);return null!=p&&(d.other=c(u,p,"before"!=s)),d}function Qn(e,t){var n=0;t=lt(e.doc,t),e.options.lineWrapping||(n=nr(e.display)*t.ch);var r=Ge(e.doc,t.line),i=zt(r)+Tn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Yn(r.first,0,null,!0,-1);var i=$e(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,Ge(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=Ge(r,i);;){var l=er(e,a,i,t,n),u=Ft(a,l.ch+(l.xRel>0?1:0));if(!u)return l;var s=u.find(1);if(s.line==i)return s;a=Ge(r,i=s.line)}}function $n(e,t,n,r){r-=zn(t);var i=t.text.length,o=ae(function(t){return Ln(e,n,t-1).bottom<=r},i,0);return i=ae(function(t){return Ln(e,n,t).top>r},o,i),{begin:o,end:i}}function Xn(e,t,n,r){n||(n=In(e,t));var i=Kn(e,t,Ln(e,n,r),"line").top;return $n(e,t,n,i)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=zt(t);var o=In(e,t),a=zn(t),l=0,u=t.text.length,s=!0,c=ce(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var l=$n(e,t,r,a),u=l.begin,s=l.end;/\s/.test(t.text.charAt(s-1))&&s--;for(var c=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=s||d.to<=u)){var h=1!=d.level,m=Ln(e,r,h?Math.min(s,d.to)-1:Math.max(u,d.from)).right,v=m<o?o-m+1e9:m-o;(!c||f>v)&&(c=d,f=v)}}return c||(c=i[i.length-1]),c.from<u&&(c={from:u,to:c.to,level:c.level}),c.to>s&&(c={from:c.from,to:s,level:c.level}),c}:function(e,t,n,r,i,o,a){var l=ae(function(l){var u=i[l],s=1!=u.level;return Zn(Wn(e,et(n,s?u.to:u.from,s?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),u=i[l];if(l>0){var s=1!=u.level,c=Wn(e,et(n,s?u.from:u.to,s?"after":"before"),"line",t,r);Zn(c,o,a,!0)&&c.top>a&&(u=i[l-1])}return u})(e,t,n,o,c,r,i);s=1!=f.level,l=s?f.from:f.to-1,u=s?f.to:f.from-1}var p,d,h=null,m=null,v=ae(function(t){var n=Ln(e,o,t);return n.top+=a,n.bottom+=a,!!Zn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)},l,u),g=!1;if(m){var y=r-m.left<m.right-r,b=y==s;v=h+(b?0:1),d=b?"after":"before",p=y?m.left:m.right}else{s||v!=u&&v!=l||v++,d=0==v?"after":v==t.text.length?"before":Ln(e,o,v-(s?1:0)).bottom+a<=i==s?"after":"before";var w=Wn(e,et(n,v,d),"line",t,o);p=w.left,g=i<w.top||i>=w.bottom}return v=oe(t.text,v,1),Yn(n,v,d,g,r-p)}function tr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==jn){jn=N("pre");for(var t=0;t<49;++t)jn.appendChild(document.createTextNode("x")),jn.appendChild(N("br"));jn.appendChild(document.createTextNode("x"))}C(e.measure,jn);var n=jn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function nr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t]);C(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function rr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+i,r[l]=o.clientWidth}return{fixedPos:ir(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ir(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function or(e){var t=tr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/nr(e.display)-3);return function(i){if(Bt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function ar(e){var t=e.doc,n=or(e);t.iter(function(e){var t=n(e);t!=e.height&&Ye(e,t)})}function lr(e,t,n,r){var i=e.display;if(!n&&"true"==Ee(t).getAttribute("cm-not-content"))return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(t){return null}var u,s=Jn(e,o,a);if(r&&1==s.xRel&&(u=Ge(e.doc,s.line).text).length==s.ch){var c=P(u,u.length,e.options.tabSize)-u.length;s=et(s.line,Math.max(0,Math.round((o-_n(e.display).left)/nr(e.display))-c))}return s}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function sr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)xt&&Vt(e.doc,t)<i.viewTo&&fr(e);else if(n<=i.viewFrom)xt&&Ut(e.doc,n+r)>i.viewFrom?fr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)fr(e);else if(t<=i.viewFrom){var o=pr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):fr(e)}else if(n>=i.viewTo){var a=pr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):fr(e)}else{var l=pr(e,t,t,-1),u=pr(e,n,n+r,1);l&&u?(i.view=i.view.slice(0,l.index).concat(on(e,l.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):fr(e)}var s=i.externalMeasured;s&&(n<s.lineN?s.lineN+=r:t<s.lineN+s.size&&(i.externalMeasured=null))}function cr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function fr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function pr(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!xt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,u=0;u<o;u++)l+=a[u].size;if(l!=t){if(r>0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;Vt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function dr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function hr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function mr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var l=n.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();(u||e.options.showCursorWhenSelecting)&&vr(e,l.head,i),u||yr(e,l,o)}}return r}function vr(e,t,n){var r=Wn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(N("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function gr(e,t){return e.top-t.top||e.left-t.left}function yr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=_n(e.display),l=a.left,u=Math.max(r.sizerWidth,On(e)-r.sizer.offsetLeft)-a.right,s="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=Ge(i,t),p=f.text.length;function d(n,r){return Gn(e,et(t,n),"div",f,r)}function h(t,n,r){var i=Xn(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1);return d(a,o)[o]}var m=ce(f,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?p:r,function(e,t,i,f){var v="ltr"==i,g=d(e,v?"left":"right"),y=d(t-1,v?"right":"left"),b=null==n&&0==e,w=null==r&&t==p,k=0==f,x=!m||f==m.length-1;if(y.top-g.top<=3){var T=(s?b:w)&&k,E=(s?w:b)&&x,_=T?l:(v?g:y).left,S=E?u:(v?y:g).right;c(_,g.top,S-_,g.bottom)}else{var O,C,N,A;v?(O=s&&b&&k?l:g.left,C=s?u:h(e,i,"before"),N=s?l:h(t,i,"after"),A=s&&w&&x?u:y.right):(O=s?h(e,i,"before"):l,C=!s&&b&&k?u:g.right,N=!s&&w&&x?l:y.left,A=s?h(t,i,"after"):u),c(O,g.top,C-O,g.bottom),g.bottom<y.top&&c(l,g.bottom,null,y.top),c(N,y.top,A-N,y.bottom)}(!o||gr(g,o)<0)&&(o=g),gr(y,o)<0&&(o=y),(!a||gr(g,a)<0)&&(a=g),gr(y,a)<0&&(a=y)}),{start:o,end:a}}var p=t.from(),d=t.to();if(p.line==d.line)f(p.line,p.ch,d.ch);else{var h=Ge(i,p.line),m=Ge(i,d.line),v=Pt(h)==Pt(m),g=f(p.line,p.ch,v?h.text.length+1:null).end,y=f(d.line,v?0:null,d.ch).start;v&&(g.top<y.top-2?(c(g.right,g.top,null,g.bottom),c(l,y.top,y.left,y.bottom)):c(g.right,g.top,y.left-g.right,g.bottom)),g.bottom<y.top&&c(l,g.bottom,null,y.top)}n.appendChild(o)}function br(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function wr(e){e.state.focused||(e.display.input.focus(),xr(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Tr(e))},100)}function xr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(me(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),br(e))}function Tr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Er(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,u=void 0,s=0;if(!i.hidden){if(a&&l<8){var c=i.node.offsetTop+i.node.offsetHeight;u=c-n,n=c}else{var f=i.node.getBoundingClientRect();u=f.bottom-f.top,!o&&i.text.firstChild&&(s=i.text.firstChild.getBoundingClientRect().right-f.left-1)}var p=i.line.height-u;if((p>.005||p<-.005)&&(Ye(i.line,u),_r(i.line),i.rest))for(var d=0;d<i.rest.length;d++)_r(i.rest[d]);if(s>e.display.sizerWidth){var h=Math.ceil(s/nr(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function _r(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Sr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Tn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=$e(t,r),a=$e(t,i);if(n&&n.ensure){var l=n.ensure.from.line,u=n.ensure.to.line;l<o?(o=l,a=$e(t,zt(Ge(t,l))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(o=$e(t,zt(Ge(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function Or(e,t){var n=e.display,r=tr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Cn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+En(n),u=t.top<r,s=t.bottom>l-r;if(t.top<i)a.scrollTop=u?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(s?l:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=On(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function Cr(e,t){null!=t&&(Dr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Nr(e){Dr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ar(e,t,n){null==t&&null==n||Dr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Dr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Qn(e,t.from),r=Qn(e,t.to);Ir(e,n,r,t.margin)}}function Ir(e,t,n,r){var i=Or(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ar(e,i.scrollLeft,i.scrollTop)}function Lr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||oi(e,{top:t}),jr(e,t,!0),n&&oi(e),ei(e,100))}function jr(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Mr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,ui(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+En(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Rr=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),pe(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Rr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Rr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Rr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Rr.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Rr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)})},Rr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Pr=function(){};function Vr(e,t){t||(t=Fr(e));var n=e.display.barWidth,r=e.display.barHeight;Ur(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Er(e),Ur(e,Fr(e)),n=e.display.barWidth,r=e.display.barHeight}function Ur(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Pr.prototype.update=function(){return{bottom:0,right:0}},Pr.prototype.setScrollLeft=function(){},Pr.prototype.setScrollTop=function(){},Pr.prototype.clear=function(){};var Br={native:Rr,null:Pr};function qr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Br[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Mr(e,t):Lr(e,t)},e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var zr=0;function Kr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zr},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Hr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{an=null,t(n)}}(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Gr(t[n]);for(var r=0;r<t.length;r++)(i=t[r]).updatedDisplay=i.mustUpdate&&ri(i.cm,i.update);for(var i,o=0;o<t.length;o++)Wr(t[o]);for(var a=0;a<t.length;a++)Qr(t[a]);for(var l=0;l<t.length;l++)Yr(t[l])}(e)})}function Gr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Sn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Sn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ht(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ni(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Wr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Er(t),e.barMeasure=Fr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=An(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-On(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Qr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Mr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==I();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Vr(t,e.barMeasure),e.updatedDisplay&&li(t,e.barMeasure),e.selectionChanged&&br(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&wr(e.cm)}function Yr(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&ii(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&jr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Mr(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Wn(e,t),u=n&&n!=t?Wn(e,n):l;i={left:Math.min(l.left,u.left),top:Math.min(l.top,u.top)-r,right:Math.max(l.left,u.left),bottom:Math.max(l.bottom,u.bottom)+r};var s=Or(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=s.scrollTop&&(Lr(e,s.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=s.scrollLeft&&(Mr(e,s.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,lt(r,e.scrollToPos.from),lt(r,e.scrollToPos.to),e.scrollToPos.margin);!function(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=N("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Tn(e.display))+"px;\n height: "+(t.bottom-t.top+Sn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||me(o[l],"hide");if(a)for(var u=0;u<a.length;++u)a[u].lines.length&&me(a[u],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&me(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Jr(e,t){if(e.curOp)return t();Kr(e);try{return t()}finally{Hr(e)}}function $r(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Kr(e);try{return t.apply(e,arguments)}finally{Hr(e)}}}function Xr(e){return function(){if(this.curOp)return e.apply(this,arguments);Kr(this);try{return e.apply(this,arguments)}finally{Hr(this)}}}function Zr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Kr(t);try{return e.apply(this,arguments)}finally{Hr(t)}}}function ei(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,F(ti,e))}function ti(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,u=ft(e,o,r,!0);l&&(r.state=l),o.styles=u.styles;var s=o.styleClasses,c=u.classes;c?o.styleClasses=c:s&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||s!=c&&(!s||!c||s.bgClass!=c.bgClass||s.textClass!=c.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ht(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ei(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Jr(e,function(){for(var t=0;t<i.length;t++)cr(e,i[t],"text")})}}var ni=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Sr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=On(e),this.force=n,this.dims=rr(e),this.events=[]};function ri(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return fr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==dr(e))return!1;si(e)&&(fr(e),t.dims=rr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),xt&&(o=Vt(e.doc,o),a=Ut(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ur(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=zt(Ge(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=dr(e);if(!l&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=I();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return s>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return u&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var s=r.view,c=r.viewFrom,f=0;f<s.length;f++){var p=s[f];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=l(a);var d=i&&null!=t&&t<=c&&p.lineNumber;p.changes&&(U(p.changes,"gutter")>-1&&(d=!1),cn(e,p,c,n)),d&&(O(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(Ze(e.options,c)))),a=p.node.nextSibling}else{var h=gn(e,p,c,n);o.insertBefore(h,a)}c+=p.size}for(;a;)a=l(a)}(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=I()&&(e.activeElt.focus(),e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ei(e,400)),n.updateLineNumbers=null,!0}function ii(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=On(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+En(e.display)-Cn(e),n.top)}),t.visible=Sr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ri(e,t);r=!1){Er(e);var i=Fr(e);hr(e),Vr(e,i),li(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function oi(e,t){var n=new ni(e,t);if(ri(e,n)){Er(e),ii(e,n);var r=Fr(e);hr(e),Vr(e,r),li(e,r),n.finish()}}function ai(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function li(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sn(e)+"px"}function ui(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ir(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var l=n[a].alignable;if(l)for(var u=0;u<l.length;u++)l[u].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function si(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Ze(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(N("div",[N("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ai(e.display),!0}return!1}function ci(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function fi(e){var t=e.gutters,n=e.gutterSpecs;O(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,l=t.appendChild(N("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ai(e)}function pi(e){fi(e.display),sr(e),ui(e)}function di(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=A("div",null,"CodeMirror-code"),o.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=N("div",null,"CodeMirror-cursors"),o.measure=N("div",null,"CodeMirror-measure"),o.lineMeasure=N("div",null,"CodeMirror-measure"),o.lineSpace=A("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var s=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=N("div",[s],null,"position: relative"),o.sizer=N("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=N("div",null,null,"position: absolute; height: "+B+"px; width: 1px;"),o.gutters=N("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=N("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=N("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=ci(i.gutters,i.lineNumbers),fi(o),r.init(o)}ni.prototype.signal=function(e,t){ye(e,t)&&this.events.push(arguments)},ni.prototype.finish=function(){for(var e=0;e<this.events.length;e++)me.apply(null,this.events[e])};var hi=0,mi=null;function vi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function gi(e){var t=vi(e);return t.x*=mi,t.y*=mi,t}function yi(e,t){var r=vi(t),i=r.x,o=r.y,a=e.display,l=a.scroller,s=l.scrollWidth>l.clientWidth,c=l.scrollHeight>l.clientHeight;if(i&&s||o&&c){if(o&&y&&u)e:for(var p=t.target,d=a.view;p!=l;p=p.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==p){e.display.currentWheelTarget=p;break e}if(i&&!n&&!f&&null!=mi)return o&&c&&Lr(e,Math.max(0,l.scrollTop+o*mi)),Mr(e,Math.max(0,l.scrollLeft+i*mi)),(!o||o&&c)&&we(t),void(a.wheelStartX=null);if(o&&null!=mi){var m=o*mi,v=e.doc.scrollTop,g=v+a.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):g=Math.min(e.doc.height,g+m+50),oi(e,{top:v,bottom:g})}hi<20&&(null==a.wheelStartX?(a.wheelStartX=l.scrollLeft,a.wheelStartY=l.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var e=l.scrollLeft-a.wheelStartX,t=l.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(mi=(mi*hi+n)/(hi+1),++hi)}},200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?mi=-.53:n?mi=15:c?mi=-.7:p&&(mi=-1/3);var bi=function(e,t){this.ranges=e,this.primIndex=t};bi.prototype.primary=function(){return this.ranges[this.primIndex]},bi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},bi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new wi(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new bi(e,this.primIndex)},bi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},bi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var wi=function(e,t){this.anchor=e,this.head=t};function ki(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return tt(e.from(),t.from())}),n=U(t,i);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],u=tt(l.to(),a.from());if(r&&!a.empty()?u>0:u>=0){var s=ot(l.from(),a.from()),c=it(l.to(),a.to()),f=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new wi(f?c:s,f?s:c))}}return new bi(t,n)}function xi(e,t){return new bi([new wi(e,t||e)],0)}function Ti(e){return e.text?et(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ei(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Ti(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ti(t).ch-t.to.ch),et(n,r)}function _i(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new wi(Ei(i.anchor,t),Ei(i.head,t)))}return ki(e.cm,n,e.sel.primIndex)}function Si(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Oi(e){e.doc.mode=Ve(e.options,e.doc.modeOption),Ci(e)}function Ci(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ei(e,100),e.state.modeGen++,e.curOp&&sr(e)}function Ni(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ai(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ct(e),Nt(e,n);var i=r?r(e):1;i!=e.height&&Ye(e,i)}(e,n,i,r),un(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Gt(s[o],i(o),r));return n}var l=t.from,u=t.to,s=t.text,c=Ge(e,l.line),f=Ge(e,u.line),p=Y(s),d=i(s.length-1),h=u.line-l.line;if(t.full)e.insert(0,a(0,s.length)),e.remove(s.length,e.size-s.length);else if(Ni(e,t)){var m=a(0,s.length-1);o(f,f.text,d),h&&e.remove(l.line,h),m.length&&e.insert(l.line,m)}else if(c==f)if(1==s.length)o(c,c.text.slice(0,l.ch)+p+c.text.slice(u.ch),d);else{var v=a(1,s.length-1);v.push(new Gt(p+c.text.slice(u.ch),d,r)),o(c,c.text.slice(0,l.ch)+s[0],i(0)),e.insert(l.line+1,v)}else if(1==s.length)o(c,c.text.slice(0,l.ch)+s[0]+f.text.slice(u.ch),i(0)),e.remove(l.line+1,h);else{o(c,c.text.slice(0,l.ch)+s[0],i(0)),o(f,p+f.text.slice(u.ch),d);var g=a(1,s.length-1);h>1&&e.remove(l.line+1,h-1),e.insert(l.line+1,g)}un(e,"change",e,t)}function Di(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var l=r.linked[a];if(l.doc!=i){var u=o&&l.sharedHist;n&&!u||(t(l.doc,u),e(l.doc,r,u))}}}(e,null,!0)}function Ii(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ar(e),Oi(e),Li(e),e.options.lineWrapping||Ht(e),e.options.mode=t.modeOption,sr(e)}function Li(e){("rtl"==e.doc.direction?L:S)(e.display.lineDiv,"CodeMirror-rtl")}function ji(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Mi(e,t){var n={from:rt(t.from),to:Ti(t),text:We(e,t.from,t.to)};return Ui(e,n,t.from.line,t.to.line+1),Di(e,function(e){return Ui(e,n,t.from.line,t.to.line+1)},!0),n}function Fi(e){for(;e.length;){var t=Y(e);if(!t.ranges)break;e.pop()}}function Ri(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,l=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Fi(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(i,i.lastOp==r)))a=Y(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Ti(t):o.changes.push(Mi(e,t));else{var u=Y(i.done);for(u&&u.ranges||Vi(e.sel,i.done),o={changes:[Mi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||me(e,"historyAdded")}function Pi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Y(i.done),t))?i.done[i.done.length-1]=t:Vi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Fi(i.undone)}function Vi(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ui(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Bi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function qi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Bi(n[i]));return r}(e,t),r=St(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var u=a[l],s=0;s<o.length;++s)if(o[s].marker==u.marker)continue e;o.push(u)}else a&&(n[i]=a)}return n}function zi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?bi.prototype.deepCopy.call(o):o);else{var a=o.changes,l=[];r.push({changes:l});for(var u=0;u<a.length;++u){var s=a[u],c=void 0;if(l.push({from:s.from,to:s.to,text:s.text}),t)for(var f in s)(c=f.match(/^spans_(\d+)$/))&&U(t,Number(c[1]))>-1&&(Y(l)[f]=s[f],delete s[f])}}}return r}function Ki(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new wi(i,t)}return new wi(n||t,t)}function Hi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ji(e,new bi([Ki(e.sel.primary(),t,n,i)],0),r)}function Gi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Ki(e.sel.ranges[o],t[o],null,i);var a=ki(e.cm,r,e.sel.primIndex);Ji(e,a,n)}function Wi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Ji(e,ki(e.cm,i,e.sel.primIndex),r)}function Qi(e,t,n,r){Ji(e,xi(t,n),r)}function Yi(e,t,n){var r=e.history.done,i=Y(r);i&&i.ranges?(r[r.length-1]=t,$i(e,t,n)):Ji(e,t,n)}function Ji(e,t,n){$i(e,t,n),Pi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function $i(e,t,n){(ye(e,"beforeSelectionChange")||e.cm&&ye(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new wi(lt(e,t[n].anchor),lt(e,t[n].head))},origin:n&&n.origin};return me(e,"beforeSelectionChange",e,r),e.cm&&me(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ki(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);Xi(e,eo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Nr(e.cm)}function Xi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ge(e.cm)),un(e,"cursorActivity",e))}function Zi(e){Xi(e,eo(e,e.sel,null,!1))}function eo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],u=no(e,a.anchor,l&&l.anchor,n,r),s=no(e,a.head,l&&l.head,n,r);(i||u!=a.anchor||s!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new wi(u,s))}return i?ki(e.cm,i,t.primIndex):t}function to(e,t,n,r,i){var o=Ge(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],u=l.marker;if((null==l.from||(u.inclusiveLeft?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(u.inclusiveRight?l.to>=t.ch:l.to>t.ch))){if(i&&(me(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var s=u.find(r<0?1:-1),c=void 0;if((r<0?u.inclusiveRight:u.inclusiveLeft)&&(s=ro(e,s,-r,s&&s.line==t.line?o:null)),s&&s.line==t.line&&(c=tt(s,n))&&(r<0?c<0:c>0))return to(e,s,t,r,i)}var f=u.find(r<0?-1:1);return(r<0?u.inclusiveLeft:u.inclusiveRight)&&(f=ro(e,f,r,f.line==t.line?o:null)),f?to(e,f,t,r,i):null}}return t}function no(e,t,n,r,i){var o=r||1,a=to(e,t,n,o,i)||!i&&to(e,t,n,o,!0)||to(e,t,n,-o,i)||!i&&to(e,t,n,-o,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ro(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?lt(e,et(t.line-1)):null:n>0&&t.ch==(r||Ge(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function io(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),z)}function oo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=lt(e,t)),n&&(r.to=lt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),me(e,"beforeChange",e,r),e.cm&&me(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ao(e,t,n){if(e.cm){if(!e.cm.curOp)return $r(e.cm,ao)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"))||(t=oo(e,t,!0))){var r=kt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],l=a.find(0),u=0;u<i.length;++u){var s=i[u];if(!(tt(s.to,l.from)<0||tt(s.from,l.to)>0)){var c=[u,1],f=tt(s.from,l.from),p=tt(s.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:s.from,to:l.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:l.to,to:s.to}),i.splice.apply(i,c),u+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)lo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else lo(e,t)}}function lo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=_i(e,t);Ri(e,t,n,e.cm?e.cm.curOp.id:NaN),co(e,t,n,St(e,t));var r=[];Di(e,function(e,n){n||-1!=U(r,e.history)||(mo(e.history,t),r.push(e.history)),co(e,t,null,St(e,t))})}}function uo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,u="undo"==t?o.undone:o.done,s=0;s<l.length&&(i=l[s],n?!i.ranges||i.equals(e.sel):i.ranges);s++);if(s!=l.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=l.pop()).ranges){if(r)return void l.push(i);break}if(Vi(i,u),n&&!i.equals(e.sel))return void Ji(e,i,{clearRedo:!1});a=i}var c=[];Vi(a,u),u.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,f&&!oo(e,r,!1))return l.length=0,{};c.push(Mi(e,r));var o=n?_i(e,r):Y(l);co(e,r,o,qi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ti(r)});var a=[];Di(e,function(e,t){t||-1!=U(a,e.history)||(mo(e.history,r),a.push(e.history)),co(e,r,null,qi(e,r))})},d=i.changes.length-1;d>=0;--d){var h=p(d);if(h)return h.v}}}}function so(e,t){if(0!=t&&(e.first+=t,e.sel=new bi(J(e.sel.ranges,function(e){return new wi(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){sr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)cr(e.cm,r,"gutter")}}function co(e,t,n,r){if(e.cm&&!e.cm.curOp)return $r(e.cm,co)(e,t,n,r);if(t.to.line<e.first)so(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);so(e,i),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[Y(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:et(o,Ge(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=We(e,t.from,t.to),n||(n=_i(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,u=o.line;e.options.lineWrapping||(u=Je(Pt(Ge(r,o.line))),r.iter(u,a.line+1,function(e){if(e==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&ge(e),Ai(r,t,n,or(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ge(e,r).stateAfter;if(i&&(!(i instanceof st)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ei(e,400);var s=t.text.length-(a.line-o.line)-1;t.full?sr(e):o.line!=a.line||1!=t.text.length||Ni(e.doc,t)?sr(e,o.line,a.line+1,s):cr(e,o.line,"text");var c=ye(e,"changes"),f=ye(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&un(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):Ai(e,t,r),$i(e,n,z)}}function fo(e,t,n,r,i){var o;r||(r=n),tt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ao(e,{from:n,to:r,text:t,origin:i})}function po(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ho(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var l=0;l<o.ranges.length;l++)po(o.ranges[l].anchor,t,n,r),po(o.ranges[l].head,t,n,r)}else{for(var u=0;u<o.changes.length;++u){var s=o.changes[u];if(n<s.from.line)s.from=et(s.from.line+r,s.from.ch),s.to=et(s.to.line+r,s.to.ch);else if(t<=s.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function mo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ho(e.done,n,r,i),ho(e.undone,n,r,i)}function vo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ge(e,at(e,t)):i=Je(t),null==i?null:(r(o,i)&&e.cm&&cr(e.cm,i,n),o)}function go(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function yo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}wi.prototype.from=function(){return ot(this.anchor,this.head)},wi.prototype.to=function(){return it(this.anchor,this.head)},wi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},go.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Wt(i),un(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},yo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof go))){var l=[];this.collapse(l),this.children=[new go(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var u=new go(i.lines.slice(l,l+=25));i.height-=u.height,this.children.splice(++r,0,u),u.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new yo(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=U(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new yo(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var bo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function wo(e,t,n){zt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Cr(e,n)}bo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Je(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=kn(this);Ye(n,Math.max(0,n.height-o)),e&&(Jr(e,function(){wo(e,n,-o),cr(e,r,"widget")}),un(e,"lineWidgetCleared",e,this,r))}},bo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=kn(this)-t;i&&(Bt(this.doc,r)||Ye(r,r.height+i),n&&Jr(n,function(){n.curOp.forceUpdate=!0,wo(n,r,i),un(n,"lineWidgetChanged",n,e,Je(r))}))},be(bo);var ko=0,xo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ko};function To(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=R(r)).shared=!1;var o=[To(e,t,n,r,i)],a=o[0],l=r.widgetNode;return Di(e,function(e){l&&(r.widgetNode=l.cloneNode(!0)),o.push(To(e,lt(e,t),lt(e,n),r,i));for(var u=0;u<e.linked.length;++u)if(e.linked[u].isParent)return;a=Y(o)}),new Eo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return $r(e.cm,To)(e,t,n,r,i);var o=new xo(e,i),a=tt(t,n);if(r&&R(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Rt(e,t.line,t,n,o)||t.line!=n.line&&Rt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");xt=!0}o.addToHistory&&Ri(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,u=t.line,s=e.cm;if(e.iter(u,n.line+1,function(e){s&&o.collapsed&&!s.options.lineWrapping&&Pt(e)==s.display.maxLine&&(l=!0),o.collapsed&&u!=t.line&&Ye(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Tt(o,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Bt(e,t)&&Ye(t,0)}),o.clearOnEnter&&pe(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(kt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ko,o.atomic=!0),s){if(l&&(s.curOp.updateMaxLine=!0),o.collapsed)sr(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)cr(s,c,"text");o.atomic&&Zi(s.doc),un(s,"markerAdded",s,o)}return o}xo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Kr(e),ye(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=Et(a.markedSpans,this);e&&!this.collapsed?cr(e,Je(a),"text"):e&&(null!=l.to&&(i=Je(a)),null!=l.from&&(r=Je(a))),a.markedSpans=_t(a.markedSpans,l),null==l.from&&this.collapsed&&!Bt(this.doc,a)&&e&&Ye(a,tr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var s=Pt(this.lines[u]),c=Kt(s);c>e.display.maxLineLength&&(e.display.maxLine=s,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&sr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Zi(e.doc)),e&&un(e,"markerCleared",e,this,r,i),t&&Hr(e),this.parent&&this.parent.clear()}},xo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Et(o.markedSpans,this);if(null!=a.from&&(n=et(t?o:Je(o),a.from),-1==e))return n;if(null!=a.to&&(r=et(t?o:Je(o),a.to),1==e))return r}return n&&{from:n,to:r}},xo.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Jr(r,function(){var i=t.line,o=Je(t.line),a=Dn(r,o);if(a&&(Pn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Bt(n.doc,i)&&null!=n.height){var l=n.height;n.height=null;var u=kn(n)-l;u&&Ye(i,i.height+u)}un(r,"markerChanged",r,e)})},xo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=U(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},xo.prototype.detachLine=function(e){if(this.lines.splice(U(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},be(xo);var Eo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function _o(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),function(e){return e.parent})}function So(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Di(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Eo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();un(this,"clear")}},Eo.prototype.find=function(e,t){return this.primary.find(e,t)},be(Eo);var Oo=0,Co=function(e,t,n,r,i){if(!(this instanceof Co))return new Co(e,t,n,r,i);null==n&&(n=0),yo.call(this,[new go([new Gt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=et(n,0);this.sel=xi(o),this.history=new ji(null),this.id=++Oo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ai(this,{from:o,to:o,text:e}),Ji(this,xi(o),z)};Co.prototype=X(yo.prototype,{constructor:Co,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Qe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Zr(function(e){var t=et(this.first,0),n=this.first+this.size-1;ao(this,{from:t,to:et(n,Ge(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ar(this.cm,0,0),Ji(this,xi(t),z)}),replaceRange:function(e,t,n,r){t=lt(this,t),n=n?lt(this,n):t,fo(this,e,t,n,r)},getRange:function(e,t,n){var r=We(this,lt(this,e),lt(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Xe(this,e))return Ge(this,e)},getLineNumber:function(e){return Je(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ge(this,e)),Pt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zr(function(e,t,n){Qi(this,lt(this,"number"==typeof e?et(e,t||0):e),null,n)}),setSelection:Zr(function(e,t,n){Qi(this,lt(this,e),lt(this,t||e),n)}),extendSelection:Zr(function(e,t,n){Hi(this,lt(this,e),t&&lt(this,t),n)}),extendSelections:Zr(function(e,t){Gi(this,ut(this,e),t)}),extendSelectionsBy:Zr(function(e,t){var n=J(this.sel.ranges,e);Gi(this,ut(this,n),t)}),setSelections:Zr(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new wi(lt(this,e[i].anchor),lt(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Ji(this,ki(this.cm,r,t),n)}}),addSelection:Zr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new wi(lt(this,e),lt(this,t||e))),Ji(this,ki(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=We(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=We(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Zr(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&"end"!=t&&function(e,t,n){for(var r=[],i=et(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],u=Si(l.from,i,o),s=Si(Ti(l),i,o);if(i=l.to,o=s,"around"==n){var c=e.sel.ranges[a],f=tt(c.head,c.anchor)<0;r[a]=new wi(f?s:u,f?u:s)}else r[a]=new wi(u,u)}return new bi(r,e.sel.primIndex)}(this,r,t),u=r.length-1;u>=0;u--)ao(this,r[u]);l?Yi(this,l):this.cm&&Nr(this.cm)}),undo:Zr(function(){uo(this,"undo")}),redo:Zr(function(){uo(this,"redo")}),undoSelection:Zr(function(){uo(this,"undo",!0)}),redoSelection:Zr(function(){uo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new ji(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:zi(this.history.done),undone:zi(this.history.undone)}},setHistory:function(e){var t=this.history=new ji(this.history.maxGeneration);t.done=zi(e.done.slice(0),null,!0),t.undone=zi(e.undone.slice(0),null,!0)},setGutterMarker:Zr(function(e,t,n){return vo(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ne(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Zr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&vo(t,n,"gutter",function(){return n.gutterMarkers[e]=null,ne(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!Xe(this,e))return null;if(t=e,!(e=Ge(this,e)))return null}else if(null==(t=Je(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Zr(function(e,t,n){return vo(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(E(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:Zr(function(e,t,n){return vo(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(E(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),addLineWidget:Zr(function(e,t,n){return function(e,t,n,r){var i=new bo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),vo(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Bt(e,t)){var r=zt(t)<e.scrollTop;Ye(t,t.height+kn(i)),r&&Cr(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&un(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Je(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return To(this,lt(this,e),lt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return To(this,e=lt(this,e),e,n,"bookmark")},findMarksAt:function(e){e=lt(this,e);var t=[],n=Ge(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=lt(this,e),t=lt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var u=a[l];null!=u.to&&i==e.line&&e.ch>=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),lt(this,et(n,t))},indexFromPos:function(e){var t=(e=lt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Co(Qe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Co(Qe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(tt(o,a)){var l=To(e,o,a,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}(r,_o(this)),r},unlinkDoc:function(e){if(e instanceof Ea&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),So(_o(this));break}}if(e.history==this.history){var r=[e.id];Di(e,function(e){return r.push(e.id)},!0),e.history=new ji(null),e.history.done=zi(this.history.done,r),e.history.undone=zi(this.history.undone,r)}},iterLinkedDocs:function(e){Di(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ie(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Zr(function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Jr(t=this.cm,function(){Li(t),sr(t)}))})}),Co.prototype.eachLine=Co.prototype.iter;var No=0;function Ao(e){var t=this;if(Do(t),!ve(t,e)&&!xn(t.display,e)){we(e),a&&(No=+new Date);var n=lr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),l=0,u=function(e,r){if(!t.options.allowDropFileTypes||-1!=U(t.options.allowDropFileTypes,e.type)){var a=new FileReader;a.onload=$r(t,function(){var e=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++l==i){var u={from:n=lt(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};ao(t.doc,u),Yi(t.doc,xi(n,Ti(u)))}}),a.readAsText(e)}},s=0;s<i;++s)u(r[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),$i(t.doc,xi(n,n)),f)for(var p=0;p<f.length;++p)fo(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(c,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Do(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Io(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Lo=!1;function jo(){var e;Lo||(pe(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Io(Mo)},100))}),pe(window,"blur",function(){return Io(Tr)}),Lo=!0)}function Mo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Fo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ro=0;Ro<10;Ro++)Fo[Ro+48]=Fo[Ro+96]=String(Ro);for(var Po=65;Po<=90;Po++)Fo[Po]=String.fromCharCode(Po);for(var Vo=1;Vo<=12;Vo++)Fo[Vo+111]=Fo[Vo+63235]="F"+Vo;var Uo={};function Bo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var l=o[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function qo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=J(n.split(" "),Bo),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=r):(l=i.slice(0,o+1).join(" "),a="...");var u=t[l];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+l)}else t[l]=a}delete e[n]}for(var s in t)e[s]=t[s];return e}function zo(e,t,n,r){var i=(t=Wo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return zo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=zo(e,t.fallthrough[o],n,r);if(a)return a}}}function Ko(e){var t="string"==typeof e?e:Fo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ho(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Go(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Fo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ho(n,e,t))}function Wo(e){return"string"==typeof e?Uo[e]:e}function Qo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,Y(r).to)<=0;){var a=r.pop();if(tt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Jr(e,function(){for(var t=r.length-1;t>=0;t--)fo(e.doc,"",r[t].from,r[t].to,"+delete");Nr(e)})}function Yo(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Jo(e,t,n){var r=Yo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function $o(e,t,n,r,i){if(e){var o=ce(n,t.doc.direction);if(o){var a,l=i<0?Y(o):o[0],u=i<0==(1==l.level),s=u?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=In(t,n);a=i<0?n.text.length-1:0;var f=Ln(t,c,a).top;a=ae(function(e){return Ln(t,c,e).top==f},i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=Yo(n,a,1))}else a=i<0?l.to:l.from;return new et(r,a,s)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Uo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Uo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Uo.default=y?Uo.macDefault:Uo.pcDefault;var Xo={selectAll:io,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),z)},killLine:function(e){return Qo(e,function(t){if(t.empty()){var n=Ge(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qo(e,function(t){return{from:et(t.from().line,0),to:lt(e.doc,et(t.to().line+1,0))}})},delLineLeft:function(e){return Qo(e,function(e){return{from:et(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Qo(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return Qo(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Zo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ea(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=Ge(e.doc,t),r=function(e){for(var t;t=Mt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Je(r)),$o(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},H)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},H)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ea(e,t.head):r},H)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=P(e.getLine(o.line),o.ch,r);t.push(Q(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Jr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ge(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new et(i.line,i.ch-1)),i.ch>0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ge(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new wi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Jr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Nr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Zo(e,t){var n=Ge(e.doc,t),r=Pt(n);return r!=n&&(t=Je(r)),$o(!0,e,r,t,1)}function ea(e,t){var n=Zo(e,t.line),r=Ge(e.doc,n.line),i=ce(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return et(n.line,a?0:o,n.sticky)}return n}function ta(e,t,n){if("string"==typeof t&&!(t=Xo[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=q}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var na=new V;function ra(e,t,n,r){var i=e.state.keySeq;if(i){if(Ko(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:na.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ia(e,i+" "+t,n,r))return!0}return ia(e,t,n,r)}function ia(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=zo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&zo(t,e.options.extraKeys,n,e)||zo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&un(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(we(n),br(e)),!!i}function oa(e,t){var n=Go(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ra(e,"Shift-"+n,t,function(t){return ta(e,t,!0)})||ra(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ta(e,t)}):ra(e,n,t,function(t){return ta(e,t)}))}var aa=null;function la(e){var t=this;if(t.curOp.focus=I(),!ve(t,e)){a&&l<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=oa(t,e);f&&(aa=r?n:null,!r&&88==n&&!je&&(y?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),he(document,"keyup",n),he(document,"mouseover",n))}L(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}(t)}}function ua(e){16==e.keyCode&&(this.doc.sel.shift=!1),ve(this,e)}function sa(e){var t=this;if(!(xn(t.display,e)||ve(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==aa)return aa=null,void we(e);if(!f||e.which&&!(e.which<10)||!oa(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return ra(e,"'"+n+"'",t,function(t){return ta(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var ca,fa,pa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function da(e){var t=this,n=t.display;if(!(ve(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,xn(n,e))u||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!va(t,e)){var r=lr(t,e),i=_e(e),o=r?function(e,t){var n=+new Date;return fa&&fa.compare(n,e,t)?(ca=fa=null,"triple"):ca&&ca.compare(n,e,t)?(fa=new pa(n,e,t),ca=null,"double"):(ca=new pa(n,e,t),fa=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ra(e,Ho(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=Xo[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=q}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(F(wr,e),0):e.curOp.focus=I();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(e,n,r),s=e.doc.sel;e.options.dragDrop&&Ce&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(tt((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,s=$r(e,function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,he(i.wrapper.ownerDocument,"mouseup",s),he(i.wrapper.ownerDocument,"mousemove",c),he(i.scroller,"dragstart",f),he(i.scroller,"drop",s),o||(we(t),r.addNew||Hi(e.doc,n,null,null,r.extend),u||a&&9==l?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),e.state.draggingText=s,s.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pe(i.wrapper.ownerDocument,"mouseup",s),pe(i.wrapper.ownerDocument,"mousemove",c),pe(i.scroller,"dragstart",f),pe(i.scroller,"drop",s),kr(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;we(t);var a,l,u=o.sel,s=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),a=l>-1?s[l]:new wi(n,n)):(a=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new wi(n,n)),n=lr(e,t,!0,!0),l=-1;else{var c=ha(e,n,r.unit);a=r.extend?Ki(a,c.anchor,c.head,r.extend):c}r.addNew?-1==l?(l=s.length,Ji(o,ki(e,s.concat([a]),l),{scroll:!1,origin:"*mouse"})):s.length>1&&s[l].empty()&&"char"==r.unit&&!r.extend?(Ji(o,ki(e,s.slice(0,l).concat(s.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Wi(o,l,a,K):(l=0,Ji(o,new bi([a],0),K),u=o.sel);var f=n;function p(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],s=e.options.tabSize,c=P(Ge(o,n.line).text,n.ch,s),p=P(Ge(o,t.line).text,t.ch,s),d=Math.min(c,p),h=Math.max(c,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=Ge(o,m).text,y=G(g,d,s);d==h?i.push(new wi(et(m,y),et(m,y))):g.length>y&&i.push(new wi(et(m,y),et(m,G(g,h,s))))}i.length||i.push(new wi(n,n)),Ji(o,ki(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,k=ha(e,t,r.unit),x=w.anchor;tt(k.anchor,x)>0?(b=k.head,x=ot(w.from(),k.anchor)):(b=k.anchor,x=it(w.to(),k.head));var T=u.ranges.slice(0);T[l]=function(e,t){var n=t.anchor,r=t.head,i=Ge(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=ce(i);if(!o)return t;var a=ue(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var u,s=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==s||s==o.length)return t;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ue(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==l.level?-1:1);u=c==s-1||c==s?f<0:f>0}var p=o[s+(u?-1:0)],d=u==(1==p.level),h=d?p.from:p.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new wi(new et(n.line,h,m),r)}(e,new wi(lt(o,x),b)),Ji(o,ki(e,T,l),K)}}var d=i.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,t&&(we(t),i.input.focus()),he(i.wrapper.ownerDocument,"mousemove",v),he(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var v=$r(e,function(t){0!==t.buttons&&_e(t)?function t(n){var a=++h,l=lr(e,n,!0,"rectangle"==r.unit);if(l)if(0!=tt(l,f)){e.curOp.focus=I(),p(l);var u=Sr(i,o);(l.line>=u.to||l.line<u.from)&&setTimeout($r(e,function(){h==a&&t(n)}),150)}else{var s=n.clientY<d.top?-20:n.clientY>d.bottom?20:0;s&&setTimeout($r(e,function(){h==a&&(i.scroller.scrollTop+=s,t(n))}),50)}}(t):m(t)}),g=$r(e,m);e.state.selectingText=g,pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",g)}(e,r,t,o)}(t,r,o,e):Ee(e)==n.scroller&&we(e):2==i?(r&&Hi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(T?t.display.input.onContextMenu(e):kr(t)))}}function ha(e,t,n){if("char"==n)return new wi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new wi(et(t.line,0),lt(e.doc,et(t.line+1,0)));var r=n(e,t);return new wi(r.from,r.to)}function ma(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&we(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!ye(e,n))return xe(t);o-=l.top-a.viewOffset;for(var u=0;u<e.display.gutterSpecs.length;++u){var s=a.gutters.childNodes[u];if(s&&s.getBoundingClientRect().right>=i){var c=$e(e.doc,o),f=e.display.gutterSpecs[u];return me(e,n,e,c,f.className,t),xe(t)}}}function va(e,t){return ma(e,t,"gutterClick",!0)}function ga(e,t){xn(e.display,t)||function(e,t){return!!ye(e,"gutterContextMenu")&&ma(e,t,"gutterContextMenu",!1)}(e,t)||ve(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function ya(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}pa.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var ba={toString:function(){return"CodeMirror.Init"}},wa={},ka={};function xa(e,t,n){var r=n&&n!=ba;if(!t!=!r){var i=e.display.dragFunctions,o=t?pe:he;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Ta(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ht(e)),ar(e),sr(e),Un(e),setTimeout(function(){return Vr(e)},100)}function Ea(e,t){var n=this;if(!(this instanceof Ea))return new Ea(e,t);this.options=t=t?R(t):{},R(wa,t,!1);var r=t.value;"string"==typeof r?r=new Co(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ea.inputStyles[t.inputStyle](this),o=this.display=new di(e,r,i,t);for(var s in o.wrapper.CodeMirror=this,ya(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&l<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;pe(t.scroller,"mousedown",$r(e,da)),pe(t.scroller,"dblclick",a&&l<11?$r(e,function(t){if(!ve(e,t)){var n=lr(e,t);if(n&&!va(e,t)&&!xn(e.display,t)){we(t);var r=e.findWordAt(n);Hi(e.doc,r.anchor,r.head)}}}):function(t){return ve(e,t)||we(t)}),pe(t.scroller,"contextmenu",function(t){return ga(e,t)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",function(i){if(!ve(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!va(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),pe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),pe(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!xn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,l=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new wi(l,l):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(l):new wi(et(l.line,0),lt(e.doc,et(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),we(n)}i()}),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Lr(e,t.scroller.scrollTop),Mr(e,t.scroller.scrollLeft,!0),me(e,"scroll",e))}),pe(t.scroller,"mousewheel",function(t){return yi(e,t)}),pe(t.scroller,"DOMMouseScroll",function(t){return yi(e,t)}),pe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ve(e,t)||Te(t)},over:function(t){ve(e,t)||(function(e,t){var n=lr(e,t);if(n){var r=document.createDocumentFragment();vr(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),C(e.display.dragCursor,r)}}(e,t),Te(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-No<100))Te(t);else if(!ve(e,t)&&!xn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:$r(e,Ao),leave:function(t){ve(e,t)||Do(e)}};var u=t.input.getField();pe(u,"keyup",function(t){return ua.call(e,t)}),pe(u,"keydown",$r(e,la)),pe(u,"keypress",$r(e,sa)),pe(u,"focus",function(t){return xr(e,t)}),pe(u,"blur",function(t){return Tr(e,t)})}(this),jo(),Kr(this),this.curOp.forceUpdate=!0,Ii(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout(F(xr,this),20):Tr(this),ka)ka.hasOwnProperty(s)&&ka[s](n,t[s],ba);si(this),t.finishInit&&t.finishInit(this);for(var c=0;c<_a.length;++c)_a[c](n);Hr(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ea.defaults=wa,Ea.optionHandlers=ka;var _a=[];function Sa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=dt(e,t).state:n="prev");var a=e.options.tabSize,l=Ge(o,t),u=P(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var s,c=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((s=o.mode.indent(i,l.text.slice(c.length),l.text))==q||s>150)){if(!r)return;n="prev"}}else s=0,n="not";"prev"==n?s=t>o.first?P(Ge(o,t-1).text,null,a):0:"add"==n?s=u+e.options.indentUnit:"subtract"==n?s=u-e.options.indentUnit:"number"==typeof n&&(s=u+n),s=Math.max(0,s);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(s/a);d;--d)p+=a,f+="\t";if(p<s&&(f+=Q(s-p)),f!=c)return fo(o,f,et(t,0),et(t,c.length),"+input"),l.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var v=et(t,c.length);Wi(o,h,new wi(v,v));break}}}Ea.defineInitHook=function(e){return _a.push(e)};var Oa=null;function Ca(e){Oa=e}function Na(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,l="paste"==i||e.state.pasteIncoming>a,u=Ie(t),s=null;if(l&&r.ranges.length>1)if(Oa&&Oa.text.join("\n")==t){if(r.ranges.length%Oa.text.length==0){s=[];for(var c=0;c<Oa.text.length;c++)s.push(o.splitLines(Oa.text[c]))}}else u.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(s=J(u,function(e){return[e]}));for(var f=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var d=r.ranges[p],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!l?m=et(m.line,Math.min(Ge(o,m.line).text.length,m.ch+Y(u).length)):l&&Oa&&Oa.lineWise&&Oa.text.join("\n")==t&&(h=m=et(h.line,0)));var v={from:h,to:m,text:s?s[p%s.length]:u,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};ao(e.doc,v),un(e,"inputRead",e,v)}t&&!l&&Da(e,t),Nr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Aa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Jr(t,function(){return Na(t,n,0,null,"paste")}),!0}function Da(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Sa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ge(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Sa(e,i.head.line,"smart"));a&&un(e,"electricInput",e,i.head.line)}}}function Ia(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:et(i,0),head:et(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function La(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function ja(){var e=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=N("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),La(e),t}function Ma(e,t,n,r,i){var o=t,a=n,l=Ge(e,t.line);function u(r){var o,a;if(null==(o=i?function(e,t,n,r){var i=ce(t,e.doc.direction);if(!i)return Jo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Jo(t,n,r);var l,u=function(e,n){return Yo(t,e instanceof et?e.ch:e,n)},s=function(n){return e.options.lineWrapping?(l=l||In(e,t),Xn(e,t,l,n)):{begin:0,end:t.text.length}},c=s("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=u(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var d=f?"before":"after";return new et(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,u(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],l=t>0==(1!=a.level),s=l?r.begin:u(r.end,-1);if(a.from<=s&&s<a.to)return o(s,l);if(s=l?a.from:u(a.to,-1),r.begin<=s&&s<r.end)return o(s,l)}},m=h(o+r,r,c);if(m)return m;var v=r>0?c.end:u(c.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,s(v)))?null:m}(e.cm,l,t,n):Jo(l,t,n))){if(r||((a=t.line+n)<e.first||a>=e.first+e.size||(t=new et(a,t.ch,t.sticky),!(l=Ge(e,a)))))return!1;t=$o(i,e.cm,l,t.line,n)}else t=o;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var s=null,c="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var d=l.text.charAt(t.ch)||"\n",h=te(d,f)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||p||h||(h="s"),s&&s!=h){n<0&&(n=1,u(),t.sticky="after");break}if(h&&(s=h),n>0&&!u(!p))break}var m=no(e,t,o,a,!0);return nt(o,m)&&(m.hitSide=!0),m}function Fa(e,t,n,r){var i,o,a=e.doc,l=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(u-.5*tr(e.display),3);i=(n>0?t.bottom:t.top)+n*s}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,l,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ra=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Pa(e,t){var n=Dn(e,t.line);if(!n||n.hidden)return null;var r=Ge(e.doc,t.line),i=Nn(n,r,t.line),o=ce(r,e.doc.direction),a="left";if(o){var l=ue(o,t.ch);a=l%2?"right":"left"}var u=Fn(i.map,t.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function Va(e,t){return t&&(e.bad=!0),e}function Ua(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Va(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ba(o,t,n)}}function Ba(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return Va(et(Je(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Y(e.rest):e.line;return Va(et(Je(o),o.text.length),i)}var a=3==t.nodeType?t:null,l=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var u=e.measure,s=u.maps;function c(t,n,r){for(var i=-1;i<(s?s.length:0);i++)for(var o=i<0?u.map:s[i],a=0;a<o.length;a+=3){var l=o[a+2];if(l==t||l==n){var c=Je(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||l!=t)&&(f=o[a+(r?1:0)]),et(c,f)}}}var f=c(a,l,n);if(f)return Va(f,i);for(var p=l.nextSibling,d=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(f=c(p,p.firstChild,0))return Va(et(f.line,f.ch-d),i);d+=p.textContent.length}for(var h=l.previousSibling,m=n;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1))return Va(et(f.line,f.ch+m),i);m+=h.textContent.length}}Ra.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!ve(r,e)){if(r.somethingSelected())Ca({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ia(r);Ca({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,z),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var o=Oa.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=ja(),l=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),l.value=Oa.text.join("\n");var u=document.activeElement;M(l),setTimeout(function(){r.display.lineSpace.removeChild(a),u.focus(),u==i&&n.showPrimarySelection()},50)}}La(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",function(e){ve(r,e)||Aa(e,r)||l<=11&&setTimeout($r(r,function(){return t.updateFromDOM()}),20)}),pe(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),pe(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),pe(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),pe(i,"touchstart",function(){return n.forceCompositionEnd()}),pe(i,"input",function(){t.composing||t.readFromDOMSoon()}),pe(i,"copy",o),pe(i,"cut",o)},Ra.prototype.prepareSelection=function(){var e=mr(this.cm,!1);return e.focus=this.cm.state.focused,e},Ra.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ra.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ra.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ua(t,e.anchorNode,e.anchorOffset),l=Ua(t,e.focusNode,e.focusOffset);if(!a||a.bad||!l||l.bad||0!=tt(ot(a,l),i)||0!=tt(it(a,l),o)){var u=t.display.view,s=i.line>=t.display.viewFrom&&Pa(t,i)||{node:u[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Pa(t,o);if(!c){var f=u[u.length-1].measure,p=f.maps?f.maps[f.maps.length-1]:f.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(s&&c){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=_(s.node,s.offset,c.offset,c.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(s.node,s.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ra.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ra.prototype.showMultipleSelections=function(e){C(this.cm.display.cursorDiv,e.cursors),C(this.cm.display.selectionDiv,e.selection)},Ra.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ra.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Ra.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ra.prototype.blur=function(){this.div.blur()},Ra.prototype.getField=function(){return this.div},Ra.prototype.supportsTouch=function(){return!0},Ra.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Jr(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},Ra.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ra.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ua(t,e.anchorNode,e.anchorOffset),r=Ua(t,e.focusNode,e.focusOffset);n&&r&&Jr(t,function(){Ji(t.doc,xi(n,r),z),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ra.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),l=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=et(a.line-1,Ge(r.doc,a.line-1).length)),l.ch==Ge(r.doc,l.line).text.length&&l.line<r.lastLine()&&(l=et(l.line+1,0)),a.line<i.viewFrom||l.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=Je(i.view[0].line),n=i.view[0].node):(t=Je(i.view[e].line),n=i.view[e-1].node.nextSibling);var u,s,c=ur(r,l.line);if(c==i.view.length-1?(u=i.viewTo-1,s=i.lineDiv.lastChild):(u=Je(i.view[c+1].line)-1,s=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),u=!1;function s(){a&&(o+=l,u&&(o+=l),a=u=!1)}function c(e){e&&(s(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(et(r,0),et(i+1,0),(v=+p,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&c(We(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&s();for(var m=0;m<t.childNodes.length;m++)f(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;f(t),t!=n;)t=t.nextSibling,u=!1;return o}(r,n,s,t,u)),p=We(r.doc,et(t,0),et(u,Ge(r.doc,u).text.length));f.length>1&&p.length>1;)if(Y(f)==Y(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,m=f[0],v=p[0],g=Math.min(m.length,v.length);d<g&&m.charCodeAt(d)==v.charCodeAt(d);)++d;for(var y=Y(f),b=Y(p),w=Math.min(y.length-(1==f.length?d:0),b.length-(1==p.length?d:0));h<w&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==p.length&&t==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var k=et(t,d),x=et(u,p.length?Y(p).length-h:0);return f.length>1||f[0]||tt(k,x)?(fo(r.doc,f,k,x,"+input"),!0):void 0},Ra.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ra.prototype.reset=function(){this.forceCompositionEnd()},Ra.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ra.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ra.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Jr(this.cm,function(){return sr(e.cm)})},Ra.prototype.setUneditable=function(e){e.contentEditable="false"},Ra.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||$r(this.cm,Na)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ra.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ra.prototype.onContextMenu=function(){},Ra.prototype.resetPosition=function(){},Ra.prototype.needsContentAttribute=!0;var qa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};qa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(r,e)){if(r.somethingSelected())Ca({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ia(r);Ca({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,z):(n.prevInput="",i.value=t.text.join("\n"),M(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),pe(i,"paste",function(e){ve(r,e)||Aa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",function(t){if(!xn(e,t)&&!ve(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),pe(e.lineSpace,"selectstart",function(t){xn(e,t)||we(t)}),pe(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),pe(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},qa.prototype.createField=function(e){this.wrapper=ja(),this.textarea=this.wrapper.firstChild},qa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=mr(e);if(e.options.moveInputWithCursor){var i=Wn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},qa.prototype.showSelection=function(e){var t=this.cm,n=t.display;C(n.cursorDiv,e.cursors),C(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},qa.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&M(this.textarea),a&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null))}},qa.prototype.getField=function(){return this.textarea},qa.prototype.supportsTouch=function(){return!1},qa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},qa.prototype.blur=function(){this.textarea.blur()},qa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qa.prototype.receivedFocus=function(){this.slowPoll()},qa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},qa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},qa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Le(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,s=Math.min(r.length,i.length);u<s&&r.charCodeAt(u)==i.charCodeAt(u);)++u;return Jr(t,function(){Na(t,i.slice(u),r.length-u,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qa.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},qa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=lr(n,e),s=r.scroller.scrollTop;if(o&&!f){var c=n.options.resetSelectionOnContextMenu;c&&-1==n.doc.sel.contains(o)&&$r(n,Ji)(n.doc,xi(o),z);var p,d=i.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(p=window.scrollY),r.input.focus(),u&&window.scrollTo(null,p),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&l>=9&&g(),T){Te(e);var v=function(){he(window,"mouseup",v),setTimeout(y,20)};pe(window,"mouseup",v)}else setTimeout(y,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=d,a&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=s),null!=i.selectionStart)){(!a||a&&l<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?$r(n,io)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},qa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},qa.prototype.setUneditable=function(){},qa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=ba&&i(e,t,n)}:i)}e.defineOption=n,e.Init=ba,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Oi(e)},!0),n("indentUnit",2,Oi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Ci(e),Un(e),sr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++});for(var i=n.length-1;i>=0;i--)fo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=ba&&e.refresh()}),n("specialCharPlaceholder",Xt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ya(e),pi(e)},!0),n("keyMap","default",function(e,t,n){var r=Wo(t),i=n!=ba&&Wo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ta,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=ci(t,e.options.lineNumbers),pi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ir(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Vr(e)},!0),n("scrollbarStyle","native",function(e){qr(e),Vr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=ci(e.options.gutters,t),pi(e)},!0),n("firstLineNumber",1,pi,!0),n("lineNumberFormatter",function(e){return e},pi,!0),n("showCursorWhenSelecting",!1,hr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Tr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,xa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,hr,!0),n("singleCursorHeightPerLine",!0,hr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ci,!0),n("addModeClass",!1,Ci,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Ci,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Ea),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&$r(this,t[e])(this,n,i),me(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Wo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Xr(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,sr(this)}),removeOverlay:Xr(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void sr(this)}}),indentLine:Xr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Xe(this.doc,e)&&Sa(this,e,t,n)}),indentSelection:Xr(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Sa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Nr(this));else{var o=i.from(),a=i.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=l;u<n;++u)Sa(this,u,e);var s=this.doc.sel.ranges;0==o.ch&&t.length==s.length&&s[r].from().ch>0&&Wi(this.doc,r,new wi(o,s[r].to()),z)}}}),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=lt(this.doc,e);var t,n=pt(this,Ge(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var l=i[o[t][a]];l&&r.push(l)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var u=0;u<i._global.length;u++){var s=i._global[u];s.pred(o,this)&&-1==U(r,s.val)&&r.push(s.val)}return r},getStateAfter:function(e,t){var n=this.doc;return dt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Wn(this,null==e?n.head:"object"==typeof e?lt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Gn(this,lt(this.doc,e),t||"page")},coordsChar:function(e,t){return Jn(this,(e=Hn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Hn(this,{top:e,left:0},t||"page").top,$e(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ge(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-zt(r):0)},defaultTextHeight:function(){return tr(this.display)},defaultCharWidth:function(){return nr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,l,u=this.display,s=(e=Wn(this,lt(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),u.sizer.appendChild(t),"over"==r)s=e.top;else if("above"==r||"near"==r){var f=Math.max(u.wrapper.clientHeight,this.doc.height),p=Math.max(u.sizer.clientWidth,u.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(s=e.bottom),c+t.offsetWidth>p&&(c=p-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==i?(c=u.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(u.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:s,right:c+t.offsetWidth,bottom:s+t.offsetHeight},null!=(l=Or(o,a)).scrollTop&&Lr(o,l.scrollTop),null!=l.scrollLeft&&Mr(o,l.scrollLeft))},triggerOnKeyDown:Xr(la),triggerOnKeyPress:Xr(sa),triggerOnKeyUp:ua,triggerOnMouseDown:Xr(da),execCommand:function(e){if(Xo.hasOwnProperty(e))return Xo[e].call(null,this)},triggerElectric:Xr(function(e){Da(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=lt(this.doc,e),a=0;a<t&&!(o=Ma(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Xr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Ma(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},H)}),deleteH:Xr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Qo(this,function(n){var i=Ma(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=lt(this.doc,e),l=0;l<t;++l){var u=Wn(this,a,"div");if(null==o?o=u.left:u.left=o,(a=Fa(this,u,i,n)).hitSide)break}return a},moveV:Xr(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var l=Wn(n,a.head,"div");null!=a.goalColumn&&(l.left=a.goalColumn),i.push(l.left);var u=Fa(n,l,e,t);return"page"==t&&a==r.sel.primary()&&Cr(n,Gn(n,u,"div").top-l.top),u},H),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=this.doc,n=Ge(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;for(var a=n.charAt(r),l=te(a,o)?function(e){return te(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!te(e)};r>0&&l(n.charAt(r-1));)--r;for(;i<n.length&&l(n.charAt(i));)++i}return new wi(et(e.line,r),et(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?L(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),me(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Xr(function(e,t){Ar(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Sn(this)-this.display.barHeight,width:e.scrollWidth-Sn(this)-this.display.barWidth,clientHeight:Cn(this),clientWidth:On(this)}},scrollIntoView:Xr(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Dr(e),e.curOp.scrollToPos=t}(this,e):Ir(this,e.from,e.to,e.margin)}),setSize:Xr(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Vn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){cr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,me(this,"refresh",this)}),operation:function(e){return Jr(this,e)},startOperation:function(){return Kr(this)},endOperation:function(){return Hr(this)},refresh:Xr(function(){var e=this.display.cachedTextHeight;sr(this),this.curOp.forceUpdate=!0,Un(this),Ar(this,this.doc.scrollLeft,this.doc.scrollTop),ai(this.display),(null==e||Math.abs(e-tr(this.display))>.5)&&ar(this),me(this,"refresh",this)}),swapDoc:Xr(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ii(this,e),Un(this),this.display.input.reset(),Ar(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ea);var za="iter insert remove copy getEditor constructor".split(" ");for(var Ka in Co.prototype)Co.prototype.hasOwnProperty(Ka)&&U(za,Ka)<0&&(Ea.prototype[Ka]=function(e){return function(){return e.apply(this.doc,arguments)}}(Co.prototype[Ka]));return be(Co),Ea.inputStyles={textarea:qa,contenteditable:Ra},Ea.defineMode=function(e){Ea.defaults.mode||"null"==e||(Ea.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Fe[e]=t}.apply(this,arguments)},Ea.defineMIME=function(e,t){Re[e]=t},Ea.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ea.defineMIME("text/plain","null"),Ea.defineExtension=function(e,t){Ea.prototype[e]=t},Ea.defineDocExtension=function(e,t){Co.prototype[e]=t},Ea.fromTextArea=function(e,t){if((t=t?R(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(he(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var l=Ea(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return l},function(e){e.off=he,e.on=pe,e.wheelEventPixels=gi,e.Doc=Co,e.splitLines=Ie,e.countColumn=P,e.findColumn=G,e.isWordChar=ee,e.Pass=q,e.signal=me,e.Line=Gt,e.changeEnd=Ti,e.scrollbarModel=Br,e.Pos=et,e.cmpPos=tt,e.modes=Fe,e.mimeModes=Re,e.resolveMode=Pe,e.getMode=Ve,e.modeExtensions=Ue,e.extendMode=Be,e.copyState=qe,e.startState=Ke,e.innerMode=ze,e.commands=Xo,e.keyMap=Uo,e.keyName=Go,e.isModifierKey=Ko,e.lookupKey=zo,e.normalizeKeyMap=qo,e.StringStream=He,e.SharedTextMarker=Eo,e.TextMarker=xo,e.LineWidget=bo,e.e_preventDefault=we,e.e_stopPropagation=ke,e.e_stop=Te,e.addClass=L,e.contains=D,e.rmClass=S,e.keyNames=Fo}(Ea),Ea.version="5.47.0",Ea}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(13);function i(e){return Object(r.c)(e,{leave:o})}var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=s("(",l(e.variableDefinitions,", "),")"),i=l(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?l([t,l([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+s(" = ",r)+s(" ",l(i," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return l([s("",t,": ")+n+s("(",l(r,", "),")"),l(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+s(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return l(["...",s("on ",t),l(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(s("(",l(r,", "),")")," ")+"on ".concat(n," ").concat(s("",l(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?function(e,t){var n=e.replace(/"""/g,'\\"""');return f(e)||" "!==e[0]&&"\t"!==e[0]?'"""\n'.concat(t?n:c(n),'\n"""'):'"""'.concat(n.replace(/"$/,'"\n'),'"""')}(n,"description"===t):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+s("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return l(["schema",l(t," "),u(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a(function(e){return l(["scalar",e.name,l(e.directives," ")]," ")}),ObjectTypeDefinition:a(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["type",t,s("implements ",l(n," & ")),l(r," "),u(i)]," ")}),FieldDefinition:a(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(p(n)?s("(\n",c(l(n,"\n")),"\n)"):s("(",l(n,", "),")"))+": "+r+s(" ",l(i," "))}),InputValueDefinition:a(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return l([t+": "+n,s("= ",r),l(i," ")]," ")}),InterfaceTypeDefinition:a(function(e){var t=e.name,n=e.directives,r=e.fields;return l(["interface",t,l(n," "),u(r)]," ")}),UnionTypeDefinition:a(function(e){var t=e.name,n=e.directives,r=e.types;return l(["union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")}),EnumTypeDefinition:a(function(e){var t=e.name,n=e.directives,r=e.values;return l(["enum",t,l(n," "),u(r)]," ")}),EnumValueDefinition:a(function(e){return l([e.name,l(e.directives," ")]," ")}),InputObjectTypeDefinition:a(function(e){var t=e.name,n=e.directives,r=e.fields;return l(["input",t,l(n," "),u(r)]," ")}),DirectiveDefinition:a(function(e){var t=e.name,n=e.arguments,r=e.locations;return"directive @"+t+(p(n)?s("(\n",c(l(n,"\n")),"\n)"):s("(",l(n,", "),")"))+" on "+l(r," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return l(["extend schema",l(t," "),u(n)]," ")},ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return l(["extend type",t,s("implements ",l(n," & ")),l(r," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend interface",t,l(n," "),u(r)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return l(["extend union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return l(["extend enum",t,l(n," "),u(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend input",t,l(n," "),u(r)]," ")}};function a(e){return function(t){return l([t.description,e(t)],"\n")}}function l(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function u(e){return e&&0!==e.length?"{\n"+c(l(e,"\n"))+"\n}":""}function s(e,t,n){return t?e+t+(n||""):""}function c(e){return e&&" "+e.replace(/\n/g,"\n ")}function f(e){return-1!==e.indexOf("\n")}function p(e){return e&&e.some(f)}},function(e,t,n){"use strict";n.r(t);var r=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}},i=n(9),o=n(24),a=n(0),l=n(7),u=n(22),s=n(20),c=n(23),f=n(4),p=n(3),d=n(6);function h(e){return(h="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 m(e){return Object(c.a)(e,g)}function v(e){return m(e)||Object(f.a)(0,"Expected ".concat(Object(p.a)(e)," to be a GraphQL directive.")),e}var g=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.astNode=e.astNode,e.name||Object(f.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(f.a)(0,"@".concat(e.name," locations must be an Array."));var t=e.args||{};("object"!==h(t)||Array.isArray(t))&&Object(f.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(o.a)(t).map(function(e){var t=e[0],n=e[1];return{name:t,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,astNode:n.astNode}})}return e.prototype.toString=function(){return"@"+this.name},e}();Object(u.a)(g),Object(s.a)(g);var y=new g({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[d.a.FIELD,d.a.FRAGMENT_SPREAD,d.a.INLINE_FRAGMENT],args:{if:{type:Object(a.e)(l.a),description:"Included when true."}}}),b=new g({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[d.a.FIELD,d.a.FRAGMENT_SPREAD,d.a.INLINE_FRAGMENT],args:{if:{type:Object(a.e)(l.a),description:"Skipped when true."}}}),w="No longer supported",k=new g({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[d.a.FIELD_DEFINITION,d.a.ENUM_VALUE],args:{reason:{type:l.e,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:w}}}),x=[y,b,k];function T(e){return x.some(function(t){return t.name===e.name})}var E=n(5);function _(e){return(_="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 S(e){return Object(c.a)(e,C)}function O(e){return S(e)||Object(f.a)(0,"Expected ".concat(Object(p.a)(e)," to be a GraphQL schema.")),e}var C=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,"object"!==_(e)&&Object(f.a)(0,"Must provide configuration object."),e.types&&!Array.isArray(e.types)&&Object(f.a)(0,'"types" must be Array if provided but got: '.concat(Object(p.a)(e.types),".")),e.directives&&!Array.isArray(e.directives)&&Object(f.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(p.a)(e.directives),".")),e.allowedLegacyNames&&!Array.isArray(e.allowedLegacyNames)&&Object(f.a)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat(Object(p.a)(e.allowedLegacyNames),"."))),this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||x,this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes;var t=[this.getQueryType(),this.getMutationType(),this.getSubscriptionType(),E.__Schema],n=e.types;n&&(t=t.concat(n));var r=Object.create(null);r=t.reduce(N,r),r=this._directives.reduce(A,r),this._typeMap=r,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);var o=!0,l=!1,u=void 0;try{for(var s,c=Object(i.a)(this._typeMap)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var d=s.value;if(Object(a.M)(d)){var h=!0,m=!1,v=void 0;try{for(var g,y=d.getInterfaces()[Symbol.iterator]();!(h=(g=y.next()).done);h=!0){var b=g.value;if(Object(a.G)(b)){var w=this._implementations[b.name];w?w.push(d):this._implementations[b.name]=[d]}}}catch(e){m=!0,v=e}finally{try{h||null==y.return||y.return()}finally{if(m)throw v}}}else Object(a.B)(d)&&!this._implementations[d.name]&&(this._implementations[d.name]=[])}}catch(e){l=!0,u=e}finally{try{o||null==c.return||c.return()}finally{if(l)throw u}}}var t=e.prototype;return t.getQueryType=function(){return this._queryType},t.getMutationType=function(){return this._mutationType},t.getSubscriptionType=function(){return this._subscriptionType},t.getTypeMap=function(){return this._typeMap},t.getType=function(e){return this.getTypeMap()[e]},t.getPossibleTypes=function(e){return Object(a.S)(e)?e.getTypes():this._implementations[e.name]},t.isPossibleType=function(e,t){var n=this._possibleTypeMap;if(!n[e.name]){var r=this.getPossibleTypes(e);n[e.name]=r.reduce(function(e,t){return e[t.name]=!0,e},Object.create(null))}return Boolean(n[e.name][t.name])},t.getDirectives=function(){return this._directives},t.getDirective=function(e){return r(this.getDirectives(),function(t){return t.name===e})},e}();function N(e,t){if(!t)return e;if(Object(a.T)(t))return N(e,t.ofType);if(e[t.name])return e[t.name]!==t&&Object(f.a)(0,"Schema must contain unique named types but contains multiple "+'types named "'.concat(t.name,'".')),e;e[t.name]=t;var n=e;if(Object(a.S)(t)&&(n=t.getTypes().reduce(N,n)),Object(a.M)(t)&&(n=t.getInterfaces().reduce(N,n)),Object(a.M)(t)||Object(a.G)(t)){var r=!0,o=!1,l=void 0;try{for(var u,s=Object(i.a)(t.getFields())[Symbol.iterator]();!(r=(u=s.next()).done);r=!0){var c=u.value;if(c.args)n=c.args.map(function(e){return e.type}).reduce(N,n);n=N(n,c.type)}}catch(e){o=!0,l=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw l}}}if(Object(a.E)(t)){var p=!0,d=!1,h=void 0;try{for(var m,v=Object(i.a)(t.getFields())[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){n=N(n,m.value.type)}}catch(e){d=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(d)throw h}}}return n}function A(e,t){return m(t)?t.args.reduce(function(e,t){return N(e,t.type)},e):e}Object(u.a)(C);var D=n(2),I=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function L(e){var t=j(e);if(t)throw t;return e}function j(e,t){return"string"!=typeof e&&Object(f.a)(0,"Expected string"),e.length>1&&"_"===e[0]&&"_"===e[1]?new D.a('Name "'.concat(e,'" must not begin with "__", which is reserved by ')+"GraphQL introspection.",t):I.test(e)?void 0:new D.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),t)}function M(e,t){return e===t||(Object(a.K)(e)&&Object(a.K)(t)?M(e.ofType,t.ofType):!(!Object(a.I)(e)||!Object(a.I)(t))&&M(e.ofType,t.ofType))}function F(e,t,n){return t===n||(Object(a.K)(n)?!!Object(a.K)(t)&&F(e,t.ofType,n.ofType):Object(a.K)(t)?F(e,t.ofType,n):Object(a.I)(n)?!!Object(a.I)(t)&&F(e,t.ofType,n.ofType):!Object(a.I)(t)&&!!(Object(a.B)(n)&&Object(a.M)(t)&&e.isPossibleType(n,t)))}function R(e,t,n){return t===n||(Object(a.B)(t)?Object(a.B)(n)?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(n,t)}):e.isPossibleType(t,n):!!Object(a.B)(n)&&e.isPossibleType(n,t))}function P(e){if(O(e),e.__validationErrors)return e.__validationErrors;var t=new U(e);!function(e){var t=e.schema,n=t.getQueryType();n?Object(a.M)(n)||e.reportError("Query root type must be Object type, it cannot be ".concat(Object(p.a)(n),"."),B(t,n,"query")):e.reportError("Query root type must be provided.",t.astNode);var r=t.getMutationType();r&&!Object(a.M)(r)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(Object(p.a)(r),"."),B(t,r,"mutation"));var i=t.getSubscriptionType();i&&!Object(a.M)(i)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(Object(p.a)(i),"."),B(t,i,"subscription"))}(t),function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=e.schema.getDirectives()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var l=i.value;if(m(l)){q(e,l);var u=Object.create(null),s=!0,c=!1,f=void 0;try{for(var d,h=l.args[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var v=d.value,g=v.name;q(e,v),u[g]?e.reportError("Argument @".concat(l.name,"(").concat(g,":) can only be defined once."),ie(l,g)):(u[g]=!0,Object(a.F)(v.type)||e.reportError("The type of @".concat(l.name,"(").concat(g,":) must be Input Type ")+"but got: ".concat(Object(p.a)(v.type),"."),oe(l,g)))}}catch(e){c=!0,f=e}finally{try{s||null==h.return||h.return()}finally{if(c)throw f}}}else e.reportError("Expected directive but got: ".concat(Object(p.a)(l),"."),l&&l.astNode)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}(t),function(e){var t=e.schema.getTypeMap(),n=!0,r=!1,o=void 0;try{for(var l,u=Object(i.a)(t)[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){var s=l.value;Object(a.J)(s)?(Object(E.isIntrospectionType)(s)||q(e,s),Object(a.M)(s)?(z(e,s),K(e,s)):Object(a.G)(s)?z(e,s):Object(a.S)(s)?G(e,s):Object(a.D)(s)?W(e,s):Object(a.E)(s)&&Q(e,s)):e.reportError("Expected GraphQL named type but got: ".concat(Object(p.a)(s),"."),s&&s.astNode)}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function V(e){var t=P(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}var U=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=(Array.isArray(t)?t:[t]).filter(Boolean);this.addError(new D.a(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function B(e,t,n){var r=J(e,function(e){return e.operationTypes}),i=!0,o=!1,a=void 0;try{for(var l,u=r[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value;if(s.operation===n)return s.type}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return t.astNode}function q(e,t){if(-1===e.schema.__allowedLegacyNames.indexOf(t.name)){var n=j(t.name,t.astNode||void 0);n&&e.addError(n)}}function z(e,t){var n=Object(i.a)(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),Y(t));var r=!0,o=!1,l=void 0;try{for(var u,s=n[Symbol.iterator]();!(r=(u=s.next()).done);r=!0){var c=u.value;q(e,c),Object(a.N)(c.type)||e.reportError("The type of ".concat(t.name,".").concat(c.name," must be Output Type ")+"but got: ".concat(Object(p.a)(c.type),"."),ee(t,c.name));var f=Object.create(null),d=!0,h=!1,m=void 0;try{for(var v,g=c.args[Symbol.iterator]();!(d=(v=g.next()).done);d=!0){var y=v.value,b=y.name;q(e,y),f[b]&&e.reportError("Field argument ".concat(t.name,".").concat(c.name,"(").concat(b,":) can only ")+"be defined once.",ne(t,c.name,b)),f[b]=!0,Object(a.F)(y.type)||e.reportError("The type of ".concat(t.name,".").concat(c.name,"(").concat(b,":) must be Input ")+"Type but got: ".concat(Object(p.a)(y.type),"."),re(t,c.name,b))}}catch(e){h=!0,m=e}finally{try{d||null==g.return||g.return()}finally{if(h)throw m}}}}catch(e){o=!0,l=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw l}}}function K(e,t){var n=Object.create(null),r=!0,i=!1,o=void 0;try{for(var l,u=t.getInterfaces()[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var s=l.value;Object(a.G)(s)?n[s.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(s.name," once."),X(t,s)):(n[s.name]=!0,H(e,t,s)):e.reportError("Type ".concat(Object(p.a)(t)," must only implement Interface types, ")+"it cannot implement ".concat(Object(p.a)(s),"."),$(t,s))}}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}}function H(e,t,n){var i=t.getFields(),l=n.getFields(),u=!0,s=!1,c=void 0;try{for(var f,d=Object(o.a)(l)[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var h=f.value,m=h[0],v=h[1],g=i[m];if(g){F(e.schema,g.type,v.type)||e.reportError("Interface field ".concat(n.name,".").concat(m," expects type ")+"".concat(Object(p.a)(v.type)," but ").concat(t.name,".").concat(m," ")+"is type ".concat(Object(p.a)(g.type),"."),[ee(n,m),ee(t,m)]);var y=!0,b=!1,w=void 0;try{for(var k,x=function(){var i=k.value,o=i.name,a=r(g.args,function(e){return e.name===o});if(!a)return e.reportError("Interface field argument ".concat(n.name,".").concat(m,"(").concat(o,":) ")+"expected but ".concat(t.name,".").concat(m," does not provide it."),[te(n,m,o),Z(t,m)]),"continue";M(i.type,a.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(m,"(").concat(o,":) ")+"expects type ".concat(Object(p.a)(i.type)," but ")+"".concat(t.name,".").concat(m,"(").concat(o,":) is type ")+"".concat(Object(p.a)(a.type),"."),[re(n,m,o),re(t,m,o)])},T=v.args[Symbol.iterator]();!(y=(k=T.next()).done);y=!0)x()}catch(e){b=!0,w=e}finally{try{y||null==T.return||T.return()}finally{if(b)throw w}}var E=!0,_=!1,S=void 0;try{for(var O,C=function(){var i=O.value,o=i.name;!r(v.args,function(e){return e.name===o})&&Object(a.O)(i)&&e.reportError("Object field ".concat(t.name,".").concat(m," includes required ")+"argument ".concat(o," that is missing from the Interface field ")+"".concat(n.name,".").concat(m,"."),[te(t,m,o),Z(n,m)])},N=g.args[Symbol.iterator]();!(E=(O=N.next()).done);E=!0)C()}catch(e){_=!0,S=e}finally{try{E||null==N.return||N.return()}finally{if(_)throw S}}}else e.reportError("Interface field ".concat(n.name,".").concat(m," expected but ")+"".concat(t.name," does not provide it."),[Z(n,m)].concat(Y(t)))}}catch(e){s=!0,c=e}finally{try{u||null==d.return||d.return()}finally{if(s)throw c}}}function G(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),Y(t));var r=Object.create(null),i=!0,o=!1,l=void 0;try{for(var u,s=n[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){var c=u.value;r[c.name]?e.reportError("Union type ".concat(t.name," can only include type ")+"".concat(c.name," once."),ae(t,c.name)):(r[c.name]=!0,Object(a.M)(c)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat(Object(p.a)(c),"."),ae(t,String(c))))}}catch(e){o=!0,l=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}}function W(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),Y(t));var r=!0,i=!1,o=void 0;try{for(var a,l=n[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var u=a.value,s=u.name;q(e,u),"true"!==s&&"false"!==s&&"null"!==s||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(s,"."),u.astNode)}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}}function Q(e,t){var n=Object(i.a)(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),Y(t));var r=!0,o=!1,l=void 0;try{for(var u,s=n[Symbol.iterator]();!(r=(u=s.next()).done);r=!0){var c=u.value;q(e,c),Object(a.F)(c.type)||e.reportError("The type of ".concat(t.name,".").concat(c.name," must be Input Type ")+"but got: ".concat(Object(p.a)(c.type),"."),c.astNode&&c.astNode.type)}}catch(e){o=!0,l=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw l}}}function Y(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:n||[]}function J(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=Y(e)[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var u=a.value;if(u){var s=t(u);s&&(n=n.concat(s))}}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}function $(e,t){return X(e,t)[0]}function X(e,t){return J(e,function(e){return e.interfaces}).filter(function(e){return e.name.value===t.name})}function Z(e,t){return r(J(e,function(e){return e.fields}),function(e){return e.name.value===t})}function ee(e,t){var n=Z(e,t);return n&&n.type}function te(e,t,n){return ne(e,t,n)[0]}function ne(e,t,n){var r=[],i=Z(e,t);if(i&&i.arguments){var o=!0,a=!1,l=void 0;try{for(var u,s=i.arguments[Symbol.iterator]();!(o=(u=s.next()).done);o=!0){var c=u.value;c.name.value===n&&r.push(c)}}catch(e){a=!0,l=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw l}}}return r}function re(e,t,n){var r=te(e,t,n);return r&&r.type}function ie(e,t){return J(e,function(e){return e.arguments}).filter(function(e){return e.name.value===t})}function oe(e,t){var n=ie(e,t)[0];return n&&n.type}function ae(e,t){return J(e,function(e){return e.types}).filter(function(e){return e.name.value===t})}var le=function(e,t,n){this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||Object(f.a)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Object(f.a)(0,"column in locationOffset is 1-indexed and must be positive")};function ue(e,t,n){return new D.a("Syntax Error: ".concat(n),void 0,e,[t])}function se(e){for(var t=e.split(/\r\n|[\n\r]/g),n=null,r=1;r<t.length;r++){var i=t[r],o=ce(i);if(o<i.length&&(null===n||o<n)&&0===(n=o))break}if(n)for(var a=1;a<t.length;a++)t[a]=t[a].slice(n);for(;t.length>0&&fe(t[0]);)t.shift();for(;t.length>0&&fe(t[t.length-1]);)t.pop();return t.join("\n")}function ce(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function fe(e){return ce(e)===e.length}function pe(e,t){var n=new be(me.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:de,lookahead:he}}function de(){return this.lastToken=this.token,this.token=this.lookahead()}function he(){var e=this.token;if(e.kind!==me.EOF)do{e=e.next||(e.next=ke(this,e))}while(e.kind===me.COMMENT);return e}Object(u.a)(le);var me=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 ve(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}var ge=String.prototype.charCodeAt,ye=String.prototype.slice;function be(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function we(e){return isNaN(e)?me.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function ke(e,t){var n=e.source,r=n.body,i=r.length,o=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=ge.call(e,i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++n.line,n.lineStart=i;else{if(13!==o)break;10===ge.call(e,i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(r,t.end,e),a=e.line,l=1+o-e.lineStart;if(o>=i)return new be(me.EOF,i,i,a,l,t);var u=ge.call(r,o);switch(u){case 33:return new be(me.BANG,o,o+1,a,l,t);case 35:return function(e,t,n,r,i){var o,a=e.body,l=t;do{o=ge.call(a,++l)}while(null!==o&&(o>31||9===o));return new be(me.COMMENT,t,l,n,r,i,ye.call(a,t+1,l))}(n,o,a,l,t);case 36:return new be(me.DOLLAR,o,o+1,a,l,t);case 38:return new be(me.AMP,o,o+1,a,l,t);case 40:return new be(me.PAREN_L,o,o+1,a,l,t);case 41:return new be(me.PAREN_R,o,o+1,a,l,t);case 46:if(46===ge.call(r,o+1)&&46===ge.call(r,o+2))return new be(me.SPREAD,o,o+3,a,l,t);break;case 58:return new be(me.COLON,o,o+1,a,l,t);case 61:return new be(me.EQUALS,o,o+1,a,l,t);case 64:return new be(me.AT,o,o+1,a,l,t);case 91:return new be(me.BRACKET_L,o,o+1,a,l,t);case 93:return new be(me.BRACKET_R,o,o+1,a,l,t);case 123:return new be(me.BRACE_L,o,o+1,a,l,t);case 124:return new be(me.PIPE,o,o+1,a,l,t);case 125:return new be(me.BRACE_R,o,o+1,a,l,t);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 function(e,t,n,r,i){var o=e.body,a=o.length,l=t+1,u=0;for(;l!==a&&null!==(u=ge.call(o,l))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++l;return new be(me.NAME,t,l,n,r,i,ye.call(o,t,l))}(n,o,a,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var a=e.body,l=n,u=t,s=!1;45===l&&(l=ge.call(a,++u));if(48===l){if((l=ge.call(a,++u))>=48&&l<=57)throw ue(e,u,"Invalid number, unexpected digit after 0: ".concat(we(l),"."))}else u=xe(e,u,l),l=ge.call(a,u);46===l&&(s=!0,l=ge.call(a,++u),u=xe(e,u,l),l=ge.call(a,u));69!==l&&101!==l||(s=!0,43!==(l=ge.call(a,++u))&&45!==l||(l=ge.call(a,++u)),u=xe(e,u,l));return new be(s?me.FLOAT:me.INT,t,u,r,i,o,ye.call(a,t,u))}(n,o,u,a,l,t);case 34:return 34===ge.call(r,o+1)&&34===ge.call(r,o+2)?function(e,t,n,r,i,o){var a=e.body,l=t+3,u=l,s=0,c="";for(;l<a.length&&null!==(s=ge.call(a,l));){if(34===s&&34===ge.call(a,l+1)&&34===ge.call(a,l+2))return c+=ye.call(a,u,l),new be(me.BLOCK_STRING,t,l+3,n,r,i,se(c));if(s<32&&9!==s&&10!==s&&13!==s)throw ue(e,l,"Invalid character within String: ".concat(we(s),"."));10===s?(++l,++o.line,o.lineStart=l):13===s?(10===ge.call(a,l+1)?l+=2:++l,++o.line,o.lineStart=l):92===s&&34===ge.call(a,l+1)&&34===ge.call(a,l+2)&&34===ge.call(a,l+3)?(c+=ye.call(a,u,l)+'"""',u=l+=4):++l}throw ue(e,l,"Unterminated string.")}(n,o,a,l,t,e):function(e,t,n,r,i){var o=e.body,a=t+1,l=a,u=0,s="";for(;a<o.length&&null!==(u=ge.call(o,a))&&10!==u&&13!==u;){if(34===u)return s+=ye.call(o,l,a),new be(me.STRING,t,a+1,n,r,i,s);if(u<32&&9!==u)throw ue(e,a,"Invalid character within String: ".concat(we(u),"."));if(++a,92===u){switch(s+=ye.call(o,l,a-1),u=ge.call(o,a)){case 34:s+='"';break;case 47:s+="/";break;case 92:s+="\\";break;case 98:s+="\b";break;case 102:s+="\f";break;case 110:s+="\n";break;case 114:s+="\r";break;case 116:s+="\t";break;case 117:var c=(f=ge.call(o,a+1),p=ge.call(o,a+2),d=ge.call(o,a+3),h=ge.call(o,a+4),Te(f)<<12|Te(p)<<8|Te(d)<<4|Te(h));if(c<0)throw ue(e,a,"Invalid character escape sequence: "+"\\u".concat(o.slice(a+1,a+5),"."));s+=String.fromCharCode(c),a+=4;break;default:throw ue(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}l=++a}}var f,p,d,h;throw ue(e,a,"Unterminated string.")}(n,o,a,l,t)}throw ue(n,o,function(e){if(e<32&&9!==e&&10!==e&&13!==e)return"Cannot contain the invalid character ".concat(we(e),".");if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character ".concat(we(e),".")}(u))}function xe(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=ge.call(r,++i)}while(o>=48&&o<=57);return i}throw ue(e,i,"Invalid number, expected digit but got: ".concat(we(o),"."))}function Te(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Object(s.a)(be,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}});var Ee=n(1);function _e(e,t){var n="string"==typeof e?new le(e):e;if(!(n instanceof le))throw new TypeError("Must provide Source. Received: ".concat(Object(p.a)(n)));return function(e){var t=e.token;return{kind:Ee.Kind.DOCUMENT,definitions:wt(e,me.SOF,Ne,me.EOF),loc:ft(e,t)}}(pe(n,t||{}))}function Se(e,t){var n=pe("string"==typeof e?new le(e):e,t||{});mt(n,me.SOF);var r=qe(n,!1);return mt(n,me.EOF),r}function Oe(e,t){var n=pe("string"==typeof e?new le(e):e,t||{});mt(n,me.SOF);var r=Ye(n);return mt(n,me.EOF),r}function Ce(e){var t=mt(e,me.NAME);return{kind:Ee.Kind.NAME,value:t.value,loc:ft(e,t)}}function Ne(e){if(dt(e,me.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return Ae(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return $e(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===me.NAME)switch(t.value){case"schema":return function(e){var t=e.token;gt(e,"extend"),gt(e,"schema");var n=We(e,!0),r=dt(e,me.BRACE_L)?wt(e,me.BRACE_L,et,me.BRACE_R):[];if(0===n.length&&0===r.length)throw yt(e);return{kind:Ee.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:ft(e,t)}}(e);case"scalar":return function(e){var t=e.token;gt(e,"extend"),gt(e,"scalar");var n=Ce(e),r=We(e,!0);if(0===r.length)throw yt(e);return{kind:Ee.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:ft(e,t)}}(e);case"type":return function(e){var t=e.token;gt(e,"extend"),gt(e,"type");var n=Ce(e),r=tt(e),i=We(e,!0),o=nt(e);if(0===r.length&&0===i.length&&0===o.length)throw yt(e);return{kind:Ee.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o,loc:ft(e,t)}}(e);case"interface":return function(e){var t=e.token;gt(e,"extend"),gt(e,"interface");var n=Ce(e),r=We(e,!0),i=nt(e);if(0===r.length&&0===i.length)throw yt(e);return{kind:Ee.Kind.INTERFACE_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:ft(e,t)}}(e);case"union":return function(e){var t=e.token;gt(e,"extend"),gt(e,"union");var n=Ce(e),r=We(e,!0),i=at(e);if(0===r.length&&0===i.length)throw yt(e);return{kind:Ee.Kind.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:ft(e,t)}}(e);case"enum":return function(e){var t=e.token;gt(e,"extend"),gt(e,"enum");var n=Ce(e),r=We(e,!0),i=lt(e);if(0===r.length&&0===i.length)throw yt(e);return{kind:Ee.Kind.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:ft(e,t)}}(e);case"input":return function(e){var t=e.token;gt(e,"extend"),gt(e,"input");var n=Ce(e),r=We(e,!0),i=st(e);if(0===r.length&&0===i.length)throw yt(e);return{kind:Ee.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:ft(e,t)}}(e)}throw yt(e,t)}(e)}else{if(dt(e,me.BRACE_L))return Ae(e);if(Xe(e))return $e(e)}throw yt(e)}function Ae(e){if(dt(e,me.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return De(e);case"fragment":return function(e){var t=e.token;if(gt(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:Ee.Kind.FRAGMENT_DEFINITION,name:Be(e),variableDefinitions:Le(e),typeCondition:(gt(e,"on"),Je(e)),directives:We(e,!1),selectionSet:Fe(e),loc:ft(e,t)};return{kind:Ee.Kind.FRAGMENT_DEFINITION,name:Be(e),typeCondition:(gt(e,"on"),Je(e)),directives:We(e,!1),selectionSet:Fe(e),loc:ft(e,t)}}(e)}else if(dt(e,me.BRACE_L))return De(e);throw yt(e)}function De(e){var t=e.token;if(dt(e,me.BRACE_L))return{kind:Ee.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:Fe(e),loc:ft(e,t)};var n,r=Ie(e);return dt(e,me.NAME)&&(n=Ce(e)),{kind:Ee.Kind.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:Le(e),directives:We(e,!1),selectionSet:Fe(e),loc:ft(e,t)}}function Ie(e){var t=mt(e,me.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw yt(e,t)}function Le(e){return dt(e,me.PAREN_L)?wt(e,me.PAREN_L,je,me.PAREN_R):[]}function je(e){var t=e.token;return{kind:Ee.Kind.VARIABLE_DEFINITION,variable:Me(e),type:(mt(e,me.COLON),Ye(e)),defaultValue:ht(e,me.EQUALS)?qe(e,!0):void 0,directives:We(e,!0),loc:ft(e,t)}}function Me(e){var t=e.token;return mt(e,me.DOLLAR),{kind:Ee.Kind.VARIABLE,name:Ce(e),loc:ft(e,t)}}function Fe(e){var t=e.token;return{kind:Ee.Kind.SELECTION_SET,selections:wt(e,me.BRACE_L,Re,me.BRACE_R),loc:ft(e,t)}}function Re(e){return dt(e,me.SPREAD)?function(e){var t=e.token;mt(e,me.SPREAD);var n=vt(e,"on");if(!n&&dt(e,me.NAME))return{kind:Ee.Kind.FRAGMENT_SPREAD,name:Be(e),directives:We(e,!1),loc:ft(e,t)};return{kind:Ee.Kind.INLINE_FRAGMENT,typeCondition:n?Je(e):void 0,directives:We(e,!1),selectionSet:Fe(e),loc:ft(e,t)}}(e):function(e){var t,n,r=e.token,i=Ce(e);ht(e,me.COLON)?(t=i,n=Ce(e)):n=i;return{kind:Ee.Kind.FIELD,alias:t,name:n,arguments:Pe(e,!1),directives:We(e,!1),selectionSet:dt(e,me.BRACE_L)?Fe(e):void 0,loc:ft(e,r)}}(e)}function Pe(e,t){var n=t?Ue:Ve;return dt(e,me.PAREN_L)?wt(e,me.PAREN_L,n,me.PAREN_R):[]}function Ve(e){var t=e.token;return{kind:Ee.Kind.ARGUMENT,name:Ce(e),value:(mt(e,me.COLON),qe(e,!1)),loc:ft(e,t)}}function Ue(e){var t=e.token;return{kind:Ee.Kind.ARGUMENT,name:Ce(e),value:(mt(e,me.COLON),Ke(e)),loc:ft(e,t)}}function Be(e){if("on"===e.token.value)throw yt(e);return Ce(e)}function qe(e,t){var n=e.token;switch(n.kind){case me.BRACKET_L:return function(e,t){var n=e.token,r=t?Ke:He;return{kind:Ee.Kind.LIST,values:bt(e,me.BRACKET_L,r,me.BRACKET_R),loc:ft(e,n)}}(e,t);case me.BRACE_L:return function(e,t){var n=e.token;mt(e,me.BRACE_L);var r=[];for(;!ht(e,me.BRACE_R);)r.push(Ge(e,t));return{kind:Ee.Kind.OBJECT,fields:r,loc:ft(e,n)}}(e,t);case me.INT:return e.advance(),{kind:Ee.Kind.INT,value:n.value,loc:ft(e,n)};case me.FLOAT:return e.advance(),{kind:Ee.Kind.FLOAT,value:n.value,loc:ft(e,n)};case me.STRING:case me.BLOCK_STRING:return ze(e);case me.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:Ee.Kind.BOOLEAN,value:"true"===n.value,loc:ft(e,n)}):"null"===n.value?(e.advance(),{kind:Ee.Kind.NULL,loc:ft(e,n)}):(e.advance(),{kind:Ee.Kind.ENUM,value:n.value,loc:ft(e,n)});case me.DOLLAR:if(!t)return Me(e)}throw yt(e)}function ze(e){var t=e.token;return e.advance(),{kind:Ee.Kind.STRING,value:t.value,block:t.kind===me.BLOCK_STRING,loc:ft(e,t)}}function Ke(e){return qe(e,!0)}function He(e){return qe(e,!1)}function Ge(e,t){var n=e.token;return{kind:Ee.Kind.OBJECT_FIELD,name:Ce(e),value:(mt(e,me.COLON),qe(e,t)),loc:ft(e,n)}}function We(e,t){for(var n=[];dt(e,me.AT);)n.push(Qe(e,t));return n}function Qe(e,t){var n=e.token;return mt(e,me.AT),{kind:Ee.Kind.DIRECTIVE,name:Ce(e),arguments:Pe(e,t),loc:ft(e,n)}}function Ye(e){var t,n=e.token;return ht(e,me.BRACKET_L)?(t=Ye(e),mt(e,me.BRACKET_R),t={kind:Ee.Kind.LIST_TYPE,type:t,loc:ft(e,n)}):t=Je(e),ht(e,me.BANG)?{kind:Ee.Kind.NON_NULL_TYPE,type:t,loc:ft(e,n)}:t}function Je(e){var t=e.token;return{kind:Ee.Kind.NAMED_TYPE,name:Ce(e),loc:ft(e,t)}}function $e(e){var t=Xe(e)?e.lookahead():e.token;if(t.kind===me.NAME)switch(t.value){case"schema":return function(e){var t=e.token;gt(e,"schema");var n=We(e,!0),r=wt(e,me.BRACE_L,et,me.BRACE_R);return{kind:Ee.Kind.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:ft(e,t)}}(e);case"scalar":return function(e){var t=e.token,n=Ze(e);gt(e,"scalar");var r=Ce(e),i=We(e,!0);return{kind:Ee.Kind.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:ft(e,t)}}(e);case"type":return function(e){var t=e.token,n=Ze(e);gt(e,"type");var r=Ce(e),i=tt(e),o=We(e,!0),a=nt(e);return{kind:Ee.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a,loc:ft(e,t)}}(e);case"interface":return function(e){var t=e.token,n=Ze(e);gt(e,"interface");var r=Ce(e),i=We(e,!0),o=nt(e);return{kind:Ee.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:ft(e,t)}}(e);case"union":return function(e){var t=e.token,n=Ze(e);gt(e,"union");var r=Ce(e),i=We(e,!0),o=at(e);return{kind:Ee.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o,loc:ft(e,t)}}(e);case"enum":return function(e){var t=e.token,n=Ze(e);gt(e,"enum");var r=Ce(e),i=We(e,!0),o=lt(e);return{kind:Ee.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o,loc:ft(e,t)}}(e);case"input":return function(e){var t=e.token,n=Ze(e);gt(e,"input");var r=Ce(e),i=We(e,!0),o=st(e);return{kind:Ee.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:ft(e,t)}}(e);case"directive":return function(e){var t=e.token,n=Ze(e);gt(e,"directive"),mt(e,me.AT);var r=Ce(e),i=it(e);gt(e,"on");var o=function(e){ht(e,me.PIPE);var t=[];do{t.push(ct(e))}while(ht(e,me.PIPE));return t}(e);return{kind:Ee.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,locations:o,loc:ft(e,t)}}(e)}throw yt(e,t)}function Xe(e){return dt(e,me.STRING)||dt(e,me.BLOCK_STRING)}function Ze(e){if(Xe(e))return ze(e)}function et(e){var t=e.token,n=Ie(e);mt(e,me.COLON);var r=Je(e);return{kind:Ee.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:ft(e,t)}}function tt(e){var t=[];if(vt(e,"implements")){ht(e,me.AMP);do{t.push(Je(e))}while(ht(e,me.AMP)||e.options.allowLegacySDLImplementsInterfaces&&dt(e,me.NAME))}return t}function nt(e){return e.options.allowLegacySDLEmptyFields&&dt(e,me.BRACE_L)&&e.lookahead().kind===me.BRACE_R?(e.advance(),e.advance(),[]):dt(e,me.BRACE_L)?wt(e,me.BRACE_L,rt,me.BRACE_R):[]}function rt(e){var t=e.token,n=Ze(e),r=Ce(e),i=it(e);mt(e,me.COLON);var o=Ye(e),a=We(e,!0);return{kind:Ee.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:a,loc:ft(e,t)}}function it(e){return dt(e,me.PAREN_L)?wt(e,me.PAREN_L,ot,me.PAREN_R):[]}function ot(e){var t=e.token,n=Ze(e),r=Ce(e);mt(e,me.COLON);var i,o=Ye(e);ht(e,me.EQUALS)&&(i=Ke(e));var a=We(e,!0);return{kind:Ee.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:a,loc:ft(e,t)}}function at(e){var t=[];if(ht(e,me.EQUALS)){ht(e,me.PIPE);do{t.push(Je(e))}while(ht(e,me.PIPE))}return t}function lt(e){return dt(e,me.BRACE_L)?wt(e,me.BRACE_L,ut,me.BRACE_R):[]}function ut(e){var t=e.token,n=Ze(e),r=Ce(e),i=We(e,!0);return{kind:Ee.Kind.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:ft(e,t)}}function st(e){return dt(e,me.BRACE_L)?wt(e,me.BRACE_L,ot,me.BRACE_R):[]}function ct(e){var t=e.token,n=Ce(e);if(d.a.hasOwnProperty(n.value))return n;throw yt(e,t)}function ft(e,t){if(!e.options.noLocation)return new pt(t,e.lastToken,e.source)}function pt(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function dt(e,t){return e.token.kind===t}function ht(e,t){return e.token.kind===t&&(e.advance(),!0)}function mt(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw ue(e.source,n.start,"Expected ".concat(t,", found ").concat(ve(n)))}function vt(e,t){var n=e.token;return n.kind===me.NAME&&n.value===t&&(e.advance(),!0)}function gt(e,t){if(!vt(e,t))throw ue(e.source,e.token.start,'Expected "'.concat(t,'", found ').concat(ve(e.token)))}function yt(e,t){var n=t||e.token;return ue(e.source,n.start,"Unexpected ".concat(ve(n)))}function bt(e,t,n,r){mt(e,t);for(var i=[];!ht(e,r);)i.push(n(e));return i}function wt(e,t,n,r){mt(e,t);for(var i=[n(e)];!ht(e,r);)i.push(n(e));return i}Object(s.a)(pt,function(){return{start:this.start,end:this.end}});var kt=n(13);function xt(e,t){var n;if(t.kind===Ee.Kind.LIST_TYPE)return(n=xt(e,t.type))&&Object(a.d)(n);if(t.kind===Ee.Kind.NON_NULL_TYPE)return(n=xt(e,t.type))&&Object(a.e)(n);if(t.kind===Ee.Kind.NAMED_TYPE)return e.getType(t.name.value);throw new Error("Unexpected type kind: ".concat(t.kind,"."))}var Tt=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t||Et,n&&(Object(a.F)(n)&&this._inputTypeStack.push(n),Object(a.C)(n)&&this._parentTypeStack.push(n),Object(a.N)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case Ee.Kind.SELECTION_SET:var n=Object(a.z)(this.getType());this._parentTypeStack.push(Object(a.C)(n)?n:void 0);break;case Ee.Kind.FIELD:var i,o,l=this.getParentType();l&&(i=this._getFieldDef(t,l,e))&&(o=i.type),this._fieldDefStack.push(i),this._typeStack.push(Object(a.N)(o)?o:void 0);break;case Ee.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case Ee.Kind.OPERATION_DEFINITION:var u;"query"===e.operation?u=t.getQueryType():"mutation"===e.operation?u=t.getMutationType():"subscription"===e.operation&&(u=t.getSubscriptionType()),this._typeStack.push(Object(a.M)(u)?u:void 0);break;case Ee.Kind.INLINE_FRAGMENT:case Ee.Kind.FRAGMENT_DEFINITION:var s=e.typeCondition,c=s?xt(t,s):Object(a.z)(this.getType());this._typeStack.push(Object(a.N)(c)?c:void 0);break;case Ee.Kind.VARIABLE_DEFINITION:var f=xt(t,e.type);this._inputTypeStack.push(Object(a.F)(f)?f:void 0);break;case Ee.Kind.ARGUMENT:var p,d,h=this.getDirective()||this.getFieldDef();h&&(p=r(h.args,function(t){return t.name===e.name.value}))&&(d=p.type),this._argument=p,this._defaultValueStack.push(p?p.defaultValue:void 0),this._inputTypeStack.push(Object(a.F)(d)?d:void 0);break;case Ee.Kind.LIST:var m=Object(a.A)(this.getInputType()),v=Object(a.I)(m)?m.ofType:m;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(a.F)(v)?v:void 0);break;case Ee.Kind.OBJECT_FIELD:var g,y,b=Object(a.z)(this.getInputType());Object(a.E)(b)&&(y=b.getFields()[e.name.value])&&(g=y.type),this._defaultValueStack.push(y?y.defaultValue:void 0),this._inputTypeStack.push(Object(a.F)(g)?g:void 0);break;case Ee.Kind.ENUM:var w,k=Object(a.z)(this.getInputType());Object(a.D)(k)&&(w=k.getValue(e.value)),this._enumValue=w}},t.leave=function(e){switch(e.kind){case Ee.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Ee.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Ee.Kind.DIRECTIVE:this._directive=null;break;case Ee.Kind.OPERATION_DEFINITION:case Ee.Kind.INLINE_FRAGMENT:case Ee.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Ee.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Ee.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Ee.Kind.LIST:case Ee.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Ee.Kind.ENUM:this._enumValue=null}},e}();function Et(e,t,n){var r=n.name.value;return r===E.SchemaMetaFieldDef.name&&e.getQueryType()===t?E.SchemaMetaFieldDef:r===E.TypeMetaFieldDef.name&&e.getQueryType()===t?E.TypeMetaFieldDef:r===E.TypeNameMetaFieldDef.name&&Object(a.C)(t)?E.TypeNameMetaFieldDef:Object(a.M)(t)||Object(a.G)(t)?t.getFields()[r]:void 0}var _t=n(81);function St(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new D.a(function(e){return'There can be only one operation named "'.concat(e,'".')}(r.value),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}function Ot(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===Ee.Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new D.a("This anonymous operation must be the only defined operation.",[n]))}}}function Ct(e){return{OperationDefinition:function(t){var n;"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new D.a(((n=t.name&&t.name.value)?'Subscription "'.concat(n,'" '):"Anonymous Subscription ")+"must select only one top level field.",t.selectionSet.selections.slice(1)))}}}function Nt(e,t){for(var n=Object.create(null),r=t.length,i=e.length/2,o=0;o<r;o++){var a=At(e,t[o]);a<=Math.max(i,t[o].length/2,1)&&(n[t[o]]=a)}return Object.keys(n).sort(function(e,t){return n[e]-n[t]})}function At(e,t){if(e===t)return 0;var n,r,i=[],o=e.toLowerCase(),a=t.toLowerCase(),l=o.length,u=a.length;if(o===a)return 1;for(n=0;n<=l;n++)i[n]=[n];for(r=1;r<=u;r++)i[0][r]=r;for(n=1;n<=l;n++)for(r=1;r<=u;r++){var s=o[n-1]===a[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+s),n>1&&r>1&&o[n-1]===a[r-2]&&o[n-2]===a[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[l][u]}var Dt=5;function It(e){if(0===e.length&&Object(f.a)(0),1===e.length)return e[0];if(2===e.length)return e[0]+" or "+e[1];var t=e.slice(0,Dt),n=t.pop();return t.join(", ")+", or "+n}function Lt(e){return It(e.map(function(e){return'"'.concat(e,'"')}))}var jt=n(15);function Mt(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null),i=!0,o=!1,a=void 0;try{for(var l,u=e.getDocument().definitions[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value;Object(jt.d)(s)&&(r[s.name.value]=!0)}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}var c=Object.keys(n).concat(Object.keys(r));return{NamedType:function(t,i,o,a,l){var u,s=t.name.value;if(!n[s]&&!r[s]){var f=l[2]||o,p=(u=f,Boolean(u&&!Array.isArray(u)&&(Object(jt.g)(u)||Object(jt.h)(u))));if(p&&function(e){return-1!==Ft.indexOf(e)}(s))return;var d=Nt(s,p?Ft.concat(c):c);e.reportError(new D.a(function(e,t){var n='Unknown type "'.concat(e,'".');return t.length&&(n+=" Did you mean ".concat(Lt(t),"?")),n}(s,d),t))}}}}var Ft=l.g.map(function(e){return e.name});var Rt=n(11);function Pt(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=xt(e.getSchema(),n);r&&!Object(a.C)(r)&&e.reportError(new D.a(function(e){return'Fragment cannot condition on non composite type "'.concat(e,'".')}(Object(Rt.a)(n)),[n]))}},FragmentDefinition:function(t){var n=xt(e.getSchema(),t.typeCondition);n&&!Object(a.C)(n)&&e.reportError(new D.a(function(e,t){return'Fragment "'.concat(e,'" cannot condition on non composite ')+'type "'.concat(t,'".')}(t.name.value,Object(Rt.a)(t.typeCondition)),[t.typeCondition]))}}}function Vt(e){return{VariableDefinition:function(t){var n=xt(e.getSchema(),t.type);if(n&&!Object(a.F)(n)){var r=t.variable.name.value;e.reportError(new D.a(function(e,t){return'Variable "$'.concat(e,'" cannot be non-input type "').concat(t,'".')}(r,Object(Rt.a)(t.type)),[t.type]))}}}}function Ut(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;n&&(Object(a.H)(Object(a.z)(n))?r&&e.reportError(new D.a(function(e,t){return'Field "'.concat(e,'" must not have a selection since ')+'type "'.concat(t,'" has no subfields.')}(t.name.value,Object(p.a)(n)),[r])):r||e.reportError(new D.a(function(e,t){return'Field "'.concat(e,'" of type "').concat(t,'" must have a ')+'selection of subfields. Did you mean "'.concat(e,' { ... }"?')}(t.name.value,Object(p.a)(n)),[t])))}}}function Bt(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=function(e,t,n){if(Object(a.B)(t)){var r=[],i=Object.create(null),o=!0,l=!1,u=void 0;try{for(var s,c=e.getPossibleTypes(t)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var f=s.value;if(f.getFields()[n]){r.push(f.name);var p=!0,d=!1,h=void 0;try{for(var m,v=f.getInterfaces()[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){var g=m.value;g.getFields()[n]&&(i[g.name]=(i[g.name]||0)+1)}}catch(e){d=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(d)throw h}}}}}catch(e){l=!0,u=e}finally{try{o||null==c.return||c.return()}finally{if(l)throw u}}var y=Object.keys(i).sort(function(e,t){return i[t]-i[e]});return y.concat(r)}return[]}(r,n,i),l=0!==o.length?[]:function(e,t,n){if(Object(a.M)(t)||Object(a.G)(t)){var r=Object.keys(t.getFields());return Nt(n,r)}return[]}(0,n,i);e.reportError(new D.a(function(e,t,n,r){var i='Cannot query field "'.concat(e,'" on type "').concat(t,'".');if(0!==n.length){var o=Lt(n);i+=" Did you mean to use an inline fragment on ".concat(o,"?")}else 0!==r.length&&(i+=" Did you mean ".concat(Lt(r),"?"));return i}(i,n.name,o,l),[t]))}}}}function qt(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new D.a('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}var zt=n(49),Kt=n(50);function Ht(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();Object(a.C)(n)&&Object(a.C)(r)&&!R(e.getSchema(),n,r)&&e.reportError(new D.a(function(e,t){return"Fragment cannot be spread here as objects of "+'type "'.concat(e,'" can never be of type "').concat(t,'".')}(Object(p.a)(r),Object(p.a)(n)),[t]))},FragmentSpread:function(t){var n=t.name.value,r=function(e,t){var n=e.getFragment(t);if(n){var r=xt(e.getSchema(),n.typeCondition);if(Object(a.C)(r))return r}}(e,n),i=e.getParentType();r&&i&&!R(e.getSchema(),r,i)&&e.reportError(new D.a(function(e,t,n){return'Fragment "'.concat(e,'" cannot be spread here as objects of ')+'type "'.concat(t,'" can never be of type "').concat(n,'".')}(n,Object(p.a)(i),Object(p.a)(r)),[t]))}}}function Gt(e){var t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(i){return function i(o){if(t[o.name.value])return;var a=o.name.value;t[a]=!0;var l=e.getFragmentSpreads(o.selectionSet);if(0===l.length)return;r[a]=n.length;for(var u=0;u<l.length;u++){var s=l[u],c=s.name.value,f=r[c];if(n.push(s),void 0===f){var p=e.getFragment(c);p&&i(p)}else{var d=n.slice(f),h=d.slice(0,-1).map(function(e){return e.name.value});e.reportError(new D.a((m=c,g=void 0,g=(v=h).length?" via "+v.join(", "):"",'Cannot spread fragment "'.concat(m,'" within itself').concat(g,".")),d))}n.pop()}var m,v,g;r[a]=void 0}(i),!1}}}function Wt(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new D.a(function(e){return'There can be only one variable named "'.concat(e,'".')}(r),[t[r],n.variable.name])):t[r]=n.variable.name}}}function Qt(e,t){return t?'Variable "$'.concat(e,'" is not defined by operation "').concat(t,'".'):'Variable "$'.concat(e,'" is not defined.')}function Yt(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var r=e.getRecursiveVariableUsages(n),i=!0,o=!1,a=void 0;try{for(var l,u=r[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value.node,c=s.name.value;!0!==t[c]&&e.reportError(new D.a(Qt(c,n.name&&n.name.value),[s,n]))}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}function Jt(e,t){return t?'Variable "$'.concat(e,'" is never used in operation "').concat(t,'".'):'Variable "$'.concat(e,'" is never used.')}function $t(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){var r=Object.create(null),i=e.getRecursiveVariableUsages(n),o=n.name?n.name.value:null,a=!0,l=!1,u=void 0;try{for(var s,c=i[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){r[s.value.node.name.value]=!0}}catch(e){l=!0,u=e}finally{try{a||null==c.return||c.return()}finally{if(l)throw u}}for(var f=0;f<t.length;f++){var p=t[f],d=p.variable.name.value;!0!==r[d]&&e.reportError(new D.a(Jt(d,o),[p]))}}},VariableDefinition:function(e){t.push(e)}}}function Xt(e){var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():x,i=!0,o=!1,a=void 0;try{for(var l,u=r[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value;t[s.name]=s.locations}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}var c=e.getDocument().definitions,f=!0,p=!1,h=void 0;try{for(var m,v=c[Symbol.iterator]();!(f=(m=v.next()).done);f=!0){var g=m.value;g.kind===Ee.Kind.DIRECTIVE_DEFINITION&&(t[g.name.value]=g.locations.map(function(e){return e.value}))}}catch(e){p=!0,h=e}finally{try{f||null==v.return||v.return()}finally{if(p)throw h}}return{Directive:function(n,r,i,o,a){var l=n.name.value,u=t[l];if(u){var s=function(e){var t=e[e.length-1];if(!Array.isArray(t))switch(t.kind){case Ee.Kind.OPERATION_DEFINITION:switch(t.operation){case"query":return d.a.QUERY;case"mutation":return d.a.MUTATION;case"subscription":return d.a.SUBSCRIPTION}break;case Ee.Kind.FIELD:return d.a.FIELD;case Ee.Kind.FRAGMENT_SPREAD:return d.a.FRAGMENT_SPREAD;case Ee.Kind.INLINE_FRAGMENT:return d.a.INLINE_FRAGMENT;case Ee.Kind.FRAGMENT_DEFINITION:return d.a.FRAGMENT_DEFINITION;case Ee.Kind.VARIABLE_DEFINITION:return d.a.VARIABLE_DEFINITION;case Ee.Kind.SCHEMA_DEFINITION:case Ee.Kind.SCHEMA_EXTENSION:return d.a.SCHEMA;case Ee.Kind.SCALAR_TYPE_DEFINITION:case Ee.Kind.SCALAR_TYPE_EXTENSION:return d.a.SCALAR;case Ee.Kind.OBJECT_TYPE_DEFINITION:case Ee.Kind.OBJECT_TYPE_EXTENSION:return d.a.OBJECT;case Ee.Kind.FIELD_DEFINITION:return d.a.FIELD_DEFINITION;case Ee.Kind.INTERFACE_TYPE_DEFINITION:case Ee.Kind.INTERFACE_TYPE_EXTENSION:return d.a.INTERFACE;case Ee.Kind.UNION_TYPE_DEFINITION:case Ee.Kind.UNION_TYPE_EXTENSION:return d.a.UNION;case Ee.Kind.ENUM_TYPE_DEFINITION:case Ee.Kind.ENUM_TYPE_EXTENSION:return d.a.ENUM;case Ee.Kind.ENUM_VALUE_DEFINITION:return d.a.ENUM_VALUE;case Ee.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ee.Kind.INPUT_OBJECT_TYPE_EXTENSION:return d.a.INPUT_OBJECT;case Ee.Kind.INPUT_VALUE_DEFINITION:var n=e[e.length-3];return n.kind===Ee.Kind.INPUT_OBJECT_TYPE_DEFINITION?d.a.INPUT_FIELD_DEFINITION:d.a.ARGUMENT_DEFINITION}}(a);s&&-1===u.indexOf(s)&&e.reportError(new D.a(function(e,t){return'Directive "'.concat(e,'" may not be used on ').concat(t,".")}(l,s),[n]))}else e.reportError(new D.a('Unknown directive "'.concat(l,'".'),[n]))}}}function Zt(e){return'The directive "'.concat(e,'" can only be used once at ')+"this location."}function en(e){return{enter:function(t){var n=t.directives;if(n){var r=Object.create(null),i=!0,o=!1,a=void 0;try{for(var l,u=n[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value,c=s.name.value;r[c]?e.reportError(new D.a(Zt(c),[r[c],s])):r[c]=s}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}}}}}function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(e,t,n){var r='Unknown argument "'.concat(e,'" on directive "@').concat(t,'".');return n.length&&(r+=" Did you mean ".concat(Lt(n),"?")),r}function rn(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){tn(e,t,n[t])})}return e}({},on(e),{Argument:function(t){var n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){var o=t.name.value,a=r.args.map(function(e){return e.name});e.reportError(new D.a(function(e,t,n,r){var i='Unknown argument "'.concat(e,'" on field "').concat(t,'" of ')+'type "'.concat(n,'".');return r.length&&(i+=" Did you mean ".concat(Lt(r),"?")),i}(o,r.name,i.name,Nt(o,a)),t))}}})}function on(e){var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():x,i=!0,o=!1,a=void 0;try{for(var l,u=r[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value;t[s.name]=s.args.map(function(e){return e.name})}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}var c=e.getDocument().definitions,f=!0,p=!1,d=void 0;try{for(var h,m=c[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var v=h.value;v.kind===Ee.Kind.DIRECTIVE_DEFINITION&&(t[v.name.value]=v.arguments?v.arguments.map(function(e){return e.name.value}):[])}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}return{Directive:function(n){var r=n.name.value,i=t[r];if(n.arguments&&i){var o=!0,a=!1,l=void 0;try{for(var u,s=n.arguments[Symbol.iterator]();!(o=(u=s.next()).done);o=!0){var c=u.value,f=c.name.value;if(-1===i.indexOf(f)){var p=Nt(f,i);e.reportError(new D.a(nn(f,r,p),c))}}}catch(e){a=!0,l=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw l}}}return!1}}}function an(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new D.a(function(e){return'There can be only one argument named "'.concat(e,'".')}(r),[t[r],n.name])):t[r]=n.name,!1}}}var ln=n(16),un=n(17);function sn(e,t,n){return"Expected type ".concat(e,", found ").concat(t)+(n?"; ".concat(n):".")}function cn(e){return{NullValue:function(t){var n=e.getInputType();Object(a.K)(n)&&e.reportError(new D.a(sn(Object(p.a)(n),Object(Rt.a)(t)),t))},ListValue:function(t){var n=Object(a.A)(e.getParentInputType());if(!Object(a.I)(n))return fn(e,t),!1},ObjectValue:function(t){var n=Object(a.z)(e.getInputType());if(!Object(a.E)(n))return fn(e,t),!1;var r,o,l,u=Object(un.a)(t.fields,function(e){return e.name.value}),s=!0,c=!1,f=void 0;try{for(var d,h=Object(i.a)(n.getFields())[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var m=d.value;if(!u[m.name]&&Object(a.P)(m)){var v=Object(p.a)(m.type);e.reportError(new D.a((r=n.name,o=m.name,l=v,"Field ".concat(r,".").concat(o," of required type ")+"".concat(l," was not provided.")),t))}}}catch(e){c=!0,f=e}finally{try{s||null==h.return||h.return()}finally{if(c)throw f}}},ObjectField:function(t){var n,r,i,o=Object(a.z)(e.getParentInputType());if(!e.getInputType()&&Object(a.E)(o)){var l=Nt(t.name.value,Object.keys(o.getFields())),u=0!==l.length?"Did you mean ".concat(It(l),"?"):void 0;e.reportError(new D.a((n=o.name,r=t.name.value,i=u,'Field "'.concat(r,'" is not defined by type ').concat(n)+(i?"; ".concat(i):".")),t))}},EnumValue:function(t){var n=Object(a.z)(e.getInputType());Object(a.D)(n)?n.getValue(t.value)||e.reportError(new D.a(sn(n.name,Object(Rt.a)(t),pn(n,t)),t)):fn(e,t)},IntValue:function(t){return fn(e,t)},FloatValue:function(t){return fn(e,t)},StringValue:function(t){return fn(e,t)},BooleanValue:function(t){return fn(e,t)}}}function fn(e,t){var n=e.getInputType();if(n){var r=Object(a.z)(n);if(Object(a.Q)(r))try{var i=r.parseLiteral(t,void 0);Object(ln.a)(i)&&e.reportError(new D.a(sn(Object(p.a)(n),Object(Rt.a)(t)),t))}catch(r){e.reportError(new D.a(sn(Object(p.a)(n),Object(Rt.a)(t),r.message),t,void 0,void 0,void 0,r))}else e.reportError(new D.a(sn(Object(p.a)(n),Object(Rt.a)(t),pn(r,t)),t))}}function pn(e,t){if(Object(a.D)(e)){var n=Nt(Object(Rt.a)(t),e.getValues().map(function(e){return e.name}));if(0!==n.length)return"Did you mean the enum value ".concat(It(n),"?")}}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e,t,n){return'Directive "@'.concat(e,'" argument "').concat(t,'" of type ')+'"'.concat(n,'" is required but not provided.')}function mn(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){dn(e,t,n[t])})}return e}({},vn(e),{Field:{leave:function(t){var n=e.getFieldDef();if(!n)return!1;var r,i,o,l=t.arguments||[],u=Object(un.a)(l,function(e){return e.name.value}),s=!0,c=!1,f=void 0;try{for(var d,h=n.args[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var m=d.value;!u[m.name]&&Object(a.O)(m)&&e.reportError(new D.a((r=n.name,i=m.name,o=Object(p.a)(m.type),'Field "'.concat(r,'" argument "').concat(i,'" of type ')+'"'.concat(o,'" is required but not provided.')),[t]))}}catch(e){c=!0,f=e}finally{try{s||null==h.return||h.return()}finally{if(c)throw f}}}}})}function vn(e){var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():x,i=!0,o=!1,l=void 0;try{for(var u,s=r[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){var c=u.value;t[c.name]=Object(un.a)(c.args.filter(a.O),function(e){return e.name})}}catch(e){o=!0,l=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}var f=e.getDocument().definitions,d=!0,h=!1,m=void 0;try{for(var v,g=f[Symbol.iterator]();!(d=(v=g.next()).done);d=!0){var y=v.value;y.kind===Ee.Kind.DIRECTIVE_DEFINITION&&(t[y.name.value]=Object(un.a)(y.arguments?y.arguments.filter(gn):[],function(e){return e.name.value}))}}catch(e){h=!0,m=e}finally{try{d||null==g.return||g.return()}finally{if(h)throw m}}return{Directive:{leave:function(n){var r=n.name.value,i=t[r];if(i)for(var o=n.arguments||[],l=Object(un.a)(o,function(e){return e.name.value}),u=Object.keys(i),s=0;s<u.length;s++){var c=u[s];if(!l[c]){var f=i[c].type;e.reportError(new D.a(hn(r,c,Object(a.R)(f)?Object(p.a)(f):Object(Rt.a)(f)),n))}}}}}}function gn(e){return e.type.kind===Ee.Kind.NON_NULL_TYPE&&null==e.defaultValue}function yn(e,t,n){return'Variable "$'.concat(e,'" of type "').concat(t,'" used in ')+'position expecting type "'.concat(n,'".')}function bn(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var r=e.getRecursiveVariableUsages(n),i=!0,o=!1,a=void 0;try{for(var l,u=r[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value,c=s.node,f=s.type,d=s.defaultValue,h=c.name.value,m=t[h];if(m&&f){var v=e.getSchema(),g=xt(v,m.type);g&&!wn(v,g,m.defaultValue,f,d)&&e.reportError(new D.a(yn(h,Object(p.a)(g),Object(p.a)(f)),[m,c]))}}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function wn(e,t,n,r,i){return Object(a.K)(r)&&!Object(a.K)(t)?!!(n&&n.kind!==Ee.Kind.NULL||void 0!==i)&&F(e,t,r.ofType):F(e,t,r)}function kn(e,t){return'Fields "'.concat(e,'" conflict because ').concat(function e(t){if(Array.isArray(t))return t.map(function(t){var n=t[0],r=t[1];return'subfields "'.concat(n,'" conflict because ').concat(e(r))}).join(" and ");return t}(t),". ")+"Use different aliases on the fields to fetch both if this was intentional."}function xn(e){var t=new An,n=new Map;return{SelectionSet:function(r){for(var i=function(e,t,n,r,i){var a=[],l=On(e,t,r,i),u=l[0],s=l[1];if(function(e,t,n,r,i){var a=!0,l=!1,u=void 0;try{for(var s,c=Object(o.a)(i)[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){var f=s.value,p=f[0],d=f[1];if(d.length>1)for(var h=0;h<d.length;h++)for(var m=h+1;m<d.length;m++){var v=Sn(e,n,r,!1,p,d[h],d[m]);v&&t.push(v)}}}catch(e){l=!0,u=e}finally{try{a||null==c.return||c.return()}finally{if(l)throw u}}}(e,a,t,n,u),0!==s.length)for(var c=Object.create(null),f=0;f<s.length;f++){Tn(e,a,t,c,n,!1,u,s[f]);for(var p=f+1;p<s.length;p++)En(e,a,t,n,!1,s[f],s[p])}return a}(e,n,t,e.getParentType(),r),a=0;a<i.length;a++){var l=i[a],u=l[0],s=u[0],c=u[1],f=l[1],p=l[2];e.reportError(new D.a(kn(s,c),f.concat(p)))}}}}function Tn(e,t,n,r,i,o,a,l){if(!r[l]){r[l]=!0;var u=e.getFragment(l);if(u){var s=Cn(e,n,u),c=s[0],f=s[1];if(a!==c){_n(e,t,n,i,o,a,c);for(var p=0;p<f.length;p++)Tn(e,t,n,r,i,o,a,f[p])}}}}function En(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var l=e.getFragment(o),u=e.getFragment(a);if(l&&u){var s=Cn(e,n,l),c=s[0],f=s[1],p=Cn(e,n,u),d=p[0],h=p[1];_n(e,t,n,r,i,c,d);for(var m=0;m<h.length;m++)En(e,t,n,r,i,o,h[m]);for(var v=0;v<f.length;v++)En(e,t,n,r,i,f[v],a)}}}function _n(e,t,n,r,i,o,a){for(var l=Object.keys(o),u=0;u<l.length;u++){var s=l[u],c=a[s];if(c)for(var f=o[s],p=0;p<f.length;p++)for(var d=0;d<c.length;d++){var h=Sn(e,n,r,i,s,f[p],c[d]);h&&t.push(h)}}}function Sn(e,t,n,i,o,l,u){var s=l[0],c=l[1],f=l[2],d=u[0],h=u[1],m=u[2],v=i||s!==d&&Object(a.M)(s)&&Object(a.M)(d),g=f&&f.type,y=m&&m.type;if(!v){var b=c.name.value,w=h.name.value;if(b!==w)return[[o,"".concat(b," and ").concat(w," are different fields")],[c],[h]];if(!function(e,t){if(e.length!==t.length)return!1;return e.every(function(e){var n,i,o=r(t,function(t){return t.name.value===e.name.value});return!!o&&(n=e.value,i=o.value,!n&&!i||Object(Rt.a)(n)===Object(Rt.a)(i))})}(c.arguments||[],h.arguments||[]))return[[o,"they have differing arguments"],[c],[h]]}if(g&&y&&function e(t,n){if(Object(a.I)(t))return!Object(a.I)(n)||e(t.ofType,n.ofType);if(Object(a.I)(n))return!0;if(Object(a.K)(t))return!Object(a.K)(n)||e(t.ofType,n.ofType);if(Object(a.K)(n))return!0;if(Object(a.H)(t)||Object(a.H)(n))return t!==n;return!1}(g,y))return[[o,"they return conflicting types ".concat(Object(p.a)(g)," and ").concat(Object(p.a)(y))],[c],[h]];var k=c.selectionSet,x=h.selectionSet;return k&&x?function(e,t,n,r){if(e.length>0)return[[t,e.map(function(e){var t=e[0];return t})],e.reduce(function(e,t){var n=t[1];return e.concat(n)},[n]),e.reduce(function(e,t){var n=t[2];return e.concat(n)},[r])]}(function(e,t,n,r,i,o,a,l){var u=[],s=On(e,t,i,o),c=s[0],f=s[1],p=On(e,t,a,l),d=p[0],h=p[1];if(_n(e,u,t,n,r,c,d),0!==h.length)for(var m=Object.create(null),v=0;v<h.length;v++)Tn(e,u,t,m,n,r,c,h[v]);if(0!==f.length)for(var g=Object.create(null),y=0;y<f.length;y++)Tn(e,u,t,g,n,r,d,f[y]);for(var b=0;b<f.length;b++)for(var w=0;w<h.length;w++)En(e,u,t,n,r,f[b],h[w]);return u}(e,t,n,v,Object(a.z)(g),k,Object(a.z)(y),x),o,c,h):void 0}function On(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),l=Object.create(null);!function e(t,n,r,i,o){for(var l=0;l<r.selections.length;l++){var u=r.selections[l];switch(u.kind){case Ee.Kind.FIELD:var s=u.name.value,c=void 0;(Object(a.M)(n)||Object(a.G)(n))&&(c=n.getFields()[s]);var f=u.alias?u.alias.value:s;i[f]||(i[f]=[]),i[f].push([n,u,c]);break;case Ee.Kind.FRAGMENT_SPREAD:o[u.name.value]=!0;break;case Ee.Kind.INLINE_FRAGMENT:var p=u.typeCondition,d=p?xt(t.getSchema(),p):n;e(t,d,u.selectionSet,i,o)}}}(e,n,r,o,l),i=[o,Object.keys(l)],t.set(r,i)}return i}function Cn(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=xt(e.getSchema(),n.typeCondition);return On(e,t,i,n.selectionSet)}var Nn,An=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},t.add=function(e,t,n){Dn(this._data,e,t,n),Dn(this._data,t,e,n)},e}();function Dn(e,t,n,r){var i=e[t];i||(i=Object.create(null),e[t]=i),i[n]=r}function In(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;return n[r]?e.reportError(new D.a(function(e){return'There can be only one input field named "'.concat(e,'".')}(r),[n[r],t.name])):n[r]=t.name,!1}}}function Ln(e){return"There can be only one ".concat(e," type in schema.")}function jn(e){return"Type for ".concat(e," already defined in the schema. ")+"It cannot be redefined."}function Mn(e,t){return'Enum value "'.concat(e,".").concat(t,'" can only be defined once.')}function Fn(e,t){return'Enum value "'.concat(e,".").concat(t,'" already exists in the schema. ')+"It cannot also be defined in this type extension."}function Rn(e,t){return'Field "'.concat(e,".").concat(t,'" can only be defined once.')}function Pn(e,t){return'Field "'.concat(e,".").concat(t,'" already exists in the schema. ')+"It cannot also be defined in this type extension."}function Vn(e,t){return!!(Object(a.M)(e)||Object(a.G)(e)||Object(a.E)(e))&&e.getFields()[t]}function Un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e,t){return"Cannot extend non-".concat(t,' type "').concat(e,'".')}var qn=(Un(Nn={},Ee.Kind.SCALAR_TYPE_DEFINITION,Ee.Kind.SCALAR_TYPE_EXTENSION),Un(Nn,Ee.Kind.OBJECT_TYPE_DEFINITION,Ee.Kind.OBJECT_TYPE_EXTENSION),Un(Nn,Ee.Kind.INTERFACE_TYPE_DEFINITION,Ee.Kind.INTERFACE_TYPE_EXTENSION),Un(Nn,Ee.Kind.UNION_TYPE_DEFINITION,Ee.Kind.UNION_TYPE_EXTENSION),Un(Nn,Ee.Kind.ENUM_TYPE_DEFINITION,Ee.Kind.ENUM_TYPE_EXTENSION),Un(Nn,Ee.Kind.INPUT_OBJECT_TYPE_DEFINITION,Ee.Kind.INPUT_OBJECT_TYPE_EXTENSION),Nn);function zn(e){switch(e){case Ee.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Ee.Kind.OBJECT_TYPE_EXTENSION:return"object";case Ee.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Ee.Kind.UNION_TYPE_EXTENSION:return"union";case Ee.Kind.ENUM_TYPE_EXTENSION:return"enum";case Ee.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:return"unknown type"}}var Kn=[_t.ExecutableDefinitions,St,Ot,Ct,Mt,Pt,Vt,Ut,Bt,qt,zt.KnownFragmentNames,Kt.NoUnusedFragments,Ht,Gt,Wt,Yt,$t,Xt,en,rn,an,cn,mn,bn,xn,In],Hn=[function(e){var t=e.getSchema(),n=t&&(t.astNode||t.getQueryType()||t.getMutationType()||t.getSubscriptionType()),r=0;return{SchemaDefinition:function(t){n?e.reportError(new D.a("Cannot define a new schema within a schema extension.",t)):(r>0&&e.reportError(new D.a("Must provide only one schema definition.",t)),++r)}}},function(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){if(t.operationTypes){var i=!0,o=!1,a=void 0;try{for(var l,u=(t.operationTypes||[])[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value,c=s.operation,f=n[c];r[c]?e.reportError(new D.a(jn(c),s)):f?e.reportError(new D.a(Ln(c),[f,s])):n[c]=s}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}}return!1}},function(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var i=r.name.value;if(!n||!n.getType(i))return t[i]?e.reportError(new D.a(function(e){return'There can be only one type named "'.concat(e,'".')}(i),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new D.a(function(e){return'Type "'.concat(e,'" already exists in the schema. ')+"It cannot also be defined in this type definition."}(i),r.name))}},function(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i=t.name.value;r[i]||(r[i]=Object.create(null));var o=r[i];if(t.values){var l=!0,u=!1,s=void 0;try{for(var c,f=t.values[Symbol.iterator]();!(l=(c=f.next()).done);l=!0){var p=c.value,d=p.name.value,h=n[i];Object(a.D)(h)&&h.getValue(d)?e.reportError(new D.a(Fn(i,d),p.name)):o[d]?e.reportError(new D.a(Mn(i,d),[o[d],p.name])):o[d]=p.name}}catch(e){u=!0,s=e}finally{try{l||null==f.return||f.return()}finally{if(u)throw s}}}return!1}},function(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i=t.name.value;r[i]||(r[i]=Object.create(null));var o=r[i];if(t.fields){var a=!0,l=!1,u=void 0;try{for(var s,c=t.fields[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){var f=s.value,p=f.name.value;Vn(n[i],p)?e.reportError(new D.a(Pn(i,p),f.name)):o[p]?e.reportError(new D.a(Rn(i,p),[o[p],f.name])):o[p]=f.name}}catch(e){l=!0,u=e}finally{try{a||null==c.return||c.return()}finally{if(l)throw u}}}return!1}},function(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var i=r.name.value;if(!n||!n.getDirective(i))return t[i]?e.reportError(new D.a(function(e){return'There can be only one directive named "'.concat(e,'".')}(i),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new D.a(function(e){return'Directive "'.concat(e,'" already exists in the schema. ')+"It cannot be redefined."}(i),r.name))}}},Mt,Xt,en,function(e){var t=e.getSchema(),n=Object.create(null),r=!0,i=!1,o=void 0;try{for(var l,u=e.getDocument().definitions[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var s=l.value;Object(jt.d)(s)&&(n[s.name.value]=s)}}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return{ScalarTypeExtension:c,ObjectTypeExtension:c,InterfaceTypeExtension:c,UnionTypeExtension:c,EnumTypeExtension:c,InputObjectTypeExtension:c};function c(r){var i,o=r.name.value,l=n[o],u=t&&t.getType(o);if(l){var s=qn[l.kind];s!==r.kind&&e.reportError(new D.a(Bn(o,zn(s)),[l,r]))}else if(u){var c=(i=u,Object(a.Q)(i)?Ee.Kind.SCALAR_TYPE_EXTENSION:Object(a.M)(i)?Ee.Kind.OBJECT_TYPE_EXTENSION:Object(a.G)(i)?Ee.Kind.INTERFACE_TYPE_EXTENSION:Object(a.S)(i)?Ee.Kind.UNION_TYPE_EXTENSION:Object(a.D)(i)?Ee.Kind.ENUM_TYPE_EXTENSION:Object(a.E)(i)?Ee.Kind.INPUT_OBJECT_TYPE_EXTENSION:void 0);c!==r.kind&&e.reportError(new D.a(Bn(o,zn(c)),r))}else{var f=Object.keys(n);t&&(f=f.concat(Object.keys(t.getTypeMap())));var p=Nt(o,f);e.reportError(new D.a(function(e,t){var n='Cannot extend type "'.concat(e,'" because it does not defined.');return t.length&&(n+=" Did you mean ".concat(Lt(t),"?")),n}(o,p),r.name))}}},on,an,In,vn];function Gn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Wn=function(){function e(e){this._ast=e,this._errors=[],this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map}var t=e.prototype;return t.reportError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce(function(e,t){return t.kind===Ee.Kind.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e},Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=n.pop(),i=0;i<r.selections.length;i++){var o=r.selections[i];o.kind===Ee.Kind.FRAGMENT_SPREAD?t.push(o):o.selectionSet&&n.push(o.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=this.getFragmentSpreads(i),a=0;a<o.length;a++){var l=o[a].name.value;if(!0!==n[l]){n[l]=!0;var u=this.getFragment(l);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),Qn=function(e){function t(t,n){var r;return(r=e.call(this,t)||this)._schema=n,r}return Gn(t,e),t.prototype.getSchema=function(){return this._schema},t}(Wn),Yn=function(e){function t(t,n,r){var i;return(i=e.call(this,n)||this)._schema=t,i._typeInfo=r,i._variableUsages=new Map,i._recursiveVariableUsages=new Map,i}Gn(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new Tt(this._schema);Object(kt.c)(e,Object(kt.e)(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=this.getRecursivelyReferencedFragments(e),r=0;r<n.length;r++)Array.prototype.push.apply(t,this.getVariableUsages(n[r]));this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},t}(Wn);function Jn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kn,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Tt(e);t||Object(f.a)(0,"Must provide document"),V(e);var i=new Yn(e,t,r),o=Object(kt.d)(n.map(function(e){return e(i)}));return Object(kt.c)(t,Object(kt.e)(r,o)),i.getErrors()}function $n(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hn,r=new Qn(e,t),i=n.map(function(e){return e(r)});return Object(kt.c)(e,Object(kt.d)(i)),r.getErrors()}var Xn=n(19);function Zn(e,t,n){return e&&Array.isArray(e.path)?e:new D.a(e&&e.message,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)}var er=n(36);function tr(e){return Boolean(e&&"function"==typeof e.then)}function nr(e,t){switch(t.operation){case"query":var n=e.getQueryType();if(!n)throw new D.a("Schema does not define the required query root type.",[t]);return n;case"mutation":var r=e.getMutationType();if(!r)throw new D.a("Schema is not configured for mutations.",[t]);return r;case"subscription":var i=e.getSubscriptionType();if(!i)throw new D.a("Schema is not configured for subscriptions.",[t]);return i;default:throw new D.a("Can only have query, mutation and subscription operations.",[t])}}function rr(e){return(rr="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 ir(e,t,n,r){if(Object(a.K)(t))return null==e?ar([sr("Expected non-nullable type ".concat(Object(p.a)(t)," not to be null"),n,r)]):ir(e,t.ofType,n,r);if(null==e)return or(null);if(Object(a.Q)(t))try{var o=t.parseValue(e);return Object(ln.a)(o)?ar([sr("Expected type ".concat(t.name),n,r)]):or(o)}catch(e){return ar([sr("Expected type ".concat(t.name),n,r,e.message,e)])}if(Object(a.D)(t)){if("string"==typeof e){var l=t.getValue(e);if(l)return or(l.value)}var u=Nt(String(e),t.getValues().map(function(e){return e.name})),s=0!==u.length?"did you mean ".concat(It(u),"?"):void 0;return ar([sr("Expected type ".concat(t.name),n,r,s)])}if(Object(a.I)(t)){var c=t.ofType;if(Object(Xn.e)(e)){var f,d=[];return Object(Xn.b)(e,function(e,t){var i=ir(e,c,n,ur(r,t));i.errors?f=lr(f,i.errors):f||d.push(i.value)}),f?ar(f):or(d)}var h=ir(e,c,n);return h.errors?h:or([h.value])}if(Object(a.E)(t)){if("object"!==rr(e))return ar([sr("Expected type ".concat(t.name," to be an object"),n,r)]);var m,v={},g=t.getFields(),y=!0,b=!1,w=void 0;try{for(var k,x=Object(i.a)(g)[Symbol.iterator]();!(y=(k=x.next()).done);y=!0){var T=k.value,E=e[T.name];if(Object(ln.a)(E))Object(ln.a)(T.defaultValue)?Object(a.K)(T.type)&&(m=lr(m,sr("Field ".concat(cr(ur(r,T.name))," of required ")+"type ".concat(Object(p.a)(T.type)," was not provided"),n))):v[T.name]=T.defaultValue;else{var _=ir(E,T.type,n,ur(r,T.name));_.errors?m=lr(m,_.errors):m||(v[T.name]=_.value)}}}catch(e){b=!0,w=e}finally{try{y||null==x.return||x.return()}finally{if(b)throw w}}for(var S=Object.keys(e),O=0;O<S.length;O++){var C=S[O];if(!g[C]){var N=Nt(C,Object.keys(g)),A=0!==N.length?"did you mean ".concat(It(N),"?"):void 0;m=lr(m,sr('Field "'.concat(C,'" is not defined by type ').concat(t.name),n,r,A))}}return m?ar(m):or(v)}throw new Error("Unexpected type: ".concat(t,"."))}function or(e){return{errors:void 0,value:e}}function ar(e){return{errors:e,value:void 0}}function lr(e,t){return(e||[]).concat(t)}function ur(e,t){return{prev:e,key:t}}function sr(e,t,n,r,i){var o=cr(n);return new D.a(e+(o?" at "+o:"")+(r?"; "+r:"."),t,void 0,void 0,void 0,i)}function cr(e){for(var t="",n=e;n;)t=("string"==typeof n.key?"."+n.key:"["+String(n.key)+"]")+t,n=n.prev;return t?"value"+t:""}function fr(e,t,n){if(e){if(Object(a.K)(t)){if(e.kind===Ee.Kind.NULL)return;return fr(e,t.ofType,n)}if(e.kind===Ee.Kind.NULL)return null;if(e.kind===Ee.Kind.VARIABLE){var r=e.name.value;if(!n||Object(ln.a)(n[r]))return;var o=n[r];if(null===o&&Object(a.K)(t))return;return o}if(Object(a.I)(t)){var l=t.ofType;if(e.kind===Ee.Kind.LIST){for(var u=[],s=e.values,c=0;c<s.length;c++)if(pr(s[c],n)){if(Object(a.K)(l))return;u.push(null)}else{var f=fr(s[c],l,n);if(Object(ln.a)(f))return;u.push(f)}return u}var p=fr(e,l,n);if(Object(ln.a)(p))return;return[p]}if(Object(a.E)(t)){if(e.kind!==Ee.Kind.OBJECT)return;for(var d=Object.create(null),h=Object(un.a)(e.fields,function(e){return e.name.value}),m=Object(i.a)(t.getFields()),v=0;v<m.length;v++){var g=m[v],y=h[g.name];if(y&&!pr(y.value,n)){var b=fr(y.value,g.type,n);if(Object(ln.a)(b))return;d[g.name]=b}else if(void 0!==g.defaultValue)d[g.name]=g.defaultValue;else if(Object(a.K)(g.type))return}return d}if(Object(a.D)(t)){if(e.kind!==Ee.Kind.ENUM)return;var w=t.getValue(e.value);if(!w)return;return w.value}if(Object(a.Q)(t)){var k;try{k=t.parseLiteral(e,n)}catch(e){return}if(Object(ln.a)(k))return;return k}throw new Error("Unknown type: ".concat(t,"."))}}function pr(e,t){return e.kind===Ee.Kind.VARIABLE&&(!t||Object(ln.a)(t[e.name.value]))}function dr(e,t,n){var r={},i=e.args,o=t.arguments;if(!i||!o)return r;for(var l=Object(un.a)(o,function(e){return e.name.value}),u=0;u<i.length;u++){var s=i[u],c=s.name,d=s.type,h=l[c],m=void 0,v=void 0;if(h&&h.value.kind===Ee.Kind.VARIABLE){var g=h.value.name.value;m=n&&mr(n,g),v=n&&null===n[g]}else m=null!=h,v=h&&h.value.kind===Ee.Kind.NULL;if(m||void 0===s.defaultValue){if((!m||v)&&Object(a.K)(d)){if(v)throw new D.a('Argument "'.concat(c,'" of non-null type "').concat(Object(p.a)(d),'" ')+"must not be null.",[h.value]);if(h&&h.value.kind===Ee.Kind.VARIABLE){var y=h.value.name.value;throw new D.a('Argument "'.concat(c,'" of required type "').concat(Object(p.a)(d),'" ')+'was provided the variable "$'.concat(y,'" ')+"which was not provided a runtime value.",[h.value])}throw new D.a('Argument "'.concat(c,'" of required type "').concat(Object(p.a)(d),'" ')+"was not provided.",[t])}if(m)if(h.value.kind===Ee.Kind.NULL)r[c]=null;else if(h.value.kind===Ee.Kind.VARIABLE){var b=h.value.name.value;n||Object(f.a)(0,"Must exist for hasValue to be true."),r[c]=n[b]}else{var w=h.value,k=fr(w,d,n);if(void 0===k)throw new D.a('Argument "'.concat(c,'" has invalid value ').concat(Object(Rt.a)(w),"."),[h.value]);r[c]=k}}else r[c]=s.defaultValue}return r}function hr(e,t,n){var i=t.directives&&r(t.directives,function(t){return t.name.value===e.name});if(i)return dr(e,i,n)}function mr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vr(e){return(vr="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 gr(e,t,n,r,i,o,a){return 1===arguments.length?yr(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):yr(e,t,n,r,i,o,a)}function yr(e,t,n,r,i,o,a){kr(e,t,i);var l=xr(e,t,n,r,i,o,a);if(Array.isArray(l))return{errors:l};var u=function(e,t,n){var r=nr(e.schema,t),i=Er(e,r,t.selectionSet,Object.create(null),Object.create(null)),o=void 0;try{var a="mutation"===t.operation?function(e,t,n,r,i){return o=Object.keys(i),a=function(o,a){var l=i[a],u=wr(r,a),s=Or(e,t,n,l,u);return void 0===s?o:tr(s)?s.then(function(e){return o[a]=e,o}):(o[a]=s,o)},l=Object.create(null),o.reduce(function(e,t){return tr(e)?e.then(function(e){return a(e,t)}):a(e,t)},l);var o,a,l}(e,r,n,o,i):Tr(e,r,n,o,i);return tr(a)?a.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):a}catch(t){return e.errors.push(t),null}}(l,l.operation,n);return function e(t,n){if(tr(n))return n.then(function(n){return e(t,n)});return 0===t.errors.length?{data:n}:{errors:t.errors,data:n}}(l,u)}function br(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function wr(e,t){return{prev:e,key:t}}function kr(e,t,n){t||Object(f.a)(0,"Must provide document"),V(e),n&&"object"!==vr(n)&&Object(f.a)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function xr(e,t,n,r,i,o,l){for(var u,s,c=[],d=!1,h=Object.create(null),m=0;m<t.definitions.length;m++){var v=t.definitions[m];switch(v.kind){case Ee.Kind.OPERATION_DEFINITION:!o&&u?d=!0:(!o||v.name&&v.name.value===o)&&(u=v);break;case Ee.Kind.FRAGMENT_DEFINITION:h[v.name.value]=v}}if(u?d&&c.push(new D.a("Must provide operation name if query contains multiple operations.")):o?c.push(new D.a('Unknown operation named "'.concat(o,'".'))):c.push(new D.a("Must provide an operation.")),u){var g=function(e,t,n){for(var r=[],i={},o=0;o<t.length;o++){var l=t[o],u=l.variable.name.value,s=xt(e,l.type);if(Object(a.F)(s)){var c=mr(n,u),f=c?n[u]:void 0;if(!c&&l.defaultValue)i[u]=fr(l.defaultValue,s);else if(c&&null!==f||!Object(a.K)(s)){if(c)if(null===f)i[u]=null;else{var d=ir(f,s,l),h=d.errors;if(h){var m=!0,v=!1,g=void 0;try{for(var y,b=h[Symbol.iterator]();!(m=(y=b.next()).done);m=!0){var w=y.value;w.message='Variable "$'.concat(u,'" got invalid value ').concat(Object(p.a)(f),"; ")+w.message}}catch(e){v=!0,g=e}finally{try{m||null==b.return||b.return()}finally{if(v)throw g}}r.push.apply(r,h)}else i[u]=d.value}}else r.push(new D.a(c?'Variable "$'.concat(u,'" of non-null type ')+'"'.concat(Object(p.a)(s),'" must not be null.'):'Variable "$'.concat(u,'" of required type ')+'"'.concat(Object(p.a)(s),'" was not provided.'),[l]))}else r.push(new D.a('Variable "$'.concat(u,'" expected value of type ')+'"'.concat(Object(Rt.a)(l.type),'" which cannot be used as an input type.'),[l.type]))}return 0===r.length?{errors:void 0,coerced:i}:{errors:r,coerced:void 0}}(e,u.variableDefinitions||[],i||{});g.errors?c.push.apply(c,g.errors):s=g.coerced}return 0!==c.length?c:(u||Object(f.a)(0,"Has operation if no errors."),s||Object(f.a)(0,"Has variables if no errors."),{schema:e,fragments:h,rootValue:n,contextValue:r,operation:u,variableValues:s,fieldResolver:l||Br,errors:c})}function Tr(e,t,n,r,i){for(var o=Object.create(null),a=!1,l=0,u=Object.keys(i);l<u.length;++l){var s=u[l],c=Or(e,t,n,i[s],wr(r,s));void 0!==c&&(o[s]=c,!a&&tr(c)&&(a=!0))}return a?function(e){var t=Object.keys(e),n=t.map(function(t){return e[t]});return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return e[t[r]]=n,e},Object.create(null))})}(o):o}function Er(e,t,n,r,i){for(var o=0;o<n.selections.length;o++){var a=n.selections[o];switch(a.kind){case Ee.Kind.FIELD:if(!_r(e,a))continue;var l=(c=a).alias?c.alias.value:c.name.value;r[l]||(r[l]=[]),r[l].push(a);break;case Ee.Kind.INLINE_FRAGMENT:if(!_r(e,a)||!Sr(e,a,t))continue;Er(e,t,a.selectionSet,r,i);break;case Ee.Kind.FRAGMENT_SPREAD:var u=a.name.value;if(i[u]||!_r(e,a))continue;i[u]=!0;var s=e.fragments[u];if(!s||!Sr(e,s,t))continue;Er(e,t,s.selectionSet,r,i)}}var c;return r}function _r(e,t){var n=hr(b,t,e.variableValues);if(n&&!0===n.if)return!1;var r=hr(y,t,e.variableValues);return!r||!1!==r.if}function Sr(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=xt(e.schema,r);return i===n||!!Object(a.B)(i)&&e.schema.isPossibleType(i,n)}function Or(e,t,n,r,i){var o=r[0].name.value,a=qr(e.schema,t,o);if(a){var l=a.resolve||e.fieldResolver,u=Cr(e,a,r,t,i),s=Nr(e,a,r,l,n,u);return Dr(e,a.type,r,u,i,s)}}function Cr(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Nr(e,t,n,r,i,o){try{var a=r(i,dr(t,n[0],e.variableValues),e.contextValue,o);return tr(a)?a.then(void 0,Ar):a}catch(e){return Ar(e)}}function Ar(e){return e instanceof Error?e:new Error(e||void 0)}function Dr(e,t,n,r,i,o){try{var a;return a=tr(o)?o.then(function(o){return Lr(e,t,n,r,i,o)}):Lr(e,t,n,r,i,o),tr(a)?a.then(void 0,function(r){return Ir(r,n,i,t,e)}):a}catch(r){return Ir(r,n,i,t,e)}}function Ir(e,t,n,r,i){var o=Zn(Ar(e),t,br(n));if(Object(a.K)(r))throw o;return i.errors.push(o),null}function Lr(e,t,n,r,i,o){if(o instanceof Error)throw o;if(Object(a.K)(t)){var l=Lr(e,t.ofType,n,r,i,o);if(null===l)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return l}if(Object(er.a)(o))return null;if(Object(a.I)(t))return function(e,t,n,r,i,o){Object(Xn.e)(o)||Object(f.a)(0,"Expected Iterable, but did not find one for field ".concat(r.parentType.name,".").concat(r.fieldName,"."));var a=t.ofType,l=!1,u=[];return Object(Xn.b)(o,function(t,o){var s=wr(i,o),c=Dr(e,a,n,r,s,t);!l&&tr(c)&&(l=!0),u.push(c)}),l?Promise.all(u):u}(e,t,n,r,i,o);if(Object(a.H)(t))return function(e,t){e.serialize||Object(f.a)(0,"Missing serialize method on type");var n=e.serialize(t);if(Object(ln.a)(n))throw new Error('Expected a value of type "'.concat(Object(p.a)(e),'" but ')+"received: ".concat(Object(p.a)(t)));return n}(t,o);if(Object(a.B)(t))return function(e,t,n,r,i,o){var a=t.resolveType?t.resolveType(o,e.contextValue,r):function(e,t,n,r){if(null!==e&&"object"===vr(e)&&"string"==typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),o=[],a=0;a<i.length;a++){var l=i[a];if(l.isTypeOf){var u=l.isTypeOf(e,t,n);if(tr(u))o[a]=u;else if(u)return l}}if(o.length)return Promise.all(o).then(function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t]})}(o,e.contextValue,r,t);if(tr(a))return a.then(function(a){return Mr(e,jr(a,e,t,n,r,o),n,r,i,o)});return Mr(e,jr(a,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o);if(Object(a.M)(t))return Mr(e,t,n,r,i,o);throw new Error('Cannot complete value of unexpected type "'.concat(Object(p.a)(t),'".'))}function jr(e,t,n,r,i,o){var l="string"==typeof e?t.schema.getType(e):e;if(!Object(a.M)(l))throw new D.a("Abstract type ".concat(n.name," must resolve to an Object type at ")+"runtime for field ".concat(i.parentType.name,".").concat(i.fieldName," with ")+"value ".concat(Object(p.a)(o),', received "').concat(Object(p.a)(l),'". ')+"Either the ".concat(n.name,' type should provide a "resolveType" ')+'function or each possible type should provide an "isTypeOf" function.',r);if(!t.schema.isPossibleType(n,l))throw new D.a('Runtime Object type "'.concat(l.name,'" is not a possible type ')+'for "'.concat(n.name,'".'),r);return l}function Mr(e,t,n,r,i,o){if(t.isTypeOf){var a=t.isTypeOf(o,e.contextValue,r);if(tr(a))return a.then(function(r){if(!r)throw Fr(t,o,n);return Rr(e,t,n,i,o)});if(!a)throw Fr(t,o,n)}return Rr(e,t,n,i,o)}function Fr(e,t,n){return new D.a('Expected value of type "'.concat(e.name,'" but got: ').concat(Object(p.a)(t),"."),n)}function Rr(e,t,n,r,i){return Tr(e,t,i,r,Ur(e,t,n))}var Pr,Vr,Ur=(Pr=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o].selectionSet;a&&(r=Er(e,t,a,r,i))}return r},function(e,t,n){Vr||(Vr=new WeakMap);var r,i=Vr.get(e);if(i){if(r=i.get(t)){var o=r.get(n);if(void 0!==o)return o}}else i=new WeakMap,Vr.set(e,i);r||(r=new WeakMap,i.set(t,r));var a=Pr.apply(this,arguments);return r.set(n,a),a});var Br=function(e,t,n,r){if("object"===vr(e)||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function qr(e,t,n){return n===E.SchemaMetaFieldDef.name&&e.getQueryType()===t?E.SchemaMetaFieldDef:n===E.TypeMetaFieldDef.name&&e.getQueryType()===t?E.TypeMetaFieldDef:n===E.TypeNameMetaFieldDef.name?E.TypeNameMetaFieldDef:t.getFields()[n]}function zr(e,t,n,r,i,o,a){var l=arguments;return new Promise(function(u){return u(1===l.length?Hr(e.schema,e.source,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):Hr(e,t,n,r,i,o,a))})}function Kr(e,t,n,r,i,o,a){var l=1===arguments.length?Hr(e.schema,e.source,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):Hr(e,t,n,r,i,o,a);if(l.then)throw new Error("GraphQL execution failed to complete synchronously.");return l}function Hr(e,t,n,r,i,o,a){var l,u=P(e);if(u.length>0)return{errors:u};try{l=_e(t)}catch(e){return{errors:[e]}}var s=Jn(e,l);return s.length>0?{errors:s}:gr(e,l,n,r,i,o,a)}var Gr=n(33);function Wr(e,t,n){var r,i,o,a,l,u,s=Object(Xn.c)(e);function c(e){return e.done?e:Qr(e.value,t).then(Yr,i)}if("function"==typeof s.return&&(r=s.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(s).then(t,t)}),n){var f=n;o=function(e){return Qr(e,f).then(Yr,i)}}return a={next:function(){return s.next().then(c,o)},return:function(){return r?r.call(s).then(c,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof s.throw?s.throw(e).then(c,o):Promise.reject(e).catch(i)}},l=Xn.a,u=function(){return this},l in a?Object.defineProperty(a,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[l]=u,a}function Qr(e,t){return new Promise(function(n){return n(t(e))})}function Yr(e){return{value:e,done:!1}}function Jr(e,t,n,r,i,o,a,l){return 1===arguments.length?Xr(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver,e.subscribeFieldResolver):Xr(e,t,n,r,i,o,a,l)}function $r(e){if(e instanceof D.a)return{errors:[e]};throw e}function Xr(e,t,n,r,i,o,a,l){var u=Zr(e,t,n,r,i,o,l),s=function(n){return gr(e,t,n,r,i,o,a)};return u.then(function(e){return Object(Xn.d)(e)?Wr(e,s,$r):e},$r)}function Zr(e,t,n,r,i,o,a){kr(e,t,i);try{var l=xr(e,t,n,r,i,o,a);if(Array.isArray(l))return Promise.resolve({errors:l});var u=nr(e,l.operation),s=Er(l,u,l.operation.selectionSet,Object.create(null),Object.create(null)),c=Object.keys(s)[0],f=s[c],d=f[0].name.value,h=qr(e,u,d);if(!h)throw new D.a('The subscription field "'.concat(d,'" is not defined.'),f);var m=h.subscribe||l.fieldResolver,v=wr(void 0,c),g=Cr(l,h,f,u,v),y=Nr(l,h,f,m,n,g);return Promise.resolve(y).then(function(e){if(e instanceof Error)throw Zn(e,f,br(v));if(Object(Xn.d)(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+Object(p.a)(e))})}catch(e){return Promise.reject(e)}}var ei=n(61);function ti(e){e||Object(f.a)(0,"Received null or undefined error.");var t=e.message||"An unknown error occurred.",n=e.locations,r=e.path,i=e.extensions;return i?{message:t,locations:n,path:r,extensions:i}:{message:t,locations:n,path:r}}function ni(e){var t=!(e&&!1===e.descriptions);return"\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ".concat(t?"description":"","\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(t?"description":"","\n fields(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(t?"description":"","\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}var ri=ni();function ii(e,t){for(var n=null,r=0;r<e.definitions.length;r++){var i=e.definitions[r];if(i.kind===Ee.Kind.OPERATION_DEFINITION)if(t){if(i.name&&i.name.value===t)return i}else{if(n)return null;n=i}}return n}function oi(e,t){var n=gr(e,_e(ni(t)));return(n.then||n.errors||!n.data)&&Object(f.a)(0),n.data}var ai=n(21);function li(e,t){var n=e.__schema,r=Object(un.a)(n.types,function(e){return e.name}),i=Object(un.a)(l.g.concat(E.introspectionTypes),function(e){return e.name});function o(e){if(e.kind===E.TypeKind.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return Object(a.d)(o(t))}if(e.kind===E.TypeKind.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var r=o(n);return Object(a.e)(Object(a.s)(r))}if(!e.name)throw new Error("Unknown type reference: "+Object(p.a)(e));return u(e.name)}function u(e){if(i[e])return i[e];var t=r[e];if(!t)throw new Error("Invalid or incomplete schema, unknown type: ".concat(e,". Ensure ")+"that a full introspection query is used in order to build a client schema.");var n=function(e){if(e&&e.name&&e.kind)switch(e.kind){case E.TypeKind.SCALAR:return n=e,new a.g({name:n.name,description:n.description,serialize:function(e){return e}});case E.TypeKind.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+Object(p.a)(e));return new a.f({name:e.name,description:e.description,interfaces:function(){return e.interfaces.map(c)},fields:function(){return d(e)}})}(e);case E.TypeKind.INTERFACE:return t=e,new a.c({name:t.name,description:t.description,fields:function(){return d(t)}});case E.TypeKind.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+Object(p.a)(e));return new a.h({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(s)}})}(e);case E.TypeKind.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+Object(p.a)(e));return new a.a({name:e.name,description:e.description,values:Object(ai.a)(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}(e);case E.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+Object(p.a)(e));return new a.b({name:e.name,description:e.description,fields:function(){return h(e.inputFields)}})}(e)}var t;var n;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+Object(p.a)(e))}(t);return i[e]=n,n}function s(e){var t=o(e);return Object(a.t)(t)}function c(e){var t=o(e);return Object(a.n)(t)}function d(e){if(!e.fields)throw new Error("Introspection result missing fields: "+Object(p.a)(e));return Object(ai.a)(e.fields,function(e){return e.name},function(e){if(!e.args)throw new Error("Introspection result missing field args: "+Object(p.a)(e));return{description:e.description,deprecationReason:e.deprecationReason,type:(t=e.type,n=o(t),Object(a.N)(n)||Object(f.a)(0,"Introspection must provide output type for fields, but received: "+Object(p.a)(n)+"."),n),args:h(e.args)};var t,n})}function h(e){return Object(ai.a)(e,function(e){return e.name},m)}function m(e){var t=function(e){var t=o(e);return Object(a.F)(t)||Object(f.a)(0,"Introspection must provide input type for arguments, but received: "+Object(p.a)(t)+"."),t}(e.type),n=e.defaultValue?fr(Se(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n}}var v=n.types.map(function(e){return u(e.name)}),y=n.queryType?s(n.queryType):null,b=n.mutationType?s(n.mutationType):null,w=n.subscriptionType?s(n.subscriptionType):null,k=n.directives?n.directives.map(function(e){if(!e.args)throw new Error("Introspection result missing directive args: "+Object(p.a)(e));if(!e.locations)throw new Error("Introspection result missing directive locations: "+Object(p.a)(e));return new g({name:e.name,description:e.description,locations:e.locations.slice(),args:h(e.args)})}):[];return new C({query:y,mutation:b,subscription:w,types:v,directives:k,assumeValid:t&&t.assumeValid,allowedLegacyNames:t&&t.allowedLegacyNames})}function ui(e,t){var n;e&&e.kind===Ee.Kind.DOCUMENT||Object(f.a)(0,"Must provide valid Document AST"),t&&(t.assumeValid||t.assumeValidSDL)||function(e){var t=$n(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}(e);var r=Object.create(null),o=[],a=!0,l=!1,u=void 0;try{for(var s,c=e.definitions[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){var p=s.value;p.kind===Ee.Kind.SCHEMA_DEFINITION?n=p:Object(jt.d)(p)?r[p.name.value]=p:p.kind===Ee.Kind.DIRECTIVE_DEFINITION&&o.push(p)}}catch(e){l=!0,u=e}finally{try{a||null==c.return||c.return()}finally{if(l)throw u}}var d=n?function(e){var t={},n=!0,r=!1,i=void 0;try{for(var o,a=e.operationTypes[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;t[l.operation]=l.type}}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return t}(n):{query:r.Query,mutation:r.Mutation,subscription:r.Subscription},h=new si(r,t,function(e){throw new Error('Type "'.concat(e,'" not found in document.'))}),m=o.map(function(e){return h.buildDirective(e)});return m.some(function(e){return"skip"===e.name})||m.push(b),m.some(function(e){return"include"===e.name})||m.push(y),m.some(function(e){return"deprecated"===e.name})||m.push(k),new C({query:d.query?h.buildType(d.query):null,mutation:d.mutation?h.buildType(d.mutation):null,subscription:d.subscription?h.buildType(d.subscription):null,types:Object(i.a)(r).map(function(e){return h.buildType(e)}),directives:m,astNode:n,assumeValid:t&&t.assumeValid,allowedLegacyNames:t&&t.allowedLegacyNames})}var si=function(){function e(e,t,n){this._typeDefinitionsMap=e,this._options=t,this._resolveType=n,this._cache=Object(un.a)(l.g.concat(E.introspectionTypes),function(e){return e.name})}var t=e.prototype;return t.buildType=function(e){var t=e.name.value;if(!this._cache[t])if(e.kind===Ee.Kind.NAMED_TYPE){var n=this._typeDefinitionsMap[t];this._cache[t]=n?this._makeSchemaDef(n):this._resolveType(e.name.value)}else this._cache[t]=this._makeSchemaDef(e);return this._cache[t]},t._buildWrappedType=function(e){return e.kind===Ee.Kind.LIST_TYPE?Object(a.d)(this._buildWrappedType(e.type)):e.kind===Ee.Kind.NON_NULL_TYPE?Object(a.e)(this._buildWrappedType(e.type)):this.buildType(e)},t.buildDirective=function(e){var t=this,n=e.locations.map(function(e){return e.value});return new g({name:e.name.value,description:pi(e,this._options),locations:n,args:ci(e.arguments||[],function(e){return t.buildArg(e)}),astNode:e})},t.buildField=function(e){var t=this;return{type:this._buildWrappedType(e.type),description:pi(e,this._options),args:ci(e.arguments||[],function(e){return t.buildArg(e)}),deprecationReason:fi(e),astNode:e}},t.buildArg=function(e){var t=this._buildWrappedType(e.type);return{type:t,description:pi(e,this._options),defaultValue:fr(e.defaultValue,t),astNode:e}},t.buildInputField=function(e){var t=this._buildWrappedType(e.type);return{type:t,description:pi(e,this._options),defaultValue:fr(e.defaultValue,t),astNode:e}},t.buildEnumValue=function(e){return{description:pi(e,this._options),deprecationReason:fi(e),astNode:e}},t._makeSchemaDef=function(e){switch(e.kind){case Ee.Kind.OBJECT_TYPE_DEFINITION:return this._makeTypeDef(e);case Ee.Kind.INTERFACE_TYPE_DEFINITION:return this._makeInterfaceDef(e);case Ee.Kind.ENUM_TYPE_DEFINITION:return this._makeEnumDef(e);case Ee.Kind.UNION_TYPE_DEFINITION:return this._makeUnionDef(e);case Ee.Kind.SCALAR_TYPE_DEFINITION:return this._makeScalarDef(e);case Ee.Kind.INPUT_OBJECT_TYPE_DEFINITION:return this._makeInputObjectDef(e);default:throw new Error('Type kind "'.concat(e.kind,'" not supported.'))}},t._makeTypeDef=function(e){var t=this,n=e.interfaces,r=e.fields,i=n&&n.length>0?function(){return n.map(function(e){return t.buildType(e)})}:[],o=r&&r.length>0?function(){return ci(r,function(e){return t.buildField(e)})}:Object.create(null);return new a.f({name:e.name.value,description:pi(e,this._options),interfaces:i,fields:o,astNode:e})},t._makeInterfaceDef=function(e){var t=this,n=e.fields,r=n&&n.length>0?function(){return ci(n,function(e){return t.buildField(e)})}:Object.create(null);return new a.c({name:e.name.value,description:pi(e,this._options),fields:r,astNode:e})},t._makeEnumDef=function(e){var t=this,n=e.values||[];return new a.a({name:e.name.value,description:pi(e,this._options),values:ci(n,function(e){return t.buildEnumValue(e)}),astNode:e})},t._makeUnionDef=function(e){var t=this,n=e.types,r=n&&n.length>0?function(){return n.map(function(e){return t.buildType(e)})}:[];return new a.h({name:e.name.value,description:pi(e,this._options),types:r,astNode:e})},t._makeScalarDef=function(e){return new a.g({name:e.name.value,description:pi(e,this._options),astNode:e,serialize:function(e){return e}})},t._makeInputObjectDef=function(e){var t=this,n=e.fields;return new a.b({name:e.name.value,description:pi(e,this._options),fields:n?function(){return ci(n,function(e){return t.buildInputField(e)})}:Object.create(null),astNode:e})},e}();function ci(e,t){return Object(ai.a)(e,function(e){return e.name.value},t)}function fi(e){var t=hr(k,e);return t&&t.reason}function pi(e,t){if(e.description)return e.description.value;if(t&&t.commentDescriptions){var n=function(e){var t=e.loc;if(!t)return;var n=[],r=t.startToken.prev;for(;r&&r.kind===me.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.reverse().join("\n")}(e);if(void 0!==n)return se("\n"+n)}}function di(e,t){return ui(_e(e,t),t)}var hi=n(37);function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vi(e,t,n){O(e),t&&t.kind===Ee.Kind.DOCUMENT||Object(f.a)(0,"Must provide valid Document AST"),n&&(n.assumeValid||n.assumeValidSDL)||function(e,t){var n=$n(e,t);if(0!==n.length)throw new Error(n.map(function(e){return e.message}).join("\n\n"))}(t,e);var r,o=Object.create(null),u=Object.create(null),s=[],c=[],p=!0,d=!1,h=void 0;try{for(var m,v=t.definitions[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){var y=m.value;if(y.kind===Ee.Kind.SCHEMA_DEFINITION)r=y;else if(y.kind===Ee.Kind.SCHEMA_EXTENSION)c.push(y);else if(Object(jt.d)(y)){o[y.name.value]=y}else if(Object(jt.e)(y)){var b=y.name.value,w=u[b];u[b]=w?w.concat([y]):[y]}else y.kind===Ee.Kind.DIRECTIVE_DEFINITION&&s.push(y)}}catch(e){d=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(d)throw h}}if(0===Object.keys(u).length&&0===Object.keys(o).length&&0===s.length&&0===c.length&&!r)return e;var k=new si(o,n,function(t){var n=e.getType(t);return n||Object(f.a)(0,'Unknown type: "'.concat(t,'".')),J(n)}),x=Object.create(null),T={query:Y(e.getQueryType()),mutation:Y(e.getMutationType()),subscription:Y(e.getSubscriptionType())};if(r){var _=!0,S=!1,N=void 0;try{for(var A,D=r.operationTypes[Symbol.iterator]();!(_=(A=D.next()).done);_=!0){var I=A.value,L=I.operation,j=I.type;T[L]=k.buildType(j)}}catch(e){S=!0,N=e}finally{try{_||null==D.return||D.return()}finally{if(S)throw N}}}for(var M=0;M<c.length;M++){var F=c[M];if(F.operationTypes){var R=!0,P=!1,V=void 0;try{for(var U,B=F.operationTypes[Symbol.iterator]();!(R=(U=B.next()).done);R=!0){var q=U.value,z=q.operation,K=q.type;T[z]=k.buildType(K)}}catch(e){P=!0,V=e}finally{try{R||null==B.return||B.return()}finally{if(P)throw V}}}}var H,G=c?e.extensionASTNodes?e.extensionASTNodes.concat(c):c:e.extensionASTNodes,W=[].concat(Object(i.a)(e.getTypeMap()).map(function(e){return J(e)}),Object(i.a)(o).map(function(e){return k.buildType(e)})),Q=e.__allowedLegacyNames.concat(n&&n.allowedLegacyNames||[]);return new C(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){mi(e,t,n[t])})}return e}({},T,{types:W,directives:(H=e.getDirectives().map($),H||Object(f.a)(0,"schema must have default directives"),H.concat(s.map(function(e){return k.buildDirective(e)}))),astNode:e.astNode,extensionASTNodes:G,allowedLegacyNames:Q}));function Y(e){return e?J(e):null}function J(e){if(Object(E.isIntrospectionType)(e)||Object(l.f)(e))return e;var t=e.name;return x[t]||(Object(a.Q)(e)?x[t]=function(e){var t=e.name,n=u[t]?e.extensionASTNodes?e.extensionASTNodes.concat(u[t]):u[t]:e.extensionASTNodes;return new a.g({name:t,description:e.description,astNode:e.astNode,extensionASTNodes:n,serialize:e.serialize,parseValue:e.parseValue,parseLiteral:e.parseLiteral})}(e):Object(a.M)(e)?x[t]=function(e){var t=e.name,n=u[t]?e.extensionASTNodes?e.extensionASTNodes.concat(u[t]):u[t]:e.extensionASTNodes;return new a.f({name:t,description:e.description,interfaces:function(){return function(e){var t=e.getInterfaces().map(J),n=u[e.name];if(n){var r=!0,i=!1,o=void 0;try{for(var a,l=n[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var s=a.value,c=!0,f=!1,p=void 0;try{for(var d,h=s.interfaces[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value;t.push(k.buildType(m))}}catch(e){f=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(f)throw p}}}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}}return t}(e)},fields:function(){return ee(e)},astNode:e.astNode,extensionASTNodes:n,isTypeOf:e.isTypeOf})}(e):Object(a.G)(e)?x[t]=function(e){var t=e.name,n=u[t]?e.extensionASTNodes?e.extensionASTNodes.concat(u[t]):u[t]:e.extensionASTNodes;return new a.c({name:e.name,description:e.description,fields:function(){return ee(e)},astNode:e.astNode,extensionASTNodes:n,resolveType:e.resolveType})}(e):Object(a.S)(e)?x[t]=function(e){var t=e.name,n=u[t]?e.extensionASTNodes?e.extensionASTNodes.concat(u[t]):u[t]:e.extensionASTNodes;return new a.h({name:t,description:e.description,types:function(){return function(e){var t=e.getTypes().map(J),n=u[e.name];if(n){var r=!0,i=!1,o=void 0;try{for(var a,l=n[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var s=a.value,c=!0,f=!1,p=void 0;try{for(var d,h=s.types[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value;t.push(k.buildType(m))}}catch(e){f=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(f)throw p}}}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}}return t}(e)},astNode:e.astNode,resolveType:e.resolveType,extensionASTNodes:n})}(e):Object(a.D)(e)?x[t]=function(e){var t=e.name,n=u[t]?e.extensionASTNodes?e.extensionASTNodes.concat(u[t]):u[t]:e.extensionASTNodes;return new a.a({name:t,description:e.description,values:X(e),astNode:e.astNode,extensionASTNodes:n})}(e):Object(a.E)(e)&&(x[t]=function(e){var t=e.name,n=u[t]?e.extensionASTNodes?e.extensionASTNodes.concat(u[t]):u[t]:e.extensionASTNodes;return new a.b({name:t,description:e.description,fields:function(){return function(e){var t=Object(hi.a)(e.getFields(),function(e){return{description:e.description,type:te(e.type),defaultValue:e.defaultValue,astNode:e.astNode}}),n=u[e.name];if(n){var r=!0,i=!1,o=void 0;try{for(var a,l=n[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var s=a.value,c=!0,f=!1,p=void 0;try{for(var d,h=s.fields[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value;t[m.name.value]=k.buildInputField(m)}}catch(e){f=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(f)throw p}}}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}}return t}(e)},astNode:e.astNode,extensionASTNodes:n})}(e))),x[t]}function $(e){return new g({name:e.name,description:e.description,locations:e.locations,args:Z(e.args),astNode:e.astNode})}function X(e){var t=Object.create(null),n=!0,r=!1,i=void 0;try{for(var o,a=e.getValues()[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;t[l.name]={description:l.description,value:l.value,deprecationReason:l.deprecationReason,astNode:l.astNode}}}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}var s=u[e.name];if(s){var c=!0,f=!1,p=void 0;try{for(var d,h=s[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value,v=!0,g=!1,y=void 0;try{for(var b,w=m.values[Symbol.iterator]();!(v=(b=w.next()).done);v=!0){var x=b.value;t[x.name.value]=k.buildEnumValue(x)}}catch(e){g=!0,y=e}finally{try{v||null==w.return||w.return()}finally{if(g)throw y}}}}catch(e){f=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(f)throw p}}}return t}function Z(e){return Object(ai.a)(e,function(e){return e.name},function(e){return{type:te(e.type),defaultValue:e.defaultValue,description:e.description,astNode:e.astNode}})}function ee(e){var t=Object(hi.a)(e.getFields(),function(e){return{description:e.description,deprecationReason:e.deprecationReason,type:te(e.type),args:Z(e.args),astNode:e.astNode,resolve:e.resolve}}),n=u[e.name];if(n){var r=!0,i=!1,o=void 0;try{for(var a,l=n[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var s=a.value,c=!0,f=!1,p=void 0;try{for(var d,h=s.fields[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value;t[m.name.value]=k.buildField(m)}}catch(e){f=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(f)throw p}}}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}}return t}function te(e){return Object(a.I)(e)?Object(a.d)(te(e.ofType)):Object(a.K)(e)?Object(a.e)(te(e.ofType)):J(e)}}function gi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yi(e){var t=Object.create(null),n=function(e){return e&&c(e)};return new C({types:s(Object(i.a)(e.getTypeMap())),directives:wi(e.getDirectives()).map(function(e){return new g({name:e.name,description:e.description,locations:ki(e.locations,function(e){return e}),args:r(e.args),astNode:e.astNode})}),query:n(e.getQueryType()),mutation:n(e.getMutationType()),subscription:n(e.getSubscriptionType()),astNode:e.astNode});function r(e){return Object(ai.a)(wi(e),function(e){return e.name},function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){gi(e,t,n[t])})}return e}({},e,{type:u(e.type)})})}function o(e){return bi(e,function(e){return{type:u(e.type),args:r(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,description:e.description,astNode:e.astNode}})}function u(e){return Object(a.I)(e)?new a.d(u(e.ofType)):Object(a.K)(e)?new a.e(u(e.ofType)):c(e)}function s(e){return wi(e).map(c)}function c(e){if(Object(l.f)(e)||Object(E.isIntrospectionType)(e))return e;var n=t[e.name];return n||(n=function(e){if(Object(a.Q)(e))return e;if(Object(a.M)(e))return new a.f({name:e.name,interfaces:function(){return s(e.getInterfaces())},fields:function(){return o(e.getFields())},isTypeOf:e.isTypeOf,description:e.description,astNode:e.astNode,extensionASTNodes:e.extensionASTNodes});if(Object(a.G)(e))return new a.c({name:e.name,fields:function(){return o(e.getFields())},resolveType:e.resolveType,description:e.description,astNode:e.astNode,extensionASTNodes:e.extensionASTNodes});if(Object(a.S)(e))return new a.h({name:e.name,types:function(){return s(e.getTypes())},resolveType:e.resolveType,description:e.description,astNode:e.astNode});if(Object(a.D)(e))return new a.a({name:e.name,values:Object(ai.a)(wi(e.getValues()),function(e){return e.name},function(e){return{value:e.value,deprecationReason:e.deprecationReason,description:e.description,astNode:e.astNode}}),description:e.description,astNode:e.astNode});if(Object(a.E)(e))return new a.b({name:e.name,fields:function(){return bi(e.getFields(),function(e){return{type:u(e.type),defaultValue:e.defaultValue,description:e.description,astNode:e.astNode}})},description:e.description,astNode:e.astNode});throw new Error('Unknown type: "'.concat(e,'"'))}(e),t[e.name]=n),n}}function bi(e,t){for(var n=Object.create(null),r=ki(Object.keys(e),function(e){return e}),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function wi(e){return ki(e,function(e){return e.name})}function ki(e,t){return e.slice().sort(function(e,n){var r=t(e),i=t(n);return r.localeCompare(i)})}var xi=n(32);function Ti(e,t){return Si(e,function(e){return!T(e)},_i,t)}function Ei(e,t){return Si(e,T,E.isIntrospectionType,t)}function _i(e){return!Object(l.f)(e)&&!Object(E.isIntrospectionType)(e)}function Si(e,t,n,r){var o=e.getDirectives().filter(t),a=e.getTypeMap(),l=Object(i.a)(a).sort(function(e,t){return e.name.localeCompare(t.name)}).filter(n);return[Oi(e)].concat(o.map(function(e){return function(e,t){return Li(t,e)+"directive @"+e.name+Ai(t,e.args)+" on "+e.locations.join(" | ")}(e,r)}),l.map(function(e){return Ci(e,r)})).filter(Boolean).join("\n\n")+"\n"}function Oi(e){if(!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),"schema {\n".concat(t.join("\n"),"\n}")}}function Ci(e,t){if(Object(a.Q)(e))return function(e,t){return Li(t,e)+"scalar ".concat(e.name)}(e,t);if(Object(a.M)(e))return function(e,t){var n=e.getInterfaces(),r=n.length?" implements "+n.map(function(e){return e.name}).join(" & "):"";return Li(t,e)+"type ".concat(e.name).concat(r," {\n")+Ni(t,e)+"\n}"}(e,t);if(Object(a.G)(e))return function(e,t){return Li(t,e)+"interface ".concat(e.name," {\n")+Ni(t,e)+"\n}"}(e,t);if(Object(a.S)(e))return function(e,t){return Li(t,e)+"union ".concat(e.name," = ").concat(e.getTypes().join(" | "))}(e,t);if(Object(a.D)(e))return function(e,t){return Li(t,e)+"enum ".concat(e.name," {\n")+function(e,t){return e.map(function(e,n){return Li(t,e," ",!n)+" "+e.name+Ii(e)}).join("\n")}(e.getValues(),t)+"\n}"}(e,t);if(Object(a.E)(e))return function(e,t){var n=Object(i.a)(e.getFields());return Li(t,e)+"input ".concat(e.name," {\n")+n.map(function(e,n){return Li(t,e," ",!n)+" "+Di(e)}).join("\n")+"\n}"}(e,t);throw new Error("Unknown type: ".concat(e,"."))}function Ni(e,t){return Object(i.a)(t.getFields()).map(function(t,n){return Li(e,t," ",!n)+" "+t.name+Ai(e,t.args," ")+": "+String(t.type)+Ii(t)}).join("\n")}function Ai(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every(function(e){return!e.description})?"("+t.map(Di).join(", ")+")":"(\n"+t.map(function(t,r){return Li(e,t," "+n,!r)+" "+n+Di(t)}).join("\n")+"\n"+n+")"}function Di(e){var t=e.name+": "+String(e.type);return Object(ln.a)(e.defaultValue)||(t+=" = ".concat(Object(Rt.a)(Object(xi.a)(e.defaultValue,e.type)))),t}function Ii(e){if(!e.isDeprecated)return"";var t=e.deprecationReason;return Object(er.a)(t)||""===t||t===w?" @deprecated":" @deprecated(reason: "+Object(Rt.a)(Object(xi.a)(t,l.e))+")"}function Li(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.description)return"";var i=function(e,t){for(var n=[],r=e.split("\n"),i=0;i<r.length;i++)if(""===r[i])n.push(r[i]);else for(var o=Mi(r[i],t),a=0;a<o.length;a++)n.push(o[a]);return n}(t.description,120-n.length);if(e&&e.commentDescriptions)return function(e,t,n){for(var r=t&&!n?"\n":"",i=0;i<e.length;i++)""===e[i]?r+=t+"#\n":r+=t+"# "+e[i]+"\n";return r}(i,n,r);var o=n&&!r?"\n"+n+'"""':n+'"""';if(1===i.length&&i[0].length<70&&'"'!==i[0][i[0].length-1])return o+ji(i[0])+'"""\n';var a=" "===i[0][0]||"\t"===i[0][0];a||(o+="\n");for(var l=0;l<i.length;l++)0===l&&a||(o+=n),o+=ji(i[l])+"\n";return o+=n+'"""\n'}function ji(e){return e.replace(/"""/g,'\\"""')}function Mi(e,t){if(e.length<t+5)return[e];var n=e.split(new RegExp("((?: |^).{15,".concat(t-40,"}(?= |$))")));if(n.length<4)return[e];for(var r=[n[0]+n[1]+n[2]],i=3;i<n.length;i+=2)r.push(n[i].slice(1)+n[i+1]);return r}var Fi=n(60);function Ri(e,t){var n=ir(e,t).errors;return n?n.map(function(e){return e.message}):[]}function Pi(e,t){var n=new C({}),r={kind:Ee.Kind.DOCUMENT,definitions:[]},i=new Tt(n,void 0,e),o=new Yn(n,r,i),a=cn(o);return Object(kt.c)(t,Object(kt.e)(i,a)),o.getErrors()}function Vi(e){for(var t=[],n=0;n<e.length;n++)for(var r=e[n].definitions,i=0;i<r.length;i++)t.push(r[i]);return{kind:"Document",definitions:t}}function Ui(e){var t,n=[],r=Object.create(null),i=new Map,o=Object.create(null),a=0;Object(kt.c)(e,{OperationDefinition:function(e){t=Bi(e),n.push(e),i.set(e,a++)},FragmentDefinition:function(e){t=e.name.value,r[t]=e,i.set(e,a++)},FragmentSpread:function(e){var n=e.name.value;(o[t]||(o[t]=Object.create(null)))[n]=!0}});for(var l=Object.create(null),u=0;u<n.length;u++){var s=n[u],c=Bi(s),f=Object.create(null);qi(f,o,c);for(var p=[s],d=Object.keys(f),h=0;h<d.length;h++){var m=d[h];p.push(r[m])}p.sort(function(e,t){return(i.get(e)||0)-(i.get(t)||0)}),l[c]={kind:"Document",definitions:p}}return l}function Bi(e){return e.name?e.name.value:""}function qi(e,t,n){var r=t[n];if(r)for(var i=Object.keys(r),o=0;o<i.length;o++){var a=i[o];e[a]||(e[a]=!0,qi(e,t,a))}}var zi={FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",FIELD_REMOVED:"FIELD_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED:"TYPE_REMOVED",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",INTERFACE_REMOVED_FROM_OBJECT:"INTERFACE_REMOVED_FROM_OBJECT",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED"},Ki={ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE",VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",INTERFACE_ADDED_TO_OBJECT:"INTERFACE_ADDED_TO_OBJECT",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED"};function Hi(e,t){return[].concat(function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(n),a=0;a<o.length;a++){var l=o[a];r[l]||i.push({type:zi.TYPE_REMOVED,description:"".concat(l," was removed.")})}return i}(e,t),function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(n),a=0;a<o.length;a++){var l=o[a];if(r[l]){var u=n[l],s=r[l];u.constructor!==s.constructor&&i.push({type:zi.TYPE_CHANGED_KIND,description:"".concat(l," changed from ")+"".concat(Qi(u)," to ").concat(Qi(s),".")})}}return i}(e,t),function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(n),l=0;l<o.length;l++){var u=o[l],s=n[u],c=r[u];if((Object(a.M)(s)||Object(a.G)(s))&&(Object(a.M)(c)||Object(a.G)(c))&&c.constructor===s.constructor)for(var f=s.getFields(),p=c.getFields(),d=Object.keys(f),h=0;h<d.length;h++){var m=d[h];if(m in p){var v=f[m].type,g=p[m].type,y=Ji(v,g);if(!y){var b=Object(a.J)(v)?v.name:v.toString(),w=Object(a.J)(g)?g.name:g.toString();i.push({type:zi.FIELD_CHANGED_KIND,description:"".concat(u,".").concat(m," changed type from ")+"".concat(b," to ").concat(w,".")})}}else i.push({type:zi.FIELD_REMOVED,description:"".concat(u,".").concat(m," was removed.")})}}return i}(e,t),Yi(e,t).breakingChanges,function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(n),l=0;l<o.length;l++){var u=o[l],s=n[u],c=r[u];if(Object(a.S)(s)&&Object(a.S)(c)){var f=Object.create(null),p=!0,d=!1,h=void 0;try{for(var m,v=c.getTypes()[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){var g=m.value;f[g.name]=!0}}catch(e){d=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(d)throw h}}var y=!0,b=!1,w=void 0;try{for(var k,x=s.getTypes()[Symbol.iterator]();!(y=(k=x.next()).done);y=!0){var T=k.value;f[T.name]||i.push({type:zi.TYPE_REMOVED_FROM_UNION,description:"".concat(T.name," was removed from union type ").concat(u,".")})}}catch(e){b=!0,w=e}finally{try{y||null==x.return||x.return()}finally{if(b)throw w}}}}return i}(e,t),function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(n),l=0;l<o.length;l++){var u=o[l],s=n[u],c=r[u];if(Object(a.D)(s)&&Object(a.D)(c)){var f=Object.create(null),p=!0,d=!1,h=void 0;try{for(var m,v=c.getValues()[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){var g=m.value;f[g.name]=!0}}catch(e){d=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(d)throw h}}var y=!0,b=!1,w=void 0;try{for(var k,x=s.getValues()[Symbol.iterator]();!(y=(k=x.next()).done);y=!0){var T=k.value;f[T.name]||i.push({type:zi.VALUE_REMOVED_FROM_ENUM,description:"".concat(T.name," was removed from enum type ").concat(u,".")})}}catch(e){b=!0,w=e}finally{try{y||null==x.return||x.return()}finally{if(b)throw w}}}}return i}(e,t),Wi(e,t).breakingChanges,function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(n),l=0;l<o.length;l++){var u=o[l],s=n[u],c=r[u];if(Object(a.M)(s)&&Object(a.M)(c)){var f=s.getInterfaces(),p=c.getInterfaces(),d=!0,h=!1,m=void 0;try{for(var v,g=function(){var e=v.value;p.some(function(t){return t.name===e.name})||i.push({type:zi.INTERFACE_REMOVED_FROM_OBJECT,description:"".concat(u," no longer implements interface ")+"".concat(e.name,".")})},y=f[Symbol.iterator]();!(d=(v=y.next()).done);d=!0)g()}catch(e){h=!0,m=e}finally{try{d||null==y.return||y.return()}finally{if(h)throw m}}}}return i}(e,t),function(e,t){var n=[],r=to(t),i=!0,o=!1,a=void 0;try{for(var l,u=e.getDirectives()[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value;r[s.name]||n.push({type:zi.DIRECTIVE_REMOVED,description:"".concat(s.name," was removed")})}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t),function(e,t){var n=[],r=to(e),i=!0,o=!1,a=void 0;try{for(var l,u=t.getDirectives()[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value,c=r[s.name];if(c){var f=!0,p=!1,d=void 0;try{for(var h,m=Xi(c,s)[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var v=h.value;n.push({type:zi.DIRECTIVE_ARG_REMOVED,description:"".concat(v.name," was removed from ").concat(s.name)})}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}}}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t),function(e,t){var n=[],r=to(e),i=!0,o=!1,l=void 0;try{for(var u,s=t.getDirectives()[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){var c=u.value,f=r[c.name];if(f){var p=!0,d=!1,h=void 0;try{for(var m,v=Zi(f,c)[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){var g=m.value;Object(a.O)(g)&&n.push({type:zi.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(g.name," on directive ")+"".concat(c.name," was added")})}}catch(e){d=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(d)throw h}}}}}catch(e){o=!0,l=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}return n}(e,t),function(e,t){var n=[],r=to(e),i=!0,o=!1,a=void 0;try{for(var l,u=t.getDirectives()[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value,c=r[s.name];if(c){var f=!0,p=!1,d=void 0;try{for(var h,m=eo(c,s)[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var v=h.value;n.push({type:zi.DIRECTIVE_LOCATION_REMOVED,description:"".concat(v," was removed from ").concat(s.name)})}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}}}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t))}function Gi(e,t){return[].concat(Wi(e,t).dangerousChanges,function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(n),l=0;l<o.length;l++){var u=o[l],s=n[u],c=r[u];if(Object(a.D)(s)&&Object(a.D)(c)){var f=Object.create(null),p=!0,d=!1,h=void 0;try{for(var m,v=s.getValues()[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){var g=m.value;f[g.name]=!0}}catch(e){d=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(d)throw h}}var y=!0,b=!1,w=void 0;try{for(var k,x=c.getValues()[Symbol.iterator]();!(y=(k=x.next()).done);y=!0){var T=k.value;f[T.name]||i.push({type:Ki.VALUE_ADDED_TO_ENUM,description:"".concat(T.name," was added to enum type ").concat(u,".")})}}catch(e){b=!0,w=e}finally{try{y||null==x.return||x.return()}finally{if(b)throw w}}}}return i}(e,t),function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(r),l=0;l<o.length;l++){var u=o[l],s=n[u],c=r[u];if(Object(a.M)(s)&&Object(a.M)(c)){var f=s.getInterfaces(),p=c.getInterfaces(),d=!0,h=!1,m=void 0;try{for(var v,g=function(){var e=v.value;f.some(function(t){return t.name===e.name})||i.push({type:Ki.INTERFACE_ADDED_TO_OBJECT,description:"".concat(e.name," added to interfaces implemented ")+"by ".concat(u,".")})},y=p[Symbol.iterator]();!(d=(v=y.next()).done);d=!0)g()}catch(e){h=!0,m=e}finally{try{d||null==y.return||y.return()}finally{if(h)throw m}}}}return i}(e,t),function(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=Object.keys(r),l=0;l<o.length;l++){var u=o[l],s=n[u],c=r[u];if(Object(a.S)(s)&&Object(a.S)(c)){var f=Object.create(null),p=!0,d=!1,h=void 0;try{for(var m,v=s.getTypes()[Symbol.iterator]();!(p=(m=v.next()).done);p=!0){var g=m.value;f[g.name]=!0}}catch(e){d=!0,h=e}finally{try{p||null==v.return||v.return()}finally{if(d)throw h}}var y=!0,b=!1,w=void 0;try{for(var k,x=c.getTypes()[Symbol.iterator]();!(y=(k=x.next()).done);y=!0){var T=k.value;f[T.name]||i.push({type:Ki.TYPE_ADDED_TO_UNION,description:"".concat(T.name," was added to union type ").concat(u,".")})}}catch(e){b=!0,w=e}finally{try{y||null==x.return||x.return()}finally{if(b)throw w}}}}return i}(e,t),Yi(e,t).dangerousChanges)}function Wi(e,t){for(var n=e.getTypeMap(),i=t.getTypeMap(),o=[],l=[],u=Object.keys(n),s=0;s<u.length;s++){var c=u[s],f=n[c],p=i[c];if((Object(a.M)(f)||Object(a.G)(f))&&(Object(a.M)(p)||Object(a.G)(p))&&p.constructor===f.constructor)for(var d=f.getFields(),h=p.getFields(),m=Object.keys(d),v=0;v<m.length;v++){var g=m[v];if(h[g]){var y=!0,b=!1,w=void 0;try{for(var k,x=function(){var e=k.value,t=h[g].args,n=r(t,function(t){return t.name===e.name});n?$i(e.type,n.type)?void 0!==e.defaultValue&&e.defaultValue!==n.defaultValue&&l.push({type:Ki.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(f.name,".").concat(g," arg ")+"".concat(e.name," has changed defaultValue")}):o.push({type:zi.ARG_CHANGED_KIND,description:"".concat(f.name,".").concat(g," arg ")+"".concat(e.name," has changed type from ")+"".concat(e.type.toString()," to ").concat(n.type.toString())}):o.push({type:zi.ARG_REMOVED,description:"".concat(f.name,".").concat(g," arg ")+"".concat(e.name," was removed")})},T=d[g].args[Symbol.iterator]();!(y=(k=T.next()).done);y=!0)x()}catch(e){b=!0,w=e}finally{try{y||null==T.return||T.return()}finally{if(b)throw w}}var E=!0,_=!1,S=void 0;try{for(var O,C=function(){var e=O.value,t=d[g].args;if(!r(t,function(t){return t.name===e.name})){var n=e.name;Object(a.O)(e)?o.push({type:zi.REQUIRED_ARG_ADDED,description:"A required arg ".concat(n," on ")+"".concat(c,".").concat(g," was added")}):l.push({type:Ki.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(n," on ")+"".concat(c,".").concat(g," was added")})}},N=h[g].args[Symbol.iterator]();!(E=(O=N.next()).done);E=!0)C()}catch(e){_=!0,S=e}finally{try{E||null==N.return||N.return()}finally{if(_)throw S}}}}}return{breakingChanges:o,dangerousChanges:l}}function Qi(e){if(Object(a.Q)(e))return"a Scalar type";if(Object(a.M)(e))return"an Object type";if(Object(a.G)(e))return"an Interface type";if(Object(a.S)(e))return"a Union type";if(Object(a.D)(e))return"an Enum type";if(Object(a.E)(e))return"an Input type";throw new TypeError("Unknown type "+e.constructor.name)}function Yi(e,t){for(var n=e.getTypeMap(),r=t.getTypeMap(),i=[],o=[],l=Object.keys(n),u=0;u<l.length;u++){var s=l[u],c=n[s],f=r[s];if(Object(a.E)(c)&&Object(a.E)(f)){for(var p=c.getFields(),d=f.getFields(),h=Object.keys(p),m=0;m<h.length;m++){var v=h[m];if(v in d){var g=p[v].type,y=d[v].type;if(!$i(g,y)){var b=Object(a.J)(g)?g.name:g.toString(),w=Object(a.J)(y)?y.name:y.toString();i.push({type:zi.FIELD_CHANGED_KIND,description:"".concat(s,".").concat(v," changed type from ")+"".concat(b," to ").concat(w,".")})}}else i.push({type:zi.FIELD_REMOVED,description:"".concat(s,".").concat(v," was removed.")})}for(var k=Object.keys(d),x=0;x<k.length;x++){var T=k[x];T in p||(Object(a.P)(d[T])?i.push({type:zi.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(T," on ")+"input type ".concat(s," was added.")}):o.push({type:Ki.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(T," on ")+"input type ".concat(s," was added.")}))}}}return{breakingChanges:i,dangerousChanges:o}}function Ji(e,t){return Object(a.J)(e)?Object(a.J)(t)&&e.name===t.name||Object(a.K)(t)&&Ji(e,t.ofType):Object(a.I)(e)?Object(a.I)(t)&&Ji(e.ofType,t.ofType)||Object(a.K)(t)&&Ji(e,t.ofType):!!Object(a.K)(e)&&(Object(a.K)(t)&&Ji(e.ofType,t.ofType))}function $i(e,t){return Object(a.J)(e)?Object(a.J)(t)&&e.name===t.name:Object(a.I)(e)?Object(a.I)(t)&&$i(e.ofType,t.ofType):!!Object(a.K)(e)&&(Object(a.K)(t)&&$i(e.ofType,t.ofType)||!Object(a.K)(t)&&$i(e.ofType,t))}function Xi(e,t){var n=[],r=no(t),i=!0,o=!1,a=void 0;try{for(var l,u=e.args[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value;r[s.name]||n.push(s)}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return n}function Zi(e,t){var n=[],r=no(e),i=!0,o=!1,a=void 0;try{for(var l,u=t.args[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value;r[s.name]||n.push(s)}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return n}function eo(e,t){var n=[],r=new Set(t.locations),i=!0,o=!1,a=void 0;try{for(var l,u=e.locations[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value;r.has(s)||n.push(s)}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return n}function to(e){return Object(un.a)(e.getDirectives(),function(e){return e.name})}function no(e){return Object(un.a)(e.args,function(e){return e.name})}function ro(e,t){var n=[],r=new Tt(e);return Object(kt.c)(t,Object(kt.e)(r,{Field:function(e){var t=r.getFieldDef();if(t&&t.isDeprecated){var i=r.getParentType();if(i){var o=t.deprecationReason;n.push(new D.a("The field ".concat(i.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),[e]))}}},EnumValue:function(e){var t=r.getEnumValue();if(t&&t.isDeprecated){var i=Object(a.z)(r.getInputType());if(i){var o=t.deprecationReason;n.push(new D.a("The enum value ".concat(i.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),[e]))}}}})),n}n.d(t,"graphql",function(){return zr}),n.d(t,"graphqlSync",function(){return Kr}),n.d(t,"GraphQLSchema",function(){return C}),n.d(t,"GraphQLScalarType",function(){return a.g}),n.d(t,"GraphQLObjectType",function(){return a.f}),n.d(t,"GraphQLInterfaceType",function(){return a.c}),n.d(t,"GraphQLUnionType",function(){return a.h}),n.d(t,"GraphQLEnumType",function(){return a.a}),n.d(t,"GraphQLInputObjectType",function(){return a.b}),n.d(t,"GraphQLList",function(){return a.d}),n.d(t,"GraphQLNonNull",function(){return a.e}),n.d(t,"GraphQLDirective",function(){return g}),n.d(t,"TypeKind",function(){return E.TypeKind}),n.d(t,"specifiedScalarTypes",function(){return l.g}),n.d(t,"GraphQLInt",function(){return l.d}),n.d(t,"GraphQLFloat",function(){return l.b}),n.d(t,"GraphQLString",function(){return l.e}),n.d(t,"GraphQLBoolean",function(){return l.a}),n.d(t,"GraphQLID",function(){return l.c}),n.d(t,"specifiedDirectives",function(){return x}),n.d(t,"GraphQLIncludeDirective",function(){return y}),n.d(t,"GraphQLSkipDirective",function(){return b}),n.d(t,"GraphQLDeprecatedDirective",function(){return k}),n.d(t,"DEFAULT_DEPRECATION_REASON",function(){return w}),n.d(t,"SchemaMetaFieldDef",function(){return E.SchemaMetaFieldDef}),n.d(t,"TypeMetaFieldDef",function(){return E.TypeMetaFieldDef}),n.d(t,"TypeNameMetaFieldDef",function(){return E.TypeNameMetaFieldDef}),n.d(t,"introspectionTypes",function(){return E.introspectionTypes}),n.d(t,"__Schema",function(){return E.__Schema}),n.d(t,"__Directive",function(){return E.__Directive}),n.d(t,"__DirectiveLocation",function(){return E.__DirectiveLocation}),n.d(t,"__Type",function(){return E.__Type}),n.d(t,"__Field",function(){return E.__Field}),n.d(t,"__InputValue",function(){return E.__InputValue}),n.d(t,"__EnumValue",function(){return E.__EnumValue}),n.d(t,"__TypeKind",function(){return E.__TypeKind}),n.d(t,"isSchema",function(){return S}),n.d(t,"isDirective",function(){return m}),n.d(t,"isType",function(){return a.R}),n.d(t,"isScalarType",function(){return a.Q}),n.d(t,"isObjectType",function(){return a.M}),n.d(t,"isInterfaceType",function(){return a.G}),n.d(t,"isUnionType",function(){return a.S}),n.d(t,"isEnumType",function(){return a.D}),n.d(t,"isInputObjectType",function(){return a.E}),n.d(t,"isListType",function(){return a.I}),n.d(t,"isNonNullType",function(){return a.K}),n.d(t,"isInputType",function(){return a.F}),n.d(t,"isOutputType",function(){return a.N}),n.d(t,"isLeafType",function(){return a.H}),n.d(t,"isCompositeType",function(){return a.C}),n.d(t,"isAbstractType",function(){return a.B}),n.d(t,"isWrappingType",function(){return a.T}),n.d(t,"isNullableType",function(){return a.L}),n.d(t,"isNamedType",function(){return a.J}),n.d(t,"isRequiredArgument",function(){return a.O}),n.d(t,"isRequiredInputField",function(){return a.P}),n.d(t,"isSpecifiedScalarType",function(){return l.f}),n.d(t,"isIntrospectionType",function(){return E.isIntrospectionType}),n.d(t,"isSpecifiedDirective",function(){return T}),n.d(t,"assertSchema",function(){return O}),n.d(t,"assertDirective",function(){return v}),n.d(t,"assertType",function(){return a.w}),n.d(t,"assertScalarType",function(){return a.v}),n.d(t,"assertObjectType",function(){return a.t}),n.d(t,"assertInterfaceType",function(){return a.n}),n.d(t,"assertUnionType",function(){return a.x}),n.d(t,"assertEnumType",function(){return a.k}),n.d(t,"assertInputObjectType",function(){return a.l}),n.d(t,"assertListType",function(){return a.p}),n.d(t,"assertNonNullType",function(){return a.r}),n.d(t,"assertInputType",function(){return a.m}),n.d(t,"assertOutputType",function(){return a.u}),n.d(t,"assertLeafType",function(){return a.o}),n.d(t,"assertCompositeType",function(){return a.j}),n.d(t,"assertAbstractType",function(){return a.i}),n.d(t,"assertWrappingType",function(){return a.y}),n.d(t,"assertNullableType",function(){return a.s}),n.d(t,"assertNamedType",function(){return a.q}),n.d(t,"getNullableType",function(){return a.A}),n.d(t,"getNamedType",function(){return a.z}),n.d(t,"validateSchema",function(){return P}),n.d(t,"assertValidSchema",function(){return V}),n.d(t,"Source",function(){return le}),n.d(t,"getLocation",function(){return Gr.a}),n.d(t,"parse",function(){return _e}),n.d(t,"parseValue",function(){return Se}),n.d(t,"parseType",function(){return Oe}),n.d(t,"print",function(){return Rt.a}),n.d(t,"visit",function(){return kt.c}),n.d(t,"visitInParallel",function(){return kt.d}),n.d(t,"visitWithTypeInfo",function(){return kt.e}),n.d(t,"getVisitFn",function(){return kt.b}),n.d(t,"Kind",function(){return Ee.Kind}),n.d(t,"TokenKind",function(){return me}),n.d(t,"DirectiveLocation",function(){return d.a}),n.d(t,"BREAK",function(){return kt.a}),n.d(t,"isDefinitionNode",function(){return jt.a}),n.d(t,"isExecutableDefinitionNode",function(){return jt.b}),n.d(t,"isSelectionNode",function(){return jt.c}),n.d(t,"isValueNode",function(){return jt.i}),n.d(t,"isTypeNode",function(){return jt.f}),n.d(t,"isTypeSystemDefinitionNode",function(){return jt.g}),n.d(t,"isTypeDefinitionNode",function(){return jt.d}),n.d(t,"isTypeSystemExtensionNode",function(){return jt.h}),n.d(t,"isTypeExtensionNode",function(){return jt.e}),n.d(t,"execute",function(){return gr}),n.d(t,"defaultFieldResolver",function(){return Br}),n.d(t,"responsePathAsArray",function(){return br}),n.d(t,"getDirectiveValues",function(){return hr}),n.d(t,"subscribe",function(){return Jr}),n.d(t,"createSourceEventStream",function(){return Zr}),n.d(t,"validate",function(){return Jn}),n.d(t,"ValidationContext",function(){return Yn}),n.d(t,"specifiedRules",function(){return Kn}),n.d(t,"FieldsOnCorrectTypeRule",function(){return Bt}),n.d(t,"FragmentsOnCompositeTypesRule",function(){return Pt}),n.d(t,"KnownArgumentNamesRule",function(){return rn}),n.d(t,"KnownDirectivesRule",function(){return Xt}),n.d(t,"KnownFragmentNamesRule",function(){return zt.KnownFragmentNames}),n.d(t,"KnownTypeNamesRule",function(){return Mt}),n.d(t,"LoneAnonymousOperationRule",function(){return Ot}),n.d(t,"NoFragmentCyclesRule",function(){return Gt}),n.d(t,"NoUndefinedVariablesRule",function(){return Yt}),n.d(t,"NoUnusedFragmentsRule",function(){return Kt.NoUnusedFragments}),n.d(t,"NoUnusedVariablesRule",function(){return $t}),n.d(t,"OverlappingFieldsCanBeMergedRule",function(){return xn}),n.d(t,"PossibleFragmentSpreadsRule",function(){return Ht}),n.d(t,"ProvidedRequiredArgumentsRule",function(){return mn}),n.d(t,"ScalarLeafsRule",function(){return Ut}),n.d(t,"SingleFieldSubscriptionsRule",function(){return Ct}),n.d(t,"UniqueArgumentNamesRule",function(){return an}),n.d(t,"UniqueDirectivesPerLocationRule",function(){return en}),n.d(t,"UniqueFragmentNamesRule",function(){return qt}),n.d(t,"UniqueInputFieldNamesRule",function(){return In}),n.d(t,"UniqueOperationNamesRule",function(){return St}),n.d(t,"UniqueVariableNamesRule",function(){return Wt}),n.d(t,"ValuesOfCorrectTypeRule",function(){return cn}),n.d(t,"VariablesAreInputTypesRule",function(){return Vt}),n.d(t,"VariablesInAllowedPositionRule",function(){return bn}),n.d(t,"GraphQLError",function(){return D.a}),n.d(t,"formatError",function(){return ti}),n.d(t,"printError",function(){return ei.a}),n.d(t,"getIntrospectionQuery",function(){return ni}),n.d(t,"introspectionQuery",function(){return ri}),n.d(t,"getOperationAST",function(){return ii}),n.d(t,"getOperationRootType",function(){return nr}),n.d(t,"introspectionFromSchema",function(){return oi}),n.d(t,"buildClientSchema",function(){return li}),n.d(t,"buildASTSchema",function(){return ui}),n.d(t,"buildSchema",function(){return di}),n.d(t,"getDescription",function(){return pi}),n.d(t,"extendSchema",function(){return vi}),n.d(t,"lexicographicSortSchema",function(){return yi}),n.d(t,"printSchema",function(){return Ti}),n.d(t,"printIntrospectionSchema",function(){return Ei}),n.d(t,"printType",function(){return Ci}),n.d(t,"typeFromAST",function(){return xt}),n.d(t,"valueFromAST",function(){return fr}),n.d(t,"valueFromASTUntyped",function(){return Fi.a}),n.d(t,"astFromValue",function(){return xi.a}),n.d(t,"TypeInfo",function(){return Tt}),n.d(t,"coerceValue",function(){return ir}),n.d(t,"isValidJSValue",function(){return Ri}),n.d(t,"isValidLiteralValue",function(){return Pi}),n.d(t,"concatAST",function(){return Vi}),n.d(t,"separateOperations",function(){return Ui}),n.d(t,"isEqualType",function(){return M}),n.d(t,"isTypeSubTypeOf",function(){return F}),n.d(t,"doTypesOverlap",function(){return R}),n.d(t,"assertValidName",function(){return L}),n.d(t,"isValidNameError",function(){return j}),n.d(t,"findBreakingChanges",function(){return Hi}),n.d(t,"findDangerousChanges",function(){return Gi}),n.d(t,"BreakingChangeType",function(){return zi}),n.d(t,"DangerousChangeType",function(){return Ki}),n.d(t,"findDeprecatedUsages",function(){return ro})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return s}),n.d(t,"b",function(){return c});var r=n(3),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["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"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o={};function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(e),s=[e],f=-1,p=[],d=void 0,h=void 0,m=void 0,v=[],g=[],y=e;do{var b=++f===s.length,w=b&&0!==p.length;if(b){if(h=0===g.length?void 0:v[v.length-1],d=m,m=g.pop(),w){if(u)d=d.slice();else{for(var k={},x=Object.keys(d),T=0;T<x.length;T++){var E=x[T];k[E]=d[E]}d=k}for(var _=0,S=0;S<p.length;S++){var O=p[S][0],C=p[S][1];u&&(O-=_),u&&null===C?(d.splice(O,1),_++):d[O]=C}}f=a.index,s=a.keys,p=a.edits,u=a.inArray,a=a.prev}else{if(h=m?u?f:s[f]:void 0,null==(d=m?m[h]:y))continue;m&&v.push(h)}var N=void 0;if(!Array.isArray(d)){if(!l(d))throw new Error("Invalid AST Node: "+Object(r.a)(d));var A=c(t,d.kind,b);if(A){if((N=A.call(t,d,h,m,v,g))===o)break;if(!1===N){if(!b){v.pop();continue}}else if(void 0!==N&&(p.push([h,N]),!b)){if(!l(N)){v.pop();continue}d=N}}}void 0===N&&w&&p.push([h,d]),b?v.pop():(a={inArray:u,index:f,keys:s,edits:p,prev:a},s=(u=Array.isArray(d))?d:n[d.kind]||[],f=-1,p=[],m&&g.push(m),m=d)}while(void 0!==a);return 0!==p.length&&(y=p[p.length-1][1]),y}function l(e){return Boolean(e&&"string"==typeof e.kind)}function u(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(!t[r]){var i=c(e[r],n.kind,!1);if(i){var a=i.apply(e[r],arguments);if(!1===a)t[r]=n;else if(a===o)t[r]=o;else if(void 0!==a)return a}}},leave:function(n){for(var r=0;r<e.length;r++)if(t[r])t[r]===n&&(t[r]=null);else{var i=c(e[r],n.kind,!0);if(i){var a=i.apply(e[r],arguments);if(a===o)t[r]=o;else if(void 0!==a&&!1!==a)return a}}}}}function s(e,t){return{enter:function(n){e.enter(n);var r=c(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),l(i)&&e.enter(i)),i}},leave:function(n){var r,i=c(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}function c(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}},function(e,t,n){"use strict";e.exports=n(154)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"i",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"g",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"h",function(){return f}),n.d(t,"e",function(){return p});var r=n(1);function i(e){return o(e)||s(e)||f(e)}function o(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT}function l(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function u(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE}function s(e){return e.kind===r.Kind.SCHEMA_DEFINITION||c(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function c(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function f(e){return e.kind===r.Kind.SCHEMA_EXTENSION||p(e)}function p(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},function(e,t,n){"use strict";function r(e){return void 0===e||e!=e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}n.d(t,"a",function(){return r})},function(e,t,n){e.exports=n(160)()},function(e,t,n){"use strict";n.d(t,"e",function(){return l}),n.d(t,"b",function(){return f}),n.d(t,"a",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"c",function(){return m});var r="function"==typeof Symbol?Symbol:void 0,i=r&&r.iterator,o=i||"@@iterator";function a(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function l(e){return Object(e)===e&&(a(e)||function(e){return!!s(e)}(e))}function u(e){var t=s(e);if(t)return t.call(e)}function s(e){if(null!=e){var t=i&&e[i]||e["@@iterator"];if("function"==typeof t)return t}}function c(e){this._o=e,this._i=0}function f(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,i=u(e);if(i){for(var o;!(o=i.next()).done;)if(t.call(n,o.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(a(e))for(;r<e.length;r++)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}}c.prototype[o]=function(){return this},c.prototype.next=function(){return void 0===this._o||this._i>=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var p=r&&r.asyncIterator,d=p||"@@asyncIterator";function h(e){return!!v(e)}function m(e){var t=v(e);if(t)return t.call(e)}function v(e){if(null!=e){var t=p&&e[p]||e["@@asyncIterator"];if("function"==typeof t)return t}}function g(e){this._i=e}g.prototype[d]=function(){return this},g.prototype.next=function(){var e=this._i.next();return Promise.resolve(e.value).then(function(t){return{value:t,done:e.done}})}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(51);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,r.a&&(e.prototype[r.a]=t)}},function(e,t,n){"use strict";function r(e,t,n){return e.reduce(function(e,r){return e[t(r)]=n(r),e},Object.create(null))}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";t.a=function(e,t){return e instanceof t}},function(e,t,n){"use strict";var r=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})};t.a=r},function(e,t,n){var r=n(87)("wks"),i=n(63),o=n(28).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefinitionState=function(e){var t=void 0;return o(e,function(e){switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t},t.getFieldDef=function(e,t,n){if(n===i.SchemaMetaFieldDef.name&&e.getQueryType()===t)return i.SchemaMetaFieldDef;if(n===i.TypeMetaFieldDef.name&&e.getQueryType()===t)return i.TypeMetaFieldDef;if(n===i.TypeNameMetaFieldDef.name&&(0,r.isCompositeType)(t))return i.TypeNameMetaFieldDef;if(t.getFields&&"function"==typeof t.getFields)return t.getFields()[n];return null},t.forEachState=o,t.objectValues=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=e[t[i]];return r},t.hintList=function(e,t){return function(e,t){if(!t)return a(e,function(e){return!e.isDeprecated});return a(a(e.map(function(e){return{proximity:u(l(e.label),t),entry:e}}),function(e){return e.proximity<=2}),function(e){return!e.entry.isDeprecated}).sort(function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length}).map(function(e){return e.entry})}(t,l(e.string))};var r=n(12),i=n(5);function o(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}function a(e,t){var n=e.filter(t);return 0===n.length?e:n}function l(e){return e.toLowerCase().replace(/\W/g,"")}function u(e,t){var n=function(e,t){var n=void 0,r=void 0,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var l=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+l),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+l))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE=void 0,t.getDefinitionQueryResultForNamedType=function(t,n,r){var i,o,a;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(i=n.name.value,0!==(o=r.filter(function(e){var t=e.definition;return t.name&&t.name.value===i})).length){l.next=5;break}return e.stderr.write("Definition not found for GraphQL type "+i),l.abrupt("return",{queryRange:[],definitions:[]});case 5:return a=o.map(function(e){var t=e.filePath,n=e.content,r=e.definition;return f(t||"",n,r)}),l.abrupt("return",{definitions:a,queryRange:a.map(function(e){return u(t,n)})});case 7:case"end":return l.stop()}},null,this)},t.getDefinitionQueryResultForFragmentSpread=function(t,n,r){var i,o,a;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(i=n.name.value,0!==(o=r.filter(function(e){var t=e.definition;return t.name.value===i})).length){l.next=5;break}return e.stderr.write("Definition not found for GraphQL fragment "+i),l.abrupt("return",{queryRange:[],definitions:[]});case 5:return a=o.map(function(e){var t=e.filePath,n=e.content,r=e.definition;return c(t||"",n,r)}),l.abrupt("return",{definitions:a,queryRange:a.map(function(e){return u(t,n)})});case 7:case"end":return l.stop()}},null,this)},t.getDefinitionQueryResultForDefinitionNode=function(e,t,n){return{definitions:[c(e,t,n)],queryRange:n.name?[u(t,n.name)]:[]}};var r,i=n(59),o=n(112),a=(r=o)&&r.__esModule?r:{default:r};var l=t.LANGUAGE="GraphQL";function u(e,t){var n=t.loc;return(0,a.default)(n,"Expected ASTNode to have a location."),(0,i.locToRange)(e,n)}function s(e,t){var n=t.loc;return(0,a.default)(n,"Expected ASTNode to have a location."),(0,i.offsetToPosition)(e,n.start)}function c(e,t,n){var r=n.name;return(0,a.default)(r,"Expected ASTNode to have a Name."),{path:e,position:s(t,n),range:u(t,n),name:r.value||"",language:l,projectRoot:e}}function f(e,t,n){var r=n.name;return(0,a.default)(r,"Expected ASTNode to have a Name."),{path:e,position:s(t,n),range:u(t,n),name:r.value||"",language:l,projectRoot:e}}}).call(this,n(110))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(54),i=n(83);e.exports=n(39)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.getAutocompleteSuggestions=function(e,t,n,r){var o=r||l(t,n),c="Invalid"===o.state.kind?o.state.prevState:o.state;if(!c)return[];var f=c.kind,p=c.step,d=s(e,o.state);if("Document"===f)return(0,a.hintList)(o,[{label:"query"},{label:"mutation"},{label:"subscription"},{label:"fragment"},{label:"{"}]);if("SelectionSet"===f||"Field"===f||"AliasedField"===f)return function(e,t,n){if(t.parentType){var r=t.parentType,o=r.getFields instanceof Function?(0,a.objectValues)(r.getFields()):[];return(0,i.isAbstractType)(r)&&o.push(i.TypeNameMetaFieldDef),r===n.getQueryType()&&o.push(i.SchemaMetaFieldDef,i.TypeMetaFieldDef),(0,a.hintList)(e,o.map(function(e){return{label:e.name,detail:String(e.type),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}))}return[]}(o,d,e);if("Arguments"===f||"Argument"===f&&0===p){var h=d.argDefs;if(h)return(0,a.hintList)(o,h.map(function(e){return{label:e.name,detail:String(e.type),documentation:e.description}}))}if(("ObjectValue"===f||"ObjectField"===f&&0===p)&&d.objectFieldDefs){var m=(0,a.objectValues)(d.objectFieldDefs);return(0,a.hintList)(o,m.map(function(e){return{label:e.name,detail:String(e.type),documentation:e.description}}))}if("EnumValue"===f||"ListValue"===f&&1===p||"ObjectField"===f&&2===p||"Argument"===f&&2===p)return function(e,t){var n=(0,i.getNamedType)(t.inputType);if(n instanceof i.GraphQLEnumType){var r=n.getValues();return(0,a.hintList)(e,r.map(function(e){return{label:e.name,detail:String(n),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}))}if(n===i.GraphQLBoolean)return(0,a.hintList)(e,[{label:"true",detail:String(i.GraphQLBoolean),documentation:"Not false."},{label:"false",detail:String(i.GraphQLBoolean),documentation:"Not true."}]);return[]}(o,d);if("TypeCondition"===f&&1===p||"NamedType"===f&&null!=c.prevState&&"TypeCondition"===c.prevState.kind)return function(e,t,n){var r=void 0;if(t.parentType)if((0,i.isAbstractType)(t.parentType)){var o=(0,i.assertAbstractType)(t.parentType),l=n.getPossibleTypes(o),u=Object.create(null);l.forEach(function(e){e.getInterfaces().forEach(function(e){u[e.name]=e})}),r=l.concat((0,a.objectValues)(u))}else r=[t.parentType];else{var s=n.getTypeMap();r=(0,a.objectValues)(s).filter(i.isCompositeType)}return(0,a.hintList)(e,r.map(function(e){var t=(0,i.getNamedType)(e);return{label:String(e),documentation:t&&t.description||""}}))}(o,d,e);if("FragmentSpread"===f&&1===p)return function(e,t,n,r){var o=n.getTypeMap(),l=(0,a.getDefinitionState)(e.state),s=function(e){var t=[];return u(e,function(e,n){"FragmentDefinition"===n.kind&&n.name&&n.type&&t.push({kind:"FragmentDefinition",name:{kind:"Name",value:n.name},selectionSet:{kind:"SelectionSet",selections:[]},typeCondition:{kind:"NamedType",name:{kind:"Name",value:n.type}}})}),t}(r).filter(function(e){return o[e.typeCondition.name.value]&&!(l&&"FragmentDefinition"===l.kind&&l.name===e.name.value)&&(0,i.isCompositeType)(t.parentType)&&(0,i.isCompositeType)(o[e.typeCondition.name.value])&&(0,i.doTypesOverlap)(n,t.parentType,o[e.typeCondition.name.value])});return(0,a.hintList)(e,s.map(function(e){return{label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:"fragment "+e.name.value+" on "+e.typeCondition.name.value}}))}(o,d,e,t);if("VariableDefinition"===f&&2===p||"ListType"===f&&1===p||"NamedType"===f&&c.prevState&&("VariableDefinition"===c.prevState.kind||"ListType"===c.prevState.kind))return function(e,t){var n=t.getTypeMap(),r=(0,a.objectValues)(n).filter(i.isInputType);return(0,a.hintList)(e,r.map(function(e){return{label:e.name,documentation:e.description}}))}(o,e);if("Directive"===f)return function(e,t,n){if(t.prevState&&t.prevState.kind){var r=n.getDirectives().filter(function(e){return function(e,t){if(!e||!e.kind)return!1;var n=e.kind,r=t.locations;switch(n){case"Query":return-1!==r.indexOf("QUERY");case"Mutation":return-1!==r.indexOf("MUTATION");case"Subscription":return-1!==r.indexOf("SUBSCRIPTION");case"Field":case"AliasedField":return-1!==r.indexOf("FIELD");case"FragmentDefinition":return-1!==r.indexOf("FRAGMENT_DEFINITION");case"FragmentSpread":return-1!==r.indexOf("FRAGMENT_SPREAD");case"InlineFragment":return-1!==r.indexOf("INLINE_FRAGMENT");case"SchemaDef":return-1!==r.indexOf("SCHEMA");case"ScalarDef":return-1!==r.indexOf("SCALAR");case"ObjectTypeDef":return-1!==r.indexOf("OBJECT");case"FieldDef":return-1!==r.indexOf("FIELD_DEFINITION");case"InterfaceDef":return-1!==r.indexOf("INTERFACE");case"UnionDef":return-1!==r.indexOf("UNION");case"EnumDef":return-1!==r.indexOf("ENUM");case"EnumValue":return-1!==r.indexOf("ENUM_VALUE");case"InputDef":return-1!==r.indexOf("INPUT_OBJECT");case"InputValueDef":var i=e.prevState&&e.prevState.kind;switch(i){case"ArgumentsDef":return-1!==r.indexOf("ARGUMENT_DEFINITION");case"InputDef":return-1!==r.indexOf("INPUT_FIELD_DEFINITION")}}return!1}(t.prevState,e)});return(0,a.hintList)(e,r.map(function(e){return{label:e.name,documentation:e.description||""}}))}return[]}(o,c,e);return[]},t.getTokenAtPosition=l,t.getTypeInfo=s;var i=n(12),o=n(45),a=n(26);function l(e,t){var n=null,i=null,o=null,a=u(e,function(e,a,l,u){if(u===t.line&&e.getCurrentPosition()>=t.character)return n=l,i=r({},a),o=e.current(),"BREAK"});return{start:a.start,end:a.end,string:o||a.string,state:i||a.state,style:n||a.style}}function u(e,t){for(var n=e.split("\n"),r=(0,o.onlineParser)(),i=r.startState(),a="",l=new o.CharacterStream(""),u=0;u<n.length;u++){for(l=new o.CharacterStream(n[u]);!l.eol();){if("BREAK"===t(l,i,a=r.token(l,i),u))break}t(l,i,a,u),i.kind||(i=r.startState())}return{start:l.getStartOfToken(),end:l.getCurrentPosition(),string:l.current(),state:i,style:a}}function s(e,t){var n=void 0,r=void 0,o=void 0,l=void 0,u=void 0,s=void 0,c=void 0,f=void 0,p=void 0;return(0,a.forEachState)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":p=e.getQueryType();break;case"Mutation":p=e.getMutationType();break;case"Subscription":p=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(p=e.getType(t.type));break;case"Field":case"AliasedField":p&&t.name?(u=f?(0,a.getFieldDef)(e,f,t.name):null,p=u?u.type:null):u=null;break;case"SelectionSet":f=(0,i.getNamedType)(p);break;case"Directive":o=t.name?e.getDirective(t.name):null;break;case"Arguments":if(t.prevState)switch(t.prevState.kind){case"Field":r=u&&u.args;break;case"Directive":r=o&&o.args;break;case"AliasedField":var d=t.prevState&&t.prevState.name;if(!d){r=null;break}var h=f?(0,a.getFieldDef)(e,f,d):null;if(!h){r=null;break}r=h.args;break;default:r=null}else r=null;break;case"Argument":if(r)for(var m=0;m<r.length;m++)if(r[m].name===t.name){n=r[m];break}s=n&&n.type;break;case"EnumValue":var v=(0,i.getNamedType)(s);l=v instanceof i.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null}(v.getValues(),function(e){return e.value===t.name}):null;break;case"ListValue":var g=(0,i.getNullableType)(s);s=g instanceof i.GraphQLList?g.ofType:null;break;case"ObjectValue":var y=(0,i.getNamedType)(s);c=y instanceof i.GraphQLInputObjectType?y.getFields():null;break;case"ObjectField":var b=t.name&&c?c[t.name]:null;s=b&&b.type;break;case"NamedType":t.name&&(p=e.getType(t.name))}}),{argDef:n,argDefs:r,directiveDef:o,enumValue:l,fieldDef:u,inputType:s,objectFieldDefs:c,parentType:f,type:p}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEVERITY=void 0,t.getDiagnostics=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3],i=null;try{i=(0,a.parse)(e)}catch(t){var o=d(t.locations[0],e);return[{severity:s.ERROR,message:t.message,source:"GraphQL: Syntax",range:o}]}return c(i,t,n,r)},t.validateQuery=c,t.getRange=d;var r,i=n(112),o=(r=i)&&r.__esModule?r:{default:r},a=n(12),l=n(45),u=n(59);var s=t.SEVERITY={ERROR:1,WARNING:2,INFORMATION:3,HINT:4};function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3];if(!t)return[];var i=f((0,u.validateWithCustomRules)(t,e,n,r),function(e){return p(e,s.ERROR,"Validation")}),o=a.findDeprecatedUsages?f((0,a.findDeprecatedUsages)(t,e),function(e){return p(e,s.WARNING,"Deprecation")}):[];return i.concat(o)}function f(e,t){return Array.prototype.concat.apply([],e.map(t))}function p(e,t,n){return e.nodes?e.nodes.map(function(r){var i="Variable"!==r.kind&&r.name?r.name:r.variable?r.variable:r;(0,o.default)(e.locations,"GraphQL validation error requires locations.");var a=e.locations[0],l=function(e){var t=e.loc;return(0,o.default)(t,"Expected ASTNode to have a location."),t}(i),s=a.column+(l.end-l.start);return{source:"GraphQL: "+n,message:e.message,severity:t,range:new u.Range(new u.Position(a.line-1,a.column-1),new u.Position(a.line-1,s))}}):[]}function d(e,t){var n=(0,l.onlineParser)(),r=n.startState(),i=t.split("\n");(0,o.default)(i.length>=e.line,"Query text must have more lines than where the error happened");for(var a=null,s=0;s<e.line;s++)for(a=new l.CharacterStream(i[s]);!a.eol();){if("invalidchar"===n.token(a,r))break}(0,o.default)(a,"Expected Parser stream to be available.");var c=e.line-1,f=a.getStartOfToken(),p=a.getCurrentPosition();return new u.Range(new u.Position(c,f),new u.Position(c,p))}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(19),i=n(9),o=n(3),a=n(36),l=n(16),u=n(1),s=n(0),c=n(7);function f(e){return(f="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 p(e,t){if(Object(s.K)(t)){var n=p(e,t.ofType);return n&&n.kind===u.Kind.NULL?null:n}if(null===e)return{kind:u.Kind.NULL};if(Object(l.a)(e))return null;if(Object(s.I)(t)){var h=t.ofType;if(Object(r.e)(e)){var m=[];return Object(r.b)(e,function(e){var t=p(e,h);t&&m.push(t)}),{kind:u.Kind.LIST,values:m}}return p(e,h)}if(Object(s.E)(t)){if(null===e||"object"!==f(e))return null;var v=Object(i.a)(t.getFields()),g=[],y=!0,b=!1,w=void 0;try{for(var k,x=v[Symbol.iterator]();!(y=(k=x.next()).done);y=!0){var T=k.value,E=p(e[T.name],T.type);E&&g.push({kind:u.Kind.OBJECT_FIELD,name:{kind:u.Kind.NAME,value:T.name},value:E})}}catch(e){b=!0,w=e}finally{try{y||null==x.return||x.return()}finally{if(b)throw w}}return{kind:u.Kind.OBJECT,fields:g}}if(Object(s.Q)(t)||Object(s.D)(t)){var _=t.serialize(e);if(Object(a.a)(_))return null;if("boolean"==typeof _)return{kind:u.Kind.BOOLEAN,value:_};if("number"==typeof _){var S=String(_);return d.test(S)?{kind:u.Kind.INT,value:S}:{kind:u.Kind.FLOAT,value:S}}if("string"==typeof _)return Object(s.D)(t)?{kind:u.Kind.ENUM,value:_}:t===c.c&&d.test(_)?{kind:u.Kind.INT,value:_}:{kind:u.Kind.STRING,value:_};throw new TypeError("Cannot convert value to AST: ".concat(Object(o.a)(_)))}throw new Error("Unknown type: ".concat(t,"."))}var d=/^-?(0|[1-9][0-9]*)$/},function(e,t,n){"use strict";function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26);Object.defineProperty(t,"getDefinitionState",{enumerable:!0,get:function(){return r.getDefinitionState}}),Object.defineProperty(t,"getFieldDef",{enumerable:!0,get:function(){return r.getFieldDef}}),Object.defineProperty(t,"forEachState",{enumerable:!0,get:function(){return r.forEachState}}),Object.defineProperty(t,"objectValues",{enumerable:!0,get:function(){return r.objectValues}}),Object.defineProperty(t,"hintList",{enumerable:!0,get:function(){return r.hintList}});var i=n(30);Object.defineProperty(t,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return i.getAutocompleteSuggestions}});var o=n(27);Object.defineProperty(t,"LANGUAGE",{enumerable:!0,get:function(){return o.LANGUAGE}}),Object.defineProperty(t,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return o.getDefinitionQueryResultForFragmentSpread}}),Object.defineProperty(t,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return o.getDefinitionQueryResultForDefinitionNode}});var a=n(31);Object.defineProperty(t,"getDiagnostics",{enumerable:!0,get:function(){return a.getDiagnostics}}),Object.defineProperty(t,"validateQuery",{enumerable:!0,get:function(){return a.validateQuery}});var l=n(46);Object.defineProperty(t,"getOutline",{enumerable:!0,get:function(){return l.getOutline}});var u=n(35);Object.defineProperty(t,"getHoverInformation",{enumerable:!0,get:function(){return u.getHoverInformation}});var s=n(47);Object.defineProperty(t,"GraphQLLanguageService",{enumerable:!0,get:function(){return s.GraphQLLanguageService}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHoverInformation=function(e,t,n,i){var f=i||(0,r.getTokenAtPosition)(t,n);if(!e||!f||!f.state)return[];var p=f.state,d=p.kind,h=p.step,m=(0,r.getTypeInfo)(e,f.state),v={schema:e};if("Field"===d&&0===h&&m.fieldDef||"AliasedField"===d&&2===h&&m.fieldDef){var g=[];return function(e,t,n){o(e,t,n),l(e,t,n,t.type)}(g,m,v),s(g,v,m.fieldDef),g.join("").trim()}if("Directive"===d&&1===h&&m.directiveDef){var y=[];return a(y,m,v),s(y,v,m.directiveDef),y.join("").trim()}if("Argument"===d&&0===h&&m.argDef){var b=[];return function(e,t,n){t.directiveDef?a(e,t,n):t.fieldDef&&o(e,t,n);if(!t.argDef)return;var r=t.argDef.name;c(e,"("),c(e,r),l(e,t,n,t.inputType),c(e,")")}(b,m,v),s(b,v,m.argDef),b.join("").trim()}if("EnumValue"===d&&m.enumValue&&m.enumValue.description){var w=[];return function(e,t,n){if(!t.enumValue)return;var r=t.enumValue.name;u(e,t,n,t.inputType),c(e,"."),c(e,r)}(w,m,v),s(w,v,m.enumValue),w.join("").trim()}if("NamedType"===d&&m.type&&m.type.description){var k=[];return u(k,m,v,m.type),s(k,v,m.type),k.join("").trim()}};var r=n(30),i=n(12);function o(e,t,n){if(t.fieldDef){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(u(e,t,n,t.parentType),c(e,".")),c(e,r)}}function a(e,t,n){t.directiveDef&&c(e,"@"+t.directiveDef.name)}function l(e,t,n,r){c(e,": "),u(e,t,n,r)}function u(e,t,n,r){r&&(r instanceof i.GraphQLNonNull?(u(e,t,n,r.ofType),c(e,"!")):r instanceof i.GraphQLList?(c(e,"["),u(e,t,n,r.ofType),c(e,"]")):c(e,r.name))}function s(e,t,n){if(n){var r="string"==typeof n.description?n.description:null;r&&(c(e,"\n\n"),c(e,r)),function(e,t,n){if(!n)return;var r="string"==typeof n.deprecationReason?n.deprecationReason:null;if(!r)return;c(e,"\n\n"),c(e,"Deprecated: "),c(e,r)}(e,0,n)}}function c(e,t){e.push(t)}},function(e,t,n){"use strict";function r(e){return null==e||e!=e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(24);function i(e,t){var n=Object.create(null),i=!0,o=!1,a=void 0;try{for(var l,u=Object(r.a)(e)[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var s=l.value,c=s[0],f=s[1];n[c]=t(f,c)}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return n}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(40)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(28),i=n(29),o=n(55),a=n(63)("src"),l=Function.toString,u=(""+l).split("toString");n(53).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var s="function"==typeof n;s&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(s&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:l?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||l.call(this)})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,l=e.lastLine();o<=l;o++,a=0){t.lastIndex=a;var u=e.getLine(o),s=t.exec(u);if(s)return{from:r(o,s.index),to:r(o,s.index+s[0].length),match:s}}}function a(e,t){for(var n,r=0;;){t.lastIndex=r;var i=t.exec(e);if(!i)return n;if((r=(n=i).index+(n[0].length||1))==e.length)return n}}function l(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,l=r(e.slice(0,a)).length;if(l==n)return a;l>n?o=a:i=a+1}}function u(e,u,s,c){var f;this.atOccurrence=!1,this.doc=e,s=s?e.clipPos(s):r(0,0),this.pos={from:s,to:s},"object"==typeof c?f=c.caseFold:(f=c,c=null),"string"==typeof u?(null==f&&(f=!1),this.matches=function(i,o){return(i?function(e,i,o,a){if(!i.length)return null;var u=a?t:n,s=u(i).split(/\r|\n\r?/);e:for(var c=o.line,f=o.ch,p=e.firstLine()-1+s.length;c>=p;c--,f=-1){var d=e.getLine(c);f>-1&&(d=d.slice(0,f));var h=u(d);if(1==s.length){var m=h.lastIndexOf(s[0]);if(-1==m)continue e;return{from:r(c,l(d,h,m,u)),to:r(c,l(d,h,m+s[0].length,u))}}var v=s[s.length-1];if(h.slice(0,v.length)==v){for(var g=1,o=c-s.length+1;g<s.length-1;g++)if(u(e.getLine(o+g))!=s[g])continue e;var y=e.getLine(c+1-s.length),b=u(y);if(b.slice(b.length-s[0].length)==s[0])return{from:r(c+1-s.length,l(y,b,y.length-s[0].length,u)),to:r(c,l(d,h,v.length,u))}}}}:function(e,i,o,a){if(!i.length)return null;var u=a?t:n,s=u(i).split(/\r|\n\r?/);e:for(var c=o.line,f=o.ch,p=e.lastLine()+1-s.length;c<=p;c++,f=0){var d=e.getLine(c).slice(f),h=u(d);if(1==s.length){var m=h.indexOf(s[0]);if(-1==m)continue e;var o=l(d,h,m,u)+f;return{from:r(c,l(d,h,m,u)+f),to:r(c,l(d,h,m+s[0].length,u)+f)}}var v=h.length-s[0].length;if(h.slice(v)==s[0]){for(var g=1;g<s.length-1;g++)if(u(e.getLine(c+g))!=s[g])continue e;var y=e.getLine(c+s.length-1),b=u(y),w=s[s.length-1];if(b.slice(0,w.length)==w)return{from:r(c,l(d,h,v,u)+f),to:r(c+s.length-1,l(y,b,w.length,u))}}}})(e,u,o,f)}):(u=i(u,"gm"),c&&!1===c.multiline?this.matches=function(t,n){return(t?function(e,t,n){t=i(t,"g");for(var o=n.line,l=n.ch,u=e.firstLine();o>=u;o--,l=-1){var s=e.getLine(o);l>-1&&(s=s.slice(0,l));var c=a(s,t);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}:o)(e,u,n)}:this.matches=function(t,n){return(t?function(e,t,n){t=i(t,"gm");for(var o,l=1,u=n.line,s=e.firstLine();u>=s;){for(var c=0;c<l;c++){var f=e.getLine(u--);o=null==o?f.slice(0,n.ch):f+"\n"+o}l*=2;var p=a(o,t);if(p){var d=o.slice(0,p.index).split("\n"),h=p[0].split("\n"),m=u+d.length,v=d[d.length-1].length;return{from:r(m,v),to:r(m+h.length-1,1==h.length?v+h[0].length:h[h.length-1].length),match:p}}}}:function(e,t,n){if(!function(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}(t))return o(e,t,n);t=i(t,"gm");for(var a,l=1,u=n.line,s=e.lastLine();u<=s;){for(var c=0;c<l&&!(u>s);c++){var f=e.getLine(u++);a=null==a?f:a+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(a);if(p){var d=a.slice(0,p.index).split("\n"),h=p[0].split("\n"),m=n.line+d.length-1,v=d[d.length-1].length;return{from:r(m,v),to:r(m+h.length-1,1==h.length?v+h[0].length:h[h.length-1].length),match:p}}}})(e,u,n)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),u.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new u(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new u(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}(n(10))},function(e,t,n){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),l=!1,u=this;function s(t){if("string"==typeof t)f.value=t;else{if(l)return;l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus(),o.onClose&&o.onClose(a)}}var c,f=a.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&e.on(f,"input",function(e){o.onInput(e,f.value,s)}),o.onKeyUp&&e.on(f,"keyup",function(e){o.onKeyUp(e,f.value,s)}),e.on(f,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,s)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),s()),13==t.keyCode&&i(f.value,t))}),!1!==o.closeOnBlur&&e.on(f,"blur",s)):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){s(),u.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",s),c.focus()),s}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),l=a.getElementsByTagName("button"),u=!1,s=this,c=1;function f(){u||(u=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),s.focus())}l[0].focus();for(var p=0;p<l.length;++p){var d=l[p];!function(t){e.on(d,"click",function(n){e.e_preventDefault(n),f(),t&&t(s)})}(i[p]),e.on(d,"blur",function(){--c,setTimeout(function(){c<=0&&f()},200)}),e.on(d,"focus",function(){++c})}}),e.defineExtension("openNotification",function(r,i){n(this,s);var o,a=t(this,r,i&&i.bottom),l=!1,u=i&&void 0!==i.duration?i.duration:5e3;function s(){l||(l=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",function(t){e.e_preventDefault(t),s()}),u&&(o=setTimeout(s,u)),s})}(n(10))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(227);Object.defineProperty(t,"CharacterStream",{enumerable:!0,get:function(){return l(r).default}});var i=n(108);Object.defineProperty(t,"LexRules",{enumerable:!0,get:function(){return i.LexRules}}),Object.defineProperty(t,"ParseRules",{enumerable:!0,get:function(){return i.ParseRules}}),Object.defineProperty(t,"isIgnored",{enumerable:!0,get:function(){return i.isIgnored}});var o=n(109);Object.defineProperty(t,"butNot",{enumerable:!0,get:function(){return o.butNot}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return o.list}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return o.p}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return o.t}});var a=n(228);function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"onlineParser",{enumerable:!0,get:function(){return l(a).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.getOutline=function(e){var t=void 0;try{t=(0,i.parse)(e)}catch(e){return null}var n=(s=e,c=function(e){return{representativeName:e.name,startPosition:(0,o.offsetToPosition)(s,e.loc.start),endPosition:(0,o.offsetToPosition)(s,e.loc.end),children:e.selectionSet||[]}},{Field:function(e){var t=e.alias?[u("plain",e.alias),u("plain",": ")]:[];return t.push(u("plain",e.name)),r({tokenizedText:t},c(e))},OperationDefinition:function(e){return r({tokenizedText:[u("keyword",e.operation),u("whitespace"," "),u("class-name",e.name)]},c(e))},Document:function(e){return e.definitions},SelectionSet:function(e){return function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r],r);Array.isArray(i)?n.push.apply(n,i):n.push(i)}return n}(e.selections,function(e){return e.kind===a?e.selectionSet:e})},Name:function(e){return e.value},FragmentDefinition:function(e){return r({tokenizedText:[u("keyword","fragment"),u("whitespace"," "),u("class-name",e.name)]},c(e))},FragmentSpread:function(e){return r({tokenizedText:[u("plain","..."),u("class-name",e.name)]},c(e))},InlineFragment:function(e){return e.selectionSet}});var s,c;return{outlineTrees:(0,i.visit)(t,{leave:function(e){return l.hasOwnProperty(e.kind)&&n[e.kind]?n[e.kind](e):null}})}};var i=n(12),o=n(59),a=i.Kind.INLINE_FRAGMENT,l={Field:!0,OperationDefinition:!0,Document:!0,SelectionSet:!0,Name:!0,FragmentDefinition:!0,FragmentSpread:!0,InlineFragment:!0};function u(e,t){return{kind:e,value:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLLanguageService=void 0;var r=n(12),i=n(30),o=n(35),a=n(31),l=n(27),u=n(59);var s=r.Kind.FRAGMENT_DEFINITION,c=r.Kind.OBJECT_TYPE_DEFINITION,f=r.Kind.INTERFACE_TYPE_DEFINITION,p=r.Kind.ENUM_TYPE_DEFINITION,d=r.Kind.UNION_TYPE_DEFINITION,h=r.Kind.SCALAR_TYPE_DEFINITION,m=r.Kind.INPUT_OBJECT_TYPE_DEFINITION,v=r.Kind.SCALAR_TYPE_EXTENSION,g=r.Kind.OBJECT_TYPE_EXTENSION,y=r.Kind.INTERFACE_TYPE_EXTENSION,b=r.Kind.UNION_TYPE_EXTENSION,w=r.Kind.ENUM_TYPE_EXTENSION,k=r.Kind.INPUT_OBJECT_TYPE_EXTENSION,x=r.Kind.DIRECTIVE_DEFINITION,T=r.Kind.FRAGMENT_SPREAD,E=r.Kind.OPERATION_DEFINITION,_=r.Kind.NAMED_TYPE;t.GraphQLLanguageService=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graphQLCache=t,this._graphQLConfig=t.getGraphQLConfig()}return e.prototype.getDiagnostics=function(e,t,i){var o,l,u,s,T,E,_,S,O,C,N,A,D,I;return regeneratorRuntime.async(function(L){for(;;)switch(L.prev=L.next){case 0:o=!1,l=this._graphQLConfig.getConfigForFile(t),u=l.schemaPath,L.prev=3,s=(0,r.parse)(e),u&&t===u||(o=s.definitions.some(function(e){switch(e.kind){case c:case f:case p:case d:case h:case m:case v:case g:case y:case b:case w:case k:case x:return!0}return!1})),L.next=12;break;case 8:return L.prev=8,L.t0=L.catch(3),T=(0,a.getRange)(L.t0.locations[0],e),L.abrupt("return",[{severity:a.SEVERITY.ERROR,message:L.t0.message,source:"GraphQL: Syntax",range:T}]);case 12:return E=e,L.next=15,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDefinitions(l));case 15:return _=L.sent,L.next=18,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDependencies(e,_));case 18:S=L.sent,O=S.reduce(function(e,t){return e+" "+(0,r.print)(t.definition)},""),E=E+" "+O,C=null,L.prev=22,C=(0,r.parse)(E),L.next=29;break;case 26:return L.prev=26,L.t1=L.catch(22),L.abrupt("return",[]);case 29:return N=void 0,(A=l.extensions.customValidationRules)&&(D=n(113).resolve(""+A))&&(N=n(113)(""+D)(this._graphQLConfig)),L.next=34,regeneratorRuntime.awrap(this._graphQLCache.getSchema(l.projectName,o).catch(function(){return null}));case 34:if(I=L.sent){L.next=37;break}return L.abrupt("return",[]);case 37:return L.abrupt("return",(0,a.validateQuery)(C,I,N,i));case 38:case"end":return L.stop()}},null,this,[[3,8],[22,26]])},e.prototype.getAutocompleteSuggestions=function(e,t,n){var r,o;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return r=this._graphQLConfig.getConfigForFile(n),a.next=3,regeneratorRuntime.awrap(this._graphQLCache.getSchema(r.projectName).catch(function(){return null}));case 3:if(!(o=a.sent)){a.next=6;break}return a.abrupt("return",(0,i.getAutocompleteSuggestions)(o,e,t));case 6:return a.abrupt("return",[]);case 7:case"end":return a.stop()}},null,this)},e.prototype.getHoverInformation=function(e,t,n){var r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return r=this._graphQLConfig.getConfigForFile(n),a.next=3,regeneratorRuntime.awrap(this._graphQLCache.getSchema(r.projectName).catch(function(){return null}));case 3:if(!(i=a.sent)){a.next=6;break}return a.abrupt("return",(0,o.getHoverInformation)(i,e,t));case 6:return a.abrupt("return","");case 7:case"end":return a.stop()}},null,this)},e.prototype.getDefinition=function(e,t,n){var i,o,a;return regeneratorRuntime.async(function(c){for(;;)switch(c.prev=c.next){case 0:i=this._graphQLConfig.getConfigForFile(n),o=void 0,c.prev=2,o=(0,r.parse)(e),c.next=9;break;case 6:return c.prev=6,c.t0=c.catch(2),c.abrupt("return",null);case 9:if(!(a=(0,u.getASTNodeAtPosition)(e,o,t))){c.next=17;break}c.t1=a.kind,c.next=c.t1===T?14:c.t1===s?15:c.t1===E?15:c.t1===_?16:17;break;case 14:return c.abrupt("return",this._getDefinitionForFragmentSpread(e,o,a,n,i));case 15:return c.abrupt("return",(0,l.getDefinitionQueryResultForDefinitionNode)(n,e,a));case 16:return c.abrupt("return",this._getDefinitionForNamedType(e,o,a,n,i));case 17:return c.abrupt("return",null);case 18:case"end":return c.stop()}},null,this,[[2,6]])},e.prototype._getDefinitionForNamedType=function(e,t,n,r,i){var o,a,u,s,f;return regeneratorRuntime.async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,regeneratorRuntime.awrap(this._graphQLCache.getObjectTypeDefinitions(i));case 2:return o=d.sent,d.next=5,regeneratorRuntime.awrap(this._graphQLCache.getObjectTypeDependenciesForAST(t,o));case 5:return a=d.sent,u=t.definitions.filter(function(e){return e.kind===c||e.kind===m||e.kind===p}),s=u.map(function(t){return{filePath:r,content:e,definition:t}}),d.next=11,regeneratorRuntime.awrap((0,l.getDefinitionQueryResultForNamedType)(e,n,a.concat(s)));case 11:return f=d.sent,d.abrupt("return",f);case 13:case"end":return d.stop()}},null,this)},e.prototype._getDefinitionForFragmentSpread=function(e,t,n,r,i){var o,a,u,c,f;return regeneratorRuntime.async(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDefinitions(i));case 2:return o=p.sent,p.next=5,regeneratorRuntime.awrap(this._graphQLCache.getFragmentDependenciesForAST(t,o));case 5:return a=p.sent,u=t.definitions.filter(function(e){return e.kind===s}),c=u.map(function(t){return{filePath:r,content:e,definition:t}}),p.next=11,regeneratorRuntime.awrap((0,l.getDefinitionQueryResultForFragmentSpread)(e,n,a.concat(c)));case 11:return f=p.sent,p.abrupt("return",f);case 13:case"end":return p.stop()}},null,this)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=l(n(14)),o=l(n(18)),a=n(12);function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.type!==e.type}},{key:"render",value:function(){return function e(t,n){if(t instanceof a.GraphQLNonNull)return i.default.createElement("span",null,e(t.ofType,n),"!");if(t instanceof a.GraphQLList)return i.default.createElement("span",null,"[",e(t.ofType,n),"]");return i.default.createElement("a",{className:"type-name",onClick:function(e){return n(t,e)}},t.name)}(this.props.type,this.props.onClick)}}]),t}();u.propTypes={type:o.default.object,onClick:o.default.func},t.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"unknownFragmentMessage",function(){return i}),n.d(t,"KnownFragmentNames",function(){return o});var r=n(2);function i(e){return'Unknown fragment "'.concat(e,'".')}function o(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new r.a(i(n),[t.name]))}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"unusedFragMessage",function(){return i}),n.d(t,"NoUnusedFragments",function(){return o});var r=n(2);function i(e){return'Fragment "'.concat(e,'" is never used.')}function o(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var o=Object.create(null),a=0;a<t.length;a++){var l=t[a],u=!0,s=!1,c=void 0;try{for(var f,p=e.getRecursivelyReferencedFragments(l)[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){o[f.value.name.value]=!0}}catch(e){s=!0,c=e}finally{try{u||null==p.return||p.return()}finally{if(s)throw c}}}for(var d=0;d<n.length;d++){var h=n[d],m=h.name.value;!0!==o[m]&&e.reportError(new r.a(i(m),[h]))}}}}}},function(e,t,n){"use strict";var r="function"==typeof Symbol?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=r},function(e,t,n){var r=n(28),i=n(53),o=n(29),a=n(41),l=n(84),u=function(e,t,n){var s,c,f,p,d=e&u.F,h=e&u.G,m=e&u.S,v=e&u.P,g=e&u.B,y=h?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?i:i[t]||(i[t]={}),w=b.prototype||(b.prototype={});for(s in h&&(n=t),n)f=((c=!d&&y&&void 0!==y[s])?y:n)[s],p=g&&c?l(f,r):v&&"function"==typeof f?l(Function.call,f):f,y&&a(y,s,f,e&u.U),b[s]!=f&&o(b,s,p),v&&w[s]!=f&&(w[s]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(62),i=n(124),o=n(125),a=Object.defineProperty;t.f=n(39)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(128),i=n(89);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(66);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(229);Object.defineProperty(t,"getASTNodeAtPosition",{enumerable:!0,get:function(){return r.getASTNodeAtPosition}}),Object.defineProperty(t,"pointToOffset",{enumerable:!0,get:function(){return r.pointToOffset}});var i=n(111);Object.defineProperty(t,"Position",{enumerable:!0,get:function(){return i.Position}}),Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return i.Range}}),Object.defineProperty(t,"locToRange",{enumerable:!0,get:function(){return i.locToRange}}),Object.defineProperty(t,"offsetToPosition",{enumerable:!0,get:function(){return i.offsetToPosition}});var o=n(230);Object.defineProperty(t,"validateWithCustomRules",{enumerable:!0,get:function(){return o.validateWithCustomRules}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(21),i=n(16),o=n(1);function a(e,t){switch(e.kind){case o.Kind.NULL:return null;case o.Kind.INT:return parseInt(e.value,10);case o.Kind.FLOAT:return parseFloat(e.value);case o.Kind.STRING:case o.Kind.ENUM:case o.Kind.BOOLEAN:return e.value;case o.Kind.LIST:return e.values.map(function(e){return a(e,t)});case o.Kind.OBJECT:return Object(r.a)(e.fields,function(e){return e.name.value},function(e){return a(e.value,t)});case o.Kind.VARIABLE:var n=e.name.value;return t&&!Object(i.a)(t[n])?t[n]:void 0}throw new Error("Unexpected value kind: "+e.kind)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(33);function i(e){var t=[];if(e.nodes){var n=!0,i=!1,a=void 0;try{for(var l,u=e.nodes[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){var s=l.value;s.loc&&t.push(o(s.loc.source,Object(r.a)(s.loc.source,s.loc.start)))}}catch(e){i=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(i)throw a}}}else if(e.source&&e.locations){var c=e.source,f=!0,p=!1,d=void 0;try{for(var h,m=e.locations[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var v=h.value;t.push(o(c,v))}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}}return 0===t.length?e.message:[e.message].concat(t).join("\n\n")+"\n"}function o(e,t){var n=e.locationOffset.column-1,r=a(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,l=t.line+o,u=1===t.line?n:0,s=t.column+u,c=r.split(/\r\n|[\n\r]/g);return"".concat(e.name," (").concat(l,":").concat(s,")\n")+function(e){var t=e.filter(function(e){e[0];var t=e[1];return void 0!==t}),n=0,r=!0,i=!1,o=void 0;try{for(var l,u=t[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var s=l.value,c=s[0];n=Math.max(n,c.length)}}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return t.map(function(e){var t,r=e[0],i=e[1];return a(n-(t=r).length)+t+i}).join("\n")}([["".concat(l-1,": "),c[i-1]],["".concat(l,": "),c[i]],["",a(s-1)+"^"],["".concat(l+1,": "),c[i+1]]])}function a(e){return Array(e+1).join(" ")}},function(e,t,n){var r=n(38);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(65),i=n(66);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(57);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(87)("keys"),i=n(63);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(155)},function(e,t,n){"use strict";e.exports=n(168)},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},r.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var l=e.getLineHandle(t.line),u=t.ch-1,s=o&&o.afterCursor;null==s&&(s=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),f=!s&&u>=0&&c.test(l.text.charAt(u))&&r[l.text.charAt(u)]||c.test(l.text.charAt(u+1))&&r[l.text.charAt(++u)];if(!f)return null;var p=">"==f.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(u==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,u+1)),h=a(e,n(t.line,u+(p>0?1:0)),p,d||null,o);return null==h?null:{from:n(t.line,u),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:p>0}}function a(e,t,o,a,l){for(var u=l&&l.maxScanLineLength||1e4,s=l&&l.maxScanLines||1e3,c=[],f=i(l),p=o>0?Math.min(t.line+s,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-s),d=t.line;d!=p;d+=o){var h=e.getLine(d);if(h){var m=o>0?0:h.length-1,v=o>0?h.length:-1;if(!(h.length>u))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=v;m+=o){var g=h.charAt(m);if(f.test(g)&&(void 0===a||e.getTokenTypeAt(n(d,m+1))==a)){var y=r[g];if(y&&">"==y.charAt(1)==o>0)c.push(g);else{if(!c.length)return{pos:n(d,m),ch:g};c.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function l(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,l=[],u=e.listSelections(),s=0;s<u.length;s++){var c=u[s].empty()&&o(e,u[s].head,i);if(c&&e.getLine(c.from.line).length<=a){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(c.from,n(c.from.line,c.from.ch+1),{className:f})),c.to&&e.getLine(c.to.line).length<=a&&l.push(e.markText(c.to,n(c.to.line,c.to.ch+1),{className:f}))}}if(l.length){t&&e.state.focused&&e.focus();var p=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})};if(!r)return p;setTimeout(p,800)}}function u(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=l(e,!1,e.state.matchBrackets)})}e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",u),t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",u))}),e.defineExtension("matchBrackets",function(){l(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,r){return a(this,e,t,n,r)})}(n(10))},function(e,t,n){!function(e){"use strict";e.defineOption("foldGutter",!1,function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",l),t.off("change",u),t.off("viewportChange",s),t.off("fold",c),t.off("unfold",c),t.off("swapDoc",u)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),a(t),t.on("gutterClick",l),t.on("change",u),t.on("viewportChange",s),t.on("fold",c),t.on("unfold",c),t.on("swapDoc",u))});var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold&&r[i].find().from.line==n)return r[i]}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var a=e.state.foldGutter.options,l=n,u=e.foldOption(a,"minFoldSize"),s=e.foldOption(a,"rangeFinder");e.eachLine(n,o,function(n){var o=null;if(r(e,l))o=i(a.indicatorFolded);else{var c=t(l,0),f=s&&s(e,c);f&&f.to.line-f.from.line>=u&&(o=i(a.indicatorOpen))}e.setGutterMarker(n,a.gutter,o),++l})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var l=r(e,n);l?l.clear():e.foldCode(t(n,0),a.rangeFinder)}}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}}function s(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function c(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}}(n(10),n(225))},function(e,t,n){!function(e){"use strict";e.registerHelper("fold","brace",function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var l=n.ch,u=0;;){var s=l<=0?-1:o.lastIndexOf(a,l-1);if(-1!=s){if(1==u&&s<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,s+1)),!/^(comment|string)/.test(r))return s+1;l=s-1}else{if(1==u)break;u=1,l=o.length}}}var l="{",u="}",s=a("{");if(null==s&&(l="[",u="]",s=a("[")),null!=s){var c,f,p=1,d=t.lastLine();e:for(var h=i;h<=d;++h)for(var m=t.getLine(h),v=h==i?s:0;;){var g=m.indexOf(l,v),y=m.indexOf(u,v);if(g<0&&(g=m.length),y<0&&(y=m.length),(v=Math.min(g,y))==m.length)break;if(t.getTokenTypeAt(e.Pos(h,v+1))==r)if(v==g)++p;else if(!--p){c=h,f=v;break e}++v}if(null!=c&&i!=c)return{from:e.Pos(i,s),to:e.Pos(c,f)}}}),e.registerHelper("fold","import",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i),l=a.indexOf(";");if(-1!=l)return{startCh:r.end,end:e.Pos(i,l)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var l=a.end;;){var u=r(l.line+1);if(null==u)break;l=u.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:l}}),e.registerHelper("fold","include",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){var l=r(a+1);if(null==l)break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})}(n(10))},function(e,t,n){!function(e){"use strict";function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"}(n(10),n(44))},function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy(function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,l="start",u=r.ch,s=i<0?0:o.length,c=0;u!=s;u+=i,c++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==l)"o"!=p&&(l="in",a=p);else if("in"==l&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){a="w";continue}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()})}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var l=t.listSelections()[a].head;if(!(l.line<=o)){var u=n(l.line+(r?0:1),0);t.replaceRange("\n",u,null,"+insertLine"),t.indentLine(u.line,null,!0),i.push({head:u,anchor:u}),o=l.line+1}}t.setSelections(i)}),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),l=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,l.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var u={anchor:a,head:l};r.push(o),r.push(u)}e.setSelections(r)}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),l=o.line;l<=a.line;++l)a.line>o.line&&l==a.line&&0==a.ch||r.push({anchor:l==o.line?o:n(l,0),head:l==a.line?a:n(l)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var l=o(t,r);if(!l.word)return;t.setSelection(l.from,l.to),a=!0}else{var u=t.getRange(r,i),s=a?new RegExp("\\b"+u+"\\b"):u,c=t.getSearchCursor(s,i),f=c.findNext();if(f||(c=t.getSearchCursor(s,n(t.firstLine(),0)),f=c.findNext()),!f||function(e,t,n){for(var r=0;r<e.length;r++)if(e[r].from()==t&&e[r].to()==n)return!0;return!1}(t.listSelections(),c.from(),c.to()))return e.Pass;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var l="(){}[]";function u(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],u=a.head,s=t.scanForBracket(u,-1);if(!s)return!1;for(;;){var c=t.scanForBracket(u,1);if(!c)return!1;if(c.ch==l.charAt(l.indexOf(s.ch)+1)){var f=n(s.pos.line,s.pos.ch+1);if(0!=e.cmpPos(f,a.from())||0!=e.cmpPos(c.pos,a.to())){i.push({anchor:f,head:c.pos});break}if(!(s=t.scanForBracket(s.pos,-1)))return!1}u=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(i),!0}function s(t,r){if(t.isReadOnly())return e.Pass;for(var i,o=t.listSelections(),a=[],l=0;l<o.length;l++){var u=o[l];if(!u.empty()){for(var s=u.from().line,c=u.to().line;l<o.length-1&&o[l+1].from().line==c;)c=o[++l].to().line;o[l].to().ch||c--,a.push(s,c)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation(function(){for(var e=[],o=0;o<a.length;o+=2){var l=a[o],u=a[o+1],s=n(l,0),c=n(u),f=t.getRange(s,c,!1);r?f.sort():f.sort(function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-1:e==t?0:1}),t.replaceRange(f,s,c),i&&e.push({anchor:s,head:n(u+1,0)})}i&&t.setSelections(e,0)})}function c(t,n){t.operation(function(){for(var r=t.listSelections(),i=[],a=[],l=0;l<r.length;l++){var u=r[l];u.empty()?(i.push(l),a.push("")):a.push(n(t.getRange(u.from(),u.to())))}t.replaceSelections(a,"around","case");for(var s,l=i.length-1;l>=0;l--){var u=r[i[l]];if(!(s&&e.cmpPos(u.head,s)>0)){var c=o(t,u.head);s=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){u(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!u(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1);if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1);return o&&n(o.pos.line,o.pos.ch+1)||r.head})},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],l=0;l<r.length;l++){var u=r[l],s=u.from().line-1,c=u.to().line;a.push({anchor:n(u.anchor.line-1,u.anchor.ch),head:n(u.head.line-1,u.head.ch)}),0!=u.to().ch||u.empty()||--c,s>o?i.push(s,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],l=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+l,n(t.lastLine()),null,"+swapLine"):t.replaceRange(l+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var l=r[a],u=l.to().line+1,s=l.from().line;0!=l.to().ch||l.empty()||u--,u<o?i.push(u,s):i.length&&(i[i.length-1]=s),o=s}t.operation(function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),l=a.line,u=o.to().line;i<t.length-1&&t[i+1].from().line==u;)u=t[++i].to().line;r.push({start:l,end:u,anchor:!o.empty()&&a})}e.operation(function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,l=r[o],u=l.anchor&&n(l.anchor.line-t,l.anchor.ch),s=l.start;s<=l.end;s++){var c=s-t;s==l.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:u||a,head:a})}e.setSelections(i,0)})},t.duplicateLine=function(e){e.operation(function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()})},t.sortLines=function(e){s(e,!0)},t.sortLinesInsensitive=function(e){s(e,!1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),l=0;l<a.length;l++)if(a[l].sublimeBookmark){a[l].clear();for(var u=0;u<n.length;u++)n[u]==a[l]&&n.splice(u--,1);break}l==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation(function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,l=t.getRange({line:a.line,ch:0},a),u=e.countColumn(l,null,t.getOption("tabSize")),s=t.findPosH(a,-1,"char",!1);if(l&&!/\S/.test(l)&&u%i==0){var c=new n(a.line,e.findColumn(l,u-i,i));c.ch!=a.ch&&(s=c)}t.replaceRange("",s,a,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){c(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){c(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var d=e.keyMap;d.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(d.macSublime),d.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(d.pcSublime);var h=d.default==d.macDefault;d.sublime=h?d.macSublime:d.pcSublime}(n(10),n(43),n(74))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=l(n(14)),i=l(n(18)),o=l(n(48)),a=l(n(118));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.arg,n=e.onClickType,i=e.showDefaultValue;return r.default.createElement("span",{className:"arg"},r.default.createElement("span",{className:"arg-name"},t.name),": ",r.default.createElement(o.default,{type:t.type,onClick:n}),!1!==i&&r.default.createElement(a.default,{field:t}))}u.propTypes={arg:i.default.object.isRequired,onClickType:i.default.func.isRequired,showDefaultValue:i.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=a(n(14)),o=a(n(18));function a(e){return e&&e.__esModule?e:{default:e}}var l=new(a(n(70)).default),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.markdown!==e.markdown}},{key:"render",value:function(){var e=this.props.markdown;return e?i.default.createElement("div",{className:this.props.className,dangerouslySetInnerHTML:{__html:l.render(e)}}):i.default.createElement("div",null)}}]),t}();u.propTypes={markdown:o.default.string,className:o.default.string},t.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"nonExecutableDefinitionMessage",function(){return a}),n.d(t,"ExecutableDefinitions",function(){return l});var r=n(2),i=n(1),o=n(15);function a(e){return"The ".concat(e," definition is not executable.")}function l(e){return{Document:function(t){var n=!0,l=!1,u=void 0;try{for(var s,c=t.definitions[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var f=s.value;Object(o.b)(f)||e.reportError(new r.a(a(f.kind===i.Kind.SCHEMA_DEFINITION||f.kind===i.Kind.SCHEMA_EXTENSION?"schema":f.name.value),[f]))}}catch(e){l=!0,u=e}finally{try{n||null==c.return||c.return()}finally{if(l)throw u}}return!1}}}},function(e,t,n){var r=n(38),i=n(28).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(126);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(86),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(53),i=n(28),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(88)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(25)("unscopables"),i=Array.prototype;null==i[r]&&n(29)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){"use strict";var r=n(90),i=n(140),o=n(68),a=n(64);e.exports=n(141)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(54).f,i=n(55),o=n(25)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(29),i=n(41),o=n(40),a=n(66),l=n(25);e.exports=function(e,t,n){var u=l(e),s=n(a,u,""[e]),c=s[0],f=s[1];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,c),r(RegExp.prototype,u,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in n=Object(arguments[u]))i.call(n,s)&&(l[s]=n[s]);if(r){a=r(n);for(var c=0;c<a.length;c++)o.call(n,a[c])&&(l[a[c]]=n[a[c]])}}return l}},function(e,t,n){"use strict";e.exports=n(169)},function(e,t,n){"use strict";e.exports.encode=n(170),e.exports.decode=n(171),e.exports.format=n(172),e.exports.parse=n(173)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+r+"|"+i+")");e.exports.HTML_TAG_RE=o,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,i,o,a=e.pos,l=e.src.charCodeAt(a);if(t)return!1;if(126!==l)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(l),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:l,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,i,o,a=[],l=e.delimiters,u=e.delimiters.length;for(t=0;t<u;t++)126===(r=l[t]).marker&&-1!==r.end&&(i=l[r.end],(o=e.tokens[r.token]).type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",(o=e.tokens[i.token]).type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&a.push(i.token-1));for(;a.length;){for(n=(t=a.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;t!==--n&&(o=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=o)}}},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,i,o,a,l=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=l[t]).marker&&42!==n.marker||-1!==n.end&&(r=l[n.end],a=t>0&&l[t-1].end===n.end+1&&l[t-1].token===n.token-1&&l[n.end+1].token===r.token+1&&l[t-1].marker===n.marker,o=String.fromCharCode(n.marker),(i=e.tokens[n.token]).type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",(i=e.tokens[r.token]).type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(e.tokens[l[t-1].token].content="",e.tokens[l[n.end+1].token].content="",t--))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var o=n(10),l=void 0,u=void 0;o.on(t,"select",function(e,t){if(!l){var n=t.parentNode;(l=document.createElement("div")).className="CodeMirror-hint-information",n.appendChild(l),(u=document.createElement("div")).className="CodeMirror-hint-deprecation",n.appendChild(u);var o=void 0;n.addEventListener("DOMNodeRemoved",o=function(e){e.target===n&&(n.removeEventListener("DOMNodeRemoved",o),l=null,u=null,o=null)})}var s=e.description?a.render(e.description):"Self descriptive.",c=e.type?'<span class="infoType">'+function e(t){if(t instanceof i.GraphQLNonNull)return e(t.ofType)+"!";if(t instanceof i.GraphQLList)return"["+e(t.ofType)+"]";return'<a class="typeName">'+t.name+"</a>"}(e.type)+"</span>":"";if(l.innerHTML='<div class="content">'+("<p>"===s.slice(0,3)?"<p>"+c+s.slice(3):c+s)+"</div>",e.isDeprecated){var f=e.deprecationReason?a.render(e.deprecationReason):"";u.innerHTML='<span class="deprecation-label">Deprecated</span>'+f,u.style.display="block"}else u.style.display="none";r&&r(l)})};var r,i=n(12),o=n(70);var a=new((r=o)&&r.__esModule?r:{default:r}).default},function(e,t,n){!function(e){"use strict";var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in c)i[o]=c[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<n.length;i++)if(n[i].head.line!=n[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new r(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var i=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function a(e){return"string"==typeof e?e:e.text}function l(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function u(r,i){this.completion=r,this.data=i,this.picked=!1;var o=this,u=r.cm,s=u.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,f=this.hints=s.createElement("ul"),p=r.cm.options.theme;f.className="CodeMirror-hints "+p,this.selectedHint=i.selectedHint||0;for(var d=i.list,h=0;h<d.length;++h){var m=f.appendChild(s.createElement("li")),v=d[h],g=t+(h!=this.selectedHint?"":" "+n);null!=v.className&&(g=v.className+" "+g),m.className=g,v.render?v.render(m,i,v):m.appendChild(s.createTextNode(v.displayText||a(v))),m.hintId=h}var y=r.options.container||s.body,b=u.cursorCoords(r.options.alignWithWord?i.from:null),w=b.left,k=b.bottom,x=!0,T=0,E=0;if(y!==s.body){var _=-1!==["absolute","relative","fixed"].indexOf(c.getComputedStyle(y).position),S=_?y:y.offsetParent,O=S.getBoundingClientRect(),C=s.body.getBoundingClientRect();T=O.left-C.left,E=O.top-C.top}f.style.left=w-T+"px",f.style.top=k-E+"px";var N=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),A=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);y.appendChild(f);var D=f.getBoundingClientRect(),I=D.bottom-A,L=f.scrollHeight>f.clientHeight+1,j=u.getScrollInfo();if(I>0){var M=D.bottom-D.top,F=b.top-(b.bottom-D.top);if(F-M>0)f.style.top=(k=b.top-M-E)+"px",x=!1;else if(M>A){f.style.height=A-5+"px",f.style.top=(k=b.bottom-D.top-E)+"px";var R=u.getCursor();i.from.ch!=R.ch&&(b=u.cursorCoords(R),f.style.left=(w=b.left-T)+"px",D=f.getBoundingClientRect())}}var P,V=D.right-N;if(V>0&&(D.right-D.left>N&&(f.style.width=N-5+"px",V-=D.right-D.left-N),f.style.left=(w=b.left-V-T)+"px"),L)for(var U=f.firstChild;U;U=U.nextSibling)U.style.paddingRight=u.display.nativeBarWidth+"px";return u.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var l=e.options.extraKeys;if(l)for(var a in l)l.hasOwnProperty(a)&&o(a,l[a]);return i}(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:d.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus&&(u.on("blur",this.onBlur=function(){P=setTimeout(function(){r.close()},100)}),u.on("focus",this.onFocus=function(){clearTimeout(P)})),u.on("scroll",this.onScroll=function(){var e=u.getScrollInfo(),t=u.getWrapperElement().getBoundingClientRect(),n=k+j.top-e.top,i=n-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(x||(i+=f.offsetHeight),i<=t.top||i>=t.bottom)return r.close();f.style.top=n+"px",f.style.left=w+j.left-e.left+"px"}),e.on(f,"dblclick",function(e){var t=l(f,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(f,"click",function(e){var t=l(f,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())}),e.on(f,"mousedown",function(){setTimeout(function(){u.focus()},20)}),e.signal(i,"select",d[this.selectedHint],f.childNodes[this.selectedHint]),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n];r.hint?r.hint(this.cm,t,r):this.cm.replaceRange(a(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=i(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,function(r){t.tick==n&&t.finishUpdate(r,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new u(this,t),e.signal(t,"shown")))}},u.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,r){if(t>=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,"")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,i.offsetTop<this.hints.scrollTop?this.hints.scrollTop=i.offsetTop-3:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);s(r[o],e,n,function(e){e&&e.list.length>0?t(e):i(o+1)})}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),l=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var u=[],s=0;s<n.words.length;s++){var c=n.words[s];c.slice(0,r.length)==r&&u.push(c)}if(u.length)return{list:u,from:a,to:l}}),e.commands.autocomplete=e.showHint;var c={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n(10))},function(e,t,n){!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))});var i={Backspace:function(t){var i=l(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var c=u(t,a[s].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(var s=a.length-1;s>=0;s--){var f=a[s].head;t.replaceRange("",n(f.line,f.ch-1),n(f.line,f.ch+1),"+delete")}},Enter:function(t){var n=l(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var s=u(t,o[a].head);if(!s||i.indexOf(s)%2!=0)return e.Pass}t.operation(function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),t.execCommand("goCharLeft"),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}})}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(t){return function(i){return function(t,i){var o=l(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),u=a.indexOf(i);if(-1==u)return e.Pass;for(var c,f=r(o,"closeBefore"),p=r(o,"triples"),d=a.charAt(u+1)==i,h=t.listSelections(),m=u%2==0,v=0;v<h.length;v++){var g,y=h[v],b=y.head,w=t.getRange(b,n(b.line,b.ch+1));if(m&&!y.empty())g="surround";else if(!d&&m||w!=i)if(d&&b.ch>1&&p.indexOf(i)>=0&&t.getRange(n(b.line,b.ch-2),b)==i+i){if(b.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(b.line,b.ch-2))))return e.Pass;g="addFour"}else if(d){var k=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(w)||k==i||e.isWordChar(k))return e.Pass;g="both"}else{if(!m||!(0===w.length||/\s/.test(w)||f.indexOf(w)>-1))return e.Pass;g="both"}else g=d&&s(t,b)?"both":p.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=g)return e.Pass}else c=g}var x=u%2?a.charAt(u-1):i,T=u%2?i:a.charAt(u+1);t.operation(function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==c){for(var i=t.getSelections(),r=0;r<i.length;r++)i[r]=x+i[r]+T;t.replaceSelections(i,"around"),i=t.listSelections().slice();for(var r=0;r<i.length;r++)i[r]=(o=i[r],a=void 0,a=e.cmpPos(o.anchor,o.head)>0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});t.setSelections(i)}else"both"==c?(t.replaceSelection(x+T,null),t.triggerElectric(x+T),t.execCommand("goCharLeft")):"addFour"==c&&(t.replaceSelection(x+x+x+x,"before"),t.execCommand("goCharRight"));var o,a})}(i,t)}}function l(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var n=e.getModeAt(e.getCursor());return n.closeBrackets||t}function u(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function s(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(10))},function(e,t,n){!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(e){return e.replace(/\\(.)/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":t})}function l(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function u(e,t,n){t.queryText=n,t.query=l(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function s(t,r,i,a){var l=n(t);if(l.query)return c(t,r);var s=t.getSelection()||l.lastQuery;if(s instanceof RegExp&&"x^"==s.source&&(s=null),i&&t.openDialog){var d=null,h=function(n,r){e.e_stop(r),n&&(n!=l.queryText&&(u(t,l,n),l.posFrom=l.posTo=t.getCursor()),d&&(d.style.opacity=1),c(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)}))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){f(e)},onKeyDown:i})}(t,p(t),s,h,function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),l=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==l||"findPrev"==l||"findPersistentNext"==l||"findPersistentPrev"==l?(e.e_stop(r),u(t,n(t),i),t.execCommand(l)):"find"!=l&&"findPersistent"!=l||(e.e_stop(r),h(i,r))}),a&&s&&(u(t,l,s),c(t,r))}else o(t,p(t),"Search for:",s,function(e){e&&!l.query&&t.operation(function(){u(t,l,e),l.posFrom=l.posTo=t.getCursor(),c(t,r)})})}function c(t,r,o){t.operation(function(){var a=n(t),l=i(t,a.query,r?a.posFrom:a.posTo);(l.find(r)||(l=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(l.from(),l.to()),t.scrollIntoView({from:l.from(),to:l.to()},20),a.posFrom=l.from(),a.posTo=l.to(),o&&o(l.from(),l.to()))})}function f(e){e.operation(function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function p(e){return'<span class="CodeMirror-search-label">'+e.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function d(e,t,n){e.operation(function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else r.replace(n)})}function h(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,u='<span class="CodeMirror-search-label">'+(t?e.phrase("Replace all:"):e.phrase("Replace:"))+"</span>";o(e,u+function(e){return' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}(e),u,r,function(n){n&&(n=l(n),o(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>'}(e),e.phrase("Replace with:"),"",function(r){if(r=a(r),t)d(e,n,r);else{f(e);var o=i(e,n,e.getCursor("from")),l=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("Replace?")+"</span> <button>"+e.phrase("Yes")+"</button> <button>"+e.phrase("No")+"</button> <button>"+e.phrase("All")+"</button> <button>"+e.phrase("Stop")+"</button> "}(e),e.phrase("Replace?"),[function(){u(t)},l,function(){d(e,n,r)}]))},u=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),l()};l()}}))})}}e.commands.find=function(e){f(e),s(e)},e.commands.findPersistent=function(e){f(e),s(e,!1,!0)},e.commands.findPersistentNext=function(e){s(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){s(e,!0,!0,!0)},e.commands.findNext=s,e.commands.findPrev=function(e){s(e,!0)},e.commands.clearSearch=f,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}(n(10),n(43),n(44))},function(e,t,n){!function(e){"use strict";var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i){var o=function(t,n){var r=document.createElement("div");function i(t){if(!r.parentNode)return e.off(document,"mousemove",i);r.style.top=Math.max(0,t.clientY-r.offsetHeight-5)+"px",r.style.left=t.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),e.on(document,"mousemove",i),i(t),null!=r.style.opacity&&(r.style.opacity=1),r}(t,r);function a(){var t;e.off(i,"mouseout",a),o&&((t=o).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout(function(){n(t)},600)),o=null)}var l=setInterval(function(){if(o)for(var e=i;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!o)return clearInterval(l)},400);e.on(i,"mouseout",a)}function i(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,u=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),s=[],c=0;c<u.length;++c){var f=u[c].__annotation;f&&s.push(f)}s.length&&function(e,t){for(var n=t.target||t.srcElement,i=document.createDocumentFragment(),o=0;o<e.length;o++){var a=e[o];i.appendChild(l(a))}r(t,i,n)}(s,t)}}(e,t)},this.waitingFor=0}function o(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function a(t,n,i,o){var a=document.createElement("div"),l=a;return a.className="CodeMirror-lint-marker-"+n,i&&((l=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=o&&e.on(l,"mouseover",function(e){r(e,t,l)}),a}function l(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function u(t){var n=t.state.lint,r=n.options,i=r.options||r,o=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(o)if(r.async||o.async)!function(t,n,r){var i=t.state.lint,o=++i.waitingFor;function a(){o=-1,t.off("change",a)}t.on("change",a),n(t.getValue(),function(n,r){t.off("change",a),i.waitingFor==o&&(r&&n instanceof e&&(n=r),t.operation(function(){s(t,n)}))},r,t)}(t,o,i);else{var a=o(t.getValue(),i,t);if(!a)return;a.then?a.then(function(e){t.operation(function(){s(t,e)})}):t.operation(function(){s(t,a)})}}function s(e,n){o(e);for(var r=e.state.lint,i=r.options,u=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),s=0;s<u.length;++s){var c=u[s];if(c){for(var f=null,p=r.hasGutter&&document.createDocumentFragment(),d=0;d<c.length;++d){var h=c[d],m=h.severity;m||(m="error"),g=m,f="error"==(v=f)?v:g,i.formatAnnotation&&(h=i.formatAnnotation(h)),r.hasGutter&&p.appendChild(l(h)),h.to&&r.marked.push(e.markText(h.from,h.to,{className:"CodeMirror-lint-mark-"+m,__annotation:h}))}r.hasGutter&&e.setGutterMarker(s,t,a(p,f,c.length>1,r.options.tooltips))}}var v,g;i.onUpdateLinting&&i.onUpdateLinting(n,u,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){u(e)},t.options.delay||500))}e.defineOption("lint",!1,function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var l=n.getOption("gutters"),s=!1,f=0;f<l.length;++f)l[f]==t&&(s=!0);var p=n.state.lint=new i(n,(d=r)instanceof Function?{getAnnotations:d}:(d&&!0!==d||(d={}),d),s);!1!==p.options.lintOnChange&&n.on("change",c),0!=p.options.tooltips&&"gutter"!=p.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",p.onMouseOver),u(n)}var d}),e.defineExtension("performLint",function(){this.state.lint&&u(this)})}(n(10))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseRules=t.LexRules=t.isIgnored=void 0;var r,i=n(109);t.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},t.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},t.ParseRules={Document:[(0,i.list)("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[o("query"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],Mutation:[o("mutation"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],Subscription:[o("subscription"),(0,i.opt)(a("def")),(0,i.opt)("VariableDefinitions"),(0,i.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,i.p)("("),(0,i.list)("VariableDefinition"),(0,i.p)(")")],VariableDefinition:["Variable",(0,i.p)(":"),"Type",(0,i.opt)("DefaultValue")],Variable:[(0,i.p)("$","variable"),a("variable")],DefaultValue:[(0,i.p)("="),"Value"],SelectionSet:[(0,i.p)("{"),(0,i.list)("Selection"),(0,i.p)("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[a("property"),(0,i.p)(":"),a("qualifier"),(0,i.opt)("Arguments"),(0,i.list)("Directive"),(0,i.opt)("SelectionSet")],Field:[a("property"),(0,i.opt)("Arguments"),(0,i.list)("Directive"),(0,i.opt)("SelectionSet")],Arguments:[(0,i.p)("("),(0,i.list)("Argument"),(0,i.p)(")")],Argument:[a("attribute"),(0,i.p)(":"),"Value"],FragmentSpread:[(0,i.p)("..."),a("def"),(0,i.list)("Directive")],InlineFragment:[(0,i.p)("..."),(0,i.opt)("TypeCondition"),(0,i.list)("Directive"),"SelectionSet"],FragmentDefinition:[o("fragment"),(0,i.opt)((0,i.butNot)(a("def"),[o("on")])),"TypeCondition",(0,i.list)("Directive"),"SelectionSet"],TypeCondition:[o("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,i.t)("Number","number")],StringValue:[(0,i.t)("String","string")],BooleanValue:[(0,i.t)("Name","builtin")],NullValue:[(0,i.t)("Name","keyword")],EnumValue:[a("string-2")],ListValue:[(0,i.p)("["),(0,i.list)("Value"),(0,i.p)("]")],ObjectValue:[(0,i.p)("{"),(0,i.list)("ObjectField"),(0,i.p)("}")],ObjectField:[a("attribute"),(0,i.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[(0,i.p)("["),"Type",(0,i.p)("]"),(0,i.opt)((0,i.p)("!"))],NonNullType:["NamedType",(0,i.opt)((0,i.p)("!"))],NamedType:[(r="atom",{style:r,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[(0,i.p)("@","meta"),a("meta"),(0,i.opt)("Arguments")],SchemaDef:[o("schema"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("OperationTypeDef"),(0,i.p)("}")],OperationTypeDef:[a("keyword"),(0,i.p)(":"),a("atom")],ScalarDef:[o("scalar"),a("atom"),(0,i.list)("Directive")],ObjectTypeDef:[o("type"),a("atom"),(0,i.opt)("Implements"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("FieldDef"),(0,i.p)("}")],Implements:[o("implements"),(0,i.list)("NamedType")],FieldDef:[a("property"),(0,i.opt)("ArgumentsDef"),(0,i.p)(":"),"Type",(0,i.list)("Directive")],ArgumentsDef:[(0,i.p)("("),(0,i.list)("InputValueDef"),(0,i.p)(")")],InputValueDef:[a("attribute"),(0,i.p)(":"),"Type",(0,i.opt)("DefaultValue"),(0,i.list)("Directive")],InterfaceDef:[o("interface"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("FieldDef"),(0,i.p)("}")],UnionDef:[o("union"),a("atom"),(0,i.list)("Directive"),(0,i.p)("="),(0,i.list)("UnionMember",(0,i.p)("|"))],UnionMember:["NamedType"],EnumDef:[o("enum"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("EnumValueDef"),(0,i.p)("}")],EnumValueDef:[a("string-2"),(0,i.list)("Directive")],InputDef:[o("input"),a("atom"),(0,i.list)("Directive"),(0,i.p)("{"),(0,i.list)("InputValueDef"),(0,i.p)("}")],ExtendDef:[o("extend"),"ObjectTypeDef"],DirectiveDef:[o("directive"),(0,i.p)("@","meta"),a("meta"),(0,i.opt)("ArgumentsDef"),o("on"),(0,i.list)("DirectiveLocation",(0,i.p)("|"))],DirectiveLocation:[a("string-2")]};function o(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function a(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opt=function(e){return{ofRule:e}},t.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},t.butNot=function(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every(function(t){return t.match&&!t.match(e)})},e},t.t=function(e,t){return{style:t,match:function(t){return t.kind===e}}},t.p=function(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],c=!1,f=-1;function p(){c&&u&&(c=!1,u.length?s=u.concat(s):f=-1,s.length&&d())}function d(){if(!c){var e=l(p);c=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||c||l(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.offsetToPosition=a,t.locToRange=function(e,t){var n=a(e,t.start),r=a(e,t.end);return new i(n,r)};var i=t.Range=function(){function e(t,n){var i=this;r(this,e),this.containsPosition=function(e){return i.start.line===e.line?i.start.character<=e.character:i.end.line===e.line?i.end.character>=e.character:i.start.line<=e.line&&i.end.line>=e.line},this.start=t,this.end=n}return e.prototype.setStart=function(e,t){this.start=new o(e,t)},e.prototype.setEnd=function(e,t){this.end=new o(e,t)},e}(),o=t.Position=function(){function e(t,n){var i=this;r(this,e),this.lessThanOrEqualTo=function(e){return i.line<e.line||i.line===e.line&&i.character<=e.character},this.line=t,this.character=n}return e.prototype.setLine=function(e){this.line=e},e.prototype.setCharacter=function(e){this.character=e},e}();function a(e,t){var n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new o(r,t-i-1)}},function(e,t,n){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=n(231),a=Object.prototype.hasOwnProperty,l=Array.prototype.slice,u="foo"===function(){}.name;function s(e){return Object.prototype.toString.call(e)}function c(e){return!i(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var f=e.exports=g,p=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(o.isFunction(e)){if(u)return e.name;var t=e.toString().match(p);return t&&t[1]}}function h(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(u||!o.isFunction(e))return o.inspect(e);var t=d(e);return"[Function"+(t?": "+t:"")+"]"}function v(e,t,n,r,i){throw new f.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function g(e,t){e||v(e,!0,t,"==",f.ok)}function y(e,t,n,a){if(e===t)return!0;if(i(e)&&i(t))return 0===r(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(c(e)&&c(t)&&s(e)===s(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var u=(a=a||{actual:[],expected:[]}).actual.indexOf(e);return-1!==u&&u===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=b(e),a=b(t);if(i&&!a||!i&&a)return!1;if(i)return e=l.call(e),t=l.call(t),y(e,t,n);var u,s,c=x(e),f=x(t);if(c.length!==f.length)return!1;for(c.sort(),f.sort(),s=c.length-1;s>=0;s--)if(c[s]!==f[s])return!1;for(s=c.length-1;s>=0;s--)if(u=c[s],!y(e[u],t[u],n,r))return!1;return!0}(e,t,n,a))}return n?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&v(i,n,"Missing expected exception"+r);var a="string"==typeof r,l=!e&&i&&!n;if((!e&&o.isError(i)&&a&&w(i,n)||l)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!w(i,n)||!e&&i)throw i}f.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=h(m((t=this).actual),128)+" "+t.operator+" "+h(m(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=d(n),a=i.indexOf("\n"+o);if(a>=0){var l=i.indexOf("\n",a+1);i=i.substring(l+1)}this.stack=i}}},o.inherits(f.AssertionError,Error),f.fail=v,f.ok=g,f.equal=function(e,t,n){e!=t&&v(e,t,n,"==",f.equal)},f.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",f.notEqual)},f.deepEqual=function(e,t,n){y(e,t,!1)||v(e,t,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,n){y(e,t,!0)||v(e,t,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,n){y(e,t,!1)&&v(e,t,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,n,r){y(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",f.strictEqual)},f.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",f.notStrictEqual)},f.throws=function(e,t,n){k(!0,e,t,n)},f.doesNotThrow=function(e,t,n){k(!1,e,t,n)},f.ifError=function(e){if(e)throw e};var x=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}}).call(this,n(42))},function(e,t,n){var r={".":34,"./":34,"./GraphQLLanguageService":47,"./GraphQLLanguageService.js":47,"./GraphQLLanguageService.js.flow":234,"./autocompleteUtils":26,"./autocompleteUtils.js":26,"./autocompleteUtils.js.flow":235,"./getAutocompleteSuggestions":30,"./getAutocompleteSuggestions.js":30,"./getAutocompleteSuggestions.js.flow":236,"./getDefinition":27,"./getDefinition.js":27,"./getDefinition.js.flow":237,"./getDiagnostics":31,"./getDiagnostics.js":31,"./getDiagnostics.js.flow":238,"./getHoverInformation":35,"./getHoverInformation.js":35,"./getHoverInformation.js.flow":239,"./getOutline":46,"./getOutline.js":46,"./getOutline.js.flow":240,"./index":34,"./index.js":34,"./index.js.flow":241};function i(e){var t=o(e);return n(t)}function o(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=113},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,l.default)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?u(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,i.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":var r="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&u(e,n.parentType,t.prevState.name):null;n.argDefs=r&&r.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o<n.argDefs.length;o++)if(n.argDefs[o].name===t.name){n.argDef=n.argDefs[o];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":var a=(0,i.getNamedType)(n.inputType);n.enumValue=a instanceof i.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(a.getValues(),function(e){return e.value===t.name}):null;break;case"ListValue":var l=(0,i.getNullableType)(n.inputType);n.inputType=l instanceof i.GraphQLList?l.ofType:null;break;case"ObjectValue":var s=(0,i.getNamedType)(n.inputType);n.objectFieldDefs=s instanceof i.GraphQLInputObjectType?s.getFields():null;break;case"ObjectField":var c=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=c&&c.type;break;case"NamedType":n.type=e.getType(t.name)}}),n};var r,i=n(12),o=n(5),a=n(115),l=(r=a)&&r.__esModule?r:{default:r};function u(e,t,n){return n===o.SchemaMetaFieldDef.name&&e.getQueryType()===t?o.SchemaMetaFieldDef:n===o.TypeMetaFieldDef.name&&e.getQueryType()===t?o.TypeMetaFieldDef:n===o.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)?o.TypeNameMetaFieldDef:t.getFields?t.getFields()[n]:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=[],r=e;for(;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue,type:(0,r.getNamedType)(e.inputType)}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}};var r=n(12);function i(e){return"__"===e.name.slice(0,2)}},function(e,t,n){"use strict";var r,i=n(10),o=(r=i)&&r.__esModule?r:{default:r};o.default.defineOption("info",!1,function(e,t,n){if(n&&n!==o.default.Init){var r=e.state.info.onMouseOver;o.default.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var i=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);i.onMouseOver=function(e,t){var n=e.state.info,r=t.target||t.srcElement;if("SPAN"!==r.nodeName||void 0!==n.hoverTimeout)return;var i=r.getBoundingClientRect(),a=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(s,a);var l=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(s,a)},u=function t(){o.default.off(document,"mousemove",l),o.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},s=function(){o.default.off(document,"mousemove",l),o.default.off(e.getWrapperElement(),"mouseout",u),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,i=r.render||e.getHelper(n,"info");if(i){var a=e.getTokenAt(n,!0);if(a){var l=i(a,r,e,n);l&&function(e,t,n){var r=document.createElement("div");r.className="CodeMirror-info",r.appendChild(n),document.body.appendChild(r);var i=r.getBoundingClientRect(),a=r.currentStyle||window.getComputedStyle(r),l=i.right-i.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),u=i.bottom-i.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),s=t.bottom;u>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(s=t.top-u);s<0&&(s=t.bottom);var c=Math.max(0,window.innerWidth-l-15);c>t.left&&(c=t.left);r.style.opacity=1,r.style.top=s+"px",r.style.left=c+"px";var f=void 0,p=function(){clearTimeout(f)},d=function(){clearTimeout(f),f=setTimeout(h,200)},h=function(){o.default.off(r,"mouseover",p),o.default.off(r,"mouseout",d),o.default.off(e.getWrapperElement(),"mouseout",d),r.style.opacity?(r.style.opacity=0,setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r)},600)):r.parentNode&&r.parentNode.removeChild(r)};o.default.on(r,"mouseover",p),o.default.on(r,"mouseout",d),o.default.on(e.getWrapperElement(),"mouseout",d)}(e,t,l)}}}(e,i)};o.default.on(document,"mousemove",l),o.default.on(e.getWrapperElement(),"mouseout",u)}.bind(null,e),o.default.on(e.getWrapperElement(),"mouseover",i.onMouseOver)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=a(n(14)),i=a(n(18)),o=n(12);function a(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.field,n=t.type,i=t.defaultValue;return void 0!==i?r.default.createElement("span",null," = ",r.default.createElement("span",{className:"arg-default-value"},(0,o.print)((0,o.astFromValue)(i,n)))):null}l.propTypes={field:i.default.object.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=void 0;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){n=null,t.apply(r,i)},e)}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),l=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),u=null,s=0,c=[],f=n(278);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(y(r.parts[a],t))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(y(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:l}}}}function d(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],l={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function h(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=l(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,i)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function v(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var a=s++;n=u||(u=v(t)),r=k.bind(null,n,a,!1),i=k.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=f(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}.bind(null,n,t),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return p(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i];(l=o[a.id]).refs--,r.push(l)}e&&p(d(e,t),t);for(i=0;i<r.length;i++){var l;if(0===(l=r[i]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete o[l.id]}}}};var b,w=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function k(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t,n){"use strict";n(123),n(133),n(134),n(139),n(91),n(147),n(149),n(151),n(152);var r=u(n(14)),i=u(n(69)),o=u(n(158)),a=u(n(273)),l=n(12);function u(e){return e&&e.__esModule?e:{default:e}}n(275),n(276),n(279);var s={};function c(e){return"?"+Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}window.location.search.substr(1).split("&").forEach(function(e){var t=e.indexOf("=");t>=0&&(s[decodeURIComponent(e.slice(0,t))]=decodeURIComponent(e.slice(t+1)))});var f={query:!0,variables:!0,operationName:!0,explorerIsOpen:!0},p={};for(var d in s)s.hasOwnProperty(d)&&!0!==f[d]&&(p[d]=s[d]);var h=c(p);function m(e){return fetch(h,{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"}).then(function(e){return e.json()})}function v(e){s.variables=e,y()}function g(e){s.operationName=e,y()}function y(){history.replaceState(null,null,c(s))}var b=s.query||window.localStorage&&window.localStorage.getItem("graphiql:query")||null;function w(e){return'# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that starts\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n'+e+"\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n"}var k=void 0!==s.explorerIsOpen?"false"!==s.explorerIsOpen:!window.localStorage||"false"!==window.localStorage.getItem("graphiql:graphiqlExplorerOpen"),x=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={schema:null,query:b,explorerIsOpen:k},t._handleInspectOperation=function(e,n){var r=(0,l.parse)(t.state.query||"");if(!r)return console.error("Couldn't parse query document"),null;var i=e.getTokenAt(n),o={line:n.line,ch:i.start},a={line:n.line,ch:i.end},u={start:e.indexFromPos(o),end:e.indexFromPos(a)},s=r.definitions.find(function(e){if(!e.loc)return console.log("Missing location information for definition"),!1;var t=e.loc,n=t.start,r=t.end;return n<=u.start&&r>=u.end});if(!s)return console.error("Unable to find definition corresponding to mouse position"),null;var c=".graphiql-explorer-root #"+("OperationDefinition"===s.kind?s.operation:"FragmentDefinition"===s.kind?"fragment":"unknown")+"-"+("OperationDefinition"===s.kind&&s.name?s.name.value:"FragmentDefinition"===s.kind&&s.name?s.name.value:"unknown"),f=document.querySelector(c);return!!f&&(f.scrollIntoView(),!0)},t._handleEditQuery=function(e){s.query=e,y(),t.setState({query:e})},t._handleToggleExplorer=function(){var e=!t.state.explorerIsOpen;window.localStorage&&window.localStorage.setItem("graphiql:graphiqlExplorerOpen",e),s.explorerIsOpen=e,y(),t.setState({explorerIsOpen:e})},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=i.prototype;return u.componentDidMount=function(){var e=this;m({query:(0,l.getIntrospectionQuery)()}).then(function(t){var n={schema:(0,l.buildClientSchema)(t.data)};if(null===e.state.query){try{var r=t.data.__schema.types.find(function(e){return"SiteSiteMetadata"===e.name&&"OBJECT"===e.kind});if(r)r.fields.find(function(e){return"title"===e.name&&e.type&&"SCALAR"===e.type.kind&&"String"===e.type.name})&&(n.query=w("# {\n# site {\n# siteMetadata {\n# title\n# }\n# }\n# }"))}catch(e){}n.query||(n.query=w("# {\n# allSitePage {\n# nodes {\n# path\n# }\n# }\n# }"))}e.setState(n)});var t=this._graphiql.getQueryEditor();t.setOption("extraKeys",Object.assign({},t.options.extraKeys||{},{"Shift-Alt-LeftClick":this._handleInspectOperation}))},u.render=function(){var e=this,t=this.state,n=t.query,i=t.schema;return r.default.createElement(r.default.Fragment,null,r.default.createElement(a.default,{schema:i,query:n,onEdit:this._handleEditQuery,explorerIsOpen:this.state.explorerIsOpen,onToggleExplorer:this._handleToggleExplorer,onRunOperation:function(t){return e._graphiql.handleRunQuery(t)}}),r.default.createElement(o.default,{ref:function(t){return e._graphiql=t},fetcher:m,schema:i,query:n,onEditQuery:this._handleEditQuery,onEditVariables:v,onEditOperationName:g},r.default.createElement(o.default.Toolbar,null,r.default.createElement(o.default.Button,{onClick:function(){return e._graphiql.handlePrettifyQuery()},label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)"}),r.default.createElement(o.default.Button,{onClick:function(){return e._graphiql.handleToggleHistory()},label:"History",title:"Show History"}),r.default.createElement(o.default.Button,{onClick:this._handleToggleExplorer,label:"Explorer",title:"Toggle Explorer"}))))},i}(r.default.Component);i.default.render(r.default.createElement(x,null),document.getElementById("root"))},function(e,t,n){var r=n(52);r(r.S+r.F,"Object",{assign:n(127)})},function(e,t,n){e.exports=!n(39)&&!n(40)(function(){return 7!=Object.defineProperty(n(82)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(38);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(56),i=n(131),o=n(132),a=n(58),l=n(65),u=Object.assign;e.exports=!u||n(40)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,s=1,c=i.f,f=o.f;u>s;)for(var p,d=l(arguments[s++]),h=c?r(d).concat(c(d)):r(d),m=h.length,v=0;m>v;)f.call(d,p=h[v++])&&(n[p]=d[p]);return n}:u},function(e,t,n){var r=n(55),i=n(64),o=n(129)(!1),a=n(67)("IE_PROTO");e.exports=function(e,t){var n,l=i(e),u=0,s=[];for(n in l)n!=a&&r(l,n)&&s.push(n);for(;t.length>u;)r(l,n=t[u++])&&(~o(s,n)||s.push(n));return s}},function(e,t,n){var r=n(64),i=n(85),o=n(130);e.exports=function(e){return function(t,n,a){var l,u=r(t),s=i(u.length),c=o(a,s);if(e&&n!=n){for(;s>c;)if((l=u[c++])!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(86),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(54).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(39)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(52),i=n(135)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(90)("find")},function(e,t,n){var r=n(84),i=n(65),o=n(58),a=n(85),l=n(136);e.exports=function(e,t){var n=1==e,u=2==e,s=3==e,c=4==e,f=6==e,p=5==e||f,d=t||l;return function(t,l,h){for(var m,v,g=o(t),y=i(g),b=r(l,h,3),w=a(y.length),k=0,x=n?d(t,w):u?d(t,0):void 0;w>k;k++)if((p||k in y)&&(v=b(m=y[k],k,g),e))if(n)x[k]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return k;case 2:x.push(m)}else if(c)return!1;return f?-1:s||c?c:x}}},function(e,t,n){var r=n(137);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(38),i=n(138),o=n(25)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(57);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){for(var r=n(91),i=n(56),o=n(41),a=n(28),l=n(29),u=n(68),s=n(25),c=s("iterator"),f=s("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(d),m=0;m<h.length;m++){var v,g=h[m],y=d[g],b=a[g],w=b&&b.prototype;if(w&&(w[c]||l(w,c,p),w[f]||l(w,f,g),u[g]=p,y))for(v in r)w[v]||o(w,v,r[v],!0)}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(88),i=n(52),o=n(41),a=n(29),l=n(68),u=n(142),s=n(92),c=n(146),f=n(25)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,m,v,g){u(n,t,h);var y,b,w,k=function(e){if(!p&&e in _)return _[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",T="values"==m,E=!1,_=e.prototype,S=_[f]||_["@@iterator"]||m&&_[m],O=S||k(m),C=m?T?k("entries"):O:void 0,N="Array"==t&&_.entries||S;if(N&&(w=c(N.call(new e)))!==Object.prototype&&w.next&&(s(w,x,!0),r||"function"==typeof w[f]||a(w,f,d)),T&&S&&"values"!==S.name&&(E=!0,O=function(){return S.call(this)}),r&&!g||!p&&!E&&_[f]||a(_,f,O),l[t]=O,l[x]=d,m)if(y={values:T?O:k("values"),keys:v?O:k("keys"),entries:C},g)for(b in y)b in _||o(_,b,y[b]);else i(i.P+i.F*(p||E),t,y);return y}},function(e,t,n){"use strict";var r=n(143),i=n(83),o=n(92),a={};n(29)(a,n(25)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(62),i=n(144),o=n(89),a=n(67)("IE_PROTO"),l=function(){},u=function(){var e,t=n(82)("iframe"),r=o.length;for(t.style.display="none",n(145).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(54),i=n(62),o=n(56);e.exports=n(39)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),l=a.length,u=0;l>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(28).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(55),i=n(58),o=n(67)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(148),i={};i[n(25)("toStringTag")]="z",i+""!="[object z]"&&n(41)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(57),i=n(25)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(58),i=n(56);n(150)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(52),i=n(53),o=n(40);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){n(93)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(93)("split",2,function(e,t,r){"use strict";var i=n(153),o=r,a=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var l=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(n,e,t);var r,u,s,c,f,p=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=void 0===t?4294967295:t>>>0,v=new RegExp(e.source,d+"g");for(l||(r=new RegExp("^"+v.source+"$(?!\\s)",d));(u=v.exec(n))&&!((s=u.index+u[0].length)>h&&(p.push(n.slice(h,u.index)),!l&&u.length>1&&u[0].replace(r,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(u[f]=void 0)}),u.length>1&&u.index<n.length&&a.apply(p,u.slice(1)),c=u[0].length,h=s,p.length>=m));)v.lastIndex===u.index&&v.lastIndex++;return h===n.length?!c&&v.test("")||p.push(""):p.push(n.slice(h)),p.length>m?p.slice(0,m):p}}else"0".split(void 0,0).length&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},r]})},function(e,t,n){var r=n(38),i=n(57),o=n(25)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";
/** @license React v16.8.6
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(94),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,m=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,i,o,a,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,l],s=0;(e=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function k(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}function x(){}function T(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=k.prototype;var E=T.prototype=new x;E.constructor=T,r(E,k.prototype),E.isPureReactComponent=!0;var _={current:null},S={current:null},O=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r=void 0,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)O.call(t,r)&&!C.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var D=/\/+/g,I=[];function L(e,t,n,r){if(I.length){var i=I.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,i){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+F(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+F(l=t[s],s);u+=e(l,c,r,i)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),s=0;!(l=t.next()).done;)u+=e(l=l.value,c=n+F(l,s++),r,i);else"object"===l&&y("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return u}(e,"",t,n)}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function P(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?V(e,r,n,function(e){return e}):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+n)),r.push(e))}function V(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(D,"$&/")+"/"),M(e,P,t=L(t,o,r,i)),j(t)}function U(){var e=_.current;return null===e&&y("321"),e}var B={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return V(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M(e,R,t=L(null,null,t,n)),j(t)},count:function(e){return M(e,function(){return null},null)},toArray:function(e){var t=[];return V(e,t,null,function(e){return e}),t},only:function(e){return A(e)||y("143"),e}},createRef:function(){return{current:null}},Component:k,PureComponent:T,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return U().useCallback(e,t)},useContext:function(e,t){return U().useContext(e,t)},useEffect:function(e,t){return U().useEffect(e,t)},useImperativeHandle:function(e,t,n){return U().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return U().useLayoutEffect(e,t)},useMemo:function(e,t){return U().useMemo(e,t)},useReducer:function(e,t,n){return U().useReducer(e,t,n)},useRef:function(e){return U().useRef(e)},useState:function(e){return U().useState(e)},Fragment:l,StrictMode:u,Suspense:h,createElement:N,cloneElement:function(e,t,n){null==e&&y("267",e);var i=void 0,a=r({},e.props),l=e.key,u=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,s=S.current),void 0!==t.key&&(l=""+t.key);var c=void 0;for(i in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)O.call(t,i)&&!C.hasOwnProperty(i)&&(a[i]=void 0===t[i]&&void 0!==c?c[i]:t[i])}if(1===(i=arguments.length-2))a.children=n;else if(1<i){c=Array(i);for(var f=0;f<i;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:e.type,key:l,ref:u,props:a,_owner:s}},createFactory:function(e){var t=N.bind(null,e);return t.type=e,t},isValidElement:A,version:"16.8.6",unstable_ConcurrentMode:p,unstable_Profiler:s,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:_,ReactCurrentOwner:S,assign:r}},q={default:B},z=q&&B||q;e.exports=z.default||z},function(e,t,n){"use strict";
/** @license React v16.8.6
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(14),i=n(94),o=n(156);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,i,o,a,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,l],s=0;(e=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var l=!1,u=null,s=!1,c=null,f={onError:function(e){l=!0,u=e}};function p(e,t,n,r,i,o,a,s,c){l=!1,u=null,function(e,t,n,r,i,o,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}.apply(f,arguments)}var d=null,h={};function m(){if(d)for(var e in h){var t=h[e],n=d.indexOf(e);if(-1<n||a("96",e),!g[n])for(var r in t.extractEvents||a("97",e),g[n]=t,n=t.eventTypes){var i=void 0,o=n[r],l=t,u=r;y.hasOwnProperty(u)&&a("99",u),y[u]=o;var s=o.phasedRegistrationNames;if(s){for(i in s)s.hasOwnProperty(i)&&v(s[i],l,u);i=!0}else o.registrationName?(v(o.registrationName,l,u),i=!0):i=!1;i||a("98",r,e)}}}function v(e,t,n){b[e]&&a("100",e),b[e]=t,w[e]=t.eventTypes[n].dependencies}var g=[],y={},b={},w={},k=null,x=null,T=null;function E(e,t,n){var r=e.type||"unknown-event";e.currentTarget=T(n),function(e,t,n,r,i,o,f,d,h){if(p.apply(this,arguments),l){if(l){var m=u;l=!1,u=null}else a("198"),m=void 0;s||(s=!0,c=m)}}(r,t,void 0,e),e.currentTarget=null}function _(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function S(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var O=null;function C(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)E(e,t[r],n[r]);else t&&E(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var N={injectEventPluginOrder:function(e){d&&a("101"),d=Array.prototype.slice.call(e),m()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&a("102",t),h[t]=r,n=!0)}n&&m()}};function A(e,t){var n=e.stateNode;if(!n)return null;var r=k(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function D(e){if(null!==e&&(O=_(O,e)),e=O,O=null,e&&(S(e,C),O&&a("95"),s))throw e=c,s=!1,c=null,e}var I=Math.random().toString(36).slice(2),L="__reactInternalInstance$"+I,j="__reactEventHandlers$"+I;function M(e){if(e[L])return e[L];for(;!e[L];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[L]).tag||6===e.tag?e:null}function F(e){return!(e=e[L])||5!==e.tag&&6!==e.tag?null:e}function R(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function P(e){return e[j]||null}function V(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function U(e,t,n){(t=A(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=_(n._dispatchListeners,t),n._dispatchInstances=_(n._dispatchInstances,e))}function B(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=V(t);for(t=n.length;0<t--;)U(n[t],"captured",e);for(t=0;t<n.length;t++)U(n[t],"bubbled",e)}}function q(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=A(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=_(n._dispatchListeners,t),n._dispatchInstances=_(n._dispatchInstances,e))}function z(e){e&&e.dispatchConfig.registrationName&&q(e._targetInst,null,e)}function K(e){S(e,B)}var H=!("undefined"==typeof window||!window.document||!window.document.createElement);function G(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var W={animationend:G("Animation","AnimationEnd"),animationiteration:G("Animation","AnimationIteration"),animationstart:G("Animation","AnimationStart"),transitionend:G("Transition","TransitionEnd")},Q={},Y={};function J(e){if(Q[e])return Q[e];if(!W[e])return e;var t,n=W[e];for(t in n)if(n.hasOwnProperty(t)&&t in Y)return Q[e]=n[t];return e}H&&(Y=document.createElement("div").style,"AnimationEvent"in window||(delete W.animationend.animation,delete W.animationiteration.animation,delete W.animationstart.animation),"TransitionEvent"in window||delete W.transitionend.transition);var $=J("animationend"),X=J("animationiteration"),Z=J("animationstart"),ee=J("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,re=null,ie=null;function oe(){if(ie)return ie;var e,t,n=re,r=n.length,i="value"in ne?ne.value:ne.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return ie=i.slice(e,1<t?1-t:void 0)}function ae(){return!0}function le(){return!1}function ue(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:le,this.isPropagationStopped=le,this}function se(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function ce(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=se,e.release=ce}i(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var pe=ue.extend({data:null}),de=ue.extend({data:null}),he=[9,13,27,32],me=H&&"CompositionEvent"in window,ve=null;H&&"documentMode"in document&&(ve=document.documentMode);var ge=H&&"TextEvent"in window&&!ve,ye=H&&(!me||ve&&8<ve&&11>=ve),be=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ke=!1;function xe(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Te(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var _e={eventTypes:we,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(me)e:{switch(e){case"compositionstart":i=we.compositionStart;break e;case"compositionend":i=we.compositionEnd;break e;case"compositionupdate":i=we.compositionUpdate;break e}i=void 0}else Ee?xe(e,n)&&(i=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=we.compositionStart);return i?(ye&&"ko"!==n.locale&&(Ee||i!==we.compositionStart?i===we.compositionEnd&&Ee&&(o=oe()):(re="value"in(ne=r)?ne.value:ne.textContent,Ee=!0)),i=pe.getPooled(i,t,n,r),o?i.data=o:null!==(o=Te(n))&&(i.data=o),K(i),o=i):o=null,(e=ge?function(e,t){switch(e){case"compositionend":return Te(t);case"keypress":return 32!==t.which?null:(ke=!0,be);case"textInput":return(e=t.data)===be&&ke?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!me&&xe(e,t)?(e=oe(),ie=re=ne=null,Ee=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ye&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=de.getPooled(we.beforeInput,t,n,r)).data=e,K(t)):t=null,null===o?t:null===t?o:[o,t]}},Se=null,Oe=null,Ce=null;function Ne(e){if(e=x(e)){"function"!=typeof Se&&a("280");var t=k(e.stateNode);Se(e.stateNode,e.type,t)}}function Ae(e){Oe?Ce?Ce.push(e):Ce=[e]:Oe=e}function De(){if(Oe){var e=Oe,t=Ce;if(Ce=Oe=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Ie(e,t){return e(t)}function Le(e,t,n){return e(t,n)}function je(){}var Me=!1;function Fe(e,t){if(Me)return e(t);Me=!0;try{return Ie(e,t)}finally{Me=!1,(null!==Oe||null!==Ce)&&(je(),De())}}var Re={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Re[e.type]:"textarea"===t}function Ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ue(e){if(!H)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function qe(e){e._valueTracker||(e._valueTracker=function(e){var t=Be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ze(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ke=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ke.hasOwnProperty("ReactCurrentDispatcher")||(Ke.ReactCurrentDispatcher={current:null});var He=/^(.*)[\\\/]/,Ge="function"==typeof Symbol&&Symbol.for,We=Ge?Symbol.for("react.element"):60103,Qe=Ge?Symbol.for("react.portal"):60106,Ye=Ge?Symbol.for("react.fragment"):60107,Je=Ge?Symbol.for("react.strict_mode"):60108,$e=Ge?Symbol.for("react.profiler"):60114,Xe=Ge?Symbol.for("react.provider"):60109,Ze=Ge?Symbol.for("react.context"):60110,et=Ge?Symbol.for("react.concurrent_mode"):60111,tt=Ge?Symbol.for("react.forward_ref"):60112,nt=Ge?Symbol.for("react.suspense"):60113,rt=Ge?Symbol.for("react.memo"):60115,it=Ge?Symbol.for("react.lazy"):60116,ot="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ot&&e[ot]||e["@@iterator"])?e:null}function lt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case et:return"ConcurrentMode";case Ye:return"Fragment";case Qe:return"Portal";case $e:return"Profiler";case Je:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Ze:return"Context.Consumer";case Xe:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return lt(e.type);case it:if(e=1===e._status?e._result:null)return lt(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=lt(e.type);n=null,r&&(n=lt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(He,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}var st=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ct=Object.prototype.hasOwnProperty,ft={},pt={};function dt(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new dt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new dt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new dt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new dt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new dt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new dt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new dt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new dt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new dt(e,5,!1,e.toLowerCase(),null)});var mt=/[\-:]([a-z])/g;function vt(e){return e[1].toUpperCase()}function gt(e,t,n,r){var i=ht.hasOwnProperty(t)?ht[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!ct.call(pt,e)||!ct.call(ft,e)&&(st.test(e)?pt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function yt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function wt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=yt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function kt(e,t){null!=(t=t.checked)&&gt(e,"checked",t,!1)}function xt(e,t){kt(e,t);var n=yt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Et(e,t.type,n):t.hasOwnProperty("defaultValue")&&Et(e,t.type,yt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Tt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Et(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mt,vt);ht[t]=new dt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mt,vt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mt,vt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new dt(e,1,!1,e.toLowerCase(),null)});var _t={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function St(e,t,n){return(e=ue.getPooled(_t.change,e,t,n)).type="change",Ae(n),K(e),e}var Ot=null,Ct=null;function Nt(e){D(e)}function At(e){if(ze(R(e)))return e}function Dt(e,t){if("change"===e)return t}var It=!1;function Lt(){Ot&&(Ot.detachEvent("onpropertychange",jt),Ct=Ot=null)}function jt(e){"value"===e.propertyName&&At(Ct)&&Fe(Nt,e=St(Ct,e,Ve(e)))}function Mt(e,t,n){"focus"===e?(Lt(),Ct=n,(Ot=t).attachEvent("onpropertychange",jt)):"blur"===e&&Lt()}function Ft(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return At(Ct)}function Rt(e,t){if("click"===e)return At(t)}function Pt(e,t){if("input"===e||"change"===e)return At(t)}H&&(It=Ue("input")&&(!document.documentMode||9<document.documentMode));var Vt={eventTypes:_t,_isInputEventSupported:It,extractEvents:function(e,t,n,r){var i=t?R(t):window,o=void 0,a=void 0,l=i.nodeName&&i.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===i.type?o=Dt:Pe(i)?It?o=Pt:(o=Ft,a=Mt):(l=i.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Rt),o&&(o=o(e,t)))return St(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Et(i,"number",i.value)}},Ut=ue.extend({view:null,detail:null}),Bt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Bt[e])&&!!t[e]}function zt(){return qt}var Kt=0,Ht=0,Gt=!1,Wt=!1,Qt=Ut.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:zt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Kt;return Kt=e.screenX,Gt?"mousemove"===e.type?e.screenX-t:0:(Gt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ht;return Ht=e.screenY,Wt?"mousemove"===e.type?e.screenY-t:0:(Wt=!0,0)}}),Yt=Qt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Jt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},$t={eventTypes:Jt,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?M(t):null):o=null,o===t)return null;var a=void 0,l=void 0,u=void 0,s=void 0;"mouseout"===e||"mouseover"===e?(a=Qt,l=Jt.mouseLeave,u=Jt.mouseEnter,s="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Yt,l=Jt.pointerLeave,u=Jt.pointerEnter,s="pointer");var c=null==o?i:R(o);if(i=null==t?i:R(t),(e=a.getPooled(l,o,n,r)).type=s+"leave",e.target=c,e.relatedTarget=i,(n=a.getPooled(u,t,n,r)).type=s+"enter",n.target=i,n.relatedTarget=c,r=t,o&&r)e:{for(i=r,s=0,a=t=o;a;a=V(a))s++;for(a=0,u=i;u;u=V(u))a++;for(;0<s-a;)t=V(t),s--;for(;0<a-s;)i=V(i),a--;for(;s--;){if(t===i||t===i.alternate)break e;t=V(t),i=V(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(s=o.alternate)||s!==i);)t.push(o),o=V(o);for(o=[];r&&r!==i&&(null===(s=r.alternate)||s!==i);)o.push(r),r=V(r);for(r=0;r<t.length;r++)q(t[r],"bubbled",e);for(r=o.length;0<r--;)q(o[r],"captured",n);return[e,n]}};function Xt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var Zt=Object.prototype.hasOwnProperty;function en(e,t){if(Xt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Zt.call(t,n[r])||!Xt(e[n[r]],t[n[r]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var l=i.child;l;){if(l===n)return nn(i),e;if(l===r)return nn(i),t;l=l.sibling}a("188")}if(n.return!==r.return)n=i,r=o;else{l=!1;for(var u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l){for(u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}l||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var on=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ln=Ut.extend({relatedTarget:null});function un(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn=Ut.extend({key:function(e){if(e.key){var t=sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:zt,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=Qt.extend({dataTransfer:null}),dn=Ut.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:zt}),hn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),mn=Qt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),vn=[["abort","abort"],[$,"animationEnd"],[X,"animationIteration"],[Z,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],gn={},yn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},gn[e]=t,yn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){bn(e,!0)}),vn.forEach(function(e){bn(e,!1)});var wn={eventTypes:gn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=yn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=yn[e];if(!i)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=ln;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=dn;break;case $:case X:case Z:e=on;break;case ee:e=hn;break;case"scroll":e=Ut;break;case"wheel":e=mn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Yt;break;default:e=ue}return K(t=e.getPooled(i,t,n,r)),t}},kn=wn.isInteractiveTopLevelEventType,xn=[];function Tn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=M(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=Ve(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,l=0;l<g.length;l++){var u=g[l];u&&(u=u.extractEvents(r,t,o,i))&&(a=_(a,u))}D(a)}}var En=!0;function _n(e,t){if(!t)return null;var n=(kn(e)?On:Cn).bind(null,e);t.addEventListener(e,n,!1)}function Sn(e,t){if(!t)return null;var n=(kn(e)?On:Cn).bind(null,e);t.addEventListener(e,n,!0)}function On(e,t){Le(Cn,e,t)}function Cn(e,t){if(En){var n=Ve(t);if(null===(n=M(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),xn.length){var r=xn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Fe(Tn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>xn.length&&xn.push(e)}}}var Nn={},An=0,Dn="_reactListenersID"+(""+Math.random()).slice(2);function In(e){return Object.prototype.hasOwnProperty.call(e,Dn)||(e[Dn]=An++,Nn[e[Dn]]={}),Nn[e[Dn]]}function Ln(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mn(e,t){var n,r=jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jn(r)}}function Fn(){for(var e=window,t=Ln();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Ln((e=t.contentWindow).document)}return t}function Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Pn(e){var t=Fn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&Rn(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Mn(n,o);var a=Mn(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vn=H&&"documentMode"in document&&11>=document.documentMode,Un={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Bn=null,qn=null,zn=null,Kn=!1;function Hn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Kn||null==Bn||Bn!==Ln(n)?null:("selectionStart"in(n=Bn)&&Rn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},zn&&en(zn,n)?null:(zn=n,(e=ue.getPooled(Un.select,qn,e,t)).type="select",e.target=Bn,K(e),e))}var Gn={eventTypes:Un,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=In(o),i=w.onSelect;for(var a=0;a<i.length;a++){var l=i[a];if(!o.hasOwnProperty(l)||!o[l]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?R(t):window,e){case"focus":(Pe(o)||"true"===o.contentEditable)&&(Bn=o,qn=t,zn=null);break;case"blur":zn=qn=Bn=null;break;case"mousedown":Kn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Kn=!1,Hn(n,r);case"selectionchange":if(Vn)break;case"keydown":case"keyup":return Hn(n,r)}return null}};function Wn(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Qn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Yn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:yt(n)}}function $n(e,t){var n=yt(t.value),r=yt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Xn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}N.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=P,x=F,T=R,N.injectEventPluginsByName({SimpleEventPlugin:wn,EnterLeaveEventPlugin:$t,ChangeEventPlugin:Vt,SelectEventPlugin:Gn,BeforeInputEventPlugin:_e});var Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function er(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?er(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var nr,rr=void 0,ir=(nr=function(e,t){if(e.namespaceURI!==Zn.svg||"innerHTML"in e)e.innerHTML=t;else{for((rr=rr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=rr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return nr(e,t)})}:nr);function or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ar={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lr=["Webkit","ms","Moz","O"];function ur(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ar.hasOwnProperty(e)&&ar[e]?(""+t).trim():t+"px"}function sr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ur(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ar).forEach(function(e){lr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ar[t]=ar[e]})});var cr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fr(e,t){t&&(cr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function pr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function dr(e,t){var n=In(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":Sn("scroll",e);break;case"focus":case"blur":Sn("focus",e),Sn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Ue(i)&&Sn(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(i)&&_n(i,e)}n[i]=!0}}}function hr(){}var mr=null,vr=null;function gr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var br="function"==typeof setTimeout?setTimeout:void 0,wr="function"==typeof clearTimeout?clearTimeout:void 0,kr=o.unstable_scheduleCallback,xr=o.unstable_cancelCallback;function Tr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Er(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var _r=[],Sr=-1;function Or(e){0>Sr||(e.current=_r[Sr],_r[Sr]=null,Sr--)}function Cr(e,t){_r[++Sr]=e.current,e.current=t}var Nr={},Ar={current:Nr},Dr={current:!1},Ir=Nr;function Lr(e,t){var n=e.type.contextTypes;if(!n)return Nr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function jr(e){return null!=(e=e.childContextTypes)}function Mr(e){Or(Dr),Or(Ar)}function Fr(e){Or(Dr),Or(Ar)}function Rr(e,t,n){Ar.current!==Nr&&a("168"),Cr(Ar,t),Cr(Dr,n)}function Pr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())o in e||a("108",lt(t)||"Unknown",o);return i({},n,r)}function Vr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Nr,Ir=Ar.current,Cr(Ar,t),Cr(Dr,Dr.current),!0}function Ur(e,t,n){var r=e.stateNode;r||a("169"),n?(t=Pr(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=t,Or(Dr),Or(Ar),Cr(Ar,t)):Or(Dr),Cr(Dr,n)}var Br=null,qr=null;function zr(e){return function(t){try{return e(t)}catch(e){}}}function Kr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Hr(e,t,n,r){return new Kr(e,t,n,r)}function Gr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wr(e,t){var n=e.alternate;return null===n?((n=Hr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qr(e,t,n,r,i,o){var l=2;if(r=e,"function"==typeof e)Gr(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Ye:return Yr(n.children,i,o,t);case et:return Jr(n,3|i,o,t);case Je:return Jr(n,2|i,o,t);case $e:return(e=Hr(12,n,t,4|i)).elementType=$e,e.type=$e,e.expirationTime=o,e;case nt:return(e=Hr(13,n,t,i)).elementType=nt,e.type=nt,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Xe:l=10;break e;case Ze:l=9;break e;case tt:l=11;break e;case rt:l=14;break e;case it:l=16,r=null;break e}a("130",null==e?e:typeof e,"")}return(t=Hr(l,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Yr(e,t,n,r){return(e=Hr(7,e,r,t)).expirationTime=n,e}function Jr(e,t,n,r){return e=Hr(8,e,r,t),t=0==(1&t)?Je:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function $r(e,t,n){return(e=Hr(6,e,null,t)).expirationTime=n,e}function Xr(e,t,n){return(t=Hr(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zr(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),ni(t,e)}function ei(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),ni(t,e)}function ti(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function ni(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;0===(i=0!==i?i:o)&&(0===e||r<e)&&(i=r),0!==(e=i)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}function ri(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ii=(new r.Component).refs;function oi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var ai={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=xl(),i=Jo(r=Ya(r,e));i.payload=t,null!=n&&(i.callback=n),za(),Xo(e,i),Xa(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=xl(),i=Jo(r=Ya(r,e));i.tag=Ko,i.payload=t,null!=n&&(i.callback=n),za(),Xo(e,i),Xa(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=xl(),r=Jo(n=Ya(n,e));r.tag=Ho,null!=t&&(r.callback=t),za(),Xo(e,r),Xa(e,n)}};function li(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(i,o))}function ui(e,t,n){var r=!1,i=Nr,o=t.contextType;return"object"==typeof o&&null!==o?o=qo(o):(i=jr(t)?Ir:Ar.current,o=(r=null!=(r=t.contextTypes))?Lr(e,i):Nr),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ai,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function si(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ai.enqueueReplaceState(t,t.state,null)}function ci(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ii;var o=t.contextType;"object"==typeof o&&null!==o?i.context=qo(o):(o=jr(t)?Ir:Ar.current,i.context=Lr(e,o)),null!==(o=e.updateQueue)&&(na(e,o,n,i,r),i.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(oi(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ai.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(na(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var fi=Array.isArray;function pi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("309"),r=n.stateNode),r||a("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ii&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function di(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function hi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=Wr(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=$r(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=pi(e,t,n),r.return=e,r):((r=Qr(n.type,n.key,n.props,null,e.mode,r)).ref=pi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Yr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=$r(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case We:return(n=Qr(t.type,t.key,t.props,null,e.mode,n)).ref=pi(e,null,t),n.return=e,n;case Qe:return(t=Xr(t,e.mode,n)).return=e,t}if(fi(t)||at(t))return(t=Yr(t,e.mode,n,null)).return=e,t;di(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case We:return n.key===i?n.type===Ye?f(e,t,n.props.children,r,i):s(e,t,n,r):null;case Qe:return n.key===i?c(e,t,n,r):null}if(fi(n)||at(n))return null!==i?null:f(e,t,n,r,null);di(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case We:return e=e.get(null===r.key?n:r.key)||null,r.type===Ye?f(t,e,r.props.children,i,r.key):s(t,e,r,i);case Qe:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(fi(r)||at(r))return f(t,e=e.get(n)||null,r,i,null);di(t,r)}return null}function m(i,a,l,u){for(var s=null,c=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=d(i,f,l[m],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,m),null===c?s=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(i,f),s;if(null===f){for(;m<l.length;m++)(f=p(i,l[m],u))&&(a=o(f,a,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(i,f);m<l.length;m++)(v=h(f,i,m,l[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(i,e)}),s}function v(i,l,u,s){var c=at(u);"function"!=typeof c&&a("150"),null==(u=c.call(u))&&a("151");for(var f=c=null,m=l,v=l=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=d(i,m,y.value,s);if(null===b){m||(m=g);break}e&&m&&null===b.alternate&&t(i,m),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=p(i,y.value,s))&&(l=o(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;v++,y=u.next())null!==(y=h(m,i,v,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=o(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(i,e)}),c}return function(e,r,o,u){var s="object"==typeof o&&null!==o&&o.type===Ye&&null===o.key;s&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case We:e:{for(c=o.key,s=r;null!==s;){if(s.key===c){if(7===s.tag?o.type===Ye:s.elementType===o.type){n(e,s.sibling),(r=i(s,o.type===Ye?o.props.children:o.props)).ref=pi(e,s,o),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}o.type===Ye?((r=Yr(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Qr(o.type,o.key,o.props,null,e.mode,u)).ref=pi(e,r,o),u.return=e,e=u)}return l(e);case Qe:e:{for(s=o.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xr(o,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=$r(o,e.mode,u)).return=e,e=r),l(e);if(fi(o))return m(e,r,o,u);if(at(o))return v(e,r,o,u);if(c&&di(e,o),void 0===o&&!s)switch(e.tag){case 1:case 0:a("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var mi=hi(!0),vi=hi(!1),gi={},yi={current:gi},bi={current:gi},wi={current:gi};function ki(e){return e===gi&&a("174"),e}function xi(e,t){Cr(wi,t),Cr(bi,e),Cr(yi,gi);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tr(null,"");break;default:t=tr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Or(yi),Cr(yi,t)}function Ti(e){Or(yi),Or(bi),Or(wi)}function Ei(e){ki(wi.current);var t=ki(yi.current),n=tr(t,e.type);t!==n&&(Cr(bi,e),Cr(yi,n))}function _i(e){bi.current===e&&(Or(yi),Or(bi))}var Si=0,Oi=2,Ci=4,Ni=8,Ai=16,Di=32,Ii=64,Li=128,ji=Ke.ReactCurrentDispatcher,Mi=0,Fi=null,Ri=null,Pi=null,Vi=null,Ui=null,Bi=null,qi=0,zi=null,Ki=0,Hi=!1,Gi=null,Wi=0;function Qi(){a("321")}function Yi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xt(e[n],t[n]))return!1;return!0}function Ji(e,t,n,r,i,o){if(Mi=o,Fi=t,Pi=null!==e?e.memoizedState:null,ji.current=null===Pi?so:co,t=n(r,i),Hi){do{Hi=!1,Wi+=1,Pi=null!==e?e.memoizedState:null,Bi=Vi,zi=Ui=Ri=null,ji.current=co,t=n(r,i)}while(Hi);Gi=null,Wi=0}return ji.current=uo,(e=Fi).memoizedState=Vi,e.expirationTime=qi,e.updateQueue=zi,e.effectTag|=Ki,e=null!==Ri&&null!==Ri.next,Mi=0,Bi=Ui=Vi=Pi=Ri=Fi=null,qi=0,zi=null,Ki=0,e&&a("300"),t}function $i(){ji.current=uo,Mi=0,Bi=Ui=Vi=Pi=Ri=Fi=null,qi=0,zi=null,Ki=0,Hi=!1,Gi=null,Wi=0}function Xi(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Ui?Vi=Ui=e:Ui=Ui.next=e,Ui}function Zi(){if(null!==Bi)Bi=(Ui=Bi).next,Pi=null!==(Ri=Pi)?Ri.next:null;else{null===Pi&&a("310");var e={memoizedState:(Ri=Pi).memoizedState,baseState:Ri.baseState,queue:Ri.queue,baseUpdate:Ri.baseUpdate,next:null};Ui=null===Ui?Vi=e:Ui.next=e,Pi=Ri.next}return Ui}function eo(e,t){return"function"==typeof t?t(e):t}function to(e){var t=Zi(),n=t.queue;if(null===n&&a("311"),n.lastRenderedReducer=e,0<Wi){var r=n.dispatch;if(null!==Gi){var i=Gi.get(n);if(void 0!==i){Gi.delete(n);var o=t.memoizedState;do{o=e(o,i.action),i=i.next}while(null!==i);return Xt(o,t.memoizedState)||(xo=!0),t.memoizedState=o,t.baseUpdate===n.last&&(t.baseState=o),n.lastRenderedState=o,[o,r]}}return[t.memoizedState,r]}r=n.last;var l=t.baseUpdate;if(o=t.baseState,null!==l?(null!==r&&(r.next=null),r=l.next):r=null!==r?r.next:null,null!==r){var u=i=null,s=r,c=!1;do{var f=s.expirationTime;f<Mi?(c||(c=!0,u=l,i=o),f>qi&&(qi=f)):o=s.eagerReducer===e?s.eagerState:e(o,s.action),l=s,s=s.next}while(null!==s&&s!==r);c||(u=l,i=o),Xt(o,t.memoizedState)||(xo=!0),t.memoizedState=o,t.baseUpdate=u,t.baseState=i,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function no(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===zi?(zi={lastEffect:null}).lastEffect=e.next=e:null===(t=zi.lastEffect)?zi.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,zi.lastEffect=e),e}function ro(e,t,n,r){var i=Xi();Ki|=e,i.memoizedState=no(t,n,void 0,void 0===r?null:r)}function io(e,t,n,r){var i=Zi();r=void 0===r?null:r;var o=void 0;if(null!==Ri){var a=Ri.memoizedState;if(o=a.destroy,null!==r&&Yi(r,a.deps))return void no(Si,n,o,r)}Ki|=e,i.memoizedState=no(t,n,o,r)}function oo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ao(){}function lo(e,t,n){25>Wi||a("301");var r=e.alternate;if(e===Fi||null!==r&&r===Fi)if(Hi=!0,e={expirationTime:Mi,action:n,eagerReducer:null,eagerState:null,next:null},null===Gi&&(Gi=new Map),void 0===(n=Gi.get(t)))Gi.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{za();var i=xl(),o={expirationTime:i=Ya(i,e),action:n,eagerReducer:null,eagerState:null,next:null},l=t.last;if(null===l)o.next=o;else{var u=l.next;null!==u&&(o.next=u),l.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var s=t.lastRenderedState,c=r(s,n);if(o.eagerReducer=r,o.eagerState=c,Xt(c,s))return}catch(e){}Xa(e,i)}}var uo={readContext:qo,useCallback:Qi,useContext:Qi,useEffect:Qi,useImperativeHandle:Qi,useLayoutEffect:Qi,useMemo:Qi,useReducer:Qi,useRef:Qi,useState:Qi,useDebugValue:Qi},so={readContext:qo,useCallback:function(e,t){return Xi().memoizedState=[e,void 0===t?null:t],e},useContext:qo,useEffect:function(e,t){return ro(516,Li|Ii,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ro(4,Ci|Di,oo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ro(4,Ci|Di,e,t)},useMemo:function(e,t){var n=Xi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=lo.bind(null,Fi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Xi().memoizedState=e},useState:function(e){var t=Xi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e}).dispatch=lo.bind(null,Fi,e),[t.memoizedState,e]},useDebugValue:ao},co={readContext:qo,useCallback:function(e,t){var n=Zi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Yi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:qo,useEffect:function(e,t){return io(516,Li|Ii,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,io(4,Ci|Di,oo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return io(4,Ci|Di,e,t)},useMemo:function(e,t){var n=Zi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Yi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:to,useRef:function(){return Zi().memoizedState},useState:function(e){return to(eo)},useDebugValue:ao},fo=null,po=null,ho=!1;function mo(e,t){var n=Hr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function vo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function go(e){if(ho){var t=po;if(t){var n=t;if(!vo(e,t)){if(!(t=Tr(n))||!vo(e,t))return e.effectTag|=2,ho=!1,void(fo=e);mo(fo,n)}fo=e,po=Er(t)}else e.effectTag|=2,ho=!1,fo=e}}function yo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;fo=e}function bo(e){if(e!==fo)return!1;if(!ho)return yo(e),ho=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yr(t,e.memoizedProps))for(t=po;t;)mo(e,t),t=Tr(t);return yo(e),po=fo?Tr(e.stateNode):null,!0}function wo(){po=fo=null,ho=!1}var ko=Ke.ReactCurrentOwner,xo=!1;function To(e,t,n,r){t.child=null===e?vi(t,null,n,r):mi(t,e.child,n,r)}function Eo(e,t,n,r,i){n=n.render;var o=t.ref;return Bo(t,i),r=Ji(e,t,n,r,o,i),null===e||xo?(t.effectTag|=1,To(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Lo(e,t,i))}function _o(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Gr(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Qr(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,So(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(i,r)&&e.ref===t.ref)?Lo(e,t,o):(t.effectTag|=1,(e=Wr(a,r)).ref=t.ref,e.return=t,t.child=e)}function So(e,t,n,r,i,o){return null!==e&&en(e.memoizedProps,r)&&e.ref===t.ref&&(xo=!1,i<o)?Lo(e,t,o):Co(e,t,n,r,o)}function Oo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Co(e,t,n,r,i){var o=jr(n)?Ir:Ar.current;return o=Lr(t,o),Bo(t,i),n=Ji(e,t,n,r,o,i),null===e||xo?(t.effectTag|=1,To(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Lo(e,t,i))}function No(e,t,n,r,i){if(jr(n)){var o=!0;Vr(t)}else o=!1;if(Bo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ui(t,n,r),ci(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=qo(s):s=Lr(t,s=jr(n)?Ir:Ar.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&si(t,a,r,s),Wo=!1;var p=t.memoizedState;u=a.state=p;var d=t.updateQueue;null!==d&&(na(t,d,r,a,i),u=t.memoizedState),l!==r||p!==u||Dr.current||Wo?("function"==typeof c&&(oi(t,n,c,r),u=t.memoizedState),(l=Wo||li(t,n,l,r,p,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,l=t.memoizedProps,a.props=t.type===t.elementType?l:ri(t.type,l),u=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=qo(s):s=Lr(t,s=jr(n)?Ir:Ar.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&si(t,a,r,s),Wo=!1,u=t.memoizedState,p=a.state=u,null!==(d=t.updateQueue)&&(na(t,d,r,a,i),p=t.memoizedState),l!==r||u!==p||Dr.current||Wo?("function"==typeof c&&(oi(t,n,c,r),p=t.memoizedState),(c=Wo||li(t,n,l,r,u,p,s))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Ao(e,t,n,r,o,i)}function Ao(e,t,n,r,i,o){Oo(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&Ur(t,n,!1),Lo(e,t,o);r=t.stateNode,ko.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=mi(t,e.child,null,o),t.child=mi(t,null,l,o)):To(e,t,l,o),t.memoizedState=r.state,i&&Ur(t,n,!0),t.child}function Do(e){var t=e.stateNode;t.pendingContext?Rr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Rr(0,t.context,!1),xi(e,t.containerInfo)}function Io(e,t,n){var r=t.mode,i=t.pendingProps,o=t.memoizedState;if(0==(64&t.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var l=i.fallback;e=Yr(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=Yr(l,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=vi(t,null,i.children,n);else null!==e.memoizedState?(l=(r=e.child).sibling,a?(n=i.fallback,i=Wr(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(i.child=a)),r=i.sibling=Wr(l,n,l.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=t):n=r=mi(t,r.child,i.children,n)):(l=e.child,a?(a=i.fallback,(i=Yr(null,r,0,null)).child=l,0==(1&t.mode)&&(i.child=null!==t.memoizedState?t.child.child:t.child),(r=i.sibling=Yr(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=t):r=n=mi(t,l,i.children,n)),t.stateNode=e.stateNode;return t.memoizedState=o,t.child=n,r}function Lo(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Wr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function jo(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||Dr.current)xo=!0;else if(r<n){switch(xo=!1,t.tag){case 3:Do(t),wo();break;case 5:Ei(t);break;case 1:jr(t.type)&&Vr(t);break;case 4:xi(t,t.stateNode.containerInfo);break;case 10:Vo(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Io(e,t,n):null!==(t=Lo(e,t,n))?t.sibling:null}return Lo(e,t,n)}}else xo=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var i=Lr(t,Ar.current);if(Bo(t,n),i=Ji(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,$i(),jr(r)){var o=!0;Vr(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&oi(t,r,l,e),i.updater=ai,t.stateNode=i,i._reactInternalFiber=t,ci(t,r,e,n),t=Ao(null,t,r,!0,o,n)}else t.tag=0,To(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),o=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=e,i=t.tag=function(e){if("function"==typeof e)return Gr(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===rt)return 14}return 2}(e),o=ri(e,o),l=void 0,i){case 0:l=Co(null,t,e,o,n);break;case 1:l=No(null,t,e,o,n);break;case 11:l=Eo(null,t,e,o,n);break;case 14:l=_o(null,t,e,ri(e.type,o),r,n);break;default:a("306",e,"")}return l;case 0:return r=t.type,i=t.pendingProps,Co(e,t,r,i=t.elementType===r?i:ri(r,i),n);case 1:return r=t.type,i=t.pendingProps,No(e,t,r,i=t.elementType===r?i:ri(r,i),n);case 3:return Do(t),null===(r=t.updateQueue)&&a("282"),i=null!==(i=t.memoizedState)?i.element:null,na(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(wo(),t=Lo(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(po=Er(t.stateNode.containerInfo),fo=t,i=ho=!0),i?(t.effectTag|=2,t.child=vi(t,null,r,n)):(To(e,t,r,n),wo()),t=t.child),t;case 5:return Ei(t),null===e&&go(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,yr(r,i)?l=null:null!==o&&yr(r,o)&&(t.effectTag|=16),Oo(e,t),1!==n&&1&t.mode&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(To(e,t,l,n),t=t.child),t;case 6:return null===e&&go(t),null;case 13:return Io(e,t,n);case 4:return xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=mi(t,null,r,n):To(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Eo(e,t,r,i=t.elementType===r?i:ri(r,i),n);case 7:return To(e,t,t.pendingProps,n),t.child;case 8:case 12:return To(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,Vo(t,o=i.value),null!==l){var u=l.value;if(0===(o=Xt(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(l.children===i.children&&!Dr.current){t=Lo(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.contextDependencies;if(null!==s){l=u.child;for(var c=s.first;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===u.tag&&((c=Jo(n)).tag=Ho,Xo(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),c=n;for(var f=u.return;null!==f;){var p=f.alternate;if(f.childExpirationTime<c)f.childExpirationTime=c,null!==p&&p.childExpirationTime<c&&(p.childExpirationTime=c);else{if(!(null!==p&&p.childExpirationTime<c))break;p.childExpirationTime=c}f=f.return}s.expirationTime<n&&(s.expirationTime=n);break}c=c.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}}To(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,Bo(t,n),r=r(i=qo(i,o.unstable_observedBits)),t.effectTag|=1,To(e,t,r,n),t.child;case 14:return o=ri(i=t.type,t.pendingProps),_o(e,t,i,o=ri(i.type,o),r,n);case 15:return So(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ri(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,jr(r)?(e=!0,Vr(t)):e=!1,Bo(t,n),ui(t,r,i),ci(t,r,i,n),Ao(null,t,r,!0,e,n)}a("156")}var Mo={current:null},Fo=null,Ro=null,Po=null;function Vo(e,t){var n=e.type._context;Cr(Mo,n._currentValue),n._currentValue=t}function Uo(e){var t=Mo.current;Or(Mo),e.type._context._currentValue=t}function Bo(e,t){Fo=e,Po=Ro=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(xo=!0),e.contextDependencies=null}function qo(e,t){return Po!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Po=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ro?(null===Fo&&a("308"),Ro=t,Fo.contextDependencies={first:t,expirationTime:0}):Ro=Ro.next=t),e._currentValue}var zo=0,Ko=1,Ho=2,Go=3,Wo=!1;function Qo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Yo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Jo(e){return{expirationTime:e,tag:zo,payload:null,callback:null,next:null,nextEffect:null}}function $o(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Xo(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=Qo(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=Qo(e.memoizedState),i=n.updateQueue=Qo(n.memoizedState)):r=e.updateQueue=Yo(i):null===i&&(i=n.updateQueue=Yo(r));null===i||r===i?$o(r,t):null===r.lastUpdate||null===i.lastUpdate?($o(r,t),$o(i,t)):($o(r,t),i.lastUpdate=t)}function Zo(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Qo(e.memoizedState):ea(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function ea(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Yo(t)),t}function ta(e,t,n,r,o,a){switch(n.tag){case Ko:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case Go:e.effectTag=-2049&e.effectTag|64;case zo:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case Ho:Wo=!0}return r}function na(e,t,n,r,i){Wo=!1;for(var o=(t=ea(e,t)).baseState,a=null,l=0,u=t.firstUpdate,s=o;null!==u;){var c=u.expirationTime;c<i?(null===a&&(a=u,o=s),l<c&&(l=c)):(s=ta(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(c=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<i?(null===c&&(c=u,null===a&&(o=s)),l<f&&(l=f)):(s=ta(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=s),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=l,e.memoizedState=s}function ra(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ia(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ia(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ia(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function oa(e,t){return{value:e,source:t,stack:ut(t)}}function aa(e){e.effectTag|=4}var la=void 0,ua=void 0,sa=void 0,ca=void 0;la=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ua=function(){},sa=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var l=t.stateNode;switch(ki(yi.current),e=null,n){case"input":a=bt(l,a),r=bt(l,r),e=[];break;case"option":a=Wn(l,a),r=Wn(l,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Yn(l,a),r=Yn(l,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=hr)}fr(n,r),l=n=void 0;var u=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var s=a[n];for(l in s)s.hasOwnProperty(l)&&(u||(u={}),u[l]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var c=r[n];if(s=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&c!==s&&(null!=c||null!=s))if("style"===n)if(s){for(l in s)!s.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(u||(u={}),u[l]="");for(l in c)c.hasOwnProperty(l)&&s[l]!==c[l]&&(u||(u={}),u[l]=c[l])}else u||(e||(e=[]),e.push(n,u)),u=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(e=e||[]).push(n,""+c)):"children"===n?s===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=c&&dr(o,n),e||s===c||(e=[])):(e=e||[]).push(n,c))}u&&(e=e||[]).push("style",u),o=e,(t.updateQueue=o)&&aa(t)}},ca=function(e,t,n,r){n!==r&&aa(t)};var fa="function"==typeof WeakSet?WeakSet:Set;function pa(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ut(n)),null!==n&&lt(n.type),t=t.value,null!==e&&1===e.tag&&lt(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function da(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Qa(e,t)}else t.current=null}function ha(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==Si){var i=r.destroy;r.destroy=void 0,void 0!==i&&i()}(r.tag&t)!==Si&&(i=r.create,r.destroy=i()),r=r.next}while(r!==n)}}function ma(e){switch("function"==typeof qr&&qr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var i=e;try{r()}catch(e){Qa(i,e)}}n=n.next}while(n!==t)}break;case 1:if(da(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Qa(e,t)}break;case 5:da(e);break;case 4:ya(e)}}function va(e){return 5===e.tag||3===e.tag||4===e.tag}function ga(e){e:{for(var t=e.return;null!==t;){if(va(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(or(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||va(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=t,l=i.stateNode,u=n;8===o.nodeType?o.parentNode.insertBefore(l,u):o.insertBefore(l,u)}else t.insertBefore(i.stateNode,n);else r?(l=t,u=i.stateNode,8===l.nodeType?(o=l.parentNode).insertBefore(u,l):(o=l).appendChild(u),null!=(l=l._reactRootContainer)||null!==o.onclick||(o.onclick=hr)):t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function ya(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,l=o;;)if(ma(l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===o)break;for(;null===l.sibling;){if(null===l.return||l.return===o)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}i?(o=r,l=t.stateNode,8===o.nodeType?o.parentNode.removeChild(l):o.removeChild(l)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,i=!0,t.child.return=t,t=t.child;continue}}else if(ma(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function ba(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ha(Ci,Ni,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&function(e,t,n,r,i){e[j]=i,"input"===n&&"radio"===i.type&&null!=i.name&&kt(e,i),pr(n,r),r=pr(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],l=t[o+1];"style"===a?sr(e,l):"dangerouslySetInnerHTML"===a?ir(e,l):"children"===a?or(e,l):gt(e,a,l,r)}switch(n){case"input":xt(e,i);break;case"textarea":$n(e,i);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?Qn(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?Qn(e,!!i.multiple,i.defaultValue,!0):Qn(e,!!i.multiple,i.multiple?[]:"",!1))}}(n,o,i,e,r)}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=xl())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=ur("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var l=t.stateNode;null===l&&(l=t.stateNode=new fa),n.forEach(function(e){var n=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=Ya(t=xl(),e),null!==(e=$a(e,t))&&(Zr(e,t),0!==(t=e.expirationTime)&&Tl(e,t))}.bind(null,t,e);l.has(e)||(l.add(e),e.then(n,n))})}break;case 17:break;default:a("163")}}var wa="function"==typeof WeakMap?WeakMap:Map;function ka(e,t,n){(n=Jo(n)).tag=Go,n.payload={element:null};var r=t.value;return n.callback=function(){Il(r),pa(e,t)},n}function xa(e,t,n){(n=Jo(n)).tag=Go;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Pa?Pa=new Set([this]):Pa.add(this));var n=t.value,i=t.stack;pa(e,t),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function Ta(e){switch(e.tag){case 1:jr(e.type)&&Mr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return Ti(),Fr(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return _i(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return Ti(),null;case 10:return Uo(e),null;default:return null}}var Ea=Ke.ReactCurrentDispatcher,_a=Ke.ReactCurrentOwner,Sa=1073741822,Oa=!1,Ca=null,Na=null,Aa=0,Da=-1,Ia=!1,La=null,ja=!1,Ma=null,Fa=null,Ra=null,Pa=null;function Va(){if(null!==Ca)for(var e=Ca.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Mr();break;case 3:Ti(),Fr();break;case 5:_i(t);break;case 4:Ti();break;case 10:Uo(t)}e=e.return}Na=null,Aa=0,Da=-1,Ia=!1,Ca=null}function Ua(){for(;null!==La;){var e=La.effectTag;if(16&e&&or(La.stateNode,""),128&e){var t=La.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:ga(La),La.effectTag&=-3;break;case 6:ga(La),La.effectTag&=-3,ba(La.alternate,La);break;case 4:ba(La.alternate,La);break;case 8:ya(e=La),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}La=La.nextEffect}}function Ba(){for(;null!==La;){if(256&La.effectTag)e:{var e=La.alternate,t=La;switch(t.tag){case 0:case 11:case 15:ha(Oi,Si,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ri(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}La=La.nextEffect}}function qa(e,t){for(;null!==La;){var n=La.effectTag;if(36&n){var r=La.alternate,i=La,o=t;switch(i.tag){case 0:case 11:case 15:ha(Ai,Di,i);break;case 1:var l=i.stateNode;if(4&i.effectTag)if(null===r)l.componentDidMount();else{var u=i.elementType===i.type?r.memoizedProps:ri(i.type,r.memoizedProps);l.componentDidUpdate(u,r.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}null!==(r=i.updateQueue)&&ra(0,r,l);break;case 3:if(null!==(r=i.updateQueue)){if(l=null,null!==i.child)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}ra(0,r,l)}break;case 5:o=i.stateNode,null===r&&4&i.effectTag&&gr(i.type,i.memoizedProps)&&o.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}128&n&&(null!==(i=La.ref)&&(o=La.stateNode,"function"==typeof i?i(o):i.current=o)),512&n&&(Ma=e),La=La.nextEffect}}function za(){null!==Fa&&xr(Fa),null!==Ra&&Ra()}function Ka(e,t){ja=Oa=!0,e.current===t&&a("177");var n=e.pendingCommitExpirationTime;0===n&&a("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,i=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?Zr(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Zr(e,t)):t>n&&Zr(e,t)}ni(0,e)}(e,i>r?i:r),_a.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,mr=En,vr=function(){var e=Fn();if(Rn(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{t.nodeType,i.nodeType}catch(e){t=null;break e}var o=0,a=-1,l=-1,u=0,s=0,c=e,f=null;t:for(;;){for(var p;c!==t||0!==r&&3!==c.nodeType||(a=o+r),c!==i||0!==n&&3!==c.nodeType||(l=o+n),3===c.nodeType&&(o+=c.nodeValue.length),null!==(p=c.firstChild);)f=c,c=p;for(;;){if(c===e)break t;if(f===t&&++u===r&&(a=o),f===i&&++s===n&&(l=o),null!==(p=c.nextSibling))break;f=(c=f).parentNode}c=p}t=-1===a||-1===l?null:{start:a,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),En=!1,La=r;null!==La;){i=!1;var l=void 0;try{Ba()}catch(e){i=!0,l=e}i&&(null===La&&a("178"),Qa(La,l),null!==La&&(La=La.nextEffect))}for(La=r;null!==La;){i=!1,l=void 0;try{Ua()}catch(e){i=!0,l=e}i&&(null===La&&a("178"),Qa(La,l),null!==La&&(La=La.nextEffect))}for(Pn(vr),vr=null,En=!!mr,mr=null,e.current=t,La=r;null!==La;){i=!1,l=void 0;try{qa(e,n)}catch(e){i=!0,l=e}i&&(null===La&&a("178"),Qa(La,l),null!==La&&(La=La.nextEffect))}if(null!==r&&null!==Ma){var u=function(e,t){Ra=Fa=Ma=null;var n=il;il=!0;do{if(512&t.effectTag){var r=!1,i=void 0;try{var o=t;ha(Li,Si,o),ha(Si,Ii,o)}catch(e){r=!0,i=e}r&&Qa(t,i)}t=t.nextEffect}while(null!==t);il=n,0!==(n=e.expirationTime)&&Tl(e,n),cl||il||Cl(1073741823,!1)}.bind(null,e,r);Fa=o.unstable_runWithPriority(o.unstable_NormalPriority,function(){return kr(u)}),Ra=u}Oa=ja=!1,"function"==typeof Br&&Br(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Pa=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function Ha(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Ca=e;e:{var o=t,l=Aa,u=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:jr(t.type)&&Mr();break;case 3:Ti(),Fr(),(u=t.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==o&&null!==o.child||(bo(t),t.effectTag&=-3),ua(t);break;case 5:_i(t);var s=ki(wi.current);if(l=t.type,null!==o&&null!=t.stateNode)sa(o,t,l,u,s),o.ref!==t.ref&&(t.effectTag|=128);else if(u){var c=ki(yi.current);if(bo(t)){o=(u=t).stateNode;var f=u.type,p=u.memoizedProps,d=s;switch(o[L]=u,o[j]=p,l=void 0,s=f){case"iframe":case"object":_n("load",o);break;case"video":case"audio":for(f=0;f<te.length;f++)_n(te[f],o);break;case"source":_n("error",o);break;case"img":case"image":case"link":_n("error",o),_n("load",o);break;case"form":_n("reset",o),_n("submit",o);break;case"details":_n("toggle",o);break;case"input":wt(o,p),_n("invalid",o),dr(d,"onChange");break;case"select":o._wrapperState={wasMultiple:!!p.multiple},_n("invalid",o),dr(d,"onChange");break;case"textarea":Jn(o,p),_n("invalid",o),dr(d,"onChange")}for(l in fr(s,p),f=null,p)p.hasOwnProperty(l)&&(c=p[l],"children"===l?"string"==typeof c?o.textContent!==c&&(f=["children",c]):"number"==typeof c&&o.textContent!==""+c&&(f=["children",""+c]):b.hasOwnProperty(l)&&null!=c&&dr(d,l));switch(s){case"input":qe(o),Tt(o,p,!0);break;case"textarea":qe(o),Xn(o);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(o.onclick=hr)}l=f,u.updateQueue=l,(u=null!==l)&&aa(t)}else{p=t,d=l,o=u,f=9===s.nodeType?s:s.ownerDocument,c===Zn.html&&(c=er(d)),c===Zn.html?"script"===d?((o=f.createElement("div")).innerHTML="<script><\/script>",f=o.removeChild(o.firstChild)):"string"==typeof o.is?f=f.createElement(d,{is:o.is}):(f=f.createElement(d),"select"===d&&(d=f,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):f=f.createElementNS(c,d),(o=f)[L]=p,o[j]=u,la(o,t,!1,!1),d=o;var h=s,m=pr(f=l,p=u);switch(f){case"iframe":case"object":_n("load",d),s=p;break;case"video":case"audio":for(s=0;s<te.length;s++)_n(te[s],d);s=p;break;case"source":_n("error",d),s=p;break;case"img":case"image":case"link":_n("error",d),_n("load",d),s=p;break;case"form":_n("reset",d),_n("submit",d),s=p;break;case"details":_n("toggle",d),s=p;break;case"input":wt(d,p),s=bt(d,p),_n("invalid",d),dr(h,"onChange");break;case"option":s=Wn(d,p);break;case"select":d._wrapperState={wasMultiple:!!p.multiple},s=i({},p,{value:void 0}),_n("invalid",d),dr(h,"onChange");break;case"textarea":Jn(d,p),s=Yn(d,p),_n("invalid",d),dr(h,"onChange");break;default:s=p}fr(f,s),c=void 0;var v=f,g=d,y=s;for(c in y)if(y.hasOwnProperty(c)){var w=y[c];"style"===c?sr(g,w):"dangerouslySetInnerHTML"===c?null!=(w=w?w.__html:void 0)&&ir(g,w):"children"===c?"string"==typeof w?("textarea"!==v||""!==w)&&or(g,w):"number"==typeof w&&or(g,""+w):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(b.hasOwnProperty(c)?null!=w&&dr(h,c):null!=w&&gt(g,c,w,m))}switch(f){case"input":qe(d),Tt(d,p,!1);break;case"textarea":qe(d),Xn(d);break;case"option":null!=p.value&&d.setAttribute("value",""+yt(p.value));break;case"select":(s=d).multiple=!!p.multiple,null!=(d=p.value)?Qn(s,!!p.multiple,d,!1):null!=p.defaultValue&&Qn(s,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof s.onClick&&(d.onclick=hr)}(u=gr(l,u))&&aa(t),t.stateNode=o}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:o&&null!=t.stateNode?ca(o,t,o.memoizedProps,u):("string"!=typeof u&&(null===t.stateNode&&a("166")),o=ki(wi.current),ki(yi.current),bo(t)?(l=(u=t).stateNode,o=u.memoizedProps,l[L]=u,(u=l.nodeValue!==o)&&aa(t)):(l=t,(u=(9===o.nodeType?o:o.ownerDocument).createTextNode(u))[L]=t,l.stateNode=u));break;case 11:break;case 13:if(u=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=l,Ca=t;break e}u=null!==u,l=null!==o&&null!==o.memoizedState,null!==o&&!u&&l&&(null!==(o=o.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),(u||l)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ti(),ua(t);break;case 10:Uo(t);break;case 9:case 14:break;case 17:jr(t.type)&&Mr();break;case 18:break;default:a("156")}Ca=null}if(t=e,1===Aa||1!==t.childExpirationTime){for(u=0,l=t.child;null!==l;)(o=l.expirationTime)>u&&(u=o),(s=l.childExpirationTime)>u&&(u=s),l=l.sibling;t.childExpirationTime=u}if(null!==Ca)return Ca;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=Ta(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function Ga(e){var t=jo(e.alternate,e,Aa);return e.memoizedProps=e.pendingProps,null===t&&(t=Ha(e)),_a.current=null,t}function Wa(e,t){Oa&&a("243"),za(),Oa=!0;var n=Ea.current;Ea.current=uo;var r=e.nextExpirationTimeToWorkOn;r===Aa&&e===Na&&null!==Ca||(Va(),Aa=r,Ca=Wr((Na=e).current,null),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==Ca&&!Sl();)Ca=Ga(Ca);else for(;null!==Ca;)Ca=Ga(Ca)}catch(t){if(Po=Ro=Fo=null,$i(),null===Ca)i=!0,Il(t);else{null===Ca&&a("271");var o=Ca,l=o.return;if(null!==l){e:{var u=e,s=l,c=o,f=t;if(l=Aa,c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==f&&"object"==typeof f&&"function"==typeof f.then){var p=f;f=s;var d=-1,h=-1;do{if(13===f.tag){var m=f.alternate;if(null!==m&&null!==(m=m.memoizedState)){h=10*(1073741822-m.timedOutAt);break}"number"==typeof(m=f.pendingProps.maxDuration)&&(0>=m?d=0:(-1===d||m<d)&&(d=m))}f=f.return}while(null!==f);f=s;do{if((m=13===f.tag)&&(m=void 0!==f.memoizedProps.fallback&&null===f.memoizedState),m){if(null===(s=f.updateQueue)?((s=new Set).add(p),f.updateQueue=s):s.add(p),0==(1&f.mode)){f.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((l=Jo(1073741823)).tag=Ho,Xo(c,l))),c.expirationTime=1073741823;break e}s=l;var v=(c=u).pingCache;null===v?(v=c.pingCache=new wa,m=new Set,v.set(p,m)):void 0===(m=v.get(p))&&(m=new Set,v.set(p,m)),m.has(s)||(m.add(s),c=Ja.bind(null,c,p,s),p.then(c,c)),-1===d?u=1073741823:(-1===h&&(h=10*(1073741822-ti(u,l))-5e3),u=h+d),0<=u&&Da<u&&(Da=u),f.effectTag|=2048,f.expirationTime=l;break e}f=f.return}while(null!==f);f=Error((lt(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ut(c))}Ia=!0,f=oa(f,c),u=s;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=l,Zo(u,l=ka(u,f,l));break e;case 1:if(d=f,h=u.type,c=u.stateNode,0==(64&u.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===Pa||!Pa.has(c)))){u.effectTag|=2048,u.expirationTime=l,Zo(u,l=xa(u,d,l));break e}}u=u.return}while(null!==u)}Ca=Ha(o);continue}i=!0,Il(t)}}break}if(Oa=!1,Ea.current=n,Po=Ro=Fo=null,$i(),i)Na=null,e.finishedWork=null;else if(null!==Ca)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&a("281"),Na=null,Ia){if(i=e.latestPendingTime,o=e.latestSuspendedTime,l=e.latestPingedTime,0!==i&&i<r||0!==o&&o<r||0!==l&&l<r)return ei(e,r),void kl(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void kl(e,n,r,t,-1)}t&&-1!==Da?(ei(e,r),(t=10*(1073741822-ti(e,r)))<Da&&(Da=t),t=10*(1073741822-xl()),t=Da-t,kl(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function Qa(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pa||!Pa.has(r)))return Xo(n,e=xa(n,e=oa(t,e),1073741823)),void Xa(n,1073741823);break;case 3:return Xo(n,e=ka(n,e=oa(t,e),1073741823)),void Xa(n,1073741823)}n=n.return}3===e.tag&&(Xo(e,n=ka(e,n=oa(t,e),1073741823)),Xa(e,1073741823))}function Ya(e,t){var n=o.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(Oa&&!ja)r=Aa;else{switch(n){case o.unstable_ImmediatePriority:r=1073741823;break;case o.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case o.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case o.unstable_LowPriority:case o.unstable_IdlePriority:r=1;break;default:a("313")}null!==Na&&r===Aa&&--r}return n===o.unstable_UserBlockingPriority&&(0===ll||r<ll)&&(ll=r),r}function Ja(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==Na&&Aa===n?Na=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),ni(n,e),0!==(n=e.expirationTime)&&Tl(e,n)))}function $a(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function Xa(e,t){null!==(e=$a(e,t))&&(!Oa&&0!==Aa&&t>Aa&&Va(),Zr(e,t),Oa&&!ja&&Na===e||Tl(e,e.expirationTime),gl>vl&&(gl=0,a("185")))}function Za(e,t,n,r,i){return o.unstable_runWithPriority(o.unstable_ImmediatePriority,function(){return e(t,n,r,i)})}var el=null,tl=null,nl=0,rl=void 0,il=!1,ol=null,al=0,ll=0,ul=!1,sl=null,cl=!1,fl=!1,pl=null,dl=o.unstable_now(),hl=1073741822-(dl/10|0),ml=hl,vl=50,gl=0,yl=null;function bl(){hl=1073741822-((o.unstable_now()-dl)/10|0)}function wl(e,t){if(0!==nl){if(t<nl)return;null!==rl&&o.unstable_cancelCallback(rl)}nl=t,e=o.unstable_now()-dl,rl=o.unstable_scheduleCallback(Ol,{timeout:10*(1073741822-t)-e})}function kl(e,t,n,r,i){e.expirationTime=r,0!==i||Sl()?0<i&&(e.timeoutHandle=br(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,bl(),ml=hl,Nl(e,n)}.bind(null,e,t,n),i)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function xl(){return il?ml:(El(),0!==al&&1!==al||(bl(),ml=hl),ml)}function Tl(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===tl?(el=tl=e,e.nextScheduledRoot=e):(tl=tl.nextScheduledRoot=e).nextScheduledRoot=el):t>e.expirationTime&&(e.expirationTime=t),il||(cl?fl&&(ol=e,al=1073741823,Al(e,1073741823,!1)):1073741823===t?Cl(1073741823,!1):wl(e,t))}function El(){var e=0,t=null;if(null!==tl)for(var n=tl,r=el;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===tl)&&a("244"),r===r.nextScheduledRoot){el=tl=r.nextScheduledRoot=null;break}if(r===el)el=i=r.nextScheduledRoot,tl.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===tl){(tl=n).nextScheduledRoot=el,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===tl)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}ol=t,al=e}var _l=!1;function Sl(){return!!_l||!!o.unstable_shouldYield()&&(_l=!0)}function Ol(){try{if(!Sl()&&null!==el){bl();var e=el;do{var t=e.expirationTime;0!==t&&hl<=t&&(e.nextExpirationTimeToWorkOn=hl),e=e.nextScheduledRoot}while(e!==el)}Cl(0,!0)}finally{_l=!1}}function Cl(e,t){if(El(),t)for(bl(),ml=hl;null!==ol&&0!==al&&e<=al&&!(_l&&hl>al);)Al(ol,al,hl>al),El(),bl(),ml=hl;else for(;null!==ol&&0!==al&&e<=al;)Al(ol,al,!1),El();if(t&&(nl=0,rl=null),0!==al&&wl(ol,al),gl=0,yl=null,null!==pl)for(e=pl,pl=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ul||(ul=!0,sl=e)}}if(ul)throw e=sl,sl=null,ul=!1,e}function Nl(e,t){il&&a("253"),ol=e,al=t,Al(e,t,!1),Cl(1073741823,!1)}function Al(e,t,n){if(il&&a("245"),il=!0,n){var r=e.finishedWork;null!==r?Dl(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,wr(r)),Wa(e,n),null!==(r=e.finishedWork)&&(Sl()?e.finishedWork=r:Dl(e,r,t)))}else null!==(r=e.finishedWork)?Dl(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,wr(r)),Wa(e,n),null!==(r=e.finishedWork)&&Dl(e,r,t));il=!1}function Dl(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===pl?pl=[r]:pl.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===yl?gl++:(yl=e,gl=0),o.unstable_runWithPriority(o.unstable_ImmediatePriority,function(){Ka(e,t)})}function Il(e){null===ol&&a("246"),ol.expirationTime=0,ul||(ul=!0,sl=e)}function Ll(e,t){var n=cl;cl=!0;try{return e(t)}finally{(cl=n)||il||Cl(1073741823,!1)}}function jl(e,t){if(cl&&!fl){fl=!0;try{return e(t)}finally{fl=!1}}return e(t)}function Ml(e,t,n){cl||il||0===ll||(Cl(ll,!1),ll=0);var r=cl;cl=!0;try{return o.unstable_runWithPriority(o.unstable_UserBlockingPriority,function(){return e(t,n)})}finally{(cl=r)||il||Cl(1073741823,!1)}}function Fl(e,t,n,r,i){var o=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(jr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);a("171"),l=void 0}if(1===n.tag){var u=n.type;if(jr(u)){n=Pr(n,u,l);break e}}n=l}else n=Nr;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=Jo(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),za(),Xo(o,i),Xa(o,r),r}function Rl(e,t,n,r){var i=t.current;return Fl(e,t,n,i=Ya(xl(),i),r)}function Pl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Vl(e){var t=1073741822-25*(1+((1073741822-xl()+500)/25|0));t>=Sa&&(t=Sa-1),this._expirationTime=Sa=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Ul(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Bl(e,t,n){e={current:t=Hr(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function zl(e,t,n,r,i){var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var e=Pl(o._internalRoot);a.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Bl(e,!1,t)}(n,r),"function"==typeof i){var l=i;i=function(){var e=Pl(o._internalRoot);l.call(e)}}jl(function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)})}return Pl(o._internalRoot)}function Kl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return ql(t)||a("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Qe,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Se=function(e,t,n){switch(t){case"input":if(xt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=P(r);i||a("90"),ze(r),xt(r,i)}}}break;case"textarea":$n(e,n);break;case"select":null!=(t=n.value)&&Qn(e,!!n.multiple,t,!1)}},Vl.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Ul;return Fl(e,t,null,n,r._onCommit),r},Vl.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Vl.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&a("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,Nl(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Vl.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Ul.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ul.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},Bl.prototype.render=function(e,t){var n=this._internalRoot,r=new Ul;return null!==(t=void 0===t?null:t)&&r.then(t),Rl(e,n,null,r._onCommit),r},Bl.prototype.unmount=function(e){var t=this._internalRoot,n=new Ul;return null!==(e=void 0===e?null:e)&&n.then(e),Rl(null,t,null,n._onCommit),n},Bl.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new Ul;return null!==(n=void 0===n?null:n)&&i.then(n),Rl(t,r,e,i._onCommit),i},Bl.prototype.createBatch=function(){var e=new Vl(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Ie=Ll,Le=Ml,je=function(){il||0===ll||(Cl(ll,!1),ll=0)};var Hl={createPortal:Kl,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return ql(t)||a("200"),zl(null,e,t,!0,n)},render:function(e,t,n){return ql(t)||a("200"),zl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return ql(n)||a("200"),(null==e||void 0===e._reactInternalFiber)&&a("38"),zl(e,t,n,!1,r)},unmountComponentAtNode:function(e){return ql(e)||a("40"),!!e._reactRootContainer&&(jl(function(){zl(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Kl.apply(void 0,arguments)},unstable_batchedUpdates:Ll,unstable_interactiveUpdates:Ml,flushSync:function(e,t){il&&a("187");var n=cl;cl=!0;try{return Za(e,t)}finally{cl=n,Cl(1073741823,!1)}},unstable_createRoot:function(e,t){return ql(e)||a("299","unstable_createRoot"),new Bl(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=cl;cl=!0;try{Za(e)}finally{(cl=t)||il||Cl(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[F,R,P,N.injectEventPluginsByName,y,K,function(e){S(e,z)},Ae,De,Cn,D]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Br=zr(function(e){return t.onCommitFiberRoot(n,e)}),qr=zr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(i({},e,{overrideProps:null,currentDispatcherRef:Ke.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:M,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"});var Gl={default:Hl},Wl=Gl&&Hl||Gl;e.exports=Wl.default||Wl},function(e,t,n){"use strict";e.exports=n(157)},function(e,t,n){"use strict";(function(e){
/** @license React v0.13.6
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,i=3,o=-1,a=-1,l=!1,u=!1;function s(){if(!l){var e=n.expirationTime;u?T():u=!0,x(p,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var o=i,l=a;i=e,a=t;try{var u=r()}finally{i=o,a=l}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,s()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}function f(){if(-1===o&&null!==n&&1===n.priorityLevel){l=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{l=!1,null!==n?s():u=!1}}}function p(e){l=!0;var i=r;r=e;try{if(e)for(;null!==n;){var o=t.unstable_now();if(!(n.expirationTime<=o))break;do{c()}while(null!==n&&n.expirationTime<=o)}else if(null!==n)do{c()}while(null!==n&&!E())}finally{l=!1,r=i,null!==n?s():u=!1,f()}}var d,h,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){d=y(function(t){g(h),e(t)}),h=v(function(){b(d),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var k=performance;t.unstable_now=function(){return k.now()}}else t.unstable_now=function(){return m.now()};var x,T,E,_=null;if("undefined"!=typeof window?_=window:void 0!==e&&(_=e),_&&_._schedMock){var S=_._schedMock;x=S[0],T=S[1],E=S[2],t.unstable_now=S[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var O=null,C=function(e){if(null!==O)try{O(e)}finally{O=null}};x=function(e){null!==O?setTimeout(x,0,e):(O=e,setTimeout(C,0,!1))},T=function(){O=null},E=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var N=null,A=!1,D=-1,I=!1,L=!1,j=0,M=33,F=33;E=function(){return j<=t.unstable_now()};var R=new MessageChannel,P=R.port2;R.port1.onmessage=function(){A=!1;var e=N,n=D;N=null,D=-1;var r=t.unstable_now(),i=!1;if(0>=j-r){if(!(-1!==n&&n<=r))return I||(I=!0,w(V)),N=e,void(D=n);i=!0}if(null!==e){L=!0;try{e(i)}finally{L=!1}}};var V=function(e){if(null!==N){w(V);var t=e-j+F;t<F&&M<F?(8>t&&(t=8),F=t<M?M:t):M=t,j=e+F,A||(A=!0,P.postMessage(void 0))}else I=!1};x=function(e,t){N=e,D=t,L||0>t?P.postMessage(void 0):I||(I=!0,w(V))},T=function(){N=null,A=!1,D=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,a=o;i=e,o=t.unstable_now();try{return n()}finally{i=r,o=a,f()}},t.unstable_next=function(e){switch(i){case 1:case 2:case 3:var n=3;break;default:n=i}var r=i,a=o;i=n,o=t.unstable_now();try{return e()}finally{i=r,o=a,f()}},t.unstable_scheduleCallback=function(e,r){var a=-1!==o?o:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=a+r.timeout;else switch(i){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(e={callback:e,priorityLevel:i,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,s();else{a=null;var l=n;do{if(l.expirationTime>r){a=l;break}l=l.next}while(l!==n);null===a?a=n:a===n&&(n=e,s()),(r=a.previous).next=a.previous=e,e.next=a,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=i;return function(){var r=i,a=o;i=n,o=t.unstable_now();try{return e.apply(this,arguments)}finally{i=r,o=a,f()}}},t.unstable_getCurrentPriorityLevel=function(){return i},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||E())},t.unstable_continueExecution=function(){null!==n&&s()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(42))},function(e,t,n){"use strict";e.exports=n(159).GraphiQL},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.GraphiQL=void 0;var r="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=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}}(),a=A(n(14)),l=A(n(18)),u=A(n(69)),s=n(12),c=n(162),f=n(163),p=n(164),d=n(165),h=n(166),m=n(167),v=n(247),g=n(253),y=n(255),b=n(261),w=A(n(264)),k=A(n(265)),x=A(n(266)),T=A(n(267)),E=A(n(119)),_=A(n(268)),S=n(269),O=n(270),C=n(271),N=n(272);function A(e){return e&&e.__esModule?e:{default:e}}var D=350,I=t.GraphiQL=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));if(L.call(t),"function"!=typeof e.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");t._storage=new k.default(e.storage);var o=void 0!==e.query?e.query:null!==t._storage.get("query")?t._storage.get("query"):void 0!==e.defaultQuery?e.defaultQuery:j,a=(0,x.default)(e.schema,o),l=void 0!==e.variables?e.variables:t._storage.get("variables"),u=void 0!==e.operationName?e.operationName:(0,T.default)(null,t._storage.get("operationName"),a&&a.operations);return t.state=i({schema:e.schema,query:o,variables:l,operationName:u,response:e.response,editorFlex:Number(t._storage.get("editorFlex"))||1,variableEditorOpen:Boolean(l),variableEditorHeight:Number(t._storage.get("variableEditorHeight"))||200,docExplorerOpen:"true"===t._storage.get("docExplorerOpen")||!1,historyPaneOpen:"true"===t._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(t._storage.get("docExplorerWidth"))||D,isWaitingForResponse:!1,subscription:null},a),t._editorQueryID=0,"object"===("undefined"==typeof window?"undefined":r(window))&&window.addEventListener("beforeunload",function(){return t.componentWillUnmount()}),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,a.default.Component),o(n,[{key:"componentDidMount",value:function(){void 0===this.state.schema&&this._fetchSchema(),this.codeMirrorSizer=new w.default,e.g=this}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.state.schema,r=this.state.query,i=this.state.variables,o=this.state.operationName,a=this.state.response;if(void 0!==e.schema&&(n=e.schema),void 0!==e.query&&(r=e.query),void 0!==e.variables&&(i=e.variables),void 0!==e.operationName&&(o=e.operationName),void 0!==e.response&&(a=e.response),n!==this.state.schema||r!==this.state.query||o!==this.state.operationName){var l=this._updateQueryFacts(r,o,this.state.operations,n);void 0!==l&&(o=l.operationName,this.setState(l))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(n=void 0),this.setState({schema:n,query:r,variables:i,operationName:o,response:a},function(){void 0===t.state.schema&&(t.docExplorerComponent.reset(),t._fetchSchema())})}},{key:"componentDidUpdate",value:function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.resultComponent])}},{key:"componentWillUnmount",value:function(){this._storage.set("query",this.state.query),this._storage.set("variables",this.state.variables),this._storage.set("operationName",this.state.operationName),this._storage.set("editorFlex",this.state.editorFlex),this._storage.set("variableEditorHeight",this.state.variableEditorHeight),this._storage.set("docExplorerWidth",this.state.docExplorerWidth),this._storage.set("docExplorerOpen",this.state.docExplorerOpen),this._storage.set("historyPaneOpen",this.state.historyPaneOpen)}},{key:"render",value:function(){var e=this,t=a.default.Children.toArray(this.props.children),r=(0,_.default)(t,function(e){return e.type===n.Logo})||a.default.createElement(n.Logo,null),i=(0,_.default)(t,function(e){return e.type===n.Toolbar})||a.default.createElement(n.Toolbar,null,a.default.createElement(f.ToolbarButton,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),a.default.createElement(f.ToolbarButton,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),a.default.createElement(f.ToolbarButton,{onClick:this.handleToggleHistory,title:"Show History",label:"History"})),o=(0,_.default)(t,function(e){return e.type===n.Footer}),l={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},u={display:this.state.docExplorerOpen?"block":"none",width:this.state.docExplorerWidth},s="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),p={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:"7"},d=this.state.variableEditorOpen,h={height:d?this.state.variableEditorHeight:null};return a.default.createElement("div",{className:"graphiql-container"},a.default.createElement("div",{className:"historyPaneWrap",style:p},a.default.createElement(b.QueryHistory,{operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,queryID:this._editorQueryID},a.default.createElement("div",{className:"docExplorerHide",onClick:this.handleToggleHistory},"✕"))),a.default.createElement("div",{className:"editorWrap"},a.default.createElement("div",{className:"topBarWrap"},a.default.createElement("div",{className:"topBar"},r,a.default.createElement(c.ExecuteButton,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),i),!this.state.docExplorerOpen&&a.default.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs},"Docs")),a.default.createElement("div",{ref:function(t){e.editorBarComponent=t},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},a.default.createElement("div",{className:"queryWrap",style:l},a.default.createElement(m.QueryEditor,{ref:function(t){e.queryEditorComponent=t},schema:this.state.schema,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme}),a.default.createElement("div",{className:"variable-editor",style:h},a.default.createElement("div",{className:"variable-editor-title",style:{cursor:d?"row-resize":"n-resize"},onMouseDown:this.handleVariableResizeStart},"Query Variables"),a.default.createElement(v.VariableEditor,{ref:function(t){e.variableEditorComponent=t},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme}))),a.default.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&a.default.createElement("div",{className:"spinner-container"},a.default.createElement("div",{className:"spinner"})),a.default.createElement(g.ResultViewer,{ref:function(t){e.resultComponent=t},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip}),o))),a.default.createElement("div",{className:s,style:u},a.default.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),a.default.createElement(y.DocExplorer,{ref:function(t){e.docExplorerComponent=t},schema:this.state.schema},a.default.createElement("div",{className:"docExplorerHide",onClick:this.handleToggleDocs},"✕"))))}},{key:"getQueryEditor",value:function(){return this.queryEditorComponent.getCodeMirror()}},{key:"getVariableEditor",value:function(){return this.variableEditorComponent.getCodeMirror()}},{key:"refresh",value:function(){this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent.getCodeMirror().refresh(),this.resultComponent.getCodeMirror().refresh()}},{key:"autoCompleteLeafs",value:function(){var e=(0,S.fillLeafs)(this.state.schema,this.state.query,this.props.getDefaultFieldNames),t=e.insertions,n=e.result;if(t&&t.length>0){var r=this.getQueryEditor();r.operation(function(){var e=r.getCursor(),i=r.indexFromPos(e);r.setValue(n);var o=0,a=t.map(function(e){var t=e.index,n=e.string;return r.markText(r.posFromIndex(t+o),r.posFromIndex(t+(o+=n.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(function(){return a.forEach(function(e){return e.clear()})},7e3);var l=i;t.forEach(function(e){var t=e.index,n=e.string;t<i&&(l+=n.length)}),r.setCursor(r.posFromIndex(l))})}return n}},{key:"_fetchSchema",value:function(){var e=this,t=this.props.fetcher,n=F(t({query:N.introspectionQuery}));M(n)?n.then(function(e){if(e.data)return e;var r=F(t({query:N.introspectionQuerySansSubscriptions}));if(!M(n))throw new Error("Fetcher did not return a Promise for introspection.");return r}).then(function(t){if(void 0===e.state.schema)if(t&&t.data){var n=(0,s.buildClientSchema)(t.data),r=(0,x.default)(n,e.state.query);e.setState(i({schema:n},r))}else{var o="string"==typeof t?t:JSON.stringify(t,null,2);e.setState({schema:null,response:o})}}).catch(function(t){e.setState({schema:null,response:t&&String(t.stack||t)})}):this.setState({response:"Fetcher did not return a Promise for introspection."})}},{key:"_fetchQuery",value:function(e,t,n,i){var o=this,a=this.props.fetcher,l=null;try{l=t&&""!==t.trim()?JSON.parse(t):null}catch(e){throw new Error("Variables are invalid JSON: "+e.message+".")}if("object"!==(void 0===l?"undefined":r(l)))throw new Error("Variables are not a JSON object.");var u=a({query:e,variables:l,operationName:n});if(!M(u)){if(R(u))return u.subscribe({next:i,error:function(e){o.setState({isWaitingForResponse:!1,response:e&&String(e.stack||e),subscription:null})},complete:function(){o.setState({isWaitingForResponse:!1,subscription:null})}});throw new Error("Fetcher did not return Promise or Observable.")}u.then(i).catch(function(e){o.setState({isWaitingForResponse:!1,response:e&&String(e.stack||e)})})}},{key:"_runQueryAtCursor",value:function(){if(this.state.subscription)this.handleStopQuery();else{var e=void 0,t=this.state.operations;if(t){var n=this.getQueryEditor();if(n.hasFocus())for(var r=n.getCursor(),i=n.indexFromPos(r),o=0;o<t.length;o++){var a=t[o];if(a.loc.start<=i&&a.loc.end>=i){e=a.name&&a.name.value;break}}}this.handleRunQuery(e)}}},{key:"_didClickDragBar",value:function(e){if(0!==e.button||e.ctrlKey)return!1;var t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;for(var n=u.default.findDOMNode(this.resultComponent);t;){if(t===n)return!0;t=t.parentNode}return!1}}]),n}();I.propTypes={fetcher:l.default.func.isRequired,schema:l.default.instanceOf(s.GraphQLSchema),query:l.default.string,variables:l.default.string,operationName:l.default.string,response:l.default.string,storage:l.default.shape({getItem:l.default.func,setItem:l.default.func,removeItem:l.default.func}),defaultQuery:l.default.string,onEditQuery:l.default.func,onEditVariables:l.default.func,onEditOperationName:l.default.func,onToggleDocs:l.default.func,getDefaultFieldNames:l.default.func,editorTheme:l.default.string,onToggleHistory:l.default.func,ResultsTooltip:l.default.any};var L=function(){var e=this;this.handleClickReference=function(t){e.setState({docExplorerOpen:!0},function(){e.docExplorerComponent.showDocForReference(t)})},this.handleRunQuery=function(t){e._editorQueryID++;var n=e._editorQueryID,r=e.autoCompleteLeafs()||e.state.query,i=e.state.variables,o=e.state.operationName;t&&t!==o&&(o=t,e.handleEditOperationName(o));try{e.setState({isWaitingForResponse:!0,response:null,operationName:o});var a=e._fetchQuery(r,i,o,function(t){n===e._editorQueryID&&e.setState({isWaitingForResponse:!1,response:JSON.stringify(t,null,2)})});e.setState({subscription:a})}catch(t){e.setState({isWaitingForResponse:!1,response:t.message})}},this.handleStopQuery=function(){var t=e.state.subscription;e.setState({isWaitingForResponse:!1,subscription:null}),t&&t.unsubscribe()},this.handlePrettifyQuery=function(){var t=e.getQueryEditor();t.setValue((0,s.print)((0,s.parse)(t.getValue())))},this.handleMergeQuery=function(){var t=e.getQueryEditor(),n=t.getValue();if(n){var r=(0,s.parse)(n);t.setValue((0,s.print)((0,C.mergeAst)(r)))}},this.handleEditQuery=(0,E.default)(100,function(t){var n=e._updateQueryFacts(t,e.state.operationName,e.state.operations,e.state.schema);if(e.setState(i({query:t},n)),e.props.onEditQuery)return e.props.onEditQuery(t)}),this._updateQueryFacts=function(t,n,r,o){var a=(0,x.default)(o,t);if(a){var l=(0,T.default)(r,n,a.operations),u=e.props.onEditOperationName;return u&&n!==l&&u(l),i({operationName:l},a)}},this.handleEditVariables=function(t){e.setState({variables:t}),e.props.onEditVariables&&e.props.onEditVariables(t)},this.handleEditOperationName=function(t){var n=e.props.onEditOperationName;n&&n(t)},this.handleHintInformationRender=function(t){t.addEventListener("click",e._onClickHintInformation);var n=void 0;t.addEventListener("DOMNodeRemoved",n=function(){t.removeEventListener("DOMNodeRemoved",n),t.removeEventListener("click",e._onClickHintInformation)})},this.handleEditorRunQuery=function(){e._runQueryAtCursor()},this._onClickHintInformation=function(t){if("typeName"===t.target.className){var n=t.target.innerHTML,r=e.state.schema;if(r){var i=r.getType(n);i&&e.setState({docExplorerOpen:!0},function(){e.docExplorerComponent.showDoc(i)})}}},this.handleToggleDocs=function(){"function"==typeof e.props.onToggleDocs&&e.props.onToggleDocs(!e.state.docExplorerOpen),e.setState({docExplorerOpen:!e.state.docExplorerOpen})},this.handleToggleHistory=function(){"function"==typeof e.props.onToggleHistory&&e.props.onToggleHistory(!e.state.historyPaneOpen),e.setState({historyPaneOpen:!e.state.historyPaneOpen})},this.handleSelectHistoryQuery=function(t,n,r){e.handleEditQuery(t),e.handleEditVariables(n),e.handleEditOperationName(r)},this.handleResizeStart=function(t){if(e._didClickDragBar(t)){t.preventDefault();var n=t.clientX-(0,O.getLeft)(t.target),r=function(t){if(0===t.buttons)return i();var r=u.default.findDOMNode(e.editorBarComponent),o=t.clientX-(0,O.getLeft)(r)-n,a=r.clientWidth-o;e.setState({editorFlex:o/a})},i=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),r=null,i=null});document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)}},this.handleResetResize=function(){e.setState({editorFlex:1})},this.handleDocsResizeStart=function(t){t.preventDefault();var n=e.state.docExplorerWidth,r=t.clientX-(0,O.getLeft)(t.target),i=function(t){if(0===t.buttons)return o();var n=u.default.findDOMNode(e),i=t.clientX-(0,O.getLeft)(n)-r,a=n.clientWidth-i;a<100?e.setState({docExplorerOpen:!1}):e.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(a,650)})},o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.state.docExplorerOpen||e.setState({docExplorerWidth:n}),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",o),i=null,o=null});document.addEventListener("mousemove",i),document.addEventListener("mouseup",o)},this.handleDocsResetResize=function(){e.setState({docExplorerWidth:D})},this.handleVariableResizeStart=function(t){t.preventDefault();var n=!1,r=e.state.variableEditorOpen,i=e.state.variableEditorHeight,o=t.clientY-(0,O.getTop)(t.target),a=function(t){if(0===t.buttons)return l();n=!0;var r=u.default.findDOMNode(e.editorBarComponent),a=t.clientY-(0,O.getTop)(r)-o,s=r.clientHeight-a;s<60?e.setState({variableEditorOpen:!1,variableEditorHeight:i}):e.setState({variableEditorOpen:!0,variableEditorHeight:s})},l=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){n||e.setState({variableEditorOpen:!r}),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l),a=null,l=null});document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)}};I.Logo=function(e){return a.default.createElement("div",{className:"title"},e.children||a.default.createElement("span",null,"Graph",a.default.createElement("em",null,"i"),"QL"))},I.Toolbar=function(e){return a.default.createElement("div",{className:"toolbar"},e.children)},I.QueryEditor=m.QueryEditor,I.VariableEditor=v.VariableEditor,I.ResultViewer=g.ResultViewer,I.Button=f.ToolbarButton,I.ToolbarButton=f.ToolbarButton,I.Group=p.ToolbarGroup,I.Menu=d.ToolbarMenu,I.MenuItem=d.ToolbarMenuItem,I.Select=h.ToolbarSelect,I.SelectOption=h.ToolbarSelectOption,I.Footer=function(e){return a.default.createElement("div",{className:"footer"},e.children)};var j='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that starts\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function M(e){return"object"===(void 0===e?"undefined":r(e))&&"function"==typeof e.then}function F(e){return R(e)?new Promise(function(t,n){var r=e.subscribe(function(e){t(e),r.unsubscribe()},n,function(){n(new Error("no value resolved"))})}):e}function R(e){return"object"===(void 0===e?"undefined":r(e))&&"function"==typeof e.subscribe}}).call(this,n(42))},function(e,t,n){"use strict";var r=n(161);function i(){}e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteButton=void 0;var r=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}}(),i=a(n(14)),o=a(n(18));function a(e){return e&&e.__esModule?e:{default:e}}(t.ExecuteButton=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=function(){n.props.isRunning?n.props.onStop():n.props.onRun()},n._onOptionSelected=function(e){n.setState({optionsOpen:!1}),n.props.onRun(e.name&&e.name.value)},n._onOptionsOpen=function(e){var t=!0,r=e.target;n.setState({highlight:null,optionsOpen:!0});var i=function(e){t&&e.target===r?t=!1:(document.removeEventListener("mouseup",i),i=null,r.parentNode.compareDocumentPosition(e.target)&Node.DOCUMENT_POSITION_CONTAINED_BY||n.setState({optionsOpen:!1}))};document.addEventListener("mouseup",i)},n.state={optionsOpen:!1,highlight:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){var e=this,t=this.props.operations,n=this.state.optionsOpen,r=t&&t.length>1,o=null;if(r&&n){var a=this.state.highlight;o=i.default.createElement("ul",{className:"execute-options"},t.map(function(t){return i.default.createElement("li",{key:t.name?t.name.value:"*",className:t===a?"selected":void 0,onMouseOver:function(){return e.setState({highlight:t})},onMouseOut:function(){return e.setState({highlight:null})},onMouseUp:function(){return e._onOptionSelected(t)}},t.name?t.name.value:"<Unnamed>")}))}var l=void 0;!this.props.isRunning&&r||(l=this._onClick);var u=void 0;this.props.isRunning||!r||n||(u=this._onOptionsOpen);var s=this.props.isRunning?i.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):i.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return i.default.createElement("div",{className:"execute-button-wrap"},i.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:u,onClick:l,title:"Execute Query (Ctrl-Enter)"},i.default.createElement("svg",{width:"34",height:"34"},s)),o)}}]),t}()).propTypes={onRun:o.default.func,onStop:o.default.func,isRunning:o.default.bool,operations:o.default.array}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarButton=void 0;var r=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}}(),i=a(n(14)),o=a(n(18));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){e.preventDefault()}(t.ToolbarButton=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=function(e){e.preventDefault();try{n.props.onClick(),n.setState({error:null})}catch(e){n.setState({error:e})}},n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){var e=this.state.error;return i.default.createElement("a",{className:"toolbar-button"+(e?" error":""),onMouseDown:l,onClick:this.handleClick,title:e?e.message:this.props.title},this.props.label)}}]),t}()).propTypes={onClick:o.default.func,title:o.default.string,label:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarGroup=function(e){var t=e.children;return o.default.createElement("div",{className:"toolbar-button-group"},t)};var r,i=n(14),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarMenu=void 0;var r=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}}();t.ToolbarMenuItem=l;var i=a(n(14)),o=a(n(18));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.onSelect,n=e.title,r=e.label;return i.default.createElement("li",{onMouseOver:function(e){e.target.className="hover"},onMouseOut:function(e){e.target.className=null},onMouseDown:u,onMouseUp:t,title:n},r)}function u(e){e.preventDefault()}(t.ToolbarMenu=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleOpen=function(e){u(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e=this,t=this.state.visible;return i.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:u,ref:function(t){e._node=t},title:this.props.title},this.props.label,i.default.createElement("svg",{width:"14",height:"8"},i.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),i.default.createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(u(e),this.setState({visible:!1}),this._release())}}]),t}()).propTypes={title:o.default.string,label:o.default.string},l.propTypes={onSelect:o.default.func,title:o.default.string,label:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarSelect=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=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}}();t.ToolbarSelectOption=u;var o=l(n(14)),a=l(n(18));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.onSelect,n=e.label,r=e.selected;return o.default.createElement("li",{onMouseOver:function(e){e.target.className="hover"},onMouseOut:function(e){e.target.className=null},onMouseDown:s,onMouseUp:t},n,r&&o.default.createElement("svg",{width:"13",height:"13"},o.default.createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835 10.686,0 13,2.314 4.851,10.462"})))}function s(e){e.preventDefault()}(t.ToolbarSelect=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleOpen=function(e){s(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e=this,t=void 0,n=this.state.visible,i=o.default.Children.map(this.props.children,function(n,i){t&&!n.props.selected||(t=n);var a=n.props.onSelect||e.props.onSelect&&e.props.onSelect.bind(null,n.props.value,i);return o.default.createElement(u,r({},n.props,{onSelect:a}))});return o.default.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:s,ref:function(t){e._node=t},title:this.props.title},t.props.label,o.default.createElement("svg",{width:"13",height:"10"},o.default.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),o.default.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),o.default.createElement("ul",{className:"toolbar-select-options"+(n?" open":"")},i))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(s(e),this.setState({visible:!1}),this._release())}}]),t}()).propTypes={title:a.default.string,label:a.default.string,onSelect:a.default.func},u.propTypes={onSelect:a.default.func,selected:a.default.bool,label:a.default.string,value:a.default.any}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryEditor=void 0;var r=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}}(),i=c(n(14)),o=c(n(18)),a=n(12),l=c(n(70)),u=n(223),s=c(n(103));function c(e){return e&&e.__esModule?e:{default:e}}var f=new l.default,p=/^[a-zA-Z0-9_@(]$/;(t.QueryEditor=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._onKeyUp=function(e,t){p.test(t.key)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(e,t){(0,s.default)(e,t,n.props.onHintInformationRender)},n.cachedValue=e.value||"",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=this,t=n(10);n(104),n(224),n(74),n(105),n(75),n(76),n(106),n(43),n(77),n(44),n(107),n(78),n(226),n(242),n(243),n(244),n(246),this.editor=t(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{schema:this.props.schema},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1},info:{schema:this.props.schema,renderDescription:function(e){return f.render(e)},onClick:function(t){return e.props.onClickReference(t)}},jump:{schema:this.props.schema,onClick:function(t){return e.props.onClickReference(t)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":function(){return e.editor.showHint({completeSingle:!0})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!0})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!0})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!0})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()},"Cmd-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"}}),this.editor.on("change",this._onEdit),this.editor.on("keyup",this._onKeyUp),this.editor.on("hasCompletion",this._onHasCompletion),this.editor.on("beforeChange",this._onBeforeChange)}},{key:"componentDidUpdate",value:function(e){var t=n(10);this.ignoreChangeEvent=!0,this.props.schema!==e.schema&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,t.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1}},{key:"componentWillUnmount",value:function(){this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"query-editor",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.editor}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}},{key:"_onBeforeChange",value:function(e,t){if("paste"===t.origin){var n=t.text.map(u.normalizeWhitespace);t.update(t.from,t.to,n)}}}]),t}()).propTypes={schema:o.default.instanceOf(a.GraphQLSchema),value:o.default.string,onEdit:o.default.func,readOnly:o.default.bool,onHintInformationRender:o.default.func,onClickReference:o.default.func,onPrettifyQuery:o.default.func,onMergeQuery:o.default.func,onRunQuery:o.default.func,editorTheme:o.default.string}},function(e,t,n){"use strict";var r=n(8),i=n(176),o=n(180),a=n(181),l=n(189),u=n(203),s=n(216),c=n(96),f=n(218),p={default:n(220),zero:n(221),commonmark:n(222)},d=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!d.test(t)||!!h.test(t)}var v=["http:","https:","mailto:"];function g(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=f.toASCII(t.hostname)}catch(e){}return c.encode(c.format(t))}function y(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=f.toUnicode(t.hostname)}catch(e){}return c.decode(c.format(t))}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new u,this.block=new l,this.core=new a,this.renderer=new o,this.linkify=new s,this.validateLink=m,this.normalizeLink=g,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=p[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"",backsim:"∽",backsimeq:"⋍",Backslash:"",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"",Bernoullis:"",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"",caps:"∩︀",caret:"",caron:"ˇ",Cayleys:"",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"",dd:"",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:"",emsp14:"",emsp:"",ENG:"Ŋ",eng:"ŋ",ensp:"",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"",Escr:"",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"",exponentiale:"",ExponentialE:"",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"",frown:"⌢",fscr:"𝒻",Fscr:"",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:"",half:"½",hamilt:"",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"",HilbertSpace:"",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"",hyphen:"",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"",Igrave:"Ì",igrave:"ì",ii:"",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"",ImaginaryI:"",imagline:"",imagpart:"",imath:"ı",Im:"",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"",lscr:"𝓁",Lscr:"",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"",lsquor:"",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:"",Mellintrf:"",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"",middot:"·",minusb:"⊟",minus:"",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:"",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"",ord:"⩝",order:"",orderof:"",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"",pointint:"⨕",popf:"𝕡",Popf:"",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"",Prime:"″",primes:"",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:"",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"",rationals:"",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"",realine:"",realpart:"",reals:"",Re:"",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"",rscr:"𝓇",Rscr:"",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"",rsquor:"",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"",setmn:"",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"",smashp:"⨳",smeparsl:"⧤",smid:"",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"",ThickSpace:"",ThinSpace:"",thinsp:"",thkap:"≈",thksim:"",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"",Vee:"",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:"",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,l,u,s,c="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),s=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),o=0,a=e.length;o<a;o++)if(l=e.charCodeAt(o),n&&37===l&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(l<128)c+=s[l];else if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";var r={};function i(e,t){var n;return"string"!=typeof t&&(t=i.defaultChars),n=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n);for(t=0;t<e.length;t++)i[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return i}(t),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,r,i,o,a,l,u,s="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?s+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(s+=(u=i<<6&1984|63&o)<128?"<22><>":String.fromCharCode(u),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(s+=(u=i<<12&61440|o<<6&4032|63&a)<2048||u>=55296&&u<=57343?"<22><><EFBFBD>":String.fromCharCode(u),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),l=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&l))?((u=i<<18&1835008|o<<12&258048|a<<6&4032|63&l)<65536||u>1114111?s+="<22><><EFBFBD><EFBFBD>":(u-=65536,s+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):s+="<22>";return s})}i.defaultChars=";/?:@&=+$,#",i.componentChars="",e.exports=i},function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),s=["%","/","?",";","#"].concat(u),c=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,o,l,u,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var v=a.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var g=i.exec(m);if(g&&(o=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(t||g||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(u="//"===m.substr(0,2))||g&&d[g]||(m=m.substr(2),this.slashes=!0)),!d[g]&&(u||g&&!h[g])){var y,b,w=-1;for(n=0;n<c.length;n++)-1!==(l=m.indexOf(c[n]))&&(-1===w||l<w)&&(w=l);for(-1!==(b=-1===w?m.lastIndexOf("@"):m.lastIndexOf("@",w))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),w=-1,n=0;n<s.length;n++)-1!==(l=m.indexOf(s[n]))&&(-1===w||l<w)&&(w=l);-1===w&&(w=m.length),":"===m[w-1]&&w--;var k=m.slice(0,w);m=m.slice(w),this.parseHost(k),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x){var T=this.hostname.split(/\./);for(n=0,r=T.length;n<r;n++){var E=T[n];if(E&&!E.match(f)){for(var _="",S=0,O=E.length;S<O;S++)E.charCodeAt(S)>127?_+="x":_+=E[S];if(!_.match(f)){var C=T.slice(0,n),N=T.slice(n+1),A=E.match(p);A&&(C.push(A[1]),N.unshift(A[2])),N.length&&(m=N.join(".")+m),this.hostname=C.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=m.indexOf("#");-1!==D&&(this.hash=m.substr(D),m=m.slice(0,D));var I=m.indexOf("?");return-1!==I&&(this.search=m.substr(I),m=m.slice(0,I)),m&&(this.pathname=m),h[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(97),t.Cc=n(98),t.Cf=n(175),t.P=n(71),t.Z=n(99)},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.parseLinkLabel=n(177),t.parseLinkDestination=n(178),t.parseLinkTitle=n(179)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,l=-1,u=e.posMax,s=e.pos;for(e.pos=t+1,r=1;e.pos<u;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=s,-1}return i&&(l=e.pos),e.pos=s,l}},function(e,t,n){"use strict";var r=n(8).isSpace,i=n(8).unescapeAll;e.exports=function(e,t,n){var o,a,l=t,u={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(o=e.charCodeAt(t))||r(o))return u;if(62===o)return u.pos=t+1,u.str=i(e.slice(l+1,t)),u.ok=!0,u;92===o&&t+1<n?t+=2:t++}return u}for(a=0;t<n&&32!==(o=e.charCodeAt(t))&&!(o<32||127===o);)if(92===o&&t+1<n)t+=2;else{if(40===o&&a++,41===o){if(0===a)break;a--}t++}return l===t?u:0!==a?u:(u.str=i(e.slice(l,t)),u.lines=0,u.pos=t,u.ok=!0,u)}},function(e,t,n){"use strict";var r=n(8).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,l=t,u={ok:!1,pos:0,lines:0,str:""};if(t>=n)return u;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return u;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return u.pos=t+1,u.lines=a,u.str=r(e.slice(l+1,t)),u.ok=!0,u;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return u}},function(e,t,n){"use strict";var r=n(8).assign,i=n(8).unescapeAll,o=n(8).escapeHtml,a={};function l(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return"<code"+i.renderAttrs(a)+">"+o(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,i){var a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+o(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var l,u,s,c,f=e[t],p=f.info?i(f.info).trim():"",d="";return p&&(d=p.split(/\s+/g)[0]),0===(l=n.highlight&&n.highlight(f.content,d)||o(f.content)).indexOf("<pre")?l+"\n":p?(u=f.attrIndex("class"),s=f.attrs?f.attrs.slice():[],u<0?s.push(["class",n.langPrefix+d]):s[u][1]+=" "+n.langPrefix+d,c={attrs:s},"<pre><code"+a.renderAttrs(c)+">"+l+"</code></pre>\n"):"<pre><code"+a.renderAttrs(f)+">"+l+"</code></pre>\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},l.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},l.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?o=!1:-1===r.nesting&&r.tag===a.tag&&(o=!1))),i+=o?">\n":">")},l.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,l=e.length;a<l;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},l.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type&&(r+=this.renderInlineAsText(e[i].children,t,n));return r},l.prototype.render=function(e,t,n){var r,i,o,a="",l=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==l[o]?a+=l[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=l},function(e,t,n){"use strict";var r=n(72),i=[["normalize",n(182)],["block",n(183)],["inline",n(184)],["linkify",n(185)],["replacements",n(186)],["smartquotes",n(187)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(188),e.exports=o},function(e,t,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,i=/\u0000/g;e.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(i,"<22>"),e.src=t}},function(e,t,n){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},function(e,t,n){"use strict";var r=n(8).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,l,u,s,c,f,p,d,h,m,v,g,y,b,w,k=e.tokens;if(e.md.options.linkify)for(n=0,o=k.length;n<o;n++)if("inline"===k[n].type&&e.md.linkify.pretest(k[n].content))for(m=0,t=(a=k[n].children).length-1;t>=0;t--)if("link_close"!==(u=a[t]).type){if("html_inline"===u.type&&(w=u.content,/^<a[>\s]/i.test(w)&&m>0&&m--,i(u.content)&&m++),!(m>0)&&"text"===u.type&&e.md.linkify.test(u.content)){for(f=u.content,b=e.md.linkify.match(f),s=[],h=u.level,d=0,c=0;c<b.length;c++)v=b[c].url,g=e.md.normalizeLink(v),e.md.validateLink(g)&&(y=b[c].text,y=b[c].schema?"mailto:"!==b[c].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(p=b[c].index)>d&&((l=new e.Token("text","",0)).content=f.slice(d,p),l.level=h,s.push(l)),(l=new e.Token("link_open","a",1)).attrs=[["href",g]],l.level=h++,l.markup="linkify",l.info="auto",s.push(l),(l=new e.Token("text","",0)).content=y,l.level=h,s.push(l),(l=new e.Token("link_close","a",-1)).level=--h,l.markup="linkify",l.info="auto",s.push(l),d=b[c].lastIndex);d<f.length&&((l=new e.Token("text","",0)).content=f.slice(d),l.level=h,s.push(l)),k[n].children=a=r(a,t,s)}}else for(t--;a[t].level!==u.level&&"link_open"!==a[t].type;)t--}},function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,i=/\((c|tm|r|p)\)/i,o=/\((c|tm|r|p)\)/gi,a={c:"©",r:"®",p:"§",tm:"™"};function l(e,t){return a[t.toLowerCase()]}function u(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(o,l)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function s(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1$2")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(i.test(e.tokens[t].content)&&u(e.tokens[t].children),r.test(e.tokens[t].content)&&s(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(8).isWhiteSpace,i=n(8).isPunctChar,o=n(8).isMdAsciiPunct,a=/['"]/,l=/['"]/g,u="";function s(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,a,c,f,p,d,h,m,v,g,y,b,w,k,x,T,E,_,S,O,C;for(S=[],n=0;n<e.length;n++){for(a=e[n],h=e[n].level,E=S.length-1;E>=0&&!(S[E].level<=h);E--);if(S.length=E+1,"text"===a.type){p=0,d=(c=a.content).length;e:for(;p<d&&(l.lastIndex=p,f=l.exec(c));){if(x=T=!0,p=f.index+1,_="'"===f[0],v=32,f.index-1>=0)v=c.charCodeAt(f.index-1);else for(E=n-1;E>=0&&("softbreak"!==e[E].type&&"hardbreak"!==e[E].type);E--)if("text"===e[E].type){v=e[E].content.charCodeAt(e[E].content.length-1);break}if(g=32,p<d)g=c.charCodeAt(p);else for(E=n+1;E<e.length&&("softbreak"!==e[E].type&&"hardbreak"!==e[E].type);E++)if("text"===e[E].type){g=e[E].content.charCodeAt(0);break}if(y=o(v)||i(String.fromCharCode(v)),b=o(g)||i(String.fromCharCode(g)),w=r(v),(k=r(g))?x=!1:b&&(w||y||(x=!1)),w?T=!1:y&&(k||b||(T=!1)),34===g&&'"'===f[0]&&v>=48&&v<=57&&(T=x=!1),x&&T&&(x=!1,T=b),x||T){if(T)for(E=S.length-1;E>=0&&(m=S[E],!(S[E].level<h));E--)if(m.single===_&&S[E].level===h){m=S[E],_?(O=t.md.options.quotes[2],C=t.md.options.quotes[3]):(O=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=s(a.content,f.index,C),e[m.token].content=s(e[m.token].content,m.pos,O),p+=C.length-1,m.token===n&&(p+=O.length-1),d=(c=a.content).length,S.length=E;continue e}x?S.push({token:n,pos:f.index,single:_,level:h}):T&&_&&(a.content=s(a.content,f.index,u))}else _&&(a.content=s(a.content,f.index,u))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(73);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var r=n(72),i=[["table",n(190),["paragraph","reference"]],["code",n(191)],["fence",n(192),["paragraph","reference","blockquote","list"]],["blockquote",n(193),["paragraph","reference","blockquote","list"]],["hr",n(194),["paragraph","reference","blockquote","list"]],["list",n(195),["paragraph","reference","blockquote"]],["reference",n(196)],["heading",n(197),["paragraph","reference","blockquote"]],["lheading",n(198)],["html_block",n(199),["paragraph","reference","blockquote"]],["paragraph",n(201)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,l=!1,u=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=u){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),(a=e.line)<n&&e.isEmpty(a)&&(l=!0,a++,e.line=a)}},o.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n(202),e.exports=o},function(e,t,n){"use strict";var r=n(8).isSpace;function i(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=0,a=0,l=!1,u=0;for(t=e.charCodeAt(r);r<i;)96===t?l?(l=!1,u=r):o%2==0&&(l=!0,u=r):124!==t||o%2!=0||l||(n.push(e.substring(a,r)),a=r+1),92===t?o++:o=0,++r===i&&l&&(l=!1,r=u+1),t=e.charCodeAt(r);return n.push(e.substring(a)),n}e.exports=function(e,t,n,a){var l,u,s,c,f,p,d,h,m,v,g,y;if(t+2>n)return!1;if(f=t+1,e.sCount[f]<e.blkIndent)return!1;if(e.sCount[f]-e.blkIndent>=4)return!1;if((s=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(l=e.src.charCodeAt(s++))&&45!==l&&58!==l)return!1;for(;s<e.eMarks[f];){if(124!==(l=e.src.charCodeAt(s))&&45!==l&&58!==l&&!r(l))return!1;s++}for(p=(u=i(e,t+1)).split("|"),m=[],c=0;c<p.length;c++){if(!(v=p[c].trim())){if(0===c||c===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?m.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(u=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=(p=o(u.replace(/^\||\|$/g,""))).length)>m.length)return!1;if(a)return!0;for((h=e.push("table_open","table",1)).map=g=[t,0],(h=e.push("thead_open","thead",1)).map=[t,t+1],(h=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<p.length;c++)(h=e.push("th_open","th",1)).map=[t,t+1],m[c]&&(h.attrs=[["style","text-align:"+m[c]]]),(h=e.push("inline","",0)).content=p[c].trim(),h.map=[t,t+1],h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),(h=e.push("tbody_open","tbody",1)).map=y=[t+2,0],f=t+2;f<n&&!(e.sCount[f]<e.blkIndent)&&-1!==(u=i(e,f).trim()).indexOf("|")&&!(e.sCount[f]-e.blkIndent>=4);f++){for(p=o(u.replace(/^\||\|$/g,"")),h=e.push("tr_open","tr",1),c=0;c<d;c++)h=e.push("td_open","td",1),m[c]&&(h.attrs=[["style","text-align:"+m[c]]]),(h=e.push("inline","",0)).content=p[c]?p[c].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return h=e.push("tbody_close","tbody",-1),h=e.push("table_close","table",-1),g[1]=y[1]=f,e.line=f,!0}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o,a,l,u,s,c,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(u=p,(o=(p=e.skipChars(p,i))-u)<3)return!1;if(c=e.src.slice(u,p),(a=e.src.slice(p,d)).indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(l=t;!(++l>=n)&&!((p=u=e.bMarks[l]+e.tShift[l])<(d=e.eMarks[l])&&e.sCount[l]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[l]-e.blkIndent>=4||(p=e.skipChars(p,i))-u<o||(p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=l+(f?1:0),(s=e.push("fence","code",0)).info=a,s.content=e.getLines(t+1,l,o,!0),s.markup=c,s.map=[t,e.line],!0}},function(e,t,n){"use strict";var r=n(8).isSpace;e.exports=function(e,t,n,i){var o,a,l,u,s,c,f,p,d,h,m,v,g,y,b,w,k,x,T,E,_=e.lineMax,S=e.bMarks[t]+e.tShift[t],O=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(i)return!0;for(u=d=e.sCount[t]+S-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(S)?(S++,u++,d++,o=!1,w=!0):9===e.src.charCodeAt(S)?(w=!0,(e.bsCount[t]+d)%4==3?(S++,u++,d++,o=!1):o=!0):w=!1,h=[e.bMarks[t]],e.bMarks[t]=S;S<O&&(a=e.src.charCodeAt(S),r(a));)9===a?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,S++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(w?1:0),c=S>=O,y=[e.sCount[t]],e.sCount[t]=d-u,b=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],x=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",E=!1,p=t+1;p<n&&(e.sCount[p]<e.blkIndent&&(E=!0),!((S=e.bMarks[p]+e.tShift[p])>=(O=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(S++)||E){if(c)break;for(k=!1,l=0,s=x.length;l<s;l++)if(x[l](e,p,n,!0)){k=!0;break}if(k){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}else{for(u=d=e.sCount[p]+S-(e.bMarks[p]+e.tShift[p]),32===e.src.charCodeAt(S)?(S++,u++,d++,o=!1,w=!0):9===e.src.charCodeAt(S)?(w=!0,(e.bsCount[p]+d)%4==3?(S++,u++,d++,o=!1):o=!0):w=!1,h.push(e.bMarks[p]),e.bMarks[p]=S;S<O&&(a=e.src.charCodeAt(S),r(a));)9===a?d+=4-(d+e.bsCount[p]+(o?1:0))%4:d++,S++;c=S>=O,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(w?1:0),y.push(e.sCount[p]),e.sCount[p]=d-u,b.push(e.tShift[p]),e.tShift[p]=S-e.bMarks[p]}for(v=e.blkIndent,e.blkIndent=0,(T=e.push("blockquote_open","blockquote",1)).markup=">",T.map=f=[t,0],e.md.block.tokenize(e,t,p),(T=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=_,e.parentType=g,f[1]=e.line,l=0;l<b.length;l++)e.bMarks[l+t]=h[l],e.tShift[l+t]=b[l],e.sCount[l+t]=y[l],e.bsCount[l+t]=m[l];return e.blkIndent=v,!0}},function(e,t,n){"use strict";var r=n(8).isSpace;e.exports=function(e,t,n,i){var o,a,l,u,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(s++))&&45!==o&&95!==o)return!1;for(a=1;s<c;){if((l=e.src.charCodeAt(s++))!==o&&!r(l))return!1;l===o&&a++}return!(a<3)&&(!!i||(e.line=t+1,(u=e.push("hr","hr",0)).map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(o)),!0))}},function(e,t,n){"use strict";var r=n(8).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n?-1:i<o&&(a=e.src.charCodeAt(i),!r(a))?-1:i}function o(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,a=e.eMarks[t];if(o+1>=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o<a&&(n=e.src.charCodeAt(o),!r(n))?-1:o}e.exports=function(e,t,n,r){var a,l,u,s,c,f,p,d,h,m,v,g,y,b,w,k,x,T,E,_,S,O,C,N,A,D,I,L,j=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(j=!0),(C=o(e,t))>=0){if(p=!0,A=e.bMarks[t]+e.tShift[t],y=Number(e.src.substr(A,C-A-1)),j&&1!==y)return!1}else{if(!((C=i(e,t))>=0))return!1;p=!1}if(j&&e.skipSpaces(C)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(C-1),r)return!0;for(v=e.tokens.length,p?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=m=[t,0],L.markup=String.fromCharCode(g),w=t,N=!1,I=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";w<n;){for(O=C,b=e.eMarks[w],f=k=e.sCount[w]+C-(e.bMarks[t]+e.tShift[t]);O<b;){if(9===(a=e.src.charCodeAt(O)))k+=4-(k+e.bsCount[w])%4;else{if(32!==a)break;k++}O++}if((c=(l=O)>=b?1:k-f)>4&&(c=1),s=f+c,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),L.map=d=[t,0],x=e.blkIndent,S=e.tight,_=e.tShift[t],T=e.sCount[t],e.blkIndent=s,e.tight=!0,e.tShift[t]=l-e.bMarks[t],e.sCount[t]=k,l>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(M=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=x,e.tShift[t]=_,e.sCount[t]=T,e.tight=S,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),w=t=e.line,d[1]=w,l=e.bMarks[t],w>=n)break;if(e.sCount[w]<e.blkIndent)break;for(D=!1,u=0,h=I.length;u<h;u++)if(I[u](e,w,n,!0)){D=!0;break}if(D)break;if(p){if((C=o(e,w))<0)break}else if((C=i(e,w))<0)break;if(g!==e.src.charCodeAt(C-1))break}return(L=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),m[1]=w,e.line=w,e.parentType=E,M&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,v),!0}},function(e,t,n){"use strict";var r=n(8).normalizeReference,i=n(8).isSpace;e.exports=function(e,t,n,o){var a,l,u,s,c,f,p,d,h,m,v,g,y,b,w,k,x=0,T=e.bMarks[t]+e.tShift[t],E=e.eMarks[t],_=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(T))return!1;for(;++T<E;)if(93===e.src.charCodeAt(T)&&92!==e.src.charCodeAt(T-1)){if(T+1===E)return!1;if(58!==e.src.charCodeAt(T+1))return!1;break}for(s=e.lineMax,w=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";_<s&&!e.isEmpty(_);_++)if(!(e.sCount[_]-e.blkIndent>3||e.sCount[_]<0)){for(b=!1,f=0,p=w.length;f<p;f++)if(w[f](e,_,s,!0)){b=!0;break}if(b)break}for(E=(y=e.getLines(t,_,e.blkIndent,!1).trim()).length,T=1;T<E;T++){if(91===(a=y.charCodeAt(T)))return!1;if(93===a){h=T;break}10===a?x++:92===a&&++T<E&&10===y.charCodeAt(T)&&x++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(T=h+2;T<E;T++)if(10===(a=y.charCodeAt(T)))x++;else if(!i(a))break;if(!(v=e.md.helpers.parseLinkDestination(y,T,E)).ok)return!1;if(c=e.md.normalizeLink(v.str),!e.md.validateLink(c))return!1;for(l=T=v.pos,u=x+=v.lines,g=T;T<E;T++)if(10===(a=y.charCodeAt(T)))x++;else if(!i(a))break;for(v=e.md.helpers.parseLinkTitle(y,T,E),T<E&&g!==T&&v.ok?(k=v.str,T=v.pos,x+=v.lines):(k="",T=l,x=u);T<E&&(a=y.charCodeAt(T),i(a));)T++;if(T<E&&10!==y.charCodeAt(T)&&k)for(k="",T=l,x=u;T<E&&(a=y.charCodeAt(T),i(a));)T++;return!(T<E&&10!==y.charCodeAt(T))&&(!!(d=r(y.slice(1,h)))&&(!!o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:k,href:c}),e.parentType=m,e.line=t+x+1,!0)))}},function(e,t,n){"use strict";var r=n(8).isSpace;e.exports=function(e,t,n,i){var o,a,l,u,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(s))||s>=c)return!1;for(a=1,o=e.src.charCodeAt(++s);35===o&&s<c&&a<=6;)a++,o=e.src.charCodeAt(++s);return!(a>6||s<c&&!r(o))&&(!!i||(c=e.skipSpacesBack(c,s),(l=e.skipCharsBack(c,35,s))>s&&r(e.src.charCodeAt(l-1))&&(c=l),e.line=t+1,(u=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),u.map=[t,e.line],(u=e.push("inline","",0)).content=e.src.slice(s,c).trim(),u.map=[t,e.line],u.children=[],(u=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a),!0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,l,u,s,c,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d])<(s=e.eMarks[d])&&(45===(f=e.src.charCodeAt(u))||61===f)&&(u=e.skipChars(u,f),(u=e.skipSpaces(u))>=s)){c=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(l=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(f),l.map=[t,e.line],(l=e.push("inline","",0)).content=r,l.map=[t,e.line-1],l.children=[],(l=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}},function(e,t,n){"use strict";var r=n(200),i=n(100).HTML_OPEN_CLOSE_TAG_RE,o=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,l,u,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(s))return!1;for(u=e.src.slice(s,c),i=0;i<o.length&&!o[i][0].test(u);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(u))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(s=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],u=e.src.slice(s,c),o[i][1].test(u)){0!==u.length&&a++;break}return e.line=a,(l=e.push("html_block","",0)).map=[t,a],l.content=e.getLines(t,a,e.blkIndent,!0),!0}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,l,u=t+1,s=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(l=e.parentType,e.parentType="paragraph";u<c&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3||e.sCount[u]<0)){for(r=!1,i=0,o=s.length;i<o;i++)if(s[i](e,u,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=l,!0}},function(e,t,n){"use strict";var r=n(73),i=n(8).isSpace;function o(e,t,n,r){var o,a,l,u,s,c,f,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,l=u=c=f=0,s=(a=this.src).length;u<s;u++){if(o=a.charCodeAt(u),!p){if(i(o)){c++,9===o?f+=4-f%4:f++;continue}p=!0}10!==o&&u!==s-1||(10!==o&&u++,this.bMarks.push(l),this.eMarks.push(u),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),p=!1,c=0,f=0,l=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),i(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,l,u,s,c,f,p=e;if(e>=t)return"";for(c=new Array(t-e),o=0;p<t;p++,o++){for(a=0,f=u=this.bMarks[p],s=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];u<s&&a<n;){if(l=this.src.charCodeAt(u),i(l))9===l?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(u-f<this.tShift[p]))break;a++}u++}c[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(u,s):this.src.slice(u,s)}return c.join("")},o.prototype.Token=r,e.exports=o},function(e,t,n){"use strict";var r=n(72),i=[["text",n(204)],["newline",n(205)],["escape",n(206)],["backticks",n(207)],["strikethrough",n(101).tokenize],["emphasis",n(102).tokenize],["link",n(208)],["image",n(209)],["autolink",n(210)],["html_inline",n(211)],["entity",n(212)]],o=[["balance_pairs",n(213)],["strikethrough",n(101).postProcess],["emphasis",n(102).postProcess],["text_collapse",n(214)]];function a(){var e;for(this.ruler=new r,e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,l=e.cache;if(void 0===l[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,l[r]=e.pos}else e.pos=l[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,l=new this.State(e,t,n,r);for(this.tokenize(l),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](l)},a.prototype.State=n(215),e.exports=a},function(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},function(e,t,n){"use strict";var r=n(8).isSpace;e.exports=function(e,t){var n,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,i=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<i&&r(e.src.charCodeAt(o));)o++;return e.pos=o,!0}},function(e,t,n){"use strict";for(var r=n(8).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<a){if((n=e.src.charCodeAt(o))<256&&0!==i[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<a&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;for(i=e.src.slice(n,u),o=a=u;-1!==(o=e.src.indexOf("`",a));){for(a=o+1;a<r&&96===e.src.charCodeAt(a);)a++;if(a-o===i.length)return t||((l=e.push("code_inline","code",0)).markup=i,l.content=e.src.slice(u,o).replace(/[ \n]+/g," ").trim()),e.pos=a,!0}return t||(e.pending+=i),e.pos+=i.length,!0}},function(e,t,n){"use strict";var r=n(8).normalizeReference,i=n(8).isSpace;e.exports=function(e,t){var n,o,a,l,u,s,c,f,p,d="",h=e.pos,m=e.posMax,v=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(u=e.pos+1,(l=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=l+1)<m&&40===e.src.charCodeAt(s)){for(g=!1,s++;s<m&&(o=e.src.charCodeAt(s),i(o)||10===o);s++);if(s>=m)return!1;for(v=s,(c=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?s=c.pos:d=""),v=s;s<m&&(o=e.src.charCodeAt(s),i(o)||10===o);s++);if(c=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<m&&v!==s&&c.ok)for(p=c.str,s=c.pos;s<m&&(o=e.src.charCodeAt(s),i(o)||10===o);s++);else p="";(s>=m||41!==e.src.charCodeAt(s))&&(g=!0),s++}if(g){if(void 0===e.env.references)return!1;if(s<m&&91===e.src.charCodeAt(s)?(v=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?a=e.src.slice(v,s++):s=l+1):s=l+1,a||(a=e.src.slice(u,l)),!(f=e.env.references[r(a)]))return e.pos=h,!1;d=f.href,p=f.title}return t||(e.pos=u,e.posMax=l,e.push("link_open","a",1).attrs=n=[["href",d]],p&&n.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=m,!0}},function(e,t,n){"use strict";var r=n(8).normalizeReference,i=n(8).isSpace;e.exports=function(e,t){var n,o,a,l,u,s,c,f,p,d,h,m,v,g="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(u=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=u+1)<b&&40===e.src.charCodeAt(c)){for(c++;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(c>=b)return!1;for(v=c,(p=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(g=e.md.normalizeLink(p.str),e.md.validateLink(g)?c=p.pos:g=""),v=c;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(p=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&v!==c&&p.ok)for(d=p.str,c=p.pos;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);else d="";if(c>=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if(void 0===e.env.references)return!1;if(c<b&&91===e.src.charCodeAt(c)?(v=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?l=e.src.slice(v,c++):c=u+1):c=u+1,l||(l=e.src.slice(s,u)),!(f=e.env.references[r(l)]))return e.pos=y,!1;g=f.href,d=f.title}return t||(a=e.src.slice(s,u),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],h.children=m,h.content=a,d&&n.push(["title",d])),e.pos=c,e.posMax=b,!0}},function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,i=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,o,a,l,u,s,c=e.pos;return 60===e.src.charCodeAt(c)&&(!((n=e.src.slice(c)).indexOf(">")<0)&&(i.test(n)?(l=(o=n.match(i))[0].slice(1,-1),u=e.md.normalizeLink(l),!!e.md.validateLink(u)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",u]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(l),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o[0].length,!0)):!!r.test(n)&&(l=(a=n.match(r))[0].slice(1,-1),u=e.md.normalizeLink("mailto:"+l),!!e.md.validateLink(u)&&(t||((s=e.push("link_open","a",1)).attrs=[["href",u]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(l),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";var r=n(100).HTML_TAG_RE;e.exports=function(e,t){var n,i,o,a=e.pos;return!!e.md.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=o)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(i=e.src.slice(a).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,!0))))}},function(e,t,n){"use strict";var r=n(95),i=n(8).has,o=n(8).isValidEntityCode,a=n(8).fromCodePoint,l=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,s,c=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<f)if(35===e.src.charCodeAt(c+1)){if(s=e.src.slice(c).match(l))return t||(n="x"===s[1][0].toLowerCase()?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=s[0].length,!0}else if((s=e.src.slice(c).match(u))&&i(r,s[1]))return t||(e.pending+=r[s[1]]),e.pos+=s[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,i,o=e.delimiters,a=e.delimiters.length;for(t=0;t<a;t++)if((r=o[t]).close)for(n=t-r.jump-1;n>=0;){if((i=o[n]).open&&i.marker===r.marker&&i.end<0&&i.level===r.level)if(!((i.close||r.open)&&void 0!==i.length&&void 0!==r.length&&(i.length+r.length)%3==0)){r.jump=t-n,r.open=!1,i.end=t,i.jump=0;break}n-=i.jump+1}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)r+=i[t].nesting,i[t].level=r,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},function(e,t,n){"use strict";var r=n(73),i=n(8).isWhiteSpace,o=n(8).isPunctChar,a=n(8).isMdAsciiPunct;function l(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}l.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},l.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n);return n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(i),i},l.prototype.scanDelims=function(e,t){var n,r,l,u,s,c,f,p,d,h=e,m=!0,v=!0,g=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<g&&this.src.charCodeAt(h)===y;)h++;return l=h-e,r=h<g?this.src.charCodeAt(h):32,f=a(n)||o(String.fromCharCode(n)),d=a(r)||o(String.fromCharCode(r)),c=i(n),(p=i(r))?m=!1:d&&(c||f||(m=!1)),c?v=!1:f&&(p||d||(v=!1)),t?(u=m,s=v):(u=m&&(!v||f),s=v&&(!m||d)),{can_open:u,can_close:s,length:l}},l.prototype.Token=r,e.exports=l},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var l={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},s="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function f(e){var t=e.re=n(217)(e.__opts__),r=e.__tlds__.slice();function l(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(s),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(l(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(l(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(l(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(l(t.tpl_host_fuzzy_test),"i");var u=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?o(n.validate)?a.validate=n.validate:c(t,n):a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}),void(o(n.normalize)?a.normalize=n.normalize:n.normalize?c(t,n):a.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?c(t,n):u.push(t)}}),u.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var f=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||l.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},l,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},f(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,f(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,l,u;if(this.re.schema_test.test(e))for((l=this.re.schema_search).lastIndex=0;null!==(t=l.exec(e));)if(i=this.testSchemaAt(e,t[2],l.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),f(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,f(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(97).source,t.src_Cc=n(98).source,t.src_Z=n(99).source,t.src_P=n(71).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var l,u=2147483647,s=36,c=1,f=26,p=38,d=700,h=72,m=128,v="-",g=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=s-c,x=Math.floor,T=String.fromCharCode;function E(e){throw new RangeError(w[e])}function _(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function S(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+_((e=e.replace(b,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function C(e){return _(e,function(e){var t="";return e>65535&&(t+=T((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=T(e)}).join("")}function N(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?x(e/d):e>>1,e+=x(e/t);e>k*f>>1;r+=s)e=x(e/k);return x(r+(k+1)*e/(e+p))}function D(e){var t,n,r,i,o,a,l,p,d,g,y,b=[],w=e.length,k=0,T=m,_=h;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&E("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<w;){for(o=k,a=1,l=s;i>=w&&E("invalid-input"),((p=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:s)>=s||p>x((u-k)/a))&&E("overflow"),k+=p*a,!(p<(d=l<=_?c:l>=_+f?f:l-_));l+=s)a>x(u/(g=s-d))&&E("overflow"),a*=g;_=A(k-o,t=b.length+1,0==o),x(k/t)>u-T&&E("overflow"),T+=x(k/t),k%=t,b.splice(k++,0,T)}return C(b)}function I(e){var t,n,r,i,o,a,l,p,d,g,y,b,w,k,_,S=[];for(b=(e=O(e)).length,t=m,n=0,o=h,a=0;a<b;++a)(y=e[a])<128&&S.push(T(y));for(r=i=S.length,i&&S.push(v);r<b;){for(l=u,a=0;a<b;++a)(y=e[a])>=t&&y<l&&(l=y);for(l-t>x((u-n)/(w=r+1))&&E("overflow"),n+=(l-t)*w,t=l,a=0;a<b;++a)if((y=e[a])<t&&++n>u&&E("overflow"),y==t){for(p=n,d=s;!(p<(g=d<=o?c:d>=o+f?f:d-o));d+=s)_=p-g,k=s-g,S.push(T(N(g+_%k,0))),p=x(_/k);S.push(T(N(p,0))),o=A(n,w,r==i),n=0,++r}++n,++t}return S.join("")}l={version:"1.4.1",ucs2:{decode:O,encode:C},decode:D,encode:I,toASCII:function(e){return S(e,function(e){return y.test(e)?"xn--"+I(e):e})},toUnicode:function(e){return S(e,function(e){return g.test(e)?D(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return l}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(219)(e),n(42))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeWhitespace=function(e){return e.replace(i," ")};var r=t.invalidCharacters=Array.from({length:11},function(e,t){return String.fromCharCode(8192+t)}).concat(["\u2028","\u2029",""]),i=new RegExp("["+r.join("")+"]","g")},function(e,t,n){!function(e){"use strict";var t={},n=/[^\s\u00a0]/,r=e.Pos;function i(e){var t=e.search(n);return-1==t?0:t}function o(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=t);for(var n=1/0,i=this.listSelections(),o=null,a=i.length-1;a>=0;a--){var l=i[a].from(),u=i[a].to();l.line>=n||(u.line>=n&&(u=r(n,0)),n=l.line,null==o?this.uncomment(l,u,e)?o="un":(this.lineComment(l,u,e),o="line"):"un"==o?this.uncomment(l,u,e):this.lineComment(l,u,e))}}),e.defineExtension("lineComment",function(e,a,l){l||(l=t);var u=this,s=o(u,e),c=u.getLine(e.line);if(null!=c&&(f=e,p=c,!/\bstring\b/.test(u.getTokenTypeAt(r(f.line,0)))||/^[\'\"\`]/.test(p))){var f,p,d=l.lineComment||s.lineComment;if(d){var h=Math.min(0!=a.ch||a.line==e.line?a.line+1:a.line,u.lastLine()+1),m=null==l.padding?" ":l.padding,v=l.commentBlankLines||e.line==a.line;u.operation(function(){if(l.indent){for(var t=null,o=e.line;o<h;++o){var a=u.getLine(o),s=a.slice(0,i(a));(null==t||t.length>s.length)&&(t=s)}for(var o=e.line;o<h;++o){var a=u.getLine(o),c=t.length;(v||n.test(a))&&(a.slice(0,c)!=t&&(c=i(a)),u.replaceRange(t+d+m,r(o,0),r(o,c)))}}else for(var o=e.line;o<h;++o)(v||n.test(u.getLine(o)))&&u.replaceRange(d+m,r(o,0))})}else(l.blockCommentStart||s.blockCommentStart)&&(l.fullLines=!0,u.blockComment(e,a,l))}}),e.defineExtension("blockComment",function(e,i,a){a||(a=t);var l=this,u=o(l,e),s=a.blockCommentStart||u.blockCommentStart,c=a.blockCommentEnd||u.blockCommentEnd;if(s&&c){if(!/\bcomment\b/.test(l.getTokenTypeAt(r(e.line,0)))){var f=Math.min(i.line,l.lastLine());f!=e.line&&0==i.ch&&n.test(l.getLine(f))&&--f;var p=null==a.padding?" ":a.padding;e.line>f||l.operation(function(){if(0!=a.fullLines){var t=n.test(l.getLine(f));l.replaceRange(p+c,r(f)),l.replaceRange(s+p,r(e.line,0));var o=a.blockCommentLead||u.blockCommentLead;if(null!=o)for(var d=e.line+1;d<=f;++d)(d!=f||t)&&l.replaceRange(o+p,r(d,0))}else l.replaceRange(c,i),l.replaceRange(s,e)})}}else(a.lineComment||u.lineComment)&&0!=a.fullLines&&l.lineComment(e,i,a)}),e.defineExtension("uncomment",function(e,i,a){a||(a=t);var l,u=this,s=o(u,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,u.lastLine()),f=Math.min(e.line,c),p=a.lineComment||s.lineComment,d=[],h=null==a.padding?" ":a.padding;e:if(p){for(var m=f;m<=c;++m){var v=u.getLine(m),g=v.indexOf(p);if(g>-1&&!/comment/.test(u.getTokenTypeAt(r(m,g+1)))&&(g=-1),-1==g&&n.test(v))break e;if(g>-1&&n.test(v.slice(0,g)))break e;d.push(v)}if(u.operation(function(){for(var e=f;e<=c;++e){var t=d[e-f],n=t.indexOf(p),i=n+p.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),l=!0,u.replaceRange("",r(e,n),r(e,i)))}}),l)return!0}var y=a.blockCommentStart||s.blockCommentStart,b=a.blockCommentEnd||s.blockCommentEnd;if(!y||!b)return!1;var w=a.blockCommentLead||s.blockCommentLead,k=u.getLine(f),x=k.indexOf(y);if(-1==x)return!1;var T=c==f?k:u.getLine(c),E=T.indexOf(b,c==f?x+y.length:0),_=r(f,x+1),S=r(c,E+1);if(-1==E||!/comment/.test(u.getTokenTypeAt(_))||!/comment/.test(u.getTokenTypeAt(S))||u.getRange(_,S,"\n").indexOf(b)>-1)return!1;var O=k.lastIndexOf(y,e.ch),C=-1==O?-1:k.slice(0,e.ch).indexOf(b,O+y.length);if(-1!=O&&-1!=C&&C+b.length!=e.ch)return!1;C=T.indexOf(b,i.ch);var N=T.slice(i.ch).lastIndexOf(y,C-i.ch);return O=-1==C||-1==N?-1:i.ch+N,(-1==C||-1==O||O==i.ch)&&(u.operation(function(){u.replaceRange("",r(c,E-(h&&T.slice(E-h.length,E)==h?h.length:0)),r(c,E+b.length));var e=x+y.length;if(h&&k.slice(e,e+h.length)==h&&(e+=h.length),u.replaceRange("",r(f,x),r(f,e)),w)for(var t=f+1;t<=c;++t){var i=u.getLine(t),o=i.indexOf(w);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+w.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),u.replaceRange("",r(t,o),r(t,a))}}}),!0)})}(n(10))},function(e,t,n){!function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else var a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var l=r(t,i,"minFoldSize");function u(e){var r=a(t,n);if(!r||r.to.line-r.from.line<l)return null;for(var i=t.findMarksAt(r.from),u=0;u<i.length;++u)if(i[u].__isFold&&"fold"!==o){if(!e)return null;r.cleared=!0,i[u].clear()}return r}var s=u(!0);if(r(t,i,"scanUp"))for(;!s&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),s=u(!1);if(s&&!s.cleared&&"unfold"!==o){var c=function(e,t){var n=r(e,t,"widget");if("string"==typeof n){var i=document.createTextNode(n);(n=document.createElement("span")).appendChild(i),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}(t,i);e.on(c,"mousedown",function(t){f.clear(),e.e_preventDefault(t)});var f=t.markText(s.from,s.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});f.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,s.from,s.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return r(this,e,t)})}(n(10))},function(e,t,n){"use strict";var r,i=n(10),o=(r=i)&&r.__esModule?r:{default:r},a=n(34);o.default.registerHelper("hint","graphql",function(e,t){var n=t.schema;if(n){var r=e.getCursor(),i=e.getTokenAt(r),l=(0,a.getAutocompleteSuggestions)(n,e.getValue(),r,i),u=null!==i.type&&/"|\w/.test(i.string[0])?i.start:i.end,s={list:l.map(function(e){return{text:e.label,type:n.getType(e.detail),description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}),from:{line:r.line,column:u},to:{line:r.line,column:i.end}};return s&&s.list&&s.list.length>0&&(s.from=o.default.Pos(s.from.line,s.from.column),s.to=o.default.Pos(s.to.line,s.to.column),o.default.signal(e,"hasCompletion",e,s,i)),s}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getStartOfToken=function(){return n._start},this.getCurrentPosition=function(){return n._pos},this.eol=function(){return n._sourceText.length===n._pos},this.sol=function(){return 0===n._pos},this.peek=function(){return n._sourceText.charAt(n._pos)?n._sourceText.charAt(n._pos):null},this.next=function(){var e=n._sourceText.charAt(n._pos);return n._pos++,e},this.eat=function(e){if(n._testNextCharacter(e))return n._start=n._pos,n._pos++,n._sourceText.charAt(n._pos-1)},this.eatWhile=function(e){var t=n._testNextCharacter(e),r=!1;for(t&&(r=t,n._start=n._pos);t;)n._pos++,t=n._testNextCharacter(e),r=!0;return r},this.eatSpace=function(){return n.eatWhile(/[\s\u00a0]/)},this.skipToEnd=function(){n._pos=n._sourceText.length},this.skipTo=function(e){n._pos=e},this.match=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;"string"==typeof e?(o=new RegExp(e,r?"i":"g").test(n._sourceText.substr(n._pos,e.length)),i=e):e instanceof RegExp&&(i=(o=n._sourceText.slice(n._pos).match(e))&&o[0]);return!(null==o||!("string"==typeof e||o instanceof Array&&n._sourceText.startsWith(o[0],n._pos)))&&(t&&(n._start=n._pos,i&&i.length&&(n._pos+=i.length)),o)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0===e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return e.prototype._testNextCharacter=function(e){var t=this._sourceText.charAt(this._pos);return"string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t)},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return l(e.parseRules,t,"Document"),t},token:function(t,n){return function(e,t,n){var r=n.lexRules,i=n.parseRules,c=n.eatWhitespace,p=n.editorConfig;t.rule&&0===t.rule.length?u(t):t.needsAdvance&&(t.needsAdvance=!1,s(t,!0));if(e.sol()){var d=p&&p.tabSize||2;t.indentLevel=Math.floor(e.indentation()/d)}if(c(e))return"ws";var h=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!h)return e.match(/\S+/),l(a,t,"Invalid"),"invalidchar";if("Comment"===h.kind)return l(a,t,"Comment"),"comment";var m=o({},t);if("Punctuation"===h.kind)if(/^[{([]/.test(h.value))t.levels=(t.levels||[]).concat(t.indentLevel+1);else if(/^[})\]]/.test(h.value)){var v=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&v.length>0&&v[v.length-1]<t.indentLevel&&(t.indentLevel=v[v.length-1])}for(;t.rule;){var g="function"==typeof t.rule?0===t.step?t.rule(h,e):null:t.rule[t.step];if(t.needsSeperator&&(g=g&&g.separator),g){if(g.ofRule&&(g=g.ofRule),"string"==typeof g){l(i,t,g);continue}if(g.match&&g.match(h))return g.update&&g.update(t,h),"Punctuation"===h.kind?s(t,!0):t.needsAdvance=!0,g.style}f(t)}return o(t,m),l(a,t,"Invalid"),"invalidchar"}(t,n,e)}}};var i=n(108);function o(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}var a={Invalid:[],Comment:[]};function l(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=r({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function u(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function s(e,t){if(c(e)){if(e.rule&&e.rule[e.step].separator){var n=e.rule[e.step].separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&n.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)u(e),e.rule&&(c(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function c(e){return Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step].isList}function f(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)u(e);e.rule&&s(e,!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getASTNodeAtPosition=function(e,t,n){var o=i(e,n),a=void 0;return(0,r.visit)(t,{enter:function(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=o&&o<=e.loc.end))return!1;a=e},leave:function(e){if(e.loc&&e.loc.start<=o&&o<=e.loc.end)return!1}}),a},t.pointToOffset=i;n(111);var r=n(12);function i(e,t){var n=e.split("\n").slice(0,t.line);return t.character+n.map(function(e){return e.length+1}).reduce(function(e,t){return e+t},0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateWithCustomRules=function(e,t,i,o){var a=n(50).NoUnusedFragments,l=n(81).ExecutableDefinitions,u=[a,l];if(o){var s=n(49),c=s.KnownFragmentNames;u.push(c)}var f=r.specifiedRules.filter(function(e){return!u.some(function(t){return t===e})}),p=new r.TypeInfo(e);i&&Array.prototype.push.apply(f,i);var d=(0,r.validate)(e,t,f,p);if(d.length>0)return d.filter(function(e){return-1===e.message.indexOf("Unknown directive")||!(e.nodes&&e.nodes[0]&&e.nodes[0].name&&"arguments"===e.nodes[0].name.value||e.nodes&&e.nodes[0]&&e.nodes[0].name&&e.nodes[0].name.value&&"argumentDefinitions"===e.nodes[0].name.value)});return[]};var r=n(12)},function(e,t,n){(function(e,r){var i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n<o;u=r[++n])m(u)||!w(u)?a+=" "+u:a+=" "+l(u);return a},t.deprecate=function(n,i){if(y(e.process))return function(){return t.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return n.apply(this,arguments)}};var o,a={};function l(e,n){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function s(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=c(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),l=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(T(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return f(n)}var s,w="",E=!1,_=["{","}"];(d(n)&&(E=!0,_=["[","]"]),T(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),k(n)&&(w=" "+Date.prototype.toUTCString.call(n)),x(n)&&(w=" "+f(n)),0!==a.length||E&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),s=E?function(e,t,n,r,i){for(var o=[],a=0,l=t.length;a<l;++a)O(t,String(a))?o.push(p(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))}),o}(e,n,r,l,a):a.map(function(t){return p(e,n,r,l,t,E)}),e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,w,_)):_[0]+w+_[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,l,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?l=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(l=e.stylize("[Setter]","special")),O(r,i)||(a="["+i+"]"),l||(e.seen.indexOf(u.value)<0?(l=m(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(l=o?l.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+l.split("\n").map(function(e){return" "+e}).join("\n")):l=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return l;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+l}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===E(e)}function w(e){return"object"==typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===E(e)}function x(e){return w(e)&&("[object Error]"===E(e)||e instanceof Error)}function T(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(o)&&(o=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=w,t.isDate=k,t.isError=x,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(232);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(233),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,n(42),n(110))},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {\n| DocumentNode,\n| FragmentSpreadNode,")},function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {GraphQLField, GraphQLSchema, GraphQLType} from 'graphql';\n| import {isCompositeType} from 'graphql';\n| import {")},function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {\n| FragmentDefinitionNode,\n| GraphQLDirective,")},function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {\n| ASTNode,\n| FragmentSpreadNode,")},function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {\n| ASTNode,\n| DocumentNode,")},function(e,t){throw new Error("Module parse failed: Unexpected token (16:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {GraphQLSchema} from 'graphql';\n| import type {ContextToken} from 'graphql-language-service-types';\n| import type {Hover} from 'vscode-languageserver-types';")},function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {\n| Outline,\n| TextToken,")},function(e,t,n){"use strict";n.r(t);var r=n(26);n.d(t,"getDefinitionState",function(){return r.getDefinitionState}),n.d(t,"getFieldDef",function(){return r.getFieldDef}),n.d(t,"forEachState",function(){return r.forEachState}),n.d(t,"objectValues",function(){return r.objectValues}),n.d(t,"hintList",function(){return r.hintList});var i=n(30);n.d(t,"getAutocompleteSuggestions",function(){return i.getAutocompleteSuggestions});var o=n(27);n.d(t,"LANGUAGE",function(){return o.LANGUAGE}),n.d(t,"getDefinitionQueryResultForFragmentSpread",function(){return o.getDefinitionQueryResultForFragmentSpread}),n.d(t,"getDefinitionQueryResultForDefinitionNode",function(){return o.getDefinitionQueryResultForDefinitionNode});var a=n(31);n.d(t,"getDiagnostics",function(){return a.getDiagnostics}),n.d(t,"validateQuery",function(){return a.validateQuery});var l=n(46);n.d(t,"getOutline",function(){return l.getOutline});var u=n(35);n.d(t,"getHoverInformation",function(){return u.getHoverInformation});var s=n(47);n.d(t,"GraphQLLanguageService",function(){return s.GraphQLLanguageService})},function(e,t,n){"use strict";var r,i=n(10),o=(r=i)&&r.__esModule?r:{default:r},a=n(34);var l=["error","warning","information","hint"],u={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};o.default.registerHelper("lint","graphql",function(e,t){var n=t.schema;return(0,a.getDiagnostics)(e,n).map(function(e){return{message:e.message,severity:l[e.severity-1],type:u[e.source],from:o.default.Pos(e.range.start.line,e.range.start.character),to:o.default.Pos(e.range.end.line,e.range.end.character)}})})},function(e,t,n){"use strict";var r=n(12),i=l(n(10)),o=l(n(114)),a=n(116);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(f(e,t,n,t.parentType),d(e,".")),d(e,r,"field-name",n,(0,a.getFieldReference)(t))}function s(e,t,n){d(e,"@"+t.directiveDef.name,"directive-name",n,(0,a.getDirectiveReference)(t))}function c(e,t,n,r){d(e,": "),f(e,t,n,r)}function f(e,t,n,i){i instanceof r.GraphQLNonNull?(f(e,t,n,i.ofType),d(e,"!")):i instanceof r.GraphQLList?(d(e,"["),f(e,t,n,i.ofType),d(e,"]")):d(e,i.name,"type-name",n,(0,a.getTypeReference)(t,i))}function p(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function d(e,t,n,r,i){if(n){var o=r.onClick,a=document.createElement(o?"a":"span");o&&(a.href="javascript:void 0",a.addEventListener("click",function(e){o(i,e)})),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(117),i.default.registerHelper("info","graphql",function(e,t){if(t.schema&&e.state){var n=e.state,r=n.kind,i=n.step,l=(0,o.default)(t.schema,e.state);if("Field"===r&&0===i&&l.fieldDef||"AliasedField"===r&&2===i&&l.fieldDef){var h=document.createElement("div");return function(e,t,n){u(e,t,n),c(e,t,n,t.type)}(h,l,t),p(h,t,l.fieldDef),h}if("Directive"===r&&1===i&&l.directiveDef){var m=document.createElement("div");return s(m,l,t),p(m,t,l.directiveDef),m}if("Argument"===r&&0===i&&l.argDef){var v=document.createElement("div");return function(e,t,n){t.directiveDef?s(e,t,n):t.fieldDef&&u(e,t,n);var r=t.argDef.name;d(e,"("),d(e,r,"arg-name",n,(0,a.getArgumentReference)(t)),c(e,t,n,t.inputType),d(e,")")}(v,l,t),p(v,t,l.argDef),v}if("EnumValue"===r&&l.enumValue&&l.enumValue.description){var g=document.createElement("div");return function(e,t,n){var r=t.enumValue.name;f(e,t,n,t.inputType),d(e,"."),d(e,r,"enum-value",n,(0,a.getEnumValueReference)(t))}(g,l,t),p(g,t,l.enumValue),g}if("NamedType"===r&&l.type&&l.type.description){var y=document.createElement("div");return f(y,l,t,l.type),p(y,t,l.type),y}}})},function(e,t,n){"use strict";var r=a(n(10)),i=a(n(114)),o=n(116);function a(e){return e&&e.__esModule?e:{default:e}}n(245),r.default.registerHelper("jump","graphql",function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,a=n.step,l=(0,i.default)(t.schema,n);return"Field"===r&&0===a&&l.fieldDef||"AliasedField"===r&&2===a&&l.fieldDef?(0,o.getFieldReference)(l):"Directive"===r&&1===a&&l.directiveDef?(0,o.getDirectiveReference)(l):"Argument"===r&&0===a&&l.argDef?(0,o.getArgumentReference)(l):"EnumValue"===r&&l.enumValue?(0,o.getEnumValueReference)(l):"NamedType"===r&&l.type?(0,o.getTypeReference)(l):void 0}})},function(e,t,n){"use strict";var r,i=n(10),o=(r=i)&&r.__esModule?r:{default:r};function a(e,t){var n=t.target||t.srcElement;if("SPAN"===n.nodeName){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&c(e)}}function l(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&f(e):e.state.jump.cursor=null}function u(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(s?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&c(e);var n=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},r=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};o.default.on(document,"keyup",function i(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&f(e),o.default.off(document,"keyup",i),o.default.off(document,"click",n),e.off("mousedown",r))}),o.default.on(document,"click",n),e.on("mousedown",r)}}o.default.defineOption("jump",!1,function(e,t,n){if(n&&n!==o.default.Init){var r=e.state.jump.onMouseOver;o.default.off(e.getWrapperElement(),"mouseover",r);var i=e.state.jump.onMouseOut;o.default.off(e.getWrapperElement(),"mouseout",i),o.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var s=e.state.jump={options:t,onMouseOver:a.bind(null,e),onMouseOut:l.bind(null,e),onKeyDown:u.bind(null,e)};o.default.on(e.getWrapperElement(),"mouseover",s.onMouseOver),o.default.on(e.getWrapperElement(),"mouseout",s.onMouseOut),o.default.on(document,"keydown",s.onKeyDown)}});var s=navigator&&-1!==navigator.appVersion.indexOf("Mac");function c(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var l=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=l,e.state.jump.destination=a}}}}function f(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},function(e,t,n){"use strict";var r,i=n(10),o=(r=i)&&r.__esModule?r:{default:r},a=n(45);function l(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}o.default.defineMode("graphql",function(e){var t=(0,a.onlineParser)({eatWhitespace:function(e){return e.eatWhile(a.isIgnored)},lexRules:a.LexRules,parseRules:a.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariableEditor=void 0;var r=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}}(),i=l(n(14)),o=l(n(18)),a=l(n(103));function l(e){return e&&e.__esModule?e:{default:e}}(t.VariableEditor=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._onKeyUp=function(e,t){var r=t.keyCode;(r>=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(e,t){(0,a.default)(e,t,n.props.onHintInformationRender)},n.cachedValue=e.value||"",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=this,t=n(10);n(104),n(74),n(105),n(76),n(75),n(107),n(43),n(77),n(44),n(78),n(248),n(250),n(252),this.editor=t(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()},"Cmd-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"}}),this.editor.on("change",this._onEdit),this.editor.on("keyup",this._onKeyUp),this.editor.on("hasCompletion",this._onHasCompletion)}},{key:"componentDidUpdate",value:function(e){var t=n(10);if(this.ignoreChangeEvent=!0,this.props.variableToType!==e.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,t.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue){var r=this.props.value||"";this.cachedValue=r,this.editor.setValue(r)}this.ignoreChangeEvent=!1}},{key:"componentWillUnmount",value:function(){this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"codemirrorWrap",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.editor}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}}]),t}()).propTypes={variableToType:o.default.object,value:o.default.string,onEdit:o.default.func,readOnly:o.default.bool,onHintInformationRender:o.default.func,onPrettifyQuery:o.default.func,onMergeQuery:o.default.func,onRunQuery:o.default.func,editorTheme:o.default.string}},function(e,t,n){"use strict";var r=l(n(10)),i=n(12),o=l(n(115)),a=l(n(249));function l(e){return e&&e.__esModule?e:{default:e}}r.default.registerHelper("hint","graphql-variables",function(e,t){var n=e.getCursor(),l=e.getTokenAt(n),u=function(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,l=r.kind,u=r.step;if("Document"===l&&0===u)return(0,a.default)(e,t,[{text:"{"}]);var s=n.variableToType;if(!s)return;var c=function(e,t){var n={type:null,fields:null};return(0,o.default)(t,function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=(0,i.getNullableType)(n.type);n.type=r instanceof i.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var o=(0,i.getNamedType)(n.type);n.fields=o instanceof i.GraphQLInputObjectType?o.getFields():null}else if("ObjectField"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=a&&a.type}}),n}(s,t.state);if("Document"===l||"Variable"===l&&0===u){var f=Object.keys(s);return(0,a.default)(e,t,f.map(function(e){return{text:'"'+e+'": ',type:s[e]}}))}if(("ObjectValue"===l||"ObjectField"===l&&0===u)&&c.fields){var p=Object.keys(c.fields).map(function(e){return c.fields[e]});return(0,a.default)(e,t,p.map(function(e){return{text:'"'+e.name+'": ',type:e.type,description:e.description}}))}if("StringValue"===l||"NumberValue"===l||"BooleanValue"===l||"NullValue"===l||"ListValue"===l&&1===u||"ObjectField"===l&&2===u||"Variable"===l&&2===u){var d=(0,i.getNamedType)(c.type);if(d instanceof i.GraphQLInputObjectType)return(0,a.default)(e,t,[{text:"{"}]);if(d instanceof i.GraphQLEnumType){var h=d.getValues(),m=Object.keys(h).map(function(e){return h[e]});return(0,a.default)(e,t,m.map(function(e){return{text:'"'+e.name+'"',type:d,description:e.description}}))}if(d===i.GraphQLBoolean)return(0,a.default)(e,t,[{text:"true",type:i.GraphQLBoolean,description:"Not false."},{text:"false",type:i.GraphQLBoolean,description:"Not true."}])}}(n,l,t);return u&&u.list&&u.list.length>0&&(u.from=r.default.Pos(u.from.line,u.from.column),u.to=r.default.Pos(u.to.line,u.to.column),r.default.signal(e,"hasCompletion",e,u,l)),u})},function(e,t,n){"use strict";function r(e,t){var n=e.filter(t);return 0===n.length?e:n}function i(e){return e.toLowerCase().replace(/\W/g,"")}function o(e,t){var n=function(e,t){var n=void 0,r=void 0,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var l=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+l),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+l))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=function(e,t){if(!t)return r(e,function(e){return!e.isDeprecated});return r(r(e.map(function(e){return{proximity:o(i(e.text),t),entry:e}}),function(e){return e.proximity<=2}),function(e){return!e.entry.isDeprecated}).sort(function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length}).map(function(e){return e.entry})}(n,i(t.string));if(!a)return;var l=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:a,from:{line:e.line,column:l},to:{line:e.line,column:t.end}}}},function(e,t,n){"use strict";var r=a(n(10)),i=n(12),o=a(n(251));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function u(e,t){return Array.prototype.concat.apply([],e.map(t))}r.default.registerHelper("lint","graphql-variables",function(e,t,n){if(!e)return[];var r=void 0;try{r=(0,o.default)(e)}catch(e){if(e.stack)throw e;return[l(n,e,e.message)]}var a=t.variableToType;return a?function(e,t,n){var r=[];return n.members.forEach(function(n){var o=n.key.value,a=t[o];a?function e(t,n){if(t instanceof i.GraphQLNonNull)return"Null"===n.kind?[[n,'Type "'+t+'" is non-nullable and cannot be null.']]:e(t.ofType,n);if("Null"===n.kind)return[];if(t instanceof i.GraphQLList){var r=t.ofType;return"Array"===n.kind?u(n.values,function(t){return e(r,t)}):e(r,n)}if(t instanceof i.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,'Type "'+t+'" must be an Object.']];var o=Object.create(null),a=u(n.members,function(n){var r=n.key.value;o[r]=!0;var i=t.getFields()[r];if(!i)return[[n.key,'Type "'+t+'" does not have a field "'+r+'".']];var a=i?i.type:void 0;return e(a,n.value)});return Object.keys(t.getFields()).forEach(function(e){if(!o[e]){var r=t.getFields()[e].type;r instanceof i.GraphQLNonNull&&a.push([n,'Object of type "'+t+'" is missing required field "'+e+'".'])}}),a}return"Boolean"===t.name&&"Boolean"!==n.kind||"String"===t.name&&"String"!==n.kind||"ID"===t.name&&"Number"!==n.kind&&"String"!==n.kind||"Float"===t.name&&"Number"!==n.kind||"Int"===t.name&&("Number"!==n.kind||(0|n.value)!==n.value)?[[n,'Expected value of type "'+t+'".']]:(t instanceof i.GraphQLEnumType||t instanceof i.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||null==(l=t.parseValue(n.value))||l!=l)?[[n,'Expected value of type "'+t+'".']]:[];var l}(a,n.value).forEach(function(t){var n=t[0],i=t[1];r.push(l(e,n,i))}):r.push(l(e,n.key,'Variable "$'+o+'" does not appear in any GraphQL query.'))}),r}(n,a,r):[]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){r=e,i=e.length,o=a=l=-1,g(),y();var t=c();return h("EOF"),t};var r=void 0,i=void 0,o=void 0,a=void 0,l=void 0,u=void 0,s=void 0;function c(){var e=o,t=[];if(h("{"),!v("}")){do{t.push(f())}while(v(","));h("}")}return{kind:"Object",start:e,end:l,members:t}}function f(){var e=o,t="String"===s?d():null;h("String"),h(":");var n=p();return{kind:"Member",start:e,end:l,key:t,value:n}}function p(){switch(s){case"[":return function(){var e=o,t=[];if(h("["),!v("]")){do{t.push(p())}while(v(","));h("]")}return{kind:"Array",start:e,end:l,values:t}}();case"{":return c();case"String":case"Number":case"Boolean":case"Null":var e=d();return y(),e}return h("Value")}function d(){return{kind:s,start:o,end:a,value:JSON.parse(r.slice(o,a))}}function h(e){if(s!==e){var t=void 0;if("EOF"===s)t="[end of file]";else if(a-o>1)t="`"+r.slice(o,a)+"`";else{var n=r.slice(o).match(/^.+?\b/);t="`"+(n?n[0]:r[o])+"`"}throw m("Expected "+e+" but found "+t+".")}y()}function m(e){return{message:e,start:o,end:a}}function v(e){if(s===e)return y(),!0}function g(){a<i&&(u=++a===i?0:r.charCodeAt(a))}function y(){for(l=a;9===u||10===u||13===u||32===u;)g();if(0!==u){switch(o=a,u){case 34:return s="String",function(){g();for(;34!==u&&u>31;)if(92===u)switch(g(),u){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:g();break;case 117:g(),b(),b(),b(),b();break;default:throw m("Bad character escape sequence.")}else{if(a===i)throw m("Unterminated string.");g()}if(34===u)return void g();throw m("Unterminated string.")}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s="Number",function(){45===u&&g();48===u?g():w();46===u&&(g(),w());69!==u&&101!==u||(g(),43!==u&&45!==u||g(),w())}();case 102:if("false"!==r.slice(o,o+5))break;return a+=4,g(),void(s="Boolean");case 110:if("null"!==r.slice(o,o+4))break;return a+=3,g(),void(s="Null");case 116:if("true"!==r.slice(o,o+4))break;return a+=3,g(),void(s="Boolean")}s=r[o],g()}else s="EOF"}function b(){if(u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102)return g();throw m("Expected hexadecimal digit.")}function w(){if(u<48||u>57)throw m("Expected decimal digit.");do{g()}while(u>=48&&u<=57)}},function(e,t,n){"use strict";var r,i=n(10),o=(r=i)&&r.__esModule?r:{default:r},a=n(45);function l(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}o.default.defineMode("graphql-variables",function(e){var t=(0,a.onlineParser)({eatWhitespace:function(e){return e.eatSpace()},lexRules:u,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});var u={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[(0,a.p)("{"),(0,a.list)("Variable",(0,a.opt)((0,a.p)(","))),(0,a.p)("}")],Variable:[c("variable"),(0,a.p)(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,a.t)("Number","number")],StringValue:[(0,a.t)("String","string")],BooleanValue:[(0,a.t)("Keyword","builtin")],NullValue:[(0,a.t)("Keyword","keyword")],ListValue:[(0,a.p)("["),(0,a.list)("Value",(0,a.opt)((0,a.p)(","))),(0,a.p)("]")],ObjectValue:[(0,a.p)("{"),(0,a.list)("ObjectField",(0,a.opt)((0,a.p)(","))),(0,a.p)("}")],ObjectField:[c("attribute"),(0,a.p)(":"),"Value"]};function c(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultViewer=void 0;var r=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}}(),i=l(n(14)),o=l(n(69)),a=l(n(18));function l(e){return e&&e.__esModule?e:{default:e}}(t.ResultViewer=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=this,t=n(10);if(n(75),n(76),n(44),n(106),n(43),n(77),n(78),n(254),this.props.ResultsTooltip){n(117);var r=document.createElement("div");t.registerHelper("info","graphql-results",function(t,n,a,l){var u=e.props.ResultsTooltip;return o.default.render(i.default.createElement(u,{pos:l}),r),r})}this.viewer=t(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip),extraKeys:{"Cmd-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"}})}},{key:"shouldComponentUpdate",value:function(e){return this.props.value!==e.value}},{key:"componentDidUpdate",value:function(){this.viewer.setValue(this.props.value||"")}},{key:"componentWillUnmount",value:function(){this.viewer=null}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"result-window",ref:function(t){e._node=t}})}},{key:"getCodeMirror",value:function(){return this.viewer}},{key:"getClientHeight",value:function(){return this._node&&this._node.clientHeight}}]),t}()).propTypes={value:a.default.string,editorTheme:a.default.string,ResultsTooltip:a.default.any}},function(e,t,n){"use strict";var r,i=n(10),o=(r=i)&&r.__esModule?r:{default:r},a=n(45);function l(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}o.default.defineMode("graphql-results",function(e){var t=(0,a.onlineParser)({eatWhitespace:function(e){return e.eatSpace()},lexRules:u,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});var u={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[(0,a.p)("{"),(0,a.list)("Entry",(0,a.p)(",")),(0,a.p)("}")],Entry:[(0,a.t)("String","def"),(0,a.p)(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,a.t)("Number","number")],StringValue:[(0,a.t)("String","string")],BooleanValue:[(0,a.t)("Keyword","builtin")],NullValue:[(0,a.t)("Keyword","keyword")],ListValue:[(0,a.p)("["),(0,a.list)("Value",(0,a.p)(",")),(0,a.p)("]")],ObjectValue:[(0,a.p)("{"),(0,a.list)("ObjectField",(0,a.p)(",")),(0,a.p)("}")],ObjectField:[(0,a.t)("String","property"),(0,a.p)(":"),"Value"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocExplorer=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=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}}(),o=d(n(14)),a=d(n(18)),l=n(12),u=d(n(256)),s=d(n(257)),c=d(n(258)),f=d(n(259)),p=d(n(260));function d(e){return e&&e.__esModule?e:{default:e}}var h={name:"Schema",title:"Documentation Explorer"};(t.DocExplorer=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handleNavBackClick=function(){e.state.navStack.length>1&&e.setState({navStack:e.state.navStack.slice(0,-1)})},e.handleClickTypeOrField=function(t){e.showDoc(t)},e.handleSearch=function(t){e.showSearch(t)},e.state={navStack:[h]},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"shouldComponentUpdate",value:function(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack}},{key:"render",value:function(){var e=this.props.schema,t=this.state.navStack,n=t[t.length-1],r=void 0;r=void 0===e?o.default.createElement("div",{className:"spinner-container"},o.default.createElement("div",{className:"spinner"})):e?n.search?o.default.createElement(f.default,{searchValue:n.search,withinType:n.def,schema:e,onClickType:this.handleClickTypeOrField,onClickField:this.handleClickTypeOrField}):1===t.length?o.default.createElement(s.default,{schema:e,onClickType:this.handleClickTypeOrField}):(0,l.isType)(n.def)?o.default.createElement(p.default,{schema:e,type:n.def,onClickType:this.handleClickTypeOrField,onClickField:this.handleClickTypeOrField}):o.default.createElement(u.default,{field:n.def,onClickType:this.handleClickTypeOrField}):o.default.createElement("div",{className:"error-container"},"No Schema Available");var i=1===t.length||(0,l.isType)(n.def)&&n.def.getFields,a=void 0;return t.length>1&&(a=t[t.length-2].name),o.default.createElement("div",{className:"doc-explorer",key:n.name},o.default.createElement("div",{className:"doc-explorer-title-bar"},a&&o.default.createElement("div",{className:"doc-explorer-back",onClick:this.handleNavBackClick},a),o.default.createElement("div",{className:"doc-explorer-title"},n.title||n.name),o.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),o.default.createElement("div",{className:"doc-explorer-contents"},i&&o.default.createElement(c.default,{value:n.search,placeholder:"Search "+n.name+"...",onSearch:this.handleSearch}),r))}},{key:"showDoc",value:function(e){var t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})}},{key:"showDocForReference",value:function(e){"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind?this.showDoc(e.field):"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)}},{key:"showSearch",value:function(e){var t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]=r({},n,{search:e}),this.setState({navStack:t})}},{key:"reset",value:function(){this.setState({navStack:[h]})}}]),t}()).propTypes={schema:a.default.instanceOf(l.GraphQLSchema)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=s(n(14)),o=s(n(18)),a=s(n(79)),l=s(n(80)),u=s(n(48));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.field!==e.field}},{key:"render",value:function(){var e=this,t=this.props.field,n=void 0;return t.args&&t.args.length>0&&(n=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"arguments"),t.args.map(function(t){return i.default.createElement("div",{key:t.name,className:"doc-category-item"},i.default.createElement("div",null,i.default.createElement(a.default,{arg:t,onClickType:e.props.onClickType})),i.default.createElement(l.default,{className:"doc-value-description",markdown:t.description}))}))),i.default.createElement("div",null,i.default.createElement(l.default,{className:"doc-type-description",markdown:t.description||"No Description"}),t.deprecationReason&&i.default.createElement(l.default,{className:"doc-deprecation",markdown:t.deprecationReason}),i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"type"),i.default.createElement(u.default,{type:t.type,onClick:this.props.onClickType})),n)}}]),t}();c.propTypes={field:o.default.object,onClickType:o.default.func},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=u(n(14)),o=u(n(18)),a=u(n(48)),l=u(n(80));function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.schema!==e.schema}},{key:"render",value:function(){var e=this.props.schema,t=e.getQueryType(),n=e.getMutationType&&e.getMutationType(),r=e.getSubscriptionType&&e.getSubscriptionType();return i.default.createElement("div",null,i.default.createElement(l.default,{className:"doc-type-description",markdown:"A GraphQL schema provides a root type for each kind of operation."}),i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"root types"),i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("span",{className:"keyword"},"query"),": ",i.default.createElement(a.default,{type:t,onClick:this.props.onClickType})),n&&i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("span",{className:"keyword"},"mutation"),": ",i.default.createElement(a.default,{type:n,onClick:this.props.onClickType})),r&&i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("span",{className:"keyword"},"subscription"),": ",i.default.createElement(a.default,{type:r,onClick:this.props.onClickType}))))}}]),t}();s.propTypes={schema:o.default.object,onClickType:o.default.func},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=l(n(14)),o=l(n(18)),a=l(n(119));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){var t=e.target.value;n.setState({value:t}),n.debouncedOnSearch(t)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:e.value||""},n.debouncedOnSearch=(0,a.default)(200,n.props.onSearch),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){return i.default.createElement("label",{className:"search-box"},i.default.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder}),this.state.value&&i.default.createElement("div",{className:"search-box-clear",onClick:this.handleClear},"✕"))}}]),t}();u.propTypes={value:o.default.string,placeholder:o.default.string,onSearch:o.default.func},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=u(n(14)),o=u(n(18)),a=u(n(79)),l=u(n(48));function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.schema!==e.schema||this.props.searchValue!==e.searchValue}},{key:"render",value:function(){var e=this.props.searchValue,t=this.props.withinType,n=this.props.schema,r=this.props.onClickType,o=this.props.onClickField,u=[],s=[],f=[],p=n.getTypeMap(),d=Object.keys(p);t&&(d=d.filter(function(e){return e!==t.name})).unshift(t.name);var h=!0,m=!1,v=void 0;try{for(var g,y=function(){var n=g.value;if(u.length+s.length+f.length>=100)return"break";var d=p[n];if(t!==d&&c(n,e)&&s.push(i.default.createElement("div",{className:"doc-category-item",key:n},i.default.createElement(l.default,{type:d,onClick:r}))),d.getFields){var h=d.getFields();Object.keys(h).forEach(function(s){var p=h[s],m=void 0;if(!c(s,e)){if(!p.args||!p.args.length)return;if(0===(m=p.args.filter(function(t){return c(t.name,e)})).length)return}var v=i.default.createElement("div",{className:"doc-category-item",key:n+"."+s},t!==d&&[i.default.createElement(l.default,{key:"type",type:d,onClick:r}),"."],i.default.createElement("a",{className:"field-name",onClick:function(e){return o(p,d,e)}},p.name),m&&["(",i.default.createElement("span",{key:"args"},m.map(function(e){return i.default.createElement(a.default,{key:e.name,arg:e,onClickType:r,showDefaultValue:!1})})),")"]);t===d?u.push(v):f.push(v)})}},b=d[Symbol.iterator]();!(h=(g=b.next()).done);h=!0){if("break"===y())break}}catch(e){m=!0,v=e}finally{try{!h&&b.return&&b.return()}finally{if(m)throw v}}return u.length+s.length+f.length===0?i.default.createElement("span",{className:"doc-alert-text"},"No results found."):t&&s.length+f.length>0?i.default.createElement("div",null,u,i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"other results"),s,f)):i.default.createElement("div",null,u,s,f)}}]),t}();function c(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,function(e){return"\\"+e});return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}s.propTypes={schema:o.default.object,withinType:o.default.object,searchValue:o.default.string,onClickType:o.default.func,onClickField:o.default.func},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=f(n(14)),o=f(n(18)),a=n(12),l=f(n(79)),u=f(n(80)),s=f(n(48)),c=f(n(118));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"shouldComponentUpdate",value:function(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated}},{key:"render",value:function(){var e=this.props.schema,t=this.props.type,n=this.props.onClickType,r=this.props.onClickField,o=void 0,l=void 0;t instanceof a.GraphQLUnionType?(o="possible types",l=e.getPossibleTypes(t)):t instanceof a.GraphQLInterfaceType?(o="implementations",l=e.getPossibleTypes(t)):t instanceof a.GraphQLObjectType&&(o="implements",l=t.getInterfaces());var c=void 0;l&&l.length>0&&(c=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},o),l.map(function(e){return i.default.createElement("div",{key:e.name,className:"doc-category-item"},i.default.createElement(s.default,{type:e,onClick:n}))})));var f=void 0,p=void 0;if(t.getFields){var m=t.getFields(),v=Object.keys(m).map(function(e){return m[e]});f=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"fields"),v.filter(function(e){return!e.isDeprecated}).map(function(e){return i.default.createElement(d,{key:e.name,type:t,field:e,onClickType:n,onClickField:r})}));var g=v.filter(function(e){return e.isDeprecated});g.length>0&&(p=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?g.map(function(e){return i.default.createElement(d,{key:e.name,type:t,field:e,onClickType:n,onClickField:r})}):i.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}var y=void 0,b=void 0;if(t instanceof a.GraphQLEnumType){var w=t.getValues();y=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"values"),w.filter(function(e){return!e.isDeprecated}).map(function(e){return i.default.createElement(h,{key:e.name,value:e})}));var k=w.filter(function(e){return e.isDeprecated});k.length>0&&(b=i.default.createElement("div",{className:"doc-category"},i.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?k.map(function(e){return i.default.createElement(h,{key:e.name,value:e})}):i.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return i.default.createElement("div",null,i.default.createElement(u.default,{className:"doc-type-description",markdown:t.description||"No Description"}),t instanceof a.GraphQLObjectType&&c,f,p,y,b,!(t instanceof a.GraphQLObjectType)&&c)}}]),t}();function d(e){var t=e.type,n=e.field,r=e.onClickType,o=e.onClickField;return i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("a",{className:"field-name",onClick:function(e){return o(n,t,e)}},n.name),n.args&&n.args.length>0&&["(",i.default.createElement("span",{key:"args"},n.args.map(function(e){return i.default.createElement(l.default,{key:e.name,arg:e,onClickType:r})})),")"],": ",i.default.createElement(s.default,{type:n.type,onClick:r}),i.default.createElement(c.default,{field:n}),n.description&&i.default.createElement(u.default,{className:"field-short-description",markdown:n.description}),n.deprecationReason&&i.default.createElement(u.default,{className:"doc-deprecation",markdown:n.deprecationReason}))}function h(e){var t=e.value;return i.default.createElement("div",{className:"doc-category-item"},i.default.createElement("div",{className:"enum-value"},t.name),i.default.createElement(u.default,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&i.default.createElement(u.default,{className:"doc-deprecation",markdown:t.deprecationReason}))}p.propTypes={schema:o.default.instanceOf(a.GraphQLSchema),type:o.default.object,onClickType:o.default.func,onClickField:o.default.func},t.default=p,d.propTypes={type:o.default.object,field:o.default.object,onClickType:o.default.func,onClickField:o.default.func},h.propTypes={value:o.default.object}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryHistory=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=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}}(),o=n(12),a=c(n(14)),l=c(n(18)),u=c(n(262)),s=c(n(263));function c(e){return e&&e.__esModule?e:{default:e}}(t.QueryHistory=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.toggleFavorite=function(e,t,i,o,a){var l={query:e,variables:t,operationName:i,label:o};n.favoriteStore.contains(l)?a&&(l.favorite=!1,n.favoriteStore.delete(l)):(l.favorite=!0,n.favoriteStore.push(l)),n.setState(r({},n.historyStore.items,n.favoriteStore.items))},n.editLabel=function(e,t,i,o,a){var l={query:e,variables:t,operationName:i,label:o};a?n.favoriteStore.edit(r({},l,{favorite:a})):n.historyStore.edit(l),n.setState(r({},n.historyStore.items,n.favoriteStore.items))},n.historyStore=new u.default("queries",e.storage),n.favoriteStore=new u.default("favorites",e.storage);var i=n.historyStore.fetchAll(),o=n.favoriteStore.fetchAll(),a=i.concat(o);return n.state={queries:a},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){if(function(e,t,n){if(e.queryID===t.queryID)return!1;try{(0,o.parse)(e.query)}catch(e){return!1}if(!n)return!0;if(JSON.stringify(e.query)===JSON.stringify(n.query)){if(JSON.stringify(e.variables)===JSON.stringify(n.variables))return!1;if(!e.variables&&!n.variables)return!1}return!0}(e,this.props,this.historyStore.fetchRecent())){var t={query:e.query,variables:e.variables,operationName:e.operationName};this.historyStore.push(t),this.historyStore.length>20&&this.historyStore.shift();var n=this.historyStore.items,r=this.favoriteStore.items,i=n.concat(r);this.setState({queries:i})}}},{key:"render",value:function(){var e=this,t=this.state.queries.slice().reverse().map(function(t,n){return a.default.createElement(s.default,r({handleEditLabel:e.editLabel,handleToggleFavorite:e.toggleFavorite,key:n,onSelect:e.props.onSelectQuery},t))});return a.default.createElement("div",null,a.default.createElement("div",{className:"history-title-bar"},a.default.createElement("div",{className:"history-title"},"History"),a.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),a.default.createElement("div",{className:"history-contents"},t))}}]),t}()).propTypes={query:l.default.string,variables:l.default.string,operationName:l.default.string,queryID:l.default.number,onSelectQuery:l.default.func,storage:l.default.object}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.key=t,this.storage=n,this.items=this.fetchAll()}return r(e,[{key:"contains",value:function(e){return this.items.some(function(t){return t.query===e.query&&t.variables===e.variables&&t.operationName===e.operationName})}},{key:"edit",value:function(e){var t=this.items.findIndex(function(t){return t.query===e.query&&t.variables===e.variables&&t.operationName===e.operationName});-1!==t&&(this.items.splice(t,1,e),this.save())}},{key:"delete",value:function(e){var t=this.items.findIndex(function(t){return t.query===e.query&&t.variables===e.variables&&t.operationName===e.operationName});-1!==t&&(this.items.splice(t,1),this.save())}},{key:"fetchRecent",value:function(){return this.items[this.items.length-1]}},{key:"fetchAll",value:function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}},{key:"push",value:function(e){this.items.push(e),this.save()}},{key:"shift",value:function(){this.items.shift(),this.save()}},{key:"save",value:function(){var e,t,n;this.storage.set(this.key,JSON.stringify((e={},t=this.key,n=this.items,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)))}},{key:"length",get:function(){return this.items.length}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=a(n(14)),o=a(n(18));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.editField=null,n.state={showButtons:!1,editable:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){var e=this,t={display:this.state.showButtons?"":"none",marginLeft:"10px"},n={display:this.props.favorite||this.state.showButtons?"":"none",marginLeft:"10px"},r=this.props.label||this.props.operationName||this.props.query.split("\n").filter(function(e){return 0!==e.indexOf("#")}).join(""),o=this.props.favorite?"★":"☆";return i.default.createElement("p",{className:this.state.editable?"editable":void 0,onClick:this.handleClick.bind(this),onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},this.state.editable?i.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:function(t){return e.editField=t},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):i.default.createElement("span",{className:"history-label"},r),i.default.createElement("span",{onClick:this.handleEditClick.bind(this),style:t},"✎"),i.default.createElement("span",{onClick:this.handleStarClick.bind(this),style:n},o))}},{key:"handleMouseEnter",value:function(){this.setState({showButtons:!0})}},{key:"handleMouseLeave",value:function(){this.setState({showButtons:!1})}},{key:"handleClick",value:function(){this.props.onSelect(this.props.query,this.props.variables,this.props.operationName,this.props.label)}},{key:"handleStarClick",value:function(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.operationName,this.props.label,this.props.favorite)}},{key:"handleFieldBlur",value:function(e){e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.operationName,e.target.value,this.props.favorite)}},{key:"handleFieldKeyDown",value:function(e){13===e.keyCode&&(e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.operationName,e.target.value,this.props.favorite))}},{key:"handleEditClick",value:function(e){var t=this;e.stopPropagation(),this.setState({editable:!0},function(){t.editField&&t.editField.focus()})}}]),t}();l.propTypes={favorite:o.default.bool,favoriteSize:o.default.number,handleEditLabel:o.default.func,handleToggleFavorite:o.default.func,operationName:o.default.string,onSelect:o.default.func,query:o.default.string,variables:o.default.string,label:o.default.string},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sizes=[]}return r(e,[{key:"updateSizes",value:function(e){var t=this;e.forEach(function(e,n){var r=e.getClientHeight();n<=t.sizes.length&&r!==t.sizes[n]&&e.getCodeMirror().setSize(),t.sizes[n]=r})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storage=t||window.localStorage}return r(e,[{key:"get",value:function(e){if(this.storage){var t=this.storage.getItem("graphiql:"+e);if("null"!==t&&"undefined"!==t)return t;this.storage.removeItem("graphiql:"+e)}}},{key:"set",value:function(e,t){if(this.storage){var n="graphiql:"+e;t?function(e,t,n){try{return e.setItem(t,n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}}(this.storage,n,t)&&this.storage.setItem(n,t):this.storage.removeItem(n)}}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t)return;var n=void 0;try{n=(0,r.parse)(t)}catch(e){return}var o=e?i(e,n):null,a=[];return n.definitions.forEach(function(e){"OperationDefinition"===e.kind&&a.push(e)}),{variableToType:o,operations:a}},t.collectVariables=i;var r=n(12);function i(e,t){var n=Object.create(null);return t.definitions.forEach(function(t){if("OperationDefinition"===t.kind){var i=t.variableDefinitions;i&&i.forEach(function(t){var i=t.variable,o=t.type,a=(0,r.typeFromAST)(e,o);a&&(n[i.name.value]=a)})}}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!n||n.length<1)return;var r=n.map(function(e){return e.name&&e.name.value});if(t&&-1!==r.indexOf(t))return t;if(t&&e){var i=e.map(function(e){return e.name&&e.name.value}),o=i.indexOf(t);if(-1!==o&&o<r.length)return r[o]}return r[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillLeafs=function(e,t,n){var a=[];if(!e)return{insertions:a,result:t};var l=void 0;try{l=(0,r.parse)(t)}catch(e){return{insertions:a,result:t}}var u=n||i,s=new r.TypeInfo(e);return(0,r.visit)(l,{leave:function(e){s.leave(e)},enter:function(e){if(s.enter(e),"Field"===e.kind&&!e.selectionSet){var n=function e(t,n){var i=(0,r.getNamedType)(t);if(t&&!(0,r.isLeafType)(t)){var o=n(i);if(Array.isArray(o)&&0!==o.length)return{kind:"SelectionSet",selections:o.map(function(t){var r=i.getFields()[t],o=r?r.type:null;return{kind:"Field",name:{kind:"Name",value:t},selectionSet:e(o,n)}})}}}(s.getType(),u);if(n){var i=function(e,t){for(var n=t,r=t;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}(t,e.loc.start);a.push({index:e.loc.end,string:" "+(0,r.print)(n).replace(/\n/g,"\n"+i)})}}}}),{insertions:a,result:o(t,a)}};var r=n(12);function i(e){if(!e.getFields)return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var n=[];return Object.keys(t).forEach(function(e){(0,r.isLeafType)(t[e].type)&&n.push(e)}),n}function o(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach(function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i}),n+=e.slice(r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLeft=function(e){var t=0,n=e;for(;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t},t.getTop=function(e){var t=0,n=e;for(;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAst=function(e){var t={};e.definitions.filter(function(e){return e.kind===r.Kind.FRAGMENT_DEFINITION}).forEach(function(e){var n=Object.assign({},e);n.kind=r.Kind.INLINE_FRAGMENT,t[e.name.value]=n});var n=Object.assign({},e);return n.definitions=e.definitions.filter(function(e){return e.kind!==r.Kind.FRAGMENT_DEFINITION}).map(function(e){return function e(t,n){var i=n;return i.kind===r.Kind.FRAGMENT_SPREAD&&(i=t[i.name.value]),i.selectionSet&&(i.selectionSet.selections=i.selectionSet.selections.filter(function(e,t,n){return e.kind!==r.Kind.FRAGMENT_SPREAD||t===n.findIndex(function(t){return t.kind===r.Kind.FRAGMENT_SPREAD&&e.name.value===t.name.value})}).map(function(n){return e(t,n)})),i}(t,e)}),n};var r=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);Object.defineProperty(t,"introspectionQuery",{enumerable:!0,get:function(){return r.introspectionQuery}});t.introspectionQuerySansSubscriptions="\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n types {\n ...FullType\n }\n directives {\n name\n description\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n description\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explorer=void 0;var r,i=n(274),o=(r=i)&&r.__esModule?r:{default:r};t.Explorer=o.default,t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=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}}();t.defaultValue=E;var o,a=n(14),l=(o=a)&&o.__esModule?o:{default:o},u=n(12);function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}var h=l.default.createElement("svg",{width:"12",height:"9"},l.default.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),m=l.default.createElement("svg",{width:"12",height:"9"},l.default.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),v=l.default.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),g=l.default.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function y(e){return e.checked?v:g}function b(e){var t=e.getFields();if(t.id){var n=["id"];return t.email?n.push("email"):t.name&&n.push("name"),n}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];var r=[];return Object.keys(t).forEach(function(e){(0,u.isLeafType)(t[e].type)&&r.push(e)}),r.slice(0,2)}function w(e){return(0,u.isNonNullType)(e.type)&&void 0===e.defaultValue}function k(e){for(var t=e;(0,u.isWrappingType)(t);)t=t.ofType;return t}function x(e,t){if((0,u.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{var n=JSON.parse(t);return"boolean"==typeof n?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch(e){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(e){return console.error("error coercing arg value",e,t),{kind:"StringValue",value:t}}else try{var r=e.parseValue(t);return r?{kind:"EnumValue",value:String(r)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(t){return{kind:"EnumValue",value:e.getValues()[0].name}}}var T=function(e){function t(){var e,n,i;c(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=i=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i._getArgSelection=function(){return i.props.selection.fields.find(function(e){return e.name.value===i.props.arg.name})},i._removeArg=function(){var e=i.props.selection,t=i._getArgSelection();i._previousArgSelection=t,i.props.modifyFields(e.fields.filter(function(e){return e!==t}))},i._addArg=function(){var e=i.props,t=e.selection,n=e.arg,r=e.getDefaultScalarArgValue,o=e.parentField,a=e.makeDefaultArg,l=k(n.type),c=null;if(i._previousArgSelection)c=i._previousArgSelection;else if((0,u.isInputObjectType)(l)){var f=l.getFields();c={kind:"ObjectField",name:{kind:"Name",value:n.name},value:{kind:"ObjectValue",fields:D(r,a,o,Object.keys(f).map(function(e){return f[e]}))}}}else(0,u.isLeafType)(l)&&(c={kind:"ObjectField",name:{kind:"Name",value:n.name},value:r(o,n,l)});c?i.props.modifyFields([].concat(s(t.fields||[]),[c])):console.error("Unable to add arg for argType",l)},i._setArgValue=function(e){var t=i.props.selection,n=i._getArgSelection();if(n){var o=k(i.props.arg.type);if((0,u.isLeafType)(o)){var a=e.target.value;i.props.modifyFields((t.fields||[]).map(function(e){return e===n?r({},e,{value:x(o,a)}):e}))}else console.warn("Unable to handle non leaf types in setArgValue")}else console.error("missing arg selection when setting arg value")},i._modifyChildFields=function(e){i.props.modifyFields(i.props.selection.fields.map(function(t){return t.name.value===i.props.arg.name?r({},t,{value:{kind:"ObjectValue",fields:e}}):t}))},f(i,n)}return p(t,l.default.PureComponent),i(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return l.default.createElement(N,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation})}}]),t}();function E(e){if((0,u.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1};default:return{kind:"StringValue",value:""}}}function _(e,t,n){return E(n)}var S=function(e){function t(){var e,n,i;c(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=i=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i._getArgSelection=function(){return(i.props.selection.arguments||[]).find(function(e){return e.name.value===i.props.arg.name})},i._removeArg=function(){var e=i.props.selection,t=i._getArgSelection();i._previousArgSelection=t,i.props.modifyArguments((e.arguments||[]).filter(function(e){return e!==t}))},i._addArg=function(){var e=i.props,t=e.selection,n=e.getDefaultScalarArgValue,r=e.makeDefaultArg,o=e.parentField,a=e.arg,l=k(a.type),c=null;if(i._previousArgSelection)c=i._previousArgSelection;else if((0,u.isInputObjectType)(l)){var f=l.getFields();c={kind:"Argument",name:{kind:"Name",value:a.name},value:{kind:"ObjectValue",fields:D(n,r,o,Object.keys(f).map(function(e){return f[e]}))}}}else(0,u.isLeafType)(l)&&(c={kind:"Argument",name:{kind:"Name",value:a.name},value:n(o,a,l)});c?i.props.modifyArguments([].concat(s(t.arguments||[]),[c])):console.error("Unable to add arg for argType",l)},i._setArgValue=function(e){var t=i.props.selection,n=i._getArgSelection();if(n){var o=k(i.props.arg.type);if((0,u.isLeafType)(o)){var a=e.target.value;i.props.modifyArguments((t.arguments||[]).map(function(e){return e===n?r({},e,{value:x(o,a)}):e}))}else console.warn("Unable to handle non leaf types in setArgValue")}else console.error("missing arg selection when setting arg value")},i._setArgFields=function(e){var t=i.props.selection,n=i._getArgSelection();n?i.props.modifyArguments((t.arguments||[]).map(function(t){return t===n?r({},t,{value:{kind:"ObjectValue",fields:e}}):t})):console.error("missing arg selection when setting arg value")},f(i,n)}return p(t,l.default.PureComponent),i(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return l.default.createElement(N,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation})}}]),t}();function O(e){return e.metaKey&&"Enter"===e.key}var C=function(e){function t(){var e,n,r;c(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._handleChange=function(e){r.props.setArgValue(e)},f(r,n)}return p(t,l.default.PureComponent),i(t,[{key:"componentDidMount",value:function(){var e=this._ref,t=document.activeElement;!e||!t||t instanceof HTMLTextAreaElement||(e.focus(),e.setSelectionRange(0,e.value.length))}},{key:"render",value:function(){var e=this,t=this.props,n=t.arg,r=t.argValue,i=k(n.type),o="StringValue"===this.props.argValue.kind?"#D64292":"#2882F9",a="string"==typeof r.value?r.value:"";return l.default.createElement("span",{style:{color:o}},"String"===i.name?'"':"",l.default.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",color:o,width:Math.max(1,a.length)+"ch"},ref:function(t){e._ref=t},type:"text",onKeyDown:function(t){O(t)&&e.props.onRunOperation(t)},onChange:this._handleChange,value:a}),"String"===i.name?'"':"")}}]),t}(),N=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,l.default.PureComponent),i(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.argValue,r=t.arg,i=k(r.type),o=null;if(n)if("Variable"===n.kind)o=l.default.createElement("span",{style:{color:"#397D13"}},"$",n.name.value);else if((0,u.isScalarType)(i))o="Boolean"===i.name?l.default.createElement("select",{style:{backgroundColor:"white",color:"#D47509"},onChange:this.props.setArgValue,value:"BooleanValue"===n.kind?n.value:void 0},l.default.createElement("option",{key:"true",value:"true"},"true"),l.default.createElement("option",{key:"false",value:"false"},"false")):l.default.createElement(C,{setArgValue:this.props.setArgValue,arg:r,argValue:n,onRunOperation:this.props.onRunOperation});else if((0,u.isEnumType)(i))"EnumValue"===n.kind?o=l.default.createElement("select",{style:{backgroundColor:"white",color:"#0B7FC7"},onChange:this.props.setArgValue,value:n.value},i.getValues().map(function(e){return l.default.createElement("option",{key:e.name,value:e.name},e.name)})):console.error("arg mismatch between arg and selection",i,n);else if((0,u.isInputObjectType)(i))if("ObjectValue"===n.kind){var a=i.getFields();o=l.default.createElement("div",{style:{marginLeft:16}},Object.keys(a).sort().map(function(t){return l.default.createElement(T,{key:t,arg:a[t],parentField:e.props.parentField,selection:n,modifyFields:e.props.setArgFields,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation})}))}else console.error("arg mismatch between arg and selection",i,n);return l.default.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":i.name},l.default.createElement("span",{style:{cursor:"pointer"},onClick:n?this.props.removeArg:this.props.addArg},l.default.createElement(y,{checked:!!n}),l.default.createElement("span",{title:r.description,style:{color:"#8B2BB9"}},r.name,w(r)?"*":"",":"))," ",o||l.default.createElement("span",null))}}]),t}(),A=function(e){function t(){var e,n,r;c(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(s(r.props.selections),[r._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:r.props.getDefaultFieldNames(r.props.implementingType).map(function(e){return{kind:"Field",name:{kind:"Name",value:e}}})}}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter(function(t){return t!==e}))},r._getSelection=function(){var e=r.props.selections.find(function(e){return"InlineFragment"===e.kind&&e.typeCondition&&r.props.implementingType.name===e.typeCondition.name.value});return e?"InlineFragment"===e.kind?e:void 0:null},r._modifyChildSelections=function(e){var t=r._getSelection();r.props.modifySelections(r.props.selections.map(function(n){return n===t?{directives:n.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:n}))},f(r,n)}return p(t,l.default.PureComponent),i(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.implementingType,r=t.schema,i=t.getDefaultFieldNames,o=this._getSelection(),a=n.getFields(),u=o&&o.selectionSet?o.selectionSet.selections:[];return l.default.createElement("div",null,l.default.createElement("span",{style:{cursor:"pointer"},onClick:o?this._removeFragment:this._addFragment},l.default.createElement(y,{checked:!!o}),l.default.createElement("span",{style:{color:"#CA9800"}},this.props.implementingType.name)),o?l.default.createElement("div",{style:{marginLeft:16}},Object.keys(a).sort().map(function(t){return l.default.createElement(L,{key:t,field:a[t],selections:u,modifySelections:e._modifyChildSelections,schema:r,getDefaultFieldNames:i,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation})})):null)}}]),t}();function D(e,t,n,r){var i=[],o=!0,a=!1,l=void 0;try{for(var s,c=r[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var f=s.value;if((0,u.isRequiredInputField)(f)||t&&t(n,f)){var p=k(f.type);(0,u.isInputObjectType)(p)?function(){var r=p.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:f.name},value:{kind:"ObjectValue",fields:D(e,t,n,Object.keys(r).map(function(e){return r[e]}))}})}():(0,u.isLeafType)(p)&&i.push({kind:"ObjectField",name:{kind:"Name",value:f.name},value:e(n,f,p)})}}}catch(e){a=!0,l=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw l}}return i}function I(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var l,s=n.args[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var c=l.value;if(w(c)||t&&t(n,c)){var f=k(c.type);(0,u.isInputObjectType)(f)?function(){var i=f.getFields();r.push({kind:"Argument",name:{kind:"Name",value:c.name},value:{kind:"ObjectValue",fields:D(e,t,n,Object.keys(i).map(function(e){return i[e]}))}})}():(0,u.isLeafType)(f)&&r.push({kind:"Argument",name:{kind:"Name",value:c.name},value:e(n,c,f)})}}}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return r}var L=function(e){function t(){var e,n,r;c(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addAllFieldsToSelections=function(e){var t={kind:"SelectionSet",selections:e?Object.keys(e).map(function(e){return{kind:"Field",name:{kind:"Name",value:e},arguments:[]}}):[]},n=[].concat(s(r.props.selections.filter(function(e){return"InlineFragment"===e.kind||e.name.value!==r.props.field.name})),[{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:I(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field),selectionSet:t}]);r.props.modifySelections(n)},r._addFieldToSelections=function(e){var t=[].concat(s(r.props.selections),[r._previousSelection||{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:I(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field)}]);r.props.modifySelections(t)},r._handleUpdateSelections=function(e){if(r._getSelection()&&!e.altKey)r._removeFieldFromSelections();else{var t=(0,u.getNamedType)(r.props.field.type),n=(0,u.isObjectType)(t)&&t.getFields();!!n&&e.altKey?r._addAllFieldsToSelections(n):r._addFieldToSelections(n)}},r._removeFieldFromSelections=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter(function(t){return t!==e}))},r._getSelection=function(){var e=r.props.selections.find(function(e){return"Field"===e.kind&&r.props.field.name===e.name.value});return e?"Field"===e.kind?e:void 0:null},r._setArguments=function(e){var t=r._getSelection();t?r.props.modifySelections(r.props.selections.map(function(n){return n===t?{alias:t.alias,arguments:e,directives:t.directives,kind:"Field",name:t.name,selectionSet:t.selectionSet}:n})):console.error("Missing selection when setting arguments",e)},r._modifyChildSelections=function(e){r.props.modifySelections(r.props.selections.map(function(t){if("Field"===t.kind&&r.props.field.name===t.name.value){if("Field"!==t.kind)throw new Error("invalid selection");return{alias:t.alias,arguments:t.arguments,directives:t.directives,kind:"Field",name:t.name,selectionSet:{kind:"SelectionSet",selections:e}}}return t}))},f(r,n)}return p(t,l.default.PureComponent),i(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.field,i=n.schema,o=n.getDefaultFieldNames,a=this._getSelection(),s=function(e){for(var t=e;(0,u.isWrappingType)(t);)t=t.ofType;return t}(r.type),c=r.args.sort(function(e,t){return e.name.localeCompare(t.name)}),f=l.default.createElement("div",{className:"graphiql-explorer-node"},l.default.createElement("span",{title:r.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":r.name,"data-field-type":s.name,onClick:this._handleUpdateSelections},(0,u.isObjectType)(s)?l.default.createElement("span",null,a?h:m):null,(0,u.isObjectType)(s)?null:l.default.createElement(y,{checked:!!a}),l.default.createElement("span",{style:{color:"rgb(31, 97, 160)"}},r.name)),a&&c.length?l.default.createElement("div",{style:{marginLeft:16}},c.map(function(t){return l.default.createElement(S,{key:t.name,parentField:r,arg:t,selection:a,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation})})):null);if(a&&((0,u.isObjectType)(s)||(0,u.isInterfaceType)(s)||(0,u.isUnionType)(s))){var p=(0,u.isUnionType)(s)?{}:s.getFields(),d=a&&a.selectionSet?a.selectionSet.selections:[];return l.default.createElement("div",null,f,l.default.createElement("div",{style:{marginLeft:16}},Object.keys(p).sort().map(function(n){return l.default.createElement(t,{key:n,field:p[n],selections:d,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation})}),(0,u.isInterfaceType)(s)||(0,u.isUnionType)(s)?i.getPossibleTypes(s).map(function(t){return l.default.createElement(A,{key:t.name,implementingType:t,selections:d,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:o,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation})}):null))}return f}}]),t}();var j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},M=null;function F(e){if(M&&M[0]===e)return M[1];var t=function(e){try{return e.trim()?(0,u.parse)(e,{noLocation:!0}):null}catch(e){return new Error(e)}}(e);return t?t instanceof Error?M?M[1]:j:(M=[e,t],t):j}var R={fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},P={margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"},V=function(e){function t(){var e,n,i;c(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=i=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i._modifySelections=function(e){var t=i.props.definition;0===t.selectionSet.selections.length&&i._previousOperationDef&&(t=i._previousOperationDef);var n=void 0;0===e.length?(i._previousOperationDef=t,n=null):"FragmentDefinition"===t.kind?n=r({},t,{selectionSet:r({},t.selectionSet,{selections:e})}):"OperationDefinition"===t.kind&&(n=r({},t,{selectionSet:r({},t.selectionSet,{selections:e})})),i.props.onEdit(n)},i._onOperationRename=function(e){return i.props.onOperationRename(e.target.value)},i._handlePotentialRun=function(e){O(e)&&i.props.onRunOperation(i.props.name)},f(i,n)}return p(t,l.default.PureComponent),i(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.fields,r=t.operation,i=t.name,o=t.definition,a=t.schema,u=t.getDefaultFieldNames,s=o.selectionSet.selections,c=this.props.name||d(r)+" Name";return l.default.createElement("div",{id:r+"-"+(i||"unknown"),style:{borderBottom:"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},l.default.createElement("div",{style:{color:"#B11A04",paddingBottom:4}},r," ",l.default.createElement("span",{style:{color:"rgb(193, 42,80)"}},l.default.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",color:"rgb(193, 42,80)",width:Math.max(4,c.length)+"ch"},autoComplete:"false",placeholder:d(r)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?l.default.createElement("span",null,l.default.createElement("br",null),"on "+this.props.onTypeName):""),Object.keys(n||{}).sort().map(function(t){return l.default.createElement(L,{key:t,field:n[t],selections:s,modifySelections:e._modifySelections,schema:a,getDefaultFieldNames:u,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation})}))}}]),t}(),U=function(e){function t(){var e,n,r;c(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._resetScroll=function(){var e=r._ref;e&&(e.scrollLeft=0)},r._onEdit=function(e){return r.props.onEdit(e)},f(r,n)}return p(t,l.default.PureComponent),i(t,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var e=this,t=this.props,n=t.schema,i=t.query,o=t.makeDefaultArg;if(!n)return l.default.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var a=n.getQueryType(),c=n.getMutationType(),f=n.getSubscriptionType();if(!a&&!c&&!f)return l.default.createElement("div",null,"Missing query type");var p=a&&a.getFields(),h=c&&c.getFields(),m=f&&f.getFields(),v=F(i),g=this.props.getDefaultFieldNames||b,y=this.props.getDefaultScalarArgValue||_,w=v.definitions.map(function(e){return"FragmentDefinition"===e.kind?e:"OperationDefinition"===e.kind?e:null}).filter(Boolean),k=0===w.length?j.definitions:w,x=function(t){var n=v.definitions,i=1===v.definitions.length&&v.definitions[0]===j.definitions[0],o=i?[]:n.filter(function(e){return"OperationDefinition"===e.kind&&e.operation===t}),a="My"+d(t)+(0===o.length?"":o.length+1),l={kind:"OperationDefinition",operation:t,name:{kind:"Name",value:a},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},c=i?[l]:[].concat(s(v.definitions),[l]),f=r({},v,{definitions:c});e.props.onEdit((0,u.print)(f))};return l.default.createElement("div",{ref:function(t){e._ref=t},style:{fontSize:12,overflow:"scroll",textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace'},className:"graphiql-explorer-root"},k.map(function(t,i){var a=t&&t.name&&t.name.value,s="FragmentDefinition"===t.kind?"fragment":t&&t.operation||"query",c="FragmentDefinition"===t.kind&&"NamedType"===t.typeCondition.kind&&n.getType(t.typeCondition.name.value),f=c instanceof u.GraphQLObjectType?c.getFields():null,d="query"===s?p:"mutation"===s?h:"subscription"===s?m:"FragmentDefinition"===t.kind?f:null,b="FragmentDefinition"===t.kind?t.typeCondition.name.value:null;return l.default.createElement(V,{key:i,fields:d,operation:s,name:a,definition:t,onOperationRename:function(n){var i,o,a,l,s=(a=r({},i=t,{name:null==(o=n)||""===o?null:{kind:"Name",value:o,loc:void 0}}),l=v.definitions.map(function(e){return i===e?a:e}),r({},v,{definitions:l}));e.props.onEdit((0,u.print)(s))},onTypeName:b,onEdit:function(n){var i=r({},v,{definitions:v.definitions.map(function(e){return e===t?n:e})}),o=(0,u.print)(i);e.props.onEdit(o)},schema:n,getDefaultFieldNames:g,getDefaultScalarArgValue:y,makeDefaultArg:o,onRunOperation:function(){e.props.onRunOperation&&e.props.onRunOperation(a)}})}),l.default.createElement("div",{className:"variable-editor-title",style:P},p?l.default.createElement("button",{className:"toolbar-button",style:R,type:"link",onClick:function(){return x("query")}},"+ ADD NEW QUERY"):null,h?l.default.createElement("button",{className:"toolbar-button",style:R,type:"link",onClick:function(){return x("mutation")}},"+ ADD NEW MUTATION"):null,m?l.default.createElement("button",{className:"toolbar-button",style:R,type:"link",onClick:function(){return x("subscription")}},"+ ADD NEW SUBSCRIPTION"):null))}}]),t}();U.defaultProps={getDefaultFieldNames:b,getDefaultScalarArgValue:_};var B=function(e){function t(){var e,n,r;c(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1,error:null,errorInfo:null},f(r,n)}return p(t,l.default.Component),i(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,errorInfo:t}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?l.default.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},l.default.createElement("div",null,"Something went wrong"),l.default.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,l.default.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),t}(),q=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,l.default.PureComponent),i(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"historyPaneWrap",style:{height:"100%",width:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"block":"none"}},l.default.createElement("div",{className:"history-title-bar"},l.default.createElement("div",{className:"history-title"},"Explorer"),l.default.createElement("div",{className:"doc-explorer-rhs"},l.default.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),l.default.createElement("div",{className:"history-contents"},l.default.createElement(B,null,l.default.createElement(U,this.props))))}}]),t}();q.defaultValue=E,q.defaultProps={width:380},t.default=q},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",function(){return s}),n.d(t,"Request",function(){return v}),n.d(t,"Response",function(){return y}),n.d(t,"DOMException",function(){return w}),n.d(t,"fetch",function(){return k});var r={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(r.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function s(e){this.map={},e instanceof s?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=c(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}s.prototype.append=function(e,t){e=a(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},s.prototype.delete=function(e){delete this.map[a(e)]},s.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},s.prototype.set=function(e,t){this.map[a(e)]=l(t)},s.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},s.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},s.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},s.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},r.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var n,r,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new s(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new s(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),m.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new s(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})};var w=self.DOMException;try{new w}catch(e){(w=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function k(e,t){return new Promise(function(n,i){var o=new v(e,t);if(o.signal&&o.signal.aborted)return i(new w("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new s,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new y(i,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new w("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&r.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",l)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}k.polyfill=!0,self.fetch||(self.fetch=k,self.Headers=s,self.Request=v,self.Response=y)},function(e,t,n){var r=n(277);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(121)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(120)(!1)).push([e.i,".graphiql-container,\n.graphiql-container button,\n.graphiql-container input {\n color: #141823;\n font-family:\n system,\n -apple-system,\n 'San Francisco',\n '.SFNSDisplay-Regular',\n 'Segoe UI',\n Segoe,\n 'Segoe WP',\n 'Helvetica Neue',\n helvetica,\n 'Lucida Grande',\n arial,\n sans-serif;\n font-size: 14px;\n}\n\n.graphiql-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n height: 100%;\n margin: 0;\n overflow: hidden;\n width: 100%;\n}\n\n.graphiql-container .editorWrap {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n overflow-x: hidden;\n}\n\n.graphiql-container .title {\n font-size: 18px;\n}\n\n.graphiql-container .title em {\n font-family: georgia;\n font-size: 19px;\n}\n\n.graphiql-container .topBarWrap {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.graphiql-container .topBar {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n background: -webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#e2e2e2));\n background: linear-gradient(#f7f7f7, #e2e2e2);\n border-bottom: 1px solid #d0d0d0;\n cursor: default;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 34px;\n overflow-y: visible;\n padding: 7px 14px 6px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.graphiql-container .toolbar {\n overflow-x: visible;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n\n.graphiql-container .docExplorerShow,\n.graphiql-container .historyShow {\n background: -webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#e2e2e2));\n background: linear-gradient(#f7f7f7, #e2e2e2);\n border-radius: 0;\n border-bottom: 1px solid #d0d0d0;\n border-right: none;\n border-top: none;\n color: #3B5998;\n cursor: pointer;\n font-size: 14px;\n margin: 0;\n outline: 0;\n padding: 2px 20px 0 18px;\n}\n\n.graphiql-container .docExplorerShow {\n border-left: 1px solid rgba(0, 0, 0, 0.2);\n}\n\n.graphiql-container .historyShow {\n border-right: 1px solid rgba(0, 0, 0, 0.2);\n border-left: 0;\n}\n\n.graphiql-container .docExplorerShow:before {\n border-left: 2px solid #3B5998;\n border-top: 2px solid #3B5998;\n content: '';\n display: inline-block;\n height: 9px;\n margin: 0 3px -1px 0;\n position: relative;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n width: 9px;\n}\n\n.graphiql-container .editorBar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n\n.graphiql-container .queryWrap {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n\n.graphiql-container .resultWrap {\n border-left: solid 1px #e0e0e0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n}\n\n.graphiql-container .docExplorerWrap,\n.graphiql-container .historyPaneWrap {\n background: white;\n -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 3;\n}\n\n.graphiql-container .historyPaneWrap {\n min-width: 230px;\n z-index: 5;\n}\n\n.graphiql-container .docExplorerResizer {\n cursor: col-resize;\n height: 100%;\n left: -5px;\n position: absolute;\n top: 0;\n width: 10px;\n z-index: 10;\n}\n\n.graphiql-container .docExplorerHide {\n cursor: pointer;\n font-size: 18px;\n margin: -7px -8px -6px 0;\n padding: 18px 16px 15px 12px;\n}\n\n.graphiql-container div .query-editor {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n}\n\n.graphiql-container .variable-editor {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 30px;\n position: relative;\n}\n\n.graphiql-container .variable-editor-title {\n background: #eeeeee;\n border-bottom: 1px solid #d6d6d6;\n border-top: 1px solid #e0e0e0;\n color: #777;\n font-variant: small-caps;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 14px;\n padding: 6px 0 8px 43px;\n text-transform: lowercase;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.graphiql-container .codemirrorWrap {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n position: relative;\n}\n\n.graphiql-container .result-window {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n position: relative;\n}\n\n.graphiql-container .footer {\n background: #f6f7f8;\n border-left: 1px solid #e0e0e0;\n border-top: 1px solid #e0e0e0;\n margin-left: 12px;\n position: relative;\n}\n\n.graphiql-container .footer:before {\n background: #eeeeee;\n bottom: 0;\n content: \" \";\n left: -13px;\n position: absolute;\n top: -1px;\n width: 12px;\n}\n\n/* No `.graphiql-container` here so themes can overwrite */\n.result-window .CodeMirror {\n background: #f6f7f8;\n}\n\n.graphiql-container .result-window .CodeMirror-gutters {\n background-color: #eeeeee;\n border-color: #e0e0e0;\n cursor: col-resize;\n}\n\n.graphiql-container .result-window .CodeMirror-foldgutter,\n.graphiql-container .result-window .CodeMirror-foldgutter-open:after,\n.graphiql-container .result-window .CodeMirror-foldgutter-folded:after {\n padding-left: 3px;\n}\n\n.graphiql-container .toolbar-button {\n background: #fdfdfd;\n background: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));\n background: linear-gradient(#f9f9f9, #ececec);\n border-radius: 3px;\n -webkit-box-shadow:\n inset 0 0 0 1px rgba(0,0,0,0.20),\n 0 1px 0 rgba(255,255,255, 0.7),\n inset 0 1px #fff;\n box-shadow:\n inset 0 0 0 1px rgba(0,0,0,0.20),\n 0 1px 0 rgba(255,255,255, 0.7),\n inset 0 1px #fff;\n color: #555;\n cursor: pointer;\n display: inline-block;\n margin: 0 5px;\n padding: 3px 11px 5px;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 150px;\n}\n\n.graphiql-container .toolbar-button:active {\n background: -webkit-gradient(linear, left top, left bottom, from(#ececec), to(#d5d5d5));\n background: linear-gradient(#ececec, #d5d5d5);\n -webkit-box-shadow:\n 0 1px 0 rgba(255, 255, 255, 0.7),\n inset 0 0 0 1px rgba(0,0,0,0.10),\n inset 0 1px 1px 1px rgba(0, 0, 0, 0.12),\n inset 0 0 5px rgba(0, 0, 0, 0.1);\n box-shadow:\n 0 1px 0 rgba(255, 255, 255, 0.7),\n inset 0 0 0 1px rgba(0,0,0,0.10),\n inset 0 1px 1px 1px rgba(0, 0, 0, 0.12),\n inset 0 0 5px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container .toolbar-button.error {\n background: -webkit-gradient(linear, left top, left bottom, from(#fdf3f3), to(#e6d6d7));\n background: linear-gradient(#fdf3f3, #e6d6d7);\n color: #b00;\n}\n\n.graphiql-container .toolbar-button-group {\n margin: 0 5px;\n white-space: nowrap;\n}\n\n.graphiql-container .toolbar-button-group > * {\n margin: 0;\n}\n\n.graphiql-container .toolbar-button-group > *:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.graphiql-container .toolbar-button-group > *:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n margin-left: -1px;\n}\n\n.graphiql-container .execute-button-wrap {\n height: 34px;\n margin: 0 14px 0 28px;\n position: relative;\n}\n\n.graphiql-container .execute-button {\n background: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#d2d3d6));\n background: linear-gradient(#fdfdfd, #d2d3d6);\n border-radius: 17px;\n border: 1px solid rgba(0,0,0,0.25);\n -webkit-box-shadow: 0 1px 0 #fff;\n box-shadow: 0 1px 0 #fff;\n cursor: pointer;\n fill: #444;\n height: 34px;\n margin: 0;\n padding: 0;\n width: 34px;\n}\n\n.graphiql-container .execute-button svg {\n pointer-events: none;\n}\n\n.graphiql-container .execute-button:active {\n background: -webkit-gradient(linear, left top, left bottom, from(#e6e6e6), to(#c3c3c3));\n background: linear-gradient(#e6e6e6, #c3c3c3);\n -webkit-box-shadow:\n 0 1px 0 #fff,\n inset 0 0 2px rgba(0, 0, 0, 0.2),\n inset 0 0 6px rgba(0, 0, 0, 0.1);\n box-shadow:\n 0 1px 0 #fff,\n inset 0 0 2px rgba(0, 0, 0, 0.2),\n inset 0 0 6px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container .execute-button:focus {\n outline: 0;\n}\n\n.graphiql-container .toolbar-menu,\n.graphiql-container .toolbar-select {\n position: relative;\n}\n\n.graphiql-container .execute-options,\n.graphiql-container .toolbar-menu-items,\n.graphiql-container .toolbar-select-options {\n background: #fff;\n -webkit-box-shadow:\n 0 0 0 1px rgba(0,0,0,0.1),\n 0 2px 4px rgba(0,0,0,0.25);\n box-shadow:\n 0 0 0 1px rgba(0,0,0,0.1),\n 0 2px 4px rgba(0,0,0,0.25);\n margin: 0;\n padding: 6px 0;\n position: absolute;\n z-index: 100;\n}\n\n.graphiql-container .execute-options {\n min-width: 100px;\n top: 37px;\n left: -1px;\n}\n\n.graphiql-container .toolbar-menu-items {\n left: 1px;\n margin-top: -1px;\n min-width: 110%;\n top: 100%;\n visibility: hidden;\n}\n\n.graphiql-container .toolbar-menu-items.open {\n visibility: visible;\n}\n\n.graphiql-container .toolbar-select-options {\n left: 0;\n min-width: 100%;\n top: -5px;\n visibility: hidden;\n}\n\n.graphiql-container .toolbar-select-options.open {\n visibility: visible;\n}\n\n.graphiql-container .execute-options > li,\n.graphiql-container .toolbar-menu-items > li,\n.graphiql-container .toolbar-select-options > li {\n cursor: pointer;\n display: block;\n margin: none;\n max-width: 300px;\n overflow: hidden;\n padding: 2px 20px 4px 11px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.graphiql-container .execute-options > li.selected,\n.graphiql-container .toolbar-menu-items > li.hover,\n.graphiql-container .toolbar-menu-items > li:active,\n.graphiql-container .toolbar-menu-items > li:hover,\n.graphiql-container .toolbar-select-options > li.hover,\n.graphiql-container .toolbar-select-options > li:active,\n.graphiql-container .toolbar-select-options > li:hover,\n.graphiql-container .history-contents > p:hover,\n.graphiql-container .history-contents > p:active {\n background: #e10098;\n color: #fff;\n}\n\n.graphiql-container .toolbar-select-options > li > svg {\n display: inline;\n fill: #666;\n margin: 0 -6px 0 6px;\n pointer-events: none;\n vertical-align: middle;\n}\n\n.graphiql-container .toolbar-select-options > li.hover > svg,\n.graphiql-container .toolbar-select-options > li:active > svg,\n.graphiql-container .toolbar-select-options > li:hover > svg {\n fill: #fff;\n}\n\n.graphiql-container .CodeMirror-scroll {\n overflow-scrolling: touch;\n}\n\n.graphiql-container .CodeMirror {\n color: #141823;\n font-family:\n 'Consolas',\n 'Inconsolata',\n 'Droid Sans Mono',\n 'Monaco',\n monospace;\n font-size: 13px;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n\n.graphiql-container .CodeMirror-lines {\n padding: 20px 0;\n}\n\n.CodeMirror-hint-information .content {\n box-orient: vertical;\n color: #141823;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular', 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande', arial, sans-serif;\n font-size: 13px;\n line-clamp: 3;\n line-height: 16px;\n max-height: 48px;\n overflow: hidden;\n text-overflow: -o-ellipsis-lastline;\n}\n\n.CodeMirror-hint-information .content p:first-child {\n margin-top: 0;\n}\n\n.CodeMirror-hint-information .content p:last-child {\n margin-bottom: 0;\n}\n\n.CodeMirror-hint-information .infoType {\n color: #CA9800;\n cursor: pointer;\n display: inline;\n margin-right: 0.5em;\n}\n\n.autoInsertedLeaf.cm-property {\n -webkit-animation-duration: 6s;\n animation-duration: 6s;\n -webkit-animation-name: insertionFade;\n animation-name: insertionFade;\n border-bottom: 2px solid rgba(255, 255, 255, 0);\n border-radius: 2px;\n margin: -2px -4px -1px;\n padding: 2px 4px 1px;\n}\n\n@-webkit-keyframes insertionFade {\n from, to {\n background: rgba(255, 255, 255, 0);\n border-color: rgba(255, 255, 255, 0);\n }\n\n 15%, 85% {\n background: #fbffc9;\n border-color: #f0f3c0;\n }\n}\n\n@keyframes insertionFade {\n from, to {\n background: rgba(255, 255, 255, 0);\n border-color: rgba(255, 255, 255, 0);\n }\n\n 15%, 85% {\n background: #fbffc9;\n border-color: #f0f3c0;\n }\n}\n\ndiv.CodeMirror-lint-tooltip {\n background-color: white;\n border-radius: 2px;\n border: 0;\n color: #141823;\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n font-family:\n system,\n -apple-system,\n 'San Francisco',\n '.SFNSDisplay-Regular',\n 'Segoe UI',\n Segoe,\n 'Segoe WP',\n 'Helvetica Neue',\n helvetica,\n 'Lucida Grande',\n arial,\n sans-serif;\n font-size: 13px;\n line-height: 16px;\n max-width: 430px;\n opacity: 0;\n padding: 8px 10px;\n -webkit-transition: opacity 0.15s;\n transition: opacity 0.15s;\n white-space: pre-wrap;\n}\n\ndiv.CodeMirror-lint-tooltip > * {\n padding-left: 23px;\n}\n\ndiv.CodeMirror-lint-tooltip > * + * {\n margin-top: 12px;\n}\n\n/* COLORS */\n\n.graphiql-container .CodeMirror-foldmarker {\n border-radius: 4px;\n background: #08f;\n background: -webkit-gradient(linear, left top, left bottom, from(#43A8FF), to(#0F83E8));\n background: linear-gradient(#43A8FF, #0F83E8);\n -webkit-box-shadow:\n 0 1px 1px rgba(0, 0, 0, 0.2),\n inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n box-shadow:\n 0 1px 1px rgba(0, 0, 0, 0.2),\n inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n color: white;\n font-family: arial;\n font-size: 12px;\n line-height: 0;\n margin: 0 3px;\n padding: 0px 4px 1px;\n text-shadow: 0 -1px rgba(0, 0, 0, 0.1);\n}\n\n.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket {\n color: #555;\n text-decoration: underline;\n}\n\n.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket {\n color: #f00;\n}\n\n/* Comment */\n.cm-comment {\n color: #999;\n}\n\n/* Punctuation */\n.cm-punctuation {\n color: #555;\n}\n\n/* Keyword */\n.cm-keyword {\n color: #B11A04;\n}\n\n/* OperationName, FragmentName */\n.cm-def {\n color: #D2054E;\n}\n\n/* FieldName */\n.cm-property {\n color: #1F61A0;\n}\n\n/* FieldAlias */\n.cm-qualifier {\n color: #1C92A9;\n}\n\n/* ArgumentName and ObjectFieldName */\n.cm-attribute {\n color: #8B2BB9;\n}\n\n/* Number */\n.cm-number {\n color: #2882F9;\n}\n\n/* String */\n.cm-string {\n color: #D64292;\n}\n\n/* Boolean */\n.cm-builtin {\n color: #D47509;\n}\n\n/* EnumValue */\n.cm-string-2 {\n color: #0B7FC7;\n}\n\n/* Variable */\n.cm-variable {\n color: #397D13;\n}\n\n/* Directive */\n.cm-meta {\n color: #B33086;\n}\n\n/* Type */\n.cm-atom {\n color: #CA9800;\n}\n/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n color: black;\n font-family: monospace;\n height: 300px;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n color: #999;\n min-width: 20px;\n padding: 0 3px 0 5px;\n text-align: right;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror .CodeMirror-cursor {\n border-left: 1px solid black;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursor {\n background: #7e7;\n border: 0;\n width: auto;\n}\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n\n.cm-animate-fat-cursor {\n -webkit-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n border: 0;\n width: auto;\n}\n@-webkit-keyframes blink {\n 0% { background: #7e7; }\n 50% { background: none; }\n 100% { background: #7e7; }\n}\n@keyframes blink {\n 0% { background: #7e7; }\n 50% { background: none; }\n 100% { background: #7e7; }\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\ndiv.CodeMirror-overwrite div.CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3 {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n background: white;\n overflow: hidden;\n position: relative;\n}\n\n.CodeMirror-scroll {\n height: 100%;\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px; margin-right: -30px;\n outline: none; /* Prevent dragging from highlighting the element */\n overflow: scroll !important; /* Things will break if this is overridden */\n padding-bottom: 30px;\n position: relative;\n}\n.CodeMirror-sizer {\n border-right: 30px solid transparent;\n position: relative;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n display: none;\n position: absolute;\n z-index: 6;\n}\n.CodeMirror-vscrollbar {\n overflow-x: hidden;\n overflow-y: scroll;\n right: 0; top: 0;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-x: scroll;\n overflow-y: hidden;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n min-height: 100%;\n position: absolute; left: 0; top: 0;\n z-index: 3;\n}\n.CodeMirror-gutter {\n display: inline-block;\n height: 100%;\n margin-bottom: -30px;\n vertical-align: top;\n white-space: normal;\n /* Hack to make IE7 behave */\n *zoom:1;\n *display:inline;\n}\n.CodeMirror-gutter-wrapper {\n background: none !important;\n border: none !important;\n position: absolute;\n z-index: 4;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n cursor: default;\n position: absolute;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre {\n -webkit-tap-highlight-color: transparent;\n /* Reset some styles that the rest of the page might have set */\n background: transparent;\n border-radius: 0;\n border-width: 0;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n line-height: inherit;\n margin: 0;\n overflow: visible;\n position: relative;\n white-space: pre;\n word-wrap: normal;\n z-index: 2;\n}\n.CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n overflow: auto;\n position: relative;\n z-index: 2;\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n height: 0;\n overflow: hidden;\n position: absolute;\n visibility: hidden;\n width: 100%;\n}\n\n.CodeMirror-cursor { position: absolute; }\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n position: relative;\n visibility: hidden;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background: #ffa;\n background: rgba(255, 255, 0, .4);\n}\n\n/* IE7 hack to prevent it from returning funny offsetTops on the spans */\n.CodeMirror span { *vertical-align: text-bottom; }\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n\n.CodeMirror-dialog {\n background: inherit;\n color: inherit;\n left: 0; right: 0;\n overflow: hidden;\n padding: .1em .8em;\n position: absolute;\n z-index: 15;\n}\n\n.CodeMirror-dialog-top {\n border-bottom: 1px solid #eee;\n top: 0;\n}\n\n.CodeMirror-dialog-bottom {\n border-top: 1px solid #eee;\n bottom: 0;\n}\n\n.CodeMirror-dialog input {\n background: transparent;\n border: 1px solid #d3d6db;\n color: inherit;\n font-family: monospace;\n outline: none;\n width: 20em;\n}\n\n.CodeMirror-dialog button {\n font-size: 70%;\n}\n.graphiql-container .doc-explorer {\n background: white;\n}\n\n.graphiql-container .doc-explorer-title-bar,\n.graphiql-container .history-title-bar {\n cursor: default;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 34px;\n line-height: 14px;\n padding: 8px 8px 5px;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.graphiql-container .doc-explorer-title,\n.graphiql-container .history-title {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bold;\n overflow-x: hidden;\n padding: 10px 0 10px 10px;\n text-align: center;\n text-overflow: ellipsis;\n -webkit-user-select: initial;\n -moz-user-select: initial;\n -ms-user-select: initial;\n user-select: initial;\n white-space: nowrap;\n}\n\n.graphiql-container .doc-explorer-back {\n color: #3B5998;\n cursor: pointer;\n margin: -7px 0 -6px -8px;\n overflow-x: hidden;\n padding: 17px 12px 16px 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.doc-explorer-narrow .doc-explorer-back {\n width: 0;\n}\n\n.graphiql-container .doc-explorer-back:before {\n border-left: 2px solid #3B5998;\n border-top: 2px solid #3B5998;\n content: '';\n display: inline-block;\n height: 9px;\n margin: 0 3px -1px 0;\n position: relative;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n width: 9px;\n}\n\n.graphiql-container .doc-explorer-rhs {\n position: relative;\n}\n\n.graphiql-container .doc-explorer-contents,\n.graphiql-container .history-contents {\n background-color: #ffffff;\n border-top: 1px solid #d6d6d6;\n bottom: 0;\n left: 0;\n overflow-y: auto;\n padding: 20px 15px;\n position: absolute;\n right: 0;\n top: 47px;\n}\n\n.graphiql-container .doc-explorer-contents {\n min-width: 300px;\n}\n\n.graphiql-container .doc-type-description p:first-child ,\n.graphiql-container .doc-type-description blockquote:first-child {\n margin-top: 0;\n}\n\n.graphiql-container .doc-explorer-contents a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.graphiql-container .doc-explorer-contents a:hover {\n text-decoration: underline;\n}\n\n.graphiql-container .doc-value-description > :first-child {\n margin-top: 4px;\n}\n\n.graphiql-container .doc-value-description > :last-child {\n margin-bottom: 4px;\n}\n\n.graphiql-container .doc-category {\n margin: 20px 0;\n}\n\n.graphiql-container .doc-category-title {\n border-bottom: 1px solid #e0e0e0;\n color: #777;\n cursor: default;\n font-size: 14px;\n font-variant: small-caps;\n font-weight: bold;\n letter-spacing: 1px;\n margin: 0 -15px 10px 0;\n padding: 10px 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.graphiql-container .doc-category-item {\n margin: 12px 0;\n color: #555;\n}\n\n.graphiql-container .keyword {\n color: #B11A04;\n}\n\n.graphiql-container .type-name {\n color: #CA9800;\n}\n\n.graphiql-container .field-name {\n color: #1F61A0;\n}\n\n.graphiql-container .field-short-description {\n color: #999;\n margin-left: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.graphiql-container .enum-value {\n color: #0B7FC7;\n}\n\n.graphiql-container .arg-name {\n color: #8B2BB9;\n}\n\n.graphiql-container .arg {\n display: block;\n margin-left: 1em;\n}\n\n.graphiql-container .arg:first-child:last-child,\n.graphiql-container .arg:first-child:nth-last-child(2),\n.graphiql-container .arg:first-child:nth-last-child(2) ~ .arg {\n display: inherit;\n margin: inherit;\n}\n\n.graphiql-container .arg:first-child:nth-last-child(2):after {\n content: ', ';\n}\n\n.graphiql-container .arg-default-value {\n color: #43A047;\n}\n\n.graphiql-container .doc-deprecation {\n background: #fffae8;\n -webkit-box-shadow: inset 0 0 1px #bfb063;\n box-shadow: inset 0 0 1px #bfb063;\n color: #867F70;\n line-height: 16px;\n margin: 8px -8px;\n max-height: 80px;\n overflow: hidden;\n padding: 8px;\n border-radius: 3px;\n}\n\n.graphiql-container .doc-deprecation:before {\n content: 'Deprecated:';\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.graphiql-container .doc-deprecation > :first-child {\n margin-top: 0;\n}\n\n.graphiql-container .doc-deprecation > :last-child {\n margin-bottom: 0;\n}\n\n.graphiql-container .show-btn {\n -webkit-appearance: initial;\n display: block;\n border-radius: 3px;\n border: solid 1px #ccc;\n text-align: center;\n padding: 8px 12px 10px;\n width: 100%;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: #fbfcfc;\n color: #555;\n cursor: pointer;\n}\n\n.graphiql-container .search-box {\n border-bottom: 1px solid #d3d6db;\n display: block;\n font-size: 14px;\n margin: -15px -15px 12px 0;\n position: relative;\n}\n\n.graphiql-container .search-box:before {\n content: '\\26B2';\n cursor: pointer;\n display: block;\n font-size: 24px;\n position: absolute;\n top: -2px;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.graphiql-container .search-box .search-box-clear {\n background-color: #d0d0d0;\n border-radius: 12px;\n color: #fff;\n cursor: pointer;\n font-size: 11px;\n padding: 1px 5px 2px;\n position: absolute;\n right: 3px;\n top: 8px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.graphiql-container .search-box .search-box-clear:hover {\n background-color: #b9b9b9;\n}\n\n.graphiql-container .search-box > input {\n border: none;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 14px;\n outline: none;\n padding: 6px 24px 8px 20px;\n width: 100%;\n}\n\n.graphiql-container .error-container {\n font-weight: bold;\n left: 0;\n letter-spacing: 1px;\n opacity: 0.5;\n position: absolute;\n right: 0;\n text-align: center;\n text-transform: uppercase;\n top: 50%;\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n}\n.CodeMirror-foldmarker {\n color: blue;\n cursor: pointer;\n font-family: arial;\n line-height: .3;\n text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;\n}\n.CodeMirror-foldgutter {\n width: .7em;\n}\n.CodeMirror-foldgutter-open,\n.CodeMirror-foldgutter-folded {\n cursor: pointer;\n}\n.CodeMirror-foldgutter-open:after {\n content: \"\\25BE\";\n}\n.CodeMirror-foldgutter-folded:after {\n content: \"\\25B8\";\n}\n.graphiql-container .history-contents,\n.graphiql-container .history-contents input {\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n padding: 0;\n}\n\n.graphiql-container .history-contents p {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0;\n padding: 8px;\n border-bottom: 1px solid #e0e0e0;\n}\n\n.graphiql-container .history-contents p.editable {\n padding-bottom: 6px;\n padding-top: 7px;\n}\n\n.graphiql-container .history-contents input {\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n font-size: 12px;\n}\n\n.graphiql-container .history-contents p:hover {\n cursor: pointer;\n}\n\n.graphiql-container .history-contents p span.history-label {\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}.CodeMirror-info {\n background: white;\n border-radius: 2px;\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #555;\n font-family:\n system,\n -apple-system,\n 'San Francisco',\n '.SFNSDisplay-Regular',\n 'Segoe UI',\n Segoe,\n 'Segoe WP',\n 'Helvetica Neue',\n helvetica,\n 'Lucida Grande',\n arial,\n sans-serif;\n font-size: 13px;\n line-height: 16px;\n margin: 8px -8px;\n max-width: 400px;\n opacity: 0;\n overflow: hidden;\n padding: 8px 8px;\n position: fixed;\n -webkit-transition: opacity 0.15s;\n transition: opacity 0.15s;\n z-index: 50;\n}\n\n.CodeMirror-info :first-child {\n margin-top: 0;\n}\n\n.CodeMirror-info :last-child {\n margin-bottom: 0;\n}\n\n.CodeMirror-info p {\n margin: 1em 0;\n}\n\n.CodeMirror-info .info-description {\n color: #777;\n line-height: 16px;\n margin-top: 1em;\n max-height: 80px;\n overflow: hidden;\n}\n\n.CodeMirror-info .info-deprecation {\n background: #fffae8;\n -webkit-box-shadow: inset 0 1px 1px -1px #bfb063;\n box-shadow: inset 0 1px 1px -1px #bfb063;\n color: #867F70;\n line-height: 16px;\n margin: -8px;\n margin-top: 8px;\n max-height: 80px;\n overflow: hidden;\n padding: 8px;\n}\n\n.CodeMirror-info .info-deprecation-label {\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.CodeMirror-info .info-deprecation-label + * {\n margin-top: 0;\n}\n\n.CodeMirror-info a {\n text-decoration: none;\n}\n\n.CodeMirror-info a:hover {\n text-decoration: underline;\n}\n\n.CodeMirror-info .type-name {\n color: #CA9800;\n}\n\n.CodeMirror-info .field-name {\n color: #1F61A0;\n}\n\n.CodeMirror-info .enum-value {\n color: #0B7FC7;\n}\n\n.CodeMirror-info .arg-name {\n color: #8B2BB9;\n}\n\n.CodeMirror-info .directive-name {\n color: #B33086;\n}\n.CodeMirror-jump-token {\n text-decoration: underline;\n cursor: pointer;\n}\n/* The lint marker gutter */\n.CodeMirror-lint-markers {\n width: 16px;\n}\n\n.CodeMirror-lint-tooltip {\n background-color: infobackground;\n border-radius: 4px 4px 4px 4px;\n border: 1px solid black;\n color: infotext;\n font-family: monospace;\n font-size: 10pt;\n max-width: 600px;\n opacity: 0;\n overflow: hidden;\n padding: 2px 5px;\n position: fixed;\n -webkit-transition: opacity .4s;\n transition: opacity .4s;\n white-space: pre-wrap;\n z-index: 100;\n}\n\n.CodeMirror-lint-mark-error, .CodeMirror-lint-mark-warning {\n background-position: left bottom;\n background-repeat: repeat-x;\n}\n\n.CodeMirror-lint-mark-error {\n background-image:\n url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==\")\n ;\n}\n\n.CodeMirror-lint-mark-warning {\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=\");\n}\n\n.CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning {\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n display: inline-block;\n height: 16px;\n position: relative;\n vertical-align: middle;\n width: 16px;\n}\n\n.CodeMirror-lint-message-error, .CodeMirror-lint-message-warning {\n background-position: top left;\n background-repeat: no-repeat;\n padding-left: 18px;\n}\n\n.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=\");\n}\n\n.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=\");\n}\n\n.CodeMirror-lint-marker-multiple {\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC\");\n background-position: right bottom;\n background-repeat: no-repeat;\n width: 100%; height: 100%;\n}\n.graphiql-container .spinner-container {\n height: 36px;\n left: 50%;\n position: absolute;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n width: 36px;\n z-index: 10;\n}\n\n.graphiql-container .spinner {\n -webkit-animation: rotation .6s infinite linear;\n animation: rotation .6s infinite linear;\n border-bottom: 6px solid rgba(150, 150, 150, .15);\n border-left: 6px solid rgba(150, 150, 150, .15);\n border-radius: 100%;\n border-right: 6px solid rgba(150, 150, 150, .15);\n border-top: 6px solid rgba(150, 150, 150, .8);\n display: inline-block;\n height: 24px;\n position: absolute;\n vertical-align: middle;\n width: 24px;\n}\n\n@-webkit-keyframes rotation {\n from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n to { -webkit-transform: rotate(359deg); transform: rotate(359deg); }\n}\n\n@keyframes rotation {\n from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n to { -webkit-transform: rotate(359deg); transform: rotate(359deg); }\n}\n.CodeMirror-hints {\n background: white;\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\n font-size: 13px;\n list-style: none;\n margin-left: -6px;\n margin: 0;\n max-height: 14.5em;\n overflow-y: auto;\n overflow: hidden;\n padding: 0;\n position: absolute;\n z-index: 10;\n}\n\n.CodeMirror-hint {\n border-top: solid 1px #f7f7f7;\n color: #141823;\n cursor: pointer;\n margin: 0;\n max-width: 300px;\n overflow: hidden;\n padding: 2px 6px;\n white-space: pre;\n}\n\nli.CodeMirror-hint-active {\n background-color: #08f;\n border-top-color: white;\n color: white;\n}\n\n.CodeMirror-hint-information {\n border-top: solid 1px #c0c0c0;\n max-width: 300px;\n padding: 4px 6px;\n position: relative;\n z-index: 1;\n}\n\n.CodeMirror-hint-information:first-child {\n border-bottom: solid 1px #c0c0c0;\n border-top: none;\n margin-bottom: -1px;\n}\n\n.CodeMirror-hint-deprecation {\n background: #fffae8;\n -webkit-box-shadow: inset 0 1px 1px -1px #bfb063;\n box-shadow: inset 0 1px 1px -1px #bfb063;\n color: #867F70;\n font-family:\n system,\n -apple-system,\n 'San Francisco',\n '.SFNSDisplay-Regular',\n 'Segoe UI',\n Segoe,\n 'Segoe WP',\n 'Helvetica Neue',\n helvetica,\n 'Lucida Grande',\n arial,\n sans-serif;\n font-size: 13px;\n line-height: 16px;\n margin-top: 4px;\n max-height: 80px;\n overflow: hidden;\n padding: 6px;\n}\n\n.CodeMirror-hint-deprecation .deprecation-label {\n color: #c79b2e;\n cursor: default;\n display: block;\n font-size: 9px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 1;\n padding-bottom: 5px;\n text-transform: uppercase;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.CodeMirror-hint-deprecation .deprecation-label + * {\n margin-top: 0;\n}\n\n.CodeMirror-hint-deprecation :last-child {\n margin-bottom: 0;\n}\n",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t,n){var r=n(280);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(121)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(120)(!1)).push([e.i,'body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",\n "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",\n monospace;\n}\n\n.graphiql-container {\n height: 100vh;\n width: 100vw;\n}\n',""])}]);