PageSourceSearch

https://carbonxchange.vercel.app/_next/static/chunks/850-c60e30779c751ef8.js

js carbonxchange.vercel.app collected 2026-10-03 06:21:04 UTC 275,833 bytes, 450 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[850],{8557:function(e,t,n){var r=n(3646),i=n(6202);function a(e){return"string"==typeof e?new r.GraphQLError(e):"object"==typeof e&&e.message?new r.GraphQLError(e.message,e.nodes,e.source,e.positions,e.path,e,e.extensions||{}):e}var o=function(e){function t(t){var n,r=t.networkError,i=t.graphQLErrors,o=t.response,s=(i||[]).map(a),u=(n="",void 0!==r?n="[Network] "+r.message:(void 0!==s&&s.forEach(function(e){n+="[GraphQL] "+e.message+"\n"}),n.trim()));e.call(this,u),this.name="CombinedError",this.message=u,this.graphQLErrors=s,this.networkError=r,this.response=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message},t}(Error);function s(e,t){e|=0;for(var n=0,r=0|t.length;n<r;n++)e=(e<<5)+e+t.charCodeAt(n);return e}function u(e){return s(5381,e)>>>0}var l=new Set,p=new WeakMap;function c(e){return l.clear(),function e(t){if(null===t||l.has(t))return"null";if("object"!=typeof t)return JSON.stringify(t)||"";if(t.toJSON)return e(t.toJSON());if(Array.isArray(t)){for(var n="[",r=0,i=t.length;r<i;r++){r>0&&(n+=",");var a=e(t[r]);n+=a.length>0?a:"null"}return n+"]"}var o=Object.keys(t).sort();if(!o.length&&t.constructor&&t.constructor!==Object){var s=p.get(t)||Math.random().toString(36).slice(2);return p.set(t,s),'{"__key":"'+s+'"}'}l.add(t);for(var u="{",c=0,d=o.length;c<d;c++){var f=o[c],y=e(t[f]);y&&(u.length>1&&(u+=","),u+=e(f)+":"+y)}return l.delete(t),u+="}"}(e)}var d=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,f=/([\s,]|#[^\n\r]+)+/g;function y(e,t){return t%2==0?e.replace(f," ").trim():e}function m(e){var t=("string"!=typeof e?e.loc&&e.loc.source.body||r.print(e):e).split(d).map(y).join("");if("string"!=typeof e){var n="definitions"in e&&g(e);n&&(t="# "+n+"\n"+t),e.loc||(e.loc={start:0,end:t.length,source:{body:t,name:"gql",locationOffset:{line:1,column:1}}})}return t}var h=new Map;function T(e){var t,n;return"string"==typeof e?(t=u(m(e)),n=h.get(t)||r.parse(e,{noLocation:!0})):(t=e.__key||u(m(e)),n=h.get(t)||e),n.loc||m(n),n.__key=t,h.set(t,n),n}function g(e){for(var t=0,n=e.definitions.length;t<n;t++){var i=e.definitions[t];if(i.kind===r.Kind.OPERATION_DEFINITION&&i.name)return i.name.value}}function v(){return(v=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}).apply(this,arguments)}function b(e,t,n){if(!("data"in t)&&!("errors"in t)||"path"in t)throw Error("No Content");return{operation:e,data:t.data,error:Array.isArray(t.errors)?new o({graphQLErrors:t.errors,response:n}):void 0,extensions:"object"==typeof t.extensions&&t.extensions||void 0,hasNext:!!t.hasNext}}function E(e,t,n){var r,i=v({},e);if(i.hasNext=!!t.hasNext,!("path"in t))return"data"in t&&(i.data=t.data),i;Array.isArray(t.errors)&&(i.error=new o({graphQLErrors:i.error?i.error.graphQLErrors.concat(t.errors):t.errors,response:n}));for(var a=i.data=v({},i.data),s=0;s<t.path.length;)a=a[r=t.path[s++]]=Array.isArray(a[r])?[].concat(a[r]):v({},a[r]);return v(a,t.data),i}function _(e,t,n){return{operation:e,data:void 0,error:new o({networkError:t,response:n}),extensions:void 0}}function I(e){return"query"===e.kind&&!!e.context.preferGetMethod}var N="undefined"!=typeof Symbol?Symbol.asyncIterator:null,w="undefined"!=typeof TextDecoder?new TextDecoder:null,k=/content-type:[^\r\n]*application\/json/i,A=/boundary="?([^=";]+)"?/i;t.CombinedError=o,t._extends=v,t.createRequest=function(e,t){t||(t={});var n=T(e);return{key:s(n.__key,c(t))>>>0,query:n,variables:t}},t.getOperationName=g,t.getOperationType=function(e){for(var t=0,n=e.definitions.length;t<n;t++){var i=e.definitions[t];if(i.kind===r.Kind.OPERATION_DEFINITION)return i.operation}},t.keyDocument=T,t.makeErrorResult=_,t.makeFetchBody=function(e){return{query:r.print(e.query),operationName:g(e.query),variables:e.variables||void 0,extensions:void 0}},t.makeFetchOptions=function(e,t){var n=I(e),r={accept:"application/graphql+json, application/json"};n||(r["content-type"]="application/json");var i=("function"==typeof e.context.fetchOptions?e.context.fetchOptions():e.context.fetchOptions)||{};if(i.headers)for(var a in i.headers)r[a.toLowerCase()]=i.headers[a];return v({},i,{body:!n&&t?JSON.stringify(t):void 0,method:n?"GET":"POST",headers:r})},t.makeFetchSource=function(e,t,n){var r="manual"===n.redirect?400:300,a=e.context.fetch;return i.make(function(i){var o,s=i.next,u=i.complete,l="undefined"!=typeof AbortController?new AbortController:null;l&&(n.signal=l.signal);var p=!1,c=!1,d=!1;return Promise.resolve().then(function(){if(!c)return(a||fetch)(t,n)}).then(function(t){if(t)return d=(o=t).status<200||o.status>=r,function(e,t,n){var r,i=n.headers&&n.headers.get("Content-Type")||"";if(/text\//i.test(i))return n.text().then(function(r){e(_(t,Error(r),n))});if(!/multipart\/mixed/i.test(i))return n.text().then(function(r){e(b(t,JSON.parse(r),n))});var a="---",o=i.match(A);o&&(a="--"+o[1]);var s=function(){};if(N&&n[N]){var u=n[N]();r=u.next.bind(u)}else if("body"in n&&n.body){var l=n.body.getReader();s=l.cancel.bind(l),r=l.read.bind(l)}else throw TypeError("Streaming requests unsupported");var c="",d=!0,f=null,y=null;return r().then(function i(o){if(o.done)p=!0;else{var s,u="Buffer"===(s=o.value).constructor.name?s.toString():w.decode(s),l=u.indexOf(a);for(l>-1?l+=c.length:l=c.indexOf(a),c+=u;l>-1;){var m=c.slice(0,l),h=c.slice(l+a.length);if(d)d=!1;else{var T=m.indexOf("\r\n\r\n")+4,g=m.slice(0,T),v=m.slice(T,m.lastIndexOf("\r\n")),_=void 0;if(k.test(g))try{_=JSON.parse(v),f=y=y?E(y,_,n):b(t,_,n)}catch(e){}
1if("--"===h.slice(0,2)||_&&!_.hasNext){if(!y)return e(b(t,{},n));break}}l=(c=h).indexOf(a)}}if(f&&(e(f),f=null),!o.done&&(!y||y.hasNext))return r().then(i)}).finally(s)}(s,e,o)}).then(u).catch(function(t){if(p)throw t;s(_(e,d&&o.statusText?Error(o.statusText):t,o)),u()}),function(){c=!0,l&&l.abort()}})},t.makeFetchURL=function(e,t){var n=I(e),r=e.context.url;if(!n||!t)return r;var i=[];t.operationName&&i.push("operationName="+encodeURIComponent(t.operationName)),t.query&&i.push("query="+encodeURIComponent(t.query.replace(/#[^\n\r]+/g," ").trim())),t.variables&&i.push("variables="+encodeURIComponent(c(t.variables))),t.extensions&&i.push("extensions="+encodeURIComponent(c(t.extensions)));var a=r+"?"+i.join("&");return a.length>2047?(e.context.preferGetMethod=!1,r):a},t.makeResult=b,t.mergeResultPatch=E,t.stringifyDocument=m,t.stringifyVariables=c},8337:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(3646),i=n(8557),a=n(6202),o=function(e){if(e.selectionSet&&!e.selectionSet.selections.some(function(e){return e.kind===r.Kind.FIELD&&"__typename"===e.name.value&&!e.alias}))return i._extends({},e,{selectionSet:i._extends({},e.selectionSet,{selections:e.selectionSet.selections.concat([{kind:r.Kind.FIELD,name:{kind:r.Kind.NAME,value:"__typename"}}])})})},s=new Map;function u(e){var t=i.keyDocument(e),n=s.get(t.__key);return n||(Object.defineProperty(n=r.visit(t,{Field:o,InlineFragment:o}),"__key",{value:t.__key,enumerable:!1}),s.set(t.__key,n)),n}function l(e){return e&&"object"==typeof e?Object.keys(e).reduce(function(t,n){var r=e[n];return"__typename"===n?Object.defineProperty(t,"__typename",{enumerable:!1,value:r}):Array.isArray(r)?t[n]=r.map(l):r&&"object"==typeof r&&"__typename"in r?t[n]=l(r):t[n]=r,t},Array.isArray(e)?[]:{}):e}function p(e){return e.toPromise=function(){return new Promise(function(t){var n=a.subscribe(function(e){e.stale||e.hasNext||Promise.resolve().then(function(){n.unsubscribe(),t(e)})})(e)})},e}function c(e,t,n){return n||(n=t.context),{key:t.key,query:t.query,variables:t.variables,kind:e,context:n}}function d(e,t){return c(e.kind,e,i._extends({},e.context,{meta:i._extends({},e.context.meta,t)}))}function f(){}function y(e,t,n){for(var a=0;a<n.length;a++)if(n[a].kind===r.Kind.FRAGMENT_DEFINITION){var o=n[a].name.value,s=i.stringifyDocument(n[a]);e.has(o)||(e.set(o,s),t.push(n[a]))}else t.push(n[a])}function m(e){var t=e.kind;return"mutation"!==t&&"query"!==t}function h(e){var t=e.forward,n=e.client;e.dispatchDebug;var r=new Map,o=Object.create(null);function s(e){var t=c(e.kind,e);return t.query=u(e.query),t}function l(e){var t=e.key,n=e.kind,i=e.context.requestPolicy;return"query"===n&&"network-only"!==i&&("cache-only"===i||r.has(t))}return function(e){var u=a.share(e),p=a.map(function(e){var t=r.get(e.key),a=i._extends({},t,{operation:d(e,{cacheOutcome:t?"hit":"miss"})});return"cache-and-network"===e.context.requestPolicy&&(a.stale=!0,T(n,e)),a})(a.filter(function(e){return!m(e)&&l(e)})(u)),c=a.tap(function(e){var t=e.operation;if(t){var i=Object.keys(function e(t,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)e(t[r],n);else if("object"==typeof t&&null!==t)for(var i in t)"__typename"===i&&"string"==typeof t[i]?n[t[i]]=0:e(t[i],n);return n}(e.data,{})).concat(t.context.additionalTypenames||[]);if("mutation"===e.operation.kind){for(var a=new Set,s=0;s<i.length;s++){var u=i[s],l=o[u]||(o[u]=new Set);l.forEach(function(e){a.add(e)}),l.clear()}a.forEach(function(e){r.has(e)&&(t=r.get(e).operation,r.delete(e),T(n,t))})}else if("query"===t.kind&&e.data){r.set(t.key,e);for(var p=0;p<i.length;p++){var c=i[p];(o[c]||(o[c]=new Set)).add(t.key)}}}})(t(a.filter(function(e){return"query"!==e.kind||"cache-only"!==e.context.requestPolicy})(a.map(function(e){return d(e,{cacheOutcome:"miss"})})(a.merge([a.map(s)(a.filter(function(e){return!m(e)&&!l(e)})(u)),a.filter(function(e){return m(e)})(u)])))));return a.merge([p,c])}}function T(e,t){return e.reexecuteOperation(c(t.kind,t,i._extends({},t.context,{requestPolicy:"network-only"})))}var g=new Set;function v(e){var t=e.forward;e.dispatchDebug;var n=new Set;function r(e){var t=e.key,r=e.kind;if("teardown"===r)return n.delete(t),!0;if("query"!==r&&"subscription"!==r)return!0;var i=n.has(t);return n.add(t),!i}function i(e){var t=e.operation;e.hasNext||n.delete(t.key)}return function(e){var n=a.filter(r)(e);return a.tap(i)(t(n))}}function b(e){var t=e.forward;return e.dispatchDebug,function(e){var n=a.share(e),r=a.mergeMap(function(e){var t=e.key,r=a.filter(function(e){return"teardown"===e.kind&&e.key===t})(n),o=i.makeFetchBody(e),s=i.makeFetchURL(e,o),u=i.makeFetchOptions(e,o);return a.onPush(function(e){e.data||e.error})(a.takeUntil(r)(i.makeFetchSource(e,s,u)))})(a.filter(function(e){return"query"===e.kind||"mutation"===e.kind})(n)),o=t(a.filter(function(e){return"query"!==e.kind&&"mutation"!==e.kind})(n));
1return a.merge([r,o])}}function E(e){return e.dispatchDebug,function(e){return a.filter(function(){return!1})(a.tap(function(e){e.kind})(e))}}var _=E({dispatchDebug:f});function I(e){return function(t){var n=t.client,r=t.forward;return t.dispatchDebug,e.reduceRight(function(e,t){return t({client:n,forward:e,dispatchDebug:function(e){}})},r)}}var N=[v,h,b],w=function e(t){var n=new Map,r=new Map,o=[],s=a.makeSubject(),u=s.source,d=s.next,y=!1;function m(e){if(e&&d(e),!y){for(y=!0;y&&(e=o.shift());)d(e);y=!1}}function h(e){var t=a.filter(function(t){return t.operation.kind===e.kind&&t.operation.key===e.key&&(!t.operation.context._instance||t.operation.context._instance===e.context._instance)})(b);return(g.maskTypename&&(t=a.map(function(e){return i._extends({},e,{data:l(e.data)})})(t)),"mutation"===e.kind)?a.take(1)(a.onStart(function(){return d(e)})(t)):a.share(a.onEnd(function(){n.delete(e.key),r.delete(e.key);for(var t=o.length-1;t>=0;t--)o[t].key===e.key&&o.splice(t,1);d(c("teardown",e,e.context))})(a.onPush(function(t){n.set(e.key,t)})(a.switchMap(function(t){return"query"!==e.kind||t.stale?a.fromValue(t):a.merge([a.fromValue(t),a.map(function(){return i._extends({},t,{stale:!0})})(a.take(1)(a.filter(function(t){return"query"===t.kind&&t.key===e.key&&"cache-only"!==t.context.requestPolicy})(u)))])})(a.takeUntil(a.filter(function(t){return"teardown"===t.kind&&t.key===e.key})(u))(t)))))}var T=this instanceof e?this:Object.create(e.prototype),g=i._extends(T,{url:t.url,fetchOptions:t.fetchOptions,fetch:t.fetch,suspense:!!t.suspense,requestPolicy:t.requestPolicy||"cache-first",preferGetMethod:!!t.preferGetMethod,maskTypename:!!t.maskTypename,operations$:u,reexecuteOperation:function(e){("mutation"===e.kind||r.has(e.key))&&(o.push(e),Promise.resolve().then(m))},createOperationContext:function(e){return e||(e={}),i._extends({},{_instance:void 0,url:g.url,fetchOptions:g.fetchOptions,fetch:g.fetch,preferGetMethod:g.preferGetMethod},e,{suspense:e.suspense||!1!==e.suspense&&g.suspense,requestPolicy:e.requestPolicy||g.requestPolicy})},createRequestOperation:function(e,t,n){i.getOperationType(t.query);var r=g.createOperationContext(n);return"mutation"===e&&(r._instance=[]),c(e,t,r)},executeRequestOperation:function(e){return"mutation"===e.kind?h(e):a.make(function(t){var o=r.get(e.key);o||r.set(e.key,o=h(e));var s="cache-and-network"===e.context.requestPolicy||"network-only"===e.context.requestPolicy;return a.subscribe(t.next)(a.onEnd(function(){y=!1,t.complete()})(a.onStart(function(){var r=n.get(e.key);if("subscription"===e.kind)return m(e);s&&m(e),null!=r&&r===n.get(e.key)?t.next(s?i._extends({},r,{stale:!0}):r):s||m(e)})(o))).unsubscribe})},executeQuery:function(e,t){var n=g.createRequestOperation("query",e,t);return g.executeRequestOperation(n)},executeSubscription:function(e,t){var n=g.createRequestOperation("subscription",e,t);return g.executeRequestOperation(n)},executeMutation:function(e,t){var n=g.createRequestOperation("mutation",e,t);return g.executeRequestOperation(n)},query:function(e,t,n){return n&&"boolean"==typeof n.suspense||(n=i._extends({},n,{suspense:!1})),p(g.executeQuery(i.createRequest(e,t),n))},readQuery:function(e,t,n){var r=null;return a.subscribe(function(e){r=e})(g.query(e,t,n)).unsubscribe(),r},subscription:function(e,t,n){return g.executeSubscription(i.createRequest(e,t),n)},mutation:function(e,t,n){return p(g.executeMutation(i.createRequest(e,t),n))}}),v=I(void 0!==t.exchanges?t.exchanges:N),b=a.share(v({client:g,dispatchDebug:f,forward:E({dispatchDebug:f})})(u));return a.publish(b),g};t.CombinedError=i.CombinedError,t.createRequest=i.createRequest,t.getOperationName=i.getOperationName,t.makeErrorResult=i.makeErrorResult,t.makeResult=i.makeResult,t.mergeResultPatch=i.mergeResultPatch,t.stringifyVariables=i.stringifyVariables,t.Client=w,t.cacheExchange=h,t.composeExchanges=I,t.createClient=w,t.debugExchange=function(e){var t=e.forward;return function(e){return t(e)}},t.dedupExchange=v,t.defaultExchanges=N,t.errorExchange=function(e){var t=e.onError;return function(e){var n=e.forward;return function(e){return a.tap(function(e){var n=e.error,r=e.operation;n&&t(n,r)})(n(e))}}},t.fallbackExchangeIO=_,t.fetchExchange=b,t.formatDocument=u,t.gql=function(){for(var e=arguments,t=new Map,n=[],a=[],o=Array.isArray(arguments[0])?arguments[0][0]:arguments[0]||"",s=1;s<arguments.length;s++){var u=e[s];u&&u.definitions?a.push.apply(a,u.definitions):o+=u,o+=e[0][s]}return y(t,n,i.keyDocument(o).definitions),y(t,n,a),i.keyDocument({kind:r.Kind.DOCUMENT,definitions:n})},t.makeOperation=c,t.maskTypename=l,t.ssrExchange=function(e){var t=!!(e&&e.staleWhileRevalidate),n=!!(e&&e.includeExtensions),r={},o=[];function s(e){o.push(e.operation.key),1===o.length&&Promise.resolve().then(function(){for(var e;e=o.shift();)r[e]=null})}var u=function(o){var u=o.client,l=o.forward;return function(o){var p=e&&"boolean"==typeof e.isClient?!!e.isClient:!u.suspense,c=a.share(o),d=l(a.filter(function(e){return!r[e.key]||!!r[e.key].hasNext})(c)),f=a.map(function(e){var a=r[e.key],o={operation:e,data:a.data?JSON.parse(a.data):void 0,extensions:n&&a.extensions?JSON.parse(a.extensions):void 0,error:a.error?new i.CombinedError({networkError:a.error.
1networkError?Error(a.error.networkError):void 0,graphQLErrors:a.error.graphQLErrors}):void 0,hasNext:a.hasNext};return t&&!g.has(e.key)&&(o.stale=!0,g.add(e.key),T(u,e)),o})(a.filter(function(e){return!!r[e.key]&&"network-only"!==e.context.requestPolicy})(c));return p?f=a.tap(s)(f):d=a.tap(function(e){var t=e.operation;if("mutation"!==t.kind){var i,a,o,s,u,l=(i=e.hasNext,a=e.data,o=e.extensions,s=e.error,u={},void 0!==a&&(u.data=JSON.stringify(a)),n&&void 0!==o&&(u.extensions=JSON.stringify(o)),i&&(u.hasNext=!0),s&&(u.error={graphQLErrors:s.graphQLErrors.map(function(e){return e.path||e.extensions?{message:e.message,path:e.path,extensions:e.extensions}:e.message})},s.networkError&&(u.error.networkError=""+s.networkError)),u);r[t.key]=l}})(d),a.merge([d,f])}};return u.restoreData=function(e){for(var t in e)null!==r[t]&&(r[t]=e[t])},u.extractData=function(){var e={};for(var t in r)null!=r[t]&&(e[t]=r[t]);return e},e&&e.initialState&&u.restoreData(e.initialState),u},t.subscriptionExchange=function(e){var t=e.forwardSubscription,n=e.enableAllOperations,o=e.isSubscriptionOperation;return function(e){var s=e.client,u=e.forward,l=o||function(e){var t=e.kind;return"subscription"===t||!!n&&("query"===t||"mutation"===t)};return function(e){var n=a.share(e),o=a.mergeMap(function(e){var o,u=e.key,l=a.filter(function(e){return"teardown"===e.kind&&e.key===u})(n);return a.takeUntil(l)((o=t({key:e.key.toString(36),query:r.print(e.query),variables:e.variables,context:i._extends({},e.context)}),a.make(function(t){var n,r=t.next,a=t.complete,u=!1;return Promise.resolve().then(function(){u||(n=o.subscribe({next:function(t){return r(i.makeResult(e,t))},error:function(t){return r(i.makeErrorResult(e,t))},complete:function(){u||(u=!0,"subscription"===e.kind&&s.reexecuteOperation(c("teardown",e,e.context)),a())}}))}),function(){u=!0,n&&n.unsubscribe()}})))})(a.filter(l)(n)),p=u(a.filter(function(e){return!l(e)})(n));return a.merge([o,p])}}}},3239:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseContract:function(){return s.VZ},BigNumber:function(){return u.O$},Contract:function(){return s.CH},ContractFactory:function(){return s.lV},FixedNumber:function(){return l.xs},Signer:function(){return p.E},VoidSigner:function(){return p.b},Wallet:function(){return c.Wallet},Wordlist:function(){return eu.D},constants:function(){return r},errors:function(){return _.ErrorCode},ethers:function(){return o},getDefaultProvider:function(){return eo},logger:function(){return eM},providers:function(){return i},utils:function(){return a},version:function(){return eL},wordlists:function(){return es.E}});var r={};n.r(r),n.d(r,{AddressZero:function(){return d.d},EtherSymbol:function(){return m},HashZero:function(){return y.R},MaxInt256:function(){return f.PS},MaxUint256:function(){return f.Bz},MinInt256:function(){return f.$B},NegativeOne:function(){return f.tL},One:function(){return f.fh},Two:function(){return f.Py},WeiPerEther:function(){return f.Ce},Zero:function(){return f._Y}});var i={};n.r(i),n.d(i,{AlchemyProvider:function(){return O},AlchemyWebSocketProvider:function(){return A},AnkrProvider:function(){return x},BaseProvider:function(){return g.Zk},CloudflareProvider:function(){return C},EtherscanProvider:function(){return q},FallbackProvider:function(){return X.H},Formatter:function(){return b.Mb},InfuraProvider:function(){return J},InfuraWebSocketProvider:function(){return Y},IpcProvider:function(){return Q},JsonRpcBatchProvider:function(){return W},JsonRpcProvider:function(){return z.r},JsonRpcSigner:function(){return z.C},NodesmithProvider:function(){return ee},PocketProvider:function(){return er},Provider:function(){return h.zt},Resolver:function(){return g.H2},StaticJsonRpcProvider:function(){return N.c},UrlJsonRpcProvider:function(){return N.l},Web3Provider:function(){return ei.Q},WebSocketProvider:function(){return E.q},getDefaultProvider:function(){return eo},getNetwork:function(){return T.H},isCommunityResourcable:function(){return b.Ed},isCommunityResource:function(){return b.Gp},showThrottleMessage:function(){return b.vh}});var a={};n.r(a),n.d(a,{AbiCoder:function(){return el.R},ConstructorFragment:function(){return ep.Xg},ErrorFragment:function(){return ep.IC},EventFragment:function(){return ep.QV},FormatTypes:function(){return ep.pc},Fragment:function(){return ep.HY},FunctionFragment:function(){return ep.YW},HDNode:function(){return eb.HDNode},Indexed:function(){return ed.Hk},Interface:function(){return ed.vU},LogDescription:function(){return ed.CC},Logger:function(){return _.Logger},ParamType:function(){return ep._R},RLP:function(){return eA},SigningKey:function(){return eO.SigningKey},SupportedAlgorithm:function(){return eC.p},TransactionDescription:function(){return ed.vk},TransactionTypes:function(){return M.TransactionTypes},UnicodeNormalizationForm:function(){return eR.Uj},Utf8ErrorFuncs:function(){return eR.te},Utf8ErrorReason:function(){return eR.Uw}
1,_TypedDataEncoder:function(){return ev.E},_fetchData:function(){return $._fetchData},_toEscapedUtf8String:function(){return eR.U$},accessListify:function(){return M.accessListify},arrayify:function(){return L.arrayify},base58:function(){return em.Base58},base64:function(){return ey},checkProperties:function(){return v.checkProperties},checkResultErrors:function(){return ec.BR},commify:function(){return eD.commify},computeAddress:function(){return M.computeAddress},computeHmac:function(){return eI.Gy},computePublicKey:function(){return eO.computePublicKey},concat:function(){return L.concat},deepCopy:function(){return v.deepCopy},defaultAbiCoder:function(){return el.$},defaultPath:function(){return eb.defaultPath},defineReadOnly:function(){return v.defineReadOnly},dnsEncode:function(){return eh.Kn},entropyToMnemonic:function(){return eb.entropyToMnemonic},fetchJson:function(){return $.fetchJson},formatBytes32String:function(){return ex.s},formatEther:function(){return eD.formatEther},formatUnits:function(){return eD.formatUnits},getAccountPath:function(){return eb.getAccountPath},getAddress:function(){return ef.getAddress},getContractAddress:function(){return ef.getContractAddress},getCreate2Address:function(){return ef.getCreate2Address},getIcapAddress:function(){return ef.getIcapAddress},getJsonWalletAddress:function(){return eE.Rb},getStatic:function(){return v.getStatic},hashMessage:function(){return eT.r},hexConcat:function(){return L.hexConcat},hexDataLength:function(){return L.hexDataLength},hexDataSlice:function(){return L.hexDataSlice},hexStripZeros:function(){return L.hexStripZeros},hexValue:function(){return L.hexValue},hexZeroPad:function(){return L.hexZeroPad},hexlify:function(){return L.hexlify},id:function(){return eg.id},isAddress:function(){return ef.isAddress},isBytes:function(){return L.isBytes},isBytesLike:function(){return L.isBytesLike},isHexString:function(){return L.isHexString},isValidMnemonic:function(){return eb.isValidMnemonic},isValidName:function(){return eh.r1},joinSignature:function(){return L.joinSignature},keccak256:function(){return e_.keccak256},mnemonicToEntropy:function(){return eb.mnemonicToEntropy},mnemonicToSeed:function(){return eb.mnemonicToSeed},namehash:function(){return eh.VM},nameprep:function(){return eS.Ll},parseBytes32String:function(){return ex.F},parseEther:function(){return eD.parseEther},parseTransaction:function(){return M.parse},parseUnits:function(){return eD.parseUnits},poll:function(){return $.poll},randomBytes:function(){return ew.O},recoverAddress:function(){return M.recoverAddress},recoverPublicKey:function(){return eO.recoverPublicKey},resolveProperties:function(){return v.resolveProperties},ripemd160:function(){return eI.bP},serializeTransaction:function(){return M.serialize},sha256:function(){return eI.JQ},sha512:function(){return eI.o},shallowCopy:function(){return v.shallowCopy},shuffled:function(){return ek.y},solidityKeccak256:function(){return eN.keccak256},solidityPack:function(){return eN.pack},soliditySha256:function(){return eN.sha256},splitSignature:function(){return L.splitSignature},stripZeros:function(){return L.stripZeros},toUtf8Bytes:function(){return eR.Y0},toUtf8CodePoints:function(){return eR.XL},toUtf8String:function(){return eR.ZN},verifyMessage:function(){return c.verifyMessage},verifyTypedData:function(){return c.verifyTypedData},zeroPad:function(){return L.zeroPad}});var o={};n.r(o),n.d(o,{BaseContract:function(){return s.VZ},BigNumber:function(){return u.O$},Contract:function(){return s.CH},ContractFactory:function(){return s.lV},FixedNumber:function(){return l.xs},Signer:function(){return p.E},VoidSigner:function(){return p.b},Wallet:function(){return c.Wallet},Wordlist:function(){return eu.D},constants:function(){return r},errors:function(){return _.ErrorCode},getDefaultProvider:function(){return eo},logger:function(){return eM},providers:function(){return i},utils:function(){return a},version:function(){return eL},wordlists:function(){return es.E}});var s=n(4146),u=n(2593),l=n(335),p=n(8088),c=n(9911),d=n(9279),f=n(1046),y=n(7218);let m="Ξ";var h=n(1556),T=n(5710),g=n(7013),v=n(6881),b=n(32),E=n(8089),_=n(1581),I=n(4216),N=n(3901);
1let w=new _.Logger(I.i),k="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class A extends E.q{constructor(e,t){let n=new O(e,t),r=n.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(r,n.network),(0,v.defineReadOnly)(this,"apiKey",n.apiKey)}isCommunityResource(){return this.apiKey===k}}class O extends N.l{static getWebSocketProvider(e,t){return new A(e,t)}static getApiKey(e){return null==e?k:(e&&"string"!=typeof e&&w.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.g.alchemy.com/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":n="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":n="arb-goerli.g.alchemy.com/v2/";break;case"optimism":n="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":n="opt-goerli.g.alchemy.com/v2/";break;default:w.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+t,throttleCallback:(e,n)=>(t===k&&(0,b.vh)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===k}}let S=new _.Logger(I.i),R="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class x extends N.l{isCommunityResource(){return this.apiKey===R}static getApiKey(e){return null==e?R:e}static getUrl(e,t){null==t&&(t=R);let n={allowGzip:!0,url:"https://"+function(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return S.throwArgumentError("unsupported network","name",e)}(e.name)+t,throttleCallback:(e,n)=>(t.apiKey===R&&(0,b.vh)(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}let D=new _.Logger(I.i);class C extends N.l{static getApiKey(e){return null!=e&&D.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let n=null;return"homestead"===e.name?n="https://cloudflare-eth.com/":D.throwArgumentError("unsupported network","network",arguments[0]),n}perform(e,t){var n,r,i,a;let o=Object.create(null,{perform:{get:()=>super.perform}});return n=this,r=void 0,i=void 0,a=function*(){if("getBlockNumber"===e){let e=yield o.perform.call(this,"getBlock",{blockTag:"latest"});return e.number}return o.perform.call(this,e,t)},new(i||(i=Promise))(function(e,t){function o(e){try{u(a.next(e))}catch(e){t(e)}}function s(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(o,s)}u((a=a.apply(n,r||[])).next())})}}var L=n(6441),M=n(3875),$=n(7707),F=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}u((r=r.apply(e,t||[])).next())})};let P=new _.Logger(I.i);function U(e){let t={};for(let n in e){if(null==e[n])continue;let r=e[n];("type"!==n||0!==r)&&(r=({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0})[n]?(0,L.hexValue)((0,L.hexlify)(r)):"accessList"===n?"["+(0,M.accessListify)(r).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":(0,L.hexlify)(r),t[n]=r)}return t}function j(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){let t=Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function V(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){let t=Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){let t=Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){let t=Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function B(e){if("pending"===e)throw Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function G(e,t,n){if("call"===e&&t.code===_.Logger.errors.SERVER_ERROR){let e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let n=e.data;if(n&&(n="0x"+n.replace(/^.*0x/i,"")),(0,L.isHexString)(n))return n;P.throwError("missing revert data in call exception",_.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let r=t.message;throw t.code===_.Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?r=t.error.message:"string"==typeof t.body?r=t.body:"string"==typeof t.responseText&&(r=t.responseText)),(r=(r||"").toLowerCase()).match(/insufficient funds/)&&P.throwError("insufficient funds for intrinsic transaction cost",_.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&P.throwError("nonce has already been used",_.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),r.match(/another transaction with same nonce/)&&P.throwError("replacement fee too low",_.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),r.match(/execution failed due to an exception|execution reverted/)&&P.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",_.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}class q extends g.Zk{constructor(e,t){super(e),(0,v.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,v.defineReadOnly)(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return P.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){let n=Object.keys(t).reduce((e,n)=>{let r=t[n];return null!=r&&(e+=`&${n}=${r}`),e},""),r=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${n}${r}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}
1fetch(e,t,n){return F(this,void 0,void 0,function*(){let r=n?this.getPostUrl():this.getUrl(e,t),i=n?this.getPostData(e,t):null;this.emit("debug",{action:"request",request:r,provider:this});let a={url:r,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&(0,b.vh)(),Promise.resolve(!0))},o=null;i&&(a.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},o=Object.keys(i).map(e=>`${e}=${i[e]}`).join("&"));let s=yield(0,$.fetchJson)(a,o,("proxy"===e?V:j)||V);return this.emit("debug",{action:"response",request:r,response:(0,v.deepCopy)(s),provider:this}),s})}detectNetwork(){return F(this,void 0,void 0,function*(){return this.network})}perform(e,t){let n=Object.create(null,{perform:{get:()=>super.perform}});return F(this,void 0,void 0,function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch(e=>G("sendTransaction",e,t.signedTransaction));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw Error("EtherscanProvider does not support blockTag for call");let e=U(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return G("call",e,t.transaction)}}case"estimateGas":{let e=U(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return G("estimateGas",e,t.transaction)}}case"getLogs":{let e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=B(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=B(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&P.throwError("unsupported topic count",_.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){let n=t.filter.topics[0];("string"!=typeof n||66!==n.length)&&P.throwError("unsupported topic format",_.Logger.errors.UNSUPPORTED_OPERATION,{topic0:n}),e.topic0=n}let n=yield this.fetch("logs",e),r={};for(let e=0;e<n.length;e++){let t=n[e];if(null==t.blockHash){if(null==r[t.blockNumber]){let e=yield this.getBlock(t.blockNumber);e&&(r[t.blockNumber]=e.hash)}t.blockHash=r[t.blockNumber]}}return n}case"getEtherPrice":if("homestead"!==this.network.name)return 0;return parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd)}return n.perform.call(this,e,t)})}getHistory(e,t,n){return F(this,void 0,void 0,function*(){let r={action:"txlist",address:yield this.resolveName(e),startblock:null==t?0:t,endblock:null==n?99999999:n,sort:"asc"},i=yield this.fetch("account",r);return i.map(e=>{["contractAddress","to"].forEach(function(t){""==e[t]&&delete e[t]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);let t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})})}isCommunityResource(){return null==this.apiKey}}var X=n(1619);let Q=null,K=new _.Logger(I.i),H="84842078b09946638c03157f83405213";class Y extends E.q{constructor(e,t){let n=new J(e,t),r=n.connection;r.password&&K.throwError("INFURA WebSocket project secrets unsupported",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});let i=r.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(i,e),(0,v.defineReadOnly)(this,"apiKey",n.projectId),(0,v.defineReadOnly)(this,"projectId",n.projectId),(0,v.defineReadOnly)(this,"projectSecret",n.projectSecret)}isCommunityResource(){return this.projectId===H}}class J extends N.l{static getWebSocketProvider(e,t){return new Y(e,t)}static getApiKey(e){let t={apiKey:H,projectId:H,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(K.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),K.assertArgument("string"==typeof e.projectSecret,"invali
1d projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let n=null;switch(e?e.name:"unknown"){case"homestead":n="mainnet.infura.io";break;case"goerli":n="goerli.infura.io";break;case"sepolia":n="sepolia.infura.io";break;case"matic":n="polygon-mainnet.infura.io";break;case"maticmum":n="polygon-mumbai.infura.io";break;case"optimism":n="optimism-mainnet.infura.io";break;case"optimism-goerli":n="optimism-goerli.infura.io";break;case"arbitrum":n="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":n="arbitrum-goerli.infura.io";break;default:K.throwError("unsupported network",_.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let r={allowGzip:!0,url:"https://"+n+"/v3/"+t.projectId,throttleCallback:(e,n)=>(t.projectId===H&&(0,b.vh)(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}isCommunityResource(){return this.projectId===H}}var z=n(2169);class W extends z.r{send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let r={request:n,resolve:null,reject:null},i=new Promise((e,t)=>{r.resolve=e,r.reject=t});return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{let e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let t=e.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:(0,v.deepCopy)(t),provider:this}),(0,$.fetchJson)(this.connection,JSON.stringify(t)).then(n=>{this.emit("debug",{action:"response",request:t,response:n,provider:this}),e.forEach((e,t)=>{let r=n[t];if(r.error){let t=Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else e.resolve(r.result)})},n=>{this.emit("debug",{action:"response",error:n,request:t,provider:this}),e.forEach(e=>{e.reject(n)})})},10)),i}}let Z=new _.Logger(I.i);class ee extends N.l{static getApiKey(e){return e&&"string"!=typeof e&&Z.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){Z.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let n=null;switch(e.name){case"homestead":n="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":n="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":n="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":n="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":n="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Z.throwArgumentError("unsupported network","network",arguments[0])}return n+"?apiKey="+t}}let et=new _.Logger(I.i),en="62e1ad51b37b8e00394bda3b";class er extends N.l{static getApiKey(e){let t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=en:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:et.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let n=null;switch(e?e.name:"unknown"){case"goerli":n="eth-goerli.gateway.pokt.network";break;case"homestead":n="eth-mainnet.gateway.pokt.network";break;case"kovan":n="poa-kovan.gateway.pokt.network";break;case"matic":n="poly-mainnet.gateway.pokt.network";break;case"maticmum":n="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":n="eth-rinkeby.gateway.pokt.network";break;case"ropsten":n="eth-ropsten.gateway.pokt.network";break;default:et.throwError("unsupported network",_.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let r=`https://${n}/v1/lb/${t.applicationId}`,i={headers:{},url:r};return null!=t.applicationSecretKey&&(i.user="",i.password=t.applicationSecretKey),i}isCommunityResource(){return this.applicationId===en}}var ei=n(241);let ea=new _.Logger(I.i);function eo(e,t){if(null==e&&(e="homestead"),"string"==typeof e){let t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new z.r(e);case"ws":case"wss":return new E.q(e);default:ea.throwArgumentError("unsupported URL scheme","network",e)}}let n=(0,T.H)(e);return n&&n._defaultProvider||ea.throwError("unsupported getDefaultProvider network",_.Logger.errors.NETWORK_E
1RROR,{operation:"getDefaultProvider",network:e}),n._defaultProvider({FallbackProvider:X.H,AlchemyProvider:O,AnkrProvider:x,CloudflareProvider:C,EtherscanProvider:q,InfuraProvider:J,JsonRpcProvider:z.r,NodesmithProvider:ee,PocketProvider:er,Web3Provider:ei.Q,IpcProvider:Q},t)}var es=n(234),eu=n(8812),el=n(4243),ep=n(1388),ec=n(1184),ed=n(8198),ef=n(9485),ey=n(4089),em=n(7727),eh=n(7586),eT=n(3684),eg=n(2046),ev=n(7827),eb=n(4178),eE=n(7949),e_=n(8197),eI=n(2006),eN=n(1886),ew=n(5634),ek=n(2472),eA=n(9052),eO=n(7669),eS=n(5637),eR=n(9251),ex=n(6237),eD=n(1744),eC=n(1261);let eL="ethers/5.7.2",eM=new _.Logger(eL);try{let e=window;null==e._ethers&&(e._ethers=o)}catch(e){}},3144:function(e){"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},850:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),n(3144);let o=a(n(6177)),s=a(n(7587));t.default=class{constructor(e,t,n){this.setSigner=e=>{this.signer=e},this.setProvider=e=>{this.provider=e},this.retire=async(e,t)=>{if(!this.signer)throw Error("No signer set");let n=this.signer;return this.contractInteractions.retire(e,t,n)},this.retireAndMintCertificate=async(e,t,n,r,i,a)=>{if(!this.signer)throw Error("No signer set");let o=this.signer;return this.contractInteractions.retireAndMintCertificate(e,t,n,r,i,a,o)},this.retireFrom=async(e,t,n)=>{if(!this.signer)throw Error("No signer set");let r=this.signer;return this.contractInteractions.retireFrom(e,t,n,r)},this.getDepositCap=async e=>{let t=this.signer?this.signer:this.provider;if(!t)throw Error("No signer or provider set");return this.contractInteractions.getDepositCap(e,t)},this.getAttributes=async e=>{let t=this.signer?this.signer:this.provider;if(!t)throw Error("No signer or provider set");return this.contractInteractions.getAttributes(e,t)},this.getTCO2Remaining=async e=>{let t=this.signer?this.signer:this.provider;if(!t)throw Error("No signer or provider set");return this.contractInteractions.getTCO2Remaining(e,t)},this.depositTCO2=async(e,t,n)=>{if(!this.signer)throw Error("No signer set");let r=this.signer;return this.contractInteractions.depositTCO2(e,t,n,r)},this.checkEligible=async(e,t)=>{let n=this.signer?this.signer:this.provider;if(!n)throw Error("No signer or provider set");return this.contractInteractions.checkEligible(e,t,n)},this.calculateRedeemFees=async(e,t,n)=>{let r=this.signer?this.signer:this.provider;if(!r)throw Error("No signer or provider set");return this.contractInteractions.calculateRedeemFees(e,t,n,r)},this.redeemMany=async(e,t,n)=>{if(!this.signer)throw Error("No signer set");let r=this.signer;return this.contractInteractions.redeemMany(e,t,n,r)},this.redeemAuto=async(e,t)=>{if(!this.signer)throw Error("No signer set");let n=this.signer;return this.contractInteractions.redeemAuto(e,t,n)},this.redeemAuto2=async(e,t)=>{if(!this.signer)throw Error("No signer set");let n=this.signer;return this.contractInteractions.redeemAuto2(e,t,n)},this.getPoolRemaining=async e=>{let t=this.signer?this.signer:this.provider;if(!t)throw Error("No signer or provider set");return this.contractInteractions.getPoolRemaining(e,t)},this.getScoredTCO2s=async e=>{let t=this.signer?this.signer:this.provider;if(!t)throw Error("No signer or provider set");return this.contractInteractions.getScoredTCO2s(e,t)},this.checkIfTCO2=async e=>{let t=this.signer?this.signer:this.provider;if(!t)throw Error("No signer or provider set");return this.contractInteractions.checkIfTCO2(e,t)},this.autoOffsetUsingPoolToken=async(e,t)=>{if(!this.signer)throw Error("No signer set");let n=this.signer;return this.contractInteractions.autoOffsetUsingPoolToken(e,t,n)},this.autoOffsetUsingSwapToken=async(e,t,n)=>{if(!this.signer)throw Error("No signer set");let r=this.signer;return this.contractInteractions.autoOffsetUsingSwapToken(e,t,n,r)},this.autoOffsetUsingETH=async(e,t)=>{if(!this.signer)throw Error("No signer set");let n=this.signer;return this.contractInteractions.autoOffsetUsingETH(e,t,n)},this.calculateNeededTokenAmount=async(e,t,n)=>{let r=this.signer?this.signer:this.provider;if(!r)throw Error("No signer or provider set");return this.contractInteractions.calculateNeededTokenAmount(e,t,n,r)},this.calculateNeededETHAmount=async(e,t)=>{let n=this.signer?this.signer:this.provider;if(!n)throw Error("No signer or provider set");return this.contractInteractions.calculateNeededETHAmount(e,t,n)},this.fetchUserBatches=async e=>this.subgraphInteractions.fetchUserBatches(e),this.fetchTCO2TokenById=async e=>this.subgraphInteractions.fetchTCO2TokenById(e),this.fetchTCO2TokenByFullSymbol=async e=>this.subgraphInteractions.fetchTCO2TokenByFullSymbol(e),this.fetchAllTCO2Tokens=async()=>this.subgraphInteractions.fetchAllTCO2Tokens(),this.fetchBridgedBatchTokens=async()=>this.subgraphInteractions.fetchBridgedBatchTokens(),this.fetchUserRetirements=async(e,t=100,n=0)=>
1this.subgraphInteractions.fetchUserRetirements(e,t,n),this.fetchRedeems=async(e,t=100,n=0)=>this.subgraphInteractions.fetchRedeems(e,t,n),this.fetchUserRedeems=async(e,t,n=100,r=0)=>this.subgraphInteractions.fetchUserRedeems(e,t,n,r),this.fetchPoolContents=async(e,t=1e3,n=0)=>this.subgraphInteractions.fetchPoolContents(e,t,n),this.fetchProjectById=async e=>this.subgraphInteractions.fetchProjectById(e),this.fetchAggregations=async()=>this.subgraphInteractions.fetchAggregations(),this.fetchCustomQuery=async(e,t)=>this.subgraphInteractions.fetchCustomQuery(e,t),this.fetchTokenPriceOnDex=async e=>this.subgraphInteractions.fetchTokenPriceOnDex(e),this.getPoolAddress=e=>this.contractInteractions.getPoolAddress(e),this.getPoolContract=e=>{let t=this.signer?this.signer:this.provider;if(!t)throw Error("No signer or provider set");return this.contractInteractions.getPoolContract(e,t)},this.getTCO2Contract=e=>{let t=this.signer?this.signer:this.provider;if(!t)throw Error("No signer or provider set");return this.contractInteractions.getTCO2Contract(e,t)},this.getRegistryContract=()=>{let e=this.signer?this.signer:this.provider;if(!e)throw Error("No signer or provider set");return this.contractInteractions.getRegistryContract(e)},this.getOffsetHelperContract=()=>{let e=this.signer?this.signer:this.provider;if(!e)throw Error("No signer or provider set");return this.contractInteractions.getOffsetHelperContract(e)},this.network=e,this.provider=t,this.signer=n,this.contractInteractions=new o.default(e),this.subgraphInteractions=new s.default(e)}},i(n(5288),t)}
1,6177: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});let i=n(3239),a=n(4218),o=n(7843),s=r(n(9664));t.default=class{constructor(e){this.retire=async(e,t,n)=>{let r=this.getTCO2Contract(t,n),i=await r.retire(e,{gasLimit:a.GAS_LIMIT});return await i.wait()},this.retireAndMintCertificate=async(e,t,n,r,i,o,s)=>{let u=this.getTCO2Contract(o,s),l=await u.retireAndMintCertificate(e,t,n,r,i,{gasLimit:a.GAS_LIMIT});return await l.wait()},this.retireFrom=async(e,t,n,r)=>{let i=this.getTCO2Contract(n,r),o=await i.retireFrom(t,e,{gasLimit:a.GAS_LIMIT});return await o.wait()},this.getDepositCap=async(e,t)=>{let n=this.getTCO2Contract(e,t);return await n.getDepositCap()},this.getAttributes=async(e,t)=>{let n=this.getTCO2Contract(e,t);return await n.getAttributes()},this.getTCO2Remaining=async(e,t)=>{let n=this.getTCO2Contract(e,t);return await n.getRemaining()},this.depositTCO2=async(e,t,n,r)=>{let i=this.getPoolContract(e,r),o=this.getTCO2Contract(n,r),s=await o.approve(i.address,t);await s.wait();let u=await i.deposit(n,t,{gasLimit:a.GAS_LIMIT});return await u.wait()},this.checkEligible=async(e,t,n)=>{let r=this.getPoolContract(e,n);return await r.checkEligible(t)},this.calculateRedeemFees=async(e,t,n,r)=>{let i=this.getPoolContract(e,r);return await i.calculateRedeemFees(t,n)},this.redeemMany=async(e,t,n,r)=>{let i=this.getPoolContract(e,r),o=await i.redeemMany(t,n,{gasLimit:a.GAS_LIMIT});return await o.wait()},this.redeemAuto=async(e,t,n)=>{let r=this.getPoolContract(e,n),i=await r.redeemAuto(t,{gasLimit:a.GAS_LIMIT});return await i.wait()},this.redeemAuto2=async(e,t,n)=>{let r=this.getPoolContract(e,n),i=await (await r.redeemAuto2(t,{gasLimit:a.GAS_LIMIT})).wait();if(!i.events)throw Error("No events to get tco2 addresses and amounts from");return i.events.filter(e=>{var t,n;return"Redeemed"==e.event&&(null===(t=e.args)||void 0===t?void 0:t.erc20)&&(null===(n=e.args)||void 0===n?void 0:n.amount)}).map(e=>{var t,n;return{address:null===(t=e.args)||void 0===t?void 0:t.erc20,amount:null===(n=e.args)||void 0===n?void 0:n.amount}})},this.getPoolRemaining=async(e,t)=>{let n=this.getPoolContract(e,t);return await n.getRemaining()},this.getScoredTCO2s=async(e,t)=>{let n=this.getPoolContract(e,t);return await n.getScoredTCO2s()},this.checkIfTCO2=async(e,t)=>{let n=this.getRegistryContract(t);return await n.checkERC20(e)},this.autoOffsetUsingPoolToken=async(e,t,n)=>{let r=this.getPoolContract(e,n),i=await r.approve(this.addresses.offsetHelper,t);await i.wait();let o=this.getOffsetHelperContract(n),s=await o.autoOffsetUsingPoolToken(this.addresses.nct,t,{gasLimit:a.GAS_LIMIT});return await s.wait()},this.autoOffsetUsingSwapToken=async(e,t,n,r)=>{let i=this.getPoolAddress(e),o=this.getOffsetHelperContract(r),s=await n.approve(this.addresses.offsetHelper,await o.calculateNeededTokenAmount(n.address,i,t));await s.wait();let u=await o.autoOffsetUsingToken(n.address,i,t,{gasLimit:a.GAS_LIMIT});return await u.wait()},this.autoOffsetUsingETH=async(e,t,n)=>{let r=this.getOffsetHelperContract(n),i=this.getPoolAddress(e),o=await r.autoOffsetUsingETH(i,t,{gasLimit:a.GAS_LIMIT,value:await r.calculateNeededETHAmount(i,t)});return await o.wait()},this.calculateNeededTokenAmount=async(e,t,n,r)=>{let i=this.getOffsetHelperContract(r);return await i.calculateNeededTokenAmount(n.address,this.getPoolAddress(e),t)},this.calculateNeededETHAmount=async(e,t,n)=>{let r=this.getOffsetHelperContract(n);return await r.calculateNeededETHAmount(this.getPoolAddress(e),t)},this.getPoolAddress=e=>"BCT"==e?this.addresses.bct:this.addresses.nct,this.getPoolContract=(e,t)=>{let n=new i.ethers.Contract(this.getPoolAddress(e),o.poolTokenABI,t);return n},this.getTCO2Contract=(e,t)=>{if(!this.checkIfTCO2(e,t))throw Error(`${e} is not a TCO2 address`);let n=new i.ethers.Contract(e,o.tco2ABI,t);return n},this.getRegistryContract=e=>{let t=new i.ethers.Contract(this.addresses.toucanContractRegistry,o.toucanContractRegistryABI,e);return t},this.getOffsetHelperContract=e=>{throw Error("OffsetHelper is not supported yet")},this.network=e,this.addresses=s.default[this.network]}}},7587:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=n(8337),a=r(n(9664)),o=n(106);t.default=class{constructor(e){this.fetchUserBatches=async e=>{var t,n;let r=(0,i.gql)`
2      query ($walletAddress: String) {
3        users(id: $walletAddress) {
4          batchesOwned(orderBy: id, orderDirection: desc) {
5            id
6            tx
7            serialNumber
8            quantity
9            confirmationStatus
10            comments {
11              id
12              comment
13              sender {
14                id
15              }
16            }
17            creator {
18              id
19            }
20          }
21        }
22      }
23    `,a=await this.graphClient.query(r,{walletAddress:e}).toPromise();if(a.error)throw a.error;return(null===(n=null===(t=a.data)||void 0===t?void 0:t.users[0])||void 0===n?void 0:n.batchesOwned)?a.data.users[0].batchesOwned:[]},this.fetchTCO2TokenById=async e=>{var t;let n=(0,i.gql)`
24      query ($id: String) {
25        tco2Token(id: $id) {
26          id
27          name
28          symbol
29          address
30          projectVintage {
31            name
32            project {
33              projectId
34            }
35          }
36        }
37      }
38    `,r=await this.graphClient.query(n,{id:e}).toPromise();if(r.error)throw r.error;if(null===(t=r.data)||void 0===t?void 0:t.tco2Tokens)return r.data.tco2Tokens},this.fetchTCO2TokenByFullSymbol=async e=>{var t;let n=(0,i.gql)`
39      query ($symbol: String) {
40        tco2Tokens(where: { symbol: $symbol }) {
41          id
42          name
43          symbol
44          address
45          projectVintage {
46            name
47            project {
48              projectId
49            }
50          }
51        }
52      }
53    `,r=await this.graphClient.query(n,{symbol:e}).toPromise();if(r.error)throw r.error;if(null===(t=r.data)||void 0===t?void 0:t.tco2Tokens[0])return r.data.tco2Tokens[0]},this.fetchAllTCO2Tokens=async()=>{var e;let t=[],n=0;for(;;){let r=(0,i.gql)`
54        query ($first: Int, $skip: Int) {
55          tco2Tokens(first: $first, skip: $skip) {
56            name
57            symbol
58            address
59            projectVintage {
60              name
61              project {
62                projectId
63              }
64            }
65          }
66        }
67      `,a=await this.graphClient.query(r,{first:1e3,skip:n}).toPromise();if(a.error)throw a.error;if((null===(e=a.data)||void 0===e?void 0:e.tco2Tokens)&&(t=t.concat(a.data.tco2Tokens),1e3===a.data.tco2Tokens.length)){n+=1e3;continue}break}return t},this.fetchBridgedBatchTokens=async()=>{var e;let t=[],n=0;for(;;){let r=(0,i.gql)`
68        query ($retirementStatus: Int, $first: Int, $skip: Int) {
69          batchTokens(
70            where: { confirmationStatus: $retirementStatus }
71            orderBy: timestamp
72            first: $first
73            skip: $skip
74          ) {
75            id
76            serialNumber
77            quantity
78            creator {
79              id
80            }
81            timestamp
82            tx
83          }
84        }
85      `,a=await this.graphClient.query(r,{retirementStatus:2,first:1e3,skip:n}).toPromise();if(a.error)throw a.error;if((null===(e=a.data)||void 0===e?void 0:e.batchTokens)&&(t=t.concat(a.data.batchTokens),1e3===a.data.batchTokens.length)){n+=1e3;continue}break}return t},this.fetchUserRetirements=async(e,t=100,n=0)=>{var r,a;let o=(0,i.gql)`
86      query ($walletAddress: String, $first: Int, $skip: Int) {
87        user(id: $walletAddress) {
88          retirementsCreated(
89            first: $first
90            skip: $skip
91            orderBy: timestamp
92            orderDirection: desc
93          ) {
94            id
95            creationTx
96            amount
97            timestamp
98            token {
99              symbol
100              name
101              address
102              projectVintage {
103                name
104                project {
105                  projectId
106                }
107              }
108            }
109            certificate {
110              id
111              retiringEntity {
112                id
113              }
114              beneficiary {
115                id
116              }
117              retiringEntityString
118              beneficiaryString
119              retirementMessage
120              createdAt
121            }
122          }
123        }
124      }
125    `,s=await this.graphClient.query(o,{walletAddress:e,first:t,skip:n}).toPromise();if(s.error)throw s.error;return(null===(a=null===(r=s.data)||void 0===r?void 0:r.user)||void 0===a?void 0:a.retirementsCreated)?s.data.user.retirementsCreated:[]},this.fetchRedeems=async(e,t=100,n=0)=>{var r;let a=this.getPoolAddress(e),o=(0,i.gql)`
126      query ($poolAddress: String, $first: Int, $skip: Int) {
127        redeems(
128          where: { pool: $poolAddress }
129          first: $first
130          skip: $skip
131          orderBy: timestamp
132          orderDirection: desc
133        ) {
134          id
135          amount
136          timestamp
137          creator {
138            id
139          }
140          token {
141            symbol
142            name
143            address
144            projectVintage {
145              name
146              project {
147                projectId
148              }
149            }
150          }
151        }
152      }
153    `,s=await this.graphClient.query(o,{poolAddress:a,first:t,skip:n}).toPromise();if(s.error)throw s.error;return(null===(r=s.data)||void 0===r?void 0:r.redeems)?s.data.redeems:[]},this.fetchUserRedeems=async(e,t,n=100,r=0)=>{var a,o;let s=this.getPoolAddress(t),u=(0,i.gql)`
154      query (
155        $walletAddress: String
156        $poolAddress: String
157        $first: Int
158        $skip: Int
159      ) {
160        user(id: $walletAddress) {
161          redeemsCreated(
162            where: { pool: $poolAddress }
163            first: $first
164            skip: $skip
165            orderBy: timestamp
166            orderDirection: desc
167          ) {
168            id
169            amount
170            timestamp
171            creator {
172              id
173            }
174            token {
175              symbol
176              name
177              address
178              projectVintage {
179                name
180                project {
181                  projectId
182                }
183              }
184            }
185          }
186        }
187      }
188    `,l=await this.graphClient.query(u,{walletAddress:e,poolAddress:s,first:n,skip:r}).toPromise();if(l.error)throw l.error;return(null===(o=null===(a=l.data)||void 0===a?void 0:a.user)||void 0===o?void 0:o.redeemsCreated)?l.data.user.redeemsCreated:[]},this.fetchPoolContents=async(e,t=1e3,n=0)=>{var r;let a=this.getPoolAddress(e),o=(0,i.gql)`
189      query ($poolAddress: String, $first: Int, $skip: Int) {
190        pooledTCO2Tokens(
191          where: { poolAddress: $poolAddress }
192          first: $first
193          skip: $skip
194          orderBy: amount
195          orderDirection: desc
196        ) {
197          token {
198            name
199            projectVintage {
200              id
201              project {
202                methodology
203                standard
204              }
205            }
206          }
207          amount
208        }
209      }
210    `,s=await this.graphClient.query(o,{poolAddress:a,first:t,skip:n}).toPromise();if(s.error)throw s.error;return(null===(r=s.data)||void 0===r?void 0:r.pooledTCO2Tokens)?s.data.pooledTCO2Tokens:[]},this.fetchProjectById=async e=>{var t;let n=(0,i.gql)`
211      query ($id: String) {
212        project(id: $id) {
213          projectId
214          region
215          standard
216          methodology
217          vintages {
218            id
219          }
220        }
221      }
222    `,r=await this.graphClient.query(n,{id:e}).toPromise();if(r.error)throw r.error;if(null===(t=r.data)||void 0===t?void 0:t.project)return r.data.project},this.fetchAggregations=async()=>{var e;let t=(0,i.gql)`
223      {
224        aggregations {
225          id
226          key
227          value
228        }
229      }
230    `,n=await this.graphClient.query(t).toPromise();if(n.error)throw n.error;return(null===(e=n.data)||void 0===e?void 0:e.aggregations)?n.data.aggregations:[]},this.fetchCustomQuery=async(e,t)=>{let n=await this.graphClient.query(e,{...null!=t?t:{}}).toPromise();if(n.error)throw n.error;if(n.data)return n.data},this.extractPriceInUSD=(e,t)=>{if(e&&e.length>0){for(let t of e)if("USDC"===t.token1.symbol)return parseFloat(t.token1Price)}if(t&&t.length>0){for(let e of t)if("USDC"===e.token0.symbol)return parseFloat(e.token0Price)}return 0},this.fetchTokenPrice=async e=>{var t,n,r,a,s,u,l,p,c,d;let f=(0,o.getDexGraphClient)(this.network),y="celo"===this.network||"alfajores"===this.network?(0,i.gql)`
231            query tokenPairsQuery(
232              $id: String!
233              $skip: Int
234              $block: Block_height
235            ) {
236              pairs0: pairs(
237                first: 1000
238                skip: $skip
239                orderBy: reserveUSD
240                orderDirection: desc
241                token0: $id
242                block: $block
243                orderBy: reserveUSD
244                orderDirection: desc
245              ) {
246                ...pairFields
247              }
248              pairs1: pairs(
249                first: 1000
250                skip: $skip
251                orderBy: reserveUSD
252                orderDirection: desc
253                token1: $id
254                block: $block
255                orderBy: reserveUSD
256                orderDirection: desc
257              ) {
258                ...pairFields
259              }
260            }
261
262            fragment pairFields on Pair {
263              id
264              reserveUSD
265              reserveCELO
266              volumeUSD
267              untrackedVolumeUSD
268              trackedReserveUSD
269              token0 {
270                ...PairToken
271              }
272              token1 {
273                ...PairToken
274              }
275              reserve0
276              reserve1
277              token0Price
278              token1Price
279              totalSupply
280              txCount
281            }
282
283            fragment PairToken on Token {
284              id
285              name
286              symbol
287              totalSupply
288            }
289          `:(0,i.gql)`
290            query tokenPairsQuery(
291              $id: String!
292              $skip: Int
293              $block: Block_height
294            ) {
295              pairs0: pairs(
296                first: 1000
297                skip: $skip
298                orderBy: reserveUSD
299                orderDirection: desc
300                token0: $id
301                block: $block
302                orderBy: reserveUSD
303                orderDirection: desc
304              ) {
305                ...pairFields
306              }
307              pairs1: pairs(
308                first: 1000
309                skip: $skip
310                orderBy: reserveUSD
311                orderDirection: desc
312                token1: $id
313                block: $block
314                orderBy: reserveUSD
315                orderDirection: desc
316              ) {
317                ...pairFields
318              }
319            }
320
321            fragment pairFields on Pair {
322              id
323              reserveUSD
324              reserveETH
325              volumeUSD
326              untrackedVolumeUSD
327              trackedReserveETH
328              token0 {
329                ...PairToken
330              }
331              token1 {
332                ...PairToken
333              }
334              reserve0
335              reserve1
336              token0Price
337              token1Price
338              totalSupply
339              txCount
340              timestamp
341            }
342
343            fragment PairToken on Token {
344              id
345              name
346              symbol
347              totalSupply
348              derivedETH
349            }
350          `,m=await f.query(y,{id:e}).toPromise();if(m.error)throw m.error;let h=this.extractPriceInUSD(null===(t=m.data)||void 0===t?void 0:t.pairs0,null===(n=m.data)||void 0===n?void 0:n.pairs1),T=(null===(a=null===(r=m.data)||void 0===r?void 0:r.pairs0)||void 0===a?void 0:a.reduce((e,t)=>
350e+=parseFloat(t.reserveUSD),0))+(null===(u=null===(s=m.data)||void 0===s?void 0:s.pairs1)||void 0===u?void 0:u.reduce((e,t)=>e+=parseFloat(t.reserveUSD),0)),g=(null===(p=null===(l=m.data)||void 0===l?void 0:l.pairs0)||void 0===p?void 0:p.reduce((e,t)=>e+=parseFloat(t.volumeUSD),0))+(null===(d=null===(c=m.data)||void 0===c?void 0:c.pairs1)||void 0===d?void 0:d.reduce((e,t)=>e+=parseFloat(t.volumeUSD),0));return[h,T,g]},this.fetchTokenPriceOnDex=async e=>{let t=this.getPoolAddress(e),[n,r,i]=await this.fetchTokenPrice(t);if(!n)throw Error(`No price found for ${e}`);return{price:n,url:"celo"===this.network||"alfajores"===this.network?`https://info.ubeswap.org/token/${t}`:`https://app.sushi.com/analytics/tokens/${t}`,liquidityUSD:r,volumeUSD:i}},this.getPoolAddress=e=>"BCT"==e?this.addresses.bct:this.addresses.nct,this.network=e,this.addresses=a.default[this.network],this.graphClient=(0,o.getToucanGraphClient)(this.network)}}},5288:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7843:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toucanContractRegistryABI=t.tco2ABI=t.swapperABI=t.offsetHelperABI=t.poolTokenABI=void 0,t.poolTokenABI=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tco2",type:"address"}],name:"AddFeeExemptedTCO2",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"methodology",type:"string"}],name:"AttributeMethodologyAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"methodology",type:"string"}],name:"AttributeMethodologyRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"region",type:"string"}],name:"AttributeRegionAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"region",type:"string"}],name:"AttributeRegionRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"standard",type:"string"}],name:"AttributeStandardAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"standard",type:"string"}],name:"AttributeStandardRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"erc20Addr",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"erc20addr",type:"address"}],name:"ExternalAddressRemovedFromWhitelist",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"erc20addr",type:"address"}],name:"ExternalAddressWhitelisted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"erc20addr",type:"address"}],name:"InternalAddressBlacklisted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"erc20addr",type:"address"}],name:"InternalAddressRemovedFromBlackList",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"erc20addr",type:"address"}],name:"InternalAddressRemovedFromWhitelist",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"erc20addr",type:"address"}],name:"InternalAddressWhitelisted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"mappingName",type:"string"},{indexed:!1,internalType:"bool",name:"accepted",type:"bool"}],name:"MappingSwitched",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"minimumVintageStartTime",type:"uint256"}],name:"MinimumVintageStartTimeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"redeemer",type:"address"},{indexed:!1,internalType:"uint256",name:"fees",type:"uint256"}],name:"RedeemFeeBurnt",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"redeemer",type:"address"},{indexed:!1,internalType:"uint256",name:"fees",type:"uint256"}],name:"RedeemFeePaid",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"erc20",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Redeemed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tco2",type:"address"}],name:"RemoveFeeExemptedTCO2",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"router",type:"address"}],name:"RouterUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newCap",type:"uint256"}],name:"SupplyCapUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint32",name:"destinationDomain",type:"uint32"},{indexed:!0,internalType:"address",name:"tco2",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"TCO2Bridged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address[]",name:"tco2s",type:"address[]"}],name:"TCO2ScoringUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ContractRegistry",type:"address"}],name:"ToucanRegistrySet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MANAGER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION_RELEASE_CANDIDATE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bool",name:"addToList",type:"bool"},{internalType:"string[]",name:"_regions",type:"string[]"},{internalType:"string[]",name:"_standards",type:"string[]"},{internalType:"string[]",name:"_methodologies",type:"string[]"}],name:"addAttributes",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"addRedeemFeeExemptedAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_tco2",type:"address"}],name:"addRedeemFeeExemptedTCO2",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"erc20Addr",type:"address[]"}],name:"addToExternalWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"erc20Addr",type:"address[]"}],name:"addToInternalBlackList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"erc20Addr",type:"address[]"}],name:"addToInternalWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"bridgeBurn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"bridgeMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint32",name:"destinationDomain",type:"uint32"},{internalType:"address[]",name:"tco2s",type:"address[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"bridgeTCO2s",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"tco2s",type:"address[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"calculateRedeemFees",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"erc20Addr",type:"address"}],name:"checkAttributeMatching",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"erc20Addr",type:"address"}],name:"checkEligible",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractRegistry",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"erc20Addr",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"externalWhiteList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeRedeemBurnAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeRedeemBurnPercentageInBase",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeRedeemDivider",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeRedeemPercentageInBase",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeRedeemReceiver",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRemaining",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getScoredTCO2s",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"internalBlackList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"internalWhiteList",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"methodologies",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"methodologiesIsAcceptedMapping",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"minimumVintageStartTime",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"tco2",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"redeemAndBurn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"redeemAuto",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"redeemAuto2",outputs:[{internalType:"address[]",name:"tco2s",type:"address[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"redeemFeeExemptedAddresses",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"redeemFeeExemptedTCO2s",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"tco2s",type:"address[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"redeemMany",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type
350:"string"}],name:"regions",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"regionsIsAcceptedMapping",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"erc20Addr",type:"address[]"}],name:"removeFromExternalWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"erc20Addr",type:"address[]"}],name:"removeFromInternalBlackList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"erc20Addr",type:"address[]"}],name:"removeFromInternalWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"removeRedeemFeeExemptedAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_tco2",type:"address"}],name:"removeRedeemFeeExemptedTCO2",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"router",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"scoredTCO2s",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"seedMode",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_feeRedeemBurnAddress",type:"address"}],name:"setFeeRedeemBurnAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_feeRedeemBurnPercentageInBase",type:"uint256"}],name:"setFeeRedeemBurnPercentage",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_feeRedeemPercentageInBase",type:"uint256"}],name:"setFeeRedeemPercentage",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_feeRedeemReceiver",type:"address"}],name:"setFeeRedeemReceiver",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint64",name:"_minimumVintageStartTime",type:"uint64"}],name:"setMinimumVintageStartTime",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_router",type:"address"}],name:"setRouter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newCap",type:"uint256"}],name:"setSupplyCap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"tco2s",type:"address[]"}],name:"setTCO2Scoring",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"setToucanContractRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"standards",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"standardsIsAcceptedMapping",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"supplyCap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_mappingName",type:"string"},{internalType:"bool",name:"accepted",type:"bool"}],name:"switchMapping",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"tco2",type:"address"}],name:"tokenBalances",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"}],t.offsetHelperABI=[{inputs:[{internalType:"string[]",name:"_eligibleTokenSymbols",type:"string[]"},{internalType:"address[]",name:"_eligibleTokenAddresses",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"who",type:"address"},{indexed:!1,internalType:"address",name:"poolToken",type:"address"},{indexed:!1,internalType:"address[]",name:"tco2s",type:"address[]"},{indexed:!1,internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"Redeemed",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[{internalType:"address",name:"_depositedToken",type:"address"},{internalType:"address",name:"_poolToken",type:"address"},{internalType:"uint256",name:"_amountToOffset",type:"uint256"}
350],name:"autoOffsetExactOutToken",outputs:[{internalType:"address[]",name:"tco2s",type:"address[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_poolToken",type:"address"},{internalType:"uint256",name:"_amountToOffset",type:"uint256"}],name:"autoOffsetPoolToken",outputs:[{internalType:"address[]",name:"tco2s",type:"address[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_fromToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"autoRedeem",outputs:[{internalType:"address[]",name:"tco2s",type:"address[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_tco2s",type:"address[]"},{internalType:"uint256[]",name:"_amounts",type:"uint256[]"}],name:"autoRetire",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"balances",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_fromMaticAmount",type:"uint256"},{internalType:"address",name:"_toToken",type:"address"}],name:"calculateExpectedPoolTokenForETH",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_fromToken",type:"address"},{internalType:"uint256",name:"_fromAmount",type:"uint256"},{internalType:"address",name:"_toToken",type:"address"}],name:"calculateExpectedPoolTokenForToken",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_toToken",type:"address"},{internalType:"uint256",name:"_toAmount",type:"uint256"}],name:"calculateNeededETHAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_fromToken",type:"address"},{internalType:"address",name:"_toToken",type:"address"},{internalType:"uint256",name:"_toAmount",type:"uint256"}],name:"calculateNeededTokenAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractRegistryAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_tokenSymbol",type:"string"}],name:"deleteEligibleTokenAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_erc20Addr",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"eligibleTokenAddresses",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_tokenSymbol",type:"string"},{internalType:"address",name:"_address",type:"address"}],name:"setEligibleTokenAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"setToucanContractRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_toToken",type:"address"}],name:"swapExactInETH",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_fromToken",type:"address"},{internalType:"uint256",name:"_fromAmount",type:"uint256"},{internalType:"address",name:"_toToken",type:"address"}],name:"swapExactInToken",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_toToken",type:"address"},{internalType:"uint256",name:"_toAmount",type:"uint256"}],name:"swapExactOutETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_fromToken",type:"address"},{internalType:"address",name:"_toToken",type:"address"},{internalType:"uint256",name:"_toAmount",type:"uint256"}],name:"swapExactOutToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"ubeswapRouterAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_erc20Addr",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],t.swapperABI=[{inputs:[{internalType:"string[]",name:"_tokenSymbols",type:"string[]"},{internalType:"address[]",name:"_tokenAddresses",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{inputs:[{internalType:"address",name:"_toToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"calculateNeededETHAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"sushiRouterAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_toToken",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"swap",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"tokenAddresses",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],t.tco2ABI=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"bridger",type:"address"},{indexed:!1,internalType:"uint256",name:"fees",type:"uint256"}],name:"FeeBurnt",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"bridger",type:"address"},{indexed:!1,internalType:"uint256",name:"fees",type:"uint256"}],name:"FeePaid",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"eventId",type:"uint256"}],name:"Retired",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"bridgeBurn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"bridgeMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractRegistry",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"defractionalize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getAttributes",outputs:[{components:[{internalType:"string",name:"projectId",type:"string"},{internalType:"string",name:"standard",type:"string"},{internalType:"string",name:"methodology",type:"string"},{internalType:"string",name:"region",type:"string"},{internalType:"string",name:"storageMethod",type:"string"},{internalType:"string",name:"method",type:"string"},{internalType:"string",name:"emissionType",type:"string"},{internalType:"string",name:"category",type:"string"},{internalType:"string",name:"uri",type:"string"},{internalType:"address",name:"beneficiary",type:"address"}],internalType:"struct ProjectData",name:"",type:"tuple"},{components:[{internalType:"string",name:"name",type:"string"},{internalType:"uint64",name:"startTime",type:"uint64"},{internalType:"uint64",name:"endTime",type:"uint64"},{internalType:"uint256",name:"projectTokenId",type:"uint256"},{internalType:"uint64",name:"totalVintageQuantity",type:"uint64"},{internalType:"bool",name:"isCorsiaCompliant",type:"bool"},{internalType:"bool",name:"isCCPcompliant",type:"bool"},{internalType:"string",name:"coBenefits",type:"string"},{internalType:"string",name:"correspAdjustment",type:"string"},{internalType:"string",name:"additionalCertification",type:"string"},{internalType:"string",name:"uri",type:"string"}],internalType:"struct VintageData",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDepositCap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getGlobalProjectVintageIdentifiers",outputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRemaining",outputs:[{internalType:"uint256",name:"remaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}
350,{internalType:"uint256",name:"_projectVintageTokenId",type:"uint256"},{internalType:"address",name:"_contractRegistry",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"retiringEntityString",type:"string"},{internalType:"address",name:"beneficiary",type:"address"},{internalType:"string",name:"beneficiaryString",type:"string"},{internalType:"string",name:"retirementMessage",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintCertificateLegacy",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"minterToId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"projectVintageTokenId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"retire",outputs:[{internalType:"uint256",name:"retirementEventId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"retiringEntityString",type:"string"},{internalType:"address",name:"beneficiary",type:"address"},{internalType:"string",name:"beneficiaryString",type:"string"},{internalType:"string",name:"retirementMessage",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"retireAndMintCertificate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"retireFrom",outputs:[{internalType:"uint256",name:"retirementEventId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"retiredAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],t.toucanContractRegistryABI=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"addERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"carbonOffsetBadgesAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"carbonOffsetBatchesAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"carbonProjectVintagesAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"carbonProjectsAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"checkERC20",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pauseSystem",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}
350],name:"projectVintageERC20Registry",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"setCarbonOffsetBadgesAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"setCarbonOffsetBatchesAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"setCarbonProjectVintagesAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"setCarbonProjectsAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"setToucanCarbonOffsetsFactoryAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"toucanCarbonOffsetsFactoryAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpauseSystem",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"}]},9664:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={celo:{bct:"0x0CcB0071e8B8B716A2a5998aB4d97b83790873Fe",nct:"0x02De4766C272abc10Bc88c220D214A26960a7e92",offsetHelper:"",weth:"0x122013fd7dF1C6F636a5bb8f03108E876548b455",swapper:"",toucanContractRegistry:"0xa30589F50b9641dacCB98AA2B4A8F24739c5B007"},alfajores:{bct:"0x4c5f90C50Ca9F849bb75D93a393A4e1B6E68Accb",nct:"0xfb60a08855389F3c0A66b29aB9eFa911ed5cbCB5",offsetHelper:"0xAcf9FD890F06e6F200339193a64c0952a164Cb9d",weth:"",swapper:"0xa12A728656Fbc82dC25515b548b328E63B556572",toucanContractRegistry:"0x48E04110aa4691ec3E9493187e6e9A3dB613e6e4"},polygon:{bct:"0x2f800db0fdb5223b3c3f354886d907a671414a7f",nct:"0xd838290e877e0188a4a44700463419ed96c16107",offsetHelper:"0xFAFcCd01C395e4542BEed819De61f02f5562fAEa",swapper:"0x1C7f2CCa1Cd52Aae8A25B7BA4b7800c153F48D70",weth:"0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",toucanContractRegistry:"0x263fa1c180889b3a3f46330f32a4a23287e99fc9"},mumbai:{bct:"0xf2438a14f668b1bba53408346288f3d7c71c10a1",nct:"0x7becba11618ca63ead5605de235f6dd3b25c530e",offsetHelper:"0x30dC279166DCFB69F52C91d6A3380dCa75D0fCa7",swapper:"0xDd052AcA9AC1492a8b4F1432B68f11989903dE4d",weth:"0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa",toucanContractRegistry:"0x6739d490670b2710dc7e79bb12e455de33ee1cb6"}}},8570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CELO_UBESWAP_GRAPH_API_URL=t.POLYGON_SUSHI_GRAPH_API_URL=t.MUMBAI_TOUCAN_GRAPH_API_URL=t.POLYGON_TOUCAN_GRAPH_API_URL=t.ALFAJORES_TOUCAN_GRAPH_API_URL=t.CELO_TOUCAN_GRAPH_API_URL=void 0,t.CELO_TOUCAN_GRAPH_API_URL="https://api.thegraph.com/subgraphs/name/toucanprotocol/celo",t.ALFAJORES_TOUCAN_GRAPH_API_URL="https://api.thegraph.com/subgraphs/name/toucanprotocol/alfajores",t.POLYGON_TOUCAN_GRAPH_API_URL="https://api.thegraph.com/subgraphs/name/toucanprotocol/matic",t.MUMBAI_TOUCAN_GRAPH_API_URL="https://api.thegraph.com/subgraphs/name/toucanprotocol/mumbai",t.POLYGON_SUSHI_GRAPH_API_URL="https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange",t.CELO_UBESWAP_GRAPH_API_URL="https://api.thegraph.com/subgraphs/name/ubeswap/ubeswap"},106:function(e,t,n){"use strict";
350Object.defineProperty(t,"__esModule",{value:!0}),t.getDexGraphClient=t.getToucanGraphClient=void 0;let r=n(8337),i=n(8570),a=e=>(0,r.createClient)({url:"polygon"===e?i.POLYGON_TOUCAN_GRAPH_API_URL:"mumbai"===e?i.MUMBAI_TOUCAN_GRAPH_API_URL:"celo"===e?i.CELO_TOUCAN_GRAPH_API_URL:i.ALFAJORES_TOUCAN_GRAPH_API_URL,requestPolicy:"network-only",fetch:fetch,exchanges:[r.cacheExchange,r.fetchExchange]});t.getToucanGraphClient=a;let o=e=>(0,r.createClient)({url:"polygon"===e||"mumbai"===e?i.POLYGON_SUSHI_GRAPH_API_URL:i.CELO_UBESWAP_GRAPH_API_URL,exchanges:[r.cacheExchange,r.fetchExchange]});t.getDexGraphClient=o},4218:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GAS_LIMIT=void 0,t.GAS_LIMIT=25e5},6202:function(e,t){"use strict";var n,r;function i(e,t){return t.tag=e,t}function a(e){}function o(e){return function(t){var n=e.length;let r=!1,a=!1,o=!1,s=0;t(i(0,[function(u){if(u)r=!0;else if(a)o=!0;else{for(a=o=!0;o&&!r;)s<n?(u=e[s],s=s+1|0,o=!1,t(i(1,[u]))):(r=!0,t(0));a=!1}}]))}}function s(){}function u(e){e(0)}function l(e){let t=!1;e(i(0,[function(n){n?t=!0:t||e(0)}]))}function p(e){return void 0===e?((e=[n,0]).tag=256,e):(null===e||e[0]!==n||((e=[n,e[1]+1|0]).tag=256),e)}function c(e){return null===e||e[0]!==n?e:0!==(e=e[1])?[n,e-1|0]:void 0}function d(e){return function(t){return function(n){function r(t){"number"==typeof t?p&&(p=!1,void 0!==(t=o.shift())?(t=e(c(t)),p=!0,t(r)):f?n(0):u||(u=!0,s(0))):t.tag?p&&(n(t),d?d=!1:l(0)):(l=t=t[0],d=!1,t(0))}let o=[],s=a,u=!1,l=a,p=!1,d=!1,f=!1;t(function(t){"number"==typeof t?f||(f=!0,p||0!==o.length||n(0)):t.tag?f||(t=t[0],u=!1,p?o.push(t):(t=e(t),p=!0,t(r))):s=t[0]}),n(i(0,[function(e){if(e){if(f||(f=!0,s(1)),p)return p=!1,l(1)}else f||u||(u=!0,s(0)),p&&!d&&(d=!0,l(0))}]))}}}function f(e){return e}function y(e){return e}function m(e){return e(0)}function h(e){return function(t){return function(n){let r=a,o=!1,s=[],u=!1;t(function(t){"number"==typeof t?u||(u=!0,0===s.length&&n(0)):t.tag?u||(o=!1,function(e){function t(e){return e!==p}var l=function(e){"number"==typeof e?0!==s.length&&(e=0===(s=s.filter(t)).length,u&&e?n(0):!o&&e&&(o=!0,r(0))):e.tag?0!==s.length&&(n(i(1,[e[0]])),p(0)):(p=e=e[0],s=s.concat(e),e(0))};let p=a;1===e.length?e(l):e.bind(null,l)}(e(t[0])),o||(o=!0,r(0))):r=t[0]}
350),n(i(0,[function(e){e?(u||(u=!0,r(e)),s.forEach(function(t){return t(e)}),s=[]):(o||u?o=!1:(o=!0,r(0)),s.forEach(m))}]))}}}function T(e){return e}function g(e){return e}function v(e){return h(g)(e)}function b(e){return function(t){return function(n){let r=!1;return t(function(t){if("number"==typeof t)r||(r=!0,n(t));else if(t.tag)r||(e(t[0]),n(t));else{var a=t[0];n(i(0,[function(e){if(!r)return e&&(r=!0),a(e)}]))}})}}}function E(e){e(0)}function _(e){return function(t){return function(n){function r(e){l&&("number"==typeof e?(l=!1,c?n(e):s||(s=!0,o(0))):e.tag?(n(e),p?p=!1:u(0)):(u=e=e[0],p=!1,e(0)))}let o=a,s=!1,u=a,l=!1,p=!1,c=!1;t(function(t){"number"==typeof t?c||(c=!0,l||n(0)):t.tag?c||(l&&(u(1),u=a),s?s=!1:(s=!0,o(0)),t=e(t[0]),l=!0,t(r)):o=t[0]}),n(i(0,[function(e){if(e){if(c||(c=!0,o(1)),l)return l=!1,u(1)}else c||s||(s=!0,o(0)),l&&!p&&(p=!0,u(0))}]))}}}function I(e){return e}function N(e){return function(t){return function(n){let r=[],i=a;return t(function(t){"number"==typeof t?o(r)(n):t.tag?(r.length>=e&&0<e&&r.shift(),r.push(t[0]),i(0)):(t=t[0],0>=e?(t(1),l(n)):(i=t,t(0)))})}}}function w(e){return function(t){let n=a,r=!1;return t(function(t){"number"==typeof t?r=!0:t.tag?r||(e(t[0]),n(0)):(n=t=t[0],t(0))}),{unsubscribe:function(e){if(!r)return r=!0,n(1)}}}}function k(e){}function A(e){}function O(){}function S(){}n=[],r="function"==typeof Symbol?Symbol.observable||(Symbol.observable=Symbol("observable")):"@@observable",t.buffer=function(e){return function(t){return function(n){function r(e){"number"==typeof e?p||(p=!0,s(1),0<o.length&&n(i(1,[o])),n(0)):e.tag?!p&&0<o.length&&(e=o,o=[],n(i(1,[e]))):u=e[0]}let o=[],s=a,u=a,l=!1,p=!1;t(function(t){"number"==typeof t?p||(p=!0,u(1),0<o.length&&n(i(1,[o])),n(0)):t.tag?p||(o.push(t[0]),l?l=!1:(l=!0,s(0),u(0))):(s=t[0],e(r))}),n(i(0,[function(e){if(!p){if(e)return p=!0,s(1),u(1);if(!l)return l=!0,s(0),u(0)}}]))}}},t.combine=function(e,t){return function(n){let r=a,o=a,s,u,l=!1,d=0,f=!1;e(function(e){var t=u;"number"==typeof e?1>d?d=d+1|0:f||(f=!0,n(0)):e.tag?(e=e[0],void 0!==t?f||(s=p(e),l=!1,n(i(1,[[e,c(t)]]))):(s=p(e),l?l=!1:o(0))):r=e[0]}),t(function(e){var t=s;"number"==typeof e?1>d?d=d+1|0:f||(f=!0,n(0)):e.tag?(e=e[0],void 0!==t?f||(u=p(e),l=!1,n(i(1,[[c(t),e]]))):(u=p(e),l?l=!1:r(0))):o=e[0]}),n(i(0,[function(e){if(!f){if(e)return f=!0,r(1),o(1);if(!l)return l=!0,r(e),o(e)}}]))}},t.concat=function(e){return d(y)(o(e))},t.concatAll=function(e){return d(f)(e)},t.concatMap=d,t.debounce=function(e){return function(t){return function(n){let r,a=!1,o=!1;var s=function(e){void 0!==(e=r)&&(r=void 0,clearTimeout(c(e)))};return t(function(t){if("number"==typeof t)o||(o=!0,void 0!==r?a=!0:n(0));else if(t.tag)o||(s(),r=p(setTimeout(function(e){r=void 0,n(t),a&&n(0)},e(t[0]))));else{var u=t[0];n(i(0,[function(e){if(!o)return e?(o=!0,a=!1,s(),u(1)):u(0)}]))}})}}},t.delay=function(e){return function(t){return function(n){let r=0;return t(function(t){"number"==typeof t||t.tag?(r=r+1|0,setTimeout(function(e){0!==r&&(r=r-1|0,n(t))},e)):n(t)})}}},t.empty=l,t.filter=function(e){return function(t){return function(n){let r=a;return t(function(t){"number"==typeof t?n(t):t.tag?e(t[0])?n(t):r(0):(r=t[0],n(t))})}}},t.flatten=v,t.forEach=function(e){return function(t){w(e)(t)}},t.fromArray=o,t.fromCallbag=function(e){return function(t){var n=function(e,n){switch(e){case 0:t(i(0,[function(e){return e?n(2):n(1)}]));break;case 1:t(i(1,[n]));break;case 2:t(0)}};return 2===e.length?e(0,n):e.bind(null,0,n)}},t.fromDomEvent=function(e,t){return function(n){var r=function(e){n(i(1,[e]))};return n(i(0,[function(n){if(n)return function(e,t,n){e.removeEventListener(t,n)}(e,t,r)}])),function(e,t,n){e.addEventListener(t,n)}(e,t,r)}},t.fromList=function(e){return function(t){let n=!1,r=!1,a=!1,o=e;t(i(0,[function(e){if(e)n=!0;else if(r)a=!0;else{for(r=a=!0;a&&!n;)(e=o)?(o=e[1],a=!1,t(i(1,[e[0]]))):(n=!0,t(0));r=!1}}]))}},t.fromObservable=function(e){var t=void 0!==e[r]?e[r]():e;return function(e){var n=t.subscribe({next:function(t){e(i(1,[t]))},complete:function(){e(0)},error:A});e(i(0,[function(e){if(e)return n.unsubscribe()}]))}},t.fromPromise=function(e){return function(t){let n=!1;e.then(function(e){return n||(t(i(1,[e])),t(0)),Promise.resolve(void 0)}),t(i(0,[function(e){e&&(n=!0)}
350]))}},t.fromValue=function(e){return function(t){let n=!1;t(i(0,[function(r){r?n=!0:n||(n=!0,t(i(1,[e])),t(0))}]))}},t.interval=function(e){return function(t){let n=0;var r=setInterval(function(e){e=n,n=n+1|0,t(i(1,[e]))},e);t(i(0,[function(e){e&&clearInterval(r)}]))}},t.make=function(e){return function(t){let n=s,r=!1;n=e({next:function(e){r||t(i(1,[e]))},complete:function(e){r||(r=!0,t(0))}}),t(i(0,[function(e){if(e&&!r)return r=!0,n()}]))}},t.makeSubject=function(e){let t=[],n=!1;return{source:function(e){function n(t){return t!==e}t=t.concat(e),e(i(0,[function(e){e&&(t=t.filter(n))}]))},next:function(e){n||t.forEach(function(t){t(i(1,[e]))})},complete:function(e){n||(n=!0,t.forEach(u))}}},t.map=function(e){return function(t){return function(n){return t(function(t){n(t="number"==typeof t?0:t.tag?i(1,[e(t[0])]):i(0,[t[0]]))})}}},t.merge=function(e){return h(T)(o(e))},t.mergeAll=v,t.mergeMap=h,t.never=function(e){e(i(0,[a]))},t.onEnd=function(e){return function(t){return function(n){let r=!1;return t(function(t){if("number"==typeof t){if(r)return;return r=!0,n(t),e()}if(t.tag)r||n(t);else{var a=t[0];n(i(0,[function(t){if(!r)return t?(r=!0,a(t),e()):a(t)}]))}})}}},t.onPush=b,t.onStart=function(e){return function(t){return function(n){return t(function(t){"number"==typeof t?n(t):t.tag?n(t):(n(t),e())})}}},t.pipe=function(){for(var e=arguments,t=arguments[0],n=1,r=arguments.length;n<r;n++)t=e[n](t);return t},t.publish=function(e){return w(k)(e)},t.sample=function(e){return function(t){return function(n){let r=a,o=a,s,u=!1,l=!1;t(function(e){"number"==typeof e?l||(l=!0,o(1),n(0)):e.tag?(s=p(e[0]),u?u=!1:(u=!0,o(0),r(0))):r=e[0]}),e(function(e){var t=s;"number"==typeof e?l||(l=!0,r(1),n(0)):e.tag?void 0===t||l||(s=void 0,n(i(1,[c(t)]))):o=e[0]}),n(i(0,[function(e){if(!l){if(e)return l=!0,r(1),o(1);if(!u)return u=!0,r(0),o(0)}}]))}}},t.scan=function(e,t){return function(n){return function(r){let a=t;return n(function(t){r(t="number"==typeof t?0:t.tag?i(1,[a=e(a,t[0])]):i(0,[t[0]]))})}}},t.share=function(e){function t(e){"number"==typeof e?(n.forEach(E),n=[]):e.tag?(o=!1,n.forEach(function(t){t(e)})):r=e[0]}let n=[],r=a,o=!1;return function(a){function s(e){return e!==a}1===(n=n.concat(a)).length&&e(t),a(i(0,[function(e){if(e){if(0===(n=n.filter(s)).length)return r(1)}else o||(o=!0,r(e))}]))}},t.skip=function(e){return function(t){return function(n){let r=a,i=e;return t(function(e){"number"==typeof e?n(e):e.tag?0<i?(i=i-1|0,r(0)):n(e):(r=e[0],n(e))})}}},t.skipUntil=function(e){return function(t){return function(n){function r(e){"number"==typeof e?u&&(p=!0,o(1)):e.tag?(u=!1,s(1)):(s=e=e[0],e(0))}let o=a,s=a,u=!0,l=!1,p=!1;t(function(t){"number"==typeof t?(u&&s(1),p=!0,n(0)):t.tag?u||p?l?l=!1:(l=!0,o(0),s(0)):(l=!1,n(t)):(o=t[0],e(r))}),n(i(0,[function(e){if(!p){if(e){if(p=!0,o(1),u)return s(1)}else l||(l=!0,u&&s(0),o(0))}}]))}}},t.skipWhile=function(e){return function(t){return function(n){let r=a,i=!0;return t(function(t){"number"==typeof t?n(t):t.tag?i?e(t[0])?r(0):(i=!1,n(t)):n(t):(r=t[0],n(t))})}}},t.subscribe=w,t.switchAll=function(e){return _(I)(e)},t.switchMap=_,t.take=function(e){return function(t){return function(n){let r=!1,o=0,s=a;t(function(t){"number"==typeof t?r||(r=!0,n(0)):t.tag?o<e&&!r&&(o=o+1|0,n(t),!r&&o>=e&&(r=!0,n(0),s(1))):(t=t[0],0>=e?(r=!0,n(0),t(1)):s=t)}),n(i(0,[function(t){if(!r){if(t)return r=!0,s(1);if(o<e)return s(0)}}]))}}},t.takeLast=N,t.takeUntil=function(e){return function(t){return function(n){function r(e){"number"!=typeof e&&(e.tag?(o=!0,s(1),n(0)):(u=e=e[0],e(0)))}let o=!1,s=a,u=a;t(function(t){"number"==typeof t?o||(o=!0,u(1),n(0)):t.tag?o||n(t):(s=t[0],e(r))}),n(i(0,[function(e){if(!o)return e?(o=!0,s(1),u(1)):s(0)}]))}}},t.takeWhile=function(e){return function(t){return function(n){let r=a,i=!1;return t(function(t){"number"==typeof t?i||(i=!0,n(0)):t.tag?i||(e(t[0])?n(t):(i=!0,n(0),r(1))):(r=t[0],n(t))})}}},t.tap=b,t.throttle=function(e){return function(t){return function(n){function r(e){o=void 0,a=!1}let a=!1,o;var s=function(e){void 0!==(e=o)&&clearTimeout(c(e))};return t(function(t){if("number"==typeof t)s(),n(0);else if(t.tag)a||(a=!0,s(),o=p(setTimeout(r,e(t[0]))),n(t));else{var u=t[0];n(i(0,[function(e){return e?(s(),u(1)):u(e)}]))}})}}},t.toArray=function(e){let t=[],n=a,r=!1;return e(function(e){"number"==typeof e?r=!0:e.tag?(t.push(e[0]),n(0)):(n=e=e[0],e(0))}),r||n(1),t},t.toCallbag=function(e){return function(t,n){if(0===t)return e(function(e){if("number"==typeof e)return 2===n.length?n(2,void 0):n.bind(null,2,void 0);if(e.tag)return e=e[0],2===n.length?n(1,e):n.bind(null,1,e);var t=e[0];return e=function(e){switch(e){case 1:t(0);break;case 2:t(1)}},2===n.length?n(0,e):n.bind(null,0,e)})}},t.toObservable=function(e){var t={subscribe:function(t,n,r){var i=("object"==typeof t?t.next.bind(t):t)||O,o=("object"==typeof t?t.complete.bind(t):r)||S;let s=a,u=!1;return e(function(e){if("number"==typeof e)return u=!0,o();if(e.tag){if(u)return;return i(e[0]),s(0)}s=e=e[0],e(0)}),{unsubscribe:function(){if(!u)return this.closed=!1,u=!0,s(1)},closed:!1}
350}};return t[r]=function(e){return t},t},t.toPromise=function(e){return new Promise(function(t,n){N(1)(e)(function(e){"number"!=typeof e&&(e.tag?t(e[0]):e[0](0))})})}},8087:function(e,t,n){"use strict";n.d(t,{OS:function(){return u},Z:function(){return l},__:function(){return o}});var r=n(8495),i=n(7867),a=n(4264);class o extends Error{constructor(e,...t){var n,a,u;let{nodes:l,source:p,positions:c,path:d,originalError:f,extensions:y}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(l)?l:l?[l]:void 0);let m=s(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=p?p:null==m?void 0:null===(a=m[0])||void 0===a?void 0:a.source,this.positions=null!=c?c:null==m?void 0:m.map(e=>e.start),this.locations=c&&p?c.map(e=>(0,i.k)(p,e)):null==m?void 0:m.map(e=>(0,i.k)(e.source,e.start));let h=(0,r.y)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(u=null!=y?y:h)&&void 0!==u?u:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+(0,a.Q)(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+(0,a.z)(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}function u(e){return e.toString()}function l(e){return e.toJSON()}},5219:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(8087);function i(e,t,n){return new r.__(`Syntax Error: ${n}`,{source:e,positions:[t]})}},3646:function(e,t,n){"use strict";let r;n.r(t),n.d(t,{BREAK:function(){return tC.$_},BreakingChangeType:function(){return c},DEFAULT_DEPRECATION_REASON:function(){return e4},DangerousChangeType:function(){return d},DirectiveLocation:function(){return eX.B},ExecutableDefinitionsRule:function(){return tU},FieldsOnCorrectTypeRule:function(){return tj},FragmentsOnCompositeTypesRule:function(){return tV},GRAPHQL_MAX_INT:function(){return eQ},GRAPHQL_MIN_INT:function(){return eK},GraphQLBoolean:function(){return ez},GraphQLDeprecatedDirective:function(){return e7},GraphQLDirective:function(){return e5},GraphQLEnumType:function(){return eF},GraphQLError:function(){return T.__},GraphQLFloat:function(){return eY},GraphQLID:function(){return eW},GraphQLIncludeDirective:function(){return e3},GraphQLInputObjectType:function(){return eU},GraphQLInt:function(){return eH},GraphQLInterfaceType:function(){return eL},GraphQLList:function(){return ef},GraphQLNonNull:function(){return ey},GraphQLObjectType:function(){return ek},GraphQLScalarType:function(){return ew},GraphQLSchema:function(){return tE},GraphQLSkipDirective:function(){return e8},GraphQLSpecifiedByDirective:function(){return e9},GraphQLString:function(){return eJ},GraphQLUnionType:function(){return eM},Kind:function(){return C.h},KnownArgumentNamesRule:function(){return tB},KnownDirectivesRule:function(){return tq},KnownFragmentNamesRule:function(){return tX},KnownTypeNamesRule:function(){return tQ},Lexer:function(){return ru.h},Location:function(){return g.Ye},LoneAnonymousOperationRule:function(){return tH},LoneSchemaDefinitionRule:function(){return tY},NoDeprecatedCustomRule:function(){return ry},NoFragmentCyclesRule:function(){return tJ},NoSchemaIntrospectionCustomRule:function(){return rm},NoUndefinedVariablesRule:function(){return tz},NoUnusedFragmentsRule:function(){return tW},NoUnusedVariablesRule:function(){return tZ},OperationTypeNode:function(){return g.ku},OverlappingFieldsCanBeMergedRule:function(){return t1},PossibleFragmentSpreadsRule:function(){return ne},PossibleTypeExtensionsRule:function(){return nt},ProvidedRequiredArgumentsRule:function(){return nr},ScalarLeafsRule:function(){return no},SchemaMetaFieldDef:function(){return ty},SingleFieldSubscriptionsRule:function(){return n_},Source:function(){return ra.H},Token:function(){return g.WU},TokenKind:function(){return rl.T},TypeInfo:function(){return tM},TypeKind:function(){return p},TypeMetaFieldDef:function(){return tm},TypeNameMetaFieldDef:function(){return th},UniqueArgumentDefinitionNamesRule:function(){return nN},UniqueArgumentNamesRule:function(){return nw},UniqueDirectiveNamesRule:function(){return nk},UniqueDirectivesPerLocationRule:function(){return nA},UniqueEnumValueNamesRule:function(){return nO},UniqueFieldDefinitionNamesRule:function(){return nS},UniqueFragmentNamesRule:function(){return nR},UniqueInputFieldNamesRule:function(){return nx},UniqueOperationNamesRule:function(){return nD},UniqueOperationTypesRule:function(){return nC},UniqueTypeNamesRule:function(){return nL},UniqueVariableNamesRule:function(){return nM},ValidationContext:function(){return nq},ValuesOfCorrectTypeRule:function(){return n$},VariablesAreInputTypesRule:function(){return nP},VariablesInAllowedPositionRule:function(){return nU},__Directive:function(){return ts},__DirectiveLocation:function(){return tu},__EnumValue:function(){return td},__Field:function(){return tp}
350,__InputValue:function(){return tc},__Schema:function(){return to},__Type:function(){return tl},__TypeKind:function(){return tf},assertAbstractType:function(){return ed},assertCompositeType:function(){return ep},assertDirective:function(){return e6},assertEnumType:function(){return J},assertEnumValueName:function(){return P},assertInputObjectType:function(){return W},assertInputType:function(){return ei},assertInterfaceType:function(){return Q},assertLeafType:function(){return eu},assertListType:function(){return ee},assertName:function(){return F},assertNamedType:function(){return eE},assertNonNullType:function(){return en},assertNullableType:function(){return eg},assertObjectType:function(){return q},assertOutputType:function(){return eo},assertScalarType:function(){return B},assertSchema:function(){return tb},assertType:function(){return j},assertUnionType:function(){return H},assertValidName:function(){return rJ},assertValidSchema:function(){return tN},assertWrappingType:function(){return eh},astFromValue:function(){return ti},buildASTSchema:function(){return rA},buildClientSchema:function(){return rE},buildSchema:function(){return rO},coerceInputValue:function(){return np},concatAST:function(){return rQ},createSourceEventStream:function(){return rd},defaultFieldResolver:function(){return re},defaultTypeResolver:function(){return n9},doTypesOverlap:function(){return eq},execute:function(){return nJ},executeSync:function(){return nz},extendSchema:function(){return r_},findBreakingChanges:function(){return rW},findDangerousChanges:function(){return rZ},formatError:function(){return T.Z},getArgumentValues:function(){return nm},getDirectiveValues:function(){return nh},getEnterLeaveForKind:function(){return tC.Eu},getIntrospectionQuery:function(){return rT},getLocation:function(){return ro.k},getNamedType:function(){return e_},getNullableType:function(){return ev},getOperationAST:function(){return rg},getOperationRootType:function(){return rv},getVariableValues:function(){return ny},getVisitFn:function(){return tC.CK},graphql:function(){return rn},graphqlSync:function(){return rr},introspectionFromSchema:function(){return rb},introspectionTypes:function(){return tT},isAbstractType:function(){return ec},isCompositeType:function(){return el},isConstValueNode:function(){return tP.Of},isDefinitionNode:function(){return tP.Ir},isDirective:function(){return e2},isEnumType:function(){return Y},isEqualType:function(){return eB},isExecutableDefinitionNode:function(){return tP.Wk},isInputObjectType:function(){return z},isInputType:function(){return er},isInterfaceType:function(){return X},isIntrospectionType:function(){return tg},isLeafType:function(){return es},isListType:function(){return Z},isNamedType:function(){return eb},isNonNullType:function(){return et},isNullableType:function(){return eT},isObjectType:function(){return G},isOutputType:function(){return ea},isRequiredArgument:function(){return eC},isRequiredInputField:function(){return eV},isScalarType:function(){return V},isSchema:function(){return tv},isSelectionNode:function(){return tP.pO},isSpecifiedDirective:function(){return tt},isSpecifiedScalarType:function(){return e0},isType:function(){return U},isTypeDefinitionNode:function(){return tP.zT},isTypeExtensionNode:function(){return tP.D$},isTypeNode:function(){return tP.VB},isTypeSubTypeOf:function(){return eG},isTypeSystemDefinitionNode:function(){return tP.G4},isTypeSystemExtensionNode:function(){return tP.aU},isUnionType:function(){return K},isValidNameError:function(){return rz},isValueNode:function(){return tP.nr},isWrappingType:function(){return em},lexicographicSortSchema:function(){return rS},locatedError:function(){return nH},parse:function(){return m.Qc},parseConstValue:function(){return m.tl},parseType:function(){return m.gZ},parseValue:function(){return m.H2},print:function(){return L.S},printError:function(){return T.OS},printIntrospectionSchema:function(){return rM},printLocation:function(){return rs.Q},printSchema:function(){return rL},printSourceLocation:function(){return rs.z},printType:function(){return rP},resolveObjMapThunk:function(){return eN},resolveReadonlyArrayThunk:function(){return eI},responsePathAsArray:function(){return nl},separateOperations:function(){return rK},specifiedDirectives:function(){return te},specifiedRules:function(){return nj},specifiedScalarTypes:function(){return eZ},stripIgnoredCharacters:function(){return rY},subscribe:function(){return rc},syntaxError:function(){return rh.h},typeFromAST:function(){return tL},validate:function(){return nX},validateSchema:function(){return tI},valueFromAST:function(){return nd},valueFromASTUntyped:function(){return M},version:function(){return i},versionInfo:function(){return a},visit:function(){return tC.Vn},visitInParallel:function(){return tC.j1},visitWithTypeInfo:function(){return tF}});let i="16.6.0",a=Object.freeze({major:16,minor:6,patch:0,preReleaseTag:null});var o,s,u,l,p,c,d,f=n(7826);function y(e){return"function"==typeof(null==e?void 0:e.then)}var m=n(4275),h=n(7820),T=n(8087),g=n(2380);
350function v(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let a=r.map(e=>`"${e}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}let o=a.slice(0,5),s=o.pop();return i+o.join(", ")+", or "+s+"?"}function b(e){return e}var E=n(8306),_=n(8495);function I(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function N(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function w(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function k(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),a=t.charCodeAt(r);if(O(i)&&O(a)){let o=0;do++n,o=10*o+i-A,i=e.charCodeAt(n);while(O(i)&&o>0);let s=0;do++r,s=10*s+a-A,a=t.charCodeAt(r);while(O(a)&&s>0);if(o<s)return -1;if(o>s)return 1}else{if(i<a)return -1;if(i>a)return 1;++n,++r}}return e.length-t.length}let A=48;function O(e){return!isNaN(e)&&A<=e&&e<=57}function S(e,t){let n=Object.create(null),r=new R(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:k(e,t)})}class R{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=x(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=x(n),i=this._inputArray;if(r.length<i.length){let e=r;r=i,i=e}let a=r.length,o=i.length;if(a-o>t)return;let s=this._rows;for(let e=0;e<=o;e++)s[0][e]=e;for(let e=1;e<=a;e++){let n=s[(e-1)%3],a=s[e%3],u=a[0]=e;for(let t=1;t<=o;t++){let o=r[e-1]===i[t-1]?0:1,l=Math.min(n[t]+1,a[t-1]+1,n[t-1]+o);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){let n=s[(e-2)%3][t-2];l=Math.min(l,n+1)}l<u&&(u=l),a[t]=l}if(u>t)return}let u=s[a%3][o];return u<=t?u:void 0}}function x(e){let t=e.length,n=Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function D(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}var C=n(7359),L=n(6918);function M(e,t){switch(e.kind){case C.h.NULL:return null;case C.h.INT:return parseInt(e.value,10);case C.h.FLOAT:return parseFloat(e.value);case C.h.STRING:case C.h.ENUM:case C.h.BOOLEAN:return e.value;case C.h.LIST:return e.values.map(e=>M(e,t));case C.h.OBJECT:return N(e.fields,e=>e.name.value,e=>M(e.value,t));case C.h.VARIABLE:return null==t?void 0:t[e.name.value]}}var $=n(8297);function F(e){if(null!=e||(0,f.a)(!1,"Must provide name."),"string"==typeof e||(0,f.a)(!1,"Expected name to be a string."),0===e.length)throw new T.__("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,$.HQ)(e.charCodeAt(t)))throw new T.__(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,$.LQ)(e.charCodeAt(0)))throw new T.__(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function P(e){if("true"===e||"false"===e||"null"===e)throw new T.__(`Enum values cannot be named: ${e}`);return F(e)}function U(e){return V(e)||G(e)||X(e)||K(e)||Y(e)||z(e)||Z(e)||et(e)}function j(e){if(!U(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL type.`);return e}function V(e){return(0,E.n)(e,ew)}function B(e){if(!V(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL Scalar type.`);return e}function G(e){return(0,E.n)(e,ek)}function q(e){if(!G(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL Object type.`);return e}function X(e){return(0,E.n)(e,eL)}function Q(e){if(!X(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL Interface type.`);return e}function K(e){return(0,E.n)(e,eM)}function H(e){if(!K(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL Union type.`);return e}function Y(e){return(0,E.n)(e,eF)}function J(e){if(!Y(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL Enum type.`);return e}function z(e){return(0,E.n)(e,eU)}function W(e){if(!z(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL Input Object type.`);return e}function Z(e){return(0,E.n)(e,ef)}function ee(e){if(!Z(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL List type.`);return e}function et(e){return(0,E.n)(e,ey)}function en(e){if(!et(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL Non-Null type.`);return e}function er(e){return V(e)||Y(e)||z(e)||em(e)&&er(e.ofType)}function ei(e){if(!er(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL input type.`);return e}function ea(e){return V(e)||G(e)||X(e)||K(e)||Y(e)||em(e)&&ea(e.ofType)}function eo(e){if(!ea(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL output type.`);return e}function es(e){return V(e)||Y(e)}function eu(e){if(!es(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL leaf type.`);return e}function el(e){return G(e)||X(e)||K(e)}function ep(e){if(!el(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL composite type.`);return e}function ec(e){return X(e)||K(e)}function ed(e){if(!ec(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL abstract type.`);return e}class ef{constructor(e){U(e)||(0,f.a)(!1,`Expected ${(0,h.X)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class ey{constructor(e){eT(e)||(0,f.a)(!1,`Expected ${(0,h.X)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function em(e){return Z(e)||et(e)}function eh(e){if(!em(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL wrapping type.`);return e}function eT(e){return U(e)&&!et(e)}function eg(e){if(!eT(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL nullable type.`);return e}function ev(e){if(e)return et(e)?e.ofType:e}function eb(e){return V(e)||G(e)||X(e)||K(e)||Y(e)||z(e)}function eE(e){if(!eb(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL named type.`);return e}function e_(e){if(e){let t=e;for(;em(t);)t=t.ofType;return t}}function eI(e){return"function"==typeof e?e():e}function eN(e){return"function"==typeof e?e():e}class ew{constructor(e){var t,n,r,i;let a=null!==(t=e.parseValue)&&void 0!==t?t:b;this.name=F(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:b,this.parseValue=a,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>a(M(e,t)),this.extensions=D(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,f.a)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,h.X)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,f.a)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,f.a)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ek{constructor(e){var t;this.name=F(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=D(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>eO(e),this._interfaces=()=>eA(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,f.a)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,h.X)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}
350getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ex(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eA(e){var t;let n=eI(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,f.a)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function eO(e){let t=eN(e.fields);return eR(t)||(0,f.a)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),w(t,(t,n)=>{var r;eR(t)||(0,f.a)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,f.a)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,h.X)(t.resolve)}.`);let i=null!==(r=t.args)&&void 0!==r?r:{};return eR(i)||(0,f.a)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:F(n),description:t.description,type:t.type,args:eS(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:D(t.extensions),astNode:t.astNode}})}function eS(e){return Object.entries(e).map(([e,t])=>({name:F(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:D(t.extensions),astNode:t.astNode}))}function eR(e){return(0,_.y)(e)&&!Array.isArray(e)}function ex(e){return w(e,e=>({description:e.description,type:e.type,args:eD(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function eD(e){return N(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function eC(e){return et(e.type)&&void 0===e.defaultValue}class eL{constructor(e){var t;this.name=F(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=D(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=eO.bind(void 0,e),this._interfaces=eA.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,f.a)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,h.X)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ex(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class eM{constructor(e){var t;this.name=F(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=D(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=e$.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,f.a)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,h.X)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function e$(e){let t=eI(e.types);return Array.isArray(t)||(0,f.a)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class eF{constructor(e){var t,n,r;this.name=F(e.name),this.description=e.description,this.extensions=D(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,eR(r=e.values)||(0,f.a)(!1,`${n} values must be an object with value names as keys.`),Object.entries(r).map(([e,t])=>(eR(t)||(0,f.a)(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${(0,h.X)(t)}.`),{name:P(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:D(t.extensions),astNode:t.astNode}))),this._valueLookup=new Map(this._values.map(e=>[e.value,e])),this._nameLookup=I(this._values,e=>e.name)}
350get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){let t=this._valueLookup.get(e);if(void 0===t)throw new T.__(`Enum "${this.name}" cannot represent value: ${(0,h.X)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=(0,h.X)(e);throw new T.__(`Enum "${this.name}" cannot represent non-string value: ${t}.`+eP(this,t))}let t=this.getValue(e);if(null==t)throw new T.__(`Value "${e}" does not exist in "${this.name}" enum.`+eP(this,e));return t.value}parseLiteral(e,t){if(e.kind!==C.h.ENUM){let t=(0,L.S)(e);throw new T.__(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+eP(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=(0,L.S)(e);throw new T.__(`Value "${t}" does not exist in "${this.name}" enum.`+eP(this,t),{nodes:e})}return n.value}toConfig(){let e=N(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eP(e,t){let n=e.getValues().map(e=>e.name),r=S(t,n);return v("the enum value",r)}class eU{constructor(e){var t;this.name=F(e.name),this.description=e.description,this.extensions=D(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ej.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=w(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ej(e){let t=eN(e.fields);return eR(t)||(0,f.a)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),w(t,(t,n)=>("resolve"in t&&(0,f.a)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:F(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:D(t.extensions),astNode:t.astNode}))}function eV(e){return et(e.type)&&void 0===e.defaultValue}function eB(e,t){return e===t||!!(et(e)&&et(t)||Z(e)&&Z(t))&&eB(e.ofType,t.ofType)}function eG(e,t,n){return t===n||(et(n)?!!et(t)&&eG(e,t.ofType,n.ofType):et(t)?eG(e,t.ofType,n):Z(n)?!!Z(t)&&eG(e,t.ofType,n.ofType):!Z(t)&&ec(n)&&(X(t)||G(t))&&e.isSubType(n,t))}function eq(e,t,n){return t===n||(ec(t)?ec(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ec(n)&&e.isSubType(n,t))}var eX=n(9878);let eQ=2147483647,eK=-2147483648,eH=new ew({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=e1(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new T.__(`Int cannot represent non-integer value: ${(0,h.X)(t)}`);if(n>eQ||n<eK)throw new T.__("Int cannot represent non 32-bit signed integer value: "+(0,h.X)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new T.__(`Int cannot represent non-integer value: ${(0,h.X)(e)}`);if(e>eQ||e<eK)throw new T.__(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==C.h.INT)throw new T.__(`Int cannot represent non-integer value: ${(0,L.S)(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>eQ||t<eK)throw new T.__(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),eY=new ew({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(e){let t=e1(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new T.__(`Float cannot represent non numeric value: ${(0,h.X)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new T.__(`Float cannot represent non numeric value: ${(0,h.X)(e)}`);return e},parseLiteral(e){if(e.kind!==C.h.FLOAT&&e.kind!==C.h.INT)throw new T.__(`Float cannot represent non numeric value: ${(0,L.S)(e)}`,e);return parseFloat(e.value)}}),eJ=new ew({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(e){let t=e1(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new T.__(`String cannot represent value: ${(0,h.X)(e)}`)},parseValue(e){if("string"!=typeof e)throw new T.__(`String cannot represent a non string value: ${(0,h.X)(e)}`);return e},parseLiteral(e){if(e.kind!==C.h.STRING)throw new T.__(`String cannot represent a non string value: ${(0,L.S)(e)}`,{nodes:e});return e.value}}),ez=new ew({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=e1(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new T.__(`Boolean cannot represent a non boolean value: ${(0,h.X)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new T.__(`Boolean cannot represent a non boolean value: ${(0,h.X)(e)}`);return e},parseLiteral(e){if(e.kind!==C.h.BOOLEAN)throw new T.__(`Boolean cannot represent a non boolean value: ${(0,L.S)(e)}`,{nodes:e});return e.value}}),eW=new ew({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(e){let t=e1(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new T.__(`ID cannot represent value: ${(0,h.X)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new T.__(`ID cannot represent value: ${(0,h.X)(e)}`)},parseLiteral(e){if(e.kind!==C.h.STRING&&e.kind!==C.h.INT)throw new T.__("ID cannot represent a non-string and non-integer value: "+(0,L.S)(e),{nodes:e});return e.value}}),eZ=Object.freeze([eJ,eH,eY,ez,eW]);function e0(e){return eZ.some(({name:t})=>e.name===t)}function e1(e){if((0,_.y)(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!(0,_.y)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function e2(e){return(0,E.n)(e,e5)}function e6(e){if(!e2(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL directive.`);return e}class e5{constructor(e){var t,n;this.name=F(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=D(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,f.a)(!1,`@${e.name} locations must be an Array.`);let r=null!==(n=e.args)&&void 0!==n?n:{};(0,_.y)(r)&&!Array.isArray(r)||(0,f.a)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=eS(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:eD(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let e3=new e5({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[eX.B.FIELD,eX.B.FRAGMENT_SPREAD,eX.B.INLINE_FRAGMENT],args:{if:{type:new ey(ez),description:"Included when true."}}}),e8=new e5({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[eX.B.FIELD,eX.B.FRAGMENT_SPREAD,eX.B.INLINE_FRAGMENT],args:{if:{type:new ey(ez),description:"Skipped when true."}}}),e4="No longer supported",e7=new e5({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[eX.B.FIELD_DEFINITION,eX.B.ARGUMENT_DEFINITION,eX.B.INPUT_FIELD_DEFINITION,eX.B.ENUM_VALUE],args:{reason:{type:eJ,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:e4}}}),e9=new e5({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[eX.B.SCALAR],args:{url:{type:new ey(eJ),description:"The URL that specifies the behavior of this scalar."}}}),te=Object.freeze([e3,e8,e7,e9]);function tt(e){return te.some(({name:t})=>t===e.name)}var tn=n(9551);function tr(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function ti(e,t){if(et(t)){let n=ti(e,t.ofType);
350return(null==n?void 0:n.kind)===C.h.NULL?null:n}if(null===e)return{kind:C.h.NULL};if(void 0===e)return null;if(Z(t)){let n=t.ofType;if(tr(e)){let t=[];for(let r of e){let e=ti(r,n);null!=e&&t.push(e)}return{kind:C.h.LIST,values:t}}return ti(e,n)}if(z(t)){if(!(0,_.y)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=ti(e[r.name],r.type);t&&n.push({kind:C.h.OBJECT_FIELD,name:{kind:C.h.NAME,value:r.name},value:t})}return{kind:C.h.OBJECT,fields:n}}if(es(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:C.h.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return ta.test(e)?{kind:C.h.INT,value:e}:{kind:C.h.FLOAT,value:e}}if("string"==typeof n)return Y(t)?{kind:C.h.ENUM,value:n}:t===eW&&ta.test(n)?{kind:C.h.INT,value:n}:{kind:C.h.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${(0,h.X)(n)}.`)}(0,tn.k)(!1,"Unexpected input type: "+(0,h.X)(t))}let ta=/^-?(?:0|[1-9][0-9]*)$/,to=new ek({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:eJ,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ey(new ef(new ey(tl))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new ey(tl),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:tl,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:tl,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ey(new ef(new ey(ts))),resolve:e=>e.getDirectives()}})}),ts=new ek({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new ey(eJ),resolve:e=>e.name},description:{type:eJ,resolve:e=>e.description},isRepeatable:{type:new ey(ez),resolve:e=>e.isRepeatable},locations:{type:new ey(new ef(new ey(tu))),resolve:e=>e.locations},args:{type:new ey(new ef(new ey(tc))),args:{includeDeprecated:{type:ez,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),tu=new eF({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:eX.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:eX.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:eX.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:eX.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:eX.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:eX.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:eX.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:eX.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:eX.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:eX.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:eX.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:eX.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:eX.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."}
350,INTERFACE:{value:eX.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:eX.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:eX.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:eX.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:eX.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:eX.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),tl=new ek({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ey(tf),resolve:e=>V(e)?p.SCALAR:G(e)?p.OBJECT:X(e)?p.INTERFACE:K(e)?p.UNION:Y(e)?p.ENUM:z(e)?p.INPUT_OBJECT:Z(e)?p.LIST:et(e)?p.NON_NULL:void(0,tn.k)(!1,`Unexpected type: "${(0,h.X)(e)}".`)},name:{type:eJ,resolve:e=>"name"in e?e.name:void 0},description:{type:eJ,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:eJ,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ef(new ey(tp)),args:{includeDeprecated:{type:ez,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(G(e)||X(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new ef(new ey(tl)),resolve(e){if(G(e)||X(e))return e.getInterfaces()}},possibleTypes:{type:new ef(new ey(tl)),resolve(e,t,n,{schema:r}){if(ec(e))return r.getPossibleTypes(e)}},enumValues:{type:new ef(new ey(td)),args:{includeDeprecated:{type:ez,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Y(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new ef(new ey(tc)),args:{includeDeprecated:{type:ez,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(z(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:tl,resolve:e=>"ofType"in e?e.ofType:void 0}})}),tp=new ek({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ey(eJ),resolve:e=>e.name},description:{type:eJ,resolve:e=>e.description},args:{type:new ey(new ef(new ey(tc))),args:{includeDeprecated:{type:ez,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new ey(tl),resolve:e=>e.type},isDeprecated:{type:new ey(ez),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eJ,resolve:e=>e.deprecationReason}})}),tc=new ek({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ey(eJ),resolve:e=>e.name},description:{type:eJ,resolve:e=>e.description},type:{type:new ey(tl),resolve:e=>e.type},defaultValue:{type:eJ,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=ti(n,t);return r?(0,L.S)(r):null}},isDeprecated:{type:new ey(ez),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eJ,resolve:e=>e.deprecationReason}})}),td=new ek({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ey(eJ),resolve:e=>e.name},description:{type:eJ,resolve:e=>e.description},isDeprecated:{type:new ey(ez),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eJ,resolve:e=>e.deprecationReason}})});(o=p||(p={})).SCALAR="SCALAR",o.OBJECT="OBJECT",o.INTERFACE="INTERFACE",o.UNION="UNION",o.ENUM="ENUM",o.INPUT_OBJECT="INPUT_OBJECT",o.LIST="LIST",o.NON_NULL="NON_NULL";let tf=new eF({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:p.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:p.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:p.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:p.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:p.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:p.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:p.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:p.NON_NULL,description:"Indicates this type is a 
350non-null. `ofType` is a valid field."}}}),ty={name:"__schema",type:new ey(to),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tm={name:"__type",type:tl,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ey(eJ),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},th={name:"__typename",type:new ey(eJ),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tT=Object.freeze([to,ts,tu,tl,tp,tc,td,tf]);function tg(e){return tT.some(({name:t})=>e.name===t)}function tv(e){return(0,E.n)(e,tE)}function tb(e){if(!tv(e))throw Error(`Expected ${(0,h.X)(e)} to be a GraphQL schema.`);return e}class tE{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,_.y)(e)||(0,f.a)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,f.a)(!1,`"types" must be Array if provided but got: ${(0,h.X)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,f.a)(!1,`"directives" must be Array if provided but got: ${(0,h.X)(e.directives)}.`),this.description=e.description,this.extensions=D(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:te;let r=new Set(e.types);if(null!=e.types)for(let t of e.types)r.delete(t),t_(t,r);for(let e of(null!=this._queryType&&t_(this._queryType,r),null!=this._mutationType&&t_(this._mutationType,r),null!=this._subscriptionType&&t_(this._subscriptionType,r),this._directives))if(e2(e))for(let t of e.args)t_(t.type,r);for(let e of(t_(to,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;let t=e.name;if(t||(0,f.a)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,X(e)){for(let t of e.getInterfaces())if(X(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(G(e)){for(let t of e.getInterfaces())if(X(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case g.ku.QUERY:return this.getQueryType();case g.ku.MUTATION:return this.getMutationType();case g.ku.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return K(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),K(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function t_(e,t){let n=e_(e);
350if(!t.has(n)){if(t.add(n),K(n))for(let e of n.getTypes())t_(e,t);else if(G(n)||X(n)){for(let e of n.getInterfaces())t_(e,t);for(let e of Object.values(n.getFields()))for(let n of(t_(e.type,t),e.args))t_(n.type,t)}else if(z(n))for(let e of Object.values(n.getFields()))t_(e.type,t)}return t}function tI(e){if(tb(e),e.__validationErrors)return e.__validationErrors;let t=new tw(e);(function(e){var t,n,r;let i=e.schema,a=i.getQueryType();a?G(a)||e.reportError(`Query root type must be Object type, it cannot be ${(0,h.X)(a)}.`,null!==(t=tk(i,g.ku.QUERY))&&void 0!==t?t:a.astNode):e.reportError("Query root type must be provided.",i.astNode);let o=i.getMutationType();o&&!G(o)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,h.X)(o)}.`,null!==(n=tk(i,g.ku.MUTATION))&&void 0!==n?n:o.astNode);let s=i.getSubscriptionType();s&&!G(s)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,h.X)(s)}.`,null!==(r=tk(i,g.ku.SUBSCRIPTION))&&void 0!==r?r:s.astNode)})(t),function(e){for(let n of e.schema.getDirectives()){if(!e2(n)){e.reportError(`Expected directive but got: ${(0,h.X)(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(tA(e,n),n.args))if(tA(e,r),er(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,h.X)(r.type)}.`,r.astNode),eC(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[tD(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}}(t),function(e){let t=function(e){let t=Object.create(null),n=[],r=Object.create(null);return function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let t of o)if(et(t.type)&&z(t.type.ofType)){let a=t.type.ofType,o=r[a.name];if(n.push(t),void 0===o)i(a);else{let t=n.slice(o),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${a.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[a.name]=void 0}}(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!eb(r)){e.reportError(`Expected GraphQL named type but got: ${(0,h.X)(r)}.`,r.astNode);continue}tg(r)||tA(e,r),G(r)?(tO(e,r),tS(e,r)):X(r)?(tO(e,r),tS(e,r)):K(r)?function(e,t){let n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,tx(t,i.name));continue}r[i.name]=!0,G(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,h.X)(i)}.`,tx(t,String(i)))}}(e,r):Y(r)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))tA(e,r)}(e,r):z(r)&&(function(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;tA(e,a),er(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,h.X)(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type),eV(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[tD(a.astNode),null===(i=a.astNode)||void 0===i?void 0:i.type])}}(e,r),t(r))}}(t);let n=t.getErrors();return e.__validationErrors=n,n}function tN(e){let t=tI(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class tw{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new T.__(e,{nodes:n}))}getErrors(){return this._errors}}function tk(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function tA(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function tO(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,a;for(let n of(tA(e,o),ea(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,h.X)(o.type)}
350.`,null===(r=o.astNode)||void 0===r?void 0:r.type),o.args)){let r=n.name;tA(e,n),er(n.type)||e.reportError(`The type of ${t.name}.${o.name}(${r}:) must be Input Type but got: ${(0,h.X)(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),eC(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${o.name}(${r}:) cannot be deprecated.`,[tD(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function tS(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!X(r)){e.reportError(`Type ${(0,h.X)(t)} must only implement Interface types, it cannot implement ${(0,h.X)(r)}.`,tR(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tR(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tR(t,r));continue}n[r.name]=!0,function(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...tR(n,i),...tR(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){var i,a,o,s;let l=u.name,p=r[l];if(!p){e.reportError(`Interface field ${n.name}.${l} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(eG(e.schema,p.type,u.type)||e.reportError(`Interface field ${n.name}.${l} expects type ${(0,h.X)(u.type)} but ${t.name}.${l} is type ${(0,h.X)(p.type)}.`,[null===(i=u.astNode)||void 0===i?void 0:i.type,null===(a=p.astNode)||void 0===a?void 0:a.type]),u.args)){let i=r.name,a=p.args.find(e=>e.name===i);if(!a){e.reportError(`Interface field argument ${n.name}.${l}(${i}:) expected but ${t.name}.${l} does not provide it.`,[r.astNode,p.astNode]);continue}eB(r.type,a.type)||e.reportError(`Interface field argument ${n.name}.${l}(${i}:) expects type ${(0,h.X)(r.type)} but ${t.name}.${l}(${i}:) is type ${(0,h.X)(a.type)}.`,[null===(o=r.astNode)||void 0===o?void 0:o.type,null===(s=a.astNode)||void 0===s?void 0:s.type])}for(let r of p.args){let i=r.name,a=u.args.find(e=>e.name===i);!a&&eC(r)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${i} that is missing from the Interface field ${n.name}.${l}.`,[r.astNode,u.astNode])}}}(e,t,r)}}function tR(e,t){let{astNode:n,extensionASTNodes:r}=e,i=null!=n?[n,...r]:r;return i.flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function tx(e,t){let{astNode:n,extensionASTNodes:r}=e,i=null!=n?[n,...r]:r;return i.flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function tD(e){var t;return null==e?void 0:null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===e7.name)}var tC=n(7304);function tL(e,t){switch(t.kind){case C.h.LIST_TYPE:{let n=tL(e,t.type);return n&&new ef(n)}case C.h.NON_NULL_TYPE:{let n=tL(e,t.type);return n&&new ey(n)}case C.h.NAMED_TYPE:return e.getType(t.name.value)}}class tM{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:t$,t&&(er(t)&&this._inputTypeStack.push(t),el(t)&&this._parentTypeStack.push(t),ea(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}
350getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case C.h.SELECTION_SET:{let e=e_(this.getType());this._parentTypeStack.push(el(e)?e:void 0);break}case C.h.FIELD:{let n,r;let i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(ea(r)?r:void 0);break}case C.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case C.h.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(G(n)?n:void 0);break}case C.h.INLINE_FRAGMENT:case C.h.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?tL(t,n):e_(this.getType());this._typeStack.push(ea(r)?r:void 0);break}case C.h.VARIABLE_DEFINITION:{let n=tL(t,e.type);this._inputTypeStack.push(er(n)?n:void 0);break}case C.h.ARGUMENT:{var n;let t,r;let i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(er(r)?r:void 0);break}case C.h.LIST:{let e=ev(this.getInputType()),t=Z(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(er(t)?t:void 0);break}case C.h.OBJECT_FIELD:{let t,n;let r=e_(this.getInputType());z(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(er(t)?t:void 0);break}case C.h.ENUM:{let t;let n=e_(this.getInputType());Y(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case C.h.SELECTION_SET:this._parentTypeStack.pop();break;case C.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case C.h.DIRECTIVE:this._directive=null;break;case C.h.OPERATION_DEFINITION:case C.h.INLINE_FRAGMENT:case C.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case C.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case C.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.h.LIST:case C.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.h.ENUM:this._enumValue=null}}}function t$(e,t,n){let r=n.name.value;return r===ty.name&&e.getQueryType()===t?ty:r===tm.name&&e.getQueryType()===t?tm:r===th.name&&el(t)?th:G(t)||X(t)?t.getFields()[r]:void 0}function tF(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,tC.Eu)(t,r.kind).enter;if(i){let a=i.apply(t,n);return void 0!==a&&(e.leave(r),(0,g.UG)(a)&&e.enter(a)),a}},leave(...n){let r;let i=n[0],a=(0,tC.Eu)(t,i.kind).leave;return a&&(r=a.apply(t,n)),e.leave(i),r}}}var tP=n(5844);function tU(e){return{Document(t){for(let n of t.definitions)if(!(0,tP.Wk)(n)){let t=n.kind===C.h.SCHEMA_DEFINITION||n.kind===C.h.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new T.__(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function tj(e){return{Field(t){let n=e.getParentType();if(n){let r=e.getFieldDef();if(!r){let r=e.getSchema(),i=t.name.value,a=v("to use an inline fragment on",function(e,t,n){if(!ec(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n])for(let e of(r.add(o),i[o.name]=1,o.getInterfaces())){var a;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(a=i[e.name])&&void 0!==a?a:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:X(t)&&e.isSubType(t,n)?-1:X(n)&&e.isSubType(n,t)?1:k(t.name,n.name)}).map(e=>e.name)}
350(r,n,i));""===a&&(a=v(function(e,t){if(G(e)||X(e)){let n=Object.keys(e.getFields());return S(t,n)}return[]}(n,i))),e.reportError(new T.__(`Cannot query field "${i}" on type "${n.name}".`+a,{nodes:t}))}}}}}function tV(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=tL(e.getSchema(),n);if(t&&!el(t)){let t=(0,L.S)(n);e.reportError(new T.__(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=tL(e.getSchema(),t.typeCondition);if(n&&!el(n)){let n=(0,L.S)(t.typeCondition);e.reportError(new T.__(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function tB(e){return{...tG(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,a=r.args.map(e=>e.name),o=S(n,a);e.reportError(new T.__(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+v(o),{nodes:t}))}}}}function tG(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():te;for(let e of r)t[e.name]=e.args.map(e=>e.name);let i=e.getDocument().definitions;for(let e of i)if(e.kind===C.h.DIRECTIVE_DEFINITION){var a;let n=null!==(a=e.arguments)&&void 0!==a?a:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let a=S(n,i);e.reportError(new T.__(`Unknown argument "${n}" on directive "@${r}".`+v(a),{nodes:t}))}}return!1}}}function tq(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():te;for(let e of r)t[e.name]=e.locations;let i=e.getDocument().definitions;for(let e of i)e.kind===C.h.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,r,i,a,o){let s=n.name.value,u=t[s];if(!u){e.reportError(new T.__(`Unknown directive "@${s}".`,{nodes:n}));return}let l=function(e){let t=e[e.length-1];switch("kind"in t||(0,tn.k)(!1),t.kind){case C.h.OPERATION_DEFINITION:return function(e){switch(e){case g.ku.QUERY:return eX.B.QUERY;case g.ku.MUTATION:return eX.B.MUTATION;case g.ku.SUBSCRIPTION:return eX.B.SUBSCRIPTION}}(t.operation);case C.h.FIELD:return eX.B.FIELD;case C.h.FRAGMENT_SPREAD:return eX.B.FRAGMENT_SPREAD;case C.h.INLINE_FRAGMENT:return eX.B.INLINE_FRAGMENT;case C.h.FRAGMENT_DEFINITION:return eX.B.FRAGMENT_DEFINITION;case C.h.VARIABLE_DEFINITION:return eX.B.VARIABLE_DEFINITION;case C.h.SCHEMA_DEFINITION:case C.h.SCHEMA_EXTENSION:return eX.B.SCHEMA;case C.h.SCALAR_TYPE_DEFINITION:case C.h.SCALAR_TYPE_EXTENSION:return eX.B.SCALAR;case C.h.OBJECT_TYPE_DEFINITION:case C.h.OBJECT_TYPE_EXTENSION:return eX.B.OBJECT;case C.h.FIELD_DEFINITION:return eX.B.FIELD_DEFINITION;case C.h.INTERFACE_TYPE_DEFINITION:case C.h.INTERFACE_TYPE_EXTENSION:return eX.B.INTERFACE;case C.h.UNION_TYPE_DEFINITION:case C.h.UNION_TYPE_EXTENSION:return eX.B.UNION;case C.h.ENUM_TYPE_DEFINITION:case C.h.ENUM_TYPE_EXTENSION:return eX.B.ENUM;case C.h.ENUM_VALUE_DEFINITION:return eX.B.ENUM_VALUE;case C.h.INPUT_OBJECT_TYPE_DEFINITION:case C.h.INPUT_OBJECT_TYPE_EXTENSION:return eX.B.INPUT_OBJECT;case C.h.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||(0,tn.k)(!1),t.kind===C.h.INPUT_OBJECT_TYPE_DEFINITION?eX.B.INPUT_FIELD_DEFINITION:eX.B.ARGUMENT_DEFINITION}default:(0,tn.k)(!1,"Unexpected kind: "+(0,h.X)(t.kind))}}(o);l&&!u.includes(l)&&e.reportError(new T.__(`Directive "@${s}" may not be used on ${l}.`,{nodes:n}))}}}function tX(e){return{FragmentSpread(t){let n=t.name.value,r=e.getFragment(n);r||e.reportError(new T.__(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function tQ(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)(0,tP.zT)(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,a,o,s,u){let l=t.name.value;if(!n[l]&&!r[l]){var p,c;let n=null!==(p=u[2])&&void 0!==p?p:o,r=null!=n&&"kind"in(c=n)&&((0,tP.G4)(c)||(0,tP.aU)(c));if(r&&tK.includes(l))return;let a=S(l,r?tK.concat(i):i);e.reportError(new T.__(`Unknown type "${l}".`+v(a),{nodes:t}))}}}}let tK=[...eZ,...tT].map(e=>e.name);function tH(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===C.h.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new T.__("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function tY(e){var t,n,r;let i=e.getSchema(),a=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(t){if(a){e.reportError(new T.__("Cannot define a new schema within a schema extension.",{nodes:t}));return}o>0&&e.reportError(new T.__("Must provide only one schema definition.",{nodes:t})),++o}}}function tJ(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let s=e.getFragmentSpreads(a.selectionSet);if(0!==s.length){for(let t of(r[o]=n.length,s)){let a=t.name.value,o=r[a];if(n.push(t),void 0===o){let t=e.getFragment(a);t&&i(t)}else{let t=n.slice(o),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new T.__(`Cannot spread fragment "${a}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[o]=void 0}})(i),!1)}}function tz(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let r=i.name.value;!0!==t[r]&&e.reportError(new T.__(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function tW(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new T.__(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function tZ(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:e}of i)r[e.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new T.__(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function t0(e){switch(e.kind){case C.h.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:t0(e.value)})).sort((e,t)=>
350k(e.name.value,t.name.value))};case C.h.LIST:return{...e,values:e.values.map(t0)};case C.h.INT:case C.h.FLOAT:case C.h.STRING:case C.h.BOOLEAN:case C.h.NULL:case C.h.ENUM:case C.h.VARIABLE:return e}}function t1(e){let t=new t9,n=new Map;return{SelectionSet(r){let i=function(e,t,n,r,i){let a=[],[o,s]=t4(e,t,r,i);if(function(e,t,n,r,i){for(let[a,o]of Object.entries(i))if(o.length>1)for(let i=0;i<o.length;i++)for(let s=i+1;s<o.length;s++){let u=t3(e,n,r,!1,a,o[i],o[s]);u&&t.push(u)}}(e,a,t,n,o),0!==s.length)for(let r=0;r<s.length;r++){t2(e,a,t,n,!1,o,s[r]);for(let i=r+1;i<s.length;i++)t6(e,a,t,n,!1,s[r],s[i])}return a}(e,n,t,e.getParentType(),r);for(let[[t,n],r,a]of i){let i=function e(t){return Array.isArray(t)?t.map(([t,n])=>`subfields "${t}" conflict because `+e(n)).join(" and "):t}(n);e.reportError(new T.__(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(a)}))}}}}function t2(e,t,n,r,i,a,o){let s=e.getFragment(o);if(!s)return;let[u,l]=t7(e,n,s);if(a!==u)for(let s of(t5(e,t,n,r,i,a,u),l))r.has(s,o,i)||(r.add(s,o,i),t2(e,t,n,r,i,a,s))}function t6(e,t,n,r,i,a,o){if(a===o||r.has(a,o,i))return;r.add(a,o,i);let s=e.getFragment(a),u=e.getFragment(o);if(!s||!u)return;let[l,p]=t7(e,n,s),[c,d]=t7(e,n,u);for(let o of(t5(e,t,n,r,i,l,c),d))t6(e,t,n,r,i,a,o);for(let a of p)t6(e,t,n,r,i,a,o)}function t5(e,t,n,r,i,a,o){for(let[s,u]of Object.entries(a)){let a=o[s];if(a)for(let o of u)for(let u of a){let a=t3(e,n,r,i,s,o,u);a&&t.push(a)}}}function t3(e,t,n,r,i,a,o){let[s,u,l]=a,[p,c,d]=o,f=r||s!==p&&G(s)&&G(p);if(!f){let e=u.name.value,t=c.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[u],[c]];if(t8(u)!==t8(c))return[[i,"they have differing arguments"],[u],[c]]}let y=null==l?void 0:l.type,m=null==d?void 0:d.type;if(y&&m&&function e(t,n){return Z(t)?!Z(n)||e(t.ofType,n.ofType):!!Z(n)||(et(t)?!et(n)||e(t.ofType,n.ofType):!!et(n)||!!(es(t)||es(n))&&t!==n)}(y,m))return[[i,`they return conflicting types "${(0,h.X)(y)}" and "${(0,h.X)(m)}"`],[u],[c]];let T=u.selectionSet,g=c.selectionSet;if(T&&g){let r=function(e,t,n,r,i,a,o,s){let u=[],[l,p]=t4(e,t,i,a),[c,d]=t4(e,t,o,s);for(let i of(t5(e,u,t,n,r,l,c),d))t2(e,u,t,n,r,l,i);for(let i of p)t2(e,u,t,n,r,c,i);for(let i of p)for(let a of d)t6(e,u,t,n,r,i,a);return u}(e,t,n,f,e_(y),T,e_(m),g);return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(r,i,u,c)}}function t8(e){var t;let n=null!==(t=e.arguments)&&void 0!==t?t:[],r={kind:C.h.OBJECT,fields:n.map(e=>({kind:C.h.OBJECT_FIELD,name:e.name,value:e.value}))};return(0,L.S)(t0(r))}function t4(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);!function e(t,n,r,i,a){for(let o of r.selections)switch(o.kind){case C.h.FIELD:{let e;let t=o.name.value;(G(n)||X(n))&&(e=n.getFields()[t]);let r=o.alias?o.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,o,e]);break}case C.h.FRAGMENT_SPREAD:a[o.name.value]=!0;break;case C.h.INLINE_FRAGMENT:{let r=o.typeCondition,s=r?tL(t.getSchema(),r):n;e(t,s,o.selectionSet,i,a)}}}(e,n,r,a,o);let s=[a,Object.keys(o)];return t.set(r,s),s}function t7(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=tL(e.getSchema(),n.typeCondition);return t4(e,t,i,n.selectionSet)}class t9{constructor(){this._data=new Map}has(e,t,n){var r;let[i,a]=e<t?[e,t]:[t,e],o=null===(r=this._data.get(i))||void 0===r?void 0:r.get(a);return void 0!==o&&(!!n||n===o)}add(e,t,n){let[r,i]=e<t?[e,t]:[t,e],a=this._data.get(r);void 0===a?this._data.set(r,new Map([[i,n]])):a.set(i,n)}}function ne(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(el(n)&&el(r)&&!eq(e.getSchema(),n,r)){let i=(0,h.X)(r),a=(0,h.X)(n);e.reportError(new T.__(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=function(e,t){let n=e.getFragment(t);if(n){let t=tL(e.getSchema(),n.typeCondition);if(el(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!eq(e.getSchema(),r,i)){let a=(0,h.X)(i),o=(0,h.X)(r);e.reportError(new T.__(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function nt(e){let t=e.getSchema(),n=Object.create(null);for(let t of e.getDocument().definitions)(0,tP.zT)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){let i;let a=r.name.value,o=n[a],s=null==t?void 0:t.getType(a);if(o?i=nn[o.kind]:s&&(i=V(s)?C.h.SCALAR_TYPE_EXTENSION:G(s)?C.h.OBJECT_TYPE_EXTENSION:X(s)?C.h.INTERFACE_TYPE_EXTENSION:K(s)?C.h.UNION_TYPE_EXTENSION:Y(s)?C.h.ENUM_TYPE_EXTENSION:z(s)?C.h.INPUT_OBJECT_TYPE_EXTENSION:void(0,tn.k)(!1,"Unexpected type: "+(0,h.X)(s))),i){if(i!==r.kind){let t=function(e){switch(e){case C.h.SCALAR_TYPE_EXTENSION:return"scalar";case C.h.OBJECT_TYPE_EXTENSION:return"object";case C.h.INTERFACE_TYPE_EXTENSION:return"interface";case C.h.UNION_TYPE_EXTENSION:return"union";case C.h.ENUM_TYPE_EXTENSION:return"enum";
350case C.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,tn.k)(!1,"Unexpected kind: "+(0,h.X)(e))}}(r.kind);e.reportError(new T.__(`Cannot extend non-${t} type "${a}".`,{nodes:o?[o,r]:r}))}}else{let i=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),o=S(a,i);e.reportError(new T.__(`Cannot extend type "${a}" because it is not defined.`+v(o),{nodes:r.name}))}}}let nn={[C.h.SCALAR_TYPE_DEFINITION]:C.h.SCALAR_TYPE_EXTENSION,[C.h.OBJECT_TYPE_DEFINITION]:C.h.OBJECT_TYPE_EXTENSION,[C.h.INTERFACE_TYPE_DEFINITION]:C.h.INTERFACE_TYPE_EXTENSION,[C.h.UNION_TYPE_DEFINITION]:C.h.UNION_TYPE_EXTENSION,[C.h.ENUM_TYPE_DEFINITION]:C.h.ENUM_TYPE_EXTENSION,[C.h.INPUT_OBJECT_TYPE_DEFINITION]:C.h.INPUT_OBJECT_TYPE_EXTENSION};function nr(e){return{...ni(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(let n of r.args)if(!i.has(n.name)&&eC(n)){let i=(0,h.X)(n.type);e.reportError(new T.__(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function ni(e){var t,n;let r=Object.create(null),i=e.getSchema(),a=null!==(t=null==i?void 0:i.getDirectives())&&void 0!==t?t:te;for(let e of a)r[e.name]=I(e.args.filter(eC),e=>e.name);let o=e.getDocument().definitions;for(let e of o)if(e.kind===C.h.DIRECTIVE_DEFINITION){let t=null!==(n=e.arguments)&&void 0!==n?n:[];r[e.name.value]=I(t.filter(na),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var a;let r=null!==(a=t.arguments)&&void 0!==a?a:[],o=new Set(r.map(e=>e.name.value));for(let[r,a]of Object.entries(i))if(!o.has(r)){let i=U(a.type)?(0,h.X)(a.type):(0,L.S)(a.type);e.reportError(new T.__(`Directive "@${n}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function na(e){return e.type.kind===C.h.NON_NULL_TYPE&&null==e.defaultValue}function no(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(es(e_(n))){if(r){let i=t.name.value,a=(0,h.X)(n);e.reportError(new T.__(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let r=t.name.value,i=(0,h.X)(n);e.reportError(new T.__(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}}function ns(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function nu(e,t,n){return{prev:e,key:t,typename:n}}function nl(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function np(e,t,n=nc){return function e(t,n,r,i){if(et(n))return null!=t?e(t,n.ofType,r,i):void r(nl(i),t,new T.__(`Expected non-nullable type "${(0,h.X)(n)}" not to be null.`));if(null==t)return null;if(Z(n)){let a=n.ofType;return tr(t)?Array.from(t,(t,n)=>{let o=nu(i,n,void 0);return e(t,a,r,o)}):[e(t,a,r,i)]}if(z(n)){if(!(0,_.y)(t)){r(nl(i),t,new T.__(`Expected type "${n.name}" to be an object.`));return}let a={},o=n.getFields();for(let s of Object.values(o)){let o=t[s.name];if(void 0===o){if(void 0!==s.defaultValue)a[s.name]=s.defaultValue;else if(et(s.type)){let e=(0,h.X)(s.type);r(nl(i),t,new T.__(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}a[s.name]=e(o,s.type,r,nu(i,s.name,n.name))}for(let e of Object.keys(t))if(!o[e]){let a=S(e,Object.keys(n.getFields()));r(nl(i),t,new T.__(`Field "${e}" is not defined by type "${n.name}".`+v(a)))}return a}if(es(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof T.__?r(nl(i),t,e):r(nl(i),t,new T.__(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(nl(i),t,new T.__(`Expected type "${n.name}".`)),e}(0,tn.k)(!1,"Unexpected input type: "+(0,h.X)(n))}(e,t,n,void 0)}function nc(e,t,n){let r="Invalid value "+(0,h.X)(t);throw e.length>0&&(r+=` at "value${ns(e)}"`),n.message=r+": "+n.message,n}function nd(e,t,n){if(e){if(e.kind===C.h.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&et(t))return;return i}if(et(t)){if(e.kind===C.h.NULL)return;return nd(e,t.ofType,n)}if(e.kind===C.h.NULL)return null;if(Z(t)){let r=t.ofType;if(e.kind===C.h.LIST){let t=[];for(let i of e.values)if(nf(i,n)){if(et(r))return;t.push(null)}else{let e=nd(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=nd(e,r,n);if(void 0===i)return;return[i]}if(z(t)){if(e.kind!==C.h.OBJECT)return;let r=Object.create(null),i=I(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||nf(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(et(e.type))return;continue}let a=nd(t.value,e.type,n);if(void 0===a)return;r[e.name]=a}return r}if(es(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}(0,tn.k)(!1,"Unexpected input type: "+(0,h.X)(t))}}function nf(e,t){return e.kind===C.h.VARIABLE&&(null==t||void 0===t[e.name.value])}function ny(e,t,n,r){let i=[],a=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i={};for(let a of t){let t=a.variable.name.value,o=tL(e,a.type);if(!er(o)){let e=(0,L.S)(a.type);r(new T.__(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!nT(n,t)){if(a.defaultValue)i[t]=nd(a.defaultValue,o);else if(et(o)){let e=(0,h.X)(o);r(new T.__(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:a}))}continue}let s=n[t];if(null===s&&et(o)){let e=(0,h.X)(o);r(new T.__(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:a}));continue}i[t]=np(s,o,(e,n,i)=>{let o=`Variable "$${t}" got invalid value `+(0,h.X)(n);e.length>0&&(o+=` at "${t}${ns(e)}"`),r(new T.__(o+"; "+i.message,{nodes:a,originalError:i.originalError}))})}return i}(e,t,n,e=>{if(null!=a&&i.length>=a)throw new T.__("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function nm(e,t,n){var r;let i={},a=null!==(r=t.arguments)&&void 0!==r?r:[],o=I(a,e=>e.name.value);for(let r of e.args){let e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;
350else if(et(a))throw new T.__(`Argument "${e}" of required type "${(0,h.X)(a)}" was not provided.`,{nodes:t});continue}let u=s.value,l=u.kind===C.h.NULL;if(u.kind===C.h.VARIABLE){let t=u.name.value;if(null==n||!nT(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(et(a))throw new T.__(`Argument "${e}" of required type "${(0,h.X)(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:u});continue}l=null==n[t]}if(l&&et(a))throw new T.__(`Argument "${e}" of non-null type "${(0,h.X)(a)}" must not be null.`,{nodes:u});let p=nd(u,a,n);if(void 0===p)throw new T.__(`Argument "${e}" has invalid value ${(0,L.S)(u)}.`,{nodes:u});i[e]=p}return i}function nh(e,t,n){var r;let i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return nm(e,i,n)}function nT(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ng(e,t,n,r,i){let a=new Map;return nv(e,t,n,r,i,a,new Set),a}function nv(e,t,n,r,i,a,o){for(let u of i.selections)switch(u.kind){case C.h.FIELD:{var s;if(!nb(n,u))continue;let e=(s=u).alias?s.alias.value:s.name.value,t=a.get(e);void 0!==t?t.push(u):a.set(e,[u]);break}case C.h.INLINE_FRAGMENT:if(!nb(n,u)||!nE(e,u,r))continue;nv(e,t,n,r,u.selectionSet,a,o);break;case C.h.FRAGMENT_SPREAD:{let i=u.name.value;if(o.has(i)||!nb(n,u))continue;o.add(i);let s=t[i];if(!s||!nE(e,s,r))continue;nv(e,t,n,r,s.selectionSet,a,o)}}}function nb(e,t){let n=nh(e8,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=nh(e3,t,e);return(null==r?void 0:r.if)!==!1}function nE(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=tL(e,r);return i===n||!!ec(i)&&e.isSubType(i,n)}function n_(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),s=Object.create(null);for(let e of o.definitions)e.kind===C.h.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let u=ng(n,s,a,r,t.selectionSet);if(u.size>1){let t=[...u.values()],n=t.slice(1),r=n.flat();e.reportError(new T.__(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:r}))}for(let t of u.values()){let n=t[0],r=n.name.value;r.startsWith("__")&&e.reportError(new T.__(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}function nI(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function nN(e){return{DirectiveDefinition(e){var t;let r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value,a=null!==(t=e.fields)&&void 0!==t?t:[];for(let e of a){let t=e.name.value,a=null!==(r=e.arguments)&&void 0!==r?r:[];n(`${i}.${t}`,a)}return!1}function n(t,n){let r=nI(n,e=>e.name.value);for(let[n,i]of r)i.length>1&&e.reportError(new T.__(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function nw(e){return{Field:t,Directive:t};function t(t){var n;let r=null!==(n=t.arguments)&&void 0!==n?n:[],i=nI(r,e=>e.name.value);for(let[t,n]of i)n.length>1&&e.reportError(new T.__(`There can be only one argument named "${t}".`,{nodes:n.map(e=>e.name)}))}}function nk(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(null!=n&&n.getDirective(i)){e.reportError(new T.__(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new T.__(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function nA(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():te;for(let e of r)t[e.name]=!e.isRepeatable;let i=e.getDocument().definitions;for(let e of i)e.kind===C.h.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(n){let r;
350if("directives"in n&&n.directives){if(n.kind===C.h.SCHEMA_DEFINITION||n.kind===C.h.SCHEMA_EXTENSION)r=a;else if((0,tP.zT)(n)||(0,tP.D$)(n)){let e=n.name.value;void 0===(r=o[e])&&(o[e]=r=Object.create(null))}else r=Object.create(null);for(let i of n.directives){let n=i.name.value;t[n]&&(r[n]?e.reportError(new T.__(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}}function nO(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let a=t.name.value;r[a]||(r[a]=Object.create(null));let o=null!==(i=t.values)&&void 0!==i?i:[],s=r[a];for(let t of o){let r=t.name.value,i=n[a];Y(i)&&i.getValue(r)?e.reportError(new T.__(`Enum value "${a}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new T.__(`Enum value "${a}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function nS(e){let 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,a;let o=t.name.value;r[o]||(r[o]=Object.create(null));let s=null!==(i=t.fields)&&void 0!==i?i:[],u=r[o];for(let t of s){let r=t.name.value;(G(a=n[o])||X(a)||z(a))&&null!=a.getFields()[r]?e.reportError(new T.__(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new T.__(`Field "${o}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function nR(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new T.__(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function nx(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||(0,tn.k)(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new T.__(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function nD(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new T.__(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function nC(e){let 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){var i;let a=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(let t of a){let i=t.operation,a=n[i];r[i]?e.reportError(new T.__(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new T.__(`There can be only one ${i} type in schema.`,{nodes:[a,t]})):n[i]=t}return!1}}function nL(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;if(null!=n&&n.getType(i)){e.reportError(new T.__(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}));return}return t[i]?e.reportError(new T.__(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}function nM(e){return{OperationDefinition(t){var n;let r=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],i=nI(r,e=>e.variable.name.value);for(let[t,n]of i)n.length>1&&e.reportError(new T.__(`There can be only one variable named "$${t}".`,{nodes:n.map(e=>e.variable.name)}))}}}function n$(e){return{ListValue(t){let n=ev(e.getParentInputType());if(!Z(n))return nF(e,t),!1},ObjectValue(t){let n=e_(e.getInputType());if(!z(n))return nF(e,t),!1;let r=I(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields())){let a=r[i.name];if(!a&&eV(i)){let r=(0,h.X)(i.type);e.reportError(new T.__(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}}},ObjectField(t){let n=e_(e.getParentInputType()),r=e.getInputType();if(!r&&z(n)){let r=S(t.name.value,Object.keys(n.getFields()));e.reportError(new T.__(`Field "${t.name.value}" is not defined by type "${n.name}".`+v(r),{nodes:t}))}}
350,NullValue(t){let n=e.getInputType();et(n)&&e.reportError(new T.__(`Expected value of type "${(0,h.X)(n)}", found ${(0,L.S)(t)}.`,{nodes:t}))},EnumValue:t=>nF(e,t),IntValue:t=>nF(e,t),FloatValue:t=>nF(e,t),StringValue:t=>nF(e,t),BooleanValue:t=>nF(e,t)}}function nF(e,t){let n=e.getInputType();if(!n)return;let r=e_(n);if(!es(r)){let r=(0,h.X)(n);e.reportError(new T.__(`Expected value of type "${r}", found ${(0,L.S)(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=(0,h.X)(n);e.reportError(new T.__(`Expected value of type "${r}", found ${(0,L.S)(t)}.`,{nodes:t}))}}catch(i){let r=(0,h.X)(n);i instanceof T.__?e.reportError(i):e.reportError(new T.__(`Expected value of type "${r}", found ${(0,L.S)(t)}; `+i.message,{nodes:t,originalError:i}))}}function nP(e){return{VariableDefinition(t){let n=tL(e.getSchema(),t.type);if(void 0!==n&&!er(n)){let n=t.variable.name.value,r=(0,L.S)(t.type);e.reportError(new T.__(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function nU(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:n,type:i,defaultValue:a}of r){let r=n.name.value,o=t[r];if(o&&i){let t=e.getSchema(),s=tL(t,o.type);if(s&&!function(e,t,n,r,i){if(et(r)&&!et(t)){let a=null!=n&&n.kind!==C.h.NULL;if(!a&&!(void 0!==i))return!1;let o=r.ofType;return eG(e,t,o)}return eG(e,t,r)}(t,s,o.defaultValue,i,a)){let t=(0,h.X)(s),a=(0,h.X)(i);e.reportError(new T.__(`Variable "$${r}" of type "${t}" used in position expecting type "${a}".`,{nodes:[o,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let nj=Object.freeze([tU,nD,tH,n_,tQ,tV,nP,no,tj,nR,tX,tW,ne,tJ,nM,tz,tZ,tq,nA,tB,nw,n$,nr,nU,t1,nx]),nV=Object.freeze([tY,nC,nL,nO,nS,nN,nk,tQ,tq,nA,nt,tG,nw,nx,ni]);class nB{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===C.h.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===C.h.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class nG extends nB{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class nq extends nB{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new tM(this._schema);(0,tC.Vn)(e,tF(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function nX(e,t,n=nj,r,i=new tM(e)){var a;let o=null!==(a=null==r?void 0:r.maxErrors)&&void 0!==a?a:100;t||(0,f.a)(!1,"Must provide document."),tN(e);let s=Object.freeze({}),u=[],l=new nq(e,t,i,e=>{if(u.length>=o)throw u.push(new T.__("Too many validation errors, error limit reached. Validation aborted.")),s;u.push(e)}),p=(0,tC.j1)(n.map(e=>e(l)));try{(0,tC.Vn)(t,tF(i,p))}catch(e){if(e!==s)throw e}return u}function nQ(e,t,n=nV){let r=[],i=new nG(e,t,e=>{r.push(e)}),a=n.map(e=>e(i));return(0,tC.Vn)(e,(0,tC.j1)(a)),r}
350class nK extends Error{constructor(e){super("Unexpected error value: "+(0,h.X)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function nH(e,t,n){var r;let i=e instanceof Error?e:new nK(e);return Array.isArray(i.path)?i:new T.__(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let nY=(s=(e,t,n)=>(function(e,t,n,r,i){let a=new Map,o=new Set;for(let s of i)s.selectionSet&&nv(e,t,n,r,s.selectionSet,a,o);return a})(e.schema,e.fragments,e.variableValues,t,n),function(e,t,n){void 0===r&&(r=new WeakMap);let i=r.get(e);void 0===i&&(i=new WeakMap,r.set(e,i));let a=i.get(t);void 0===a&&(a=new WeakMap,i.set(t,a));let o=a.get(n);return void 0===o&&(o=s(e,t,n),a.set(n,o)),o});function nJ(e){arguments.length<2||(0,f.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;nZ(t,n,r);let a=n0(e);if(!("schema"in a))return{errors:a};try{let{operation:e}=a,t=function(e,t,n){let r=e.schema.getRootType(t.operation);if(null==r)throw new T.__(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=ng(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case g.ku.QUERY:return n1(e,r,n,a,i);case g.ku.MUTATION:return function(e,t,n){let r=n;for(let n of e)r=y(r)?r.then(e=>t(e,n)):t(r,n);return r}(i.entries(),(t,[i,o])=>{let s=nu(a,i,r.name),u=n2(e,r,n,o,s);return void 0===u?t:y(u)?u.then(e=>(t[i]=e,t)):(t[i]=u,t)},Object.create(null));case g.ku.SUBSCRIPTION:return n1(e,r,n,a,i)}}(a,e,i);if(y(t))return t.then(e=>nW(e,a.errors),e=>(a.errors.push(e),nW(null,a.errors)));return nW(t,a.errors)}catch(e){return a.errors.push(e),nW(null,a.errors)}}function nz(e){let t=nJ(e);if(y(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function nW(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function nZ(e,t,n){t||(0,f.a)(!1,"Must provide document."),tN(e),null==n||(0,_.y)(n)||(0,f.a)(!1,"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 n0(e){var t,n;let r;let{schema:i,document:a,rootValue:o,contextValue:s,variableValues:u,operationName:l,fieldResolver:p,typeResolver:c,subscribeFieldResolver:d}=e,f=Object.create(null);for(let e of a.definitions)switch(e.kind){case C.h.OPERATION_DEFINITION:if(null==l){if(void 0!==r)return[new T.__("Must provide operation name if query contains multiple operations.")];r=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===l&&(r=e);break;case C.h.FRAGMENT_DEFINITION:f[e.name.value]=e}if(!r)return null!=l?[new T.__(`Unknown operation named "${l}".`)]:[new T.__("Must provide an operation.")];let y=null!==(n=r.variableDefinitions)&&void 0!==n?n:[],m=ny(i,y,null!=u?u:{},{maxErrors:50});return m.errors?m.errors:{schema:i,fragments:f,rootValue:o,contextValue:s,operation:r,variableValues:m.coerced,fieldResolver:null!=p?p:re,typeResolver:null!=c?c:n9,subscribeFieldResolver:null!=d?d:re,errors:[]}}function n1(e,t,n,r,i){let a=Object.create(null),o=!1;for(let[s,u]of i.entries()){let i=nu(r,s,t.name),l=n2(e,t,n,u,i);void 0!==l&&(a[s]=l,y(l)&&(o=!0))}return o?Promise.all(Object.values(a)).then(e=>{let t=Object.create(null);for(let[n,r]of Object.keys(a).entries())t[r]=e[n];return t}):a}function n2(e,t,n,r,i){var a;let o=rt(e.schema,t,r[0]);if(!o)return;let s=o.type,u=null!==(a=o.resolve)&&void 0!==a?a:e.fieldResolver,l=n6(e,o,r,t,i);try{let t;let a=nm(o,r[0],e.variableValues),p=e.contextValue,c=u(n,a,p,l);if(t=y(c)?c.then(t=>n3(e,s,r,l,i,t)):n3(e,s,r,l,i,c),y(t))return t.then(void 0,t=>{let n=nH(t,r,nl(i));return n5(n,s,e)});return t}catch(n){let t=nH(n,r,nl(i));return n5(t,s,e)}}function n6(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 n5(e,t,n){if(et(t))throw e;return n.errors.push(e),null}function n3(e,t,n,r,i,a){if(a instanceof Error)throw a;if(et(t)){let o=n3(e,t.ofType,n,r,i,a);if(null===o)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}return null==a?null:Z(t)?function(e,t,n,r,i,a){if(!tr(a))throw new T.__(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,s=!1,u=Array.from(a,(t,a)=>{let u=nu(i,a,void 0);try{let i;if(i=y(t)?t.then(t=>n3(e,o,n,r,u,t)):n3(e,o,n,r,u,t),y(i))return s=!0,i.then(void 0,t=>{let r=nH(t,n,nl(u));return n5(r,o,e)});return i}catch(r){let t=nH(r,n,nl(u));return n5(t,o,e)}});return s?Promise.all(u):u}(e,t,n,r,i,a):es(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${(0,h.X)(e)}.serialize(${(0,h.X)(t)})\` to return non-nullable value, returned: ${(0,h.X)(n)}`);return n}(t,a):ec(t)?function(e,t,n,r,i,a){var o;let s=null!==(o=t.resolveType)&&void 0!==o?o:e.typeResolver,u=e.contextValue,l=s(a,u,r,t);return y(l)?l.then(o=>n4(e,n8(o,e,t,n,r,a),n,r,i,a)):n4(e,n8(l,e,t,n,r,a),n,r,i,a)}(e,t,n,r,i,a):G(t)?n4(e,t,n,r,i,a):void(0,tn.k)(!1,"Cannot complete value of unexpected output type: "+(0,h.X)(t))}function n8(e,t,n,r,i,a){if(null==e)throw new T.__(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(G(e))throw new T.__("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if("string"!=typeof e)throw new T.__(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,h.X)(a)}, received "${(0,h.X)(e)}".`);let o=t.schema.getType(e);if(null==o)throw new T.__(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!G(o))throw new T.__(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new T.__(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function n4(e,t,n,r,i,a){let o=nY(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(a,e.contextValue,r);if(y(s))return s.then(r=>{if(!r)throw n7(t,a,n);return n1(e,t,a,i,o)});if(!s)throw n7(t,a,n)}return n1(e,t,a,i,o)}
350function n7(e,t,n){return new T.__(`Expected value of type "${e.name}" but got: ${(0,h.X)(t)}.`,{nodes:n})}let n9=function(e,t,n,r){if((0,_.y)(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let r=0;r<i.length;r++){let o=i[r];if(o.isTypeOf){let i=o.isTypeOf(e,t,n);if(y(i))a[r]=i;else if(i)return o.name}}if(a.length)return Promise.all(a).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})},re=function(e,t,n,r){if((0,_.y)(e)||"function"==typeof e){let i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function rt(e,t,n){let r=n.name.value;return r===ty.name&&e.getQueryType()===t?ty:r===tm.name&&e.getQueryType()===t?tm:r===th.name?th:t.getFields()[r]}function rn(e){return new Promise(t=>t(ri(e)))}function rr(e){let t=ri(e);if(y(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function ri(e){let t;arguments.length<2||(0,f.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:a,variableValues:o,operationName:s,fieldResolver:u,typeResolver:l}=e,p=tI(n);if(p.length>0)return{errors:p};try{t=(0,m.Qc)(r)}catch(e){return{errors:[e]}}let c=nX(n,t);return c.length>0?{errors:c}:nJ({schema:n,document:t,rootValue:i,contextValue:a,variableValues:o,operationName:s,fieldResolver:u,typeResolver:l})}var ra=n(7926),ro=n(7867),rs=n(4264),ru=n(2105),rl=n(4635);function rp(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function rc(e){arguments.length<2||(0,f.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await rd(e);if(!rp(t))return t;let n=t=>nJ({...e,rootValue:t});return function(e,t){let n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t,n)}async function rd(...e){let t=function(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:i}=t;nZ(n,r,i);let a=n0(t);if(!("schema"in a))return{errors:a};try{let e=await rf(a);if(!rp(e))throw Error(`Subscription field must return Async Iterable. Received: ${(0,h.X)(e)}.`);return e}catch(e){if(e instanceof T.__)return{errors:[e]};throw e}}async function rf(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(null==o)throw new T.__("Schema is not configured to execute subscription operation.",{nodes:r});let s=ng(t,n,i,o,r.selectionSet),[u,l]=[...s.entries()][0],p=rt(t,o,l[0]);if(!p){let e=l[0].name.value;throw new T.__(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=nu(void 0,u,o.name),d=n6(e,p,l,o,c);try{var f;let t=nm(p,l[0],i),n=e.contextValue,r=null!==(f=p.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,o=await r(a,t,n,d);if(o instanceof Error)throw o;return o}catch(e){throw nH(e,l,nl(c))}}function ry(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||(0,tn.k)(!1),e.reportError(new T.__(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new T.__(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),a=e.getFieldDef();null!=i&&null!=a||(0,tn.k)(!1),e.reportError(new T.__(`Field "${i.name}.${a.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=e_(e.getParentInputType());if(z(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new T.__(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e_(e.getInputType());null!=i||(0,tn.k)(!1),e.reportError(new T.__(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function rm(e){return{Field(t){let n=e_(e.getType());n&&tg(n)&&e.reportError(new T.__(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var rh=n(5219);
350function rT(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?n:"";function o(e){return t.inputValueDeprecation?e:""}return`
351    query IntrospectionQuery {
352      __schema {
353        ${a}
354        queryType { name }
355        mutationType { name }
356        subscriptionType { name }
357        types {
358          ...FullType
359        }
360        directives {
361          name
362          ${n}
363          ${i}
364          locations
365          args${o("(includeDeprecated: true)")} {
366            ...InputValue
367          }
368        }
369      }
370    }
371
372    fragment FullType on __Type {
373      kind
374      name
375      ${n}
376      ${r}
377      fields(includeDeprecated: true) {
378        name
379        ${n}
380        args${o("(includeDeprecated: true)")} {
381          ...InputValue
382        }
383        type {
384          ...TypeRef
385        }
386        isDeprecated
387        deprecationReason
388      }
389      inputFields${o("(includeDeprecated: true)")} {
390        ...InputValue
391      }
392      interfaces {
393        ...TypeRef
394      }
395      enumValues(includeDeprecated: true) {
396        name
397        ${n}
398        isDeprecated
399        deprecationReason
400      }
401      possibleTypes {
402        ...TypeRef
403      }
404    }
405
406    fragment InputValue on __InputValue {
407      name
408      ${n}
409      type { ...TypeRef }
410      defaultValue
411      ${o("isDeprecated")}
412      ${o("deprecationReason")}
413    }
414
415    fragment TypeRef on __Type {
416      kind
417      name
418      ofType {
419        kind
420        name
421        ofType {
422          kind
423          name
424          ofType {
425            kind
426            name
427            ofType {
428              kind
429              name
430              ofType {
431                kind
432                name
433                ofType {
434                  kind
435                  name
436                  ofType {
437                    kind
438                    name
439                  }
440                }
441              }
442            }
443          }
444        }
445      }
446    }
447  `}function rg(e,t){let n=null;for(let i of e.definitions)if(i.kind===C.h.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function rv(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new T.__("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new T.__("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new T.__("Schema is not configured for subscriptions.",{nodes:t});return n}throw new T.__("Can only have query, mutation and subscription operations.",{nodes:t})}function rb(e,t){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},r=(0,m.Qc)(rT(n)),i=nz({schema:e,document:r});return!i.errors&&i.data||(0,tn.k)(!1),i.data}function rE(e,t){(0,_.y)(e)&&(0,_.y)(e.__schema)||(0,f.a)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,h.X)(e)}.`);let n=e.__schema,r=N(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case p.SCALAR:return new ew({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL});case p.OBJECT:return new ek({name:e.name,description:e.description,interfaces:()=>y(e),fields:()=>T(e)});case p.INTERFACE:return new eL({name:e.name,description:e.description,interfaces:()=>y(e),fields:()=>T(e)});case p.UNION:return function(e){if(!e.possibleTypes){let t=(0,h.X)(e);throw Error(`Introspection result missing possibleTypes: ${t}.`)}return new eM({name:e.name,description:e.description,types:()=>e.possibleTypes.map(c)})}(e);case p.ENUM:return function(e){if(!e.enumValues){let t=(0,h.X)(e);throw Error(`Introspection result missing enumValues: ${t}.`)}return new eF({name:e.name,description:e.description,values:N(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case p.INPUT_OBJECT:return function(e){if(!e.inputFields){let t=(0,h.X)(e);throw Error(`Introspection result missing inputFields: ${t}.`)}return new eU({name:e.name,description:e.description,fields:()=>v(e.inputFields)})}(e)}let t=(0,h.X)(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)})(e));for(let e of[...eZ,...tT])r[e.name]&&(r[e.name]=e);let i=n.queryType?c(n.queryType):null,a=n.mutationType?c(n.mutationType):null,o=n.subscriptionType?c(n.subscriptionType):null,s=n.directives?n.directives.map(function(e){if(!e.args){let t=(0,h.X)(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=(0,h.X)(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new e5({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:v(e.args)})}):[];return new tE({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function u(e){if(e.kind===p.LIST){let t=e.ofType;
447if(!t)throw Error("Decorated type deeper than introspection query.");return new ef(u(t))}if(e.kind===p.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");let n=u(t);return new ey(eg(n))}return l(e)}function l(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${(0,h.X)(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function c(e){return q(l(e))}function d(e){return Q(l(e))}function y(e){if(null===e.interfaces&&e.kind===p.INTERFACE)return[];if(!e.interfaces){let t=(0,h.X)(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(d)}function T(e){if(!e.fields)throw Error(`Introspection result missing fields: ${(0,h.X)(e)}.`);return N(e.fields,e=>e.name,g)}function g(e){let t=u(e.type);if(!ea(t)){let e=(0,h.X)(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=(0,h.X)(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:v(e.args)}}function v(e){return N(e,e=>e.name,b)}function b(e){let t=u(e.type);if(!er(t)){let e=(0,h.X)(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?nd((0,m.H2)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function r_(e,t,n){tb(e),null!=t&&t.kind===C.h.DOCUMENT||(0,f.a)(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=nQ(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=rI(r,t,n);return r===i?e:new tE(i)}function rI(e,t,n){var r,i,a,o,s,u;let l;let p=[],c=Object.create(null),d=[],f=[];for(let e of t.definitions)if(e.kind===C.h.SCHEMA_DEFINITION)l=e;else if(e.kind===C.h.SCHEMA_EXTENSION)f.push(e);else if((0,tP.zT)(e))p.push(e);else if((0,tP.D$)(e)){let t=e.name.value,n=c[t];c[t]=n?n.concat([e]):[e]}else e.kind===C.h.DIRECTIVE_DEFINITION&&d.push(e);if(0===Object.keys(c).length&&0===p.length&&0===d.length&&0===f.length&&null==l)return e;let y=Object.create(null);for(let t of e.types)y[t.name]=tg(u=t)||e0(u)?u:V(u)?function(e){var t,n;let r=e.toConfig(),i=null!==(t=c[r.name])&&void 0!==t?t:[],a=r.specifiedByURL;for(let e of i)a=null!==(n=rk(e))&&void 0!==n?n:a;return new ew({...r,specifiedByURL:a,extensionASTNodes:r.extensionASTNodes.concat(i)})}(u):G(u)?function(e){var t;let n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new ek({...n,interfaces:()=>[...e.getInterfaces().map(g),...S(r)],fields:()=>({...w(n.fields,v),...N(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):X(u)?function(e){var t;let n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new eL({...n,interfaces:()=>[...e.getInterfaces().map(g),...S(r)],fields:()=>({...w(n.fields,v),...N(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):K(u)?function(e){var t;let n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new eM({...n,types:()=>[...e.getTypes().map(g),...R(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):Y(u)?function(e){var t;let n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new eF({...n,values:{...n.values,...O(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):z(u)?function(e){var t;let n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new eU({...n,fields:()=>({...w(n.fields,e=>({...e,type:T(e.type)})),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(u):void(0,tn.k)(!1,"Unexpected type: "+(0,h.X)(u));for(let e of p){let t=e.name.value;y[t]=null!==(s=rN[t])&&void 0!==s?s:function(e){var t,n,r,i,a,o,s;let u=e.name.value,l=null!==(t=c[u])&&void 0!==t?t:[];switch(e.kind){case C.h.OBJECT_TYPE_DEFINITION:{let t=[e,...l];return new ek({name:u,description:null===(n=e.description)||void 0===n?void 0:n.value,interfaces:()=>S(t),fields:()=>N(t),astNode:e,extensionASTNodes:l})}case C.h.INTERFACE_TYPE_DEFINITION:{let t=[e,...l];return new eL({name:u,description:null===(r=e.description)||void 0===r?void 0:r.value,interfaces:()=>S(t),fields:()=>N(t),astNode:e,extensionASTNodes:l})}case C.h.ENUM_TYPE_DEFINITION:{let t=[e,...l];return new eF({name:u,description:null===(i=e.description)||void 0===i?void 0:i.value,values:O(t),astNode:e,extensionASTNodes:l})}case C.h.UNION_TYPE_DEFINITION:{let t=[e,...l];return new eM({name:u,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>R(t),astNode:e,extensionASTNodes:l})}case C.h.SCALAR_TYPE_DEFINITION:return new ew({name:u,description:null===(o=e.description)||void 0===o?void 0:o.value,specifiedByURL:rk(e),astNode:e,extensionASTNodes:l});case C.h.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...l];return new eU({name:u,description:null===(s=e.description)||void 0===s?void 0:s.value,fields:()=>A(t),astNode:e,extensionASTNodes:l})}}}(e)}let m={query:e.query&&g(e.query),mutation:e.mutation&&g(e.mutation),subscription:e.subscription&&g(e.subscription),...l&&E([l]),...E(f)};return{description:null===(r=l)||void 0===r?void 0:null===(i=r.description)||void 0===i?void 0:i.value,...m,types:Object.values(y),directives:[...e.directives.map(function(e){let t=e.toConfig();return new e5({...t,args:w(t.args,b)})}),...d.map(function(e){var t;return new e5({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:k(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!==(a=l)&&void 0!==a?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(o=null==n?void 0:n.assumeValid)&&void 0!==o&&o};function T(e){return Z(e)?new ef(T(e.ofType)):et(e)?new ey(T(e.ofType)):g(e)}function g(e){return y[e.name]}function v(e){return{...e,type:T(e.type),args:e.args&&w(e.args,b)}}function b(e){return{...e,type:T(e.type)}}function E(e){let t={};for(let r of e){var n;let e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(let n of e)t[n.operation]=_(n.type)}return t}function _(e){var t;let n=e.name.value,r=null!==(t=rN[n])&&void 0!==t?t:y[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function I(e){return e.kind===C.h.LIST_TYPE?new ef(I(e.type)):e.kind===C.h.NON_NULL_TYPE?new ey(I(e.type)):_(e)}function N(e){let t=Object.create(null);for(let i of e){var n,r;let e=null!==(n=i.fields)&&void 0!==n?n:[];for(let n of e)t[n.name.value]={type:I(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:k(n.arguments),deprecationReason:rw(n),astNode:n}}return t}function k(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=I(r.type);t[r.name.value]={type:e,description:null===(n=r.description)||void 0===n?void 0:n.value,defaultValue:nd(r.defaultValue,e),deprecationReason:rw(r),astNode:r}}return t}function A(e){let t=Object.create(null);for(let i of e){var n,r;let e=null!==(n=i.fields)&&void 0!==n?n:[];for(let n of e){let e=I(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:nd(n.defaultValue,e),deprecationReason:rw(n),astNode:n}}}return t}function O(e){let t=Object.create(null);for(let i of e){var n,r;let e=null!==(n=i.values)&&void 0!==n?n:[];for(let n of e)t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:rw(n),astNode:n}}return t}function S(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(_))&&void 0!==t?t:[]})}function R(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(_))&&void 0!==t?t:[]})}}let rN=I([...eZ,...tT],e=>e.name);function rw(e){let t=nh(e7,e);return null==t?void 0:t.reason}function rk(e){let t=nh(e9,e);return null==t?void 0:t.url}function rA(e,t){null!=e&&e.kind===C.h.DOCUMENT||(0,f.a)(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=nQ(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=rI(n,e,t);if(null==r.astNode)for(let e of r.types)switch(e.name){case"Query":r.query=e;break;case"Mutation":r.mutation=e;break;case"Subscription":r.subscription=e}let i=[...r.directives,...te.filter(e=>r.directives.every(t=>t.name!==e.name))];return new tE({...r,directives:i})}function rO(e,t){let n=(0,m.Qc)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables});return rA(n,{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function rS(e){var t,n,r;let i=e.toConfig(),a=N(rx(i.types),e=>e.name,function(e){if(V(e)||tg(e))return e;if(G(e)){let t=e.toConfig();return new ek({...t,interfaces:()=>p(t.interfaces),fields:()=>l(t.fields)})}if(X(e)){let t=e.toConfig();return new eL({...t,interfaces:()=>p(t.interfaces),fields:()=>l(t.fields)})}if(K(e)){let t=e.toConfig();return new eM({...t,types:()=>p(t.types)})}if(Y(e)){let t=e.toConfig();return new eF({...t,values:rR(t.values,e=>e)})}if(z(e)){let t=e.toConfig();return new eU({...t,fields:()=>rR(t.fields,e=>({...e,type:o(e.type)}))})}(0,tn.k)(!1,"Unexpected type: "+(0,h.X)(e))});return new tE({...i,types:Object.values(a),directives:rx(i.directives).map(function(e){let t=e.toConfig();return new e5({...t,locations:rD(t.locations,e=>e),args:u(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function o(e){return Z(e)?new ef(o(e.ofType)):et(e)?new ey(o(e.ofType)):s(e)}function s(e){return a[e.name]}function u(e){return rR(e,e=>({...e,type:o(e.type)}))}function l(e){return rR(e,e=>({...e,type:o(e.type),args:e.args&&u(e.args)}))}function p(e){return rx(e).map(s)}}function rR(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(k))n[r]=t(e[r]);return n}function rx(e){return rD(e,e=>e.name)}
447function rD(e,t){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);return k(r,i)})}var rC=n(7392);function rL(e){return rF(e,e=>!tt(e),r$)}function rM(e){return rF(e,tt,tg)}function r$(e){return!e0(e)&&!tg(e)}function rF(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(`  query: ${n.name}`);let r=e.getMutationType();r&&t.push(`  mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(`  subscription: ${i.name}`),rX(e)+`schema {
448${t.join("\n")}
449}`}(e),...r.map(e=>rX(e)+"directive @"+e.name+rB(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")),...i.map(e=>rP(e))].filter(Boolean).join("\n\n")}function rP(e){return V(e)?rX(e)+`scalar ${e.name}`+function(e){if(null==e.specifiedByURL)return"";let t=(0,L.S)({kind:C.h.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(e):G(e)?rX(e)+`type ${e.name}`+rU(e)+rj(e):X(e)?rX(e)+`interface ${e.name}`+rU(e)+rj(e):K(e)?function(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return rX(e)+"union "+e.name+n}(e):Y(e)?function(e){let t=e.getValues().map((e,t)=>rX(e,"  ",!t)+"  "+e.name+rq(e.deprecationReason));return rX(e)+`enum ${e.name}`+rV(t)}(e):z(e)?function(e){let t=Object.values(e.getFields()).map((e,t)=>rX(e,"  ",!t)+"  "+rG(e));return rX(e)+`input ${e.name}`+rV(t)}(e):void(0,tn.k)(!1,"Unexpected type: "+(0,h.X)(e))}function rU(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function rj(e){let t=Object.values(e.getFields()).map((e,t)=>rX(e,"  ",!t)+"  "+e.name+rB(e.args,"  ")+": "+String(e.type)+rq(e.deprecationReason));return rV(t)}function rV(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function rB(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(rG).join(", ")+")":"(\n"+e.map((e,n)=>rX(e,"  "+t,!n)+"  "+t+rG(e)).join("\n")+"\n"+t+")"}function rG(e){let t=ti(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,L.S)(t)}`),n+rq(e.deprecationReason)}function rq(e){if(null==e)return"";if(e!==e4){let t=(0,L.S)({kind:C.h.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function rX(e,t="",n=!0){let{description:r}=e;if(null==r)return"";let i=(0,L.S)({kind:C.h.STRING,value:r,block:(0,rC.MZ)(r)});return(t&&!n?"\n"+t:t)+i.replace(/\n/g,"\n"+t)+"\n"}function rQ(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:C.h.DOCUMENT,definitions:t}}function rK(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case C.h.OPERATION_DEFINITION:t.push(r);break;case C.h.FRAGMENT_DEFINITION:n[r.name.value]=rH(r.selectionSet)}let r=Object.create(null);for(let i of t){let t=new Set;for(let e of rH(i.selectionSet))!function e(t,n,r){if(!t.has(r)){t.add(r);let i=n[r];if(void 0!==i)for(let r of i)e(t,n,r)}}(t,n,e);let a=i.name?i.name.value:"";r[a]={kind:C.h.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===C.h.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function rH(e){let t=[];return(0,tC.Vn)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function rY(e){let t=(0,ra.T)(e)?e:new ra.H(e),n=t.body,r=new ru.h(t),i="",a=!1;for(;r.advance().kind!==rl.T.EOF;){let e=r.token,t=e.kind,o=!(0,ru.u)(e.kind);a&&(o||e.kind===rl.T.SPREAD)&&(i+=" ");let s=n.slice(e.start,e.end);t===rl.T.BLOCK_STRING?i+=(0,rC.LZ)(e.value,{minimize:!0}):i+=s,a=o}return i}function rJ(e){let t=rz(e);if(t)throw t;return e}function rz(e){if("string"==typeof e||(0,f.a)(!1,"Expected name to be a string."),e.startsWith("__"))return new T.__(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{F(e)}catch(e){return e}}function rW(e,t){return r0(e,t).filter(e=>e.type in c)}function rZ(e,t){return r0(e,t).filter(e=>e.type in d)}function r0(e,t){return[...function(e,t){let n=[],r=r8(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:c.TYPE_REMOVED,description:e0(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)Y(e)&&Y(t)?n.push(...function(e,t){let n=[],r=r8(e.getValues(),t.getValues());for(let t of r.added)n.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:c.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):K(e)&&K(t)?n.push(...function(e,t){let n=[],r=r8(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:c.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):z(e)&&z(t)?n.push(...function(e,t){let n=[],r=r8(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)eV(t)?n.push({type:c.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:c.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted){let r=r6(t.type,i.type);r||n.push({type:c.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`})}return n}(e,t)):G(e)&&G(t)?n.push(...r2(e,t),...r1(e,t)):X(e)&&X(t)?n.push(...r2(e,t),...r1(e,t)):e.constructor!==t.constructor&&n.push({type:c.TYPE_CHANGED_KIND,description:`${e.name} changed from ${r5(e)} to ${r5(t)}.`});return n}(e,t),...function(e,t){let n=[],r=r8(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:c.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=r8(e.args,t.args);for(let t of r.added)eC(t)&&n.push({type:c.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:c.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:c.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:c.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}function r1(e,t){let n=[],r=r8(e.getInterfaces(),t.getInterfaces());
449for(let t of r.added)n.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:c.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function r2(e,t){let n=[],r=r8(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:c.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted){n.push(...function(e,t,n){let r=[],i=r8(t.args,n.args);for(let n of i.removed)r.push({type:c.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,a]of i.persisted){let i=r6(n.type,a.type);if(i){if(void 0!==n.defaultValue){if(void 0===a.defaultValue)r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=r3(n.defaultValue,n.type),o=r3(a.defaultValue,a.type);i!==o&&r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${o}.`})}}}else r.push({type:c.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(a.type)}.`})}for(let n of i.added)eC(n)?r.push({type:c.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i));let r=function e(t,n){return Z(t)?Z(n)&&e(t.ofType,n.ofType)||et(n)&&e(t,n.ofType):et(t)?et(n)&&e(t.ofType,n.ofType):eb(n)&&t.name===n.name||et(n)&&e(t,n.ofType)}(t.type,i.type);r||n.push({type:c.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`})}return n}function r6(e,t){return Z(e)?Z(t)&&r6(e.ofType,t.ofType):et(e)?et(t)&&r6(e.ofType,t.ofType)||!et(t)&&r6(e.ofType,t):eb(t)&&e.name===t.name}function r5(e){return V(e)?"a Scalar type":G(e)?"an Object type":X(e)?"an Interface type":K(e)?"a Union type":Y(e)?"an Enum type":z(e)?"an Input type":void(0,tn.k)(!1,"Unexpected type: "+(0,h.X)(e))}function r3(e,t){let n=ti(e,t);return null!=n||(0,tn.k)(!1),(0,L.S)(t0(n))}function r8(e,t){let n=[],r=[],i=[],a=I(e,({name:e})=>e),o=I(t,({name:e})=>e);for(let t of e){let e=o[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===a[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}(u=c||(c={})).TYPE_REMOVED="TYPE_REMOVED",u.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",u.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",u.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",u.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",u.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",u.FIELD_REMOVED="FIELD_REMOVED",u.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",u.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",u.ARG_REMOVED="ARG_REMOVED",u.ARG_CHANGED_KIND="ARG_CHANGED_KIND",u.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",u.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",u.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",u.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",u.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(l=d||(d={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",l.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",l.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",l.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",l.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",l.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"},9551:function(e,t,n){"use strict";function r(e,t){let n=Boolean(e);if(!n)throw Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{k:function(){return r}})},8495:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{y:function(){return r}})},9878:function(e,t,n){"use strict";var r,i;n.d(t,{B:function(){return r}}),(i=r||(r={})).QUERY="QUERY",i.MUTATION="MUTATION",i.SUBSCRIPTION="SUBSCRIPTION",i.FIELD="FIELD",i.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",i.FRAGMENT_SPREAD="FRAGMENT_SPREAD",i.INLINE_FRAGMENT="INLINE_FRAGMENT",i.VARIABLE_DEFINITION="VARIABLE_DEFINITION",i.SCHEMA="SCHEMA",i.SCALAR="SCALAR",i.OBJECT="OBJECT",i.FIELD_DEFINITION="FIELD_DEFINITION",i.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",i.INTERFACE="INTERFACE",i.UNION="UNION",i.ENUM="ENUM",i.ENUM_VALUE="ENUM_VALUE",i.INPUT_OBJECT="INPUT_OBJECT",i.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"},2105:function(e,t,n){"use strict";n.d(t,{h:function(){return u},u:function(){return l}});var r=n(5219),i=n(2380),a=n(7392),o=n(8297),s=n(4635);class u{constructor(e){let t=new i.WU(s.T.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;let e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==s.T.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,i=n.length,u=t;for(;u<i;){let t=n.charCodeAt(u);switch(t){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++e.line,e.lineStart=u;continue;case 13:10===n.charCodeAt(u+1)?u+=2:++u,++e.line,e.lineStart=u;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if(p(e))++i;else if(c(n,i))i+=2;else break}return m(e,s.T.COMMENT,t,i,n.slice(t+1,i))}(e,u);case 33:return m(e,s.T.BANG,u,u+1);case 36:return m(e,s.T.DOLLAR,u,u+1);case 38:return m(e,s.T.AMP,u,u+1);case 40:return m(e,s.T.PAREN_L,u,u+1);case 41:return m(e,s.T.PAREN_R,u,u+1);case 46:if(46===n.charCodeAt(u+1)&&46===n.charCodeAt(u+2))return m(e,s.T.SPREAD,u,u+3);break;case 58:return m(e,s.T.COLON,u,u+1);case 61:return m(e,s.T.EQUALS,u,u+1);case 64:return m(e,s.T.AT,u,u+1);case 91:return m(e,s.T.BRACKET_L,u,u+1);case 93:return m(e,s.T.BRACKET_R,u,u+1);case 123:return m(e,s.T.BRACE_L,u,u+1);case 124:return m(e,s.T.PIPE,u,u+1);case 125:return m(e,s.T.BRACE_R,u,u+1);case 34:if(34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2))return function(e,t){let n=e.source.body,i=n.length,o=e.lineStart,u=t+3,l=u,d="",f=[];for(;u<i;){let i=n.charCodeAt(u);if(34===i&&34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2)){d+=n.slice(l,u),f.push(d);let r=m(e,s.T.BLOCK_STRING,t,u+3,(0,a.wv)(f).join("\n"));return e.line+=f.length-1,e.lineStart=o,r}if(92===i&&34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2)&&34===n.charCodeAt(u+3)){d+=n.slice(l,u),l=u+1,u+=4;continue}if(10===i||13===i){d+=n.slice(l,u),f.push(d),13===i&&10===n.charCodeAt(u+1)?u+=2:++u,d="",l=u,o=u;continue}if(p(i))++u;else if(c(n,u))u+=2;else throw(0,r.h)(e.source,u,`Invalid character within String: ${y(e,u)}.`)}throw(0,r.h)(e.source,u,"Unterminated string.")}(e,u);return function(e,t){let n=e.source.body,i=n.length,a=t+1,o=a,u="";for(;a<i;){let i=n.charCodeAt(a);if(34===i)return u+=n.slice(o,a),m(e,s.T.STRING,t,a+1,u);if(92===i){u+=n.slice(o,a);let t=117===n.charCodeAt(a+1)?123===n.charCodeAt(a+2)?function(e,t){let n=e.source.body,i=0,a=3;for(;a<12;){let e=n.charCodeAt(t+a++);if(125===e){if(a<5||!p(i))break;return{value:String.fromCodePoint(i),size:a}}if((i=i<<4|g(e))<0)break}throw(0,r.h)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+a)}".`)}(e,a):function(e,t){let n=e.source.body,i=T(n,t+2);if(p(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=T(n,t+8);if(f(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.h)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,a):function(e,t){let n=e.source.body,i=n.charCodeAt(t+1);switch(i){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw(0,r.h)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,a);u+=t.value,a+=t.size,o=a;continue}if(10===i||13===i)break;if(p(i))++a;else if(c(n,a))a+=2;else throw(0,r.h)(e.source,a,`Invalid character within String: ${y(e,a)}.`)}throw(0,r.h)(e.source,a,"Unterminated string.")}(e,u)}if((0,o.X1)(t)||45===t)return function(e,t,n){let i=e.source.body,a=t,u=n,l=!1;if(45===u&&(u=i.charCodeAt(++a)),48===u){if(u=i.charCodeAt(++a),(0,o.X1)(u))throw(0,r.h)(e.source,a,`Invalid number, unexpected digit after 0: ${y(e,a)}.`)}else a=h(e,a,u),u=i.charCodeAt(a);if(46===u&&(l=!0,u=i.charCodeAt(++a),a=h(e,a,u),u=i.charCodeAt(a)),(69===u||101===u)&&(l=!0,(43===(u
449=i.charCodeAt(++a))||45===u)&&(u=i.charCodeAt(++a)),a=h(e,a,u),u=i.charCodeAt(a)),46===u||(0,o.LQ)(u))throw(0,r.h)(e.source,a,`Invalid number, expected digit but got: ${y(e,a)}.`);return m(e,l?s.T.FLOAT:s.T.INT,t,a,i.slice(t,a))}(e,u,t);if((0,o.LQ)(t))return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if((0,o.HQ)(e))++i;else break}return m(e,s.T.NAME,t,i,n.slice(t,i))}(e,u);throw(0,r.h)(e.source,u,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":p(t)||c(n,u)?`Unexpected character: ${y(e,u)}.`:`Invalid character: ${y(e,u)}.`)}return m(e,s.T.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===s.T.COMMENT);return e}}function l(e){return e===s.T.BANG||e===s.T.DOLLAR||e===s.T.AMP||e===s.T.PAREN_L||e===s.T.PAREN_R||e===s.T.SPREAD||e===s.T.COLON||e===s.T.EQUALS||e===s.T.AT||e===s.T.BRACKET_L||e===s.T.BRACKET_R||e===s.T.BRACE_L||e===s.T.PIPE||e===s.T.BRACE_R}function p(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function c(e,t){return d(e.charCodeAt(t))&&f(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function y(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return s.T.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,a){let o=e.line,s=1+n-e.lineStart;return new i.WU(t,n,r,o,s,a)}function h(e,t,n){if(!(0,o.X1)(n))throw(0,r.h)(e.source,t,`Invalid number, expected digit but got: ${y(e,t)}.`);let i=e.source.body,a=t+1;for(;(0,o.X1)(i.charCodeAt(a));)++a;return a}function T(e,t){return g(e.charCodeAt(t))<<12|g(e.charCodeAt(t+1))<<8|g(e.charCodeAt(t+2))<<4|g(e.charCodeAt(t+3))}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}},7867:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(9551);let i=/\r\n|[\n\r]/g;function a(e,t){let n=0,a=1;
449for(let o of e.body.matchAll(i)){if("number"==typeof o.index||(0,r.k)(!1),o.index>=t)break;n=o.index+o[0].length,a+=1}return{line:a,column:t+1-n}}},4275:function(e,t,n){"use strict";n.d(t,{H2:function(){return c},Qc:function(){return p},gZ:function(){return f},tl:function(){return d}});var r=n(5219),i=n(2380),a=n(9878),o=n(7359),s=n(2105),u=n(7926),l=n(4635);function p(e,t){let n=new y(e,t);return n.parseDocument()}function c(e,t){let n=new y(e,t);n.expectToken(l.T.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(l.T.EOF),r}function d(e,t){let n=new y(e,t);n.expectToken(l.T.SOF);let r=n.parseConstValueLiteral();return n.expectToken(l.T.EOF),r}function f(e,t){let n=new y(e,t);n.expectToken(l.T.SOF);let r=n.parseTypeReference();return n.expectToken(l.T.EOF),r}class y{constructor(e,t={}){let n=(0,u.T)(e)?e:new u.H(e);this._lexer=new s.h(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(l.T.NAME);return this.node(e,{kind:o.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:o.h.DOCUMENT,definitions:this.many(l.T.SOF,this.parseDefinition,l.T.EOF)})}parseDefinition(){if(this.peek(l.T.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===l.T.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.h)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(l.T.BRACE_L))return this.node(t,{kind:o.h.OPERATION_DEFINITION,operation:i.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(l.T.NAME)&&(e=this.parseName()),this.node(t,{kind:o.h.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(l.T.NAME);switch(e.value){case"query":return i.ku.QUERY;case"mutation":return i.ku.MUTATION;case"subscription":return i.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(l.T.PAREN_L,this.parseVariableDefinition,l.T.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:o.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(l.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.T.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(l.T.DOLLAR),this.node(e,{kind:o.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:o.h.SELECTION_SET,selections:this.many(l.T.BRACE_L,this.parseSelection,l.T.BRACE_R)})}parseSelection(){return this.peek(l.T.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(l.T.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:o.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.T.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(l.T.PAREN_L,t,l.T.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(l.T.COLON),this.node(t,{kind:o.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(l.T.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(l.T.NAME)?this.node(e,{kind:o.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:o.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:o.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:o.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case l.T.BRACKET_L:return this.parseList(e);case l.T.BRACE_L:return this.parseObject(e);case l.T.INT:return this.advanceLexer(),this.node(t,{kind:o.h.INT,value:t.value});case l.T.FLOAT:return this.advanceLexer(),this.node(t,{kind:o.h.FLOAT,value:t.value});case l.T.STRING:case l.T.BLOCK_STRING:return this.parseStringLiteral();case l.T.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:o.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:o.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:o.h.NULL});default:return this.node(t,{kind:o.h.ENUM,value:t.value})}case l.T.DOLLAR:if(e){if(this.expectToken(l.T.DOLLAR),this._lexer.token.kind===l.T.NAME){let e=this._lexer.token.value;throw(0,r.h)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:o.h.STRING,value:e.value,block:e.kind===l.T.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:o.h.LIST,values:this.any(l.T.BRACKET_L,t,l.T.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:o.h.OBJECT,fields:this.any(l.T.BRACE_L,t,l.T.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(l.T.COLON),this.node(t,{kind:o.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(l.T.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(l.T.AT),this.node(t,{kind:o.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(l.T.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(l.T.BRACKET_R),e=this.node(t,{kind:o.h.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(l.T.BANG)?this.node(t,{kind:o.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:o.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(l.T.STRING)||this.peek(l.T.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(l.T.BRACE_L,this.parseOperationTypeDefinition,l.T.BRACE_R);return this.node(e,{kind:o.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(l.T.COLON);let n=this.parseNamedType();return this.node(e,{kind:o.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:o.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:o.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(l.T.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(l.T.BRACE_L,this.parseFieldDefinition,l.T.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(l.T.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:o.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(l.T.PAREN_L,this.parseInputValueDef,l.T.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(l.T.COLON);let i=this.parseTypeReference();this.expectOptionalToken(l.T.EQUALS)&&(e=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:o.h.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:o.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:o.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(l.T.EQUALS)?this.delimitedMany(l.T.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:o.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(l.T.BRACE_L,this.parseEnumValueDefinition,l.T.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:o.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.h)(this._lexer.source,this._lexer.token.start,`${m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:o.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(l.T.BRACE_L,this.parseInputValueDef,l.T.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===l.T.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(l.T.BRACE_L,this.parseOperationTypeDefinition,l.T.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:o.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:o.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.T.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:o.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(l.T.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(a.B,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.h)(this._lexer.source,t.start,`Expected ${h(e)}, found ${m(t)}.`)}expectOptionalToken(e){let t=this._lexer.token;return t.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===l.T.NAME&&t.value===e)this.advanceLexer();else throw(0,r.h)(this._lexer.source,t.start,`Expected "${e}", found ${m(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===l.T.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return(0,r.h)(this._lexer.source,t.start,`Unexpected ${
449m(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==l.T.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,r.h)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function m(e){let t=e.value;return h(e.kind)+(null!=t?` "${t}"`:"")}function h(e){return(0,s.u)(e)?`"${e}"`:e}},4264:function(e,t,n){"use strict";n.d(t,{Q:function(){return i},z:function(){return a}});var r=n(7867);function i(e){return a(e.source,(0,r.k)(e.source,e.start))}function a(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,u=1===t.line?n:0,l=t.column+u,p=`${e.name}:${s}:${l}
450`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return p+o([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return p+o([[`${s-1} |`,c[i-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,c[i+1]]])}function o(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}},4635:function(e,t,n){"use strict";var r,i;n.d(t,{T:function(){return r}}),(i=r||(r={})).SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.