(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95],{54098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function F(){this.fetch=!1,this.DOMException=n.DOMException}return F.prototype=n,new F}();(function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function normalizeName(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function normalizeValue(e){return"string"!=typeof e&&(e=String(e)),e}function iteratorFor(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function Headers(e){this.map={},e instanceof Headers?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 consumed(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function fileReaderReady(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function readBlobAsArrayBuffer(e){var t=new FileReader,n=fileReaderReady(t);return t.readAsArrayBuffer(e),n}function bufferClone(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var n;t.arrayBuffer&&t.blob&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=bufferClone(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=bufferClone(e):this._bodyText=e=Object.prototype.toString.call(e)}}else 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):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=consumed(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)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var e,t,n,r=consumed(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=fileReaderReady(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;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 TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function decode(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 Response(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 Headers(t.headers),this.url=t.url||"",this._initBody(e)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var e=new Response(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];Response.redirect=function(e,t){if(-1===a.indexOf(t))throw RangeError("Invalid status code");return new Response(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function fetch(n,r){return new Promise(function(i,o){var a=new Request(n,r);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function abortXhr(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new Headers,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)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new Response(r,n))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",abortXhr),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",abortXhr)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}fetch.polyfill=!0,r.fetch||(r.fetch=fetch,r.Headers=Headers,r.Request=Request,r.Response=Response),e.Headers=Headers,e.Request=Request,e.Response=Response,e.fetch=fetch,Object.defineProperty(e,"__esModule",{value:!0})})({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},72445:function(e){"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},40804:function(e,t,n){"use strict";var r=n(51268);e.exports=function extractFiles(e,t,n){void 0===t&&(t=""),void 0===n&&(n=r);var i,o=new Map;function addFile(e,t){var n=o.get(t);n?n.push.apply(n,e):o.set(t,e)}if(n(e))i=null,addFile([t],e);else{var a=t?t+".":"";if("undefined"!=typeof FileList&&e instanceof FileList)i=Array.prototype.map.call(e,function(e,t){return addFile([""+a+t],e),null});else if(Array.isArray(e))i=e.map(function(e,t){var r=extractFiles(e,""+a+t,n);return r.files.forEach(addFile),r.clone});else if(e&&e.constructor===Object)for(var s in i={},e){var u=extractFiles(e[s],""+a+s,n);u.files.forEach(addFile),i[s]=u.clone}else i=e}return{clone:i,files:o}}},34823:function(e,t,n){"use strict";t.ReactNativeFile=n(72445),t.extractFiles=n(40804),t.isExtractableFile=n(51268)},51268:function(e,t,n){"use strict";var r=n(72445);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},6230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},78458:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(34823),o=r(n(6230)),isExtractableFileEnhanced=function(e){return i.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n){var r=i.extractFiles({query:e,variables:t,operationName:n},"",isExtractableFileEnhanced),a=r.clone,s=r.files;if(0===s.size){if(!Array.isArray(e))return JSON.stringify(a);if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");return JSON.stringify(e.reduce(function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e},[]))}var u=new("undefined"==typeof FormData?o.default:FormData);u.append("operations",JSON.stringify(a));var l={},c=0;return s.forEach(function(e){l[++c]=e}),u.append("map",JSON.stringify(l)),c=0,s.forEach(function(e,t){u.append(""+ ++c,t)}),u}},28687:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.gql=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var f=a(n(54098)),d=n(79627),p=c(n(78458)),h=n(8308);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return h.ClientError}});var resolveHeaders=function(e){var t,n={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||e instanceof f.Headers?(t={},e.forEach(function(e,n){t[n]=e}),n=t):Array.isArray(e)?e.forEach(function(e){var t=e[0],r=e[1];n[t]=r}):n=e),n},queryCleanner=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},buildGetQueryParams=function(e){var t=e.query,n=e.variables,r=e.operationName;if(!Array.isArray(t)){var i=["query="+encodeURIComponent(queryCleanner(t))];return n&&i.push("variables="+encodeURIComponent(JSON.stringify(n))),r&&i.push("operationName="+encodeURIComponent(r)),i.join("&")}if(void 0!==n&&!Array.isArray(n))throw Error("Cannot create query with given variable type, array expected");return"query="+encodeURIComponent(JSON.stringify(t.reduce(function(e,t,r){return e.push({query:queryCleanner(t),variables:n?JSON.stringify(n[r]):void 0}),e},[])))},post=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,l=e.fetch,c=e.fetchOptions;return s(void 0,void 0,void 0,function(){var e;return u(this,function(s){switch(s.label){case 0:return e=p.default(n,i,o),[4,l(t,r({method:"POST",headers:r(r({},"string"==typeof e?{"Content-Type":"application/json"}:{}),a),body:e},c))];case 1:return[2,s.sent()]}})})},get=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,l=e.fetch,c=e.fetchOptions;return s(void 0,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,l(t+"?"+buildGetQueryParams({query:n,variables:i,operationName:o}),r({method:"GET",headers:a},c))];case 1:return[2,e.sent()]}})})},y=function(){function GraphQLClient(e,t){this.url=e,this.options=t||{}}return GraphQLClient.prototype.rawRequest=function(e,t,n){var i=this.options,o=i.headers,a=i.fetch,s=void 0===a?f.default:a,u=i.method,c=l(i,["headers","fetch","method"]);return makeRequest({url:this.url,query:e,variables:t,headers:r(r({},resolveHeaders(o)),resolveHeaders(n)),operationName:void 0,fetch:s,method:void 0===u?"POST":u,fetchOptions:c})},GraphQLClient.prototype.request=function(e,t,n){return s(this,void 0,void 0,function(){var i,o,a,s,c,d,p,h,y,v,m;return u(this,function(u){switch(u.label){case 0:return o=(i=this.options).headers,s=void 0===(a=i.fetch)?f.default:a,d=void 0===(c=i.method)?"POST":c,p=l(i,["headers","fetch","method"]),h=this.url,v=(y=resolveRequestDocument(e)).query,m=y.operationName,[4,makeRequest({url:h,query:v,variables:t,headers:r(r({},resolveHeaders(o)),resolveHeaders(n)),operationName:m,fetch:s,method:d,fetchOptions:p})];case 1:return[2,u.sent().data]}})})},GraphQLClient.prototype.batchRequests=function(e,t){return s(this,void 0,void 0,function(){var n,i,o,a,s,c,d;return u(this,function(u){switch(u.label){case 0:return i=(n=this.options).headers,a=void 0===(o=n.fetch)?f.default:o,c=void 0===(s=n.method)?"POST":s,d=l(n,["headers","fetch","method"]),[4,makeRequest({url:this.url,query:e.map(function(e){return resolveRequestDocument(e.document).query}),variables:e.map(function(e){return e.variables}),headers:r(r({},resolveHeaders(i)),resolveHeaders(t)),operationName:void 0,fetch:a,method:c,fetchOptions:d})];case 1:return[2,u.sent().data]}})})},GraphQLClient.prototype.setHeaders=function(e){return this.options.headers=e,this},GraphQLClient.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},GraphQLClient.prototype.setEndpoint=function(e){return this.url=e,this},GraphQLClient}();function makeRequest(e){var t=e.url,n=e.query,i=e.variables,o=e.headers,a=e.operationName,l=e.fetch,c=e.method,f=void 0===c?"POST":c,d=e.fetchOptions;return s(this,void 0,void 0,function(){var e,s,c,p,y,v,m,b;return u(this,function(u){switch(u.label){case 0:return e="POST"===f.toUpperCase()?post:get,s=Array.isArray(n),[4,e({url:t,query:n,variables:i,operationName:a,headers:o,fetch:l,fetchOptions:d})];case 1:var _,g;return[4,(g=(_=c=u.sent()).headers.get("Content-Type"))&&g.startsWith("application/json")?_.json():_.text()];case 2:if(p=u.sent(),y=s&&Array.isArray(p)?!p.some(function(e){return!e.data}):!!p.data,c.ok&&!p.errors&&y)return v=c.headers,m=c.status,[2,r(r({},s?{data:p}:p),{headers:v,status:m})];throw b="string"==typeof p?{error:p}:p,new h.ClientError(r(r({},b),{status:c.status,headers:c.headers}),{query:n,variables:i})}})})}function request(e,t,n,r){return s(this,void 0,void 0,function(){return u(this,function(i){return[2,new y(e).request(t,n,r)]})})}function resolveRequestDocument(e){if("string"==typeof e)return{query:e};var t,n=void 0,r=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),{query:d.print(e),operationName:n}}t.GraphQLClient=y,t.rawRequest=function(e,t,n,r){return s(this,void 0,void 0,function(){return u(this,function(i){return[2,new y(e).rawRequest(t,n,r)]})})},t.request=request,t.batchRequests=function(e,t,n){return s(this,void 0,void 0,function(){return u(this,function(r){return[2,new y(e).batchRequests(t,n)]})})},t.default=request,t.gql=function(e){for(var t=[],n=1;n MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE */Object.defineProperty(t,"__esModule",{value:!0});var r=n(48564),i=n(2267),o=n(72253),a=n(14932);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});var s=n(38754)._(n(67294)),u=n(77240),l=[],c=[],f=!1;function load(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}var d=function(){function LoadableSubscription(e,t){r._(this,LoadableSubscription),this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return i._(LoadableSubscription,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"==typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){e._update({pastDelay:!0})},n.delay)),"number"==typeof n.timeout&&(this._timeout=setTimeout(function(){e._update({timedOut:!0})},n.timeout))),this._res.promise.then(function(){e._update({}),e._clearTimeouts()}).catch(function(t){e._update({}),e._clearTimeouts()}),this._update({})}},{key:"_update",value:function(e){this._state=o._(a._(o._({},this._state),{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading}),e),this._callbacks.forEach(function(e){return e()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),LoadableSubscription}();function Loadable(e){return function(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function init(){if(!r){var t=new d(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!f){var i=n.webpack?n.webpack():n.modules;i&&c.push(function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=i[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value;if(e.includes(s))return init()}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}})}function LoadableComponent(e,t){init(),(i=s.default.useContext(u.LoadableContext))&&Array.isArray(n.modules)&&n.modules.forEach(function(e){i(e)});var i,o=s.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return s.default.useImperativeHandle(t,function(){return{retry:r.retry}},[]),s.default.useMemo(function(){var t;return o.loading||o.error?s.default.createElement(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?s.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return LoadableComponent.preload=function(){return init()},LoadableComponent.displayName="LoadableComponent",s.default.forwardRef(LoadableComponent)}(load,e)}function flushInitializers(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then(function(){if(e.length)return flushInitializers(e,t)})}Loadable.preloadAll=function(){return new Promise(function(e,t){flushInitializers(l).then(e,t)})},Loadable.preloadReady=function(e){return void 0===e&&(e=[]),new Promise(function(t){var res=function(){return f=!0,t()};flushInitializers(c,e).then(res,res)})},window.__NEXT_PRELOADREADY=Loadable.preloadReady;var p=Loadable},5152:function(e,t,n){e.exports=n(19413)},79627:function(e,t,n){"use strict";n.r(t),n.d(t,{print:function(){return print}});var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function _typeof(e){return(_typeof="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 defineInspect(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){throw Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r&&(e.prototype[r]=t)}function isNode(e){return null!=e&&"string"==typeof e.kind}defineInspect(function(){function Location(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return Location.prototype.toJSON=function(){return{start:this.start,end:this.end}},Location}()),defineInspect(function(){function Token(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}return Token.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}());var 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:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function print(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,s=Array.isArray(e),u=[e],l=-1,c=[],f=void 0,d=void 0,p=void 0,h=[],y=[],v=e;do{var m,b=++l===u.length,_=b&&0!==c.length;if(b){if(d=0===y.length?void 0:h[h.length-1],f=p,p=y.pop(),_){if(s)f=f.slice();else{for(var g={},j=0,w=Object.keys(f);j2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,o);return 0===(i=Object.keys(e)).length?"{}":o.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+i.map(function(t){var n=formatValue(e[t],o);return t+": "+n}).join(", ")+" }"}(e,t);default:return String(e)}}(f,[]),"."));var A=function(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}}}(t,f.kind,b);if(A){if((S=A.call(t,f,d,p,h,y))===o)break;if(!1===S){if(!b){h.pop();continue}}else if(void 0!==S&&(c.push([d,S]),!b)){if(isNode(S))f=S;else{h.pop();continue}}}}void 0===S&&_&&c.push([d,f]),b?h.pop():(a={inArray:s,index:l,keys:u,edits:c,prev:a},u=(s=Array.isArray(f))?f:null!==(m=n[f.kind])&&void 0!==m?m:[],l=-1,c=[],p&&y.push(p),p=f)}while(void 0!==a);return 0!==c.length&&(v=c[c.length-1][1]),v}(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return join(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=wrap("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?join([t,join([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+wrap(" = ",r)+wrap(" ",join(i," "))},SelectionSet:function(e){return block(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=wrap("",t,": ")+n,s=a+wrap("(",join(r,", "),")");return s.length>80&&(s=a+wrap("(\n",indent(join(r,"\n")),"\n)")),join([s,join(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+wrap(" ",join(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",wrap("on ",t),join(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(wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(wrap("",join(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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||" "===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return s&&!(r&&i)&&(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}(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"["+join(e.values,", ")+"]"},ObjectValue:function(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+wrap("(",join(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:addDescription(function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription(function(e){return join(["scalar",e.name,join(e.directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")}),FieldDefinition:addDescription(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))}),InputValueDefinition:addDescription(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,wrap("= ",r),join(i," ")]," ")}),InterfaceTypeDefinition:addDescription(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")}),UnionTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")}),EnumTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")}),EnumValueDefinition:addDescription(function(e){return join([e.name,join(e.directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")}),DirectiveDefinition:addDescription(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return -1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}}}]);